~ubuntu-branches/ubuntu/feisty/kid3/feisty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2005-11-24 12:16:38 UTC
  • mto: (2.1.2 etch)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20051124121638-41hoeh1ylj9hiywa
Tags: upstream-0.6
ImportĀ upstreamĀ versionĀ 0.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.57.
 
3
# Generated by GNU Autoconf 2.59.
4
4
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
 
# Free Software Foundation, Inc.
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
8
## --------------------- ##
20
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21
20
  set -o posix
22
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
23
23
 
24
24
# Support unset when possible.
25
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
26
  as_unset=unset
27
27
else
28
28
  as_unset=false
41
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
42
  LC_TELEPHONE LC_TIME
43
43
do
44
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
45
    eval $as_var=C; export $as_var
46
46
  else
47
47
    $as_unset $as_var
218
218
if mkdir -p . 2>/dev/null; then
219
219
  as_mkdir_p=:
220
220
else
 
221
  test -d ./-p && rmdir ./-p
221
222
  as_mkdir_p=false
222
223
fi
223
224
 
224
225
as_executable_p="test -f"
225
226
 
226
227
# Sed expression to map a string onto a valid CPP name.
227
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228
229
 
229
230
# Sed expression to map a string onto a valid variable name.
230
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231
232
 
232
233
 
233
234
# IFS
258
259
elif test "X$1" = X--fallback-echo; then
259
260
  # Avoid inline document here, it may be left over
260
261
  :
261
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262
263
  # Yippee, $echo works!
263
264
  :
264
265
else
389
390
 
390
391
 
391
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
392
398
# Name of the host.
393
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
394
400
# so uname gets run too.
420
426
PACKAGE_BUGREPORT=
421
427
 
422
428
ac_unique_file="acinclude.m4"
423
 
ac_default_prefix=${KDEDIR:-/usr/local/kde}
 
429
ac_default_prefix=${KDEDIR:-the kde prefix}
424
430
# Factoring default headers for most tests.
425
431
ac_includes_default="\
426
432
#include <stdio.h>
458
464
# include <unistd.h>
459
465
#endif"
460
466
 
461
 
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 CONF_FILES 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS REPO NOREPO KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE LN_S ECHO RANLIB ac_ct_RANLIB EGREP LIBTOOL KDE_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL X_INCLUDES X_LDFLAGS x_libraries x_includes LIBSM X_PRE_LIBS LIB_X11 LIBXINERAMA QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG KDECONFIG MEINPROC KDE_XSL_STYLESHEET kde_libs_prefix kde_libs_htmldir kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_mimedir kde_wallpaperdir kde_bindir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kde_styledir kde_widgetdir LIB_KDECORE LIB_KDEUI LIB_KIO LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KSYCOCA LIB_KFILE LIB_KFM GCC_PCH GCC_PCH_TRUE GCC_PCH_FALSE TOPSUBDIRS LIBOBJS LTLIBOBJS'
 
467
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 KDECONFIG kde_libs_prefix kde_libs_htmldir CONF_FILES 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL X_PRE_LIBS LIB_X11 LIB_XRENDER LIBSM X_INCLUDES X_LDFLAGS x_includes x_libraries QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS PERL MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH X_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS include_ARTS_TRUE include_ARTS_FALSE KCONFIG_COMPILER KCFG_DEPENDENCIES DCOPIDLNG DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG MEINPROC KDE_XSL_STYLESHEET XMLLINT kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_kcfgdir kde_mimedir kde_wallpaperdir kde_bindir xdg_appsdir xdg_menudir xdg_directorydir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kdeinitdir kde_styledir kde_widgetdir LIB_KDECORE LIB_KDEUI LIB_KIO LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KUTILS LIB_KDEPIM LIB_KSYCOCA LIB_KFILE LIB_KFM CONFIG_USE_KDE CONFIG_USE_KDE_TRUE CONFIG_USE_KDE_FALSE GCC_PCH GCC_PCH_TRUE GCC_PCH_FALSE HAVE_TUNEPIMP LIB_TUNEPIMP HAVE_TUNEPIMP_TRUE HAVE_TUNEPIMP_FALSE HAVE_VORBIS LIB_VORBIS HAVE_VORBIS_TRUE HAVE_VORBIS_FALSE HAVE_FLAC LIB_FLAC HAVE_FLAC_TRUE HAVE_FLAC_FALSE TOPSUBDIRS LIBOBJS LTLIBOBJS'
462
468
ac_subst_files=''
463
469
 
464
470
# Initialize some variables set by options.
817
823
 
818
824
# Be sure to have absolute paths.
819
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
821
827
do
822
828
  eval ac_val=$`echo $ac_var`
823
829
  case $ac_val in
857
863
  # Try the directory containing this script, then its parent.
858
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
859
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860
 
         X"$0" : 'X\(//\)[^/]' \| \
861
 
         X"$0" : 'X\(//\)$' \| \
862
 
         X"$0" : 'X\(/\)' \| \
863
 
         .     : '\(.\)' 2>/dev/null ||
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
864
870
echo X"$0" |
865
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
931
937
ac_env_CXXCPP_value=$CXXCPP
932
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
933
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
934
948
 
935
949
#
936
950
# Report the --help message.
964
978
  cat <<_ACEOF
965
979
Installation directories:
966
980
  --prefix=PREFIX         install architecture-independent files in PREFIX
967
 
                          [$ac_default_prefix]
 
981
                          [$ac_default_prefix]
968
982
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
969
 
                          [PREFIX]
 
983
                          [PREFIX]
970
984
 
971
985
By default, \`make install' will install all the files in
972
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1012
1026
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1013
1027
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1014
1028
  --disable-fast-perl     disable fast Makefile generation (needs perl)
1015
 
  --enable-debug=ARG    enables debug symbols (yes|no|full) default=no
 
1029
  --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
1016
1030
  --disable-debug         disables debug output and debug symbols default=no
1017
 
  --enable-strict         compiles with strict compiler options (may not work!)
 
1031
  --enable-strict         compiles with strict compiler options (may not
 
1032
                          work!)
1018
1033
  --disable-warnings      disables compilation with -Wall and similiar
1019
1034
  --enable-profile        creates profiling infos default=no
1020
 
  --enable-gcov           enables gcov test coverage support default=no
1021
1035
  --disable-dependency-tracking Speeds up one-time builds
1022
1036
  --enable-dependency-tracking  Do not reject slow dependency extractors
1023
 
  --enable-pch            enables precompiled header support (currently only KCC) default=no
1024
 
  --enable-final          build size optimized apps (experimental - needs lots of memory)
1025
 
  --disable-closure       don't delay template instantiation
 
1037
  --enable-pch            enables precompiled header support (currently only
 
1038
                          KCC) default=no
 
1039
  --enable-final          build size optimized apps (experimental - needs lots
 
1040
                          of memory)
 
1041
  --enable-closure        delay template instantiation
 
1042
  --enable-nmcheck        enable automatic namespace cleanness check
1026
1043
  --enable-shared[=PKGS]
1027
1044
                          build shared libraries [default=yes]
1028
1045
  --enable-static[=PKGS]
1031
1048
  --enable-fast-install[=PKGS]
1032
1049
                          optimize for fast installation [default=yes]
1033
1050
  --disable-libtool-lock  avoid locking (might break parallel builds)
1034
 
  --enable-objprelink     prelink apps using objprelink (obsolete)
1035
1051
  --enable-embedded       link to Qt-embedded, don't use X
1036
1052
  --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
 
1053
  --enable-mac            link to Qt/Mac (don't use X)
1037
1054
  --disable-mt            link to non-threaded Qt (deprecated)
1038
 
  --enable-kernel-threads Enable the use of the LinuxThreads port on FreeBSD/i386 only.
1039
1055
  --disable-threading     disables threading even if libpthread found
1040
1056
  --disable-rpath         do not use the rpath feature of ld
1041
1057
  --disable-path-check    don't try to find out, where to install
1047
1063
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048
1064
  --with-pic              try to use only PIC/non-PIC objects [default=use
1049
1065
                          both]
1050
 
  --with-tags=TAGS        include additional configurations [CXX,GCJ]
1051
 
  --with-xinerama         enable support for Xinerama
 
1066
  --with-tags[=TAGS]
 
1067
                          include additional configurations [automatic]
1052
1068
  --with-extra-includes=DIR
1053
1069
                          adds non standard include paths
1054
1070
  --with-extra-libs=DIR   adds non standard library paths
1055
1071
  --with-qt-dir=DIR       where the root of Qt is installed
1056
1072
  --with-qt-includes=DIR  where the Qt includes are.
1057
1073
  --with-qt-libraries=DIR where the Qt library is installed.
1058
 
  --with-kde                build with KDE, default=yes
 
1074
  --without-arts          build without aRts default=no
 
1075
  --with-kde              build with KDE, default=yes
 
1076
  --with-musicbrainz      build with MusicBrainz, default=yes
 
1077
  --with-vorbis           build with ogg/vorbis, default=yes
 
1078
  --with-flac             build with FLAC, default=yes
1059
1079
 
1060
1080
Some influential environment variables:
1061
1081
  CC          C compiler command
1068
1088
  CXX         C++ compiler command
1069
1089
  CXXFLAGS    C++ compiler flags
1070
1090
  CXXCPP      C++ preprocessor
 
1091
  F77         Fortran 77 compiler command
 
1092
  FFLAGS      Fortran 77 compiler flags
1071
1093
 
1072
1094
Use these variables to override the choices made by `configure' or to help
1073
1095
it to find libraries and programs with nonstandard names/locations.
1105
1127
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106
1128
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107
1129
esac
1108
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1109
 
# absolute.
1110
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1111
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1112
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1113
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1130
 
 
1131
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1132
# the directories may not exist.
 
1133
case `pwd` in
 
1134
.) ac_abs_builddir="$ac_dir";;
 
1135
*)
 
1136
  case "$ac_dir" in
 
1137
  .) ac_abs_builddir=`pwd`;;
 
1138
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1139
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1140
  esac;;
 
1141
esac
 
1142
case $ac_abs_builddir in
 
1143
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1144
*)
 
1145
  case ${ac_top_builddir}. in
 
1146
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1147
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1148
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1149
  esac;;
 
1150
esac
 
1151
case $ac_abs_builddir in
 
1152
.) ac_abs_srcdir=$ac_srcdir;;
 
1153
*)
 
1154
  case $ac_srcdir in
 
1155
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1156
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1157
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1158
  esac;;
 
1159
esac
 
1160
case $ac_abs_builddir in
 
1161
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1162
*)
 
1163
  case $ac_top_srcdir in
 
1164
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1165
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1166
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1167
  esac;;
 
1168
esac
1114
1169
 
1115
1170
    cd $ac_dir
1116
1171
    # Check for guested configure; otherwise get Cygnus style configure.
1121
1176
      echo
1122
1177
      $SHELL $ac_srcdir/configure  --help=recursive
1123
1178
    elif test -f $ac_srcdir/configure.ac ||
1124
 
           test -f $ac_srcdir/configure.in; then
 
1179
           test -f $ac_srcdir/configure.in; then
1125
1180
      echo
1126
1181
      $ac_configure --help
1127
1182
    else
1128
1183
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129
1184
    fi
1130
 
    cd $ac_popdir
 
1185
    cd "$ac_popdir"
1131
1186
  done
1132
1187
fi
1133
1188
 
1135
1190
if $ac_init_version; then
1136
1191
  cat <<\_ACEOF
1137
1192
 
1138
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139
 
Free Software Foundation, Inc.
 
1193
Copyright (C) 2003 Free Software Foundation, Inc.
1140
1194
This configure script is free software; the Free Software Foundation
1141
1195
gives unlimited permission to copy, distribute and modify it.
1142
1196
_ACEOF
1148
1202
running configure, to aid debugging if configure makes a mistake.
1149
1203
 
1150
1204
It was created by $as_me, which was
1151
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
1205
generated by GNU Autoconf 2.59.  Invocation command line was
1152
1206
 
1153
1207
  $ $0 $@
1154
1208
 
1225
1279
    2)
1226
1280
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227
1281
      if test $ac_must_keep_next = true; then
1228
 
        ac_must_keep_next=false # Got value, back to normal.
 
1282
        ac_must_keep_next=false # Got value, back to normal.
1229
1283
      else
1230
 
        case $ac_arg in
1231
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1232
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1235
 
            case "$ac_configure_args0 " in
1236
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237
 
            esac
1238
 
            ;;
1239
 
          -* ) ac_must_keep_next=true ;;
1240
 
        esac
 
1284
        case $ac_arg in
 
1285
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1286
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1287
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1288
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1289
            case "$ac_configure_args0 " in
 
1290
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1291
            esac
 
1292
            ;;
 
1293
          -* ) ac_must_keep_next=true ;;
 
1294
        esac
1241
1295
      fi
1242
1296
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243
1297
      # Get rid of the leading space.
1271
1325
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272
1326
    *ac_space=\ *)
1273
1327
      sed -n \
1274
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1328
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1329
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276
1330
      ;;
1277
1331
    *)
1278
1332
      sed -n \
1279
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1333
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280
1334
      ;;
1281
1335
    esac;
1282
1336
}
1305
1359
      for ac_var in $ac_subst_files
1306
1360
      do
1307
1361
        eval ac_val=$`echo $ac_var`
1308
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1362
        echo "$ac_var='"'"'$ac_val'"'"'"
1309
1363
      done | sort
1310
1364
      echo
1311
1365
    fi
1324
1378
      echo "$as_me: caught signal $ac_signal"
1325
1379
    echo "$as_me: exit $exit_status"
1326
1380
  } >&5
1327
 
  rm -f core core.* *.core &&
 
1381
  rm -f core *.core &&
1328
1382
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329
1383
    exit $exit_status
1330
1384
     ' 0
1404
1458
# value.
1405
1459
ac_cache_corrupted=false
1406
1460
for ac_var in `(set) 2>&1 |
1407
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1461
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408
1462
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409
1463
  eval ac_new_set=\$ac_env_${ac_var}_set
1410
1464
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1421
1475
    ,);;
1422
1476
    *)
1423
1477
      if test "x$ac_old_val" != "x$ac_new_val"; then
1424
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1478
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425
1479
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1480
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1427
1481
echo "$as_me:   former value:  $ac_old_val" >&2;}
1428
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1482
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1429
1483
echo "$as_me:   current value: $ac_new_val" >&2;}
1430
 
        ac_cache_corrupted=:
 
1484
        ac_cache_corrupted=:
1431
1485
      fi;;
1432
1486
  esac
1433
1487
  # Pass precious variables to config.status.
1616
1670
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1617
1671
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1618
1672
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1673
# OS/2's system install, which has a completely different semantic
1619
1674
# ./install, which can be erroneously created by make from ./install.sh.
1620
1675
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1621
1676
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1632
1687
case $as_dir/ in
1633
1688
  ./ | .// | /cC/* | \
1634
1689
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1690
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1635
1691
  /usr/ucb/* ) ;;
1636
1692
  *)
1637
1693
    # OSF1 and SCO ODT 3.0 have their own names for install.
1639
1695
    # by default.
1640
1696
    for ac_prog in ginstall scoinst install; do
1641
1697
      for ac_exec_ext in '' $ac_executable_extensions; do
1642
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1643
 
          if test $ac_prog = install &&
1644
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1645
 
            # AIX install.  It has an incompatible calling convention.
1646
 
            :
1647
 
          elif test $ac_prog = install &&
1648
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1649
 
            # program-specific install script used by HP pwplus--don't use.
1650
 
            :
1651
 
          else
1652
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1653
 
            break 3
1654
 
          fi
1655
 
        fi
 
1698
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1699
          if test $ac_prog = install &&
 
1700
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1701
            # AIX install.  It has an incompatible calling convention.
 
1702
            :
 
1703
          elif test $ac_prog = install &&
 
1704
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1705
            # program-specific install script used by HP pwplus--don't use.
 
1706
            :
 
1707
          else
 
1708
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1709
            break 3
 
1710
          fi
 
1711
        fi
1656
1712
      done
1657
1713
    done
1658
1714
    ;;
1811
1867
 
1812
1868
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1813
1869
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1814
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1870
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1815
1871
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1816
1872
  echo $ECHO_N "(cached) $ECHO_C" >&6
1817
1873
else
1867
1923
 
1868
1924
# Define the identity of the package.
1869
1925
 PACKAGE=kid3
1870
 
 VERSION=0.5
 
1926
 VERSION=0.6
1871
1927
 
1872
1928
 
1873
1929
cat >>confdefs.h <<_ACEOF
1997
2053
  unset CDPATH
1998
2054
 
1999
2055
 
2000
 
  if test "x$prefix" = "xNONE"; then
2001
 
    prefix=$ac_default_prefix
2002
 
    ac_configure_args="$ac_configure_args --prefix=$prefix"
2003
 
  fi
2004
 
  # And delete superflous '/' to make compares easier
 
2056
 
 
2057
    kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
 
2058
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
 
2059
    if test -n "$KDEDIRS"; then
 
2060
       kde_save_IFS=$IFS
 
2061
       IFS=:
 
2062
       for dir in $KDEDIRS; do
 
2063
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
2064
       done
 
2065
       IFS=$kde_save_IFS
 
2066
    fi
 
2067
 
 
2068
  if test "x$prefix" = "xNONE"; then
 
2069
 
 
2070
   echo "$as_me:$LINENO: checking for kde-config" >&5
 
2071
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
 
2072
   if test -n "$KDECONFIG"; then
 
2073
        kde_cv_path="$KDECONFIG";
 
2074
   else
 
2075
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
 
2076
 
 
2077
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
2078
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2079
else
 
2080
 
 
2081
        kde_cv_path="NONE"
 
2082
        kde_save_IFS=$IFS
 
2083
        IFS=':'
 
2084
        dirs=""
 
2085
        for dir in $PATH; do
 
2086
          dirs="$dirs $dir"
 
2087
        done
 
2088
        if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
 
2089
        else      dirs="$dirs $kde_default_bindirs"
 
2090
        fi
 
2091
        IFS=$kde_save_IFS
 
2092
 
 
2093
        for dir in $dirs; do
 
2094
          if test -x "$dir/kde-config"; then
 
2095
            if test -n ""
 
2096
            then
 
2097
              evalstr="$dir/kde-config  2>&1 "
 
2098
              if eval $evalstr; then
 
2099
                kde_cv_path="$dir/kde-config"
 
2100
                break
 
2101
              fi
 
2102
            else
 
2103
                kde_cv_path="$dir/kde-config"
 
2104
                break
 
2105
            fi
 
2106
          fi
 
2107
        done
 
2108
 
 
2109
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
2110
 
 
2111
 
 
2112
fi
 
2113
 
 
2114
 
 
2115
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
2116
 
 
2117
   fi
 
2118
 
 
2119
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
2120
      echo "$as_me:$LINENO: result: not found" >&5
 
2121
echo "${ECHO_T}not found" >&6
 
2122
 
 
2123
    { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
 
2124
Please check whether you installed KDE correctly.
 
2125
" >&5
 
2126
echo "$as_me: error: The important program kde-config was not found!
 
2127
Please check whether you installed KDE correctly.
 
2128
" >&2;}
 
2129
   { (exit 1); exit 1; }; }
 
2130
 
 
2131
   else
 
2132
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
2133
echo "${ECHO_T}$kde_cv_path" >&6
 
2134
      KDECONFIG=$kde_cv_path
 
2135
 
 
2136
   fi
 
2137
 
 
2138
  else
 
2139
        kde_save_PATH="$PATH"
 
2140
    PATH="$exec_prefix/bin:$prefix/bin:$PATH"
 
2141
 
 
2142
   echo "$as_me:$LINENO: checking for kde-config" >&5
 
2143
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
 
2144
   if test -n "$KDECONFIG"; then
 
2145
        kde_cv_path="$KDECONFIG";
 
2146
   else
 
2147
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
 
2148
 
 
2149
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
2150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2151
else
 
2152
 
 
2153
        kde_cv_path="NONE"
 
2154
        kde_save_IFS=$IFS
 
2155
        IFS=':'
 
2156
        dirs=""
 
2157
        for dir in $PATH; do
 
2158
          dirs="$dirs $dir"
 
2159
        done
 
2160
        if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
 
2161
        else      dirs="$dirs $kde_default_bindirs"
 
2162
        fi
 
2163
        IFS=$kde_save_IFS
 
2164
 
 
2165
        for dir in $dirs; do
 
2166
          if test -x "$dir/kde-config"; then
 
2167
            if test -n ""
 
2168
            then
 
2169
              evalstr="$dir/kde-config  2>&1 "
 
2170
              if eval $evalstr; then
 
2171
                kde_cv_path="$dir/kde-config"
 
2172
                break
 
2173
              fi
 
2174
            else
 
2175
                kde_cv_path="$dir/kde-config"
 
2176
                break
 
2177
            fi
 
2178
          fi
 
2179
        done
 
2180
 
 
2181
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
2182
 
 
2183
 
 
2184
fi
 
2185
 
 
2186
 
 
2187
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
2188
 
 
2189
   fi
 
2190
 
 
2191
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
2192
      echo "$as_me:$LINENO: result: not found" >&5
 
2193
echo "${ECHO_T}not found" >&6
 
2194
 
 
2195
    { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
 
2196
Please check whether you installed KDE correctly.
 
2197
" >&5
 
2198
echo "$as_me: error: The important program kde-config was not found!
 
2199
Please check whether you installed KDE correctly.
 
2200
" >&2;}
 
2201
   { (exit 1); exit 1; }; }
 
2202
 
 
2203
   else
 
2204
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
2205
echo "${ECHO_T}$kde_cv_path" >&6
 
2206
      KDECONFIG=$kde_cv_path
 
2207
 
 
2208
   fi
 
2209
 
 
2210
    PATH="$kde_save_PATH"
 
2211
  fi
 
2212
 
 
2213
  kde_libs_prefix=`$KDECONFIG --prefix`
 
2214
  if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
 
2215
       { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
 
2216
                    This means it has been moved since you installed it.
 
2217
                    This won't work. Please recompile kdelibs for the new prefix.
 
2218
                    " >&5
 
2219
echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
 
2220
                    This means it has been moved since you installed it.
 
2221
                    This won't work. Please recompile kdelibs for the new prefix.
 
2222
                    " >&2;}
 
2223
   { (exit 1); exit 1; }; }
 
2224
  fi
 
2225
  kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
 
2226
 
 
2227
  echo "$as_me:$LINENO: checking where to install" >&5
 
2228
echo $ECHO_N "checking where to install... $ECHO_C" >&6
 
2229
  if test "x$prefix" = "xNONE"; then
 
2230
    prefix=$kde_libs_prefix
 
2231
    echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
 
2232
echo "${ECHO_T}$prefix (as returned by kde-config)" >&6
 
2233
  else
 
2234
        given_prefix=$prefix
 
2235
    echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
 
2236
echo "${ECHO_T}$prefix (as requested)" >&6
 
2237
  fi
 
2238
 
 
2239
  # And delete superfluous '/' to make compares easier
2005
2240
  prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2006
2241
  exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2242
  given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
 
2243
 
 
2244
 
 
2245
 
 
2246
 
 
2247
 
2007
2248
 
2008
2249
    # Check whether --enable-fast-perl or --disable-fast-perl was given.
2009
2250
if test "${enable_fast_perl+set}" = set; then
2097
2338
 
2098
2339
 
2099
2340
 
 
2341
 
2100
2342
  # Check whether --enable-debug or --disable-debug was given.
2101
2343
if test "${enable_debug+set}" = set; then
2102
2344
  enableval="$enable_debug"
2169
2411
 
2170
2412
fi;
2171
2413
 
2172
 
  # Check whether --enable-gcov or --disable-gcov was given.
2173
 
if test "${enable_gcov+set}" = set; then
2174
 
  enableval="$enable_gcov"
2175
 
  kde_use_gcov=$enableval
2176
 
else
2177
 
  kde_use_gcov=no
2178
 
 
2179
 
fi;
2180
 
 
2181
2414
    CFLAGS=" $CFLAGS"
2182
2415
 
2183
2416
  ac_ext=c
2516
2749
  (exit $ac_status); }
2517
2750
 
2518
2751
cat >conftest.$ac_ext <<_ACEOF
2519
 
#line $LINENO "configure"
2520
2752
/* confdefs.h.  */
2521
2753
_ACEOF
2522
2754
cat confdefs.h >>conftest.$ac_ext
2536
2768
# Try to create an executable without -o first, disregard a.out.
2537
2769
# It will help us diagnose broken compilers, and finding out an intuition
2538
2770
# of exeext.
2539
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2540
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2771
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2772
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2541
2773
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2542
2774
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2543
2775
  (eval $ac_link_default) 2>&5
2557
2789
  test -f "$ac_file" || continue
2558
2790
  case $ac_file in
2559
2791
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2560
 
        ;;
 
2792
        ;;
2561
2793
    conftest.$ac_ext )
2562
 
        # This is the source file.
2563
 
        ;;
 
2794
        # This is the source file.
 
2795
        ;;
2564
2796
    [ab].out )
2565
 
        # We found the default executable, but exeext='' is most
2566
 
        # certainly right.
2567
 
        break;;
 
2797
        # We found the default executable, but exeext='' is most
 
2798
        # certainly right.
 
2799
        break;;
2568
2800
    *.* )
2569
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2570
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2571
 
        # but it would be cool to find out if it's true.  Does anybody
2572
 
        # maintain Libtool? --akim.
2573
 
        export ac_cv_exeext
2574
 
        break;;
 
2801
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2802
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2803
        # but it would be cool to find out if it's true.  Does anybody
 
2804
        # maintain Libtool? --akim.
 
2805
        export ac_cv_exeext
 
2806
        break;;
2575
2807
    * )
2576
 
        break;;
 
2808
        break;;
2577
2809
  esac
2578
2810
done
2579
2811
else
2647
2879
  case $ac_file in
2648
2880
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2649
2881
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2650
 
          export ac_cv_exeext
2651
 
          break;;
 
2882
          export ac_cv_exeext
 
2883
          break;;
2652
2884
    * ) break;;
2653
2885
  esac
2654
2886
done
2673
2905
  echo $ECHO_N "(cached) $ECHO_C" >&6
2674
2906
else
2675
2907
  cat >conftest.$ac_ext <<_ACEOF
2676
 
#line $LINENO "configure"
2677
2908
/* confdefs.h.  */
2678
2909
_ACEOF
2679
2910
cat confdefs.h >>conftest.$ac_ext
2724
2955
  echo $ECHO_N "(cached) $ECHO_C" >&6
2725
2956
else
2726
2957
  cat >conftest.$ac_ext <<_ACEOF
2727
 
#line $LINENO "configure"
2728
2958
/* confdefs.h.  */
2729
2959
_ACEOF
2730
2960
cat confdefs.h >>conftest.$ac_ext
2744
2974
_ACEOF
2745
2975
rm -f conftest.$ac_objext
2746
2976
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747
 
  (eval $ac_compile) 2>&5
 
2977
  (eval $ac_compile) 2>conftest.er1
2748
2978
  ac_status=$?
 
2979
  grep -v '^ *+' conftest.er1 >conftest.err
 
2980
  rm -f conftest.er1
 
2981
  cat conftest.err >&5
2749
2982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750
2983
  (exit $ac_status); } &&
2751
 
         { ac_try='test -s conftest.$ac_objext'
 
2984
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2985
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2986
  (eval $ac_try) 2>&5
 
2987
  ac_status=$?
 
2988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2989
  (exit $ac_status); }; } &&
 
2990
         { ac_try='test -s conftest.$ac_objext'
2752
2991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753
2992
  (eval $ac_try) 2>&5
2754
2993
  ac_status=$?
2761
3000
 
2762
3001
ac_compiler_gnu=no
2763
3002
fi
2764
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3003
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765
3004
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2766
3005
 
2767
3006
fi
2777
3016
  echo $ECHO_N "(cached) $ECHO_C" >&6
2778
3017
else
2779
3018
  cat >conftest.$ac_ext <<_ACEOF
2780
 
#line $LINENO "configure"
2781
3019
/* confdefs.h.  */
2782
3020
_ACEOF
2783
3021
cat confdefs.h >>conftest.$ac_ext
2794
3032
_ACEOF
2795
3033
rm -f conftest.$ac_objext
2796
3034
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797
 
  (eval $ac_compile) 2>&5
 
3035
  (eval $ac_compile) 2>conftest.er1
2798
3036
  ac_status=$?
 
3037
  grep -v '^ *+' conftest.er1 >conftest.err
 
3038
  rm -f conftest.er1
 
3039
  cat conftest.err >&5
2799
3040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800
3041
  (exit $ac_status); } &&
2801
 
         { ac_try='test -s conftest.$ac_objext'
 
3042
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3044
  (eval $ac_try) 2>&5
 
3045
  ac_status=$?
 
3046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3047
  (exit $ac_status); }; } &&
 
3048
         { ac_try='test -s conftest.$ac_objext'
2802
3049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803
3050
  (eval $ac_try) 2>&5
2804
3051
  ac_status=$?
2811
3058
 
2812
3059
ac_cv_prog_cc_g=no
2813
3060
fi
2814
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3061
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2815
3062
fi
2816
3063
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2817
3064
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2838
3085
  ac_cv_prog_cc_stdc=no
2839
3086
ac_save_CC=$CC
2840
3087
cat >conftest.$ac_ext <<_ACEOF
2841
 
#line $LINENO "configure"
2842
3088
/* confdefs.h.  */
2843
3089
_ACEOF
2844
3090
cat confdefs.h >>conftest.$ac_ext
2866
3112
  va_end (v);
2867
3113
  return s;
2868
3114
}
 
3115
 
 
3116
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3117
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3118
   These don't provoke an error unfortunately, instead are silently treated
 
3119
   as 'x'.  The following induces an error, until -std1 is added to get
 
3120
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3121
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3122
   that's true only with -std1.  */
 
3123
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3124
 
2869
3125
int test (int i, double x);
2870
3126
struct s1 {int (*f) (int a);};
2871
3127
struct s2 {int (*f) (double a);};
2892
3148
  CC="$ac_save_CC $ac_arg"
2893
3149
  rm -f conftest.$ac_objext
2894
3150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2895
 
  (eval $ac_compile) 2>&5
 
3151
  (eval $ac_compile) 2>conftest.er1
2896
3152
  ac_status=$?
 
3153
  grep -v '^ *+' conftest.er1 >conftest.err
 
3154
  rm -f conftest.er1
 
3155
  cat conftest.err >&5
2897
3156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898
3157
  (exit $ac_status); } &&
2899
 
         { ac_try='test -s conftest.$ac_objext'
 
3158
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3160
  (eval $ac_try) 2>&5
 
3161
  ac_status=$?
 
3162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3163
  (exit $ac_status); }; } &&
 
3164
         { ac_try='test -s conftest.$ac_objext'
2900
3165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901
3166
  (eval $ac_try) 2>&5
2902
3167
  ac_status=$?
2909
3174
sed 's/^/| /' conftest.$ac_ext >&5
2910
3175
 
2911
3176
fi
2912
 
rm -f conftest.$ac_objext
 
3177
rm -f conftest.err conftest.$ac_objext
2913
3178
done
2914
3179
rm -f conftest.$ac_ext conftest.$ac_objext
2915
3180
CC=$ac_save_CC
2937
3202
_ACEOF
2938
3203
rm -f conftest.$ac_objext
2939
3204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940
 
  (eval $ac_compile) 2>&5
 
3205
  (eval $ac_compile) 2>conftest.er1
2941
3206
  ac_status=$?
 
3207
  grep -v '^ *+' conftest.er1 >conftest.err
 
3208
  rm -f conftest.er1
 
3209
  cat conftest.err >&5
2942
3210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943
3211
  (exit $ac_status); } &&
2944
 
         { ac_try='test -s conftest.$ac_objext'
 
3212
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3214
  (eval $ac_try) 2>&5
 
3215
  ac_status=$?
 
3216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3217
  (exit $ac_status); }; } &&
 
3218
         { ac_try='test -s conftest.$ac_objext'
2945
3219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946
3220
  (eval $ac_try) 2>&5
2947
3221
  ac_status=$?
2948
3222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949
3223
  (exit $ac_status); }; }; then
2950
3224
  for ac_declaration in \
2951
 
   ''\
2952
 
   '#include <stdlib.h>' \
 
3225
   '' \
2953
3226
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2954
3227
   'extern "C" void std::exit (int); using std::exit;' \
2955
3228
   'extern "C" void exit (int) throw ();' \
2957
3230
   'void exit (int);'
2958
3231
do
2959
3232
  cat >conftest.$ac_ext <<_ACEOF
2960
 
#line $LINENO "configure"
2961
3233
/* confdefs.h.  */
2962
3234
_ACEOF
2963
3235
cat confdefs.h >>conftest.$ac_ext
2964
3236
cat >>conftest.$ac_ext <<_ACEOF
2965
3237
/* end confdefs.h.  */
 
3238
$ac_declaration
2966
3239
#include <stdlib.h>
2967
 
$ac_declaration
2968
3240
int
2969
3241
main ()
2970
3242
{
2975
3247
_ACEOF
2976
3248
rm -f conftest.$ac_objext
2977
3249
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978
 
  (eval $ac_compile) 2>&5
 
3250
  (eval $ac_compile) 2>conftest.er1
2979
3251
  ac_status=$?
 
3252
  grep -v '^ *+' conftest.er1 >conftest.err
 
3253
  rm -f conftest.er1
 
3254
  cat conftest.err >&5
2980
3255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981
3256
  (exit $ac_status); } &&
2982
 
         { ac_try='test -s conftest.$ac_objext'
 
3257
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3259
  (eval $ac_try) 2>&5
 
3260
  ac_status=$?
 
3261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3262
  (exit $ac_status); }; } &&
 
3263
         { ac_try='test -s conftest.$ac_objext'
2983
3264
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984
3265
  (eval $ac_try) 2>&5
2985
3266
  ac_status=$?
2992
3273
 
2993
3274
continue
2994
3275
fi
2995
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3276
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996
3277
  cat >conftest.$ac_ext <<_ACEOF
2997
 
#line $LINENO "configure"
2998
3278
/* confdefs.h.  */
2999
3279
_ACEOF
3000
3280
cat confdefs.h >>conftest.$ac_ext
3011
3291
_ACEOF
3012
3292
rm -f conftest.$ac_objext
3013
3293
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014
 
  (eval $ac_compile) 2>&5
 
3294
  (eval $ac_compile) 2>conftest.er1
3015
3295
  ac_status=$?
 
3296
  grep -v '^ *+' conftest.er1 >conftest.err
 
3297
  rm -f conftest.er1
 
3298
  cat conftest.err >&5
3016
3299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017
3300
  (exit $ac_status); } &&
3018
 
         { ac_try='test -s conftest.$ac_objext'
 
3301
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3303
  (eval $ac_try) 2>&5
 
3304
  ac_status=$?
 
3305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3306
  (exit $ac_status); }; } &&
 
3307
         { ac_try='test -s conftest.$ac_objext'
3019
3308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020
3309
  (eval $ac_try) 2>&5
3021
3310
  ac_status=$?
3027
3316
sed 's/^/| /' conftest.$ac_ext >&5
3028
3317
 
3029
3318
fi
3030
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3319
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3031
3320
done
3032
3321
rm -f conftest*
3033
3322
if test -n "$ac_declaration"; then
3041
3330
sed 's/^/| /' conftest.$ac_ext >&5
3042
3331
 
3043
3332
fi
3044
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3333
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3045
3334
ac_ext=c
3046
3335
ac_cpp='$CPP $CPPFLAGS'
3047
3336
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179
3468
  # On the NeXT, cc -E runs the code through the compiler's parser,
3180
3469
  # not just through cpp. "Syntax error" is here to catch this case.
3181
3470
  cat >conftest.$ac_ext <<_ACEOF
3182
 
#line $LINENO "configure"
3183
3471
/* confdefs.h.  */
3184
3472
_ACEOF
3185
3473
cat confdefs.h >>conftest.$ac_ext
3190
3478
#else
3191
3479
# include <assert.h>
3192
3480
#endif
3193
 
                     Syntax error
 
3481
                     Syntax error
3194
3482
_ACEOF
3195
3483
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3196
3484
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3202
3490
  (exit $ac_status); } >/dev/null; then
3203
3491
  if test -s conftest.err; then
3204
3492
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3493
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3205
3494
  else
3206
3495
    ac_cpp_err=
3207
3496
  fi
3222
3511
  # OK, works on sane cases.  Now check whether non-existent headers
3223
3512
  # can be detected and how.
3224
3513
  cat >conftest.$ac_ext <<_ACEOF
3225
 
#line $LINENO "configure"
3226
3514
/* confdefs.h.  */
3227
3515
_ACEOF
3228
3516
cat confdefs.h >>conftest.$ac_ext
3240
3528
  (exit $ac_status); } >/dev/null; then
3241
3529
  if test -s conftest.err; then
3242
3530
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3531
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243
3532
  else
3244
3533
    ac_cpp_err=
3245
3534
  fi
3286
3575
  # On the NeXT, cc -E runs the code through the compiler's parser,
3287
3576
  # not just through cpp. "Syntax error" is here to catch this case.
3288
3577
  cat >conftest.$ac_ext <<_ACEOF
3289
 
#line $LINENO "configure"
3290
3578
/* confdefs.h.  */
3291
3579
_ACEOF
3292
3580
cat confdefs.h >>conftest.$ac_ext
3297
3585
#else
3298
3586
# include <assert.h>
3299
3587
#endif
3300
 
                     Syntax error
 
3588
                     Syntax error
3301
3589
_ACEOF
3302
3590
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3303
3591
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3309
3597
  (exit $ac_status); } >/dev/null; then
3310
3598
  if test -s conftest.err; then
3311
3599
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3600
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312
3601
  else
3313
3602
    ac_cpp_err=
3314
3603
  fi
3329
3618
  # OK, works on sane cases.  Now check whether non-existent headers
3330
3619
  # can be detected and how.
3331
3620
  cat >conftest.$ac_ext <<_ACEOF
3332
 
#line $LINENO "configure"
3333
3621
/* confdefs.h.  */
3334
3622
_ACEOF
3335
3623
cat confdefs.h >>conftest.$ac_ext
3347
3635
  (exit $ac_status); } >/dev/null; then
3348
3636
  if test -s conftest.err; then
3349
3637
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3638
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3350
3639
  else
3351
3640
    ac_cpp_err=
3352
3641
  fi
3388
3677
 
3389
3678
  if test "$GCC" = "yes"; then
3390
3679
    if test "$kde_use_debug_code" != "no"; then
3391
 
      if test $kde_use_debug_code = "full" || test $kde_use_gcov = "yes"; then
3392
 
        CFLAGS="-g3 $CFLAGS"
 
3680
      if test $kde_use_debug_code = "full"; then
 
3681
        CFLAGS="-g3 -fno-inline $CFLAGS"
3393
3682
      else
3394
3683
        CFLAGS="-g -O2 $CFLAGS"
3395
3684
      fi
3533
3822
  echo $ECHO_N "(cached) $ECHO_C" >&6
3534
3823
else
3535
3824
  cat >conftest.$ac_ext <<_ACEOF
3536
 
#line $LINENO "configure"
3537
3825
/* confdefs.h.  */
3538
3826
_ACEOF
3539
3827
cat confdefs.h >>conftest.$ac_ext
3553
3841
_ACEOF
3554
3842
rm -f conftest.$ac_objext
3555
3843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556
 
  (eval $ac_compile) 2>&5
 
3844
  (eval $ac_compile) 2>conftest.er1
3557
3845
  ac_status=$?
 
3846
  grep -v '^ *+' conftest.er1 >conftest.err
 
3847
  rm -f conftest.er1
 
3848
  cat conftest.err >&5
3558
3849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559
3850
  (exit $ac_status); } &&
3560
 
         { ac_try='test -s conftest.$ac_objext'
 
3851
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3853
  (eval $ac_try) 2>&5
 
3854
  ac_status=$?
 
3855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3856
  (exit $ac_status); }; } &&
 
3857
         { ac_try='test -s conftest.$ac_objext'
3561
3858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562
3859
  (eval $ac_try) 2>&5
3563
3860
  ac_status=$?
3570
3867
 
3571
3868
ac_compiler_gnu=no
3572
3869
fi
3573
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3870
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574
3871
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3575
3872
 
3576
3873
fi
3586
3883
  echo $ECHO_N "(cached) $ECHO_C" >&6
3587
3884
else
3588
3885
  cat >conftest.$ac_ext <<_ACEOF
3589
 
#line $LINENO "configure"
3590
3886
/* confdefs.h.  */
3591
3887
_ACEOF
3592
3888
cat confdefs.h >>conftest.$ac_ext
3603
3899
_ACEOF
3604
3900
rm -f conftest.$ac_objext
3605
3901
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606
 
  (eval $ac_compile) 2>&5
 
3902
  (eval $ac_compile) 2>conftest.er1
3607
3903
  ac_status=$?
 
3904
  grep -v '^ *+' conftest.er1 >conftest.err
 
3905
  rm -f conftest.er1
 
3906
  cat conftest.err >&5
3608
3907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609
3908
  (exit $ac_status); } &&
3610
 
         { ac_try='test -s conftest.$ac_objext'
 
3909
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3911
  (eval $ac_try) 2>&5
 
3912
  ac_status=$?
 
3913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3914
  (exit $ac_status); }; } &&
 
3915
         { ac_try='test -s conftest.$ac_objext'
3611
3916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612
3917
  (eval $ac_try) 2>&5
3613
3918
  ac_status=$?
3620
3925
 
3621
3926
ac_cv_prog_cxx_g=no
3622
3927
fi
3623
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3928
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3624
3929
fi
3625
3930
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3626
3931
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3640
3945
  fi
3641
3946
fi
3642
3947
for ac_declaration in \
3643
 
   ''\
3644
 
   '#include <stdlib.h>' \
 
3948
   '' \
3645
3949
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3646
3950
   'extern "C" void std::exit (int); using std::exit;' \
3647
3951
   'extern "C" void exit (int) throw ();' \
3649
3953
   'void exit (int);'
3650
3954
do
3651
3955
  cat >conftest.$ac_ext <<_ACEOF
3652
 
#line $LINENO "configure"
3653
3956
/* confdefs.h.  */
3654
3957
_ACEOF
3655
3958
cat confdefs.h >>conftest.$ac_ext
3656
3959
cat >>conftest.$ac_ext <<_ACEOF
3657
3960
/* end confdefs.h.  */
 
3961
$ac_declaration
3658
3962
#include <stdlib.h>
3659
 
$ac_declaration
3660
3963
int
3661
3964
main ()
3662
3965
{
3667
3970
_ACEOF
3668
3971
rm -f conftest.$ac_objext
3669
3972
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670
 
  (eval $ac_compile) 2>&5
 
3973
  (eval $ac_compile) 2>conftest.er1
3671
3974
  ac_status=$?
 
3975
  grep -v '^ *+' conftest.er1 >conftest.err
 
3976
  rm -f conftest.er1
 
3977
  cat conftest.err >&5
3672
3978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673
3979
  (exit $ac_status); } &&
3674
 
         { ac_try='test -s conftest.$ac_objext'
 
3980
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3982
  (eval $ac_try) 2>&5
 
3983
  ac_status=$?
 
3984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3985
  (exit $ac_status); }; } &&
 
3986
         { ac_try='test -s conftest.$ac_objext'
3675
3987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676
3988
  (eval $ac_try) 2>&5
3677
3989
  ac_status=$?
3684
3996
 
3685
3997
continue
3686
3998
fi
3687
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3999
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3688
4000
  cat >conftest.$ac_ext <<_ACEOF
3689
 
#line $LINENO "configure"
3690
4001
/* confdefs.h.  */
3691
4002
_ACEOF
3692
4003
cat confdefs.h >>conftest.$ac_ext
3703
4014
_ACEOF
3704
4015
rm -f conftest.$ac_objext
3705
4016
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706
 
  (eval $ac_compile) 2>&5
 
4017
  (eval $ac_compile) 2>conftest.er1
3707
4018
  ac_status=$?
 
4019
  grep -v '^ *+' conftest.er1 >conftest.err
 
4020
  rm -f conftest.er1
 
4021
  cat conftest.err >&5
3708
4022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709
4023
  (exit $ac_status); } &&
3710
 
         { ac_try='test -s conftest.$ac_objext'
 
4024
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4026
  (eval $ac_try) 2>&5
 
4027
  ac_status=$?
 
4028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4029
  (exit $ac_status); }; } &&
 
4030
         { ac_try='test -s conftest.$ac_objext'
3711
4031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712
4032
  (eval $ac_try) 2>&5
3713
4033
  ac_status=$?
3719
4039
sed 's/^/| /' conftest.$ac_ext >&5
3720
4040
 
3721
4041
fi
3722
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4042
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3723
4043
done
3724
4044
rm -f conftest*
3725
4045
if test -n "$ac_declaration"; then
3840
4160
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
3841
4161
    if test "$kde_use_debug_code" != "no"; then
3842
4162
      if test "$CXX" = "KCC"; then
3843
 
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
 
4163
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
3844
4164
      else
3845
4165
        if test "$kde_use_debug_code" = "full"; then
3846
 
          CXXFLAGS="-g3 $CXXFLAGS"
 
4166
          CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
3847
4167
        else
3848
4168
          CXXFLAGS="-g -O2 $CXXFLAGS"
3849
4169
        fi
3851
4171
 
3852
4172
echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
3853
4173
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
3854
 
kde_cache=`echo fno-builtin | sed 'y% .=/+-%____p_%'`
 
4174
kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
3855
4175
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3856
4176
  echo $ECHO_N "(cached) $ECHO_C" >&6
3857
4177
else
3872
4192
  save_CXXFLAGS="$CXXFLAGS"
3873
4193
  CXXFLAGS="$CXXFLAGS -fno-builtin"
3874
4194
  cat >conftest.$ac_ext <<_ACEOF
3875
 
#line $LINENO "configure"
3876
4195
/* confdefs.h.  */
3877
4196
_ACEOF
3878
4197
cat confdefs.h >>conftest.$ac_ext
3889
4208
_ACEOF
3890
4209
rm -f conftest.$ac_objext conftest$ac_exeext
3891
4210
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3892
 
  (eval $ac_link) 2>&5
 
4211
  (eval $ac_link) 2>conftest.er1
3893
4212
  ac_status=$?
 
4213
  grep -v '^ *+' conftest.er1 >conftest.err
 
4214
  rm -f conftest.er1
 
4215
  cat conftest.err >&5
3894
4216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895
4217
  (exit $ac_status); } &&
3896
 
         { ac_try='test -s conftest$ac_exeext'
 
4218
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4220
  (eval $ac_try) 2>&5
 
4221
  ac_status=$?
 
4222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4223
  (exit $ac_status); }; } &&
 
4224
         { ac_try='test -s conftest$ac_exeext'
3897
4225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898
4226
  (eval $ac_try) 2>&5
3899
4227
  ac_status=$?
3905
4233
sed 's/^/| /' conftest.$ac_ext >&5
3906
4234
 
3907
4235
fi
3908
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4236
rm -f conftest.err conftest.$ac_objext \
 
4237
      conftest$ac_exeext conftest.$ac_ext
3909
4238
  CXXFLAGS="$save_CXXFLAGS"
3910
4239
  ac_ext=c
3911
4240
ac_cpp='$CPP $CPPFLAGS'
3932
4261
 
3933
4262
echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
3934
4263
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
3935
 
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-%____p_%'`
 
4264
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
3936
4265
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3937
4266
  echo $ECHO_N "(cached) $ECHO_C" >&6
3938
4267
else
3951
4280
  save_CXXFLAGS="$CXXFLAGS"
3952
4281
  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
3953
4282
  cat >conftest.$ac_ext <<_ACEOF
3954
 
#line $LINENO "configure"
3955
4283
/* confdefs.h.  */
3956
4284
_ACEOF
3957
4285
cat confdefs.h >>conftest.$ac_ext
3968
4296
_ACEOF
3969
4297
rm -f conftest.$ac_objext conftest$ac_exeext
3970
4298
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3971
 
  (eval $ac_link) 2>&5
 
4299
  (eval $ac_link) 2>conftest.er1
3972
4300
  ac_status=$?
 
4301
  grep -v '^ *+' conftest.er1 >conftest.err
 
4302
  rm -f conftest.er1
 
4303
  cat conftest.err >&5
3973
4304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974
4305
  (exit $ac_status); } &&
3975
 
         { ac_try='test -s conftest$ac_exeext'
 
4306
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4308
  (eval $ac_try) 2>&5
 
4309
  ac_status=$?
 
4310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4311
  (exit $ac_status); }; } &&
 
4312
         { ac_try='test -s conftest$ac_exeext'
3976
4313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977
4314
  (eval $ac_try) 2>&5
3978
4315
  ac_status=$?
3984
4321
sed 's/^/| /' conftest.$ac_ext >&5
3985
4322
 
3986
4323
fi
3987
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4324
rm -f conftest.err conftest.$ac_objext \
 
4325
      conftest$ac_exeext conftest.$ac_ext
3988
4326
  CXXFLAGS="$save_CXXFLAGS"
3989
4327
  ac_ext=c
3990
4328
ac_cpp='$CPP $CPPFLAGS'
4025
4363
 
4026
4364
echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
4027
4365
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
4028
 
kde_cache=`echo pg | sed 'y% .=/+-%____p_%'`
 
4366
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
4029
4367
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4030
4368
  echo $ECHO_N "(cached) $ECHO_C" >&6
4031
4369
else
4044
4382
  save_CXXFLAGS="$CXXFLAGS"
4045
4383
  CXXFLAGS="$CXXFLAGS -pg"
4046
4384
  cat >conftest.$ac_ext <<_ACEOF
4047
 
#line $LINENO "configure"
4048
4385
/* confdefs.h.  */
4049
4386
_ACEOF
4050
4387
cat confdefs.h >>conftest.$ac_ext
4061
4398
_ACEOF
4062
4399
rm -f conftest.$ac_objext conftest$ac_exeext
4063
4400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064
 
  (eval $ac_link) 2>&5
 
4401
  (eval $ac_link) 2>conftest.er1
4065
4402
  ac_status=$?
 
4403
  grep -v '^ *+' conftest.er1 >conftest.err
 
4404
  rm -f conftest.er1
 
4405
  cat conftest.err >&5
4066
4406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067
4407
  (exit $ac_status); } &&
4068
 
         { ac_try='test -s conftest$ac_exeext'
 
4408
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4410
  (eval $ac_try) 2>&5
 
4411
  ac_status=$?
 
4412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4413
  (exit $ac_status); }; } &&
 
4414
         { ac_try='test -s conftest$ac_exeext'
4069
4415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070
4416
  (eval $ac_try) 2>&5
4071
4417
  ac_status=$?
4077
4423
sed 's/^/| /' conftest.$ac_ext >&5
4078
4424
 
4079
4425
fi
4080
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4426
rm -f conftest.err conftest.$ac_objext \
 
4427
      conftest$ac_exeext conftest.$ac_ext
4081
4428
  CXXFLAGS="$save_CXXFLAGS"
4082
4429
  ac_ext=c
4083
4430
ac_cpp='$CPP $CPPFLAGS'
4105
4452
 
4106
4453
  fi
4107
4454
 
4108
 
  if test "$kde_use_gcov" = "yes"; then
4109
 
 
4110
 
echo "$as_me:$LINENO: checking whether $CXX supports -fprofile-arcs" >&5
4111
 
echo $ECHO_N "checking whether $CXX supports -fprofile-arcs... $ECHO_C" >&6
4112
 
kde_cache=`echo fprofile-arcs | sed 'y% .=/+-%____p_%'`
4113
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4114
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4115
 
else
4116
 
 
4117
 
 
4118
 
 
4119
 
   ac_ext=cc
4120
 
ac_cpp='$CXXCPP $CPPFLAGS'
4121
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4124
 
 
4125
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4126
 
 
4127
 
 
4128
 
  save_CXXFLAGS="$CXXFLAGS"
4129
 
  CXXFLAGS="$CXXFLAGS -fprofile-arcs"
4130
 
  cat >conftest.$ac_ext <<_ACEOF
4131
 
#line $LINENO "configure"
4132
 
/* confdefs.h.  */
4133
 
_ACEOF
4134
 
cat confdefs.h >>conftest.$ac_ext
4135
 
cat >>conftest.$ac_ext <<_ACEOF
4136
 
/* end confdefs.h.  */
4137
 
 
4138
 
int
4139
 
main ()
4140
 
{
4141
 
 return 0;
4142
 
  ;
4143
 
  return 0;
4144
 
}
4145
 
_ACEOF
4146
 
rm -f conftest.$ac_objext conftest$ac_exeext
4147
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4148
 
  (eval $ac_link) 2>&5
4149
 
  ac_status=$?
4150
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151
 
  (exit $ac_status); } &&
4152
 
         { ac_try='test -s conftest$ac_exeext'
4153
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154
 
  (eval $ac_try) 2>&5
4155
 
  ac_status=$?
4156
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157
 
  (exit $ac_status); }; }; then
4158
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4159
 
else
4160
 
  echo "$as_me: failed program was:" >&5
4161
 
sed 's/^/| /' conftest.$ac_ext >&5
4162
 
 
4163
 
fi
4164
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4165
 
  CXXFLAGS="$save_CXXFLAGS"
4166
 
  ac_ext=c
4167
 
ac_cpp='$CPP $CPPFLAGS'
4168
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171
 
 
4172
 
 
4173
 
fi
4174
 
 
4175
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4176
 
 echo "$as_me:$LINENO: result: yes" >&5
4177
 
echo "${ECHO_T}yes" >&6
4178
 
 :
4179
 
 
4180
 
      CFLAGS="-fprofile-arcs -ftest-coverage $CFLAGS"
4181
 
      CXXFLAGS="-fprofile-arcs -ftest-coverage $CXXFLAGS"
4182
 
 
4183
 
else
4184
 
 echo "$as_me:$LINENO: result: no" >&5
4185
 
echo "${ECHO_T}no" >&6
4186
 
 :
4187
 
 
4188
 
fi
4189
 
 
4190
 
  fi
4191
 
 
4192
4455
  if test "$kde_use_warnings" = "yes"; then
4193
4456
      if test "$GCC" = "yes"; then
 
4457
        CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
4194
4458
        case $host in
4195
4459
          *-*-linux-gnu)
4196
 
            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
4197
 
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
 
4460
            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
 
4461
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
 
4462
 
 
4463
echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
 
4464
echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6
 
4465
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
 
4466
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
4467
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4468
else
 
4469
 
 
4470
 
 
4471
 
 
4472
   ac_ext=cc
 
4473
ac_cpp='$CXXCPP $CPPFLAGS'
 
4474
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4475
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4476
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4477
 
 
4478
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4479
 
 
4480
 
 
4481
  save_CXXFLAGS="$CXXFLAGS"
 
4482
  CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
 
4483
  cat >conftest.$ac_ext <<_ACEOF
 
4484
/* confdefs.h.  */
 
4485
_ACEOF
 
4486
cat confdefs.h >>conftest.$ac_ext
 
4487
cat >>conftest.$ac_ext <<_ACEOF
 
4488
/* end confdefs.h.  */
 
4489
 
 
4490
int
 
4491
main ()
 
4492
{
 
4493
 return 0;
 
4494
  ;
 
4495
  return 0;
 
4496
}
 
4497
_ACEOF
 
4498
rm -f conftest.$ac_objext conftest$ac_exeext
 
4499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4500
  (eval $ac_link) 2>conftest.er1
 
4501
  ac_status=$?
 
4502
  grep -v '^ *+' conftest.er1 >conftest.err
 
4503
  rm -f conftest.er1
 
4504
  cat conftest.err >&5
 
4505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4506
  (exit $ac_status); } &&
 
4507
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4509
  (eval $ac_try) 2>&5
 
4510
  ac_status=$?
 
4511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4512
  (exit $ac_status); }; } &&
 
4513
         { ac_try='test -s conftest$ac_exeext'
 
4514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4515
  (eval $ac_try) 2>&5
 
4516
  ac_status=$?
 
4517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4518
  (exit $ac_status); }; }; then
 
4519
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
4520
else
 
4521
  echo "$as_me: failed program was:" >&5
 
4522
sed 's/^/| /' conftest.$ac_ext >&5
 
4523
 
 
4524
fi
 
4525
rm -f conftest.err conftest.$ac_objext \
 
4526
      conftest$ac_exeext conftest.$ac_ext
 
4527
  CXXFLAGS="$save_CXXFLAGS"
 
4528
  ac_ext=c
 
4529
ac_cpp='$CPP $CPPFLAGS'
 
4530
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4531
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4532
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4533
 
 
4534
 
 
4535
fi
 
4536
 
 
4537
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
4538
 echo "$as_me:$LINENO: result: yes" >&5
 
4539
echo "${ECHO_T}yes" >&6
 
4540
 :
 
4541
 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
 
4542
else
 
4543
 echo "$as_me:$LINENO: result: no" >&5
 
4544
echo "${ECHO_T}no" >&6
 
4545
 :
 
4546
 
 
4547
fi
 
4548
 
 
4549
 
 
4550
echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
 
4551
echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6
 
4552
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
 
4553
if eval "test \"\${kde_cv_prog_cc_$kde_cache+set}\" = set"; then
 
4554
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4555
else
 
4556
 
 
4557
 
 
4558
 
 
4559
  ac_ext=c
 
4560
ac_cpp='$CPP $CPPFLAGS'
 
4561
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4562
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4563
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4564
 
 
4565
  save_CFLAGS="$CFLAGS"
 
4566
  CFLAGS="$CFLAGS -Wmissing-format-attribute"
 
4567
  cat >conftest.$ac_ext <<_ACEOF
 
4568
/* confdefs.h.  */
 
4569
_ACEOF
 
4570
cat confdefs.h >>conftest.$ac_ext
 
4571
cat >>conftest.$ac_ext <<_ACEOF
 
4572
/* end confdefs.h.  */
 
4573
 
 
4574
int
 
4575
main ()
 
4576
{
 
4577
 return 0;
 
4578
  ;
 
4579
  return 0;
 
4580
}
 
4581
_ACEOF
 
4582
rm -f conftest.$ac_objext conftest$ac_exeext
 
4583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4584
  (eval $ac_link) 2>conftest.er1
 
4585
  ac_status=$?
 
4586
  grep -v '^ *+' conftest.er1 >conftest.err
 
4587
  rm -f conftest.er1
 
4588
  cat conftest.err >&5
 
4589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4590
  (exit $ac_status); } &&
 
4591
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4593
  (eval $ac_try) 2>&5
 
4594
  ac_status=$?
 
4595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4596
  (exit $ac_status); }; } &&
 
4597
         { ac_try='test -s conftest$ac_exeext'
 
4598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4599
  (eval $ac_try) 2>&5
 
4600
  ac_status=$?
 
4601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4602
  (exit $ac_status); }; }; then
 
4603
  eval "kde_cv_prog_cc_$kde_cache=yes"
 
4604
else
 
4605
  echo "$as_me: failed program was:" >&5
 
4606
sed 's/^/| /' conftest.$ac_ext >&5
 
4607
 
 
4608
fi
 
4609
rm -f conftest.err conftest.$ac_objext \
 
4610
      conftest$ac_exeext conftest.$ac_ext
 
4611
  CFLAGS="$save_CFLAGS"
 
4612
  ac_ext=c
 
4613
ac_cpp='$CPP $CPPFLAGS'
 
4614
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4615
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4616
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4617
 
 
4618
 
 
4619
fi
 
4620
 
 
4621
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
 
4622
 echo "$as_me:$LINENO: result: yes" >&5
 
4623
echo "${ECHO_T}yes" >&6
 
4624
 :
 
4625
 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
 
4626
else
 
4627
 echo "$as_me:$LINENO: result: no" >&5
 
4628
echo "${ECHO_T}no" >&6
 
4629
 :
 
4630
 
 
4631
fi
 
4632
 
4198
4633
          ;;
4199
4634
        esac
4200
 
        CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
4201
4635
 
4202
4636
echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
4203
4637
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
4204
 
kde_cache=`echo Wundef | sed 'y% .=/+-%____p_%'`
 
4638
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
4205
4639
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4206
4640
  echo $ECHO_N "(cached) $ECHO_C" >&6
4207
4641
else
4220
4654
  save_CXXFLAGS="$CXXFLAGS"
4221
4655
  CXXFLAGS="$CXXFLAGS -Wundef"
4222
4656
  cat >conftest.$ac_ext <<_ACEOF
4223
 
#line $LINENO "configure"
4224
4657
/* confdefs.h.  */
4225
4658
_ACEOF
4226
4659
cat confdefs.h >>conftest.$ac_ext
4237
4670
_ACEOF
4238
4671
rm -f conftest.$ac_objext conftest$ac_exeext
4239
4672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4240
 
  (eval $ac_link) 2>&5
 
4673
  (eval $ac_link) 2>conftest.er1
4241
4674
  ac_status=$?
 
4675
  grep -v '^ *+' conftest.er1 >conftest.err
 
4676
  rm -f conftest.er1
 
4677
  cat conftest.err >&5
4242
4678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243
4679
  (exit $ac_status); } &&
4244
 
         { ac_try='test -s conftest$ac_exeext'
 
4680
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4682
  (eval $ac_try) 2>&5
 
4683
  ac_status=$?
 
4684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4685
  (exit $ac_status); }; } &&
 
4686
         { ac_try='test -s conftest$ac_exeext'
4245
4687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246
4688
  (eval $ac_try) 2>&5
4247
4689
  ac_status=$?
4253
4695
sed 's/^/| /' conftest.$ac_ext >&5
4254
4696
 
4255
4697
fi
4256
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4698
rm -f conftest.err conftest.$ac_objext \
 
4699
      conftest$ac_exeext conftest.$ac_ext
4257
4700
  CXXFLAGS="$save_CXXFLAGS"
4258
4701
  ac_ext=c
4259
4702
ac_cpp='$CPP $CPPFLAGS'
4279
4722
 
4280
4723
echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
4281
4724
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
4282
 
kde_cache=`echo Wno-long-long | sed 'y% .=/+-%____p_%'`
 
4725
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
4283
4726
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4284
4727
  echo $ECHO_N "(cached) $ECHO_C" >&6
4285
4728
else
4298
4741
  save_CXXFLAGS="$CXXFLAGS"
4299
4742
  CXXFLAGS="$CXXFLAGS -Wno-long-long"
4300
4743
  cat >conftest.$ac_ext <<_ACEOF
4301
 
#line $LINENO "configure"
4302
4744
/* confdefs.h.  */
4303
4745
_ACEOF
4304
4746
cat confdefs.h >>conftest.$ac_ext
4315
4757
_ACEOF
4316
4758
rm -f conftest.$ac_objext conftest$ac_exeext
4317
4759
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4318
 
  (eval $ac_link) 2>&5
 
4760
  (eval $ac_link) 2>conftest.er1
4319
4761
  ac_status=$?
 
4762
  grep -v '^ *+' conftest.er1 >conftest.err
 
4763
  rm -f conftest.er1
 
4764
  cat conftest.err >&5
4320
4765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321
4766
  (exit $ac_status); } &&
4322
 
         { ac_try='test -s conftest$ac_exeext'
 
4767
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4769
  (eval $ac_try) 2>&5
 
4770
  ac_status=$?
 
4771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4772
  (exit $ac_status); }; } &&
 
4773
         { ac_try='test -s conftest$ac_exeext'
4323
4774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324
4775
  (eval $ac_try) 2>&5
4325
4776
  ac_status=$?
4331
4782
sed 's/^/| /' conftest.$ac_ext >&5
4332
4783
 
4333
4784
fi
4334
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4785
rm -f conftest.err conftest.$ac_objext \
 
4786
      conftest$ac_exeext conftest.$ac_ext
4335
4787
  CXXFLAGS="$save_CXXFLAGS"
4336
4788
  ac_ext=c
4337
4789
ac_cpp='$CPP $CPPFLAGS'
4357
4809
 
4358
4810
echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
4359
4811
echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6
4360
 
kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-%____p_%'`
 
4812
kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-,%____p__%'`
4361
4813
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4362
4814
  echo $ECHO_N "(cached) $ECHO_C" >&6
4363
4815
else
4376
4828
  save_CXXFLAGS="$CXXFLAGS"
4377
4829
  CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
4378
4830
  cat >conftest.$ac_ext <<_ACEOF
4379
 
#line $LINENO "configure"
4380
4831
/* confdefs.h.  */
4381
4832
_ACEOF
4382
4833
cat confdefs.h >>conftest.$ac_ext
4393
4844
_ACEOF
4394
4845
rm -f conftest.$ac_objext conftest$ac_exeext
4395
4846
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4396
 
  (eval $ac_link) 2>&5
 
4847
  (eval $ac_link) 2>conftest.er1
4397
4848
  ac_status=$?
 
4849
  grep -v '^ *+' conftest.er1 >conftest.err
 
4850
  rm -f conftest.er1
 
4851
  cat conftest.err >&5
4398
4852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399
4853
  (exit $ac_status); } &&
4400
 
         { ac_try='test -s conftest$ac_exeext'
 
4854
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4856
  (eval $ac_try) 2>&5
 
4857
  ac_status=$?
 
4858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4859
  (exit $ac_status); }; } &&
 
4860
         { ac_try='test -s conftest$ac_exeext'
4401
4861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402
4862
  (eval $ac_try) 2>&5
4403
4863
  ac_status=$?
4409
4869
sed 's/^/| /' conftest.$ac_ext >&5
4410
4870
 
4411
4871
fi
4412
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4872
rm -f conftest.err conftest.$ac_objext \
 
4873
      conftest$ac_exeext conftest.$ac_ext
4413
4874
  CXXFLAGS="$save_CXXFLAGS"
4414
4875
  ac_ext=c
4415
4876
ac_cpp='$CPP $CPPFLAGS'
4435
4896
     fi
4436
4897
  fi
4437
4898
 
4438
 
  if test "$GCC" = "yes" && test "$kde_use_strict_options" = "yes"; then
 
4899
  if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
4439
4900
    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
4440
4901
  fi
4441
4902
 
4443
4904
 
4444
4905
echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
4445
4906
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
4446
 
kde_cache=`echo fno-exceptions | sed 'y% .=/+-%____p_%'`
 
4907
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
4447
4908
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4448
4909
  echo $ECHO_N "(cached) $ECHO_C" >&6
4449
4910
else
4462
4923
  save_CXXFLAGS="$CXXFLAGS"
4463
4924
  CXXFLAGS="$CXXFLAGS -fno-exceptions"
4464
4925
  cat >conftest.$ac_ext <<_ACEOF
4465
 
#line $LINENO "configure"
4466
4926
/* confdefs.h.  */
4467
4927
_ACEOF
4468
4928
cat confdefs.h >>conftest.$ac_ext
4479
4939
_ACEOF
4480
4940
rm -f conftest.$ac_objext conftest$ac_exeext
4481
4941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482
 
  (eval $ac_link) 2>&5
 
4942
  (eval $ac_link) 2>conftest.er1
4483
4943
  ac_status=$?
 
4944
  grep -v '^ *+' conftest.er1 >conftest.err
 
4945
  rm -f conftest.er1
 
4946
  cat conftest.err >&5
4484
4947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485
4948
  (exit $ac_status); } &&
4486
 
         { ac_try='test -s conftest$ac_exeext'
 
4949
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4951
  (eval $ac_try) 2>&5
 
4952
  ac_status=$?
 
4953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4954
  (exit $ac_status); }; } &&
 
4955
         { ac_try='test -s conftest$ac_exeext'
4487
4956
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488
4957
  (eval $ac_try) 2>&5
4489
4958
  ac_status=$?
4495
4964
sed 's/^/| /' conftest.$ac_ext >&5
4496
4965
 
4497
4966
fi
4498
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4967
rm -f conftest.err conftest.$ac_objext \
 
4968
      conftest$ac_exeext conftest.$ac_ext
4499
4969
  CXXFLAGS="$save_CXXFLAGS"
4500
4970
  ac_ext=c
4501
4971
ac_cpp='$CPP $CPPFLAGS'
4521
4991
 
4522
4992
echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
4523
4993
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
4524
 
kde_cache=`echo fno-check-new | sed 'y% .=/+-%____p_%'`
 
4994
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
4525
4995
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4526
4996
  echo $ECHO_N "(cached) $ECHO_C" >&6
4527
4997
else
4540
5010
  save_CXXFLAGS="$CXXFLAGS"
4541
5011
  CXXFLAGS="$CXXFLAGS -fno-check-new"
4542
5012
  cat >conftest.$ac_ext <<_ACEOF
4543
 
#line $LINENO "configure"
4544
5013
/* confdefs.h.  */
4545
5014
_ACEOF
4546
5015
cat confdefs.h >>conftest.$ac_ext
4557
5026
_ACEOF
4558
5027
rm -f conftest.$ac_objext conftest$ac_exeext
4559
5028
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560
 
  (eval $ac_link) 2>&5
 
5029
  (eval $ac_link) 2>conftest.er1
4561
5030
  ac_status=$?
 
5031
  grep -v '^ *+' conftest.er1 >conftest.err
 
5032
  rm -f conftest.er1
 
5033
  cat conftest.err >&5
4562
5034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563
5035
  (exit $ac_status); } &&
4564
 
         { ac_try='test -s conftest$ac_exeext'
 
5036
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5038
  (eval $ac_try) 2>&5
 
5039
  ac_status=$?
 
5040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5041
  (exit $ac_status); }; } &&
 
5042
         { ac_try='test -s conftest$ac_exeext'
4565
5043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566
5044
  (eval $ac_try) 2>&5
4567
5045
  ac_status=$?
4573
5051
sed 's/^/| /' conftest.$ac_ext >&5
4574
5052
 
4575
5053
fi
4576
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5054
rm -f conftest.err conftest.$ac_objext \
 
5055
      conftest$ac_exeext conftest.$ac_ext
4577
5056
  CXXFLAGS="$save_CXXFLAGS"
4578
5057
  ac_ext=c
4579
5058
ac_cpp='$CPP $CPPFLAGS'
4597
5076
fi
4598
5077
 
4599
5078
 
 
5079
echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
 
5080
echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6
 
5081
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
 
5082
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
5083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5084
else
 
5085
 
 
5086
 
 
5087
 
 
5088
   ac_ext=cc
 
5089
ac_cpp='$CXXCPP $CPPFLAGS'
 
5090
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5091
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5092
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5093
 
 
5094
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5095
 
 
5096
 
 
5097
  save_CXXFLAGS="$CXXFLAGS"
 
5098
  CXXFLAGS="$CXXFLAGS -fno-common"
 
5099
  cat >conftest.$ac_ext <<_ACEOF
 
5100
/* confdefs.h.  */
 
5101
_ACEOF
 
5102
cat confdefs.h >>conftest.$ac_ext
 
5103
cat >>conftest.$ac_ext <<_ACEOF
 
5104
/* end confdefs.h.  */
 
5105
 
 
5106
int
 
5107
main ()
 
5108
{
 
5109
 return 0;
 
5110
  ;
 
5111
  return 0;
 
5112
}
 
5113
_ACEOF
 
5114
rm -f conftest.$ac_objext conftest$ac_exeext
 
5115
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5116
  (eval $ac_link) 2>conftest.er1
 
5117
  ac_status=$?
 
5118
  grep -v '^ *+' conftest.er1 >conftest.err
 
5119
  rm -f conftest.er1
 
5120
  cat conftest.err >&5
 
5121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5122
  (exit $ac_status); } &&
 
5123
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5125
  (eval $ac_try) 2>&5
 
5126
  ac_status=$?
 
5127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5128
  (exit $ac_status); }; } &&
 
5129
         { ac_try='test -s conftest$ac_exeext'
 
5130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5131
  (eval $ac_try) 2>&5
 
5132
  ac_status=$?
 
5133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5134
  (exit $ac_status); }; }; then
 
5135
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
5136
else
 
5137
  echo "$as_me: failed program was:" >&5
 
5138
sed 's/^/| /' conftest.$ac_ext >&5
 
5139
 
 
5140
fi
 
5141
rm -f conftest.err conftest.$ac_objext \
 
5142
      conftest$ac_exeext conftest.$ac_ext
 
5143
  CXXFLAGS="$save_CXXFLAGS"
 
5144
  ac_ext=c
 
5145
ac_cpp='$CPP $CPPFLAGS'
 
5146
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5147
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5148
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5149
 
 
5150
 
 
5151
fi
 
5152
 
 
5153
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
5154
 echo "$as_me:$LINENO: result: yes" >&5
 
5155
echo "${ECHO_T}yes" >&6
 
5156
 :
 
5157
 CXXFLAGS="$CXXFLAGS -fno-common"
 
5158
else
 
5159
 echo "$as_me:$LINENO: result: no" >&5
 
5160
echo "${ECHO_T}no" >&6
 
5161
 :
 
5162
 
 
5163
fi
 
5164
 
 
5165
 
4600
5166
echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
4601
5167
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
4602
 
kde_cache=`echo fexceptions | sed 'y% .=/+-%____p_%'`
 
5168
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
4603
5169
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4604
5170
  echo $ECHO_N "(cached) $ECHO_C" >&6
4605
5171
else
4618
5184
  save_CXXFLAGS="$CXXFLAGS"
4619
5185
  CXXFLAGS="$CXXFLAGS -fexceptions"
4620
5186
  cat >conftest.$ac_ext <<_ACEOF
4621
 
#line $LINENO "configure"
4622
5187
/* confdefs.h.  */
4623
5188
_ACEOF
4624
5189
cat confdefs.h >>conftest.$ac_ext
4635
5200
_ACEOF
4636
5201
rm -f conftest.$ac_objext conftest$ac_exeext
4637
5202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4638
 
  (eval $ac_link) 2>&5
 
5203
  (eval $ac_link) 2>conftest.er1
4639
5204
  ac_status=$?
 
5205
  grep -v '^ *+' conftest.er1 >conftest.err
 
5206
  rm -f conftest.er1
 
5207
  cat conftest.err >&5
4640
5208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641
5209
  (exit $ac_status); } &&
4642
 
         { ac_try='test -s conftest$ac_exeext'
 
5210
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5212
  (eval $ac_try) 2>&5
 
5213
  ac_status=$?
 
5214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5215
  (exit $ac_status); }; } &&
 
5216
         { ac_try='test -s conftest$ac_exeext'
4643
5217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644
5218
  (eval $ac_try) 2>&5
4645
5219
  ac_status=$?
4651
5225
sed 's/^/| /' conftest.$ac_ext >&5
4652
5226
 
4653
5227
fi
4654
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5228
rm -f conftest.err conftest.$ac_objext \
 
5229
      conftest$ac_exeext conftest.$ac_ext
4655
5230
  CXXFLAGS="$save_CXXFLAGS"
4656
5231
  ac_ext=c
4657
5232
ac_cpp='$CPP $CPPFLAGS'
4674
5249
 USE_EXCEPTIONS=
4675
5250
fi
4676
5251
 
 
5252
    ENABLE_PERMISSIVE_FLAG="-fpermissive"
4677
5253
  fi
4678
5254
  if test "$CXX" = "KCC"; then
4679
5255
 
4691
5267
 
4692
5268
echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
4693
5269
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
4694
 
kde_cache=`echo -pch | sed 'y% .=/+-%____p_%'`
 
5270
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
4695
5271
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4696
5272
  echo $ECHO_N "(cached) $ECHO_C" >&6
4697
5273
else
4710
5286
  save_CXXFLAGS="$CXXFLAGS"
4711
5287
  CXXFLAGS="$CXXFLAGS --pch"
4712
5288
  cat >conftest.$ac_ext <<_ACEOF
4713
 
#line $LINENO "configure"
4714
5289
/* confdefs.h.  */
4715
5290
_ACEOF
4716
5291
cat confdefs.h >>conftest.$ac_ext
4727
5302
_ACEOF
4728
5303
rm -f conftest.$ac_objext conftest$ac_exeext
4729
5304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4730
 
  (eval $ac_link) 2>&5
 
5305
  (eval $ac_link) 2>conftest.er1
4731
5306
  ac_status=$?
 
5307
  grep -v '^ *+' conftest.er1 >conftest.err
 
5308
  rm -f conftest.er1
 
5309
  cat conftest.err >&5
4732
5310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733
5311
  (exit $ac_status); } &&
4734
 
         { ac_try='test -s conftest$ac_exeext'
 
5312
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5314
  (eval $ac_try) 2>&5
 
5315
  ac_status=$?
 
5316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5317
  (exit $ac_status); }; } &&
 
5318
         { ac_try='test -s conftest$ac_exeext'
4735
5319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736
5320
  (eval $ac_try) 2>&5
4737
5321
  ac_status=$?
4743
5327
sed 's/^/| /' conftest.$ac_ext >&5
4744
5328
 
4745
5329
fi
4746
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5330
rm -f conftest.err conftest.$ac_objext \
 
5331
      conftest$ac_exeext conftest.$ac_ext
4747
5332
  CXXFLAGS="$save_CXXFLAGS"
4748
5333
  ac_ext=c
4749
5334
ac_cpp='$CPP $CPPFLAGS'
4770
5355
 
4771
5356
echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
4772
5357
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
4773
 
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-%____p_%'`
 
5358
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
4774
5359
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4775
5360
  echo $ECHO_N "(cached) $ECHO_C" >&6
4776
5361
else
4789
5374
  save_CXXFLAGS="$CXXFLAGS"
4790
5375
  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
4791
5376
  cat >conftest.$ac_ext <<_ACEOF
4792
 
#line $LINENO "configure"
4793
5377
/* confdefs.h.  */
4794
5378
_ACEOF
4795
5379
cat confdefs.h >>conftest.$ac_ext
4806
5390
_ACEOF
4807
5391
rm -f conftest.$ac_objext conftest$ac_exeext
4808
5392
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809
 
  (eval $ac_link) 2>&5
 
5393
  (eval $ac_link) 2>conftest.er1
4810
5394
  ac_status=$?
 
5395
  grep -v '^ *+' conftest.er1 >conftest.err
 
5396
  rm -f conftest.er1
 
5397
  cat conftest.err >&5
4811
5398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812
5399
  (exit $ac_status); } &&
4813
 
         { ac_try='test -s conftest$ac_exeext'
 
5400
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5402
  (eval $ac_try) 2>&5
 
5403
  ac_status=$?
 
5404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5405
  (exit $ac_status); }; } &&
 
5406
         { ac_try='test -s conftest$ac_exeext'
4814
5407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815
5408
  (eval $ac_try) 2>&5
4816
5409
  ac_status=$?
4822
5415
sed 's/^/| /' conftest.$ac_ext >&5
4823
5416
 
4824
5417
fi
4825
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5418
rm -f conftest.err conftest.$ac_objext \
 
5419
      conftest$ac_exeext conftest.$ac_ext
4826
5420
  CXXFLAGS="$save_CXXFLAGS"
4827
5421
  ac_ext=c
4828
5422
ac_cpp='$CPP $CPPFLAGS'
4848
5442
 
4849
5443
echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
4850
5444
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
4851
 
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-%____p_%'`
 
5445
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
4852
5446
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4853
5447
  echo $ECHO_N "(cached) $ECHO_C" >&6
4854
5448
else
4867
5461
  save_CXXFLAGS="$CXXFLAGS"
4868
5462
  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
4869
5463
  cat >conftest.$ac_ext <<_ACEOF
4870
 
#line $LINENO "configure"
4871
5464
/* confdefs.h.  */
4872
5465
_ACEOF
4873
5466
cat confdefs.h >>conftest.$ac_ext
4884
5477
_ACEOF
4885
5478
rm -f conftest.$ac_objext conftest$ac_exeext
4886
5479
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887
 
  (eval $ac_link) 2>&5
 
5480
  (eval $ac_link) 2>conftest.er1
4888
5481
  ac_status=$?
 
5482
  grep -v '^ *+' conftest.er1 >conftest.err
 
5483
  rm -f conftest.er1
 
5484
  cat conftest.err >&5
4889
5485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890
5486
  (exit $ac_status); } &&
4891
 
         { ac_try='test -s conftest$ac_exeext'
 
5487
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5489
  (eval $ac_try) 2>&5
 
5490
  ac_status=$?
 
5491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5492
  (exit $ac_status); }; } &&
 
5493
         { ac_try='test -s conftest$ac_exeext'
4892
5494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893
5495
  (eval $ac_try) 2>&5
4894
5496
  ac_status=$?
4900
5502
sed 's/^/| /' conftest.$ac_ext >&5
4901
5503
 
4902
5504
fi
4903
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5505
rm -f conftest.err conftest.$ac_objext \
 
5506
      conftest$ac_exeext conftest.$ac_ext
4904
5507
  CXXFLAGS="$save_CXXFLAGS"
4905
5508
  ac_ext=c
4906
5509
ac_cpp='$CPP $CPPFLAGS'
4926
5529
 
4927
5530
echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
4928
5531
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
4929
 
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-%____p_%'`
 
5532
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
4930
5533
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4931
5534
  echo $ECHO_N "(cached) $ECHO_C" >&6
4932
5535
else
4945
5548
  save_CXXFLAGS="$CXXFLAGS"
4946
5549
  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
4947
5550
  cat >conftest.$ac_ext <<_ACEOF
4948
 
#line $LINENO "configure"
4949
5551
/* confdefs.h.  */
4950
5552
_ACEOF
4951
5553
cat confdefs.h >>conftest.$ac_ext
4962
5564
_ACEOF
4963
5565
rm -f conftest.$ac_objext conftest$ac_exeext
4964
5566
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4965
 
  (eval $ac_link) 2>&5
 
5567
  (eval $ac_link) 2>conftest.er1
4966
5568
  ac_status=$?
 
5569
  grep -v '^ *+' conftest.er1 >conftest.err
 
5570
  rm -f conftest.er1
 
5571
  cat conftest.err >&5
4967
5572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968
5573
  (exit $ac_status); } &&
4969
 
         { ac_try='test -s conftest$ac_exeext'
 
5574
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5576
  (eval $ac_try) 2>&5
 
5577
  ac_status=$?
 
5578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5579
  (exit $ac_status); }; } &&
 
5580
         { ac_try='test -s conftest$ac_exeext'
4970
5581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971
5582
  (eval $ac_try) 2>&5
4972
5583
  ac_status=$?
4978
5589
sed 's/^/| /' conftest.$ac_ext >&5
4979
5590
 
4980
5591
fi
4981
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5592
rm -f conftest.err conftest.$ac_objext \
 
5593
      conftest$ac_exeext conftest.$ac_ext
4982
5594
  CXXFLAGS="$save_CXXFLAGS"
4983
5595
  ac_ext=c
4984
5596
ac_cpp='$CPP $CPPFLAGS'
5004
5616
 
5005
5617
echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
5006
5618
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
5007
 
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-%____p_%'`
 
5619
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
5008
5620
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5009
5621
  echo $ECHO_N "(cached) $ECHO_C" >&6
5010
5622
else
5023
5635
  save_CXXFLAGS="$CXXFLAGS"
5024
5636
  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
5025
5637
  cat >conftest.$ac_ext <<_ACEOF
5026
 
#line $LINENO "configure"
5027
5638
/* confdefs.h.  */
5028
5639
_ACEOF
5029
5640
cat confdefs.h >>conftest.$ac_ext
5040
5651
_ACEOF
5041
5652
rm -f conftest.$ac_objext conftest$ac_exeext
5042
5653
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043
 
  (eval $ac_link) 2>&5
 
5654
  (eval $ac_link) 2>conftest.er1
5044
5655
  ac_status=$?
 
5656
  grep -v '^ *+' conftest.er1 >conftest.err
 
5657
  rm -f conftest.er1
 
5658
  cat conftest.err >&5
5045
5659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046
5660
  (exit $ac_status); } &&
5047
 
         { ac_try='test -s conftest$ac_exeext'
 
5661
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5663
  (eval $ac_try) 2>&5
 
5664
  ac_status=$?
 
5665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5666
  (exit $ac_status); }; } &&
 
5667
         { ac_try='test -s conftest$ac_exeext'
5048
5668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049
5669
  (eval $ac_try) 2>&5
5050
5670
  ac_status=$?
5056
5676
sed 's/^/| /' conftest.$ac_ext >&5
5057
5677
 
5058
5678
fi
5059
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5679
rm -f conftest.err conftest.$ac_objext \
 
5680
      conftest$ac_exeext conftest.$ac_ext
5060
5681
  CXXFLAGS="$save_CXXFLAGS"
5061
5682
  ac_ext=c
5062
5683
ac_cpp='$CPP $CPPFLAGS'
5082
5703
 
5083
5704
echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
5084
5705
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
5085
 
kde_cache=`echo -one_per | sed 'y% .=/+-%____p_%'`
 
5706
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
5086
5707
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5087
5708
  echo $ECHO_N "(cached) $ECHO_C" >&6
5088
5709
else
5101
5722
  save_CXXFLAGS="$CXXFLAGS"
5102
5723
  CXXFLAGS="$CXXFLAGS --one_per"
5103
5724
  cat >conftest.$ac_ext <<_ACEOF
5104
 
#line $LINENO "configure"
5105
5725
/* confdefs.h.  */
5106
5726
_ACEOF
5107
5727
cat confdefs.h >>conftest.$ac_ext
5118
5738
_ACEOF
5119
5739
rm -f conftest.$ac_objext conftest$ac_exeext
5120
5740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5121
 
  (eval $ac_link) 2>&5
 
5741
  (eval $ac_link) 2>conftest.er1
5122
5742
  ac_status=$?
 
5743
  grep -v '^ *+' conftest.er1 >conftest.err
 
5744
  rm -f conftest.er1
 
5745
  cat conftest.err >&5
5123
5746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124
5747
  (exit $ac_status); } &&
5125
 
         { ac_try='test -s conftest$ac_exeext'
 
5748
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5750
  (eval $ac_try) 2>&5
 
5751
  ac_status=$?
 
5752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5753
  (exit $ac_status); }; } &&
 
5754
         { ac_try='test -s conftest$ac_exeext'
5126
5755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127
5756
  (eval $ac_try) 2>&5
5128
5757
  ac_status=$?
5134
5763
sed 's/^/| /' conftest.$ac_ext >&5
5135
5764
 
5136
5765
fi
5137
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5766
rm -f conftest.err conftest.$ac_objext \
 
5767
      conftest$ac_exeext conftest.$ac_ext
5138
5768
  CXXFLAGS="$save_CXXFLAGS"
5139
5769
  ac_ext=c
5140
5770
ac_cpp='$CPP $CPPFLAGS'
5283
5913
  # On the NeXT, cc -E runs the code through the compiler's parser,
5284
5914
  # not just through cpp. "Syntax error" is here to catch this case.
5285
5915
  cat >conftest.$ac_ext <<_ACEOF
5286
 
#line $LINENO "configure"
5287
5916
/* confdefs.h.  */
5288
5917
_ACEOF
5289
5918
cat confdefs.h >>conftest.$ac_ext
5294
5923
#else
5295
5924
# include <assert.h>
5296
5925
#endif
5297
 
                     Syntax error
 
5926
                     Syntax error
5298
5927
_ACEOF
5299
5928
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300
5929
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5306
5935
  (exit $ac_status); } >/dev/null; then
5307
5936
  if test -s conftest.err; then
5308
5937
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5938
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5309
5939
  else
5310
5940
    ac_cpp_err=
5311
5941
  fi
5326
5956
  # OK, works on sane cases.  Now check whether non-existent headers
5327
5957
  # can be detected and how.
5328
5958
  cat >conftest.$ac_ext <<_ACEOF
5329
 
#line $LINENO "configure"
5330
5959
/* confdefs.h.  */
5331
5960
_ACEOF
5332
5961
cat confdefs.h >>conftest.$ac_ext
5344
5973
  (exit $ac_status); } >/dev/null; then
5345
5974
  if test -s conftest.err; then
5346
5975
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5976
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5347
5977
  else
5348
5978
    ac_cpp_err=
5349
5979
  fi
5390
6020
  # On the NeXT, cc -E runs the code through the compiler's parser,
5391
6021
  # not just through cpp. "Syntax error" is here to catch this case.
5392
6022
  cat >conftest.$ac_ext <<_ACEOF
5393
 
#line $LINENO "configure"
5394
6023
/* confdefs.h.  */
5395
6024
_ACEOF
5396
6025
cat confdefs.h >>conftest.$ac_ext
5401
6030
#else
5402
6031
# include <assert.h>
5403
6032
#endif
5404
 
                     Syntax error
 
6033
                     Syntax error
5405
6034
_ACEOF
5406
6035
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5407
6036
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5413
6042
  (exit $ac_status); } >/dev/null; then
5414
6043
  if test -s conftest.err; then
5415
6044
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6045
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5416
6046
  else
5417
6047
    ac_cpp_err=
5418
6048
  fi
5433
6063
  # OK, works on sane cases.  Now check whether non-existent headers
5434
6064
  # can be detected and how.
5435
6065
  cat >conftest.$ac_ext <<_ACEOF
5436
 
#line $LINENO "configure"
5437
6066
/* confdefs.h.  */
5438
6067
_ACEOF
5439
6068
cat confdefs.h >>conftest.$ac_ext
5451
6080
  (exit $ac_status); } >/dev/null; then
5452
6081
  if test -s conftest.err; then
5453
6082
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6083
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5454
6084
  else
5455
6085
    ac_cpp_err=
5456
6086
  fi
5491
6121
 
5492
6122
 
5493
6123
  if test "$GCC" = yes; then
5494
 
     NOOPT_CXXFLAGS=-O0
5495
6124
     NOOPT_CFLAGS=-O0
5496
6125
  fi
5497
6126
 
 
6127
echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
 
6128
echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6
 
6129
kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
 
6130
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6132
else
 
6133
 
 
6134
 
 
6135
 
 
6136
   ac_ext=cc
 
6137
ac_cpp='$CXXCPP $CPPFLAGS'
 
6138
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6139
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6140
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6141
 
 
6142
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6143
 
 
6144
 
 
6145
  save_CXXFLAGS="$CXXFLAGS"
 
6146
  CXXFLAGS="$CXXFLAGS -O0"
 
6147
  cat >conftest.$ac_ext <<_ACEOF
 
6148
/* confdefs.h.  */
 
6149
_ACEOF
 
6150
cat confdefs.h >>conftest.$ac_ext
 
6151
cat >>conftest.$ac_ext <<_ACEOF
 
6152
/* end confdefs.h.  */
 
6153
 
 
6154
int
 
6155
main ()
 
6156
{
 
6157
 return 0;
 
6158
  ;
 
6159
  return 0;
 
6160
}
 
6161
_ACEOF
 
6162
rm -f conftest.$ac_objext conftest$ac_exeext
 
6163
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6164
  (eval $ac_link) 2>conftest.er1
 
6165
  ac_status=$?
 
6166
  grep -v '^ *+' conftest.er1 >conftest.err
 
6167
  rm -f conftest.er1
 
6168
  cat conftest.err >&5
 
6169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6170
  (exit $ac_status); } &&
 
6171
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6173
  (eval $ac_try) 2>&5
 
6174
  ac_status=$?
 
6175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6176
  (exit $ac_status); }; } &&
 
6177
         { ac_try='test -s conftest$ac_exeext'
 
6178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6179
  (eval $ac_try) 2>&5
 
6180
  ac_status=$?
 
6181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6182
  (exit $ac_status); }; }; then
 
6183
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6184
else
 
6185
  echo "$as_me: failed program was:" >&5
 
6186
sed 's/^/| /' conftest.$ac_ext >&5
 
6187
 
 
6188
fi
 
6189
rm -f conftest.err conftest.$ac_objext \
 
6190
      conftest$ac_exeext conftest.$ac_ext
 
6191
  CXXFLAGS="$save_CXXFLAGS"
 
6192
  ac_ext=c
 
6193
ac_cpp='$CPP $CPPFLAGS'
 
6194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6197
 
 
6198
 
 
6199
fi
 
6200
 
 
6201
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6202
 echo "$as_me:$LINENO: result: yes" >&5
 
6203
echo "${ECHO_T}yes" >&6
 
6204
 :
 
6205
 NOOPT_CXXFLAGS=-O0
 
6206
else
 
6207
 echo "$as_me:$LINENO: result: no" >&5
 
6208
echo "${ECHO_T}no" >&6
 
6209
 :
 
6210
 
 
6211
fi
 
6212
 
 
6213
 
 
6214
 
5498
6215
 
5499
6216
 
5500
6217
 
5507
6224
  kde_use_final=no
5508
6225
fi;
5509
6226
 
5510
 
 
5511
 
  REPO=""
5512
 
  NOREPO=""
5513
 
 
5514
 
 
5515
 
echo "$as_me:$LINENO: checking whether $CXX supports -frepo" >&5
5516
 
echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6
5517
 
kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'`
5518
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5519
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5520
 
else
5521
 
 
5522
 
 
5523
 
 
5524
 
   ac_ext=cc
5525
 
ac_cpp='$CXXCPP $CPPFLAGS'
5526
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5529
 
 
5530
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5531
 
 
5532
 
 
5533
 
  save_CXXFLAGS="$CXXFLAGS"
5534
 
  CXXFLAGS="$CXXFLAGS -frepo"
5535
 
  cat >conftest.$ac_ext <<_ACEOF
5536
 
#line $LINENO "configure"
5537
 
/* confdefs.h.  */
5538
 
_ACEOF
5539
 
cat confdefs.h >>conftest.$ac_ext
5540
 
cat >>conftest.$ac_ext <<_ACEOF
5541
 
/* end confdefs.h.  */
5542
 
 
5543
 
int
5544
 
main ()
5545
 
{
5546
 
 return 0;
5547
 
  ;
5548
 
  return 0;
5549
 
}
5550
 
_ACEOF
5551
 
rm -f conftest.$ac_objext conftest$ac_exeext
5552
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5553
 
  (eval $ac_link) 2>&5
5554
 
  ac_status=$?
5555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556
 
  (exit $ac_status); } &&
5557
 
         { ac_try='test -s conftest$ac_exeext'
5558
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559
 
  (eval $ac_try) 2>&5
5560
 
  ac_status=$?
5561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562
 
  (exit $ac_status); }; }; then
5563
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5564
 
else
5565
 
  echo "$as_me: failed program was:" >&5
5566
 
sed 's/^/| /' conftest.$ac_ext >&5
5567
 
 
5568
 
fi
5569
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5570
 
  CXXFLAGS="$save_CXXFLAGS"
5571
 
  ac_ext=c
5572
 
ac_cpp='$CPP $CPPFLAGS'
5573
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5574
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5576
 
 
5577
 
 
5578
 
fi
5579
 
 
5580
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5581
 
 echo "$as_me:$LINENO: result: yes" >&5
5582
 
echo "${ECHO_T}yes" >&6
5583
 
 :
5584
 
 
5585
 
     REPO="-frepo"
5586
 
     NOREPO="-fno-repo"
5587
 
 
5588
 
else
5589
 
 echo "$as_me:$LINENO: result: no" >&5
5590
 
echo "${ECHO_T}no" >&6
5591
 
 :
5592
 
 
5593
 
fi
5594
 
 
5595
 
 
5596
 
  if test -z "$REPO"; then
5597
 
 
5598
 
echo "$as_me:$LINENO: checking whether $CXX supports -instances=explicit" >&5
5599
 
echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6
5600
 
kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'`
5601
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5602
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5603
 
else
5604
 
 
5605
 
 
5606
 
 
5607
 
   ac_ext=cc
5608
 
ac_cpp='$CXXCPP $CPPFLAGS'
5609
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5610
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5611
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5612
 
 
5613
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5614
 
 
5615
 
 
5616
 
  save_CXXFLAGS="$CXXFLAGS"
5617
 
  CXXFLAGS="$CXXFLAGS -instances=explicit"
5618
 
  cat >conftest.$ac_ext <<_ACEOF
5619
 
#line $LINENO "configure"
5620
 
/* confdefs.h.  */
5621
 
_ACEOF
5622
 
cat confdefs.h >>conftest.$ac_ext
5623
 
cat >>conftest.$ac_ext <<_ACEOF
5624
 
/* end confdefs.h.  */
5625
 
 
5626
 
int
5627
 
main ()
5628
 
{
5629
 
 return 0;
5630
 
  ;
5631
 
  return 0;
5632
 
}
5633
 
_ACEOF
5634
 
rm -f conftest.$ac_objext conftest$ac_exeext
5635
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636
 
  (eval $ac_link) 2>&5
5637
 
  ac_status=$?
5638
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639
 
  (exit $ac_status); } &&
5640
 
         { ac_try='test -s conftest$ac_exeext'
5641
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642
 
  (eval $ac_try) 2>&5
5643
 
  ac_status=$?
5644
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645
 
  (exit $ac_status); }; }; then
5646
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5647
 
else
5648
 
  echo "$as_me: failed program was:" >&5
5649
 
sed 's/^/| /' conftest.$ac_ext >&5
5650
 
 
5651
 
fi
5652
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5653
 
  CXXFLAGS="$save_CXXFLAGS"
5654
 
  ac_ext=c
5655
 
ac_cpp='$CPP $CPPFLAGS'
5656
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5659
 
 
5660
 
 
5661
 
fi
5662
 
 
5663
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5664
 
 echo "$as_me:$LINENO: result: yes" >&5
5665
 
echo "${ECHO_T}yes" >&6
5666
 
 :
5667
 
 
5668
 
     REPO="-instances=explicit"
5669
 
     NOREPO="-instances=extern"
5670
 
 
5671
 
else
5672
 
 echo "$as_me:$LINENO: result: no" >&5
5673
 
echo "${ECHO_T}no" >&6
5674
 
 :
5675
 
 
5676
 
fi
5677
 
 
5678
 
  fi
5679
 
 
5680
 
  if test -n "$REPO"; then
5681
 
 
5682
 
cat >>confdefs.h <<_ACEOF
5683
 
#define HAVE_TEMPLATE_REPOSITORY 1
5684
 
_ACEOF
5685
 
 
5686
 
 
5687
 
  fi
5688
 
 
5689
 
 
5690
 
 
5691
 
 
5692
6227
  if test "x$kde_use_final" = "xyes"; then
5693
6228
      KDE_USE_FINAL_TRUE=""
5694
6229
      KDE_USE_FINAL_FALSE="#"
5699
6234
 
5700
6235
 
5701
6236
 
 
6237
 
5702
6238
  # Check whether --enable-closure or --disable-closure was given.
5703
6239
if test "${enable_closure+set}" = set; then
5704
6240
  enableval="$enable_closure"
5705
6241
  kde_use_closure=$enableval
5706
6242
else
5707
 
  kde_use_closure=yes
 
6243
  kde_use_closure=no
5708
6244
fi;
5709
6245
 
 
6246
  KDE_NO_UNDEFINED=""
5710
6247
  if test "x$kde_use_closure" = "xyes"; then
5711
6248
       KDE_USE_CLOSURE_TRUE=""
5712
6249
       KDE_USE_CLOSURE_FALSE="#"
5714
6251
  else
5715
6252
       KDE_USE_CLOSURE_TRUE="#"
5716
6253
       KDE_USE_CLOSURE_FALSE=""
 
6254
       KDE_NO_UNDEFINED=""
 
6255
       case $host in
 
6256
         *-*-linux-gnu)
 
6257
 
 
6258
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
 
6259
echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6
 
6260
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
 
6261
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6262
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6263
else
 
6264
 
 
6265
 
 
6266
 
 
6267
   ac_ext=cc
 
6268
ac_cpp='$CXXCPP $CPPFLAGS'
 
6269
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6270
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6271
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6272
 
 
6273
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6274
 
 
6275
 
 
6276
  save_CXXFLAGS="$CXXFLAGS"
 
6277
  CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
 
6278
  cat >conftest.$ac_ext <<_ACEOF
 
6279
/* confdefs.h.  */
 
6280
_ACEOF
 
6281
cat confdefs.h >>conftest.$ac_ext
 
6282
cat >>conftest.$ac_ext <<_ACEOF
 
6283
/* end confdefs.h.  */
 
6284
 
 
6285
int
 
6286
main ()
 
6287
{
 
6288
 return 0;
 
6289
  ;
 
6290
  return 0;
 
6291
}
 
6292
_ACEOF
 
6293
rm -f conftest.$ac_objext conftest$ac_exeext
 
6294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6295
  (eval $ac_link) 2>conftest.er1
 
6296
  ac_status=$?
 
6297
  grep -v '^ *+' conftest.er1 >conftest.err
 
6298
  rm -f conftest.er1
 
6299
  cat conftest.err >&5
 
6300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6301
  (exit $ac_status); } &&
 
6302
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6304
  (eval $ac_try) 2>&5
 
6305
  ac_status=$?
 
6306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6307
  (exit $ac_status); }; } &&
 
6308
         { ac_try='test -s conftest$ac_exeext'
 
6309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6310
  (eval $ac_try) 2>&5
 
6311
  ac_status=$?
 
6312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6313
  (exit $ac_status); }; }; then
 
6314
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6315
else
 
6316
  echo "$as_me: failed program was:" >&5
 
6317
sed 's/^/| /' conftest.$ac_ext >&5
 
6318
 
 
6319
fi
 
6320
rm -f conftest.err conftest.$ac_objext \
 
6321
      conftest$ac_exeext conftest.$ac_ext
 
6322
  CXXFLAGS="$save_CXXFLAGS"
 
6323
  ac_ext=c
 
6324
ac_cpp='$CPP $CPPFLAGS'
 
6325
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6326
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6327
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6328
 
 
6329
 
 
6330
fi
 
6331
 
 
6332
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6333
 echo "$as_me:$LINENO: result: yes" >&5
 
6334
echo "${ECHO_T}yes" >&6
 
6335
 :
 
6336
 
 
6337
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
 
6338
echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6
 
6339
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
 
6340
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
 
6341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6342
else
 
6343
 
 
6344
 
 
6345
 
 
6346
   ac_ext=cc
 
6347
ac_cpp='$CXXCPP $CPPFLAGS'
 
6348
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6349
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6350
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6351
 
 
6352
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
6353
 
 
6354
 
 
6355
  save_CXXFLAGS="$CXXFLAGS"
 
6356
  CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
 
6357
  cat >conftest.$ac_ext <<_ACEOF
 
6358
/* confdefs.h.  */
 
6359
_ACEOF
 
6360
cat confdefs.h >>conftest.$ac_ext
 
6361
cat >>conftest.$ac_ext <<_ACEOF
 
6362
/* end confdefs.h.  */
 
6363
 
 
6364
int
 
6365
main ()
 
6366
{
 
6367
 return 0;
 
6368
  ;
 
6369
  return 0;
 
6370
}
 
6371
_ACEOF
 
6372
rm -f conftest.$ac_objext conftest$ac_exeext
 
6373
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6374
  (eval $ac_link) 2>conftest.er1
 
6375
  ac_status=$?
 
6376
  grep -v '^ *+' conftest.er1 >conftest.err
 
6377
  rm -f conftest.er1
 
6378
  cat conftest.err >&5
 
6379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6380
  (exit $ac_status); } &&
 
6381
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6383
  (eval $ac_try) 2>&5
 
6384
  ac_status=$?
 
6385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6386
  (exit $ac_status); }; } &&
 
6387
         { ac_try='test -s conftest$ac_exeext'
 
6388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6389
  (eval $ac_try) 2>&5
 
6390
  ac_status=$?
 
6391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6392
  (exit $ac_status); }; }; then
 
6393
  eval "kde_cv_prog_cxx_$kde_cache=yes"
 
6394
else
 
6395
  echo "$as_me: failed program was:" >&5
 
6396
sed 's/^/| /' conftest.$ac_ext >&5
 
6397
 
 
6398
fi
 
6399
rm -f conftest.err conftest.$ac_objext \
 
6400
      conftest$ac_exeext conftest.$ac_ext
 
6401
  CXXFLAGS="$save_CXXFLAGS"
 
6402
  ac_ext=c
 
6403
ac_cpp='$CPP $CPPFLAGS'
 
6404
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6405
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6406
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6407
 
 
6408
 
 
6409
fi
 
6410
 
 
6411
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
6412
 echo "$as_me:$LINENO: result: yes" >&5
 
6413
echo "${ECHO_T}yes" >&6
 
6414
 :
 
6415
 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
 
6416
else
 
6417
 echo "$as_me:$LINENO: result: no" >&5
 
6418
echo "${ECHO_T}no" >&6
 
6419
 :
 
6420
 KDE_NO_UNDEFINED=""
 
6421
fi
 
6422
 
 
6423
else
 
6424
 echo "$as_me:$LINENO: result: no" >&5
 
6425
echo "${ECHO_T}no" >&6
 
6426
 :
 
6427
 KDE_NO_UNDEFINED=""
 
6428
fi
 
6429
 
 
6430
           ;;
 
6431
       esac
 
6432
  fi
 
6433
 
 
6434
 
 
6435
 
 
6436
 
 
6437
 
 
6438
  # Check whether --enable-nmcheck or --disable-nmcheck was given.
 
6439
if test "${enable_nmcheck+set}" = set; then
 
6440
  enableval="$enable_nmcheck"
 
6441
  kde_use_nmcheck=$enableval
 
6442
else
 
6443
  kde_use_nmcheck=no
 
6444
fi;
 
6445
 
 
6446
  if test "$kde_use_nmcheck" = "yes"; then
 
6447
      KDE_USE_NMCHECK_TRUE=""
 
6448
      KDE_USE_NMCHECK_FALSE="#"
 
6449
   else
 
6450
      KDE_USE_NMCHECK_TRUE="#"
 
6451
      KDE_USE_NMCHECK_FALSE=""
5717
6452
  fi
5718
6453
 
5719
6454
 
5772
6507
 
5773
6508
 
5774
6509
 
5775
 
    kdelibsuff=none
 
6510
    kdelibsuff=no
5776
6511
    # Check whether --enable-libsuffix or --disable-libsuffix was given.
5777
6512
if test "${enable_libsuffix+set}" = set; then
5778
6513
  enableval="$enable_libsuffix"
5780
6515
fi;
5781
6516
    # TODO: add an auto case that compiles a little C app to check
5782
6517
    # where the glibc is
5783
 
    if test "$kdelibsuff" = "none"; then
 
6518
    if test "$kdelibsuff" = "no"; then
5784
6519
       kdelibsuff=
5785
6520
    fi
5786
6521
    if test -z "$kdelibsuff"; then
5798
6533
          fi
5799
6534
 
5800
6535
cat >>confdefs.h <<_ACEOF
5801
 
#define KDELIBSUFF "\"${kdelibsuff}\""
 
6536
#define KDELIBSUFF "${kdelibsuff}"
5802
6537
_ACEOF
5803
6538
 
5804
6539
        echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
5829
6564
  enable_fast_install=yes
5830
6565
fi;
5831
6566
 
 
6567
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
6568
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
6569
if test "${lt_cv_path_SED+set}" = set; then
 
6570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6571
else
 
6572
  # Loop through the user's path and test for sed and gsed.
 
6573
# Then use that list of sed's as ones to test for truncation.
 
6574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6575
for as_dir in $PATH
 
6576
do
 
6577
  IFS=$as_save_IFS
 
6578
  test -z "$as_dir" && as_dir=.
 
6579
  for lt_ac_prog in sed gsed; do
 
6580
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6581
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6582
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
6583
      fi
 
6584
    done
 
6585
  done
 
6586
done
 
6587
lt_ac_max=0
 
6588
lt_ac_count=0
 
6589
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
6590
# along with /bin/sed that truncates output.
 
6591
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
6592
  test ! -f $lt_ac_sed && break
 
6593
  cat /dev/null > conftest.in
 
6594
  lt_ac_count=0
 
6595
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
6596
  # Check for GNU sed and select it if it is found.
 
6597
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
6598
    lt_cv_path_SED=$lt_ac_sed
 
6599
    break
 
6600
  fi
 
6601
  while true; do
 
6602
    cat conftest.in conftest.in >conftest.tmp
 
6603
    mv conftest.tmp conftest.in
 
6604
    cp conftest.in conftest.nl
 
6605
    echo >>conftest.nl
 
6606
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
6607
    cmp -s conftest.out conftest.nl || break
 
6608
    # 10000 chars as input seems more than enough
 
6609
    test $lt_ac_count -gt 10 && break
 
6610
    lt_ac_count=`expr $lt_ac_count + 1`
 
6611
    if test $lt_ac_count -gt $lt_ac_max; then
 
6612
      lt_ac_max=$lt_ac_count
 
6613
      lt_cv_path_SED=$lt_ac_sed
 
6614
    fi
 
6615
  done
 
6616
done
 
6617
 
 
6618
fi
 
6619
 
 
6620
SED=$lt_cv_path_SED
 
6621
echo "$as_me:$LINENO: result: $SED" >&5
 
6622
echo "${ECHO_T}$SED" >&6
 
6623
 
 
6624
echo "$as_me:$LINENO: checking for egrep" >&5
 
6625
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
6626
if test "${ac_cv_prog_egrep+set}" = set; then
 
6627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6628
else
 
6629
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
6630
    then ac_cv_prog_egrep='grep -E'
 
6631
    else ac_cv_prog_egrep='egrep'
 
6632
    fi
 
6633
fi
 
6634
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
6635
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
6636
 EGREP=$ac_cv_prog_egrep
 
6637
 
 
6638
 
5832
6639
 
5833
6640
# Check whether --with-gnu-ld or --without-gnu-ld was given.
5834
6641
if test "${with_gnu_ld+set}" = set; then
5840
6647
ac_prog=ld
5841
6648
if test "$GCC" = yes; then
5842
6649
  # Check if gcc -print-prog-name=ld gives a path.
5843
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5844
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
6650
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
6651
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5845
6652
  case $host in
5846
6653
  *-*-mingw*)
5847
6654
    # gcc leaves a trailing carriage return which upsets mingw
5853
6660
    # Accept absolute paths.
5854
6661
    [\\/]* | ?:[\\/]*)
5855
6662
      re_direlt='/[^/][^/]*/\.\./'
5856
 
      # Canonicalize the path of ld
5857
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
6663
      # Canonicalize the pathname of ld
 
6664
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5858
6665
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5859
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
6666
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5860
6667
      done
5861
6668
      test -z "$LD" && LD="$ac_prog"
5862
6669
      ;;
5889
6696
      # Check to see if the program is GNU ld.  I'd rather use --version,
5890
6697
      # but apparently some GNU ld's only accept -v.
5891
6698
      # Break only if it was the GNU/non-GNU ld that we prefer.
5892
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
6699
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
6700
      *GNU* | *'with BFD'*)
5893
6701
        test "$with_gnu_ld" != no && break
5894
 
      else
 
6702
        ;;
 
6703
      *)
5895
6704
        test "$with_gnu_ld" != yes && break
5896
 
      fi
 
6705
        ;;
 
6706
      esac
5897
6707
    fi
5898
6708
  done
5899
6709
  IFS="$lt_save_ifs"
5919
6729
  echo $ECHO_N "(cached) $ECHO_C" >&6
5920
6730
else
5921
6731
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5922
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
6732
case `$LD -v 2>&1 </dev/null` in
 
6733
*GNU* | *'with BFD'*)
5923
6734
  lt_cv_prog_gnu_ld=yes
5924
 
else
 
6735
  ;;
 
6736
*)
5925
6737
  lt_cv_prog_gnu_ld=no
5926
 
fi
 
6738
  ;;
 
6739
esac
5927
6740
fi
5928
6741
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5929
6742
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5965
6778
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5966
6779
      #   nm: unknown option "B" ignored
5967
6780
      # Tru64's nm complains that /dev/null is an invalid object file
5968
 
      if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
6781
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
6782
      */dev/null* | *'Invalid file or object type'*)
5969
6783
        lt_cv_path_NM="$tmp_nm -B"
5970
6784
        break
5971
 
      elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5972
 
        lt_cv_path_NM="$tmp_nm -p"
5973
 
        break
5974
 
      else
5975
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5976
 
        continue # so that we can try to find one that supports BSD flags
5977
 
      fi
 
6785
        ;;
 
6786
      *)
 
6787
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
6788
        */dev/null*)
 
6789
          lt_cv_path_NM="$tmp_nm -p"
 
6790
          break
 
6791
          ;;
 
6792
        *)
 
6793
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
6794
          continue # so that we can try to find one that supports BSD flags
 
6795
          ;;
 
6796
        esac
 
6797
      esac
5978
6798
    fi
5979
6799
  done
5980
6800
  IFS="$lt_save_ifs"
5985
6805
echo "${ECHO_T}$lt_cv_path_NM" >&6
5986
6806
NM="$lt_cv_path_NM"
5987
6807
 
5988
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5989
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5990
 
if test "${lt_cv_path_SED+set}" = set; then
5991
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5992
 
else
5993
 
  # Loop through the user's path and test for sed and gsed.
5994
 
# Then use that list of sed's as ones to test for truncation.
5995
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996
 
for as_dir in $PATH
5997
 
do
5998
 
  IFS=$as_save_IFS
5999
 
  test -z "$as_dir" && as_dir=.
6000
 
  for ac_prog in sed gsed; do
6001
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6002
 
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6003
 
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
6004
 
      fi
6005
 
    done
6006
 
  done
6007
 
done
6008
 
 
6009
 
  # Create a temporary directory, and hook for its removal unless debugging.
6010
 
$debug ||
6011
 
{
6012
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6013
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
6014
 
}
6015
 
 
6016
 
# Create a (secure) tmp directory for tmp files.
6017
 
: ${TMPDIR=/tmp}
6018
 
{
6019
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
6020
 
  test -n "$tmp" && test -d "$tmp"
6021
 
}  ||
6022
 
{
6023
 
  tmp=$TMPDIR/sed$$-$RANDOM
6024
 
  (umask 077 && mkdir $tmp)
6025
 
} ||
6026
 
{
6027
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6028
 
   { (exit 1); exit 1; }
6029
 
}
6030
 
  _max=0
6031
 
  _count=0
6032
 
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6033
 
  # along with /bin/sed that truncates output.
6034
 
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
6035
 
    test ! -f ${_sed} && break
6036
 
    cat /dev/null > "$tmp/sed.in"
6037
 
    _count=0
6038
 
    echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
6039
 
    # Check for GNU sed and select it if it is found.
6040
 
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
6041
 
      lt_cv_path_SED=${_sed}
6042
 
      break;
6043
 
    fi
6044
 
    while true; do
6045
 
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
6046
 
      mv "$tmp/sed.tmp" "$tmp/sed.in"
6047
 
      cp "$tmp/sed.in" "$tmp/sed.nl"
6048
 
      echo >>"$tmp/sed.nl"
6049
 
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
6050
 
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
6051
 
      # 10000 chars as input seems more than enough
6052
 
      test $_count -gt 10 && break
6053
 
      _count=`expr $_count + 1`
6054
 
      if test $_count -gt $_max; then
6055
 
        _max=$_count
6056
 
        lt_cv_path_SED=$_sed
6057
 
      fi
6058
 
    done
6059
 
  done
6060
 
  rm -rf "$tmp"
6061
 
 
6062
 
fi
6063
 
 
6064
 
echo "$as_me:$LINENO: result: $SED" >&5
6065
 
echo "${ECHO_T}$SED" >&6
6066
 
 
6067
6808
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6068
6809
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6069
6810
LN_S=$as_ln_s
6075
6816
echo "${ECHO_T}no, using $LN_S" >&6
6076
6817
fi
6077
6818
 
6078
 
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
6079
 
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
 
6819
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
6820
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6080
6821
if test "${lt_cv_deplibs_check_method+set}" = set; then
6081
6822
  echo $ECHO_N "(cached) $ECHO_C" >&6
6082
6823
else
6090
6831
# 'pass_all' -- all dependencies passed with no checks.
6091
6832
# 'test_compile' -- check by making test program.
6092
6833
# 'file_magic [[regex]]' -- check by looking for files in library path
6093
 
# which responds to the $file_magic_cmd with a given egrep regex.
 
6834
# which responds to the $file_magic_cmd with a given extended regex.
6094
6835
# If you have `file' or equivalent on your system and you're not sure
6095
6836
# whether `pass_all' will *always* work, you probably want this one.
6096
6837
 
6109
6850
  lt_cv_file_magic_test_file=/shlib/libc.so
6110
6851
  ;;
6111
6852
 
6112
 
cygwin* | mingw* | pw32*)
6113
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6114
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6853
cygwin*)
 
6854
  lt_cv_deplibs_check_method=pass_all
 
6855
  ;;
 
6856
 
 
6857
mingw* | pw32*)
 
6858
  # win32_libid is a shell function defined in ltmain.sh
 
6859
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6860
  lt_cv_file_magic_cmd='win32_libid'
6115
6861
  ;;
6116
6862
 
6117
6863
darwin* | rhapsody*)
 
6864
  # this will be overwritten by pass_all, but leave it in just in case
6118
6865
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
6119
6866
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6120
6867
  case "$host_os" in
6125
6872
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
6126
6873
    ;;
6127
6874
  esac
 
6875
  lt_cv_deplibs_check_method=pass_all
6128
6876
  ;;
6129
6877
 
6130
6878
freebsd*)
6149
6897
 
6150
6898
hpux10.20* | hpux11*)
6151
6899
  lt_cv_file_magic_cmd=/usr/bin/file
6152
 
  if test "$host_cpu" = ia64; then
 
6900
  case "$host_cpu" in
 
6901
  ia64*)
6153
6902
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6154
6903
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6155
 
  else
 
6904
    ;;
 
6905
  hppa*64*)
 
6906
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
6907
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6908
    ;;
 
6909
  *)
6156
6910
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6157
6911
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6158
 
  fi
 
6912
    ;;
 
6913
  esac
6159
6914
  ;;
6160
6915
 
6161
6916
irix5* | irix6* | nonstopux*)
6182
6937
# This must be Linux ELF.
6183
6938
linux*)
6184
6939
  case $host_cpu in
6185
 
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* )
 
6940
  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
 
6941
    lt_cv_deplibs_check_method=pass_all ;;
 
6942
  # the debian people say, arm and glibc 2.3.1 works for them with pass_all
 
6943
  arm* )
6186
6944
    lt_cv_deplibs_check_method=pass_all ;;
6187
6945
  *)
6188
6946
    # glibc up to 2.1.1 does not perform some relocations on ARM
6193
6951
 
6194
6952
netbsd*)
6195
6953
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6196
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
6954
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6197
6955
  else
6198
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
6956
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6199
6957
  fi
6200
6958
  ;;
6201
6959
 
6205
6963
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6206
6964
  ;;
6207
6965
 
6208
 
nto-qnx)
 
6966
nto-qnx*)
6209
6967
  lt_cv_deplibs_check_method=unknown
6210
6968
  ;;
6211
6969
 
6253
7011
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6254
7012
    lt_cv_file_magic_test_file=/lib/libc.so
6255
7013
    ;;
 
7014
  siemens)
 
7015
    lt_cv_deplibs_check_method=pass_all
 
7016
    ;;
6256
7017
  esac
6257
7018
  ;;
6258
7019
 
6273
7034
LTCC=${LTCC-"$CC"}
6274
7035
 
6275
7036
# Allow CC to be a program name with arguments.
6276
 
set dummy $CC
6277
 
compiler="$2"
6278
 
 
 
7037
compiler=$CC
6279
7038
 
6280
7039
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6281
7040
if test "${enable_libtool_lock+set}" = set; then
6308
7067
  ;;
6309
7068
*-*-irix6*)
6310
7069
  # Find out which ABI we are using.
6311
 
  echo '#line 6311 "configure"' > conftest.$ac_ext
 
7070
  echo '#line 7070 "configure"' > conftest.$ac_ext
6312
7071
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6313
7072
  (eval $ac_compile) 2>&5
6314
7073
  ac_status=$?
6315
7074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316
7075
  (exit $ac_status); }; then
 
7076
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
7077
    case `/usr/bin/file conftest.$ac_objext` in
 
7078
    *32-bit*)
 
7079
      LD="${LD-ld} -melf32bsmip"
 
7080
      ;;
 
7081
    *N32*)
 
7082
      LD="${LD-ld} -melf32bmipn32"
 
7083
      ;;
 
7084
    *64-bit*)
 
7085
      LD="${LD-ld} -melf64bmip"
 
7086
      ;;
 
7087
    esac
 
7088
   else
6317
7089
    case `/usr/bin/file conftest.$ac_objext` in
6318
7090
    *32-bit*)
6319
7091
      LD="${LD-ld} -32"
6325
7097
      LD="${LD-ld} -64"
6326
7098
      ;;
6327
7099
    esac
 
7100
   fi
6328
7101
  fi
6329
7102
  rm -rf conftest*
6330
7103
  ;;
6331
7104
 
6332
 
*-*-linux*)
6333
 
  # Test if the compiler is 64bit
 
7105
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
7106
  # Find out which ABI we are using.
6334
7107
  echo 'int i;' > conftest.$ac_ext
6335
7108
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336
7109
  (eval $ac_compile) 2>&5
6337
7110
  ac_status=$?
6338
7111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339
7112
  (exit $ac_status); }; then
6340
 
    case `/usr/bin/file conftest.$ac_objext` in
6341
 
    *"ELF 32"*)
 
7113
    case "`/usr/bin/file conftest.o`" in
 
7114
    *32-bit*)
6342
7115
      LINUX_64_MODE="32"
 
7116
      case $host in
 
7117
        x86_64-*linux*)
 
7118
          LD="${LD-ld} -m elf_i386"
 
7119
          ;;
 
7120
        ppc64-*linux*)
 
7121
          LD="${LD-ld} -m elf32ppclinux"
 
7122
          ;;
 
7123
        s390x-*linux*)
 
7124
          LD="${LD-ld} -m elf_s390"
 
7125
          ;;
 
7126
        sparc64-*linux*)
 
7127
          LD="${LD-ld} -m elf32_sparc"
 
7128
          ;;
 
7129
      esac
6343
7130
      ;;
6344
 
    *"ELF 64"*)
 
7131
    *64-bit*)
6345
7132
      LINUX_64_MODE="64"
 
7133
      case $host in
 
7134
        x86_64-*linux*)
 
7135
          LD="${LD-ld} -m elf_x86_64"
 
7136
          ;;
 
7137
        ppc*-*linux*|powerpc*-*linux*)
 
7138
          LD="${LD-ld} -m elf64ppc"
 
7139
          ;;
 
7140
        s390*-*linux*)
 
7141
          LD="${LD-ld} -m elf64_s390"
 
7142
          ;;
 
7143
        sparc*-*linux*)
 
7144
          LD="${LD-ld} -m elf64_sparc"
 
7145
          ;;
 
7146
      esac
6346
7147
      ;;
6347
7148
    esac
6348
7149
  fi
6365
7166
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366
7167
 
6367
7168
     cat >conftest.$ac_ext <<_ACEOF
6368
 
#line $LINENO "configure"
6369
7169
/* confdefs.h.  */
6370
7170
_ACEOF
6371
7171
cat confdefs.h >>conftest.$ac_ext
6382
7182
_ACEOF
6383
7183
rm -f conftest.$ac_objext conftest$ac_exeext
6384
7184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6385
 
  (eval $ac_link) 2>&5
 
7185
  (eval $ac_link) 2>conftest.er1
6386
7186
  ac_status=$?
 
7187
  grep -v '^ *+' conftest.er1 >conftest.err
 
7188
  rm -f conftest.er1
 
7189
  cat conftest.err >&5
6387
7190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388
7191
  (exit $ac_status); } &&
6389
 
         { ac_try='test -s conftest$ac_exeext'
 
7192
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7194
  (eval $ac_try) 2>&5
 
7195
  ac_status=$?
 
7196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7197
  (exit $ac_status); }; } &&
 
7198
         { ac_try='test -s conftest$ac_exeext'
6390
7199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391
7200
  (eval $ac_try) 2>&5
6392
7201
  ac_status=$?
6399
7208
 
6400
7209
lt_cv_cc_needs_belf=no
6401
7210
fi
6402
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7211
rm -f conftest.err conftest.$ac_objext \
 
7212
      conftest$ac_exeext conftest.$ac_ext
6403
7213
     ac_ext=c
6404
7214
ac_cpp='$CPP $CPPFLAGS'
6405
7215
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421
7231
 
6422
7232
 
6423
7233
 
6424
 
echo "$as_me:$LINENO: checking for egrep" >&5
6425
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6426
 
if test "${ac_cv_prog_egrep+set}" = set; then
6427
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6428
 
else
6429
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6430
 
    then ac_cv_prog_egrep='grep -E'
6431
 
    else ac_cv_prog_egrep='egrep'
6432
 
    fi
6433
 
fi
6434
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6435
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6436
 
 EGREP=$ac_cv_prog_egrep
6437
 
 
6438
 
 
6439
7234
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6440
7235
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6441
7236
if test "${ac_cv_header_stdc+set}" = set; then
6442
7237
  echo $ECHO_N "(cached) $ECHO_C" >&6
6443
7238
else
6444
7239
  cat >conftest.$ac_ext <<_ACEOF
6445
 
#line $LINENO "configure"
6446
7240
/* confdefs.h.  */
6447
7241
_ACEOF
6448
7242
cat confdefs.h >>conftest.$ac_ext
6463
7257
_ACEOF
6464
7258
rm -f conftest.$ac_objext
6465
7259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6466
 
  (eval $ac_compile) 2>&5
 
7260
  (eval $ac_compile) 2>conftest.er1
6467
7261
  ac_status=$?
 
7262
  grep -v '^ *+' conftest.er1 >conftest.err
 
7263
  rm -f conftest.er1
 
7264
  cat conftest.err >&5
6468
7265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469
7266
  (exit $ac_status); } &&
6470
 
         { ac_try='test -s conftest.$ac_objext'
 
7267
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7269
  (eval $ac_try) 2>&5
 
7270
  ac_status=$?
 
7271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7272
  (exit $ac_status); }; } &&
 
7273
         { ac_try='test -s conftest.$ac_objext'
6471
7274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472
7275
  (eval $ac_try) 2>&5
6473
7276
  ac_status=$?
6480
7283
 
6481
7284
ac_cv_header_stdc=no
6482
7285
fi
6483
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
7286
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6484
7287
 
6485
7288
if test $ac_cv_header_stdc = yes; then
6486
7289
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6487
7290
  cat >conftest.$ac_ext <<_ACEOF
6488
 
#line $LINENO "configure"
6489
7291
/* confdefs.h.  */
6490
7292
_ACEOF
6491
7293
cat confdefs.h >>conftest.$ac_ext
6507
7309
if test $ac_cv_header_stdc = yes; then
6508
7310
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6509
7311
  cat >conftest.$ac_ext <<_ACEOF
6510
 
#line $LINENO "configure"
6511
7312
/* confdefs.h.  */
6512
7313
_ACEOF
6513
7314
cat confdefs.h >>conftest.$ac_ext
6532
7333
  :
6533
7334
else
6534
7335
  cat >conftest.$ac_ext <<_ACEOF
6535
 
#line $LINENO "configure"
6536
7336
/* confdefs.h.  */
6537
7337
_ACEOF
6538
7338
cat confdefs.h >>conftest.$ac_ext
6544
7344
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6545
7345
#else
6546
7346
# define ISLOWER(c) \
6547
 
                   (('a' <= (c) && (c) <= 'i') \
6548
 
                     || ('j' <= (c) && (c) <= 'r') \
6549
 
                     || ('s' <= (c) && (c) <= 'z'))
 
7347
                   (('a' <= (c) && (c) <= 'i') \
 
7348
                     || ('j' <= (c) && (c) <= 'r') \
 
7349
                     || ('s' <= (c) && (c) <= 'z'))
6550
7350
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6551
7351
#endif
6552
7352
 
6557
7357
  int i;
6558
7358
  for (i = 0; i < 256; i++)
6559
7359
    if (XOR (islower (i), ISLOWER (i))
6560
 
        || toupper (i) != TOUPPER (i))
 
7360
        || toupper (i) != TOUPPER (i))
6561
7361
      exit(2);
6562
7362
  exit (0);
6563
7363
}
6582
7382
( exit $ac_status )
6583
7383
ac_cv_header_stdc=no
6584
7384
fi
6585
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7385
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6586
7386
fi
6587
7387
fi
6588
7388
fi
6607
7407
 
6608
7408
 
6609
7409
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6610
 
                  inttypes.h stdint.h unistd.h
 
7410
                  inttypes.h stdint.h unistd.h
6611
7411
do
6612
7412
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6613
7413
echo "$as_me:$LINENO: checking for $ac_header" >&5
6616
7416
  echo $ECHO_N "(cached) $ECHO_C" >&6
6617
7417
else
6618
7418
  cat >conftest.$ac_ext <<_ACEOF
6619
 
#line $LINENO "configure"
6620
7419
/* confdefs.h.  */
6621
7420
_ACEOF
6622
7421
cat confdefs.h >>conftest.$ac_ext
6628
7427
_ACEOF
6629
7428
rm -f conftest.$ac_objext
6630
7429
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631
 
  (eval $ac_compile) 2>&5
 
7430
  (eval $ac_compile) 2>conftest.er1
6632
7431
  ac_status=$?
 
7432
  grep -v '^ *+' conftest.er1 >conftest.err
 
7433
  rm -f conftest.er1
 
7434
  cat conftest.err >&5
6633
7435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634
7436
  (exit $ac_status); } &&
6635
 
         { ac_try='test -s conftest.$ac_objext'
 
7437
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7439
  (eval $ac_try) 2>&5
 
7440
  ac_status=$?
 
7441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7442
  (exit $ac_status); }; } &&
 
7443
         { ac_try='test -s conftest.$ac_objext'
6636
7444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637
7445
  (eval $ac_try) 2>&5
6638
7446
  ac_status=$?
6645
7453
 
6646
7454
eval "$as_ac_Header=no"
6647
7455
fi
6648
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
7456
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649
7457
fi
6650
7458
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6651
7459
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6676
7484
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6677
7485
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6678
7486
cat >conftest.$ac_ext <<_ACEOF
6679
 
#line $LINENO "configure"
6680
7487
/* confdefs.h.  */
6681
7488
_ACEOF
6682
7489
cat confdefs.h >>conftest.$ac_ext
6687
7494
_ACEOF
6688
7495
rm -f conftest.$ac_objext
6689
7496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690
 
  (eval $ac_compile) 2>&5
 
7497
  (eval $ac_compile) 2>conftest.er1
6691
7498
  ac_status=$?
 
7499
  grep -v '^ *+' conftest.er1 >conftest.err
 
7500
  rm -f conftest.er1
 
7501
  cat conftest.err >&5
6692
7502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693
7503
  (exit $ac_status); } &&
6694
 
         { ac_try='test -s conftest.$ac_objext'
 
7504
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7506
  (eval $ac_try) 2>&5
 
7507
  ac_status=$?
 
7508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7509
  (exit $ac_status); }; } &&
 
7510
         { ac_try='test -s conftest.$ac_objext'
6695
7511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696
7512
  (eval $ac_try) 2>&5
6697
7513
  ac_status=$?
6704
7520
 
6705
7521
ac_header_compiler=no
6706
7522
fi
6707
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
7523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6708
7524
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6709
7525
echo "${ECHO_T}$ac_header_compiler" >&6
6710
7526
 
6712
7528
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6713
7529
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6714
7530
cat >conftest.$ac_ext <<_ACEOF
6715
 
#line $LINENO "configure"
6716
7531
/* confdefs.h.  */
6717
7532
_ACEOF
6718
7533
cat confdefs.h >>conftest.$ac_ext
6730
7545
  (exit $ac_status); } >/dev/null; then
6731
7546
  if test -s conftest.err; then
6732
7547
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7548
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6733
7549
  else
6734
7550
    ac_cpp_err=
6735
7551
  fi
6749
7565
echo "${ECHO_T}$ac_header_preproc" >&6
6750
7566
 
6751
7567
# So?  What about this header?
6752
 
case $ac_header_compiler:$ac_header_preproc in
6753
 
  yes:no )
 
7568
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7569
  yes:no: )
6754
7570
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6755
7571
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6756
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6757
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6758
 
    (
6759
 
      cat <<\_ASBOX
6760
 
## ------------------------------------ ##
6761
 
## Report this to bug-autoconf@gnu.org. ##
6762
 
## ------------------------------------ ##
6763
 
_ASBOX
6764
 
    ) |
6765
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
7572
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7573
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7574
    ac_header_preproc=yes
6766
7575
    ;;
6767
 
  no:yes )
 
7576
  no:yes:* )
6768
7577
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6769
7578
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6770
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6771
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
7579
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7580
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7581
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7582
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7583
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7584
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6772
7585
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6773
7586
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7587
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7588
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6774
7589
    (
6775
7590
      cat <<\_ASBOX
6776
 
## ------------------------------------ ##
6777
 
## Report this to bug-autoconf@gnu.org. ##
6778
 
## ------------------------------------ ##
 
7591
## ------------------------------------------ ##
 
7592
## Report this to the AC_PACKAGE_NAME lists.  ##
 
7593
## ------------------------------------------ ##
6779
7594
_ASBOX
6780
7595
    ) |
6781
7596
      sed "s/^/$as_me: WARNING:     /" >&2
6786
7601
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6787
7602
  echo $ECHO_N "(cached) $ECHO_C" >&6
6788
7603
else
6789
 
  eval "$as_ac_Header=$ac_header_preproc"
 
7604
  eval "$as_ac_Header=\$ac_header_preproc"
6790
7605
fi
6791
7606
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6792
7607
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6801
7616
 
6802
7617
done
6803
7618
 
 
7619
ac_ext=f
 
7620
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
7621
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7622
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
7623
if test -n "$ac_tool_prefix"; then
 
7624
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7625
  do
 
7626
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7627
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7628
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7629
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7630
if test "${ac_cv_prog_F77+set}" = set; then
 
7631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7632
else
 
7633
  if test -n "$F77"; then
 
7634
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
7635
else
 
7636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7637
for as_dir in $PATH
 
7638
do
 
7639
  IFS=$as_save_IFS
 
7640
  test -z "$as_dir" && as_dir=.
 
7641
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7642
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7643
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
7644
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7645
    break 2
 
7646
  fi
 
7647
done
 
7648
done
 
7649
 
 
7650
fi
 
7651
fi
 
7652
F77=$ac_cv_prog_F77
 
7653
if test -n "$F77"; then
 
7654
  echo "$as_me:$LINENO: result: $F77" >&5
 
7655
echo "${ECHO_T}$F77" >&6
 
7656
else
 
7657
  echo "$as_me:$LINENO: result: no" >&5
 
7658
echo "${ECHO_T}no" >&6
 
7659
fi
 
7660
 
 
7661
    test -n "$F77" && break
 
7662
  done
 
7663
fi
 
7664
if test -z "$F77"; then
 
7665
  ac_ct_F77=$F77
 
7666
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7667
do
 
7668
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7669
set dummy $ac_prog; ac_word=$2
 
7670
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7671
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7672
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
7673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7674
else
 
7675
  if test -n "$ac_ct_F77"; then
 
7676
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
7677
else
 
7678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7679
for as_dir in $PATH
 
7680
do
 
7681
  IFS=$as_save_IFS
 
7682
  test -z "$as_dir" && as_dir=.
 
7683
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7684
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7685
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
7686
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7687
    break 2
 
7688
  fi
 
7689
done
 
7690
done
 
7691
 
 
7692
fi
 
7693
fi
 
7694
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
7695
if test -n "$ac_ct_F77"; then
 
7696
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
7697
echo "${ECHO_T}$ac_ct_F77" >&6
 
7698
else
 
7699
  echo "$as_me:$LINENO: result: no" >&5
 
7700
echo "${ECHO_T}no" >&6
 
7701
fi
 
7702
 
 
7703
  test -n "$ac_ct_F77" && break
 
7704
done
 
7705
 
 
7706
  F77=$ac_ct_F77
 
7707
fi
 
7708
 
 
7709
 
 
7710
# Provide some information about the compiler.
 
7711
echo "$as_me:7711:" \
 
7712
     "checking for Fortran 77 compiler version" >&5
 
7713
ac_compiler=`set X $ac_compile; echo $2`
 
7714
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
7715
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
7716
  ac_status=$?
 
7717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7718
  (exit $ac_status); }
 
7719
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
7720
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
7721
  ac_status=$?
 
7722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7723
  (exit $ac_status); }
 
7724
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
7725
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
7726
  ac_status=$?
 
7727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7728
  (exit $ac_status); }
 
7729
rm -f a.out
 
7730
 
 
7731
# If we don't use `.F' as extension, the preprocessor is not run on the
 
7732
# input file.  (Note that this only needs to work for GNU compilers.)
 
7733
ac_save_ext=$ac_ext
 
7734
ac_ext=F
 
7735
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
7736
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
7737
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
7738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7739
else
 
7740
  cat >conftest.$ac_ext <<_ACEOF
 
7741
      program main
 
7742
#ifndef __GNUC__
 
7743
       choke me
 
7744
#endif
 
7745
 
 
7746
      end
 
7747
_ACEOF
 
7748
rm -f conftest.$ac_objext
 
7749
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7750
  (eval $ac_compile) 2>conftest.er1
 
7751
  ac_status=$?
 
7752
  grep -v '^ *+' conftest.er1 >conftest.err
 
7753
  rm -f conftest.er1
 
7754
  cat conftest.err >&5
 
7755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7756
  (exit $ac_status); } &&
 
7757
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
7758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7759
  (eval $ac_try) 2>&5
 
7760
  ac_status=$?
 
7761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7762
  (exit $ac_status); }; } &&
 
7763
         { ac_try='test -s conftest.$ac_objext'
 
7764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7765
  (eval $ac_try) 2>&5
 
7766
  ac_status=$?
 
7767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7768
  (exit $ac_status); }; }; then
 
7769
  ac_compiler_gnu=yes
 
7770
else
 
7771
  echo "$as_me: failed program was:" >&5
 
7772
sed 's/^/| /' conftest.$ac_ext >&5
 
7773
 
 
7774
ac_compiler_gnu=no
 
7775
fi
 
7776
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7777
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
7778
 
 
7779
fi
 
7780
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
7781
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
7782
ac_ext=$ac_save_ext
 
7783
ac_test_FFLAGS=${FFLAGS+set}
 
7784
ac_save_FFLAGS=$FFLAGS
 
7785
FFLAGS=
 
7786
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
7787
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
7788
if test "${ac_cv_prog_f77_g+set}" = set; then
 
7789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7790
else
 
7791
  FFLAGS=-g
 
7792
cat >conftest.$ac_ext <<_ACEOF
 
7793
      program main
 
7794
 
 
7795
      end
 
7796
_ACEOF
 
7797
rm -f conftest.$ac_objext
 
7798
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7799
  (eval $ac_compile) 2>conftest.er1
 
7800
  ac_status=$?
 
7801
  grep -v '^ *+' conftest.er1 >conftest.err
 
7802
  rm -f conftest.er1
 
7803
  cat conftest.err >&5
 
7804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7805
  (exit $ac_status); } &&
 
7806
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
7807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7808
  (eval $ac_try) 2>&5
 
7809
  ac_status=$?
 
7810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7811
  (exit $ac_status); }; } &&
 
7812
         { ac_try='test -s conftest.$ac_objext'
 
7813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7814
  (eval $ac_try) 2>&5
 
7815
  ac_status=$?
 
7816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7817
  (exit $ac_status); }; }; then
 
7818
  ac_cv_prog_f77_g=yes
 
7819
else
 
7820
  echo "$as_me: failed program was:" >&5
 
7821
sed 's/^/| /' conftest.$ac_ext >&5
 
7822
 
 
7823
ac_cv_prog_f77_g=no
 
7824
fi
 
7825
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7826
 
 
7827
fi
 
7828
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
7829
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
7830
if test "$ac_test_FFLAGS" = set; then
 
7831
  FFLAGS=$ac_save_FFLAGS
 
7832
elif test $ac_cv_prog_f77_g = yes; then
 
7833
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7834
    FFLAGS="-g -O2"
 
7835
  else
 
7836
    FFLAGS="-g"
 
7837
  fi
 
7838
else
 
7839
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7840
    FFLAGS="-O2"
 
7841
  else
 
7842
    FFLAGS=
 
7843
  fi
 
7844
fi
 
7845
 
 
7846
G77=`test $ac_compiler_gnu = yes && echo yes`
 
7847
ac_ext=c
 
7848
ac_cpp='$CPP $CPPFLAGS'
 
7849
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7850
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7851
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7852
 
 
7853
 
6804
7854
 
6805
7855
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6806
7856
 
6813
7863
    i=0
6814
7864
  testring="ABCD"
6815
7865
 
6816
 
  case $host_os in
 
7866
  case $build_os in
6817
7867
  msdosdjgpp*)
6818
7868
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6819
7869
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6829
7879
    lt_cv_sys_max_cmd_len=-1;
6830
7880
    ;;
6831
7881
 
6832
 
  *)
 
7882
  cygwin* | mingw*)
 
7883
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
7884
    # about 5 minutes as the teststring grows exponentially.
 
7885
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
7886
    # you end up with a "frozen" computer, even though with patience
 
7887
    # the test eventually succeeds (with a max line length of 256k).
 
7888
    # Instead, let's just punt: use the minimum linelength reported by
 
7889
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
7890
    lt_cv_sys_max_cmd_len=8192;
 
7891
    ;;
 
7892
 
 
7893
 *)
6833
7894
    # If test is not a shell built-in, we'll probably end up computing a
6834
7895
    # maximum length that is only half of the actual maximum length, but
6835
7896
    # we can't tell.
6906
7967
irix* | nonstopux*)
6907
7968
  symcode='[BCDEGRST]'
6908
7969
  ;;
 
7970
osf*)
 
7971
  symcode='[BCDEGQRST]'
 
7972
  ;;
6909
7973
solaris* | sysv5*)
6910
7974
  symcode='[BDT]'
6911
7975
  ;;
6916
7980
 
6917
7981
# Handle CRLF in mingw tool chain
6918
7982
opt_cr=
6919
 
case $host_os in
 
7983
case $build_os in
6920
7984
mingw*)
6921
7985
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6922
7986
  ;;
6923
7987
esac
6924
7988
 
6925
7989
# If we're using GNU nm, then use its standard symbol codes.
6926
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
6927
 
  symcode='[ABCDGISTW]'
6928
 
fi
 
7990
case `$NM -V 2>&1` in
 
7991
*GNU* | *'with BFD'*)
 
7992
  symcode='[ABCDGISTW]' ;;
 
7993
esac
6929
7994
 
6930
7995
# Try without a prefix undercore, then with it.
6931
7996
for ac_symprfx in "" "_"; do
6969
8034
      fi
6970
8035
 
6971
8036
      # Make sure that we snagged all the symbols we need.
6972
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
6973
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
8037
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
8038
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6974
8039
          cat <<EOF > conftest.$ac_ext
6975
8040
#ifdef __cplusplus
6976
8041
extern "C" {
6996
8061
lt_preloaded_symbols[] =
6997
8062
{
6998
8063
EOF
6999
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
8064
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7000
8065
          cat <<\EOF >> conftest.$ac_ext
7001
8066
  {0, (lt_ptr_t) 0}
7002
8067
};
7121
8186
with_gnu_ld="$lt_cv_prog_gnu_ld"
7122
8187
 
7123
8188
if test -n "$ac_tool_prefix"; then
 
8189
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
8190
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
8191
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8192
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8193
if test "${ac_cv_prog_AR+set}" = set; then
 
8194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8195
else
 
8196
  if test -n "$AR"; then
 
8197
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
8198
else
 
8199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8200
for as_dir in $PATH
 
8201
do
 
8202
  IFS=$as_save_IFS
 
8203
  test -z "$as_dir" && as_dir=.
 
8204
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8205
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8206
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
8207
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8208
    break 2
 
8209
  fi
 
8210
done
 
8211
done
 
8212
 
 
8213
fi
 
8214
fi
 
8215
AR=$ac_cv_prog_AR
 
8216
if test -n "$AR"; then
 
8217
  echo "$as_me:$LINENO: result: $AR" >&5
 
8218
echo "${ECHO_T}$AR" >&6
 
8219
else
 
8220
  echo "$as_me:$LINENO: result: no" >&5
 
8221
echo "${ECHO_T}no" >&6
 
8222
fi
 
8223
 
 
8224
fi
 
8225
if test -z "$ac_cv_prog_AR"; then
 
8226
  ac_ct_AR=$AR
 
8227
  # Extract the first word of "ar", so it can be a program name with args.
 
8228
set dummy ar; ac_word=$2
 
8229
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8230
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8231
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
8232
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8233
else
 
8234
  if test -n "$ac_ct_AR"; then
 
8235
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
8236
else
 
8237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8238
for as_dir in $PATH
 
8239
do
 
8240
  IFS=$as_save_IFS
 
8241
  test -z "$as_dir" && as_dir=.
 
8242
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8243
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8244
    ac_cv_prog_ac_ct_AR="ar"
 
8245
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8246
    break 2
 
8247
  fi
 
8248
done
 
8249
done
 
8250
 
 
8251
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
8252
fi
 
8253
fi
 
8254
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
8255
if test -n "$ac_ct_AR"; then
 
8256
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
8257
echo "${ECHO_T}$ac_ct_AR" >&6
 
8258
else
 
8259
  echo "$as_me:$LINENO: result: no" >&5
 
8260
echo "${ECHO_T}no" >&6
 
8261
fi
 
8262
 
 
8263
  AR=$ac_ct_AR
 
8264
else
 
8265
  AR="$ac_cv_prog_AR"
 
8266
fi
 
8267
 
 
8268
if test -n "$ac_tool_prefix"; then
7124
8269
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7125
8270
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7126
8271
echo "$as_me:$LINENO: checking for $ac_word" >&5
7346
8491
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7347
8492
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7348
8493
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7349
 
            egrep "$file_magic_regex" > /dev/null; then
 
8494
            $EGREP "$file_magic_regex" > /dev/null; then
7350
8495
            :
7351
8496
          else
7352
8497
            cat <<EOF 1>&2
7408
8553
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7409
8554
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7410
8555
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7411
 
            egrep "$file_magic_regex" > /dev/null; then
 
8556
            $EGREP "$file_magic_regex" > /dev/null; then
7412
8557
            :
7413
8558
          else
7414
8559
            cat <<EOF 1>&2
7453
8598
  ;;
7454
8599
esac
7455
8600
 
7456
 
enable_dlopen=no
 
8601
enable_dlopen=yes
7457
8602
enable_win32_dll=no
7458
8603
 
7459
8604
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7491
8636
objext=$objext
7492
8637
 
7493
8638
# Code to be used in simple compile tests
7494
 
lt_simple_compile_test_code="int some_variable = 0;"
 
8639
lt_simple_compile_test_code="int some_variable = 0;\n"
7495
8640
 
7496
8641
# Code to be used in simple link tests
7497
 
lt_simple_link_test_code='main(){return(0);}'
 
8642
lt_simple_link_test_code='int main(){return(0);}\n'
7498
8643
 
7499
8644
 
7500
8645
# If no C compiler was specified, use CC.
7501
8646
LTCC=${LTCC-"$CC"}
7502
8647
 
7503
8648
# Allow CC to be a program name with arguments.
7504
 
set dummy $CC
7505
 
compiler="$2"
 
8649
compiler=$CC
7506
8650
 
7507
8651
 
7508
8652
#
7519
8663
if test -n "$lt_prog_cc_shlib"; then
7520
8664
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7521
8665
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7522
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
8666
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7523
8667
  else
7524
8668
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7525
8669
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7539
8683
  lt_prog_compiler_static_works=no
7540
8684
   save_LDFLAGS="$LDFLAGS"
7541
8685
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7542
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8686
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7543
8687
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7544
8688
     # The compiler can only warn and ignore the option if not recognized
7545
8689
     # So say no if there are warnings
7571
8715
if test "$GCC" = yes; then
7572
8716
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7573
8717
 
7574
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8718
 
 
8719
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7575
8720
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7576
8721
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7577
8722
  echo $ECHO_N "(cached) $ECHO_C" >&6
7578
8723
else
7579
8724
  lt_cv_prog_compiler_rtti_exceptions=no
7580
8725
  ac_outfile=conftest.$ac_objext
7581
 
   save_CFLAGS="$CFLAGS"
7582
 
   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
7583
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7584
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
 
8726
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8727
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8728
   # Insert the option either (1) after the last *FLAGS variable, or
 
8729
   # (2) before a word containing "conftest.", or (3) at the end.
 
8730
   # Note that $ac_compile itself does not contain backslashes and begins
 
8731
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8732
   # The option is referenced via a variable to avoid confusing sed.
 
8733
   lt_compile=`echo "$ac_compile" | $SED \
 
8734
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8735
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8736
   -e 's:$: $lt_compiler_flag:'`
 
8737
   (eval echo "\"\$as_me:8737: $lt_compile\"" >&5)
 
8738
   (eval "$lt_compile" 2>conftest.err)
 
8739
   ac_status=$?
 
8740
   cat conftest.err >&5
 
8741
   echo "$as_me:8741: \$? = $ac_status" >&5
 
8742
   if (exit $ac_status) && test -s "$ac_outfile"; then
7585
8743
     # The compiler can only warn and ignore the option if not recognized
7586
8744
     # So say no if there are warnings
7587
 
     if test -s conftest.err; then
7588
 
       # Append any errors to the config.log.
7589
 
       cat conftest.err 1>&5
7590
 
     else
 
8745
     if test ! -s conftest.err; then
7591
8746
       lt_cv_prog_compiler_rtti_exceptions=yes
7592
8747
     fi
7593
8748
   fi
7594
8749
   $rm conftest*
7595
 
   CFLAGS="$save_CFLAGS"
7596
8750
 
7597
8751
fi
7598
8752
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7633
8787
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7634
8788
      ;;
7635
8789
 
7636
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8790
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7637
8791
      # PIC is the default for these OSes.
7638
8792
      ;;
7639
8793
 
7640
 
    cygwin* | mingw* | pw32* | os2*)
 
8794
    mingw* | pw32* | os2*)
7641
8795
      # This hack is so that the source file can tell whether it is being
7642
8796
      # built for inclusion in a dll (and should export symbols for example).
7643
8797
      lt_prog_compiler_pic='-DDLL_EXPORT'
7663
8817
      ;;
7664
8818
 
7665
8819
    hpux*)
7666
 
      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
7667
 
      if test "$host_cpu" != ia64; then
 
8820
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8821
      # not for PA HP-UX.
 
8822
      case "$host_cpu" in
 
8823
      hppa*64*|ia64*)
 
8824
        # +Z the default
 
8825
        ;;
 
8826
      *)
7668
8827
        lt_prog_compiler_pic='-fPIC'
7669
 
      fi
 
8828
        ;;
 
8829
      esac
7670
8830
      ;;
7671
8831
 
7672
8832
    *)
7686
8846
      fi
7687
8847
      ;;
7688
8848
 
7689
 
    cygwin* | mingw* | pw32* | os2*)
 
8849
    mingw* | pw32* | os2*)
7690
8850
      # This hack is so that the source file can tell whether it is being
7691
8851
      # built for inclusion in a dll (and should export symbols for example).
7692
8852
      lt_prog_compiler_pic='-DDLL_EXPORT'
7694
8854
 
7695
8855
    hpux9* | hpux10* | hpux11*)
7696
8856
      lt_prog_compiler_wl='-Wl,'
7697
 
      if test "$host_cpu" != ia64; then
 
8857
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8858
      # not for PA HP-UX.
 
8859
      case "$host_cpu" in
 
8860
      hppa*64*|ia64*)
 
8861
        # +Z the default
 
8862
        ;;
 
8863
      *)
7698
8864
        lt_prog_compiler_pic='+Z'
7699
 
      fi
 
8865
        ;;
 
8866
      esac
7700
8867
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7701
8868
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7702
8869
      ;;
7712
8879
      lt_prog_compiler_static='-Bstatic'
7713
8880
      ;;
7714
8881
 
 
8882
    linux*)
 
8883
      case $CC in
 
8884
      icc* | ecc*)
 
8885
        lt_prog_compiler_wl='-Wl,'
 
8886
        lt_prog_compiler_pic='-KPIC'
 
8887
        lt_prog_compiler_static='-static'
 
8888
        ;;
 
8889
      ccc*)
 
8890
        lt_prog_compiler_wl='-Wl,'
 
8891
        # All Alpha code is PIC.
 
8892
        lt_prog_compiler_static='-non_shared'
 
8893
        ;;
 
8894
      esac
 
8895
      ;;
 
8896
 
7715
8897
    osf3* | osf4* | osf5*)
7716
8898
      lt_prog_compiler_wl='-Wl,'
7717
8899
      # All OSF/1 code is PIC.
7736
8918
      ;;
7737
8919
 
7738
8920
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7739
 
      if test "x$host_vendor" = xsni; then
7740
 
        lt_prog_compiler_wl='-LD'
7741
 
      else
7742
 
        lt_prog_compiler_wl='-Wl,'
7743
 
      fi
 
8921
      lt_prog_compiler_wl='-Wl,'
7744
8922
      lt_prog_compiler_pic='-KPIC'
7745
8923
      lt_prog_compiler_static='-Bstatic'
7746
8924
      ;;
7770
8948
# Check to make sure the PIC flag actually works.
7771
8949
#
7772
8950
if test -n "$lt_prog_compiler_pic"; then
7773
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8951
 
 
8952
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7774
8953
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7775
8954
if test "${lt_prog_compiler_pic_works+set}" = set; then
7776
8955
  echo $ECHO_N "(cached) $ECHO_C" >&6
7777
8956
else
7778
8957
  lt_prog_compiler_pic_works=no
7779
8958
  ac_outfile=conftest.$ac_objext
7780
 
   save_CFLAGS="$CFLAGS"
7781
 
   CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
7782
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7783
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
 
8959
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8960
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8961
   # Insert the option either (1) after the last *FLAGS variable, or
 
8962
   # (2) before a word containing "conftest.", or (3) at the end.
 
8963
   # Note that $ac_compile itself does not contain backslashes and begins
 
8964
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8965
   # The option is referenced via a variable to avoid confusing sed.
 
8966
   lt_compile=`echo "$ac_compile" | $SED \
 
8967
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8968
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8969
   -e 's:$: $lt_compiler_flag:'`
 
8970
   (eval echo "\"\$as_me:8970: $lt_compile\"" >&5)
 
8971
   (eval "$lt_compile" 2>conftest.err)
 
8972
   ac_status=$?
 
8973
   cat conftest.err >&5
 
8974
   echo "$as_me:8974: \$? = $ac_status" >&5
 
8975
   if (exit $ac_status) && test -s "$ac_outfile"; then
7784
8976
     # The compiler can only warn and ignore the option if not recognized
7785
8977
     # So say no if there are warnings
7786
 
     if test -s conftest.err; then
7787
 
       # Append any errors to the config.log.
7788
 
       cat conftest.err 1>&5
7789
 
     else
 
8978
     if test ! -s conftest.err; then
7790
8979
       lt_prog_compiler_pic_works=yes
7791
8980
     fi
7792
8981
   fi
7793
8982
   $rm conftest*
7794
 
   CFLAGS="$save_CFLAGS"
7795
8983
 
7796
8984
fi
7797
8985
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7828
9016
   mkdir conftest
7829
9017
   cd conftest
7830
9018
   mkdir out
7831
 
   save_CFLAGS="$CFLAGS"
7832
 
                   CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
7833
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9019
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7834
9020
 
7835
9021
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7836
9022
   # that will create temporary files in the current directory regardless of
7839
9025
   # builds.
7840
9026
   chmod -w .
7841
9027
 
7842
 
   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
 
9028
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9029
   # Insert the option either (1) after the last *FLAGS variable, or
 
9030
   # (2) before a word containing "conftest.", or (3) at the end.
 
9031
   # Note that $ac_compile itself does not contain backslashes and begins
 
9032
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9033
   lt_compile=`echo "$ac_compile" | $SED \
 
9034
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9035
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9036
   -e 's:$: $lt_compiler_flag:'`
 
9037
   (eval echo "\"\$as_me:9037: $lt_compile\"" >&5)
 
9038
   (eval "$lt_compile" 2>out/conftest.err)
 
9039
   ac_status=$?
 
9040
   cat out/conftest.err >&5
 
9041
   echo "$as_me:9041: \$? = $ac_status" >&5
 
9042
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7843
9043
   then
7844
9044
     # The compiler can only warn and ignore the option if not recognized
7845
9045
     # So say no if there are warnings
7846
 
     if test -s out/conftest.err; then
7847
 
       # Append any errors to the config.log.
7848
 
       cat out/conftest.err 1>&5
7849
 
     else
 
9046
     if test ! -s out/conftest.err; then
7850
9047
       lt_cv_prog_compiler_c_o=yes
7851
9048
     fi
7852
9049
   fi
7853
 
   CFLAGS="$save_CFLAGS"
7854
9050
   chmod u+w .
7855
9051
   $rm conftest* out/*
7856
9052
   rmdir out
7890
9086
 
7891
9087
  runpath_var=
7892
9088
  allow_undefined_flag=
7893
 
 
 
9089
  enable_shared_with_static_runtimes=no
7894
9090
  archive_cmds=
7895
 
  archive_cmds_need_lc=
7896
9091
  archive_expsym_cmds=
7897
9092
  old_archive_From_new_cmds=
7898
9093
  old_archive_from_expsyms_cmds=
7900
9095
  whole_archive_flag_spec=
7901
9096
  thread_safe_flag_spec=
7902
9097
  hardcode_libdir_flag_spec=
 
9098
  hardcode_libdir_flag_spec_ld=
7903
9099
  hardcode_libdir_separator=
7904
9100
  hardcode_direct=no
7905
9101
  hardcode_minus_L=no
7906
9102
  hardcode_shlibpath_var=unsupported
7907
9103
  link_all_deplibs=unknown
 
9104
  hardcode_automatic=no
 
9105
  module_cmds=
 
9106
  module_expsym_cmds=
7908
9107
  always_export_symbols=no
7909
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9108
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7910
9109
  # include_expsyms should be a list of space-separated symbols to be *always*
7911
9110
  # included in the symbol list
7912
9111
  include_expsyms=
7913
 
  # exclude_expsyms can be an egrep regular expression of symbols to exclude
 
9112
  # exclude_expsyms can be an extended regexp of symbols to exclude
7914
9113
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7915
9114
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7916
9115
  # as well as any symbol that contains `d'.
7974
9173
      ;;
7975
9174
 
7976
9175
    beos*)
7977
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
9176
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7978
9177
        allow_undefined_flag=unsupported
7979
9178
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7980
9179
        # support --undefined.  This deserves some investigation.  FIXME
7985
9184
      ;;
7986
9185
 
7987
9186
    cygwin* | mingw* | pw32*)
7988
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
7989
 
      # no search path for DLLs.
 
9187
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9188
      # as there is no search path for DLLs.
7990
9189
      hardcode_libdir_flag_spec='-L$libdir'
7991
 
      allow_undefined_flag=unsupported
7992
 
      always_export_symbols=yes
7993
 
 
7994
 
      extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
7995
 
        sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
7996
 
        test -f $output_objdir/impgen.exe || (cd $output_objdir && \
7997
 
        if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
7998
 
        else $CC -o impgen impgen.c ; fi)~
7999
 
        $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
8000
 
 
8001
 
      old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
8002
 
 
8003
 
      # cygwin and mingw dlls have different entry points and sets of symbols
8004
 
      # to exclude.
8005
 
      # FIXME: what about values for MSVC?
8006
 
      dll_entry=__cygwin_dll_entry@12
8007
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
8008
 
      case $host_os in
8009
 
      mingw*)
8010
 
        # mingw values
8011
 
        dll_entry=_DllMainCRTStartup@12
8012
 
        dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
8013
 
        ;;
8014
 
      esac
8015
 
 
8016
 
      # mingw and cygwin differ, and it's simplest to just exclude the union
8017
 
      # of the two symbol sets.
8018
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
8019
 
 
8020
 
      # recent cygwin and mingw systems supply a stub DllMain which the user
8021
 
      # can override, but on older systems we have to supply one (in ltdll.c)
8022
 
      if test "x$lt_cv_need_dllmain" = "xyes"; then
8023
 
        ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
8024
 
        ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
8025
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
8026
 
      else
8027
 
        ltdll_obj=
8028
 
        ltdll_cmds=
8029
 
      fi
8030
 
 
8031
 
      # Extract the symbol export list from an `--export-all' def file,
8032
 
      # then regenerate the def file from the symbol export list, so that
8033
 
      # the compiled dll only exports the symbol export list.
8034
 
      # Be careful not to strip the DATA tag left by newer dlltools.
8035
 
      export_symbols_cmds="$ltdll_cmds"'
8036
 
        $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
8037
 
        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
8038
 
 
8039
 
      # If the export-symbols file already is a .def file (1st line
8040
 
      # is EXPORTS), use it as is.
8041
 
      # If DATA tags from a recent dlltool are present, honour them!
8042
 
      archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
8043
 
          cp $export_symbols $output_objdir/$soname-def;
 
9190
      allow_undefined_flag=no
 
9191
      always_export_symbols=no
 
9192
      enable_shared_with_static_runtimes=yes
 
9193
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
9194
 
 
9195
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9196
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
9197
        # If the export-symbols file already is a .def file (1st line
 
9198
        # is EXPORTS), use it as is; otherwise, prepend...
 
9199
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9200
          cp $export_symbols $output_objdir/$soname.def;
8044
9201
        else
8045
 
          echo EXPORTS > $output_objdir/$soname-def;
8046
 
          _lt_hint=1;
8047
 
          cat $export_symbols | while read symbol; do
8048
 
           set dummy \$symbol;
8049
 
           case \$# in
8050
 
             2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
8051
 
             *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
8052
 
           esac;
8053
 
           _lt_hint=`expr 1 + \$_lt_hint`;
8054
 
          done;
 
9202
          echo EXPORTS > $output_objdir/$soname.def;
 
9203
          cat $export_symbols >> $output_objdir/$soname.def;
8055
9204
        fi~
8056
 
        '"$ltdll_cmds"'
8057
 
        $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
8058
 
        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
8059
 
        $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
8060
 
        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
8061
 
        $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
9205
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
9206
      else
 
9207
        ld_shlibs=no
 
9208
      fi
8062
9209
      ;;
8063
9210
 
8064
9211
    netbsd*)
8066
9213
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8067
9214
        wlarc=
8068
9215
      else
8069
 
        archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8070
 
        archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9216
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9217
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8071
9218
      fi
8072
9219
      ;;
8073
9220
 
8074
9221
    solaris* | sysv5*)
8075
 
      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
9222
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8076
9223
        ld_shlibs=no
8077
9224
        cat <<EOF 1>&2
8078
9225
 
8084
9231
*** used, and then restart.
8085
9232
 
8086
9233
EOF
8087
 
      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
9234
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8088
9235
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8089
9236
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8090
9237
      else
8100
9247
      ;;
8101
9248
 
8102
9249
    *)
8103
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
9250
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8104
9251
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8105
9252
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8106
9253
      else
8113
9260
      runpath_var=LD_RUN_PATH
8114
9261
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8115
9262
      export_dynamic_flag_spec='${wl}--export-dynamic'
8116
 
      case $host_os in
8117
 
      cygwin* | mingw* | pw32*)
8118
 
        # dlltool doesn't understand --whole-archive et. al.
8119
 
        whole_archive_flag_spec=
8120
 
        ;;
8121
 
      *)
8122
 
        # ancient GNU ld didn't support --whole-archive et. al.
8123
 
        if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
8124
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8125
 
        else
 
9263
      # ancient GNU ld didn't support --whole-archive et. al.
 
9264
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
9265
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9266
      else
8126
9267
        whole_archive_flag_spec=
8127
 
        fi
8128
 
        ;;
8129
 
      esac
 
9268
      fi
8130
9269
    fi
8131
9270
  else
8132
9271
    # PORTME fill in a description of your system's linker (not GNU ld)
8155
9294
      else
8156
9295
        # If we're using GNU nm, then we don't want the "-C" option.
8157
9296
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8158
 
        if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
 
9297
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8159
9298
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8160
9299
        else
8161
9300
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8223
9362
        allow_undefined_flag='-berok'
8224
9363
       # Determine the default libpath from the value encoded in an empty executable.
8225
9364
        cat >conftest.$ac_ext <<_ACEOF
8226
 
#line $LINENO "configure"
8227
9365
/* confdefs.h.  */
8228
9366
_ACEOF
8229
9367
cat confdefs.h >>conftest.$ac_ext
8240
9378
_ACEOF
8241
9379
rm -f conftest.$ac_objext conftest$ac_exeext
8242
9380
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243
 
  (eval $ac_link) 2>&5
 
9381
  (eval $ac_link) 2>conftest.er1
8244
9382
  ac_status=$?
 
9383
  grep -v '^ *+' conftest.er1 >conftest.err
 
9384
  rm -f conftest.er1
 
9385
  cat conftest.err >&5
8245
9386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246
9387
  (exit $ac_status); } &&
8247
 
         { ac_try='test -s conftest$ac_exeext'
 
9388
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9390
  (eval $ac_try) 2>&5
 
9391
  ac_status=$?
 
9392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9393
  (exit $ac_status); }; } &&
 
9394
         { ac_try='test -s conftest$ac_exeext'
8248
9395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249
9396
  (eval $ac_try) 2>&5
8250
9397
  ac_status=$?
8251
9398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252
9399
  (exit $ac_status); }; }; then
8253
9400
 
8254
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9401
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8255
9402
}'`
8256
9403
# Check for a 64-bit object if we didn't find anything.
8257
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9404
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8258
9405
}'`; fi
8259
9406
else
8260
9407
  echo "$as_me: failed program was:" >&5
8261
9408
sed 's/^/| /' conftest.$ac_ext >&5
8262
9409
 
8263
9410
fi
8264
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9411
rm -f conftest.err conftest.$ac_objext \
 
9412
      conftest$ac_exeext conftest.$ac_ext
8265
9413
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8266
9414
 
8267
9415
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8275
9423
        else
8276
9424
         # Determine the default libpath from the value encoded in an empty executable.
8277
9425
         cat >conftest.$ac_ext <<_ACEOF
8278
 
#line $LINENO "configure"
8279
9426
/* confdefs.h.  */
8280
9427
_ACEOF
8281
9428
cat confdefs.h >>conftest.$ac_ext
8292
9439
_ACEOF
8293
9440
rm -f conftest.$ac_objext conftest$ac_exeext
8294
9441
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295
 
  (eval $ac_link) 2>&5
 
9442
  (eval $ac_link) 2>conftest.er1
8296
9443
  ac_status=$?
 
9444
  grep -v '^ *+' conftest.er1 >conftest.err
 
9445
  rm -f conftest.er1
 
9446
  cat conftest.err >&5
8297
9447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298
9448
  (exit $ac_status); } &&
8299
 
         { ac_try='test -s conftest$ac_exeext'
 
9449
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9451
  (eval $ac_try) 2>&5
 
9452
  ac_status=$?
 
9453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9454
  (exit $ac_status); }; } &&
 
9455
         { ac_try='test -s conftest$ac_exeext'
8300
9456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301
9457
  (eval $ac_try) 2>&5
8302
9458
  ac_status=$?
8303
9459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304
9460
  (exit $ac_status); }; }; then
8305
9461
 
8306
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9462
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8307
9463
}'`
8308
9464
# Check for a 64-bit object if we didn't find anything.
8309
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9465
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8310
9466
}'`; fi
8311
9467
else
8312
9468
  echo "$as_me: failed program was:" >&5
8313
9469
sed 's/^/| /' conftest.$ac_ext >&5
8314
9470
 
8315
9471
fi
8316
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9472
rm -f conftest.err conftest.$ac_objext \
 
9473
      conftest$ac_exeext conftest.$ac_ext
8317
9474
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8318
9475
 
8319
9476
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8350
9507
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8351
9508
      # no search path for DLLs.
8352
9509
      hardcode_libdir_flag_spec=' '
8353
 
      allow_undefined_flag=unsupported
 
9510
      allow_undefined_flag=no
8354
9511
      # Tell ltmain to make .lib files, not .a files.
8355
9512
      libext=lib
 
9513
      # Tell ltmain to make .dll files, not .so files.
 
9514
      shrext=".dll"
8356
9515
      # FIXME: Setting linknames here is a bad hack.
8357
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9516
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8358
9517
      # The linker will automatically build a .lib file if we build a DLL.
8359
9518
      old_archive_From_new_cmds='true'
8360
9519
      # FIXME: Should let the user specify the lib program.
8361
9520
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8362
9521
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9522
      enable_shared_with_static_runtimes=yes
8363
9523
      ;;
8364
9524
 
8365
9525
    darwin* | rhapsody*)
 
9526
    if test "$GXX" = yes ; then
 
9527
      archive_cmds_need_lc=no
8366
9528
      case "$host_os" in
8367
9529
      rhapsody* | darwin1.[012])
8368
9530
        allow_undefined_flag='-undefined suppress'
8369
9531
        ;;
8370
9532
      *) # Darwin 1.3 on
8371
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9533
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8372
9534
        ;;
8373
9535
      esac
8374
 
 
8375
 
      # FIXME: Relying on posixy $() will cause problems for
8376
 
      #        cross-compilation, but unfortunately the echo tests do not
8377
 
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8378
 
      #        `"' quotes if we put them in here... so don't!
8379
 
      archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
8380
 
      # We need to add '_' to the symbols in $export_symbols first
8381
 
      #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
8382
 
      hardcode_direct=yes
8383
 
      hardcode_shlibpath_var=no
 
9536
        lt_int_apple_cc_single_mod=no
 
9537
        output_verbose_link_cmd='echo'
 
9538
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9539
          lt_int_apple_cc_single_mod=yes
 
9540
        fi
 
9541
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9542
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9543
        else
 
9544
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9545
      fi
 
9546
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9547
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9548
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9549
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9550
        else
 
9551
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9552
        fi
 
9553
          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}'
 
9554
      hardcode_direct=no
 
9555
      hardcode_automatic=yes
 
9556
      hardcode_shlibpath_var=unsupported
8384
9557
      whole_archive_flag_spec='-all_load $convenience'
 
9558
      link_all_deplibs=yes
 
9559
    else
 
9560
      ld_shlibs=no
 
9561
    fi
8385
9562
      ;;
8386
9563
 
8387
9564
    dgux*)
8421
9598
      hardcode_shlibpath_var=no
8422
9599
      ;;
8423
9600
 
8424
 
    hpux9* | hpux10* | hpux11*)
 
9601
    hpux9*)
8425
9602
      if test "$GCC" = yes; then
8426
 
        case $host_os in
8427
 
          hpux9*)
8428
 
            archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8429
 
            ;;
8430
 
          *)
8431
 
            if test "$host_cpu" = ia64; then
8432
 
              archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8433
 
            else
8434
 
              archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8435
 
            fi
8436
 
            ;;
8437
 
        esac
8438
 
      else
8439
 
        case $host_os in
8440
 
          hpux9*)
8441
 
            archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8442
 
            ;;
8443
 
          *)
8444
 
            if test "$host_cpu" = ia64; then
8445
 
              archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8446
 
            else
8447
 
              archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8448
 
            fi
8449
 
            ;;
8450
 
        esac
8451
 
      fi
8452
 
      if test "$host_cpu" = ia64; then
8453
 
        hardcode_libdir_flag_spec='-L$libdir'
8454
 
        hardcode_direct=no
8455
 
        hardcode_shlibpath_var=no
8456
 
      else
8457
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8458
 
        hardcode_libdir_separator=:
8459
 
        hardcode_direct=yes
8460
 
      fi
 
9603
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9604
      else
 
9605
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9606
      fi
 
9607
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9608
      hardcode_libdir_separator=:
 
9609
      hardcode_direct=yes
 
9610
 
8461
9611
      # hardcode_minus_L: Not really in the search PATH,
8462
9612
      # but as the default location of the library.
8463
9613
      hardcode_minus_L=yes
8464
9614
      export_dynamic_flag_spec='${wl}-E'
8465
9615
      ;;
8466
9616
 
 
9617
    hpux10* | hpux11*)
 
9618
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9619
        case "$host_cpu" in
 
9620
        hppa*64*|ia64*)
 
9621
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9622
          ;;
 
9623
        *)
 
9624
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9625
          ;;
 
9626
        esac
 
9627
      else
 
9628
        case "$host_cpu" in
 
9629
        hppa*64*|ia64*)
 
9630
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9631
          ;;
 
9632
        *)
 
9633
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9634
          ;;
 
9635
        esac
 
9636
      fi
 
9637
      if test "$with_gnu_ld" = no; then
 
9638
        case "$host_cpu" in
 
9639
        hppa*64*)
 
9640
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9641
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9642
          hardcode_libdir_separator=:
 
9643
          hardcode_direct=no
 
9644
          hardcode_shlibpath_var=no
 
9645
          ;;
 
9646
        ia64*)
 
9647
          hardcode_libdir_flag_spec='-L$libdir'
 
9648
          hardcode_direct=no
 
9649
          hardcode_shlibpath_var=no
 
9650
 
 
9651
          # hardcode_minus_L: Not really in the search PATH,
 
9652
          # but as the default location of the library.
 
9653
          hardcode_minus_L=yes
 
9654
          ;;
 
9655
        *)
 
9656
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9657
          hardcode_libdir_separator=:
 
9658
          hardcode_direct=yes
 
9659
          export_dynamic_flag_spec='${wl}-E'
 
9660
 
 
9661
          # hardcode_minus_L: Not really in the search PATH,
 
9662
          # but as the default location of the library.
 
9663
          hardcode_minus_L=yes
 
9664
          ;;
 
9665
        esac
 
9666
      fi
 
9667
      ;;
 
9668
 
8467
9669
    irix5* | irix6* | nonstopux*)
8468
9670
      if test "$GCC" = yes; then
8469
9671
        archive_cmds='$CC -shared $libobjs $deplibs $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'
8470
9672
      else
8471
9673
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9674
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8472
9675
      fi
8473
9676
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8474
9677
      hardcode_libdir_separator=:
8497
9700
    openbsd*)
8498
9701
      hardcode_direct=yes
8499
9702
      hardcode_shlibpath_var=no
8500
 
 
8501
9703
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8502
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
9704
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8503
9705
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8504
9706
        export_dynamic_flag_spec='${wl}-E'
8505
9707
      else
8509
9711
           hardcode_libdir_flag_spec='-R$libdir'
8510
9712
           ;;
8511
9713
         *)
8512
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
9714
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8513
9715
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8514
9716
           ;;
8515
9717
       esac
8544
9746
      else
8545
9747
        allow_undefined_flag=' -expect_unresolved \*'
8546
9748
        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'
8547
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9749
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8548
9750
        $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'
8549
9751
 
8550
9752
        # Both c and cxx compiler support -rpath directly
8565
9767
      no_undefined_flag=' -z text'
8566
9768
      if test "$GCC" = yes; then
8567
9769
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8568
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9770
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8569
9771
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8570
9772
      else
8571
9773
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8572
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9774
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8573
9775
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8574
9776
      fi
8575
9777
      hardcode_libdir_flag_spec='-R$libdir'
8597
9799
      ;;
8598
9800
 
8599
9801
    sysv4)
8600
 
      if test "x$host_vendor" = xsni; then
8601
 
        archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
8602
 
        hardcode_direct=yes # is this really true???
8603
 
      else
8604
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8605
 
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8606
 
      fi
 
9802
      case $host_vendor in
 
9803
        sni)
 
9804
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9805
          hardcode_direct=yes # is this really true???
 
9806
        ;;
 
9807
        siemens)
 
9808
          ## LD is ld it makes a PLAMLIB
 
9809
          ## CC just makes a GrossModule.
 
9810
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9811
          reload_cmds='$CC -r -o $output$reload_objs'
 
9812
          hardcode_direct=no
 
9813
        ;;
 
9814
        motorola)
 
9815
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9816
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9817
        ;;
 
9818
      esac
8607
9819
      runpath_var='LD_RUN_PATH'
8608
9820
      hardcode_shlibpath_var=no
8609
9821
      ;;
8649
9861
      # $CC -shared without GNU ld will not create a library from C++
8650
9862
      # object files and a static libstdc++, better avoid it by now
8651
9863
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8652
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9864
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8653
9865
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8654
9866
      hardcode_libdir_flag_spec=
8655
9867
      hardcode_shlibpath_var=no
8680
9892
#
8681
9893
# Do we need to explicitly link libc?
8682
9894
#
8683
 
archive_cmds_need_lc=yes
8684
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
8685
 
  case $archive_cmds in
8686
 
  *'~'*)
8687
 
    # FIXME: we may have to deal with multi-command sequences.
8688
 
    ;;
8689
 
  '$CC '*)
8690
 
    # Test whether the compiler implicitly links with -lc since on some
8691
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
8692
 
    # to ld, don't add -lc before -lgcc.
8693
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9895
case "x$archive_cmds_need_lc" in
 
9896
x|xyes)
 
9897
  # Assume -lc should be added
 
9898
  archive_cmds_need_lc=yes
 
9899
 
 
9900
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9901
    case $archive_cmds in
 
9902
    *'~'*)
 
9903
      # FIXME: we may have to deal with multi-command sequences.
 
9904
      ;;
 
9905
    '$CC '*)
 
9906
      # Test whether the compiler implicitly links with -lc since on some
 
9907
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9908
      # to ld, don't add -lc before -lgcc.
 
9909
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8694
9910
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8695
 
    $rm conftest*
8696
 
    echo 'static int dummy;' > conftest.$ac_ext
 
9911
      $rm conftest*
 
9912
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8697
9913
 
8698
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9914
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699
9915
  (eval $ac_compile) 2>&5
8700
9916
  ac_status=$?
8701
9917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702
9918
  (exit $ac_status); } 2>conftest.err; then
8703
 
      soname=conftest
8704
 
      lib=conftest
8705
 
      libobjs=conftest.$ac_objext
8706
 
      deplibs=
8707
 
      wl=$lt_prog_compiler_wl
8708
 
      compiler_flags=-v
8709
 
      linker_flags=-v
8710
 
      verstring=
8711
 
      output_objdir=.
8712
 
      libname=conftest
8713
 
      lt_save_allow_undefined_flag=$allow_undefined_flag
8714
 
      allow_undefined_flag=
8715
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9919
        soname=conftest
 
9920
        lib=conftest
 
9921
        libobjs=conftest.$ac_objext
 
9922
        deplibs=
 
9923
        wl=$lt_prog_compiler_wl
 
9924
        compiler_flags=-v
 
9925
        linker_flags=-v
 
9926
        verstring=
 
9927
        output_objdir=.
 
9928
        libname=conftest
 
9929
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9930
        allow_undefined_flag=
 
9931
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8716
9932
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8717
9933
  ac_status=$?
8718
9934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719
9935
  (exit $ac_status); }
8720
 
      then
8721
 
        archive_cmds_need_lc=no
 
9936
        then
 
9937
          archive_cmds_need_lc=no
 
9938
        else
 
9939
          archive_cmds_need_lc=yes
 
9940
        fi
 
9941
        allow_undefined_flag=$lt_save_allow_undefined_flag
8722
9942
      else
8723
 
        archive_cmds_need_lc=yes
 
9943
        cat conftest.err 1>&5
8724
9944
      fi
8725
 
      allow_undefined_flag=$lt_save_allow_undefined_flag
8726
 
    else
8727
 
      cat conftest.err 1>&5
8728
 
    fi
8729
 
    $rm conftest*
8730
 
    echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9945
      $rm conftest*
 
9946
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8731
9947
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8732
 
    ;;
8733
 
  esac
8734
 
fi
 
9948
      ;;
 
9949
    esac
 
9950
  fi
 
9951
  ;;
 
9952
esac
 
9953
 
 
9954
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9955
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
9956
library_names_spec=
 
9957
libname_spec='lib$name'
 
9958
soname_spec=
 
9959
shrext=".so"
 
9960
postinstall_cmds=
 
9961
postuninstall_cmds=
 
9962
finish_cmds=
 
9963
finish_eval=
 
9964
shlibpath_var=
 
9965
shlibpath_overrides_runpath=unknown
 
9966
version_type=none
 
9967
dynamic_linker="$host_os ld.so"
 
9968
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9969
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9970
need_lib_prefix=unknown
 
9971
hardcode_into_libs=no
 
9972
 
 
9973
# when you set need_version to no, make sure it does not cause -set_version
 
9974
# flags to be left without arguments
 
9975
need_version=unknown
 
9976
 
 
9977
case $host_os in
 
9978
aix3*)
 
9979
  version_type=linux
 
9980
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9981
  shlibpath_var=LIBPATH
 
9982
 
 
9983
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9984
  soname_spec='${libname}${release}${shared_ext}$major'
 
9985
  ;;
 
9986
 
 
9987
aix4* | aix5*)
 
9988
  version_type=linux
 
9989
  need_lib_prefix=no
 
9990
  need_version=no
 
9991
  hardcode_into_libs=yes
 
9992
  if test "$host_cpu" = ia64; then
 
9993
    # AIX 5 supports IA64
 
9994
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9995
    shlibpath_var=LD_LIBRARY_PATH
 
9996
  else
 
9997
    # With GCC up to 2.95.x, collect2 would create an import file
 
9998
    # for dependence libraries.  The import file would start with
 
9999
    # the line `#! .'.  This would cause the generated library to
 
10000
    # depend on `.', always an invalid library.  This was fixed in
 
10001
    # development snapshots of GCC prior to 3.0.
 
10002
    case $host_os in
 
10003
      aix4 | aix4.[01] | aix4.[01].*)
 
10004
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10005
           echo ' yes '
 
10006
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10007
        :
 
10008
      else
 
10009
        can_build_shared=no
 
10010
      fi
 
10011
      ;;
 
10012
    esac
 
10013
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10014
    # soname into executable. Probably we can add versioning support to
 
10015
    # collect2, so additional links can be useful in future.
 
10016
    if test "$aix_use_runtimelinking" = yes; then
 
10017
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10018
      # instead of lib<name>.a to let people know that these are not
 
10019
      # typical AIX shared libraries.
 
10020
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10021
    else
 
10022
      # We preserve .a as extension for shared libraries through AIX4.2
 
10023
      # and later when we are not doing run time linking.
 
10024
      library_names_spec='${libname}${release}.a $libname.a'
 
10025
      soname_spec='${libname}${release}${shared_ext}$major'
 
10026
    fi
 
10027
    shlibpath_var=LIBPATH
 
10028
  fi
 
10029
  ;;
 
10030
 
 
10031
amigaos*)
 
10032
  library_names_spec='$libname.ixlibrary $libname.a'
 
10033
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10034
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
10035
  ;;
 
10036
 
 
10037
beos*)
 
10038
  library_names_spec='${libname}${shared_ext}'
 
10039
  dynamic_linker="$host_os ld.so"
 
10040
  shlibpath_var=LIBRARY_PATH
 
10041
  ;;
 
10042
 
 
10043
bsdi4*)
 
10044
  version_type=linux
 
10045
  need_version=no
 
10046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10047
  soname_spec='${libname}${release}${shared_ext}$major'
 
10048
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10049
  shlibpath_var=LD_LIBRARY_PATH
 
10050
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10051
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10052
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10053
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10054
  # libtool to hard-code these into programs
 
10055
  ;;
 
10056
 
 
10057
cygwin* | mingw* | pw32*)
 
10058
  version_type=windows
 
10059
  shrext=".dll"
 
10060
  need_version=no
 
10061
  need_lib_prefix=no
 
10062
 
 
10063
  case $GCC,$host_os in
 
10064
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10065
    library_names_spec='$libname.dll.a'
 
10066
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10067
    postinstall_cmds='base_file=`basename \${file}`~
 
10068
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10069
      dldir=$destdir/`dirname \$dlpath`~
 
10070
      test -d \$dldir || mkdir -p \$dldir~
 
10071
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10072
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10073
      dlpath=$dir/\$dldll~
 
10074
       $rm \$dlpath'
 
10075
    shlibpath_overrides_runpath=yes
 
10076
 
 
10077
    case $host_os in
 
10078
    cygwin*)
 
10079
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10080
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10081
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10082
      ;;
 
10083
    mingw*)
 
10084
      # MinGW DLLs use traditional 'lib' prefix
 
10085
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10086
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10087
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10088
        # It is most probably a Windows format PATH printed by
 
10089
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10090
        # path with ; separators, and with drive letters. We can handle the
 
10091
        # drive letters (cygwin fileutils understands them), so leave them,
 
10092
        # especially as we might pass files found there to a mingw objdump,
 
10093
        # which wouldn't understand a cygwinified path. Ahh.
 
10094
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10095
      else
 
10096
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10097
      fi
 
10098
      ;;
 
10099
    pw32*)
 
10100
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10101
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
10102
      ;;
 
10103
    esac
 
10104
    ;;
 
10105
 
 
10106
  *)
 
10107
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10108
    ;;
 
10109
  esac
 
10110
  dynamic_linker='Win32 ld.exe'
 
10111
  # FIXME: first we should search . and the directory the executable is in
 
10112
  shlibpath_var=PATH
 
10113
  ;;
 
10114
 
 
10115
darwin* | rhapsody*)
 
10116
  dynamic_linker="$host_os dyld"
 
10117
  version_type=darwin
 
10118
  need_lib_prefix=no
 
10119
  need_version=no
 
10120
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10121
  soname_spec='${libname}${release}${major}$shared_ext'
 
10122
  shlibpath_overrides_runpath=yes
 
10123
  shlibpath_var=DYLD_LIBRARY_PATH
 
10124
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
10125
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
10126
  if test "$GCC" = yes; then
 
10127
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
10128
  else
 
10129
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
10130
  fi
 
10131
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10132
  ;;
 
10133
 
 
10134
dgux*)
 
10135
  version_type=linux
 
10136
  need_lib_prefix=no
 
10137
  need_version=no
 
10138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10139
  soname_spec='${libname}${release}${shared_ext}$major'
 
10140
  shlibpath_var=LD_LIBRARY_PATH
 
10141
  ;;
 
10142
 
 
10143
freebsd1*)
 
10144
  dynamic_linker=no
 
10145
  ;;
 
10146
 
 
10147
freebsd*-gnu*)
 
10148
  version_type=linux
 
10149
  need_lib_prefix=no
 
10150
  need_version=no
 
10151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10152
  soname_spec='${libname}${release}${shared_ext}$major'
 
10153
  shlibpath_var=LD_LIBRARY_PATH
 
10154
  shlibpath_overrides_runpath=no
 
10155
  hardcode_into_libs=yes
 
10156
  dynamic_linker='GNU ld.so'
 
10157
  ;;
 
10158
 
 
10159
freebsd*)
 
10160
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
10161
  version_type=freebsd-$objformat
 
10162
  case $version_type in
 
10163
    freebsd-elf*)
 
10164
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10165
      need_version=no
 
10166
      need_lib_prefix=no
 
10167
      ;;
 
10168
    freebsd-*)
 
10169
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10170
      need_version=yes
 
10171
      ;;
 
10172
  esac
 
10173
  shlibpath_var=LD_LIBRARY_PATH
 
10174
  case $host_os in
 
10175
  freebsd2*)
 
10176
    shlibpath_overrides_runpath=yes
 
10177
    ;;
 
10178
  freebsd3.01* | freebsdelf3.01*)
 
10179
    shlibpath_overrides_runpath=yes
 
10180
    hardcode_into_libs=yes
 
10181
    ;;
 
10182
  *) # from 3.2 on
 
10183
    shlibpath_overrides_runpath=no
 
10184
    hardcode_into_libs=yes
 
10185
    ;;
 
10186
  esac
 
10187
  ;;
 
10188
 
 
10189
gnu*)
 
10190
  version_type=linux
 
10191
  need_lib_prefix=no
 
10192
  need_version=no
 
10193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10194
  soname_spec='${libname}${release}${shared_ext}$major'
 
10195
  shlibpath_var=LD_LIBRARY_PATH
 
10196
  hardcode_into_libs=yes
 
10197
  ;;
 
10198
 
 
10199
hpux9* | hpux10* | hpux11*)
 
10200
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10201
  # link against other versions.
 
10202
  version_type=sunos
 
10203
  need_lib_prefix=no
 
10204
  need_version=no
 
10205
  case "$host_cpu" in
 
10206
  ia64*)
 
10207
    shrext='.so'
 
10208
    hardcode_into_libs=yes
 
10209
    dynamic_linker="$host_os dld.so"
 
10210
    shlibpath_var=LD_LIBRARY_PATH
 
10211
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10212
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10213
    soname_spec='${libname}${release}${shared_ext}$major'
 
10214
    if test "X$HPUX_IA64_MODE" = X32; then
 
10215
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10216
    else
 
10217
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10218
    fi
 
10219
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10220
    ;;
 
10221
   hppa*64*)
 
10222
     shrext='.sl'
 
10223
     hardcode_into_libs=yes
 
10224
     dynamic_linker="$host_os dld.sl"
 
10225
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10226
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10227
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10228
     soname_spec='${libname}${release}${shared_ext}$major'
 
10229
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10230
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10231
     ;;
 
10232
   *)
 
10233
    shrext='.sl'
 
10234
    dynamic_linker="$host_os dld.sl"
 
10235
    shlibpath_var=SHLIB_PATH
 
10236
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10237
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10238
    soname_spec='${libname}${release}${shared_ext}$major'
 
10239
    ;;
 
10240
  esac
 
10241
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10242
  postinstall_cmds='chmod 555 $lib'
 
10243
  ;;
 
10244
 
 
10245
irix5* | irix6* | nonstopux*)
 
10246
  case $host_os in
 
10247
    nonstopux*) version_type=nonstopux ;;
 
10248
    *)
 
10249
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10250
                version_type=linux
 
10251
        else
 
10252
                version_type=irix
 
10253
        fi ;;
 
10254
  esac
 
10255
  need_lib_prefix=no
 
10256
  need_version=no
 
10257
  soname_spec='${libname}${release}${shared_ext}$major'
 
10258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10259
  case $host_os in
 
10260
  irix5* | nonstopux*)
 
10261
    libsuff= shlibsuff=
 
10262
    ;;
 
10263
  *)
 
10264
    case $LD in # libtool.m4 will add one of these switches to LD
 
10265
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10266
      libsuff= shlibsuff= libmagic=32-bit;;
 
10267
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10268
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10269
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10270
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10271
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10272
    esac
 
10273
    ;;
 
10274
  esac
 
10275
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10276
  shlibpath_overrides_runpath=no
 
10277
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10278
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10279
  hardcode_into_libs=yes
 
10280
  ;;
 
10281
 
 
10282
# No shared lib support for Linux oldld, aout, or coff.
 
10283
linux*oldld* | linux*aout* | linux*coff*)
 
10284
  dynamic_linker=no
 
10285
  ;;
 
10286
 
 
10287
# This must be Linux ELF.
 
10288
linux*)
 
10289
  version_type=linux
 
10290
  need_lib_prefix=no
 
10291
  need_version=no
 
10292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10293
  soname_spec='${libname}${release}${shared_ext}$major'
 
10294
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10295
  libsuff=
 
10296
  if test "x$LINUX_64_MODE" = x64; then
 
10297
    # Some platforms are per default 64-bit, so there's no /lib64
 
10298
    if test -d /lib64; then
 
10299
      libsuff=64
 
10300
    fi
 
10301
  fi
 
10302
  shlibpath_var=LD_LIBRARY_PATH
 
10303
  shlibpath_overrides_runpath=no
 
10304
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
10305
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
10306
  # This implies no fast_install, which is unacceptable.
 
10307
  # Some rework will be needed to allow for fast_install
 
10308
  # before this can be enabled.
 
10309
  hardcode_into_libs=yes
 
10310
 
 
10311
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10312
  # powerpc, because MkLinux only supported shared libraries with the
 
10313
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10314
  # most powerpc-linux boxes support dynamic linking these days and
 
10315
  # people can always --disable-shared, the test was removed, and we
 
10316
  # assume the GNU/Linux dynamic linker is in use.
 
10317
  dynamic_linker='GNU/Linux ld.so'
 
10318
  ;;
 
10319
 
 
10320
netbsd*)
 
10321
  version_type=sunos
 
10322
  need_lib_prefix=no
 
10323
  need_version=no
 
10324
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10325
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10326
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10327
    dynamic_linker='NetBSD (a.out) ld.so'
 
10328
  else
 
10329
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
10330
    soname_spec='${libname}${release}${shared_ext}$major'
 
10331
    dynamic_linker='NetBSD ld.elf_so'
 
10332
  fi
 
10333
  shlibpath_var=LD_LIBRARY_PATH
 
10334
  shlibpath_overrides_runpath=yes
 
10335
  hardcode_into_libs=yes
 
10336
  ;;
 
10337
 
 
10338
newsos6)
 
10339
  version_type=linux
 
10340
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10341
  shlibpath_var=LD_LIBRARY_PATH
 
10342
  shlibpath_overrides_runpath=yes
 
10343
  ;;
 
10344
 
 
10345
nto-qnx*)
 
10346
  version_type=linux
 
10347
  need_lib_prefix=no
 
10348
  need_version=no
 
10349
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10350
  soname_spec='${libname}${release}${shared_ext}$major'
 
10351
  shlibpath_var=LD_LIBRARY_PATH
 
10352
  shlibpath_overrides_runpath=yes
 
10353
  ;;
 
10354
 
 
10355
openbsd*)
 
10356
  version_type=sunos
 
10357
  need_lib_prefix=no
 
10358
  need_version=no
 
10359
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10360
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10361
  shlibpath_var=LD_LIBRARY_PATH
 
10362
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10363
    case $host_os in
 
10364
      openbsd2.[89] | openbsd2.[89].*)
 
10365
        shlibpath_overrides_runpath=no
 
10366
        ;;
 
10367
      *)
 
10368
        shlibpath_overrides_runpath=yes
 
10369
        ;;
 
10370
      esac
 
10371
  else
 
10372
    shlibpath_overrides_runpath=yes
 
10373
  fi
 
10374
  ;;
 
10375
 
 
10376
os2*)
 
10377
  libname_spec='$name'
 
10378
  shrext=".dll"
 
10379
  need_lib_prefix=no
 
10380
  library_names_spec='$libname${shared_ext} $libname.a'
 
10381
  dynamic_linker='OS/2 ld.exe'
 
10382
  shlibpath_var=LIBPATH
 
10383
  ;;
 
10384
 
 
10385
osf3* | osf4* | osf5*)
 
10386
  version_type=osf
 
10387
  need_lib_prefix=no
 
10388
  need_version=no
 
10389
  soname_spec='${libname}${release}${shared_ext}$major'
 
10390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10391
  shlibpath_var=LD_LIBRARY_PATH
 
10392
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10393
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10394
  ;;
 
10395
 
 
10396
sco3.2v5*)
 
10397
  version_type=osf
 
10398
  soname_spec='${libname}${release}${shared_ext}$major'
 
10399
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10400
  shlibpath_var=LD_LIBRARY_PATH
 
10401
  ;;
 
10402
 
 
10403
solaris*)
 
10404
  version_type=linux
 
10405
  need_lib_prefix=no
 
10406
  need_version=no
 
10407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10408
  soname_spec='${libname}${release}${shared_ext}$major'
 
10409
  shlibpath_var=LD_LIBRARY_PATH
 
10410
  shlibpath_overrides_runpath=yes
 
10411
  hardcode_into_libs=yes
 
10412
  # ldd complains unless libraries are executable
 
10413
  postinstall_cmds='chmod +x $lib'
 
10414
  ;;
 
10415
 
 
10416
sunos4*)
 
10417
  version_type=sunos
 
10418
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10419
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10420
  shlibpath_var=LD_LIBRARY_PATH
 
10421
  shlibpath_overrides_runpath=yes
 
10422
  if test "$with_gnu_ld" = yes; then
 
10423
    need_lib_prefix=no
 
10424
  fi
 
10425
  need_version=yes
 
10426
  ;;
 
10427
 
 
10428
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10429
  version_type=linux
 
10430
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10431
  soname_spec='${libname}${release}${shared_ext}$major'
 
10432
  shlibpath_var=LD_LIBRARY_PATH
 
10433
  case $host_vendor in
 
10434
    sni)
 
10435
      shlibpath_overrides_runpath=no
 
10436
      need_lib_prefix=no
 
10437
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10438
      runpath_var=LD_RUN_PATH
 
10439
      ;;
 
10440
    siemens)
 
10441
      need_lib_prefix=no
 
10442
      ;;
 
10443
    motorola)
 
10444
      need_lib_prefix=no
 
10445
      need_version=no
 
10446
      shlibpath_overrides_runpath=no
 
10447
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10448
      ;;
 
10449
  esac
 
10450
  ;;
 
10451
 
 
10452
sysv4*MP*)
 
10453
  if test -d /usr/nec ;then
 
10454
    version_type=linux
 
10455
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10456
    soname_spec='$libname${shared_ext}.$major'
 
10457
    shlibpath_var=LD_LIBRARY_PATH
 
10458
  fi
 
10459
  ;;
 
10460
 
 
10461
uts4*)
 
10462
  version_type=linux
 
10463
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10464
  soname_spec='${libname}${release}${shared_ext}$major'
 
10465
  shlibpath_var=LD_LIBRARY_PATH
 
10466
  ;;
 
10467
 
 
10468
*)
 
10469
  dynamic_linker=no
 
10470
  ;;
 
10471
esac
 
10472
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10473
echo "${ECHO_T}$dynamic_linker" >&6
 
10474
test "$dynamic_linker" = no && can_build_shared=no
8735
10475
 
8736
10476
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8737
10477
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8738
10478
hardcode_action=
8739
10479
if test -n "$hardcode_libdir_flag_spec" || \
8740
 
   test -n "$runpath_var "; then
 
10480
   test -n "$runpath_var " || \
 
10481
   test "X$hardcode_automatic"="Xyes" ; then
8741
10482
 
8742
10483
  # We can hardcode non-existant directories.
8743
10484
  if test "$hardcode_direct" != no &&
8779
10520
  echo "$as_me:$LINENO: result: yes" >&5
8780
10521
echo "${ECHO_T}yes" >&6
8781
10522
else
8782
 
  echo "$as_me:$LINENO: result: no" >&5
8783
 
echo "${ECHO_T}no" >&6
8784
 
fi
8785
 
 
8786
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8787
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8788
 
library_names_spec=
8789
 
libname_spec='lib$name'
8790
 
soname_spec=
8791
 
postinstall_cmds=
8792
 
postuninstall_cmds=
8793
 
finish_cmds=
8794
 
finish_eval=
8795
 
shlibpath_var=
8796
 
shlibpath_overrides_runpath=unknown
8797
 
version_type=none
8798
 
dynamic_linker="$host_os ld.so"
8799
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8800
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8801
 
need_lib_prefix=unknown
8802
 
hardcode_into_libs=no
8803
 
 
8804
 
# when you set need_version to no, make sure it does not cause -set_version
8805
 
# flags to be left without arguments
8806
 
need_version=unknown
8807
 
 
8808
 
case $host_os in
8809
 
aix3*)
8810
 
  version_type=linux
8811
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
8812
 
  shlibpath_var=LIBPATH
8813
 
 
8814
 
  # AIX 3 has no versioning support, so we append a major version to the name.
8815
 
  soname_spec='${libname}${release}.so$major'
8816
 
  ;;
8817
 
 
8818
 
aix4* | aix5*)
8819
 
  version_type=linux
8820
 
  if test "$host_cpu" = ia64; then
8821
 
    # AIX 5 supports IA64
8822
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
8823
 
    shlibpath_var=LD_LIBRARY_PATH
8824
 
  else
8825
 
    # With GCC up to 2.95.x, collect2 would create an import file
8826
 
    # for dependence libraries.  The import file would start with
8827
 
    # the line `#! .'.  This would cause the generated library to
8828
 
    # depend on `.', always an invalid library.  This was fixed in
8829
 
    # development snapshots of GCC prior to 3.0.
8830
 
    case $host_os in
8831
 
      aix4 | aix4.[01] | aix4.[01].*)
8832
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8833
 
           echo ' yes '
8834
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8835
 
        :
8836
 
      else
8837
 
        can_build_shared=no
8838
 
      fi
8839
 
      ;;
8840
 
    esac
8841
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8842
 
    # soname into executable. Probably we can add versioning support to
8843
 
    # collect2, so additional links can be useful in future.
8844
 
    if test "$aix_use_runtimelinking" = yes; then
8845
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8846
 
      # instead of lib<name>.a to let people know that these are not
8847
 
      # typical AIX shared libraries.
8848
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8849
 
    else
8850
 
      # We preserve .a as extension for shared libraries through AIX4.2
8851
 
      # and later when we are not doing run time linking.
8852
 
      library_names_spec='${libname}${release}.a $libname.a'
8853
 
      soname_spec='${libname}${release}.so$major'
8854
 
    fi
8855
 
    shlibpath_var=LIBPATH
8856
 
  fi
8857
 
  ;;
8858
 
 
8859
 
amigaos*)
8860
 
  library_names_spec='$libname.ixlibrary $libname.a'
8861
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8862
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
8863
 
  ;;
8864
 
 
8865
 
beos*)
8866
 
  library_names_spec='${libname}.so'
8867
 
  dynamic_linker="$host_os ld.so"
8868
 
  shlibpath_var=LIBRARY_PATH
8869
 
  ;;
8870
 
 
8871
 
bsdi4*)
8872
 
  version_type=linux
8873
 
  need_version=no
8874
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8875
 
  soname_spec='${libname}${release}.so$major'
8876
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8877
 
  shlibpath_var=LD_LIBRARY_PATH
8878
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8879
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8880
 
  # the default ld.so.conf also contains /usr/contrib/lib and
8881
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8882
 
  # libtool to hard-code these into programs
8883
 
  ;;
8884
 
 
8885
 
cygwin* | mingw* | pw32*)
8886
 
  version_type=windows
8887
 
  need_version=no
8888
 
  need_lib_prefix=no
8889
 
  case $GCC,$host_os in
8890
 
  yes,cygwin*)
8891
 
    library_names_spec='$libname.dll.a'
8892
 
    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
8893
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8894
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
8895
 
      dldir=$destdir/`dirname \$dlpath`~
8896
 
      test -d \$dldir || mkdir -p \$dldir~
8897
 
      $install_prog .libs/$dlname \$dldir/$dlname'
8898
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
8899
 
      dlpath=$dir/\$dldll~
8900
 
       $rm \$dlpath'
8901
 
    ;;
8902
 
  yes,mingw*)
8903
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8904
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
8905
 
    if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
8906
 
      # It is most probably a Windows format PATH printed by
8907
 
      # mingw gcc, but we are running on Cygwin. Gcc prints its search
8908
 
      # path with ; separators, and with drive letters. We can handle the
8909
 
      # drive letters (cygwin fileutils understands them), so leave them,
8910
 
      # especially as we might pass files found there to a mingw objdump,
8911
 
      # which wouldn't understand a cygwinified path. Ahh.
8912
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
8913
 
    else
8914
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed  -e "s/$PATH_SEPARATOR/ /g"`
8915
 
    fi
8916
 
    ;;
8917
 
  yes,pw32*)
8918
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
8919
 
    ;;
8920
 
  *)
8921
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
8922
 
    ;;
8923
 
  esac
8924
 
  dynamic_linker='Win32 ld.exe'
8925
 
  # FIXME: first we should search . and the directory the executable is in
8926
 
  shlibpath_var=PATH
8927
 
  ;;
8928
 
 
8929
 
darwin* | rhapsody*)
8930
 
  dynamic_linker="$host_os dyld"
8931
 
  version_type=darwin
8932
 
  need_lib_prefix=no
8933
 
  need_version=no
8934
 
  # FIXME: Relying on posixy $() will cause problems for
8935
 
  #        cross-compilation, but unfortunately the echo tests do not
8936
 
  #        yet detect zsh echo's removal of \ escapes.
8937
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
8938
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
8939
 
  shlibpath_overrides_runpath=yes
8940
 
  shlibpath_var=DYLD_LIBRARY_PATH
8941
 
  ;;
8942
 
 
8943
 
dgux*)
8944
 
  version_type=linux
8945
 
  need_lib_prefix=no
8946
 
  need_version=no
8947
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8948
 
  soname_spec='${libname}${release}.so$major'
8949
 
  shlibpath_var=LD_LIBRARY_PATH
8950
 
  ;;
8951
 
 
8952
 
freebsd1*)
8953
 
  dynamic_linker=no
8954
 
  ;;
8955
 
 
8956
 
freebsd*)
8957
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8958
 
  version_type=freebsd-$objformat
8959
 
  case $version_type in
8960
 
    freebsd-elf*)
8961
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8962
 
      need_version=no
8963
 
      need_lib_prefix=no
8964
 
      ;;
8965
 
    freebsd-*)
8966
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
8967
 
      need_version=yes
8968
 
      ;;
8969
 
  esac
8970
 
  shlibpath_var=LD_LIBRARY_PATH
8971
 
  case $host_os in
8972
 
  freebsd2*)
8973
 
    shlibpath_overrides_runpath=yes
8974
 
    ;;
8975
 
  freebsd3.01* | freebsdelf3.01*)
8976
 
    shlibpath_overrides_runpath=yes
8977
 
    hardcode_into_libs=yes
8978
 
    ;;
8979
 
  *) # from 3.2 on
8980
 
    shlibpath_overrides_runpath=no
8981
 
    hardcode_into_libs=yes
8982
 
    ;;
8983
 
  esac
8984
 
  ;;
8985
 
 
8986
 
gnu*)
8987
 
  version_type=linux
8988
 
  need_lib_prefix=no
8989
 
  need_version=no
8990
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
8991
 
  soname_spec='${libname}${release}.so$major'
8992
 
  shlibpath_var=LD_LIBRARY_PATH
8993
 
  hardcode_into_libs=yes
8994
 
  ;;
8995
 
 
8996
 
hpux9* | hpux10* | hpux11*)
8997
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
8998
 
  # link against other versions.
8999
 
  version_type=sunos
9000
 
  need_lib_prefix=no
9001
 
  need_version=no
9002
 
  if test "$host_cpu" = ia64; then
9003
 
    hardcode_into_libs=yes
9004
 
    dynamic_linker="$host_os dld.so"
9005
 
    shlibpath_var=LD_LIBRARY_PATH
9006
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9007
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9008
 
    soname_spec='${libname}${release}.so$major'
9009
 
    if test "X$HPUX_IA64_MODE" = X32; then
9010
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9011
 
    else
9012
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9013
 
    fi
9014
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9015
 
  else
9016
 
    dynamic_linker="$host_os dld.sl"
9017
 
    shlibpath_var=SHLIB_PATH
9018
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9019
 
    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
9020
 
    soname_spec='${libname}${release}.sl$major'
9021
 
  fi
9022
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9023
 
  postinstall_cmds='chmod 555 $lib'
9024
 
  ;;
9025
 
 
9026
 
irix5* | irix6* | nonstopux*)
9027
 
  case $host_os in
9028
 
    nonstopux*) version_type=nonstopux ;;
9029
 
    *)          version_type=irix ;;
9030
 
  esac
9031
 
  need_lib_prefix=no
9032
 
  need_version=no
9033
 
  soname_spec='${libname}${release}.so$major'
9034
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
9035
 
  case $host_os in
9036
 
  irix5* | nonstopux*)
9037
 
    libsuff= shlibsuff=
9038
 
    ;;
9039
 
  *)
9040
 
    case $LD in # libtool.m4 will add one of these switches to LD
9041
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
9042
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
9043
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
9044
 
    *) libsuff= shlibsuff= libmagic=never-match;;
9045
 
    esac
9046
 
    ;;
9047
 
  esac
9048
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9049
 
  shlibpath_overrides_runpath=no
9050
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9051
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9052
 
  ;;
9053
 
 
9054
 
# No shared lib support for Linux oldld, aout, or coff.
9055
 
linux*oldld* | linux*aout* | linux*coff*)
9056
 
  dynamic_linker=no
9057
 
  ;;
9058
 
 
9059
 
# This must be Linux ELF.
9060
 
linux*)
9061
 
  version_type=linux
9062
 
  need_lib_prefix=no
9063
 
  need_version=no
9064
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9065
 
  soname_spec='${libname}${release}.so$major'
9066
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9067
 
  libsuff=
9068
 
  if test "x$LINUX_64_MODE" = x64; then
9069
 
    # Some platforms are per default 64-bit, so there's no /lib64
9070
 
    if test -d /lib64; then
9071
 
      libsuff=64
9072
 
    fi
9073
 
  fi
9074
 
  shlibpath_var=LD_LIBRARY_PATH
9075
 
  shlibpath_overrides_runpath=no
9076
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9077
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9078
 
  # This implies no fast_install, which is unacceptable.
9079
 
  # Some rework will be needed to allow for fast_install
9080
 
  # before this can be enabled.
9081
 
  hardcode_into_libs=yes
9082
 
 
9083
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9084
 
  # powerpc, because MkLinux only supported shared libraries with the
9085
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
9086
 
  # most powerpc-linux boxes support dynamic linking these days and
9087
 
  # people can always --disable-shared, the test was removed, and we
9088
 
  # assume the GNU/Linux dynamic linker is in use.
9089
 
  dynamic_linker='GNU/Linux ld.so'
9090
 
  ;;
9091
 
 
9092
 
netbsd*)
9093
 
  version_type=sunos
9094
 
  need_lib_prefix=no
9095
 
  need_version=no
9096
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9097
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9098
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9099
 
    dynamic_linker='NetBSD (a.out) ld.so'
9100
 
  else
9101
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
9102
 
    soname_spec='${libname}${release}.so$major'
9103
 
    dynamic_linker='NetBSD ld.elf_so'
9104
 
  fi
9105
 
  shlibpath_var=LD_LIBRARY_PATH
9106
 
  shlibpath_overrides_runpath=yes
9107
 
  hardcode_into_libs=yes
9108
 
  ;;
9109
 
 
9110
 
newsos6)
9111
 
  version_type=linux
9112
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9113
 
  shlibpath_var=LD_LIBRARY_PATH
9114
 
  shlibpath_overrides_runpath=yes
9115
 
  ;;
9116
 
 
9117
 
nto-qnx)
9118
 
  version_type=linux
9119
 
  need_lib_prefix=no
9120
 
  need_version=no
9121
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9122
 
  soname_spec='${libname}${release}.so$major'
9123
 
  shlibpath_var=LD_LIBRARY_PATH
9124
 
  shlibpath_overrides_runpath=yes
9125
 
  ;;
9126
 
 
9127
 
openbsd*)
9128
 
  version_type=sunos
9129
 
  need_lib_prefix=no
9130
 
  need_version=no
9131
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9132
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9133
 
  shlibpath_var=LD_LIBRARY_PATH
9134
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9135
 
    case $host_os in
9136
 
      openbsd2.[89] | openbsd2.[89].*)
9137
 
        shlibpath_overrides_runpath=no
9138
 
        ;;
9139
 
      *)
9140
 
        shlibpath_overrides_runpath=yes
9141
 
        ;;
9142
 
      esac
9143
 
  else
9144
 
    shlibpath_overrides_runpath=yes
9145
 
  fi
9146
 
  ;;
9147
 
 
9148
 
os2*)
9149
 
  libname_spec='$name'
9150
 
  need_lib_prefix=no
9151
 
  library_names_spec='$libname.dll $libname.a'
9152
 
  dynamic_linker='OS/2 ld.exe'
9153
 
  shlibpath_var=LIBPATH
9154
 
  ;;
9155
 
 
9156
 
osf3* | osf4* | osf5*)
9157
 
  version_type=osf
9158
 
  need_lib_prefix=no
9159
 
  need_version=no
9160
 
  soname_spec='${libname}${release}.so'
9161
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
9162
 
  shlibpath_var=LD_LIBRARY_PATH
9163
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9164
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9165
 
  ;;
9166
 
 
9167
 
sco3.2v5*)
9168
 
  version_type=osf
9169
 
  soname_spec='${libname}${release}.so$major'
9170
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9171
 
  shlibpath_var=LD_LIBRARY_PATH
9172
 
  ;;
9173
 
 
9174
 
solaris*)
9175
 
  version_type=linux
9176
 
  need_lib_prefix=no
9177
 
  need_version=no
9178
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9179
 
  soname_spec='${libname}${release}.so$major'
9180
 
  shlibpath_var=LD_LIBRARY_PATH
9181
 
  shlibpath_overrides_runpath=yes
9182
 
  hardcode_into_libs=yes
9183
 
  # ldd complains unless libraries are executable
9184
 
  postinstall_cmds='chmod +x $lib'
9185
 
  ;;
9186
 
 
9187
 
sunos4*)
9188
 
  version_type=sunos
9189
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9190
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9191
 
  shlibpath_var=LD_LIBRARY_PATH
9192
 
  shlibpath_overrides_runpath=yes
9193
 
  if test "$with_gnu_ld" = yes; then
9194
 
    need_lib_prefix=no
9195
 
  fi
9196
 
  need_version=yes
9197
 
  ;;
9198
 
 
9199
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9200
 
  version_type=linux
9201
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9202
 
  soname_spec='${libname}${release}.so$major'
9203
 
  shlibpath_var=LD_LIBRARY_PATH
9204
 
  case $host_vendor in
9205
 
    sni)
9206
 
      shlibpath_overrides_runpath=no
9207
 
      ;;
9208
 
    motorola)
9209
 
      need_lib_prefix=no
9210
 
      need_version=no
9211
 
      shlibpath_overrides_runpath=no
9212
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9213
 
      ;;
9214
 
  esac
9215
 
  ;;
9216
 
 
9217
 
sysv4*MP*)
9218
 
  if test -d /usr/nec ;then
9219
 
    version_type=linux
9220
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
9221
 
    soname_spec='$libname.so.$major'
9222
 
    shlibpath_var=LD_LIBRARY_PATH
9223
 
  fi
9224
 
  ;;
9225
 
 
9226
 
uts4*)
9227
 
  version_type=linux
9228
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9229
 
  soname_spec='${libname}${release}.so$major'
9230
 
  shlibpath_var=LD_LIBRARY_PATH
9231
 
  ;;
9232
 
 
9233
 
*)
9234
 
  dynamic_linker=no
9235
 
  ;;
9236
 
esac
9237
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9238
 
echo "${ECHO_T}$dynamic_linker" >&6
9239
 
test "$dynamic_linker" = no && can_build_shared=no
 
10523
# FIXME - insert some real tests, host_os isn't really good enough
 
10524
  case $host_os in
 
10525
   darwin*)
 
10526
       if test -n "$STRIP" ; then
 
10527
         striplib="$STRIP -x"
 
10528
         echo "$as_me:$LINENO: result: yes" >&5
 
10529
echo "${ECHO_T}yes" >&6
 
10530
       else
 
10531
  echo "$as_me:$LINENO: result: no" >&5
 
10532
echo "${ECHO_T}no" >&6
 
10533
fi
 
10534
       ;;
 
10535
   *)
 
10536
  echo "$as_me:$LINENO: result: no" >&5
 
10537
echo "${ECHO_T}no" >&6
 
10538
    ;;
 
10539
  esac
 
10540
fi
9240
10541
 
9241
10542
if test "x$enable_dlopen" != xyes; then
9242
10543
  enable_dlopen=unknown
9253
10554
    lt_cv_dlopen_self=yes
9254
10555
    ;;
9255
10556
 
9256
 
  cygwin* | mingw* | pw32*)
 
10557
  mingw* | pw32*)
9257
10558
    lt_cv_dlopen="LoadLibrary"
9258
10559
    lt_cv_dlopen_libs=
9259
10560
   ;;
9260
10561
 
 
10562
  cygwin*)
 
10563
    lt_cv_dlopen="dlopen"
 
10564
    lt_cv_dlopen_libs=
 
10565
   ;;
 
10566
 
 
10567
  darwin*)
 
10568
  # if libdl is installed we need to link against it
 
10569
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10570
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10571
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10573
else
 
10574
  ac_check_lib_save_LIBS=$LIBS
 
10575
LIBS="-ldl  $LIBS"
 
10576
cat >conftest.$ac_ext <<_ACEOF
 
10577
/* confdefs.h.  */
 
10578
_ACEOF
 
10579
cat confdefs.h >>conftest.$ac_ext
 
10580
cat >>conftest.$ac_ext <<_ACEOF
 
10581
/* end confdefs.h.  */
 
10582
 
 
10583
/* Override any gcc2 internal prototype to avoid an error.  */
 
10584
#ifdef __cplusplus
 
10585
extern "C"
 
10586
#endif
 
10587
/* We use char because int might match the return type of a gcc2
 
10588
   builtin and then its argument prototype would still apply.  */
 
10589
char dlopen ();
 
10590
int
 
10591
main ()
 
10592
{
 
10593
dlopen ();
 
10594
  ;
 
10595
  return 0;
 
10596
}
 
10597
_ACEOF
 
10598
rm -f conftest.$ac_objext conftest$ac_exeext
 
10599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10600
  (eval $ac_link) 2>conftest.er1
 
10601
  ac_status=$?
 
10602
  grep -v '^ *+' conftest.er1 >conftest.err
 
10603
  rm -f conftest.er1
 
10604
  cat conftest.err >&5
 
10605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10606
  (exit $ac_status); } &&
 
10607
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10609
  (eval $ac_try) 2>&5
 
10610
  ac_status=$?
 
10611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10612
  (exit $ac_status); }; } &&
 
10613
         { ac_try='test -s conftest$ac_exeext'
 
10614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10615
  (eval $ac_try) 2>&5
 
10616
  ac_status=$?
 
10617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10618
  (exit $ac_status); }; }; then
 
10619
  ac_cv_lib_dl_dlopen=yes
 
10620
else
 
10621
  echo "$as_me: failed program was:" >&5
 
10622
sed 's/^/| /' conftest.$ac_ext >&5
 
10623
 
 
10624
ac_cv_lib_dl_dlopen=no
 
10625
fi
 
10626
rm -f conftest.err conftest.$ac_objext \
 
10627
      conftest$ac_exeext conftest.$ac_ext
 
10628
LIBS=$ac_check_lib_save_LIBS
 
10629
fi
 
10630
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10631
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10632
if test $ac_cv_lib_dl_dlopen = yes; then
 
10633
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10634
else
 
10635
 
 
10636
    lt_cv_dlopen="dyld"
 
10637
    lt_cv_dlopen_libs=
 
10638
    lt_cv_dlopen_self=yes
 
10639
 
 
10640
fi
 
10641
 
 
10642
   ;;
 
10643
 
9261
10644
  *)
9262
10645
    echo "$as_me:$LINENO: checking for shl_load" >&5
9263
10646
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9265
10648
  echo $ECHO_N "(cached) $ECHO_C" >&6
9266
10649
else
9267
10650
  cat >conftest.$ac_ext <<_ACEOF
9268
 
#line $LINENO "configure"
9269
10651
/* confdefs.h.  */
9270
10652
_ACEOF
9271
10653
cat confdefs.h >>conftest.$ac_ext
9272
10654
cat >>conftest.$ac_ext <<_ACEOF
9273
10655
/* end confdefs.h.  */
 
10656
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10657
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10658
#define shl_load innocuous_shl_load
 
10659
 
9274
10660
/* System header to define __stub macros and hopefully few prototypes,
9275
10661
    which can conflict with char shl_load (); below.
9276
10662
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9277
10663
    <limits.h> exists even on freestanding compilers.  */
 
10664
 
9278
10665
#ifdef __STDC__
9279
10666
# include <limits.h>
9280
10667
#else
9281
10668
# include <assert.h>
9282
10669
#endif
 
10670
 
 
10671
#undef shl_load
 
10672
 
9283
10673
/* Override any gcc2 internal prototype to avoid an error.  */
9284
10674
#ifdef __cplusplus
9285
10675
extern "C"
9310
10700
_ACEOF
9311
10701
rm -f conftest.$ac_objext conftest$ac_exeext
9312
10702
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313
 
  (eval $ac_link) 2>&5
 
10703
  (eval $ac_link) 2>conftest.er1
9314
10704
  ac_status=$?
 
10705
  grep -v '^ *+' conftest.er1 >conftest.err
 
10706
  rm -f conftest.er1
 
10707
  cat conftest.err >&5
9315
10708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316
10709
  (exit $ac_status); } &&
9317
 
         { ac_try='test -s conftest$ac_exeext'
 
10710
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10712
  (eval $ac_try) 2>&5
 
10713
  ac_status=$?
 
10714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10715
  (exit $ac_status); }; } &&
 
10716
         { ac_try='test -s conftest$ac_exeext'
9318
10717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319
10718
  (eval $ac_try) 2>&5
9320
10719
  ac_status=$?
9327
10726
 
9328
10727
ac_cv_func_shl_load=no
9329
10728
fi
9330
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10729
rm -f conftest.err conftest.$ac_objext \
 
10730
      conftest$ac_exeext conftest.$ac_ext
9331
10731
fi
9332
10732
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9333
10733
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9342
10742
  ac_check_lib_save_LIBS=$LIBS
9343
10743
LIBS="-ldld  $LIBS"
9344
10744
cat >conftest.$ac_ext <<_ACEOF
9345
 
#line $LINENO "configure"
9346
10745
/* confdefs.h.  */
9347
10746
_ACEOF
9348
10747
cat confdefs.h >>conftest.$ac_ext
9366
10765
_ACEOF
9367
10766
rm -f conftest.$ac_objext conftest$ac_exeext
9368
10767
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369
 
  (eval $ac_link) 2>&5
 
10768
  (eval $ac_link) 2>conftest.er1
9370
10769
  ac_status=$?
 
10770
  grep -v '^ *+' conftest.er1 >conftest.err
 
10771
  rm -f conftest.er1
 
10772
  cat conftest.err >&5
9371
10773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372
10774
  (exit $ac_status); } &&
9373
 
         { ac_try='test -s conftest$ac_exeext'
 
10775
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10777
  (eval $ac_try) 2>&5
 
10778
  ac_status=$?
 
10779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10780
  (exit $ac_status); }; } &&
 
10781
         { ac_try='test -s conftest$ac_exeext'
9374
10782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375
10783
  (eval $ac_try) 2>&5
9376
10784
  ac_status=$?
9383
10791
 
9384
10792
ac_cv_lib_dld_shl_load=no
9385
10793
fi
9386
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10794
rm -f conftest.err conftest.$ac_objext \
 
10795
      conftest$ac_exeext conftest.$ac_ext
9387
10796
LIBS=$ac_check_lib_save_LIBS
9388
10797
fi
9389
10798
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9397
10806
  echo $ECHO_N "(cached) $ECHO_C" >&6
9398
10807
else
9399
10808
  cat >conftest.$ac_ext <<_ACEOF
9400
 
#line $LINENO "configure"
9401
10809
/* confdefs.h.  */
9402
10810
_ACEOF
9403
10811
cat confdefs.h >>conftest.$ac_ext
9404
10812
cat >>conftest.$ac_ext <<_ACEOF
9405
10813
/* end confdefs.h.  */
 
10814
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10815
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10816
#define dlopen innocuous_dlopen
 
10817
 
9406
10818
/* System header to define __stub macros and hopefully few prototypes,
9407
10819
    which can conflict with char dlopen (); below.
9408
10820
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9409
10821
    <limits.h> exists even on freestanding compilers.  */
 
10822
 
9410
10823
#ifdef __STDC__
9411
10824
# include <limits.h>
9412
10825
#else
9413
10826
# include <assert.h>
9414
10827
#endif
 
10828
 
 
10829
#undef dlopen
 
10830
 
9415
10831
/* Override any gcc2 internal prototype to avoid an error.  */
9416
10832
#ifdef __cplusplus
9417
10833
extern "C"
9442
10858
_ACEOF
9443
10859
rm -f conftest.$ac_objext conftest$ac_exeext
9444
10860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445
 
  (eval $ac_link) 2>&5
 
10861
  (eval $ac_link) 2>conftest.er1
9446
10862
  ac_status=$?
 
10863
  grep -v '^ *+' conftest.er1 >conftest.err
 
10864
  rm -f conftest.er1
 
10865
  cat conftest.err >&5
9447
10866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448
10867
  (exit $ac_status); } &&
9449
 
         { ac_try='test -s conftest$ac_exeext'
 
10868
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10870
  (eval $ac_try) 2>&5
 
10871
  ac_status=$?
 
10872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10873
  (exit $ac_status); }; } &&
 
10874
         { ac_try='test -s conftest$ac_exeext'
9450
10875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451
10876
  (eval $ac_try) 2>&5
9452
10877
  ac_status=$?
9459
10884
 
9460
10885
ac_cv_func_dlopen=no
9461
10886
fi
9462
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10887
rm -f conftest.err conftest.$ac_objext \
 
10888
      conftest$ac_exeext conftest.$ac_ext
9463
10889
fi
9464
10890
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9465
10891
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9474
10900
  ac_check_lib_save_LIBS=$LIBS
9475
10901
LIBS="-ldl  $LIBS"
9476
10902
cat >conftest.$ac_ext <<_ACEOF
9477
 
#line $LINENO "configure"
9478
10903
/* confdefs.h.  */
9479
10904
_ACEOF
9480
10905
cat confdefs.h >>conftest.$ac_ext
9498
10923
_ACEOF
9499
10924
rm -f conftest.$ac_objext conftest$ac_exeext
9500
10925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501
 
  (eval $ac_link) 2>&5
 
10926
  (eval $ac_link) 2>conftest.er1
9502
10927
  ac_status=$?
 
10928
  grep -v '^ *+' conftest.er1 >conftest.err
 
10929
  rm -f conftest.er1
 
10930
  cat conftest.err >&5
9503
10931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504
10932
  (exit $ac_status); } &&
9505
 
         { ac_try='test -s conftest$ac_exeext'
 
10933
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10935
  (eval $ac_try) 2>&5
 
10936
  ac_status=$?
 
10937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10938
  (exit $ac_status); }; } &&
 
10939
         { ac_try='test -s conftest$ac_exeext'
9506
10940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507
10941
  (eval $ac_try) 2>&5
9508
10942
  ac_status=$?
9515
10949
 
9516
10950
ac_cv_lib_dl_dlopen=no
9517
10951
fi
9518
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10952
rm -f conftest.err conftest.$ac_objext \
 
10953
      conftest$ac_exeext conftest.$ac_ext
9519
10954
LIBS=$ac_check_lib_save_LIBS
9520
10955
fi
9521
10956
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9531
10966
  ac_check_lib_save_LIBS=$LIBS
9532
10967
LIBS="-lsvld  $LIBS"
9533
10968
cat >conftest.$ac_ext <<_ACEOF
9534
 
#line $LINENO "configure"
9535
10969
/* confdefs.h.  */
9536
10970
_ACEOF
9537
10971
cat confdefs.h >>conftest.$ac_ext
9555
10989
_ACEOF
9556
10990
rm -f conftest.$ac_objext conftest$ac_exeext
9557
10991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558
 
  (eval $ac_link) 2>&5
 
10992
  (eval $ac_link) 2>conftest.er1
9559
10993
  ac_status=$?
 
10994
  grep -v '^ *+' conftest.er1 >conftest.err
 
10995
  rm -f conftest.er1
 
10996
  cat conftest.err >&5
9560
10997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561
10998
  (exit $ac_status); } &&
9562
 
         { ac_try='test -s conftest$ac_exeext'
 
10999
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11001
  (eval $ac_try) 2>&5
 
11002
  ac_status=$?
 
11003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11004
  (exit $ac_status); }; } &&
 
11005
         { ac_try='test -s conftest$ac_exeext'
9563
11006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564
11007
  (eval $ac_try) 2>&5
9565
11008
  ac_status=$?
9572
11015
 
9573
11016
ac_cv_lib_svld_dlopen=no
9574
11017
fi
9575
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11018
rm -f conftest.err conftest.$ac_objext \
 
11019
      conftest$ac_exeext conftest.$ac_ext
9576
11020
LIBS=$ac_check_lib_save_LIBS
9577
11021
fi
9578
11022
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9588
11032
  ac_check_lib_save_LIBS=$LIBS
9589
11033
LIBS="-ldld  $LIBS"
9590
11034
cat >conftest.$ac_ext <<_ACEOF
9591
 
#line $LINENO "configure"
9592
11035
/* confdefs.h.  */
9593
11036
_ACEOF
9594
11037
cat confdefs.h >>conftest.$ac_ext
9612
11055
_ACEOF
9613
11056
rm -f conftest.$ac_objext conftest$ac_exeext
9614
11057
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615
 
  (eval $ac_link) 2>&5
 
11058
  (eval $ac_link) 2>conftest.er1
9616
11059
  ac_status=$?
 
11060
  grep -v '^ *+' conftest.er1 >conftest.err
 
11061
  rm -f conftest.er1
 
11062
  cat conftest.err >&5
9617
11063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618
11064
  (exit $ac_status); } &&
9619
 
         { ac_try='test -s conftest$ac_exeext'
 
11065
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11067
  (eval $ac_try) 2>&5
 
11068
  ac_status=$?
 
11069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11070
  (exit $ac_status); }; } &&
 
11071
         { ac_try='test -s conftest$ac_exeext'
9620
11072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621
11073
  (eval $ac_try) 2>&5
9622
11074
  ac_status=$?
9629
11081
 
9630
11082
ac_cv_lib_dld_dld_link=no
9631
11083
fi
9632
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11084
rm -f conftest.err conftest.$ac_objext \
 
11085
      conftest$ac_exeext conftest.$ac_ext
9633
11086
LIBS=$ac_check_lib_save_LIBS
9634
11087
fi
9635
11088
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9684
11137
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9685
11138
  lt_status=$lt_dlunknown
9686
11139
  cat > conftest.$ac_ext <<EOF
9687
 
#line 9687 "configure"
 
11140
#line 11140 "configure"
9688
11141
#include "confdefs.h"
9689
11142
 
9690
11143
#if HAVE_DLFCN_H
9782
11235
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9783
11236
  lt_status=$lt_dlunknown
9784
11237
  cat > conftest.$ac_ext <<EOF
9785
 
#line 9785 "configure"
 
11238
#line 11238 "configure"
9786
11239
#include "confdefs.h"
9787
11240
 
9788
11241
#if HAVE_DLFCN_H
9912
11365
    test "$enable_shared" = yes && enable_static=no
9913
11366
  fi
9914
11367
  ;;
 
11368
  darwin* | rhapsody*)
 
11369
  if test "$GCC" = yes; then
 
11370
    archive_cmds_need_lc=no
 
11371
    case "$host_os" in
 
11372
    rhapsody* | darwin1.[012])
 
11373
      allow_undefined_flag='-undefined suppress'
 
11374
      ;;
 
11375
    *) # Darwin 1.3 on
 
11376
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
 
11377
      ;;
 
11378
    esac
 
11379
    output_verbose_link_cmd='echo'
 
11380
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
11381
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11382
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11383
    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}'
 
11384
    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}'
 
11385
    hardcode_direct=no
 
11386
    hardcode_automatic=yes
 
11387
    hardcode_shlibpath_var=unsupported
 
11388
    whole_archive_flag_spec='-all_load $convenience'
 
11389
    link_all_deplibs=yes
 
11390
  else
 
11391
    ld_shlibs=no
 
11392
  fi
 
11393
    ;;
9915
11394
esac
9916
11395
echo "$as_me:$LINENO: result: $enable_shared" >&5
9917
11396
echo "${ECHO_T}$enable_shared" >&6
9928
11407
# with your package, and you will get complaints that there are
9929
11408
# no rules to generate ltmain.sh.
9930
11409
if test -f "$ltmain"; then
 
11410
  # See if we are running on zsh, and set the options which allow our commands through
 
11411
  # without removal of \ escapes.
 
11412
  if test -n "${ZSH_VERSION+set}" ; then
 
11413
    setopt NO_GLOB_SUBST
 
11414
  fi
9931
11415
  # Now quote all the things that may contain metacharacters while being
9932
11416
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9933
11417
  # variables and quote the copies for generation of the libtool script.
9934
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
 
11418
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9935
11419
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9936
11420
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9937
11421
    deplibs_check_method reload_flag reload_cmds need_locks \
9949
11433
    export_dynamic_flag_spec \
9950
11434
    thread_safe_flag_spec \
9951
11435
    whole_archive_flag_spec \
 
11436
    enable_shared_with_static_runtimes \
9952
11437
    old_archive_cmds \
9953
11438
    old_archive_from_new_cmds \
9954
11439
    predep_objects \
9965
11450
    no_undefined_flag \
9966
11451
    export_symbols_cmds \
9967
11452
    hardcode_libdir_flag_spec \
 
11453
    hardcode_libdir_flag_spec_ld \
9968
11454
    hardcode_libdir_separator \
 
11455
    hardcode_automatic \
 
11456
    module_cmds \
 
11457
    module_expsym_cmds \
9969
11458
    lt_cv_prog_compiler_c_o \
9970
11459
    exclude_expsyms \
9971
11460
    include_expsyms; do
9975
11464
    old_archive_from_new_cmds | \
9976
11465
    archive_cmds | \
9977
11466
    archive_expsym_cmds | \
 
11467
    module_cmds | \
 
11468
    module_expsym_cmds | \
9978
11469
    old_archive_from_expsyms_cmds | \
9979
11470
    export_symbols_cmds | \
9980
11471
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10034
11525
# configuration script generated by Autoconf, you may include it under
10035
11526
# the same distribution terms that you use for the rest of that program.
10036
11527
 
 
11528
# A sed program that does not truncate output.
 
11529
SED=$lt_SED
 
11530
 
10037
11531
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10038
 
Xsed="sed -e s/^X//"
 
11532
Xsed="$SED -e s/^X//"
10039
11533
 
10040
11534
# The HP-UX ksh and POSIX shell print the target directory to stdout
10041
11535
# if CDPATH is set.
10060
11554
# Whether or not to add -lc for building shared libraries.
10061
11555
build_libtool_need_lc=$archive_cmds_need_lc
10062
11556
 
 
11557
# Whether or not to disallow shared libs when runtime libs are static
 
11558
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11559
 
10063
11560
# Whether or not to optimize for fast installation.
10064
11561
fast_install=$enable_fast_install
10065
11562
 
10083
11580
# Is the compiler the GNU C compiler?
10084
11581
with_gcc=$GCC
10085
11582
 
 
11583
# An ERE matcher.
 
11584
EGREP=$lt_EGREP
 
11585
 
10086
11586
# The linker used to build libraries.
10087
11587
LD=$lt_LD
10088
11588
 
10092
11592
# A BSD-compatible nm program.
10093
11593
NM=$lt_NM
10094
11594
 
10095
 
# A sed program that does not truncate output.
10096
 
SED=$lt_SED
10097
 
 
10098
11595
# A symbol stripping program
10099
11596
STRIP=$STRIP
10100
11597
 
10126
11623
# Old archive suffix (normally "a").
10127
11624
libext="$libext"
10128
11625
 
 
11626
# Shared library suffix (normally ".so").
 
11627
shrext='$shrext'
 
11628
 
10129
11629
# Executable file suffix (normally "").
10130
11630
exeext="$exeext"
10131
11631
 
10203
11703
postinstall_cmds=$lt_postinstall_cmds
10204
11704
postuninstall_cmds=$lt_postuninstall_cmds
10205
11705
 
 
11706
# Commands used to build a loadable module (assumed same as above if empty)
 
11707
module_cmds=$lt_module_cmds
 
11708
module_expsym_cmds=$lt_module_expsym_cmds
 
11709
 
10206
11710
# Commands to strip libraries.
10207
11711
old_striplib=$lt_old_striplib
10208
11712
striplib=$lt_striplib
10273
11777
# This must work even if \$libdir does not exist.
10274
11778
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10275
11779
 
 
11780
# If ld is used when linking, flag to hardcode \$libdir into
 
11781
# a binary during linking. This must work even if \$libdir does
 
11782
# not exist.
 
11783
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11784
 
10276
11785
# Whether we need a single -rpath flag with a separated argument.
10277
11786
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10278
11787
 
10279
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
11788
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10280
11789
# resulting binary.
10281
11790
hardcode_direct=$hardcode_direct
10282
11791
 
10288
11797
# the resulting binary.
10289
11798
hardcode_shlibpath_var=$hardcode_shlibpath_var
10290
11799
 
 
11800
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11801
# and all subsequent libraries and executables linked against it.
 
11802
hardcode_automatic=$hardcode_automatic
 
11803
 
10291
11804
# Variables whose values should be saved in libtool wrapper scripts and
10292
11805
# restored at relink time.
10293
11806
variables_saved_for_relink="$variables_saved_for_relink"
10337
11850
fi
10338
11851
EOF
10339
11852
    ;;
10340
 
 
10341
 
  cygwin* | mingw* | pw32* | os2*)
10342
 
    cat <<'EOF' >> "$cfgfile"
10343
 
    # This is a source program that is used to create dlls on Windows
10344
 
    # Don't remove nor modify the starting and closing comments
10345
 
 
10346
 
# /* ltdll.c starts here */
10347
 
# #define WIN32_LEAN_AND_MEAN
10348
 
# #include <windows.h>
10349
 
# #undef WIN32_LEAN_AND_MEAN
10350
 
# #include <stdio.h>
10351
 
#
10352
 
# #ifndef __CYGWIN__
10353
 
# #  ifdef __CYGWIN32__
10354
 
# #    define __CYGWIN__ __CYGWIN32__
10355
 
# #  endif
10356
 
# #endif
10357
 
#
10358
 
# #ifdef __cplusplus
10359
 
# extern "C" {
10360
 
# #endif
10361
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
10362
 
# #ifdef __cplusplus
10363
 
# }
10364
 
# #endif
10365
 
#
10366
 
# #ifdef __CYGWIN__
10367
 
# #include <cygwin/cygwin_dll.h>
10368
 
# DECLARE_CYGWIN_DLL( DllMain );
10369
 
# #endif
10370
 
# HINSTANCE __hDllInstance_base;
10371
 
#
10372
 
# BOOL APIENTRY
10373
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
10374
 
# {
10375
 
#   __hDllInstance_base = hInst;
10376
 
#   return TRUE;
10377
 
# }
10378
 
# /* ltdll.c ends here */
10379
 
 
10380
 
    # This is a source program that is used to create import libraries
10381
 
    # on Windows for dlls which lack them. Don't remove nor modify the
10382
 
    # starting and closing comments
10383
 
 
10384
 
# /* impgen.c starts here */
10385
 
# /*   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
10386
 
#
10387
 
#  This file is part of GNU libtool.
10388
 
#
10389
 
#  This program is free software; you can redistribute it and/or modify
10390
 
#  it under the terms of the GNU General Public License as published by
10391
 
#  the Free Software Foundation; either version 2 of the License, or
10392
 
#  (at your option) any later version.
10393
 
#
10394
 
#  This program is distributed in the hope that it will be useful,
10395
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
10396
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10397
 
#  GNU General Public License for more details.
10398
 
#
10399
 
#  You should have received a copy of the GNU General Public License
10400
 
#  along with this program; if not, write to the Free Software
10401
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10402
 
#  */
10403
 
#
10404
 
# #include <stdio.h>            /* for printf() */
10405
 
# #include <unistd.h>           /* for open(), lseek(), read() */
10406
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
10407
 
# #include <string.h>           /* for strdup() */
10408
 
#
10409
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
10410
 
# #ifndef O_BINARY
10411
 
# #define O_BINARY 0
10412
 
# #endif
10413
 
#
10414
 
# static unsigned int
10415
 
# pe_get16 (fd, offset)
10416
 
#      int fd;
10417
 
#      int offset;
10418
 
# {
10419
 
#   unsigned char b[2];
10420
 
#   lseek (fd, offset, SEEK_SET);
10421
 
#   read (fd, b, 2);
10422
 
#   return b[0] + (b[1]<<8);
10423
 
# }
10424
 
#
10425
 
# static unsigned int
10426
 
# pe_get32 (fd, offset)
10427
 
#     int fd;
10428
 
#     int offset;
10429
 
# {
10430
 
#   unsigned char b[4];
10431
 
#   lseek (fd, offset, SEEK_SET);
10432
 
#   read (fd, b, 4);
10433
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
10434
 
# }
10435
 
#
10436
 
# static unsigned int
10437
 
# pe_as32 (ptr)
10438
 
#      void *ptr;
10439
 
# {
10440
 
#   unsigned char *b = ptr;
10441
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
10442
 
# }
10443
 
#
10444
 
# int
10445
 
# main (argc, argv)
10446
 
#     int argc;
10447
 
#     char *argv[];
10448
 
# {
10449
 
#     int dll;
10450
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
10451
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
10452
 
#     unsigned long name_rvas, nexp;
10453
 
#     unsigned char *expdata, *erva;
10454
 
#     char *filename, *dll_name;
10455
 
#
10456
 
#     filename = argv[1];
10457
 
#
10458
 
#     dll = open(filename, O_RDONLY|O_BINARY);
10459
 
#     if (dll < 1)
10460
 
#       return 1;
10461
 
#
10462
 
#     dll_name = filename;
10463
 
#
10464
 
#     for (i=0; filename[i]; i++)
10465
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
10466
 
#           dll_name = filename + i +1;
10467
 
#
10468
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
10469
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
10470
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
10471
 
#
10472
 
#     if (num_entries < 1) /* no exports */
10473
 
#       return 1;
10474
 
#
10475
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
10476
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
10477
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
10478
 
#     secptr = (pe_header_offset + 4 + 20 +
10479
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
10480
 
#
10481
 
#     expptr = 0;
10482
 
#     for (i = 0; i < nsections; i++)
10483
 
#     {
10484
 
#       char sname[8];
10485
 
#       unsigned long secptr1 = secptr + 40 * i;
10486
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
10487
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
10488
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
10489
 
#       lseek(dll, secptr1, SEEK_SET);
10490
 
#       read(dll, sname, 8);
10491
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
10492
 
#       {
10493
 
#           expptr = fptr + (export_rva - vaddr);
10494
 
#           if (export_rva + export_size > vaddr + vsize)
10495
 
#               export_size = vsize - (export_rva - vaddr);
10496
 
#           break;
10497
 
#       }
10498
 
#     }
10499
 
#
10500
 
#     expdata = (unsigned char*)malloc(export_size);
10501
 
#     lseek (dll, expptr, SEEK_SET);
10502
 
#     read (dll, expdata, export_size);
10503
 
#     erva = expdata - export_rva;
10504
 
#
10505
 
#     nexp = pe_as32 (expdata+24);
10506
 
#     name_rvas = pe_as32 (expdata+32);
10507
 
#
10508
 
#     printf ("EXPORTS\n");
10509
 
#     for (i = 0; i<nexp; i++)
10510
 
#     {
10511
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
10512
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
10513
 
#     }
10514
 
#
10515
 
#     return 0;
10516
 
# }
10517
 
# /* impgen.c ends here */
10518
 
 
10519
 
EOF
10520
 
    ;;
10521
11853
  esac
10522
11854
 
10523
11855
  # We use sed instead of cat because bash on DJGPP gets confused if
10551
11883
if test "${with_tags+set}" = set; then
10552
11884
  withval="$with_tags"
10553
11885
  tagnames="$withval"
10554
 
else
10555
 
  tagnames="CXX,GCJ"
10556
 
    case $host_os in
10557
 
      mingw*|cygwin*) tagnames="$tagnames,RC" ;;
10558
 
    esac
10559
11886
fi;
10560
11887
 
10561
11888
if test -f "$ltmain" && test -n "$tagnames"; then
10577
11904
 
10578
11905
  # Extract list of available tagged configurations in $ofile.
10579
11906
  # Note that this assumes the entire list is on one line.
10580
 
  available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11907
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10581
11908
 
10582
11909
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10583
11910
  for tagname in $tagnames; do
10604
11931
 
10605
11932
      case $tagname in
10606
11933
      CXX)
10607
 
        ac_ext=cc
 
11934
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
11935
          ac_ext=cc
10608
11936
ac_cpp='$CXXCPP $CPPFLAGS'
10609
11937
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610
11938
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10620
11948
export_dynamic_flag_spec_CXX=
10621
11949
hardcode_direct_CXX=no
10622
11950
hardcode_libdir_flag_spec_CXX=
 
11951
hardcode_libdir_flag_spec_ld_CXX=
10623
11952
hardcode_libdir_separator_CXX=
10624
11953
hardcode_minus_L_CXX=no
 
11954
hardcode_automatic_CXX=no
 
11955
module_cmds_CXX=
 
11956
module_expsym_cmds_CXX=
10625
11957
link_all_deplibs_CXX=unknown
10626
11958
old_archive_cmds_CXX=$old_archive_cmds
10627
11959
no_undefined_flag_CXX=
10628
11960
whole_archive_flag_spec_CXX=
 
11961
enable_shared_with_static_runtimes_CXX=no
10629
11962
 
10630
11963
# Dependencies to place before and after the object being linked:
10631
11964
predep_objects_CXX=
10634
11967
postdeps_CXX=
10635
11968
compiler_lib_search_path_CXX=
10636
11969
 
10637
 
# Source file extension for C test sources.
 
11970
# Source file extension for C++ test sources.
10638
11971
ac_ext=cc
10639
11972
 
10640
 
# Object file extension for compiled C test sources.
 
11973
# Object file extension for compiled C++ test sources.
10641
11974
objext=o
10642
11975
objext_CXX=$objext
10643
11976
 
10644
11977
# Code to be used in simple compile tests
10645
 
lt_simple_compile_test_code="int some_variable = 0;"
 
11978
lt_simple_compile_test_code="int some_variable = 0;\n"
10646
11979
 
10647
11980
# Code to be used in simple link tests
10648
 
lt_simple_link_test_code='int main(int char *) { return(0); }'
 
11981
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10649
11982
 
10650
11983
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10651
11984
 
10653
11986
LTCC=${LTCC-"$CC"}
10654
11987
 
10655
11988
# Allow CC to be a program name with arguments.
10656
 
set dummy $CC
10657
 
compiler="$2"
 
11989
compiler=$CC
10658
11990
 
10659
11991
 
10660
11992
# Allow CC to be a program name with arguments.
10661
 
lt_save_CC="$CC"
 
11993
lt_save_CC=$CC
 
11994
lt_save_LD=$LD
 
11995
lt_save_GCC=$GCC
 
11996
GCC=$GXX
 
11997
lt_save_with_gnu_ld=$with_gnu_ld
 
11998
lt_save_path_LD=$lt_cv_path_LD
 
11999
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12000
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12001
else
 
12002
  unset lt_cv_prog_gnu_ld
 
12003
fi
 
12004
if test -n "${lt_cv_path_LDCXX+set}"; then
 
12005
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
12006
else
 
12007
  unset lt_cv_path_LD
 
12008
fi
 
12009
test -z "${LDCXX+set}" || LD=$LDCXX
10662
12010
CC=${CXX-"c++"}
10663
 
set dummy $CC
10664
 
compiler="$2"
 
12011
compiler=$CC
10665
12012
compiler_CXX=$CC
10666
12013
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10667
12014
 
10676
12023
if test "$GXX" = yes; then
10677
12024
  # Set up default GNU C++ configuration
10678
12025
 
 
12026
 
 
12027
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
12028
if test "${with_gnu_ld+set}" = set; then
 
12029
  withval="$with_gnu_ld"
 
12030
  test "$withval" = no || with_gnu_ld=yes
 
12031
else
 
12032
  with_gnu_ld=no
 
12033
fi;
 
12034
ac_prog=ld
 
12035
if test "$GCC" = yes; then
 
12036
  # Check if gcc -print-prog-name=ld gives a path.
 
12037
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
12038
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
12039
  case $host in
 
12040
  *-*-mingw*)
 
12041
    # gcc leaves a trailing carriage return which upsets mingw
 
12042
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12043
  *)
 
12044
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12045
  esac
 
12046
  case $ac_prog in
 
12047
    # Accept absolute paths.
 
12048
    [\\/]* | ?:[\\/]*)
 
12049
      re_direlt='/[^/][^/]*/\.\./'
 
12050
      # Canonicalize the pathname of ld
 
12051
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
12052
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
12053
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
12054
      done
 
12055
      test -z "$LD" && LD="$ac_prog"
 
12056
      ;;
 
12057
  "")
 
12058
    # If it fails, then pretend we aren't using GCC.
 
12059
    ac_prog=ld
 
12060
    ;;
 
12061
  *)
 
12062
    # If it is relative, then search for the first ld in PATH.
 
12063
    with_gnu_ld=unknown
 
12064
    ;;
 
12065
  esac
 
12066
elif test "$with_gnu_ld" = yes; then
 
12067
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
12068
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
12069
else
 
12070
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
12071
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
12072
fi
 
12073
if test "${lt_cv_path_LD+set}" = set; then
 
12074
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12075
else
 
12076
  if test -z "$LD"; then
 
12077
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12078
  for ac_dir in $PATH; do
 
12079
    IFS="$lt_save_ifs"
 
12080
    test -z "$ac_dir" && ac_dir=.
 
12081
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12082
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12083
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12084
      # but apparently some GNU ld's only accept -v.
 
12085
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12086
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12087
      *GNU* | *'with BFD'*)
 
12088
        test "$with_gnu_ld" != no && break
 
12089
        ;;
 
12090
      *)
 
12091
        test "$with_gnu_ld" != yes && break
 
12092
        ;;
 
12093
      esac
 
12094
    fi
 
12095
  done
 
12096
  IFS="$lt_save_ifs"
 
12097
else
 
12098
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12099
fi
 
12100
fi
 
12101
 
 
12102
LD="$lt_cv_path_LD"
 
12103
if test -n "$LD"; then
 
12104
  echo "$as_me:$LINENO: result: $LD" >&5
 
12105
echo "${ECHO_T}$LD" >&6
 
12106
else
 
12107
  echo "$as_me:$LINENO: result: no" >&5
 
12108
echo "${ECHO_T}no" >&6
 
12109
fi
 
12110
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
12111
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
12112
   { (exit 1); exit 1; }; }
 
12113
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
12114
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
12115
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
12116
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12117
else
 
12118
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
12119
case `$LD -v 2>&1 </dev/null` in
 
12120
*GNU* | *'with BFD'*)
 
12121
  lt_cv_prog_gnu_ld=yes
 
12122
  ;;
 
12123
*)
 
12124
  lt_cv_prog_gnu_ld=no
 
12125
  ;;
 
12126
esac
 
12127
fi
 
12128
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
12129
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
12130
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12131
 
 
12132
 
 
12133
 
10679
12134
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10680
12135
  # archiving commands below assume that GNU ld is being used.
10681
 
  if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
10682
 
      egrep 'GNU ld' > /dev/null; then
10683
 
    with_gnu_ld=yes
10684
 
 
 
12136
  if test "$with_gnu_ld" = yes; then
10685
12137
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10686
12138
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10687
12139
 
10695
12147
 
10696
12148
    # ancient GNU ld didn't support --whole-archive et. al.
10697
12149
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10698
 
        egrep 'no-whole-archive' > /dev/null; then
 
12150
        grep 'no-whole-archive' > /dev/null; then
10699
12151
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10700
12152
    else
10701
12153
      whole_archive_flag_spec_CXX=
10709
12161
    # linker, instead of GNU ld.  If possible, this setting should
10710
12162
    # overridden to take advantage of the native linker features on
10711
12163
    # the platform it is being used on.
10712
 
    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12164
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10713
12165
  fi
10714
12166
 
10715
12167
  # Commands to make compiler produce verbose output that lists
10716
12168
  # what "hidden" libraries, object files and flags are used when
10717
12169
  # linking a shared library.
10718
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
 
12170
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10719
12171
 
10720
12172
else
10721
12173
  GXX=no
10802
12254
      allow_undefined_flag_CXX='-berok'
10803
12255
      # Determine the default libpath from the value encoded in an empty executable.
10804
12256
      cat >conftest.$ac_ext <<_ACEOF
10805
 
#line $LINENO "configure"
10806
12257
/* confdefs.h.  */
10807
12258
_ACEOF
10808
12259
cat confdefs.h >>conftest.$ac_ext
10819
12270
_ACEOF
10820
12271
rm -f conftest.$ac_objext conftest$ac_exeext
10821
12272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822
 
  (eval $ac_link) 2>&5
 
12273
  (eval $ac_link) 2>conftest.er1
10823
12274
  ac_status=$?
 
12275
  grep -v '^ *+' conftest.er1 >conftest.err
 
12276
  rm -f conftest.er1
 
12277
  cat conftest.err >&5
10824
12278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825
12279
  (exit $ac_status); } &&
10826
 
         { ac_try='test -s conftest$ac_exeext'
 
12280
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12282
  (eval $ac_try) 2>&5
 
12283
  ac_status=$?
 
12284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12285
  (exit $ac_status); }; } &&
 
12286
         { ac_try='test -s conftest$ac_exeext'
10827
12287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828
12288
  (eval $ac_try) 2>&5
10829
12289
  ac_status=$?
10830
12290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831
12291
  (exit $ac_status); }; }; then
10832
12292
 
10833
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12293
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10834
12294
}'`
10835
12295
# Check for a 64-bit object if we didn't find anything.
10836
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12296
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10837
12297
}'`; fi
10838
12298
else
10839
12299
  echo "$as_me: failed program was:" >&5
10840
12300
sed 's/^/| /' conftest.$ac_ext >&5
10841
12301
 
10842
12302
fi
10843
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12303
rm -f conftest.err conftest.$ac_objext \
 
12304
      conftest$ac_exeext conftest.$ac_ext
10844
12305
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10845
12306
 
10846
12307
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10855
12316
      else
10856
12317
        # Determine the default libpath from the value encoded in an empty executable.
10857
12318
        cat >conftest.$ac_ext <<_ACEOF
10858
 
#line $LINENO "configure"
10859
12319
/* confdefs.h.  */
10860
12320
_ACEOF
10861
12321
cat confdefs.h >>conftest.$ac_ext
10872
12332
_ACEOF
10873
12333
rm -f conftest.$ac_objext conftest$ac_exeext
10874
12334
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10875
 
  (eval $ac_link) 2>&5
 
12335
  (eval $ac_link) 2>conftest.er1
10876
12336
  ac_status=$?
 
12337
  grep -v '^ *+' conftest.er1 >conftest.err
 
12338
  rm -f conftest.er1
 
12339
  cat conftest.err >&5
10877
12340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878
12341
  (exit $ac_status); } &&
10879
 
         { ac_try='test -s conftest$ac_exeext'
 
12342
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12344
  (eval $ac_try) 2>&5
 
12345
  ac_status=$?
 
12346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12347
  (exit $ac_status); }; } &&
 
12348
         { ac_try='test -s conftest$ac_exeext'
10880
12349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881
12350
  (eval $ac_try) 2>&5
10882
12351
  ac_status=$?
10883
12352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884
12353
  (exit $ac_status); }; }; then
10885
12354
 
10886
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12355
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10887
12356
}'`
10888
12357
# Check for a 64-bit object if we didn't find anything.
10889
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12358
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10890
12359
}'`; fi
10891
12360
else
10892
12361
  echo "$as_me: failed program was:" >&5
10893
12362
sed 's/^/| /' conftest.$ac_ext >&5
10894
12363
 
10895
12364
fi
10896
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12365
rm -f conftest.err conftest.$ac_objext \
 
12366
      conftest$ac_exeext conftest.$ac_ext
10897
12367
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10898
12368
 
10899
12369
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10919
12389
        ;;
10920
12390
    esac
10921
12391
    ;;
 
12392
 
 
12393
  cygwin* | mingw* | pw32*)
 
12394
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12395
    # as there is no search path for DLLs.
 
12396
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12397
    allow_undefined_flag_CXX=no
 
12398
    always_export_symbols_CXX=no
 
12399
    enable_shared_with_static_runtimes_CXX=yes
 
12400
 
 
12401
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12402
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
12403
      # If the export-symbols file already is a .def file (1st line
 
12404
      # is EXPORTS), use it as is; otherwise, prepend...
 
12405
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12406
        cp $export_symbols $output_objdir/$soname.def;
 
12407
      else
 
12408
        echo EXPORTS > $output_objdir/$soname.def;
 
12409
        cat $export_symbols >> $output_objdir/$soname.def;
 
12410
      fi~
 
12411
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
12412
    else
 
12413
      ld_shlibs_CXX=no
 
12414
    fi
 
12415
  ;;
 
12416
 
 
12417
  darwin* | rhapsody*)
 
12418
  if test "$GXX" = yes; then
 
12419
    archive_cmds_need_lc_CXX=no
 
12420
    case "$host_os" in
 
12421
    rhapsody* | darwin1.[012])
 
12422
      allow_undefined_flag_CXX='-undefined suppress'
 
12423
      ;;
 
12424
    *) # Darwin 1.3 on
 
12425
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
12426
      ;;
 
12427
    esac
 
12428
    lt_int_apple_cc_single_mod=no
 
12429
    output_verbose_link_cmd='echo'
 
12430
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
12431
      lt_int_apple_cc_single_mod=yes
 
12432
    fi
 
12433
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12434
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12435
    else
 
12436
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12437
    fi
 
12438
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12439
 
 
12440
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
12441
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12442
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12443
    else
 
12444
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12445
    fi
 
12446
    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}'
 
12447
    hardcode_direct_CXX=no
 
12448
    hardcode_automatic_CXX=yes
 
12449
    hardcode_shlibpath_var_CXX=unsupported
 
12450
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
12451
    link_all_deplibs_CXX=yes
 
12452
  else
 
12453
    ld_shlibs_CXX=no
 
12454
  fi
 
12455
    ;;
 
12456
 
10922
12457
  dgux*)
10923
12458
    case $cc_basename in
10924
12459
      ec++)
10950
12485
    ;;
10951
12486
  gnu*)
10952
12487
    ;;
10953
 
  hpux*)
 
12488
  hpux9*)
 
12489
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12490
    hardcode_libdir_separator_CXX=:
 
12491
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12492
    hardcode_direct_CXX=yes
 
12493
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12494
                                # but as the default
 
12495
                                # location of the library.
 
12496
 
 
12497
    case $cc_basename in
 
12498
    CC)
 
12499
      # FIXME: insert proper C++ library support
 
12500
      ld_shlibs_CXX=no
 
12501
      ;;
 
12502
    aCC)
 
12503
      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'
 
12504
      # Commands to make compiler produce verbose output that lists
 
12505
      # what "hidden" libraries, object files and flags are used when
 
12506
      # linking a shared library.
 
12507
      #
 
12508
      # There doesn't appear to be a way to prevent this compiler from
 
12509
      # explicitly linking system object files so we need to strip them
 
12510
      # from the output so that they don't get included in the library
 
12511
      # dependencies.
 
12512
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12513
      ;;
 
12514
    *)
 
12515
      if test "$GXX" = yes; then
 
12516
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12517
      else
 
12518
        # FIXME: insert proper C++ library support
 
12519
        ld_shlibs_CXX=no
 
12520
      fi
 
12521
      ;;
 
12522
    esac
 
12523
    ;;
 
12524
  hpux10*|hpux11*)
10954
12525
    if test $with_gnu_ld = no; then
10955
 
      if test "$host_cpu" = ia64; then
 
12526
      case "$host_cpu" in
 
12527
      hppa*64*)
 
12528
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12529
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
12530
        hardcode_libdir_separator_CXX=:
 
12531
        ;;
 
12532
      ia64*)
10956
12533
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10957
 
      else
 
12534
        ;;
 
12535
      *)
10958
12536
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10959
12537
        hardcode_libdir_separator_CXX=:
10960
12538
        export_dynamic_flag_spec_CXX='${wl}-E'
10961
 
      fi
 
12539
        ;;
 
12540
      esac
10962
12541
    fi
10963
 
    if test "$host_cpu" = ia64; then
10964
 
      hardcode_direct_CXX=no
10965
 
      hardcode_shlibpath_var_CXX=no
10966
 
    else
 
12542
    case "$host_cpu" in
 
12543
    hppa*64*)
 
12544
      hardcode_direct_CXX=no
 
12545
      hardcode_shlibpath_var_CXX=no
 
12546
      ;;
 
12547
    ia64*)
 
12548
      hardcode_direct_CXX=no
 
12549
      hardcode_shlibpath_var_CXX=no
 
12550
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12551
                                              # but as the default
 
12552
                                              # location of the library.
 
12553
      ;;
 
12554
    *)
10967
12555
      hardcode_direct_CXX=yes
10968
 
    fi
10969
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
10970
 
                                            # but as the default
10971
 
                                            # location of the library.
 
12556
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12557
                                              # but as the default
 
12558
                                              # location of the library.
 
12559
      ;;
 
12560
    esac
10972
12561
 
10973
12562
    case $cc_basename in
10974
12563
      CC)
10976
12565
        ld_shlibs_CXX=no
10977
12566
        ;;
10978
12567
      aCC)
10979
 
        case $host_os in
10980
 
        hpux9*)
10981
 
          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'
 
12568
        case "$host_cpu" in
 
12569
        hppa*64*|ia64*)
 
12570
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10982
12571
          ;;
10983
12572
        *)
10984
 
          if test "$host_cpu" = ia64; then
10985
 
            archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10986
 
          else
10987
 
            archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10988
 
          fi
 
12573
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10989
12574
          ;;
10990
12575
        esac
10991
12576
        # Commands to make compiler produce verbose output that lists
10996
12581
        # explicitly linking system object files so we need to strip them
10997
12582
        # from the output so that they don't get included in the library
10998
12583
        # dependencies.
10999
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12584
        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'
11000
12585
        ;;
11001
12586
      *)
11002
12587
        if test "$GXX" = yes; then
11003
12588
          if test $with_gnu_ld = no; then
11004
 
            case $host_os in
11005
 
            hpux9*)
11006
 
              archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12589
            case "$host_cpu" in
 
12590
            ia64*|hppa*64*)
 
12591
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11007
12592
              ;;
11008
12593
            *)
11009
 
              if test "$host_cpu" = ia64; then
11010
 
                archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11011
 
              else
11012
 
                archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11013
 
              fi
 
12594
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11014
12595
              ;;
11015
12596
            esac
11016
12597
          fi
11038
12619
          if test "$with_gnu_ld" = no; then
11039
12620
            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'
11040
12621
          else
11041
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
 
12622
            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'
11042
12623
          fi
11043
12624
        fi
11044
12625
        link_all_deplibs_CXX=yes
11055
12636
        # KCC will only create a shared library if the output file
11056
12637
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11057
12638
        # to its proper name (with version) after linking.
11058
 
        archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11059
 
        archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11060
 
 
 
12639
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12640
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11061
12641
        # Commands to make compiler produce verbose output that lists
11062
12642
        # what "hidden" libraries, object files and flags are used when
11063
12643
        # linking a shared library.
11066
12646
        # explicitly linking system object files so we need to strip them
11067
12647
        # from the output so that they don't get included in the library
11068
12648
        # dependencies.
11069
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12649
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11070
12650
 
11071
12651
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11072
12652
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11075
12655
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11076
12656
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11077
12657
        ;;
 
12658
      icpc)
 
12659
        # Intel C++
 
12660
        with_gnu_ld=yes
 
12661
        archive_cmds_need_lc_CXX=no
 
12662
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12663
        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'
 
12664
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12665
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12666
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12667
        ;;
11078
12668
      cxx)
11079
12669
        # Compaq C++
11080
12670
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11092
12682
        # explicitly linking system object files so we need to strip them
11093
12683
        # from the output so that they don't get included in the library
11094
12684
        # dependencies.
11095
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12685
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11096
12686
        ;;
11097
12687
    esac
11098
12688
    ;;
11117
12707
    esac
11118
12708
    ;;
11119
12709
  netbsd*)
11120
 
    # NetBSD uses g++ - do we need to do anything?
 
12710
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12711
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12712
      wlarc=
 
12713
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12714
      hardcode_direct_CXX=yes
 
12715
      hardcode_shlibpath_var_CXX=no
 
12716
    fi
 
12717
    # Workaround some broken pre-1.5 toolchains
 
12718
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11121
12719
    ;;
11122
12720
  osf3*)
11123
12721
    case $cc_basename in
11127
12725
        # KCC will only create a shared library if the output file
11128
12726
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11129
12727
        # to its proper name (with version) after linking.
11130
 
        archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12728
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11131
12729
 
11132
12730
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11133
12731
        hardcode_libdir_separator_CXX=:
11157
12755
        # explicitly linking system object files so we need to strip them
11158
12756
        # from the output so that they don't get included in the library
11159
12757
        # dependencies.
11160
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12758
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11161
12759
        ;;
11162
12760
      *)
11163
12761
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11170
12768
          # Commands to make compiler produce verbose output that lists
11171
12769
          # what "hidden" libraries, object files and flags are used when
11172
12770
          # linking a shared library.
11173
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
 
12771
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11174
12772
 
11175
12773
        else
11176
12774
          # FIXME: insert proper C++ library support
11187
12785
        # KCC will only create a shared library if the output file
11188
12786
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11189
12787
        # to its proper name (with version) after linking.
11190
 
        archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12788
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11191
12789
 
11192
12790
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11193
12791
        hardcode_libdir_separator_CXX=:
11204
12802
      cxx)
11205
12803
        allow_undefined_flag_CXX=' -expect_unresolved \*'
11206
12804
        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'
11207
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
 
12805
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11208
12806
          echo "-hidden">> $lib.exp~
11209
12807
          $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~
11210
12808
          $rm $lib.exp'
11220
12818
        # explicitly linking system object files so we need to strip them
11221
12819
        # from the output so that they don't get included in the library
11222
12820
        # dependencies.
11223
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12821
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11224
12822
        ;;
11225
12823
      *)
11226
12824
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11233
12831
          # Commands to make compiler produce verbose output that lists
11234
12832
          # what "hidden" libraries, object files and flags are used when
11235
12833
          # linking a shared library.
11236
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
 
12834
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11237
12835
 
11238
12836
        else
11239
12837
          # FIXME: insert proper C++ library support
11283
12881
        # Sun C++ 4.2, 5.x and Centerline C++
11284
12882
        no_undefined_flag_CXX=' -zdefs'
11285
12883
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11286
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12884
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11287
12885
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11288
12886
 
11289
12887
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11308
12906
        # explicitly linking system object files so we need to strip them
11309
12907
        # from the output so that they don't get included in the library
11310
12908
        # dependencies.
11311
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12909
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11312
12910
 
11313
12911
        # Archives containing C++ object files must be created using
11314
12912
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11327
12925
        # GNU C++ compiler with Solaris linker
11328
12926
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11329
12927
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11330
 
          if $CC --version | egrep -v '^2\.7' > /dev/null; then
11331
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
11332
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11333
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
 
12928
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12929
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12930
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12931
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11334
12932
 
11335
12933
            # Commands to make compiler produce verbose output that lists
11336
12934
            # what "hidden" libraries, object files and flags are used when
11337
12935
            # linking a shared library.
11338
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
 
12936
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11339
12937
          else
11340
12938
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11341
12939
            # platform.
11342
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
11343
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11344
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
 
12940
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12941
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12942
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11345
12943
 
11346
12944
            # Commands to make compiler produce verbose output that lists
11347
12945
            # what "hidden" libraries, object files and flags are used when
11348
12946
            # linking a shared library.
11349
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
 
12947
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11350
12948
          fi
11351
12949
 
11352
12950
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11383
12981
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11384
12982
test "$ld_shlibs_CXX" = no && can_build_shared=no
11385
12983
 
11386
 
# Figure out "hidden" C++ library dependencies from verbose
11387
 
# compiler output whening linking a shared library.
 
12984
GCC_CXX="$GXX"
 
12985
LD_CXX="$LD"
 
12986
 
 
12987
 
11388
12988
cat > conftest.$ac_ext <<EOF
11389
12989
class Foo
11390
12990
{
11395
12995
};
11396
12996
EOF
11397
12997
 
11398
 
 
11399
12998
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400
12999
  (eval $ac_compile) 2>&5
11401
13000
  ac_status=$?
11480
13079
  done
11481
13080
 
11482
13081
  # Clean up.
11483
 
  rm -f a.out
 
13082
  rm -f a.out a.exe
11484
13083
else
11485
 
  echo "libtool.m4: error: problem compiling C++ test program"
 
13084
  echo "libtool.m4: error: problem compiling CXX test program"
11486
13085
fi
11487
13086
 
11488
13087
$rm -f confest.$objext
11489
13088
 
11490
13089
case " $postdeps_CXX " in
11491
13090
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11492
 
*) archive_cmds_need_lc_CXX=yes ;;
11493
13091
esac
11494
13092
 
11495
 
GCC_CXX="$GXX"
11496
 
LD_CXX="$LD"
11497
 
 
11498
13093
lt_prog_compiler_wl_CXX=
11499
13094
lt_prog_compiler_pic_CXX=
11500
13095
lt_prog_compiler_static_CXX=
11521
13116
      # like `-m68040'.
11522
13117
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11523
13118
      ;;
11524
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13119
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11525
13120
      # PIC is the default for these OSes.
11526
13121
      ;;
11527
 
    cygwin* | mingw* | os2*)
 
13122
    mingw* | os2* | pw32*)
11528
13123
      # This hack is so that the source file can tell whether it is being
11529
13124
      # built for inclusion in a dll (and should export symbols for example).
11530
13125
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11544
13139
      fi
11545
13140
      ;;
11546
13141
    hpux*)
11547
 
      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11548
 
      if test "$host_cpu" != ia64; then
 
13142
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13143
      # not for PA HP-UX.
 
13144
      case "$host_cpu" in
 
13145
      hppa*64*|ia64*)
 
13146
        ;;
 
13147
      *)
11549
13148
        lt_prog_compiler_pic_CXX='-fPIC'
11550
 
      fi
 
13149
        ;;
 
13150
      esac
11551
13151
      ;;
11552
13152
    *)
11553
13153
      lt_prog_compiler_pic_CXX='-fPIC'
11600
13200
          aCC)
11601
13201
            lt_prog_compiler_wl_CXX='-Wl,'
11602
13202
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11603
 
            if test "$host_cpu" != ia64; then
 
13203
            case "$host_cpu" in
 
13204
            hppa*64*|ia64*)
 
13205
              # +Z the default
 
13206
              ;;
 
13207
            *)
11604
13208
              lt_prog_compiler_pic_CXX='+Z'
11605
 
            fi
 
13209
              ;;
 
13210
            esac
11606
13211
            ;;
11607
13212
          *)
11608
13213
            ;;
11626
13231
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11627
13232
            lt_prog_compiler_pic_CXX='-fPIC'
11628
13233
            ;;
 
13234
          icpc)
 
13235
            # Intel C++
 
13236
            lt_prog_compiler_wl_CXX='-Wl,'
 
13237
            lt_prog_compiler_pic_CXX='-KPIC'
 
13238
            lt_prog_compiler_static_CXX='-static'
 
13239
            ;;
11629
13240
          cxx)
11630
13241
            # Compaq C++
11631
13242
            # Make sure the PIC flag is empty.  It appears that all Alpha
11742
13353
# Check to make sure the PIC flag actually works.
11743
13354
#
11744
13355
if test -n "$lt_prog_compiler_pic_CXX"; then
11745
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13356
 
 
13357
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11746
13358
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11747
13359
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11748
13360
  echo $ECHO_N "(cached) $ECHO_C" >&6
11749
13361
else
11750
13362
  lt_prog_compiler_pic_works_CXX=no
11751
13363
  ac_outfile=conftest.$ac_objext
11752
 
   save_CFLAGS="$CFLAGS"
11753
 
   CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
11754
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11755
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
 
13364
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13365
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13366
   # Insert the option either (1) after the last *FLAGS variable, or
 
13367
   # (2) before a word containing "conftest.", or (3) at the end.
 
13368
   # Note that $ac_compile itself does not contain backslashes and begins
 
13369
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13370
   # The option is referenced via a variable to avoid confusing sed.
 
13371
   lt_compile=`echo "$ac_compile" | $SED \
 
13372
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13373
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13374
   -e 's:$: $lt_compiler_flag:'`
 
13375
   (eval echo "\"\$as_me:13375: $lt_compile\"" >&5)
 
13376
   (eval "$lt_compile" 2>conftest.err)
 
13377
   ac_status=$?
 
13378
   cat conftest.err >&5
 
13379
   echo "$as_me:13379: \$? = $ac_status" >&5
 
13380
   if (exit $ac_status) && test -s "$ac_outfile"; then
11756
13381
     # The compiler can only warn and ignore the option if not recognized
11757
13382
     # So say no if there are warnings
11758
 
     if test -s conftest.err; then
11759
 
       # Append any errors to the config.log.
11760
 
       cat conftest.err 1>&5
11761
 
     else
 
13383
     if test ! -s conftest.err; then
11762
13384
       lt_prog_compiler_pic_works_CXX=yes
11763
13385
     fi
11764
13386
   fi
11765
13387
   $rm conftest*
11766
 
   CFLAGS="$save_CFLAGS"
11767
13388
 
11768
13389
fi
11769
13390
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11800
13421
   mkdir conftest
11801
13422
   cd conftest
11802
13423
   mkdir out
11803
 
   save_CXXFLAGS="$CXXFLAGS"
11804
 
                   CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
11805
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13424
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11806
13425
 
11807
13426
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11808
13427
   # that will create temporary files in the current directory regardless of
11811
13430
   # builds.
11812
13431
   chmod -w .
11813
13432
 
11814
 
   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
 
13433
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13434
   # Insert the option either (1) after the last *FLAGS variable, or
 
13435
   # (2) before a word containing "conftest.", or (3) at the end.
 
13436
   # Note that $ac_compile itself does not contain backslashes and begins
 
13437
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13438
   lt_compile=`echo "$ac_compile" | $SED \
 
13439
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13440
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13441
   -e 's:$: $lt_compiler_flag:'`
 
13442
   (eval echo "\"\$as_me:13442: $lt_compile\"" >&5)
 
13443
   (eval "$lt_compile" 2>out/conftest.err)
 
13444
   ac_status=$?
 
13445
   cat out/conftest.err >&5
 
13446
   echo "$as_me:13446: \$? = $ac_status" >&5
 
13447
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11815
13448
   then
11816
13449
     # The compiler can only warn and ignore the option if not recognized
11817
13450
     # So say no if there are warnings
11818
 
     if test -s out/conftest.err; then
11819
 
       # Append any errors to the config.log.
11820
 
       cat out/conftest.err 1>&5
11821
 
     else
 
13451
     if test ! -s out/conftest.err; then
11822
13452
       lt_cv_prog_compiler_c_o_CXX=yes
11823
13453
     fi
11824
13454
   fi
11825
 
   CXXFLAGS="$save_CXXFLAGS"
11826
13455
   chmod u+w .
11827
13456
   $rm conftest* out/*
11828
13457
   rmdir out
11860
13489
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11861
13490
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11862
13491
 
11863
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13492
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11864
13493
  case $host_os in
11865
13494
  aix4* | aix5*)
11866
13495
    # If we're using GNU nm, then we don't want the "-C" option.
11867
13496
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11868
 
    if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
 
13497
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11869
13498
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11870
13499
    else
11871
13500
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11872
13501
    fi
11873
13502
    ;;
11874
 
  cygwin* | mingw* | pw32*)
 
13503
  pw32*)
11875
13504
    export_symbols_cmds_CXX="$ltdll_cmds"
11876
13505
  ;;
 
13506
  cygwin* | mingw*)
 
13507
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13508
  ;;
11877
13509
  *)
11878
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13510
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11879
13511
  ;;
11880
13512
  esac
11881
13513
 
11891
13523
#
11892
13524
# Do we need to explicitly link libc?
11893
13525
#
11894
 
archive_cmds_need_lc_CXX=yes
11895
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
11896
 
  case $archive_cmds_CXX in
11897
 
  *'~'*)
11898
 
    # FIXME: we may have to deal with multi-command sequences.
11899
 
    ;;
11900
 
  '$CC '*)
11901
 
    # Test whether the compiler implicitly links with -lc since on some
11902
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
11903
 
    # to ld, don't add -lc before -lgcc.
11904
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13526
case "x$archive_cmds_need_lc_CXX" in
 
13527
x|xyes)
 
13528
  # Assume -lc should be added
 
13529
  archive_cmds_need_lc_CXX=yes
 
13530
 
 
13531
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13532
    case $archive_cmds_CXX in
 
13533
    *'~'*)
 
13534
      # FIXME: we may have to deal with multi-command sequences.
 
13535
      ;;
 
13536
    '$CC '*)
 
13537
      # Test whether the compiler implicitly links with -lc since on some
 
13538
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13539
      # to ld, don't add -lc before -lgcc.
 
13540
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11905
13541
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11906
 
    $rm conftest*
11907
 
    echo 'static int dummy;' > conftest.$ac_ext
 
13542
      $rm conftest*
 
13543
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11908
13544
 
11909
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13545
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11910
13546
  (eval $ac_compile) 2>&5
11911
13547
  ac_status=$?
11912
13548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913
13549
  (exit $ac_status); } 2>conftest.err; then
11914
 
      soname=conftest
11915
 
      lib=conftest
11916
 
      libobjs=conftest.$ac_objext
11917
 
      deplibs=
11918
 
      wl=$lt_prog_compiler_wl_CXX
11919
 
      compiler_flags=-v
11920
 
      linker_flags=-v
11921
 
      verstring=
11922
 
      output_objdir=.
11923
 
      libname=conftest
11924
 
      lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11925
 
      allow_undefined_flag_CXX=
11926
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13550
        soname=conftest
 
13551
        lib=conftest
 
13552
        libobjs=conftest.$ac_objext
 
13553
        deplibs=
 
13554
        wl=$lt_prog_compiler_wl_CXX
 
13555
        compiler_flags=-v
 
13556
        linker_flags=-v
 
13557
        verstring=
 
13558
        output_objdir=.
 
13559
        libname=conftest
 
13560
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13561
        allow_undefined_flag_CXX=
 
13562
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11927
13563
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11928
13564
  ac_status=$?
11929
13565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930
13566
  (exit $ac_status); }
11931
 
      then
11932
 
        archive_cmds_need_lc_CXX=no
 
13567
        then
 
13568
          archive_cmds_need_lc_CXX=no
 
13569
        else
 
13570
          archive_cmds_need_lc_CXX=yes
 
13571
        fi
 
13572
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11933
13573
      else
11934
 
        archive_cmds_need_lc_CXX=yes
 
13574
        cat conftest.err 1>&5
11935
13575
      fi
11936
 
      allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11937
 
    else
11938
 
      cat conftest.err 1>&5
11939
 
    fi
11940
 
    $rm conftest*
11941
 
    echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13576
      $rm conftest*
 
13577
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11942
13578
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11943
 
    ;;
11944
 
  esac
11945
 
fi
 
13579
      ;;
 
13580
    esac
 
13581
  fi
 
13582
  ;;
 
13583
esac
 
13584
 
 
13585
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13586
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13587
library_names_spec=
 
13588
libname_spec='lib$name'
 
13589
soname_spec=
 
13590
shrext=".so"
 
13591
postinstall_cmds=
 
13592
postuninstall_cmds=
 
13593
finish_cmds=
 
13594
finish_eval=
 
13595
shlibpath_var=
 
13596
shlibpath_overrides_runpath=unknown
 
13597
version_type=none
 
13598
dynamic_linker="$host_os ld.so"
 
13599
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13600
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13601
need_lib_prefix=unknown
 
13602
hardcode_into_libs=no
 
13603
 
 
13604
# when you set need_version to no, make sure it does not cause -set_version
 
13605
# flags to be left without arguments
 
13606
need_version=unknown
 
13607
 
 
13608
case $host_os in
 
13609
aix3*)
 
13610
  version_type=linux
 
13611
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13612
  shlibpath_var=LIBPATH
 
13613
 
 
13614
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13615
  soname_spec='${libname}${release}${shared_ext}$major'
 
13616
  ;;
 
13617
 
 
13618
aix4* | aix5*)
 
13619
  version_type=linux
 
13620
  need_lib_prefix=no
 
13621
  need_version=no
 
13622
  hardcode_into_libs=yes
 
13623
  if test "$host_cpu" = ia64; then
 
13624
    # AIX 5 supports IA64
 
13625
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13626
    shlibpath_var=LD_LIBRARY_PATH
 
13627
  else
 
13628
    # With GCC up to 2.95.x, collect2 would create an import file
 
13629
    # for dependence libraries.  The import file would start with
 
13630
    # the line `#! .'.  This would cause the generated library to
 
13631
    # depend on `.', always an invalid library.  This was fixed in
 
13632
    # development snapshots of GCC prior to 3.0.
 
13633
    case $host_os in
 
13634
      aix4 | aix4.[01] | aix4.[01].*)
 
13635
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13636
           echo ' yes '
 
13637
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13638
        :
 
13639
      else
 
13640
        can_build_shared=no
 
13641
      fi
 
13642
      ;;
 
13643
    esac
 
13644
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13645
    # soname into executable. Probably we can add versioning support to
 
13646
    # collect2, so additional links can be useful in future.
 
13647
    if test "$aix_use_runtimelinking" = yes; then
 
13648
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13649
      # instead of lib<name>.a to let people know that these are not
 
13650
      # typical AIX shared libraries.
 
13651
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13652
    else
 
13653
      # We preserve .a as extension for shared libraries through AIX4.2
 
13654
      # and later when we are not doing run time linking.
 
13655
      library_names_spec='${libname}${release}.a $libname.a'
 
13656
      soname_spec='${libname}${release}${shared_ext}$major'
 
13657
    fi
 
13658
    shlibpath_var=LIBPATH
 
13659
  fi
 
13660
  ;;
 
13661
 
 
13662
amigaos*)
 
13663
  library_names_spec='$libname.ixlibrary $libname.a'
 
13664
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13665
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
13666
  ;;
 
13667
 
 
13668
beos*)
 
13669
  library_names_spec='${libname}${shared_ext}'
 
13670
  dynamic_linker="$host_os ld.so"
 
13671
  shlibpath_var=LIBRARY_PATH
 
13672
  ;;
 
13673
 
 
13674
bsdi4*)
 
13675
  version_type=linux
 
13676
  need_version=no
 
13677
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13678
  soname_spec='${libname}${release}${shared_ext}$major'
 
13679
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13680
  shlibpath_var=LD_LIBRARY_PATH
 
13681
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13682
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13683
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13684
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13685
  # libtool to hard-code these into programs
 
13686
  ;;
 
13687
 
 
13688
cygwin* | mingw* | pw32*)
 
13689
  version_type=windows
 
13690
  shrext=".dll"
 
13691
  need_version=no
 
13692
  need_lib_prefix=no
 
13693
 
 
13694
  case $GCC,$host_os in
 
13695
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13696
    library_names_spec='$libname.dll.a'
 
13697
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13698
    postinstall_cmds='base_file=`basename \${file}`~
 
13699
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13700
      dldir=$destdir/`dirname \$dlpath`~
 
13701
      test -d \$dldir || mkdir -p \$dldir~
 
13702
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13703
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13704
      dlpath=$dir/\$dldll~
 
13705
       $rm \$dlpath'
 
13706
    shlibpath_overrides_runpath=yes
 
13707
 
 
13708
    case $host_os in
 
13709
    cygwin*)
 
13710
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13711
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13712
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13713
      ;;
 
13714
    mingw*)
 
13715
      # MinGW DLLs use traditional 'lib' prefix
 
13716
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13717
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13718
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13719
        # It is most probably a Windows format PATH printed by
 
13720
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13721
        # path with ; separators, and with drive letters. We can handle the
 
13722
        # drive letters (cygwin fileutils understands them), so leave them,
 
13723
        # especially as we might pass files found there to a mingw objdump,
 
13724
        # which wouldn't understand a cygwinified path. Ahh.
 
13725
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13726
      else
 
13727
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13728
      fi
 
13729
      ;;
 
13730
    pw32*)
 
13731
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13732
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13733
      ;;
 
13734
    esac
 
13735
    ;;
 
13736
 
 
13737
  *)
 
13738
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13739
    ;;
 
13740
  esac
 
13741
  dynamic_linker='Win32 ld.exe'
 
13742
  # FIXME: first we should search . and the directory the executable is in
 
13743
  shlibpath_var=PATH
 
13744
  ;;
 
13745
 
 
13746
darwin* | rhapsody*)
 
13747
  dynamic_linker="$host_os dyld"
 
13748
  version_type=darwin
 
13749
  need_lib_prefix=no
 
13750
  need_version=no
 
13751
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13752
  soname_spec='${libname}${release}${major}$shared_ext'
 
13753
  shlibpath_overrides_runpath=yes
 
13754
  shlibpath_var=DYLD_LIBRARY_PATH
 
13755
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
13756
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
13757
  if test "$GCC" = yes; then
 
13758
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
13759
  else
 
13760
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
13761
  fi
 
13762
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13763
  ;;
 
13764
 
 
13765
dgux*)
 
13766
  version_type=linux
 
13767
  need_lib_prefix=no
 
13768
  need_version=no
 
13769
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13770
  soname_spec='${libname}${release}${shared_ext}$major'
 
13771
  shlibpath_var=LD_LIBRARY_PATH
 
13772
  ;;
 
13773
 
 
13774
freebsd1*)
 
13775
  dynamic_linker=no
 
13776
  ;;
 
13777
 
 
13778
freebsd*-gnu*)
 
13779
  version_type=linux
 
13780
  need_lib_prefix=no
 
13781
  need_version=no
 
13782
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13783
  soname_spec='${libname}${release}${shared_ext}$major'
 
13784
  shlibpath_var=LD_LIBRARY_PATH
 
13785
  shlibpath_overrides_runpath=no
 
13786
  hardcode_into_libs=yes
 
13787
  dynamic_linker='GNU ld.so'
 
13788
  ;;
 
13789
 
 
13790
freebsd*)
 
13791
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
13792
  version_type=freebsd-$objformat
 
13793
  case $version_type in
 
13794
    freebsd-elf*)
 
13795
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13796
      need_version=no
 
13797
      need_lib_prefix=no
 
13798
      ;;
 
13799
    freebsd-*)
 
13800
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13801
      need_version=yes
 
13802
      ;;
 
13803
  esac
 
13804
  shlibpath_var=LD_LIBRARY_PATH
 
13805
  case $host_os in
 
13806
  freebsd2*)
 
13807
    shlibpath_overrides_runpath=yes
 
13808
    ;;
 
13809
  freebsd3.01* | freebsdelf3.01*)
 
13810
    shlibpath_overrides_runpath=yes
 
13811
    hardcode_into_libs=yes
 
13812
    ;;
 
13813
  *) # from 3.2 on
 
13814
    shlibpath_overrides_runpath=no
 
13815
    hardcode_into_libs=yes
 
13816
    ;;
 
13817
  esac
 
13818
  ;;
 
13819
 
 
13820
gnu*)
 
13821
  version_type=linux
 
13822
  need_lib_prefix=no
 
13823
  need_version=no
 
13824
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13825
  soname_spec='${libname}${release}${shared_ext}$major'
 
13826
  shlibpath_var=LD_LIBRARY_PATH
 
13827
  hardcode_into_libs=yes
 
13828
  ;;
 
13829
 
 
13830
hpux9* | hpux10* | hpux11*)
 
13831
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13832
  # link against other versions.
 
13833
  version_type=sunos
 
13834
  need_lib_prefix=no
 
13835
  need_version=no
 
13836
  case "$host_cpu" in
 
13837
  ia64*)
 
13838
    shrext='.so'
 
13839
    hardcode_into_libs=yes
 
13840
    dynamic_linker="$host_os dld.so"
 
13841
    shlibpath_var=LD_LIBRARY_PATH
 
13842
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13843
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13844
    soname_spec='${libname}${release}${shared_ext}$major'
 
13845
    if test "X$HPUX_IA64_MODE" = X32; then
 
13846
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13847
    else
 
13848
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13849
    fi
 
13850
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13851
    ;;
 
13852
   hppa*64*)
 
13853
     shrext='.sl'
 
13854
     hardcode_into_libs=yes
 
13855
     dynamic_linker="$host_os dld.sl"
 
13856
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13857
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13858
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13859
     soname_spec='${libname}${release}${shared_ext}$major'
 
13860
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13861
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13862
     ;;
 
13863
   *)
 
13864
    shrext='.sl'
 
13865
    dynamic_linker="$host_os dld.sl"
 
13866
    shlibpath_var=SHLIB_PATH
 
13867
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13868
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13869
    soname_spec='${libname}${release}${shared_ext}$major'
 
13870
    ;;
 
13871
  esac
 
13872
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13873
  postinstall_cmds='chmod 555 $lib'
 
13874
  ;;
 
13875
 
 
13876
irix5* | irix6* | nonstopux*)
 
13877
  case $host_os in
 
13878
    nonstopux*) version_type=nonstopux ;;
 
13879
    *)
 
13880
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13881
                version_type=linux
 
13882
        else
 
13883
                version_type=irix
 
13884
        fi ;;
 
13885
  esac
 
13886
  need_lib_prefix=no
 
13887
  need_version=no
 
13888
  soname_spec='${libname}${release}${shared_ext}$major'
 
13889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13890
  case $host_os in
 
13891
  irix5* | nonstopux*)
 
13892
    libsuff= shlibsuff=
 
13893
    ;;
 
13894
  *)
 
13895
    case $LD in # libtool.m4 will add one of these switches to LD
 
13896
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13897
      libsuff= shlibsuff= libmagic=32-bit;;
 
13898
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13899
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13900
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13901
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13902
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13903
    esac
 
13904
    ;;
 
13905
  esac
 
13906
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13907
  shlibpath_overrides_runpath=no
 
13908
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13909
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13910
  hardcode_into_libs=yes
 
13911
  ;;
 
13912
 
 
13913
# No shared lib support for Linux oldld, aout, or coff.
 
13914
linux*oldld* | linux*aout* | linux*coff*)
 
13915
  dynamic_linker=no
 
13916
  ;;
 
13917
 
 
13918
# This must be Linux ELF.
 
13919
linux*)
 
13920
  version_type=linux
 
13921
  need_lib_prefix=no
 
13922
  need_version=no
 
13923
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13924
  soname_spec='${libname}${release}${shared_ext}$major'
 
13925
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13926
  libsuff=
 
13927
  if test "x$LINUX_64_MODE" = x64; then
 
13928
    # Some platforms are per default 64-bit, so there's no /lib64
 
13929
    if test -d /lib64; then
 
13930
      libsuff=64
 
13931
    fi
 
13932
  fi
 
13933
  shlibpath_var=LD_LIBRARY_PATH
 
13934
  shlibpath_overrides_runpath=no
 
13935
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
13936
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
13937
  # This implies no fast_install, which is unacceptable.
 
13938
  # Some rework will be needed to allow for fast_install
 
13939
  # before this can be enabled.
 
13940
  hardcode_into_libs=yes
 
13941
 
 
13942
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13943
  # powerpc, because MkLinux only supported shared libraries with the
 
13944
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13945
  # most powerpc-linux boxes support dynamic linking these days and
 
13946
  # people can always --disable-shared, the test was removed, and we
 
13947
  # assume the GNU/Linux dynamic linker is in use.
 
13948
  dynamic_linker='GNU/Linux ld.so'
 
13949
  ;;
 
13950
 
 
13951
netbsd*)
 
13952
  version_type=sunos
 
13953
  need_lib_prefix=no
 
13954
  need_version=no
 
13955
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13956
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13957
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13958
    dynamic_linker='NetBSD (a.out) ld.so'
 
13959
  else
 
13960
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
13961
    soname_spec='${libname}${release}${shared_ext}$major'
 
13962
    dynamic_linker='NetBSD ld.elf_so'
 
13963
  fi
 
13964
  shlibpath_var=LD_LIBRARY_PATH
 
13965
  shlibpath_overrides_runpath=yes
 
13966
  hardcode_into_libs=yes
 
13967
  ;;
 
13968
 
 
13969
newsos6)
 
13970
  version_type=linux
 
13971
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13972
  shlibpath_var=LD_LIBRARY_PATH
 
13973
  shlibpath_overrides_runpath=yes
 
13974
  ;;
 
13975
 
 
13976
nto-qnx*)
 
13977
  version_type=linux
 
13978
  need_lib_prefix=no
 
13979
  need_version=no
 
13980
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13981
  soname_spec='${libname}${release}${shared_ext}$major'
 
13982
  shlibpath_var=LD_LIBRARY_PATH
 
13983
  shlibpath_overrides_runpath=yes
 
13984
  ;;
 
13985
 
 
13986
openbsd*)
 
13987
  version_type=sunos
 
13988
  need_lib_prefix=no
 
13989
  need_version=no
 
13990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13991
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13992
  shlibpath_var=LD_LIBRARY_PATH
 
13993
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13994
    case $host_os in
 
13995
      openbsd2.[89] | openbsd2.[89].*)
 
13996
        shlibpath_overrides_runpath=no
 
13997
        ;;
 
13998
      *)
 
13999
        shlibpath_overrides_runpath=yes
 
14000
        ;;
 
14001
      esac
 
14002
  else
 
14003
    shlibpath_overrides_runpath=yes
 
14004
  fi
 
14005
  ;;
 
14006
 
 
14007
os2*)
 
14008
  libname_spec='$name'
 
14009
  shrext=".dll"
 
14010
  need_lib_prefix=no
 
14011
  library_names_spec='$libname${shared_ext} $libname.a'
 
14012
  dynamic_linker='OS/2 ld.exe'
 
14013
  shlibpath_var=LIBPATH
 
14014
  ;;
 
14015
 
 
14016
osf3* | osf4* | osf5*)
 
14017
  version_type=osf
 
14018
  need_lib_prefix=no
 
14019
  need_version=no
 
14020
  soname_spec='${libname}${release}${shared_ext}$major'
 
14021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14022
  shlibpath_var=LD_LIBRARY_PATH
 
14023
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14024
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14025
  ;;
 
14026
 
 
14027
sco3.2v5*)
 
14028
  version_type=osf
 
14029
  soname_spec='${libname}${release}${shared_ext}$major'
 
14030
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14031
  shlibpath_var=LD_LIBRARY_PATH
 
14032
  ;;
 
14033
 
 
14034
solaris*)
 
14035
  version_type=linux
 
14036
  need_lib_prefix=no
 
14037
  need_version=no
 
14038
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14039
  soname_spec='${libname}${release}${shared_ext}$major'
 
14040
  shlibpath_var=LD_LIBRARY_PATH
 
14041
  shlibpath_overrides_runpath=yes
 
14042
  hardcode_into_libs=yes
 
14043
  # ldd complains unless libraries are executable
 
14044
  postinstall_cmds='chmod +x $lib'
 
14045
  ;;
 
14046
 
 
14047
sunos4*)
 
14048
  version_type=sunos
 
14049
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14050
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14051
  shlibpath_var=LD_LIBRARY_PATH
 
14052
  shlibpath_overrides_runpath=yes
 
14053
  if test "$with_gnu_ld" = yes; then
 
14054
    need_lib_prefix=no
 
14055
  fi
 
14056
  need_version=yes
 
14057
  ;;
 
14058
 
 
14059
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14060
  version_type=linux
 
14061
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14062
  soname_spec='${libname}${release}${shared_ext}$major'
 
14063
  shlibpath_var=LD_LIBRARY_PATH
 
14064
  case $host_vendor in
 
14065
    sni)
 
14066
      shlibpath_overrides_runpath=no
 
14067
      need_lib_prefix=no
 
14068
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14069
      runpath_var=LD_RUN_PATH
 
14070
      ;;
 
14071
    siemens)
 
14072
      need_lib_prefix=no
 
14073
      ;;
 
14074
    motorola)
 
14075
      need_lib_prefix=no
 
14076
      need_version=no
 
14077
      shlibpath_overrides_runpath=no
 
14078
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14079
      ;;
 
14080
  esac
 
14081
  ;;
 
14082
 
 
14083
sysv4*MP*)
 
14084
  if test -d /usr/nec ;then
 
14085
    version_type=linux
 
14086
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14087
    soname_spec='$libname${shared_ext}.$major'
 
14088
    shlibpath_var=LD_LIBRARY_PATH
 
14089
  fi
 
14090
  ;;
 
14091
 
 
14092
uts4*)
 
14093
  version_type=linux
 
14094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14095
  soname_spec='${libname}${release}${shared_ext}$major'
 
14096
  shlibpath_var=LD_LIBRARY_PATH
 
14097
  ;;
 
14098
 
 
14099
*)
 
14100
  dynamic_linker=no
 
14101
  ;;
 
14102
esac
 
14103
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14104
echo "${ECHO_T}$dynamic_linker" >&6
 
14105
test "$dynamic_linker" = no && can_build_shared=no
11946
14106
 
11947
14107
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11948
14108
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11949
14109
hardcode_action_CXX=
11950
14110
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11951
 
   test -n "$runpath_var CXX"; then
 
14111
   test -n "$runpath_var CXX" || \
 
14112
   test "X$hardcode_automatic_CXX"="Xyes" ; then
11952
14113
 
11953
14114
  # We can hardcode non-existant directories.
11954
14115
  if test "$hardcode_direct_CXX" != no &&
11990
14151
  echo "$as_me:$LINENO: result: yes" >&5
11991
14152
echo "${ECHO_T}yes" >&6
11992
14153
else
11993
 
  echo "$as_me:$LINENO: result: no" >&5
11994
 
echo "${ECHO_T}no" >&6
11995
 
fi
11996
 
 
11997
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11998
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11999
 
library_names_spec=
12000
 
libname_spec='lib$name'
12001
 
soname_spec=
12002
 
postinstall_cmds=
12003
 
postuninstall_cmds=
12004
 
finish_cmds=
12005
 
finish_eval=
12006
 
shlibpath_var=
12007
 
shlibpath_overrides_runpath=unknown
12008
 
version_type=none
12009
 
dynamic_linker="$host_os ld.so"
12010
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12011
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12012
 
need_lib_prefix=unknown
12013
 
hardcode_into_libs=no
12014
 
 
12015
 
# when you set need_version to no, make sure it does not cause -set_version
12016
 
# flags to be left without arguments
12017
 
need_version=unknown
12018
 
 
12019
 
case $host_os in
12020
 
aix3*)
12021
 
  version_type=linux
12022
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
12023
 
  shlibpath_var=LIBPATH
12024
 
 
12025
 
  # AIX 3 has no versioning support, so we append a major version to the name.
12026
 
  soname_spec='${libname}${release}.so$major'
12027
 
  ;;
12028
 
 
12029
 
aix4* | aix5*)
12030
 
  version_type=linux
12031
 
  if test "$host_cpu" = ia64; then
12032
 
    # AIX 5 supports IA64
12033
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
12034
 
    shlibpath_var=LD_LIBRARY_PATH
12035
 
  else
12036
 
    # With GCC up to 2.95.x, collect2 would create an import file
12037
 
    # for dependence libraries.  The import file would start with
12038
 
    # the line `#! .'.  This would cause the generated library to
12039
 
    # depend on `.', always an invalid library.  This was fixed in
12040
 
    # development snapshots of GCC prior to 3.0.
12041
 
    case $host_os in
12042
 
      aix4 | aix4.[01] | aix4.[01].*)
12043
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12044
 
           echo ' yes '
12045
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12046
 
        :
12047
 
      else
12048
 
        can_build_shared=no
12049
 
      fi
12050
 
      ;;
12051
 
    esac
12052
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12053
 
    # soname into executable. Probably we can add versioning support to
12054
 
    # collect2, so additional links can be useful in future.
12055
 
    if test "$aix_use_runtimelinking" = yes; then
12056
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12057
 
      # instead of lib<name>.a to let people know that these are not
12058
 
      # typical AIX shared libraries.
12059
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12060
 
    else
12061
 
      # We preserve .a as extension for shared libraries through AIX4.2
12062
 
      # and later when we are not doing run time linking.
12063
 
      library_names_spec='${libname}${release}.a $libname.a'
12064
 
      soname_spec='${libname}${release}.so$major'
12065
 
    fi
12066
 
    shlibpath_var=LIBPATH
12067
 
  fi
12068
 
  ;;
12069
 
 
12070
 
amigaos*)
12071
 
  library_names_spec='$libname.ixlibrary $libname.a'
12072
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12073
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
12074
 
  ;;
12075
 
 
12076
 
beos*)
12077
 
  library_names_spec='${libname}.so'
12078
 
  dynamic_linker="$host_os ld.so"
12079
 
  shlibpath_var=LIBRARY_PATH
12080
 
  ;;
12081
 
 
12082
 
bsdi4*)
12083
 
  version_type=linux
12084
 
  need_version=no
12085
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12086
 
  soname_spec='${libname}${release}.so$major'
12087
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12088
 
  shlibpath_var=LD_LIBRARY_PATH
12089
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12090
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12091
 
  # the default ld.so.conf also contains /usr/contrib/lib and
12092
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12093
 
  # libtool to hard-code these into programs
12094
 
  ;;
12095
 
 
12096
 
cygwin* | mingw* | pw32*)
12097
 
  version_type=windows
12098
 
  need_version=no
12099
 
  need_lib_prefix=no
12100
 
  case $GCC,$host_os in
12101
 
  yes,cygwin*)
12102
 
    library_names_spec='$libname.dll.a'
12103
 
    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
12104
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
12105
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
12106
 
      dldir=$destdir/`dirname \$dlpath`~
12107
 
      test -d \$dldir || mkdir -p \$dldir~
12108
 
      $install_prog .libs/$dlname \$dldir/$dlname'
12109
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
12110
 
      dlpath=$dir/\$dldll~
12111
 
       $rm \$dlpath'
12112
 
    ;;
12113
 
  yes,mingw*)
12114
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
12115
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
12116
 
    if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
12117
 
      # It is most probably a Windows format PATH printed by
12118
 
      # mingw gcc, but we are running on Cygwin. Gcc prints its search
12119
 
      # path with ; separators, and with drive letters. We can handle the
12120
 
      # drive letters (cygwin fileutils understands them), so leave them,
12121
 
      # especially as we might pass files found there to a mingw objdump,
12122
 
      # which wouldn't understand a cygwinified path. Ahh.
12123
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
12124
 
    else
12125
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed  -e "s/$PATH_SEPARATOR/ /g"`
12126
 
    fi
12127
 
    ;;
12128
 
  yes,pw32*)
12129
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
12130
 
    ;;
12131
 
  *)
12132
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
12133
 
    ;;
12134
 
  esac
12135
 
  dynamic_linker='Win32 ld.exe'
12136
 
  # FIXME: first we should search . and the directory the executable is in
12137
 
  shlibpath_var=PATH
12138
 
  ;;
12139
 
 
12140
 
darwin* | rhapsody*)
12141
 
  dynamic_linker="$host_os dyld"
12142
 
  version_type=darwin
12143
 
  need_lib_prefix=no
12144
 
  need_version=no
12145
 
  # FIXME: Relying on posixy $() will cause problems for
12146
 
  #        cross-compilation, but unfortunately the echo tests do not
12147
 
  #        yet detect zsh echo's removal of \ escapes.
12148
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
12149
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
12150
 
  shlibpath_overrides_runpath=yes
12151
 
  shlibpath_var=DYLD_LIBRARY_PATH
12152
 
  ;;
12153
 
 
12154
 
dgux*)
12155
 
  version_type=linux
12156
 
  need_lib_prefix=no
12157
 
  need_version=no
12158
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12159
 
  soname_spec='${libname}${release}.so$major'
12160
 
  shlibpath_var=LD_LIBRARY_PATH
12161
 
  ;;
12162
 
 
12163
 
freebsd1*)
12164
 
  dynamic_linker=no
12165
 
  ;;
12166
 
 
12167
 
freebsd*)
12168
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12169
 
  version_type=freebsd-$objformat
12170
 
  case $version_type in
12171
 
    freebsd-elf*)
12172
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
12173
 
      need_version=no
12174
 
      need_lib_prefix=no
12175
 
      ;;
12176
 
    freebsd-*)
12177
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
12178
 
      need_version=yes
12179
 
      ;;
12180
 
  esac
12181
 
  shlibpath_var=LD_LIBRARY_PATH
12182
 
  case $host_os in
12183
 
  freebsd2*)
12184
 
    shlibpath_overrides_runpath=yes
12185
 
    ;;
12186
 
  freebsd3.01* | freebsdelf3.01*)
12187
 
    shlibpath_overrides_runpath=yes
12188
 
    hardcode_into_libs=yes
12189
 
    ;;
12190
 
  *) # from 3.2 on
12191
 
    shlibpath_overrides_runpath=no
12192
 
    hardcode_into_libs=yes
12193
 
    ;;
12194
 
  esac
12195
 
  ;;
12196
 
 
12197
 
gnu*)
12198
 
  version_type=linux
12199
 
  need_lib_prefix=no
12200
 
  need_version=no
12201
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
12202
 
  soname_spec='${libname}${release}.so$major'
12203
 
  shlibpath_var=LD_LIBRARY_PATH
12204
 
  hardcode_into_libs=yes
12205
 
  ;;
12206
 
 
12207
 
hpux9* | hpux10* | hpux11*)
12208
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
12209
 
  # link against other versions.
12210
 
  version_type=sunos
12211
 
  need_lib_prefix=no
12212
 
  need_version=no
12213
 
  if test "$host_cpu" = ia64; then
12214
 
    hardcode_into_libs=yes
12215
 
    dynamic_linker="$host_os dld.so"
12216
 
    shlibpath_var=LD_LIBRARY_PATH
12217
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12218
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12219
 
    soname_spec='${libname}${release}.so$major'
12220
 
    if test "X$HPUX_IA64_MODE" = X32; then
12221
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12222
 
    else
12223
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12224
 
    fi
12225
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12226
 
  else
12227
 
    dynamic_linker="$host_os dld.sl"
12228
 
    shlibpath_var=SHLIB_PATH
12229
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12230
 
    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
12231
 
    soname_spec='${libname}${release}.sl$major'
12232
 
  fi
12233
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12234
 
  postinstall_cmds='chmod 555 $lib'
12235
 
  ;;
12236
 
 
12237
 
irix5* | irix6* | nonstopux*)
12238
 
  case $host_os in
12239
 
    nonstopux*) version_type=nonstopux ;;
12240
 
    *)          version_type=irix ;;
12241
 
  esac
12242
 
  need_lib_prefix=no
12243
 
  need_version=no
12244
 
  soname_spec='${libname}${release}.so$major'
12245
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
12246
 
  case $host_os in
12247
 
  irix5* | nonstopux*)
12248
 
    libsuff= shlibsuff=
12249
 
    ;;
12250
 
  *)
12251
 
    case $LD in # libtool.m4 will add one of these switches to LD
12252
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
12253
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
12254
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
12255
 
    *) libsuff= shlibsuff= libmagic=never-match;;
12256
 
    esac
12257
 
    ;;
12258
 
  esac
12259
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12260
 
  shlibpath_overrides_runpath=no
12261
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12262
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12263
 
  ;;
12264
 
 
12265
 
# No shared lib support for Linux oldld, aout, or coff.
12266
 
linux*oldld* | linux*aout* | linux*coff*)
12267
 
  dynamic_linker=no
12268
 
  ;;
12269
 
 
12270
 
# This must be Linux ELF.
12271
 
linux*)
12272
 
  version_type=linux
12273
 
  need_lib_prefix=no
12274
 
  need_version=no
12275
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12276
 
  soname_spec='${libname}${release}.so$major'
12277
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12278
 
  libsuff=
12279
 
  if test "x$LINUX_64_MODE" = x64; then
12280
 
    # Some platforms are per default 64-bit, so there's no /lib64
12281
 
    if test -d /lib64; then
12282
 
      libsuff=64
12283
 
    fi
12284
 
  fi
12285
 
  shlibpath_var=LD_LIBRARY_PATH
12286
 
  shlibpath_overrides_runpath=no
12287
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
12288
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12289
 
  # This implies no fast_install, which is unacceptable.
12290
 
  # Some rework will be needed to allow for fast_install
12291
 
  # before this can be enabled.
12292
 
  hardcode_into_libs=yes
12293
 
 
12294
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12295
 
  # powerpc, because MkLinux only supported shared libraries with the
12296
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
12297
 
  # most powerpc-linux boxes support dynamic linking these days and
12298
 
  # people can always --disable-shared, the test was removed, and we
12299
 
  # assume the GNU/Linux dynamic linker is in use.
12300
 
  dynamic_linker='GNU/Linux ld.so'
12301
 
  ;;
12302
 
 
12303
 
netbsd*)
12304
 
  version_type=sunos
12305
 
  need_lib_prefix=no
12306
 
  need_version=no
12307
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12308
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12309
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12310
 
    dynamic_linker='NetBSD (a.out) ld.so'
12311
 
  else
12312
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
12313
 
    soname_spec='${libname}${release}.so$major'
12314
 
    dynamic_linker='NetBSD ld.elf_so'
12315
 
  fi
12316
 
  shlibpath_var=LD_LIBRARY_PATH
12317
 
  shlibpath_overrides_runpath=yes
12318
 
  hardcode_into_libs=yes
12319
 
  ;;
12320
 
 
12321
 
newsos6)
12322
 
  version_type=linux
12323
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12324
 
  shlibpath_var=LD_LIBRARY_PATH
12325
 
  shlibpath_overrides_runpath=yes
12326
 
  ;;
12327
 
 
12328
 
nto-qnx)
12329
 
  version_type=linux
12330
 
  need_lib_prefix=no
12331
 
  need_version=no
12332
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12333
 
  soname_spec='${libname}${release}.so$major'
12334
 
  shlibpath_var=LD_LIBRARY_PATH
12335
 
  shlibpath_overrides_runpath=yes
12336
 
  ;;
12337
 
 
12338
 
openbsd*)
12339
 
  version_type=sunos
12340
 
  need_lib_prefix=no
12341
 
  need_version=no
12342
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12343
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12344
 
  shlibpath_var=LD_LIBRARY_PATH
12345
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12346
 
    case $host_os in
12347
 
      openbsd2.[89] | openbsd2.[89].*)
12348
 
        shlibpath_overrides_runpath=no
12349
 
        ;;
12350
 
      *)
12351
 
        shlibpath_overrides_runpath=yes
12352
 
        ;;
12353
 
      esac
12354
 
  else
12355
 
    shlibpath_overrides_runpath=yes
12356
 
  fi
12357
 
  ;;
12358
 
 
12359
 
os2*)
12360
 
  libname_spec='$name'
12361
 
  need_lib_prefix=no
12362
 
  library_names_spec='$libname.dll $libname.a'
12363
 
  dynamic_linker='OS/2 ld.exe'
12364
 
  shlibpath_var=LIBPATH
12365
 
  ;;
12366
 
 
12367
 
osf3* | osf4* | osf5*)
12368
 
  version_type=osf
12369
 
  need_lib_prefix=no
12370
 
  need_version=no
12371
 
  soname_spec='${libname}${release}.so'
12372
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
12373
 
  shlibpath_var=LD_LIBRARY_PATH
12374
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12375
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12376
 
  ;;
12377
 
 
12378
 
sco3.2v5*)
12379
 
  version_type=osf
12380
 
  soname_spec='${libname}${release}.so$major'
12381
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12382
 
  shlibpath_var=LD_LIBRARY_PATH
12383
 
  ;;
12384
 
 
12385
 
solaris*)
12386
 
  version_type=linux
12387
 
  need_lib_prefix=no
12388
 
  need_version=no
12389
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12390
 
  soname_spec='${libname}${release}.so$major'
12391
 
  shlibpath_var=LD_LIBRARY_PATH
12392
 
  shlibpath_overrides_runpath=yes
12393
 
  hardcode_into_libs=yes
12394
 
  # ldd complains unless libraries are executable
12395
 
  postinstall_cmds='chmod +x $lib'
12396
 
  ;;
12397
 
 
12398
 
sunos4*)
12399
 
  version_type=sunos
12400
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12401
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12402
 
  shlibpath_var=LD_LIBRARY_PATH
12403
 
  shlibpath_overrides_runpath=yes
12404
 
  if test "$with_gnu_ld" = yes; then
12405
 
    need_lib_prefix=no
12406
 
  fi
12407
 
  need_version=yes
12408
 
  ;;
12409
 
 
12410
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12411
 
  version_type=linux
12412
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12413
 
  soname_spec='${libname}${release}.so$major'
12414
 
  shlibpath_var=LD_LIBRARY_PATH
12415
 
  case $host_vendor in
12416
 
    sni)
12417
 
      shlibpath_overrides_runpath=no
12418
 
      ;;
12419
 
    motorola)
12420
 
      need_lib_prefix=no
12421
 
      need_version=no
12422
 
      shlibpath_overrides_runpath=no
12423
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12424
 
      ;;
12425
 
  esac
12426
 
  ;;
12427
 
 
12428
 
sysv4*MP*)
12429
 
  if test -d /usr/nec ;then
12430
 
    version_type=linux
12431
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
12432
 
    soname_spec='$libname.so.$major'
12433
 
    shlibpath_var=LD_LIBRARY_PATH
12434
 
  fi
12435
 
  ;;
12436
 
 
12437
 
uts4*)
12438
 
  version_type=linux
12439
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12440
 
  soname_spec='${libname}${release}.so$major'
12441
 
  shlibpath_var=LD_LIBRARY_PATH
12442
 
  ;;
12443
 
 
12444
 
*)
12445
 
  dynamic_linker=no
12446
 
  ;;
12447
 
esac
12448
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12449
 
echo "${ECHO_T}$dynamic_linker" >&6
12450
 
test "$dynamic_linker" = no && can_build_shared=no
 
14154
# FIXME - insert some real tests, host_os isn't really good enough
 
14155
  case $host_os in
 
14156
   darwin*)
 
14157
       if test -n "$STRIP" ; then
 
14158
         striplib="$STRIP -x"
 
14159
         echo "$as_me:$LINENO: result: yes" >&5
 
14160
echo "${ECHO_T}yes" >&6
 
14161
       else
 
14162
  echo "$as_me:$LINENO: result: no" >&5
 
14163
echo "${ECHO_T}no" >&6
 
14164
fi
 
14165
       ;;
 
14166
   *)
 
14167
  echo "$as_me:$LINENO: result: no" >&5
 
14168
echo "${ECHO_T}no" >&6
 
14169
    ;;
 
14170
  esac
 
14171
fi
12451
14172
 
12452
14173
if test "x$enable_dlopen" != xyes; then
12453
14174
  enable_dlopen=unknown
12464
14185
    lt_cv_dlopen_self=yes
12465
14186
    ;;
12466
14187
 
12467
 
  cygwin* | mingw* | pw32*)
 
14188
  mingw* | pw32*)
12468
14189
    lt_cv_dlopen="LoadLibrary"
12469
14190
    lt_cv_dlopen_libs=
12470
14191
   ;;
12471
14192
 
 
14193
  cygwin*)
 
14194
    lt_cv_dlopen="dlopen"
 
14195
    lt_cv_dlopen_libs=
 
14196
   ;;
 
14197
 
 
14198
  darwin*)
 
14199
  # if libdl is installed we need to link against it
 
14200
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14201
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14202
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14203
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14204
else
 
14205
  ac_check_lib_save_LIBS=$LIBS
 
14206
LIBS="-ldl  $LIBS"
 
14207
cat >conftest.$ac_ext <<_ACEOF
 
14208
/* confdefs.h.  */
 
14209
_ACEOF
 
14210
cat confdefs.h >>conftest.$ac_ext
 
14211
cat >>conftest.$ac_ext <<_ACEOF
 
14212
/* end confdefs.h.  */
 
14213
 
 
14214
/* Override any gcc2 internal prototype to avoid an error.  */
 
14215
#ifdef __cplusplus
 
14216
extern "C"
 
14217
#endif
 
14218
/* We use char because int might match the return type of a gcc2
 
14219
   builtin and then its argument prototype would still apply.  */
 
14220
char dlopen ();
 
14221
int
 
14222
main ()
 
14223
{
 
14224
dlopen ();
 
14225
  ;
 
14226
  return 0;
 
14227
}
 
14228
_ACEOF
 
14229
rm -f conftest.$ac_objext conftest$ac_exeext
 
14230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14231
  (eval $ac_link) 2>conftest.er1
 
14232
  ac_status=$?
 
14233
  grep -v '^ *+' conftest.er1 >conftest.err
 
14234
  rm -f conftest.er1
 
14235
  cat conftest.err >&5
 
14236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14237
  (exit $ac_status); } &&
 
14238
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14240
  (eval $ac_try) 2>&5
 
14241
  ac_status=$?
 
14242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14243
  (exit $ac_status); }; } &&
 
14244
         { ac_try='test -s conftest$ac_exeext'
 
14245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14246
  (eval $ac_try) 2>&5
 
14247
  ac_status=$?
 
14248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14249
  (exit $ac_status); }; }; then
 
14250
  ac_cv_lib_dl_dlopen=yes
 
14251
else
 
14252
  echo "$as_me: failed program was:" >&5
 
14253
sed 's/^/| /' conftest.$ac_ext >&5
 
14254
 
 
14255
ac_cv_lib_dl_dlopen=no
 
14256
fi
 
14257
rm -f conftest.err conftest.$ac_objext \
 
14258
      conftest$ac_exeext conftest.$ac_ext
 
14259
LIBS=$ac_check_lib_save_LIBS
 
14260
fi
 
14261
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14262
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14263
if test $ac_cv_lib_dl_dlopen = yes; then
 
14264
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14265
else
 
14266
 
 
14267
    lt_cv_dlopen="dyld"
 
14268
    lt_cv_dlopen_libs=
 
14269
    lt_cv_dlopen_self=yes
 
14270
 
 
14271
fi
 
14272
 
 
14273
   ;;
 
14274
 
12472
14275
  *)
12473
14276
    echo "$as_me:$LINENO: checking for shl_load" >&5
12474
14277
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12476
14279
  echo $ECHO_N "(cached) $ECHO_C" >&6
12477
14280
else
12478
14281
  cat >conftest.$ac_ext <<_ACEOF
12479
 
#line $LINENO "configure"
12480
14282
/* confdefs.h.  */
12481
14283
_ACEOF
12482
14284
cat confdefs.h >>conftest.$ac_ext
12483
14285
cat >>conftest.$ac_ext <<_ACEOF
12484
14286
/* end confdefs.h.  */
 
14287
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
14288
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14289
#define shl_load innocuous_shl_load
 
14290
 
12485
14291
/* System header to define __stub macros and hopefully few prototypes,
12486
14292
    which can conflict with char shl_load (); below.
12487
14293
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12488
14294
    <limits.h> exists even on freestanding compilers.  */
 
14295
 
12489
14296
#ifdef __STDC__
12490
14297
# include <limits.h>
12491
14298
#else
12492
14299
# include <assert.h>
12493
14300
#endif
 
14301
 
 
14302
#undef shl_load
 
14303
 
12494
14304
/* Override any gcc2 internal prototype to avoid an error.  */
12495
14305
#ifdef __cplusplus
12496
14306
extern "C"
12521
14331
_ACEOF
12522
14332
rm -f conftest.$ac_objext conftest$ac_exeext
12523
14333
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12524
 
  (eval $ac_link) 2>&5
 
14334
  (eval $ac_link) 2>conftest.er1
12525
14335
  ac_status=$?
 
14336
  grep -v '^ *+' conftest.er1 >conftest.err
 
14337
  rm -f conftest.er1
 
14338
  cat conftest.err >&5
12526
14339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527
14340
  (exit $ac_status); } &&
12528
 
         { ac_try='test -s conftest$ac_exeext'
 
14341
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14343
  (eval $ac_try) 2>&5
 
14344
  ac_status=$?
 
14345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14346
  (exit $ac_status); }; } &&
 
14347
         { ac_try='test -s conftest$ac_exeext'
12529
14348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530
14349
  (eval $ac_try) 2>&5
12531
14350
  ac_status=$?
12538
14357
 
12539
14358
ac_cv_func_shl_load=no
12540
14359
fi
12541
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14360
rm -f conftest.err conftest.$ac_objext \
 
14361
      conftest$ac_exeext conftest.$ac_ext
12542
14362
fi
12543
14363
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12544
14364
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12553
14373
  ac_check_lib_save_LIBS=$LIBS
12554
14374
LIBS="-ldld  $LIBS"
12555
14375
cat >conftest.$ac_ext <<_ACEOF
12556
 
#line $LINENO "configure"
12557
14376
/* confdefs.h.  */
12558
14377
_ACEOF
12559
14378
cat confdefs.h >>conftest.$ac_ext
12577
14396
_ACEOF
12578
14397
rm -f conftest.$ac_objext conftest$ac_exeext
12579
14398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12580
 
  (eval $ac_link) 2>&5
 
14399
  (eval $ac_link) 2>conftest.er1
12581
14400
  ac_status=$?
 
14401
  grep -v '^ *+' conftest.er1 >conftest.err
 
14402
  rm -f conftest.er1
 
14403
  cat conftest.err >&5
12582
14404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583
14405
  (exit $ac_status); } &&
12584
 
         { ac_try='test -s conftest$ac_exeext'
 
14406
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14408
  (eval $ac_try) 2>&5
 
14409
  ac_status=$?
 
14410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14411
  (exit $ac_status); }; } &&
 
14412
         { ac_try='test -s conftest$ac_exeext'
12585
14413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586
14414
  (eval $ac_try) 2>&5
12587
14415
  ac_status=$?
12594
14422
 
12595
14423
ac_cv_lib_dld_shl_load=no
12596
14424
fi
12597
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14425
rm -f conftest.err conftest.$ac_objext \
 
14426
      conftest$ac_exeext conftest.$ac_ext
12598
14427
LIBS=$ac_check_lib_save_LIBS
12599
14428
fi
12600
14429
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12608
14437
  echo $ECHO_N "(cached) $ECHO_C" >&6
12609
14438
else
12610
14439
  cat >conftest.$ac_ext <<_ACEOF
12611
 
#line $LINENO "configure"
12612
14440
/* confdefs.h.  */
12613
14441
_ACEOF
12614
14442
cat confdefs.h >>conftest.$ac_ext
12615
14443
cat >>conftest.$ac_ext <<_ACEOF
12616
14444
/* end confdefs.h.  */
 
14445
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
14446
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14447
#define dlopen innocuous_dlopen
 
14448
 
12617
14449
/* System header to define __stub macros and hopefully few prototypes,
12618
14450
    which can conflict with char dlopen (); below.
12619
14451
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12620
14452
    <limits.h> exists even on freestanding compilers.  */
 
14453
 
12621
14454
#ifdef __STDC__
12622
14455
# include <limits.h>
12623
14456
#else
12624
14457
# include <assert.h>
12625
14458
#endif
 
14459
 
 
14460
#undef dlopen
 
14461
 
12626
14462
/* Override any gcc2 internal prototype to avoid an error.  */
12627
14463
#ifdef __cplusplus
12628
14464
extern "C"
12653
14489
_ACEOF
12654
14490
rm -f conftest.$ac_objext conftest$ac_exeext
12655
14491
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12656
 
  (eval $ac_link) 2>&5
 
14492
  (eval $ac_link) 2>conftest.er1
12657
14493
  ac_status=$?
 
14494
  grep -v '^ *+' conftest.er1 >conftest.err
 
14495
  rm -f conftest.er1
 
14496
  cat conftest.err >&5
12658
14497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659
14498
  (exit $ac_status); } &&
12660
 
         { ac_try='test -s conftest$ac_exeext'
 
14499
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14501
  (eval $ac_try) 2>&5
 
14502
  ac_status=$?
 
14503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14504
  (exit $ac_status); }; } &&
 
14505
         { ac_try='test -s conftest$ac_exeext'
12661
14506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662
14507
  (eval $ac_try) 2>&5
12663
14508
  ac_status=$?
12670
14515
 
12671
14516
ac_cv_func_dlopen=no
12672
14517
fi
12673
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14518
rm -f conftest.err conftest.$ac_objext \
 
14519
      conftest$ac_exeext conftest.$ac_ext
12674
14520
fi
12675
14521
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12676
14522
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12685
14531
  ac_check_lib_save_LIBS=$LIBS
12686
14532
LIBS="-ldl  $LIBS"
12687
14533
cat >conftest.$ac_ext <<_ACEOF
12688
 
#line $LINENO "configure"
12689
14534
/* confdefs.h.  */
12690
14535
_ACEOF
12691
14536
cat confdefs.h >>conftest.$ac_ext
12709
14554
_ACEOF
12710
14555
rm -f conftest.$ac_objext conftest$ac_exeext
12711
14556
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12712
 
  (eval $ac_link) 2>&5
 
14557
  (eval $ac_link) 2>conftest.er1
12713
14558
  ac_status=$?
 
14559
  grep -v '^ *+' conftest.er1 >conftest.err
 
14560
  rm -f conftest.er1
 
14561
  cat conftest.err >&5
12714
14562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715
14563
  (exit $ac_status); } &&
12716
 
         { ac_try='test -s conftest$ac_exeext'
 
14564
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14566
  (eval $ac_try) 2>&5
 
14567
  ac_status=$?
 
14568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14569
  (exit $ac_status); }; } &&
 
14570
         { ac_try='test -s conftest$ac_exeext'
12717
14571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718
14572
  (eval $ac_try) 2>&5
12719
14573
  ac_status=$?
12726
14580
 
12727
14581
ac_cv_lib_dl_dlopen=no
12728
14582
fi
12729
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14583
rm -f conftest.err conftest.$ac_objext \
 
14584
      conftest$ac_exeext conftest.$ac_ext
12730
14585
LIBS=$ac_check_lib_save_LIBS
12731
14586
fi
12732
14587
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12742
14597
  ac_check_lib_save_LIBS=$LIBS
12743
14598
LIBS="-lsvld  $LIBS"
12744
14599
cat >conftest.$ac_ext <<_ACEOF
12745
 
#line $LINENO "configure"
12746
14600
/* confdefs.h.  */
12747
14601
_ACEOF
12748
14602
cat confdefs.h >>conftest.$ac_ext
12766
14620
_ACEOF
12767
14621
rm -f conftest.$ac_objext conftest$ac_exeext
12768
14622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12769
 
  (eval $ac_link) 2>&5
 
14623
  (eval $ac_link) 2>conftest.er1
12770
14624
  ac_status=$?
 
14625
  grep -v '^ *+' conftest.er1 >conftest.err
 
14626
  rm -f conftest.er1
 
14627
  cat conftest.err >&5
12771
14628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772
14629
  (exit $ac_status); } &&
12773
 
         { ac_try='test -s conftest$ac_exeext'
 
14630
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14632
  (eval $ac_try) 2>&5
 
14633
  ac_status=$?
 
14634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14635
  (exit $ac_status); }; } &&
 
14636
         { ac_try='test -s conftest$ac_exeext'
12774
14637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775
14638
  (eval $ac_try) 2>&5
12776
14639
  ac_status=$?
12783
14646
 
12784
14647
ac_cv_lib_svld_dlopen=no
12785
14648
fi
12786
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14649
rm -f conftest.err conftest.$ac_objext \
 
14650
      conftest$ac_exeext conftest.$ac_ext
12787
14651
LIBS=$ac_check_lib_save_LIBS
12788
14652
fi
12789
14653
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12799
14663
  ac_check_lib_save_LIBS=$LIBS
12800
14664
LIBS="-ldld  $LIBS"
12801
14665
cat >conftest.$ac_ext <<_ACEOF
12802
 
#line $LINENO "configure"
12803
14666
/* confdefs.h.  */
12804
14667
_ACEOF
12805
14668
cat confdefs.h >>conftest.$ac_ext
12823
14686
_ACEOF
12824
14687
rm -f conftest.$ac_objext conftest$ac_exeext
12825
14688
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12826
 
  (eval $ac_link) 2>&5
 
14689
  (eval $ac_link) 2>conftest.er1
12827
14690
  ac_status=$?
 
14691
  grep -v '^ *+' conftest.er1 >conftest.err
 
14692
  rm -f conftest.er1
 
14693
  cat conftest.err >&5
12828
14694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829
14695
  (exit $ac_status); } &&
12830
 
         { ac_try='test -s conftest$ac_exeext'
 
14696
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14698
  (eval $ac_try) 2>&5
 
14699
  ac_status=$?
 
14700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14701
  (exit $ac_status); }; } &&
 
14702
         { ac_try='test -s conftest$ac_exeext'
12831
14703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832
14704
  (eval $ac_try) 2>&5
12833
14705
  ac_status=$?
12840
14712
 
12841
14713
ac_cv_lib_dld_dld_link=no
12842
14714
fi
12843
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
14715
rm -f conftest.err conftest.$ac_objext \
 
14716
      conftest$ac_exeext conftest.$ac_ext
12844
14717
LIBS=$ac_check_lib_save_LIBS
12845
14718
fi
12846
14719
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12895
14768
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12896
14769
  lt_status=$lt_dlunknown
12897
14770
  cat > conftest.$ac_ext <<EOF
12898
 
#line 12898 "configure"
 
14771
#line 14771 "configure"
12899
14772
#include "confdefs.h"
12900
14773
 
12901
14774
#if HAVE_DLFCN_H
12993
14866
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12994
14867
  lt_status=$lt_dlunknown
12995
14868
  cat > conftest.$ac_ext <<EOF
12996
 
#line 12996 "configure"
 
14869
#line 14869 "configure"
12997
14870
#include "confdefs.h"
12998
14871
 
12999
14872
#if HAVE_DLFCN_H
13102
14975
# with your package, and you will get complaints that there are
13103
14976
# no rules to generate ltmain.sh.
13104
14977
if test -f "$ltmain"; then
 
14978
  # See if we are running on zsh, and set the options which allow our commands through
 
14979
  # without removal of \ escapes.
 
14980
  if test -n "${ZSH_VERSION+set}" ; then
 
14981
    setopt NO_GLOB_SUBST
 
14982
  fi
13105
14983
  # Now quote all the things that may contain metacharacters while being
13106
14984
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13107
14985
  # variables and quote the copies for generation of the libtool script.
13108
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
 
14986
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13109
14987
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13110
14988
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13111
14989
    deplibs_check_method reload_flag reload_cmds need_locks \
13123
15001
    export_dynamic_flag_spec_CXX \
13124
15002
    thread_safe_flag_spec_CXX \
13125
15003
    whole_archive_flag_spec_CXX \
 
15004
    enable_shared_with_static_runtimes_CXX \
13126
15005
    old_archive_cmds_CXX \
13127
15006
    old_archive_from_new_cmds_CXX \
13128
15007
    predep_objects_CXX \
13139
15018
    no_undefined_flag_CXX \
13140
15019
    export_symbols_cmds_CXX \
13141
15020
    hardcode_libdir_flag_spec_CXX \
 
15021
    hardcode_libdir_flag_spec_ld_CXX \
13142
15022
    hardcode_libdir_separator_CXX \
 
15023
    hardcode_automatic_CXX \
 
15024
    module_cmds_CXX \
 
15025
    module_expsym_cmds_CXX \
13143
15026
    lt_cv_prog_compiler_c_o_CXX \
13144
15027
    exclude_expsyms_CXX \
13145
15028
    include_expsyms_CXX; do
13149
15032
    old_archive_from_new_cmds_CXX | \
13150
15033
    archive_cmds_CXX | \
13151
15034
    archive_expsym_cmds_CXX | \
 
15035
    module_cmds_CXX | \
 
15036
    module_expsym_cmds_CXX | \
13152
15037
    old_archive_from_expsyms_cmds_CXX | \
13153
15038
    export_symbols_cmds_CXX | \
13154
15039
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13189
15074
# Whether or not to add -lc for building shared libraries.
13190
15075
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13191
15076
 
 
15077
# Whether or not to disallow shared libs when runtime libs are static
 
15078
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
15079
 
13192
15080
# Whether or not to optimize for fast installation.
13193
15081
fast_install=$enable_fast_install
13194
15082
 
13212
15100
# Is the compiler the GNU C compiler?
13213
15101
with_gcc=$GCC_CXX
13214
15102
 
 
15103
# An ERE matcher.
 
15104
EGREP=$lt_EGREP
 
15105
 
13215
15106
# The linker used to build libraries.
13216
15107
LD=$lt_LD_CXX
13217
15108
 
13221
15112
# A BSD-compatible nm program.
13222
15113
NM=$lt_NM
13223
15114
 
13224
 
# A sed program that does not truncate output.
13225
 
SED=$lt_SED
13226
 
 
13227
15115
# A symbol stripping program
13228
15116
STRIP=$STRIP
13229
15117
 
13255
15143
# Old archive suffix (normally "a").
13256
15144
libext="$libext"
13257
15145
 
 
15146
# Shared library suffix (normally ".so").
 
15147
shrext='$shrext'
 
15148
 
13258
15149
# Executable file suffix (normally "").
13259
15150
exeext="$exeext"
13260
15151
 
13332
15223
postinstall_cmds=$lt_postinstall_cmds
13333
15224
postuninstall_cmds=$lt_postuninstall_cmds
13334
15225
 
 
15226
# Commands used to build a loadable module (assumed same as above if empty)
 
15227
module_cmds=$lt_module_cmds_CXX
 
15228
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
15229
 
13335
15230
# Commands to strip libraries.
13336
15231
old_striplib=$lt_old_striplib
13337
15232
striplib=$lt_striplib
13402
15297
# This must work even if \$libdir does not exist.
13403
15298
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13404
15299
 
 
15300
# If ld is used when linking, flag to hardcode \$libdir into
 
15301
# a binary during linking. This must work even if \$libdir does
 
15302
# not exist.
 
15303
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
15304
 
13405
15305
# Whether we need a single -rpath flag with a separated argument.
13406
15306
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13407
15307
 
13408
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
15308
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13409
15309
# resulting binary.
13410
15310
hardcode_direct=$hardcode_direct_CXX
13411
15311
 
13417
15317
# the resulting binary.
13418
15318
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13419
15319
 
 
15320
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15321
# and all subsequent libraries and executables linked against it.
 
15322
hardcode_automatic=$hardcode_automatic_CXX
 
15323
 
13420
15324
# Variables whose values should be saved in libtool wrapper scripts and
13421
15325
# restored at relink time.
13422
15326
variables_saved_for_relink="$variables_saved_for_relink"
13467
15371
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13468
15372
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13469
15373
 
 
15374
CC=$lt_save_CC
 
15375
LDCXX=$LD
 
15376
LD=$lt_save_LD
 
15377
GCC=$lt_save_GCC
 
15378
with_gnu_ldcxx=$with_gnu_ld
 
15379
with_gnu_ld=$lt_save_with_gnu_ld
 
15380
lt_cv_path_LDCXX=$lt_cv_path_LD
 
15381
lt_cv_path_LD=$lt_save_path_LD
 
15382
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15383
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15384
 
 
15385
        else
 
15386
          tagname=""
 
15387
        fi
 
15388
        ;;
 
15389
 
 
15390
      F77)
 
15391
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
15392
 
 
15393
ac_ext=f
 
15394
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
15395
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15396
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
15397
 
 
15398
 
 
15399
archive_cmds_need_lc_F77=no
 
15400
allow_undefined_flag_F77=
 
15401
always_export_symbols_F77=no
 
15402
archive_expsym_cmds_F77=
 
15403
export_dynamic_flag_spec_F77=
 
15404
hardcode_direct_F77=no
 
15405
hardcode_libdir_flag_spec_F77=
 
15406
hardcode_libdir_flag_spec_ld_F77=
 
15407
hardcode_libdir_separator_F77=
 
15408
hardcode_minus_L_F77=no
 
15409
hardcode_automatic_F77=no
 
15410
module_cmds_F77=
 
15411
module_expsym_cmds_F77=
 
15412
link_all_deplibs_F77=unknown
 
15413
old_archive_cmds_F77=$old_archive_cmds
 
15414
no_undefined_flag_F77=
 
15415
whole_archive_flag_spec_F77=
 
15416
enable_shared_with_static_runtimes_F77=no
 
15417
 
 
15418
# Source file extension for f77 test sources.
 
15419
ac_ext=f
 
15420
 
 
15421
# Object file extension for compiled f77 test sources.
 
15422
objext=o
 
15423
objext_F77=$objext
 
15424
 
 
15425
# Code to be used in simple compile tests
 
15426
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
15427
 
 
15428
# Code to be used in simple link tests
 
15429
lt_simple_link_test_code="      program t\n      end\n"
 
15430
 
 
15431
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15432
 
 
15433
# If no C compiler was specified, use CC.
 
15434
LTCC=${LTCC-"$CC"}
 
15435
 
 
15436
# Allow CC to be a program name with arguments.
 
15437
compiler=$CC
 
15438
 
 
15439
 
 
15440
# Allow CC to be a program name with arguments.
 
15441
lt_save_CC="$CC"
 
15442
CC=${F77-"f77"}
 
15443
compiler=$CC
 
15444
compiler_F77=$CC
 
15445
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
15446
 
 
15447
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
15448
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
15449
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
15450
echo "${ECHO_T}$can_build_shared" >&6
 
15451
 
 
15452
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
15453
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
15454
test "$can_build_shared" = "no" && enable_shared=no
 
15455
 
 
15456
# On AIX, shared libraries and static libraries use the same namespace, and
 
15457
# are all built from PIC.
 
15458
case "$host_os" in
 
15459
aix3*)
 
15460
  test "$enable_shared" = yes && enable_static=no
 
15461
  if test -n "$RANLIB"; then
 
15462
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
15463
    postinstall_cmds='$RANLIB $lib'
 
15464
  fi
 
15465
  ;;
 
15466
aix4*)
 
15467
  test "$enable_shared" = yes && enable_static=no
 
15468
  ;;
 
15469
esac
 
15470
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
15471
echo "${ECHO_T}$enable_shared" >&6
 
15472
 
 
15473
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
15474
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
15475
# Make sure either enable_shared or enable_static is yes.
 
15476
test "$enable_shared" = yes || enable_static=yes
 
15477
echo "$as_me:$LINENO: result: $enable_static" >&5
 
15478
echo "${ECHO_T}$enable_static" >&6
 
15479
 
 
15480
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15481
 
 
15482
GCC_F77="$G77"
 
15483
LD_F77="$LD"
 
15484
 
 
15485
lt_prog_compiler_wl_F77=
 
15486
lt_prog_compiler_pic_F77=
 
15487
lt_prog_compiler_static_F77=
 
15488
 
 
15489
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15490
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15491
 
 
15492
  if test "$GCC" = yes; then
 
15493
    lt_prog_compiler_wl_F77='-Wl,'
 
15494
    lt_prog_compiler_static_F77='-static'
 
15495
 
 
15496
    case $host_os in
 
15497
      aix*)
 
15498
      # All AIX code is PIC.
 
15499
      if test "$host_cpu" = ia64; then
 
15500
        # AIX 5 now supports IA64 processor
 
15501
        lt_prog_compiler_static_F77='-Bstatic'
 
15502
      fi
 
15503
      ;;
 
15504
 
 
15505
    amigaos*)
 
15506
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15507
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15508
      # like `-m68040'.
 
15509
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
15510
      ;;
 
15511
 
 
15512
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15513
      # PIC is the default for these OSes.
 
15514
      ;;
 
15515
 
 
15516
    mingw* | pw32* | os2*)
 
15517
      # This hack is so that the source file can tell whether it is being
 
15518
      # built for inclusion in a dll (and should export symbols for example).
 
15519
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15520
      ;;
 
15521
 
 
15522
    darwin* | rhapsody*)
 
15523
      # PIC is the default on this platform
 
15524
      # Common symbols not allowed in MH_DYLIB files
 
15525
      lt_prog_compiler_pic_F77='-fno-common'
 
15526
      ;;
 
15527
 
 
15528
    msdosdjgpp*)
 
15529
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15530
      # on systems that don't support them.
 
15531
      lt_prog_compiler_can_build_shared_F77=no
 
15532
      enable_shared=no
 
15533
      ;;
 
15534
 
 
15535
    sysv4*MP*)
 
15536
      if test -d /usr/nec; then
 
15537
        lt_prog_compiler_pic_F77=-Kconform_pic
 
15538
      fi
 
15539
      ;;
 
15540
 
 
15541
    hpux*)
 
15542
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15543
      # not for PA HP-UX.
 
15544
      case "$host_cpu" in
 
15545
      hppa*64*|ia64*)
 
15546
        # +Z the default
 
15547
        ;;
 
15548
      *)
 
15549
        lt_prog_compiler_pic_F77='-fPIC'
 
15550
        ;;
 
15551
      esac
 
15552
      ;;
 
15553
 
 
15554
    *)
 
15555
      lt_prog_compiler_pic_F77='-fPIC'
 
15556
      ;;
 
15557
    esac
 
15558
  else
 
15559
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15560
    case $host_os in
 
15561
    aix*)
 
15562
      lt_prog_compiler_wl_F77='-Wl,'
 
15563
      if test "$host_cpu" = ia64; then
 
15564
        # AIX 5 now supports IA64 processor
 
15565
        lt_prog_compiler_static_F77='-Bstatic'
 
15566
      else
 
15567
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
15568
      fi
 
15569
      ;;
 
15570
 
 
15571
    mingw* | pw32* | os2*)
 
15572
      # This hack is so that the source file can tell whether it is being
 
15573
      # built for inclusion in a dll (and should export symbols for example).
 
15574
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15575
      ;;
 
15576
 
 
15577
    hpux9* | hpux10* | hpux11*)
 
15578
      lt_prog_compiler_wl_F77='-Wl,'
 
15579
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15580
      # not for PA HP-UX.
 
15581
      case "$host_cpu" in
 
15582
      hppa*64*|ia64*)
 
15583
        # +Z the default
 
15584
        ;;
 
15585
      *)
 
15586
        lt_prog_compiler_pic_F77='+Z'
 
15587
        ;;
 
15588
      esac
 
15589
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15590
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
15591
      ;;
 
15592
 
 
15593
    irix5* | irix6* | nonstopux*)
 
15594
      lt_prog_compiler_wl_F77='-Wl,'
 
15595
      # PIC (with -KPIC) is the default.
 
15596
      lt_prog_compiler_static_F77='-non_shared'
 
15597
      ;;
 
15598
 
 
15599
    newsos6)
 
15600
      lt_prog_compiler_pic_F77='-KPIC'
 
15601
      lt_prog_compiler_static_F77='-Bstatic'
 
15602
      ;;
 
15603
 
 
15604
    linux*)
 
15605
      case $CC in
 
15606
      icc* | ecc*)
 
15607
        lt_prog_compiler_wl_F77='-Wl,'
 
15608
        lt_prog_compiler_pic_F77='-KPIC'
 
15609
        lt_prog_compiler_static_F77='-static'
 
15610
        ;;
 
15611
      ccc*)
 
15612
        lt_prog_compiler_wl_F77='-Wl,'
 
15613
        # All Alpha code is PIC.
 
15614
        lt_prog_compiler_static_F77='-non_shared'
 
15615
        ;;
 
15616
      esac
 
15617
      ;;
 
15618
 
 
15619
    osf3* | osf4* | osf5*)
 
15620
      lt_prog_compiler_wl_F77='-Wl,'
 
15621
      # All OSF/1 code is PIC.
 
15622
      lt_prog_compiler_static_F77='-non_shared'
 
15623
      ;;
 
15624
 
 
15625
    sco3.2v5*)
 
15626
      lt_prog_compiler_pic_F77='-Kpic'
 
15627
      lt_prog_compiler_static_F77='-dn'
 
15628
      ;;
 
15629
 
 
15630
    solaris*)
 
15631
      lt_prog_compiler_wl_F77='-Wl,'
 
15632
      lt_prog_compiler_pic_F77='-KPIC'
 
15633
      lt_prog_compiler_static_F77='-Bstatic'
 
15634
      ;;
 
15635
 
 
15636
    sunos4*)
 
15637
      lt_prog_compiler_wl_F77='-Qoption ld '
 
15638
      lt_prog_compiler_pic_F77='-PIC'
 
15639
      lt_prog_compiler_static_F77='-Bstatic'
 
15640
      ;;
 
15641
 
 
15642
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15643
      lt_prog_compiler_wl_F77='-Wl,'
 
15644
      lt_prog_compiler_pic_F77='-KPIC'
 
15645
      lt_prog_compiler_static_F77='-Bstatic'
 
15646
      ;;
 
15647
 
 
15648
    sysv4*MP*)
 
15649
      if test -d /usr/nec ;then
 
15650
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
15651
        lt_prog_compiler_static_F77='-Bstatic'
 
15652
      fi
 
15653
      ;;
 
15654
 
 
15655
    uts4*)
 
15656
      lt_prog_compiler_pic_F77='-pic'
 
15657
      lt_prog_compiler_static_F77='-Bstatic'
 
15658
      ;;
 
15659
 
 
15660
    *)
 
15661
      lt_prog_compiler_can_build_shared_F77=no
 
15662
      ;;
 
15663
    esac
 
15664
  fi
 
15665
 
 
15666
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
15667
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
15668
 
 
15669
#
 
15670
# Check to make sure the PIC flag actually works.
 
15671
#
 
15672
if test -n "$lt_prog_compiler_pic_F77"; then
 
15673
 
 
15674
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
15675
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
15676
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
15677
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15678
else
 
15679
  lt_prog_compiler_pic_works_F77=no
 
15680
  ac_outfile=conftest.$ac_objext
 
15681
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15682
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
15683
   # Insert the option either (1) after the last *FLAGS variable, or
 
15684
   # (2) before a word containing "conftest.", or (3) at the end.
 
15685
   # Note that $ac_compile itself does not contain backslashes and begins
 
15686
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15687
   # The option is referenced via a variable to avoid confusing sed.
 
15688
   lt_compile=`echo "$ac_compile" | $SED \
 
15689
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15690
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15691
   -e 's:$: $lt_compiler_flag:'`
 
15692
   (eval echo "\"\$as_me:15692: $lt_compile\"" >&5)
 
15693
   (eval "$lt_compile" 2>conftest.err)
 
15694
   ac_status=$?
 
15695
   cat conftest.err >&5
 
15696
   echo "$as_me:15696: \$? = $ac_status" >&5
 
15697
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15698
     # The compiler can only warn and ignore the option if not recognized
 
15699
     # So say no if there are warnings
 
15700
     if test ! -s conftest.err; then
 
15701
       lt_prog_compiler_pic_works_F77=yes
 
15702
     fi
 
15703
   fi
 
15704
   $rm conftest*
 
15705
 
 
15706
fi
 
15707
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
15708
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
15709
 
 
15710
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
15711
    case $lt_prog_compiler_pic_F77 in
 
15712
     "" | " "*) ;;
 
15713
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
15714
     esac
 
15715
else
 
15716
    lt_prog_compiler_pic_F77=
 
15717
     lt_prog_compiler_can_build_shared_F77=no
 
15718
fi
 
15719
 
 
15720
fi
 
15721
case "$host_os" in
 
15722
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15723
  *djgpp*)
 
15724
    lt_prog_compiler_pic_F77=
 
15725
    ;;
 
15726
  *)
 
15727
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
15728
    ;;
 
15729
esac
 
15730
 
 
15731
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15732
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15733
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
15734
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15735
else
 
15736
  lt_cv_prog_compiler_c_o_F77=no
 
15737
   $rm -r conftest 2>/dev/null
 
15738
   mkdir conftest
 
15739
   cd conftest
 
15740
   mkdir out
 
15741
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15742
 
 
15743
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
15744
   # that will create temporary files in the current directory regardless of
 
15745
   # the output directory.  Thus, making CWD read-only will cause this test
 
15746
   # to fail, enabling locking or at least warning the user not to do parallel
 
15747
   # builds.
 
15748
   chmod -w .
 
15749
 
 
15750
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15751
   # Insert the option either (1) after the last *FLAGS variable, or
 
15752
   # (2) before a word containing "conftest.", or (3) at the end.
 
15753
   # Note that $ac_compile itself does not contain backslashes and begins
 
15754
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15755
   lt_compile=`echo "$ac_compile" | $SED \
 
15756
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15757
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15758
   -e 's:$: $lt_compiler_flag:'`
 
15759
   (eval echo "\"\$as_me:15759: $lt_compile\"" >&5)
 
15760
   (eval "$lt_compile" 2>out/conftest.err)
 
15761
   ac_status=$?
 
15762
   cat out/conftest.err >&5
 
15763
   echo "$as_me:15763: \$? = $ac_status" >&5
 
15764
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15765
   then
 
15766
     # The compiler can only warn and ignore the option if not recognized
 
15767
     # So say no if there are warnings
 
15768
     if test ! -s out/conftest.err; then
 
15769
       lt_cv_prog_compiler_c_o_F77=yes
 
15770
     fi
 
15771
   fi
 
15772
   chmod u+w .
 
15773
   $rm conftest* out/*
 
15774
   rmdir out
 
15775
   cd ..
 
15776
   rmdir conftest
 
15777
   $rm conftest*
 
15778
 
 
15779
fi
 
15780
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15781
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
15782
 
 
15783
 
 
15784
hard_links="nottested"
 
15785
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15786
  # do not overwrite the value of need_locks provided by the user
 
15787
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15788
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15789
  hard_links=yes
 
15790
  $rm conftest*
 
15791
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15792
  touch conftest.a
 
15793
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15794
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15795
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15796
echo "${ECHO_T}$hard_links" >&6
 
15797
  if test "$hard_links" = no; then
 
15798
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15799
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15800
    need_locks=warn
 
15801
  fi
 
15802
else
 
15803
  need_locks=no
 
15804
fi
 
15805
 
 
15806
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15807
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15808
 
 
15809
  runpath_var=
 
15810
  allow_undefined_flag_F77=
 
15811
  enable_shared_with_static_runtimes_F77=no
 
15812
  archive_cmds_F77=
 
15813
  archive_expsym_cmds_F77=
 
15814
  old_archive_From_new_cmds_F77=
 
15815
  old_archive_from_expsyms_cmds_F77=
 
15816
  export_dynamic_flag_spec_F77=
 
15817
  whole_archive_flag_spec_F77=
 
15818
  thread_safe_flag_spec_F77=
 
15819
  hardcode_libdir_flag_spec_F77=
 
15820
  hardcode_libdir_flag_spec_ld_F77=
 
15821
  hardcode_libdir_separator_F77=
 
15822
  hardcode_direct_F77=no
 
15823
  hardcode_minus_L_F77=no
 
15824
  hardcode_shlibpath_var_F77=unsupported
 
15825
  link_all_deplibs_F77=unknown
 
15826
  hardcode_automatic_F77=no
 
15827
  module_cmds_F77=
 
15828
  module_expsym_cmds_F77=
 
15829
  always_export_symbols_F77=no
 
15830
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15831
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15832
  # included in the symbol list
 
15833
  include_expsyms_F77=
 
15834
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15835
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15836
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15837
  # as well as any symbol that contains `d'.
 
15838
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
15839
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15840
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15841
  # the symbol is explicitly referenced.  Since portable code cannot
 
15842
  # rely on this symbol name, it's probably fine to never include it in
 
15843
  # preloaded symbol tables.
 
15844
  extract_expsyms_cmds=
 
15845
 
 
15846
  case $host_os in
 
15847
  cygwin* | mingw* | pw32*)
 
15848
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15849
    # When not using gcc, we currently assume that we are using
 
15850
    # Microsoft Visual C++.
 
15851
    if test "$GCC" != yes; then
 
15852
      with_gnu_ld=no
 
15853
    fi
 
15854
    ;;
 
15855
  openbsd*)
 
15856
    with_gnu_ld=no
 
15857
    ;;
 
15858
  esac
 
15859
 
 
15860
  ld_shlibs_F77=yes
 
15861
  if test "$with_gnu_ld" = yes; then
 
15862
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15863
    wlarc='${wl}'
 
15864
 
 
15865
    # See if GNU ld supports shared libraries.
 
15866
    case $host_os in
 
15867
    aix3* | aix4* | aix5*)
 
15868
      # On AIX/PPC, the GNU linker is very broken
 
15869
      if test "$host_cpu" != ia64; then
 
15870
        ld_shlibs_F77=no
 
15871
        cat <<EOF 1>&2
 
15872
 
 
15873
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15874
*** to be unable to reliably create shared libraries on AIX.
 
15875
*** Therefore, libtool is disabling shared libraries support.  If you
 
15876
*** really care for shared libraries, you may want to modify your PATH
 
15877
*** so that a non-GNU linker is found, and then restart.
 
15878
 
 
15879
EOF
 
15880
      fi
 
15881
      ;;
 
15882
 
 
15883
    amigaos*)
 
15884
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
15885
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15886
      hardcode_minus_L_F77=yes
 
15887
 
 
15888
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15889
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15890
      # to version 4, is to share data among multiple programs linked
 
15891
      # with the same dynamic library.  Since this doesn't match the
 
15892
      # behavior of shared libraries on other platforms, we can't use
 
15893
      # them.
 
15894
      ld_shlibs_F77=no
 
15895
      ;;
 
15896
 
 
15897
    beos*)
 
15898
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15899
        allow_undefined_flag_F77=unsupported
 
15900
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15901
        # support --undefined.  This deserves some investigation.  FIXME
 
15902
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15903
      else
 
15904
        ld_shlibs_F77=no
 
15905
      fi
 
15906
      ;;
 
15907
 
 
15908
    cygwin* | mingw* | pw32*)
 
15909
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15910
      # as there is no search path for DLLs.
 
15911
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15912
      allow_undefined_flag_F77=no
 
15913
      always_export_symbols_F77=no
 
15914
      enable_shared_with_static_runtimes_F77=yes
 
15915
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15916
 
 
15917
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15918
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15919
        # If the export-symbols file already is a .def file (1st line
 
15920
        # is EXPORTS), use it as is; otherwise, prepend...
 
15921
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15922
          cp $export_symbols $output_objdir/$soname.def;
 
15923
        else
 
15924
          echo EXPORTS > $output_objdir/$soname.def;
 
15925
          cat $export_symbols >> $output_objdir/$soname.def;
 
15926
        fi~
 
15927
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15928
      else
 
15929
        ld_shlibs=no
 
15930
      fi
 
15931
      ;;
 
15932
 
 
15933
    netbsd*)
 
15934
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15935
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15936
        wlarc=
 
15937
      else
 
15938
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15939
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15940
      fi
 
15941
      ;;
 
15942
 
 
15943
    solaris* | sysv5*)
 
15944
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15945
        ld_shlibs_F77=no
 
15946
        cat <<EOF 1>&2
 
15947
 
 
15948
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15949
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15950
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15951
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15952
*** your PATH or compiler configuration so that the native linker is
 
15953
*** used, and then restart.
 
15954
 
 
15955
EOF
 
15956
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15957
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15958
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15959
      else
 
15960
        ld_shlibs_F77=no
 
15961
      fi
 
15962
      ;;
 
15963
 
 
15964
    sunos4*)
 
15965
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15966
      wlarc=
 
15967
      hardcode_direct_F77=yes
 
15968
      hardcode_shlibpath_var_F77=no
 
15969
      ;;
 
15970
 
 
15971
    *)
 
15972
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15973
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15974
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15975
      else
 
15976
        ld_shlibs_F77=no
 
15977
      fi
 
15978
      ;;
 
15979
    esac
 
15980
 
 
15981
    if test "$ld_shlibs_F77" = yes; then
 
15982
      runpath_var=LD_RUN_PATH
 
15983
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15984
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15985
      # ancient GNU ld didn't support --whole-archive et. al.
 
15986
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15987
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15988
      else
 
15989
        whole_archive_flag_spec_F77=
 
15990
      fi
 
15991
    fi
 
15992
  else
 
15993
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15994
    case $host_os in
 
15995
    aix3*)
 
15996
      allow_undefined_flag_F77=unsupported
 
15997
      always_export_symbols_F77=yes
 
15998
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
15999
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16000
      # are no directories specified by -L.
 
16001
      hardcode_minus_L_F77=yes
 
16002
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16003
        # Neither direct hardcoding nor static linking is supported with a
 
16004
        # broken collect2.
 
16005
        hardcode_direct_F77=unsupported
 
16006
      fi
 
16007
      ;;
 
16008
 
 
16009
    aix4* | aix5*)
 
16010
      if test "$host_cpu" = ia64; then
 
16011
        # On IA64, the linker does run time linking by default, so we don't
 
16012
        # have to do anything special.
 
16013
        aix_use_runtimelinking=no
 
16014
        exp_sym_flag='-Bexport'
 
16015
        no_entry_flag=""
 
16016
      else
 
16017
        # If we're using GNU nm, then we don't want the "-C" option.
 
16018
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16019
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16020
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16021
        else
 
16022
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16023
        fi
 
16024
 
 
16025
        # KDE requires run time linking.  Make it the default.
 
16026
        aix_use_runtimelinking=yes
 
16027
        exp_sym_flag='-bexport'
 
16028
        no_entry_flag='-bnoentry'
 
16029
      fi
 
16030
 
 
16031
      # When large executables or shared objects are built, AIX ld can
 
16032
      # have problems creating the table of contents.  If linking a library
 
16033
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16034
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16035
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16036
 
 
16037
      archive_cmds_F77=''
 
16038
      hardcode_direct_F77=yes
 
16039
      hardcode_libdir_separator_F77=':'
 
16040
      link_all_deplibs_F77=yes
 
16041
 
 
16042
      if test "$GCC" = yes; then
 
16043
        case $host_os in aix4.012|aix4.012.*)
 
16044
        # We only want to do this on AIX 4.2 and lower, the check
 
16045
        # below for broken collect2 doesn't work under 4.3+
 
16046
          collect2name=`${CC} -print-prog-name=collect2`
 
16047
          if test -f "$collect2name" && \
 
16048
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16049
          then
 
16050
          # We have reworked collect2
 
16051
          hardcode_direct_F77=yes
 
16052
          else
 
16053
          # We have old collect2
 
16054
          hardcode_direct_F77=unsupported
 
16055
          # It fails to find uninstalled libraries when the uninstalled
 
16056
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16057
          # to unsupported forces relinking
 
16058
          hardcode_minus_L_F77=yes
 
16059
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16060
          hardcode_libdir_separator_F77=
 
16061
          fi
 
16062
        esac
 
16063
        shared_flag='-shared'
 
16064
      else
 
16065
        # not using gcc
 
16066
        if test "$host_cpu" = ia64; then
 
16067
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16068
        # chokes on -Wl,-G. The following line is correct:
 
16069
          shared_flag='-G'
 
16070
        else
 
16071
        if test "$aix_use_runtimelinking" = yes; then
 
16072
            shared_flag='-qmkshrobj ${wl}-G'
 
16073
          else
 
16074
            shared_flag='-qmkshrobj'
 
16075
        fi
 
16076
        fi
 
16077
      fi
 
16078
 
 
16079
      # Let the compiler handle the export list.
 
16080
      always_export_symbols_F77=no
 
16081
      if test "$aix_use_runtimelinking" = yes; then
 
16082
        # Warning - without using the other runtime loading flags (-brtl),
 
16083
        # -berok will link without error, but may produce a broken library.
 
16084
        allow_undefined_flag_F77='-berok'
 
16085
       # Determine the default libpath from the value encoded in an empty executable.
 
16086
        cat >conftest.$ac_ext <<_ACEOF
 
16087
      program main
 
16088
 
 
16089
      end
 
16090
_ACEOF
 
16091
rm -f conftest.$ac_objext conftest$ac_exeext
 
16092
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16093
  (eval $ac_link) 2>conftest.er1
 
16094
  ac_status=$?
 
16095
  grep -v '^ *+' conftest.er1 >conftest.err
 
16096
  rm -f conftest.er1
 
16097
  cat conftest.err >&5
 
16098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16099
  (exit $ac_status); } &&
 
16100
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
16101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16102
  (eval $ac_try) 2>&5
 
16103
  ac_status=$?
 
16104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16105
  (exit $ac_status); }; } &&
 
16106
         { ac_try='test -s conftest$ac_exeext'
 
16107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16108
  (eval $ac_try) 2>&5
 
16109
  ac_status=$?
 
16110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16111
  (exit $ac_status); }; }; then
 
16112
 
 
16113
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16114
}'`
 
16115
# Check for a 64-bit object if we didn't find anything.
 
16116
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16117
}'`; fi
 
16118
else
 
16119
  echo "$as_me: failed program was:" >&5
 
16120
sed 's/^/| /' conftest.$ac_ext >&5
 
16121
 
 
16122
fi
 
16123
rm -f conftest.err conftest.$ac_objext \
 
16124
      conftest$ac_exeext conftest.$ac_ext
 
16125
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16126
 
 
16127
        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16128
        archive_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
16129
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16130
       else
 
16131
        if test "$host_cpu" = ia64; then
 
16132
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
16133
          allow_undefined_flag_F77="-z nodefs"
 
16134
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
16135
        else
 
16136
         # Determine the default libpath from the value encoded in an empty executable.
 
16137
         cat >conftest.$ac_ext <<_ACEOF
 
16138
      program main
 
16139
 
 
16140
      end
 
16141
_ACEOF
 
16142
rm -f conftest.$ac_objext conftest$ac_exeext
 
16143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16144
  (eval $ac_link) 2>conftest.er1
 
16145
  ac_status=$?
 
16146
  grep -v '^ *+' conftest.er1 >conftest.err
 
16147
  rm -f conftest.er1
 
16148
  cat conftest.err >&5
 
16149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16150
  (exit $ac_status); } &&
 
16151
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
16152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16153
  (eval $ac_try) 2>&5
 
16154
  ac_status=$?
 
16155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16156
  (exit $ac_status); }; } &&
 
16157
         { ac_try='test -s conftest$ac_exeext'
 
16158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16159
  (eval $ac_try) 2>&5
 
16160
  ac_status=$?
 
16161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16162
  (exit $ac_status); }; }; then
 
16163
 
 
16164
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16165
}'`
 
16166
# Check for a 64-bit object if we didn't find anything.
 
16167
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16168
}'`; fi
 
16169
else
 
16170
  echo "$as_me: failed program was:" >&5
 
16171
sed 's/^/| /' conftest.$ac_ext >&5
 
16172
 
 
16173
fi
 
16174
rm -f conftest.err conftest.$ac_objext \
 
16175
      conftest$ac_exeext conftest.$ac_ext
 
16176
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16177
 
 
16178
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16179
          # Warning - without using the other run time loading flags,
 
16180
          # -berok will link without error, but may produce a broken library.
 
16181
          no_undefined_flag_F77=' ${wl}-bernotok'
 
16182
          allow_undefined_flag_F77=' ${wl}-berok'
 
16183
          # -bexpall does not export symbols beginning with underscore (_)
 
16184
          always_export_symbols_F77=yes
 
16185
          # Exported symbols can be pulled into shared objects from archives
 
16186
          whole_archive_flag_spec_F77=' '
 
16187
          archive_cmds_need_lc_F77=yes
 
16188
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16189
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16190
        fi
 
16191
      fi
 
16192
      ;;
 
16193
 
 
16194
    amigaos*)
 
16195
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
16196
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16197
      hardcode_minus_L_F77=yes
 
16198
      # see comment about different semantics on the GNU ld section
 
16199
      ld_shlibs_F77=no
 
16200
      ;;
 
16201
 
 
16202
    bsdi4*)
 
16203
      export_dynamic_flag_spec_F77=-rdynamic
 
16204
      ;;
 
16205
 
 
16206
    cygwin* | mingw* | pw32*)
 
16207
      # When not using gcc, we currently assume that we are using
 
16208
      # Microsoft Visual C++.
 
16209
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16210
      # no search path for DLLs.
 
16211
      hardcode_libdir_flag_spec_F77=' '
 
16212
      allow_undefined_flag_F77=no
 
16213
      # Tell ltmain to make .lib files, not .a files.
 
16214
      libext=lib
 
16215
      # Tell ltmain to make .dll files, not .so files.
 
16216
      shrext=".dll"
 
16217
      # FIXME: Setting linknames here is a bad hack.
 
16218
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16219
      # The linker will automatically build a .lib file if we build a DLL.
 
16220
      old_archive_From_new_cmds_F77='true'
 
16221
      # FIXME: Should let the user specify the lib program.
 
16222
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16223
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16224
      enable_shared_with_static_runtimes_F77=yes
 
16225
      ;;
 
16226
 
 
16227
    darwin* | rhapsody*)
 
16228
    if test "$GXX" = yes ; then
 
16229
      archive_cmds_need_lc_F77=no
 
16230
      case "$host_os" in
 
16231
      rhapsody* | darwin1.[012])
 
16232
        allow_undefined_flag_F77='-undefined suppress'
 
16233
        ;;
 
16234
      *) # Darwin 1.3 on
 
16235
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
16236
        ;;
 
16237
      esac
 
16238
        lt_int_apple_cc_single_mod=no
 
16239
        output_verbose_link_cmd='echo'
 
16240
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16241
          lt_int_apple_cc_single_mod=yes
 
16242
        fi
 
16243
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16244
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16245
        else
 
16246
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16247
      fi
 
16248
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16249
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16250
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16251
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16252
        else
 
16253
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16254
        fi
 
16255
          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}'
 
16256
      hardcode_direct_F77=no
 
16257
      hardcode_automatic_F77=yes
 
16258
      hardcode_shlibpath_var_F77=unsupported
 
16259
      whole_archive_flag_spec_F77='-all_load $convenience'
 
16260
      link_all_deplibs_F77=yes
 
16261
    else
 
16262
      ld_shlibs_F77=no
 
16263
    fi
 
16264
      ;;
 
16265
 
 
16266
    dgux*)
 
16267
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16268
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16269
      hardcode_shlibpath_var_F77=no
 
16270
      ;;
 
16271
 
 
16272
    freebsd1*)
 
16273
      ld_shlibs_F77=no
 
16274
      ;;
 
16275
 
 
16276
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16277
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16278
    # does not break anything, and helps significantly (at the cost of a little
 
16279
    # extra space).
 
16280
    freebsd2.2*)
 
16281
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16282
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16283
      hardcode_direct_F77=yes
 
16284
      hardcode_shlibpath_var_F77=no
 
16285
      ;;
 
16286
 
 
16287
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16288
    freebsd2*)
 
16289
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16290
      hardcode_direct_F77=yes
 
16291
      hardcode_minus_L_F77=yes
 
16292
      hardcode_shlibpath_var_F77=no
 
16293
      ;;
 
16294
 
 
16295
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16296
    freebsd*)
 
16297
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16298
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16299
      hardcode_direct_F77=yes
 
16300
      hardcode_shlibpath_var_F77=no
 
16301
      ;;
 
16302
 
 
16303
    hpux9*)
 
16304
      if test "$GCC" = yes; then
 
16305
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
16306
      else
 
16307
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
16308
      fi
 
16309
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16310
      hardcode_libdir_separator_F77=:
 
16311
      hardcode_direct_F77=yes
 
16312
 
 
16313
      # hardcode_minus_L: Not really in the search PATH,
 
16314
      # but as the default location of the library.
 
16315
      hardcode_minus_L_F77=yes
 
16316
      export_dynamic_flag_spec_F77='${wl}-E'
 
16317
      ;;
 
16318
 
 
16319
    hpux10* | hpux11*)
 
16320
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16321
        case "$host_cpu" in
 
16322
        hppa*64*|ia64*)
 
16323
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16324
          ;;
 
16325
        *)
 
16326
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16327
          ;;
 
16328
        esac
 
16329
      else
 
16330
        case "$host_cpu" in
 
16331
        hppa*64*|ia64*)
 
16332
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16333
          ;;
 
16334
        *)
 
16335
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16336
          ;;
 
16337
        esac
 
16338
      fi
 
16339
      if test "$with_gnu_ld" = no; then
 
16340
        case "$host_cpu" in
 
16341
        hppa*64*)
 
16342
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16343
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
16344
          hardcode_libdir_separator_F77=:
 
16345
          hardcode_direct_F77=no
 
16346
          hardcode_shlibpath_var_F77=no
 
16347
          ;;
 
16348
        ia64*)
 
16349
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16350
          hardcode_direct_F77=no
 
16351
          hardcode_shlibpath_var_F77=no
 
16352
 
 
16353
          # hardcode_minus_L: Not really in the search PATH,
 
16354
          # but as the default location of the library.
 
16355
          hardcode_minus_L_F77=yes
 
16356
          ;;
 
16357
        *)
 
16358
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16359
          hardcode_libdir_separator_F77=:
 
16360
          hardcode_direct_F77=yes
 
16361
          export_dynamic_flag_spec_F77='${wl}-E'
 
16362
 
 
16363
          # hardcode_minus_L: Not really in the search PATH,
 
16364
          # but as the default location of the library.
 
16365
          hardcode_minus_L_F77=yes
 
16366
          ;;
 
16367
        esac
 
16368
      fi
 
16369
      ;;
 
16370
 
 
16371
    irix5* | irix6* | nonstopux*)
 
16372
      if test "$GCC" = yes; then
 
16373
        archive_cmds_F77='$CC -shared $libobjs $deplibs $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'
 
16374
      else
 
16375
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16376
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
16377
      fi
 
16378
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16379
      hardcode_libdir_separator_F77=:
 
16380
      link_all_deplibs_F77=yes
 
16381
      ;;
 
16382
 
 
16383
    netbsd*)
 
16384
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16385
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16386
      else
 
16387
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16388
      fi
 
16389
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16390
      hardcode_direct_F77=yes
 
16391
      hardcode_shlibpath_var_F77=no
 
16392
      ;;
 
16393
 
 
16394
    newsos6)
 
16395
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16396
      hardcode_direct_F77=yes
 
16397
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16398
      hardcode_libdir_separator_F77=:
 
16399
      hardcode_shlibpath_var_F77=no
 
16400
      ;;
 
16401
 
 
16402
    openbsd*)
 
16403
      hardcode_direct_F77=yes
 
16404
      hardcode_shlibpath_var_F77=no
 
16405
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16406
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16407
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16408
        export_dynamic_flag_spec_F77='${wl}-E'
 
16409
      else
 
16410
       case $host_os in
 
16411
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16412
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16413
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
16414
           ;;
 
16415
         *)
 
16416
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16417
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16418
           ;;
 
16419
       esac
 
16420
      fi
 
16421
      ;;
 
16422
 
 
16423
    os2*)
 
16424
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16425
      hardcode_minus_L_F77=yes
 
16426
      allow_undefined_flag_F77=unsupported
 
16427
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
16428
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16429
      ;;
 
16430
 
 
16431
    osf3*)
 
16432
      if test "$GCC" = yes; then
 
16433
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16434
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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'
 
16435
      else
 
16436
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16437
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16438
      fi
 
16439
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16440
      hardcode_libdir_separator_F77=:
 
16441
      ;;
 
16442
 
 
16443
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16444
      if test "$GCC" = yes; then
 
16445
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16446
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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'
 
16447
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16448
      else
 
16449
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16450
        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'
 
16451
        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~
 
16452
        $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'
 
16453
 
 
16454
        # Both c and cxx compiler support -rpath directly
 
16455
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
16456
      fi
 
16457
      hardcode_libdir_separator_F77=:
 
16458
      ;;
 
16459
 
 
16460
    sco3.2v5*)
 
16461
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16462
      hardcode_shlibpath_var_F77=no
 
16463
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16464
      runpath_var=LD_RUN_PATH
 
16465
      hardcode_runpath_var=yes
 
16466
      ;;
 
16467
 
 
16468
    solaris*)
 
16469
      no_undefined_flag_F77=' -z text'
 
16470
      if test "$GCC" = yes; then
 
16471
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16472
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16473
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16474
      else
 
16475
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16476
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16477
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16478
      fi
 
16479
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16480
      hardcode_shlibpath_var_F77=no
 
16481
      case $host_os in
 
16482
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16483
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16484
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16485
      esac
 
16486
      link_all_deplibs_F77=yes
 
16487
      ;;
 
16488
 
 
16489
    sunos4*)
 
16490
      if test "x$host_vendor" = xsequent; then
 
16491
        # Use $CC to link under sequent, because it throws in some extra .o
 
16492
        # files that make .init and .fini sections work.
 
16493
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16494
      else
 
16495
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16496
      fi
 
16497
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16498
      hardcode_direct_F77=yes
 
16499
      hardcode_minus_L_F77=yes
 
16500
      hardcode_shlibpath_var_F77=no
 
16501
      ;;
 
16502
 
 
16503
    sysv4)
 
16504
      case $host_vendor in
 
16505
        sni)
 
16506
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16507
          hardcode_direct_F77=yes # is this really true???
 
16508
        ;;
 
16509
        siemens)
 
16510
          ## LD is ld it makes a PLAMLIB
 
16511
          ## CC just makes a GrossModule.
 
16512
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16513
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
16514
          hardcode_direct_F77=no
 
16515
        ;;
 
16516
        motorola)
 
16517
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16518
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
16519
        ;;
 
16520
      esac
 
16521
      runpath_var='LD_RUN_PATH'
 
16522
      hardcode_shlibpath_var_F77=no
 
16523
      ;;
 
16524
 
 
16525
    sysv4.3*)
 
16526
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16527
      hardcode_shlibpath_var_F77=no
 
16528
      export_dynamic_flag_spec_F77='-Bexport'
 
16529
      ;;
 
16530
 
 
16531
    sysv4*MP*)
 
16532
      if test -d /usr/nec; then
 
16533
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16534
        hardcode_shlibpath_var_F77=no
 
16535
        runpath_var=LD_RUN_PATH
 
16536
        hardcode_runpath_var=yes
 
16537
        ld_shlibs_F77=yes
 
16538
      fi
 
16539
      ;;
 
16540
 
 
16541
    sysv4.2uw2*)
 
16542
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16543
      hardcode_direct_F77=yes
 
16544
      hardcode_minus_L_F77=no
 
16545
      hardcode_shlibpath_var_F77=no
 
16546
      hardcode_runpath_var=yes
 
16547
      runpath_var=LD_RUN_PATH
 
16548
      ;;
 
16549
 
 
16550
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16551
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
16552
      if test "$GCC" = yes; then
 
16553
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16554
      else
 
16555
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16556
      fi
 
16557
      runpath_var='LD_RUN_PATH'
 
16558
      hardcode_shlibpath_var_F77=no
 
16559
      ;;
 
16560
 
 
16561
    sysv5*)
 
16562
      no_undefined_flag_F77=' -z text'
 
16563
      # $CC -shared without GNU ld will not create a library from C++
 
16564
      # object files and a static libstdc++, better avoid it by now
 
16565
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16566
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16567
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16568
      hardcode_libdir_flag_spec_F77=
 
16569
      hardcode_shlibpath_var_F77=no
 
16570
      runpath_var='LD_RUN_PATH'
 
16571
      ;;
 
16572
 
 
16573
    uts4*)
 
16574
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16575
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16576
      hardcode_shlibpath_var_F77=no
 
16577
      ;;
 
16578
 
 
16579
    *)
 
16580
      ld_shlibs_F77=no
 
16581
      ;;
 
16582
    esac
 
16583
  fi
 
16584
 
 
16585
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
16586
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
16587
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16588
 
 
16589
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16590
if test "$GCC" = yes; then
 
16591
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16592
fi
 
16593
 
 
16594
#
 
16595
# Do we need to explicitly link libc?
 
16596
#
 
16597
case "x$archive_cmds_need_lc_F77" in
 
16598
x|xyes)
 
16599
  # Assume -lc should be added
 
16600
  archive_cmds_need_lc_F77=yes
 
16601
 
 
16602
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16603
    case $archive_cmds_F77 in
 
16604
    *'~'*)
 
16605
      # FIXME: we may have to deal with multi-command sequences.
 
16606
      ;;
 
16607
    '$CC '*)
 
16608
      # Test whether the compiler implicitly links with -lc since on some
 
16609
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16610
      # to ld, don't add -lc before -lgcc.
 
16611
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16612
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16613
      $rm conftest*
 
16614
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16615
 
 
16616
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16617
  (eval $ac_compile) 2>&5
 
16618
  ac_status=$?
 
16619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16620
  (exit $ac_status); } 2>conftest.err; then
 
16621
        soname=conftest
 
16622
        lib=conftest
 
16623
        libobjs=conftest.$ac_objext
 
16624
        deplibs=
 
16625
        wl=$lt_prog_compiler_wl_F77
 
16626
        compiler_flags=-v
 
16627
        linker_flags=-v
 
16628
        verstring=
 
16629
        output_objdir=.
 
16630
        libname=conftest
 
16631
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16632
        allow_undefined_flag_F77=
 
16633
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16634
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16635
  ac_status=$?
 
16636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16637
  (exit $ac_status); }
 
16638
        then
 
16639
          archive_cmds_need_lc_F77=no
 
16640
        else
 
16641
          archive_cmds_need_lc_F77=yes
 
16642
        fi
 
16643
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16644
      else
 
16645
        cat conftest.err 1>&5
 
16646
      fi
 
16647
      $rm conftest*
 
16648
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16649
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
16650
      ;;
 
16651
    esac
 
16652
  fi
 
16653
  ;;
 
16654
esac
 
16655
 
 
16656
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16657
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16658
library_names_spec=
 
16659
libname_spec='lib$name'
 
16660
soname_spec=
 
16661
shrext=".so"
 
16662
postinstall_cmds=
 
16663
postuninstall_cmds=
 
16664
finish_cmds=
 
16665
finish_eval=
 
16666
shlibpath_var=
 
16667
shlibpath_overrides_runpath=unknown
 
16668
version_type=none
 
16669
dynamic_linker="$host_os ld.so"
 
16670
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16671
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16672
need_lib_prefix=unknown
 
16673
hardcode_into_libs=no
 
16674
 
 
16675
# when you set need_version to no, make sure it does not cause -set_version
 
16676
# flags to be left without arguments
 
16677
need_version=unknown
 
16678
 
 
16679
case $host_os in
 
16680
aix3*)
 
16681
  version_type=linux
 
16682
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16683
  shlibpath_var=LIBPATH
 
16684
 
 
16685
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16686
  soname_spec='${libname}${release}${shared_ext}$major'
 
16687
  ;;
 
16688
 
 
16689
aix4* | aix5*)
 
16690
  version_type=linux
 
16691
  need_lib_prefix=no
 
16692
  need_version=no
 
16693
  hardcode_into_libs=yes
 
16694
  if test "$host_cpu" = ia64; then
 
16695
    # AIX 5 supports IA64
 
16696
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16697
    shlibpath_var=LD_LIBRARY_PATH
 
16698
  else
 
16699
    # With GCC up to 2.95.x, collect2 would create an import file
 
16700
    # for dependence libraries.  The import file would start with
 
16701
    # the line `#! .'.  This would cause the generated library to
 
16702
    # depend on `.', always an invalid library.  This was fixed in
 
16703
    # development snapshots of GCC prior to 3.0.
 
16704
    case $host_os in
 
16705
      aix4 | aix4.[01] | aix4.[01].*)
 
16706
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16707
           echo ' yes '
 
16708
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16709
        :
 
16710
      else
 
16711
        can_build_shared=no
 
16712
      fi
 
16713
      ;;
 
16714
    esac
 
16715
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16716
    # soname into executable. Probably we can add versioning support to
 
16717
    # collect2, so additional links can be useful in future.
 
16718
    if test "$aix_use_runtimelinking" = yes; then
 
16719
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16720
      # instead of lib<name>.a to let people know that these are not
 
16721
      # typical AIX shared libraries.
 
16722
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16723
    else
 
16724
      # We preserve .a as extension for shared libraries through AIX4.2
 
16725
      # and later when we are not doing run time linking.
 
16726
      library_names_spec='${libname}${release}.a $libname.a'
 
16727
      soname_spec='${libname}${release}${shared_ext}$major'
 
16728
    fi
 
16729
    shlibpath_var=LIBPATH
 
16730
  fi
 
16731
  ;;
 
16732
 
 
16733
amigaos*)
 
16734
  library_names_spec='$libname.ixlibrary $libname.a'
 
16735
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16736
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
16737
  ;;
 
16738
 
 
16739
beos*)
 
16740
  library_names_spec='${libname}${shared_ext}'
 
16741
  dynamic_linker="$host_os ld.so"
 
16742
  shlibpath_var=LIBRARY_PATH
 
16743
  ;;
 
16744
 
 
16745
bsdi4*)
 
16746
  version_type=linux
 
16747
  need_version=no
 
16748
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16749
  soname_spec='${libname}${release}${shared_ext}$major'
 
16750
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16751
  shlibpath_var=LD_LIBRARY_PATH
 
16752
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16753
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16754
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16755
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16756
  # libtool to hard-code these into programs
 
16757
  ;;
 
16758
 
 
16759
cygwin* | mingw* | pw32*)
 
16760
  version_type=windows
 
16761
  shrext=".dll"
 
16762
  need_version=no
 
16763
  need_lib_prefix=no
 
16764
 
 
16765
  case $GCC,$host_os in
 
16766
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16767
    library_names_spec='$libname.dll.a'
 
16768
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16769
    postinstall_cmds='base_file=`basename \${file}`~
 
16770
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16771
      dldir=$destdir/`dirname \$dlpath`~
 
16772
      test -d \$dldir || mkdir -p \$dldir~
 
16773
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16774
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16775
      dlpath=$dir/\$dldll~
 
16776
       $rm \$dlpath'
 
16777
    shlibpath_overrides_runpath=yes
 
16778
 
 
16779
    case $host_os in
 
16780
    cygwin*)
 
16781
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16782
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16783
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16784
      ;;
 
16785
    mingw*)
 
16786
      # MinGW DLLs use traditional 'lib' prefix
 
16787
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16788
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16789
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16790
        # It is most probably a Windows format PATH printed by
 
16791
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16792
        # path with ; separators, and with drive letters. We can handle the
 
16793
        # drive letters (cygwin fileutils understands them), so leave them,
 
16794
        # especially as we might pass files found there to a mingw objdump,
 
16795
        # which wouldn't understand a cygwinified path. Ahh.
 
16796
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16797
      else
 
16798
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16799
      fi
 
16800
      ;;
 
16801
    pw32*)
 
16802
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16803
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16804
      ;;
 
16805
    esac
 
16806
    ;;
 
16807
 
 
16808
  *)
 
16809
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16810
    ;;
 
16811
  esac
 
16812
  dynamic_linker='Win32 ld.exe'
 
16813
  # FIXME: first we should search . and the directory the executable is in
 
16814
  shlibpath_var=PATH
 
16815
  ;;
 
16816
 
 
16817
darwin* | rhapsody*)
 
16818
  dynamic_linker="$host_os dyld"
 
16819
  version_type=darwin
 
16820
  need_lib_prefix=no
 
16821
  need_version=no
 
16822
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16823
  soname_spec='${libname}${release}${major}$shared_ext'
 
16824
  shlibpath_overrides_runpath=yes
 
16825
  shlibpath_var=DYLD_LIBRARY_PATH
 
16826
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
16827
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16828
  if test "$GCC" = yes; then
 
16829
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
16830
  else
 
16831
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16832
  fi
 
16833
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16834
  ;;
 
16835
 
 
16836
dgux*)
 
16837
  version_type=linux
 
16838
  need_lib_prefix=no
 
16839
  need_version=no
 
16840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16841
  soname_spec='${libname}${release}${shared_ext}$major'
 
16842
  shlibpath_var=LD_LIBRARY_PATH
 
16843
  ;;
 
16844
 
 
16845
freebsd1*)
 
16846
  dynamic_linker=no
 
16847
  ;;
 
16848
 
 
16849
freebsd*-gnu*)
 
16850
  version_type=linux
 
16851
  need_lib_prefix=no
 
16852
  need_version=no
 
16853
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16854
  soname_spec='${libname}${release}${shared_ext}$major'
 
16855
  shlibpath_var=LD_LIBRARY_PATH
 
16856
  shlibpath_overrides_runpath=no
 
16857
  hardcode_into_libs=yes
 
16858
  dynamic_linker='GNU ld.so'
 
16859
  ;;
 
16860
 
 
16861
freebsd*)
 
16862
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16863
  version_type=freebsd-$objformat
 
16864
  case $version_type in
 
16865
    freebsd-elf*)
 
16866
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16867
      need_version=no
 
16868
      need_lib_prefix=no
 
16869
      ;;
 
16870
    freebsd-*)
 
16871
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16872
      need_version=yes
 
16873
      ;;
 
16874
  esac
 
16875
  shlibpath_var=LD_LIBRARY_PATH
 
16876
  case $host_os in
 
16877
  freebsd2*)
 
16878
    shlibpath_overrides_runpath=yes
 
16879
    ;;
 
16880
  freebsd3.01* | freebsdelf3.01*)
 
16881
    shlibpath_overrides_runpath=yes
 
16882
    hardcode_into_libs=yes
 
16883
    ;;
 
16884
  *) # from 3.2 on
 
16885
    shlibpath_overrides_runpath=no
 
16886
    hardcode_into_libs=yes
 
16887
    ;;
 
16888
  esac
 
16889
  ;;
 
16890
 
 
16891
gnu*)
 
16892
  version_type=linux
 
16893
  need_lib_prefix=no
 
16894
  need_version=no
 
16895
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16896
  soname_spec='${libname}${release}${shared_ext}$major'
 
16897
  shlibpath_var=LD_LIBRARY_PATH
 
16898
  hardcode_into_libs=yes
 
16899
  ;;
 
16900
 
 
16901
hpux9* | hpux10* | hpux11*)
 
16902
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16903
  # link against other versions.
 
16904
  version_type=sunos
 
16905
  need_lib_prefix=no
 
16906
  need_version=no
 
16907
  case "$host_cpu" in
 
16908
  ia64*)
 
16909
    shrext='.so'
 
16910
    hardcode_into_libs=yes
 
16911
    dynamic_linker="$host_os dld.so"
 
16912
    shlibpath_var=LD_LIBRARY_PATH
 
16913
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16914
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16915
    soname_spec='${libname}${release}${shared_ext}$major'
 
16916
    if test "X$HPUX_IA64_MODE" = X32; then
 
16917
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16918
    else
 
16919
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16920
    fi
 
16921
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16922
    ;;
 
16923
   hppa*64*)
 
16924
     shrext='.sl'
 
16925
     hardcode_into_libs=yes
 
16926
     dynamic_linker="$host_os dld.sl"
 
16927
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16928
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16929
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16930
     soname_spec='${libname}${release}${shared_ext}$major'
 
16931
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16932
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16933
     ;;
 
16934
   *)
 
16935
    shrext='.sl'
 
16936
    dynamic_linker="$host_os dld.sl"
 
16937
    shlibpath_var=SHLIB_PATH
 
16938
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16939
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16940
    soname_spec='${libname}${release}${shared_ext}$major'
 
16941
    ;;
 
16942
  esac
 
16943
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16944
  postinstall_cmds='chmod 555 $lib'
 
16945
  ;;
 
16946
 
 
16947
irix5* | irix6* | nonstopux*)
 
16948
  case $host_os in
 
16949
    nonstopux*) version_type=nonstopux ;;
 
16950
    *)
 
16951
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16952
                version_type=linux
 
16953
        else
 
16954
                version_type=irix
 
16955
        fi ;;
 
16956
  esac
 
16957
  need_lib_prefix=no
 
16958
  need_version=no
 
16959
  soname_spec='${libname}${release}${shared_ext}$major'
 
16960
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16961
  case $host_os in
 
16962
  irix5* | nonstopux*)
 
16963
    libsuff= shlibsuff=
 
16964
    ;;
 
16965
  *)
 
16966
    case $LD in # libtool.m4 will add one of these switches to LD
 
16967
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16968
      libsuff= shlibsuff= libmagic=32-bit;;
 
16969
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16970
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16971
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16972
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16973
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16974
    esac
 
16975
    ;;
 
16976
  esac
 
16977
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16978
  shlibpath_overrides_runpath=no
 
16979
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16980
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16981
  hardcode_into_libs=yes
 
16982
  ;;
 
16983
 
 
16984
# No shared lib support for Linux oldld, aout, or coff.
 
16985
linux*oldld* | linux*aout* | linux*coff*)
 
16986
  dynamic_linker=no
 
16987
  ;;
 
16988
 
 
16989
# This must be Linux ELF.
 
16990
linux*)
 
16991
  version_type=linux
 
16992
  need_lib_prefix=no
 
16993
  need_version=no
 
16994
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16995
  soname_spec='${libname}${release}${shared_ext}$major'
 
16996
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16997
  libsuff=
 
16998
  if test "x$LINUX_64_MODE" = x64; then
 
16999
    # Some platforms are per default 64-bit, so there's no /lib64
 
17000
    if test -d /lib64; then
 
17001
      libsuff=64
 
17002
    fi
 
17003
  fi
 
17004
  shlibpath_var=LD_LIBRARY_PATH
 
17005
  shlibpath_overrides_runpath=no
 
17006
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
17007
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
17008
  # This implies no fast_install, which is unacceptable.
 
17009
  # Some rework will be needed to allow for fast_install
 
17010
  # before this can be enabled.
 
17011
  hardcode_into_libs=yes
 
17012
 
 
17013
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17014
  # powerpc, because MkLinux only supported shared libraries with the
 
17015
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17016
  # most powerpc-linux boxes support dynamic linking these days and
 
17017
  # people can always --disable-shared, the test was removed, and we
 
17018
  # assume the GNU/Linux dynamic linker is in use.
 
17019
  dynamic_linker='GNU/Linux ld.so'
 
17020
  ;;
 
17021
 
 
17022
netbsd*)
 
17023
  version_type=sunos
 
17024
  need_lib_prefix=no
 
17025
  need_version=no
 
17026
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17027
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17028
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17029
    dynamic_linker='NetBSD (a.out) ld.so'
 
17030
  else
 
17031
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
17032
    soname_spec='${libname}${release}${shared_ext}$major'
 
17033
    dynamic_linker='NetBSD ld.elf_so'
 
17034
  fi
 
17035
  shlibpath_var=LD_LIBRARY_PATH
 
17036
  shlibpath_overrides_runpath=yes
 
17037
  hardcode_into_libs=yes
 
17038
  ;;
 
17039
 
 
17040
newsos6)
 
17041
  version_type=linux
 
17042
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17043
  shlibpath_var=LD_LIBRARY_PATH
 
17044
  shlibpath_overrides_runpath=yes
 
17045
  ;;
 
17046
 
 
17047
nto-qnx*)
 
17048
  version_type=linux
 
17049
  need_lib_prefix=no
 
17050
  need_version=no
 
17051
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17052
  soname_spec='${libname}${release}${shared_ext}$major'
 
17053
  shlibpath_var=LD_LIBRARY_PATH
 
17054
  shlibpath_overrides_runpath=yes
 
17055
  ;;
 
17056
 
 
17057
openbsd*)
 
17058
  version_type=sunos
 
17059
  need_lib_prefix=no
 
17060
  need_version=no
 
17061
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17062
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17063
  shlibpath_var=LD_LIBRARY_PATH
 
17064
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17065
    case $host_os in
 
17066
      openbsd2.[89] | openbsd2.[89].*)
 
17067
        shlibpath_overrides_runpath=no
 
17068
        ;;
 
17069
      *)
 
17070
        shlibpath_overrides_runpath=yes
 
17071
        ;;
 
17072
      esac
 
17073
  else
 
17074
    shlibpath_overrides_runpath=yes
 
17075
  fi
 
17076
  ;;
 
17077
 
 
17078
os2*)
 
17079
  libname_spec='$name'
 
17080
  shrext=".dll"
 
17081
  need_lib_prefix=no
 
17082
  library_names_spec='$libname${shared_ext} $libname.a'
 
17083
  dynamic_linker='OS/2 ld.exe'
 
17084
  shlibpath_var=LIBPATH
 
17085
  ;;
 
17086
 
 
17087
osf3* | osf4* | osf5*)
 
17088
  version_type=osf
 
17089
  need_lib_prefix=no
 
17090
  need_version=no
 
17091
  soname_spec='${libname}${release}${shared_ext}$major'
 
17092
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17093
  shlibpath_var=LD_LIBRARY_PATH
 
17094
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17095
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17096
  ;;
 
17097
 
 
17098
sco3.2v5*)
 
17099
  version_type=osf
 
17100
  soname_spec='${libname}${release}${shared_ext}$major'
 
17101
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17102
  shlibpath_var=LD_LIBRARY_PATH
 
17103
  ;;
 
17104
 
 
17105
solaris*)
 
17106
  version_type=linux
 
17107
  need_lib_prefix=no
 
17108
  need_version=no
 
17109
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17110
  soname_spec='${libname}${release}${shared_ext}$major'
 
17111
  shlibpath_var=LD_LIBRARY_PATH
 
17112
  shlibpath_overrides_runpath=yes
 
17113
  hardcode_into_libs=yes
 
17114
  # ldd complains unless libraries are executable
 
17115
  postinstall_cmds='chmod +x $lib'
 
17116
  ;;
 
17117
 
 
17118
sunos4*)
 
17119
  version_type=sunos
 
17120
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17121
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17122
  shlibpath_var=LD_LIBRARY_PATH
 
17123
  shlibpath_overrides_runpath=yes
 
17124
  if test "$with_gnu_ld" = yes; then
 
17125
    need_lib_prefix=no
 
17126
  fi
 
17127
  need_version=yes
 
17128
  ;;
 
17129
 
 
17130
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17131
  version_type=linux
 
17132
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17133
  soname_spec='${libname}${release}${shared_ext}$major'
 
17134
  shlibpath_var=LD_LIBRARY_PATH
 
17135
  case $host_vendor in
 
17136
    sni)
 
17137
      shlibpath_overrides_runpath=no
 
17138
      need_lib_prefix=no
 
17139
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17140
      runpath_var=LD_RUN_PATH
 
17141
      ;;
 
17142
    siemens)
 
17143
      need_lib_prefix=no
 
17144
      ;;
 
17145
    motorola)
 
17146
      need_lib_prefix=no
 
17147
      need_version=no
 
17148
      shlibpath_overrides_runpath=no
 
17149
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17150
      ;;
 
17151
  esac
 
17152
  ;;
 
17153
 
 
17154
sysv4*MP*)
 
17155
  if test -d /usr/nec ;then
 
17156
    version_type=linux
 
17157
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17158
    soname_spec='$libname${shared_ext}.$major'
 
17159
    shlibpath_var=LD_LIBRARY_PATH
 
17160
  fi
 
17161
  ;;
 
17162
 
 
17163
uts4*)
 
17164
  version_type=linux
 
17165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17166
  soname_spec='${libname}${release}${shared_ext}$major'
 
17167
  shlibpath_var=LD_LIBRARY_PATH
 
17168
  ;;
 
17169
 
 
17170
*)
 
17171
  dynamic_linker=no
 
17172
  ;;
 
17173
esac
 
17174
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17175
echo "${ECHO_T}$dynamic_linker" >&6
 
17176
test "$dynamic_linker" = no && can_build_shared=no
 
17177
 
 
17178
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17179
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17180
hardcode_action_F77=
 
17181
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
17182
   test -n "$runpath_var F77" || \
 
17183
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
17184
 
 
17185
  # We can hardcode non-existant directories.
 
17186
  if test "$hardcode_direct_F77" != no &&
 
17187
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17188
     # have to relink, otherwise we might link with an installed library
 
17189
     # when we should be linking with a yet-to-be-installed one
 
17190
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
17191
     test "$hardcode_minus_L_F77" != no; then
 
17192
    # Linking always hardcodes the temporary library directory.
 
17193
    hardcode_action_F77=relink
 
17194
  else
 
17195
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17196
    hardcode_action_F77=immediate
 
17197
  fi
 
17198
else
 
17199
  # We cannot hardcode anything, or else we can only hardcode existing
 
17200
  # directories.
 
17201
  hardcode_action_F77=unsupported
 
17202
fi
 
17203
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
17204
echo "${ECHO_T}$hardcode_action_F77" >&6
 
17205
 
 
17206
if test "$hardcode_action_F77" = relink; then
 
17207
  # Fast installation is not supported
 
17208
  enable_fast_install=no
 
17209
elif test "$shlibpath_overrides_runpath" = yes ||
 
17210
     test "$enable_shared" = no; then
 
17211
  # Fast installation is not necessary
 
17212
  enable_fast_install=needless
 
17213
fi
 
17214
 
 
17215
striplib=
 
17216
old_striplib=
 
17217
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17218
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17219
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17220
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17221
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17222
  echo "$as_me:$LINENO: result: yes" >&5
 
17223
echo "${ECHO_T}yes" >&6
 
17224
else
 
17225
# FIXME - insert some real tests, host_os isn't really good enough
 
17226
  case $host_os in
 
17227
   darwin*)
 
17228
       if test -n "$STRIP" ; then
 
17229
         striplib="$STRIP -x"
 
17230
         echo "$as_me:$LINENO: result: yes" >&5
 
17231
echo "${ECHO_T}yes" >&6
 
17232
       else
 
17233
  echo "$as_me:$LINENO: result: no" >&5
 
17234
echo "${ECHO_T}no" >&6
 
17235
fi
 
17236
       ;;
 
17237
   *)
 
17238
  echo "$as_me:$LINENO: result: no" >&5
 
17239
echo "${ECHO_T}no" >&6
 
17240
    ;;
 
17241
  esac
 
17242
fi
 
17243
 
 
17244
 
 
17245
 
 
17246
# The else clause should only fire when bootstrapping the
 
17247
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17248
# with your package, and you will get complaints that there are
 
17249
# no rules to generate ltmain.sh.
 
17250
if test -f "$ltmain"; then
 
17251
  # See if we are running on zsh, and set the options which allow our commands through
 
17252
  # without removal of \ escapes.
 
17253
  if test -n "${ZSH_VERSION+set}" ; then
 
17254
    setopt NO_GLOB_SUBST
 
17255
  fi
 
17256
  # Now quote all the things that may contain metacharacters while being
 
17257
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17258
  # variables and quote the copies for generation of the libtool script.
 
17259
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
17260
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17261
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17262
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17263
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17264
    lt_cv_sys_global_symbol_to_c_name_address \
 
17265
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17266
    old_postinstall_cmds old_postuninstall_cmds \
 
17267
    compiler_F77 \
 
17268
    CC_F77 \
 
17269
    LD_F77 \
 
17270
    lt_prog_compiler_wl_F77 \
 
17271
    lt_prog_compiler_pic_F77 \
 
17272
    lt_prog_compiler_static_F77 \
 
17273
    lt_prog_compiler_no_builtin_flag_F77 \
 
17274
    export_dynamic_flag_spec_F77 \
 
17275
    thread_safe_flag_spec_F77 \
 
17276
    whole_archive_flag_spec_F77 \
 
17277
    enable_shared_with_static_runtimes_F77 \
 
17278
    old_archive_cmds_F77 \
 
17279
    old_archive_from_new_cmds_F77 \
 
17280
    predep_objects_F77 \
 
17281
    postdep_objects_F77 \
 
17282
    predeps_F77 \
 
17283
    postdeps_F77 \
 
17284
    compiler_lib_search_path_F77 \
 
17285
    archive_cmds_F77 \
 
17286
    archive_expsym_cmds_F77 \
 
17287
    postinstall_cmds_F77 \
 
17288
    postuninstall_cmds_F77 \
 
17289
    old_archive_from_expsyms_cmds_F77 \
 
17290
    allow_undefined_flag_F77 \
 
17291
    no_undefined_flag_F77 \
 
17292
    export_symbols_cmds_F77 \
 
17293
    hardcode_libdir_flag_spec_F77 \
 
17294
    hardcode_libdir_flag_spec_ld_F77 \
 
17295
    hardcode_libdir_separator_F77 \
 
17296
    hardcode_automatic_F77 \
 
17297
    module_cmds_F77 \
 
17298
    module_expsym_cmds_F77 \
 
17299
    lt_cv_prog_compiler_c_o_F77 \
 
17300
    exclude_expsyms_F77 \
 
17301
    include_expsyms_F77; do
 
17302
 
 
17303
    case $var in
 
17304
    old_archive_cmds_F77 | \
 
17305
    old_archive_from_new_cmds_F77 | \
 
17306
    archive_cmds_F77 | \
 
17307
    archive_expsym_cmds_F77 | \
 
17308
    module_cmds_F77 | \
 
17309
    module_expsym_cmds_F77 | \
 
17310
    old_archive_from_expsyms_cmds_F77 | \
 
17311
    export_symbols_cmds_F77 | \
 
17312
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17313
    postinstall_cmds | postuninstall_cmds | \
 
17314
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17315
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17316
      # Double-quote double-evaled strings.
 
17317
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17318
      ;;
 
17319
    *)
 
17320
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17321
      ;;
 
17322
    esac
 
17323
  done
 
17324
 
 
17325
  case $lt_echo in
 
17326
  *'\$0 --fallback-echo"')
 
17327
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17328
    ;;
 
17329
  esac
 
17330
 
 
17331
cfgfile="$ofile"
 
17332
 
 
17333
  cat <<__EOF__ >> "$cfgfile"
 
17334
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17335
 
 
17336
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17337
 
 
17338
# Shell to use when invoking shell scripts.
 
17339
SHELL=$lt_SHELL
 
17340
 
 
17341
# Whether or not to build shared libraries.
 
17342
build_libtool_libs=$enable_shared
 
17343
 
 
17344
# Whether or not to build static libraries.
 
17345
build_old_libs=$enable_static
 
17346
 
 
17347
# Whether or not to add -lc for building shared libraries.
 
17348
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
17349
 
 
17350
# Whether or not to disallow shared libs when runtime libs are static
 
17351
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
17352
 
 
17353
# Whether or not to optimize for fast installation.
 
17354
fast_install=$enable_fast_install
 
17355
 
 
17356
# The host system.
 
17357
host_alias=$host_alias
 
17358
host=$host
 
17359
 
 
17360
# An echo program that does not interpret backslashes.
 
17361
echo=$lt_echo
 
17362
 
 
17363
# The archiver.
 
17364
AR=$lt_AR
 
17365
AR_FLAGS=$lt_AR_FLAGS
 
17366
 
 
17367
# A C compiler.
 
17368
LTCC=$lt_LTCC
 
17369
 
 
17370
# A language-specific compiler.
 
17371
CC=$lt_compiler_F77
 
17372
 
 
17373
# Is the compiler the GNU C compiler?
 
17374
with_gcc=$GCC_F77
 
17375
 
 
17376
# An ERE matcher.
 
17377
EGREP=$lt_EGREP
 
17378
 
 
17379
# The linker used to build libraries.
 
17380
LD=$lt_LD_F77
 
17381
 
 
17382
# Whether we need hard or soft links.
 
17383
LN_S=$lt_LN_S
 
17384
 
 
17385
# A BSD-compatible nm program.
 
17386
NM=$lt_NM
 
17387
 
 
17388
# A symbol stripping program
 
17389
STRIP=$STRIP
 
17390
 
 
17391
# Used to examine libraries when file_magic_cmd begins "file"
 
17392
MAGIC_CMD=$MAGIC_CMD
 
17393
 
 
17394
# Used on cygwin: DLL creation program.
 
17395
DLLTOOL="$DLLTOOL"
 
17396
 
 
17397
# Used on cygwin: object dumper.
 
17398
OBJDUMP="$OBJDUMP"
 
17399
 
 
17400
# Used on cygwin: assembler.
 
17401
AS="$AS"
 
17402
 
 
17403
# The name of the directory that contains temporary libtool files.
 
17404
objdir=$objdir
 
17405
 
 
17406
# How to create reloadable object files.
 
17407
reload_flag=$lt_reload_flag
 
17408
reload_cmds=$lt_reload_cmds
 
17409
 
 
17410
# How to pass a linker flag through the compiler.
 
17411
wl=$lt_lt_prog_compiler_wl_F77
 
17412
 
 
17413
# Object file suffix (normally "o").
 
17414
objext="$ac_objext"
 
17415
 
 
17416
# Old archive suffix (normally "a").
 
17417
libext="$libext"
 
17418
 
 
17419
# Shared library suffix (normally ".so").
 
17420
shrext='$shrext'
 
17421
 
 
17422
# Executable file suffix (normally "").
 
17423
exeext="$exeext"
 
17424
 
 
17425
# Additional compiler flags for building library objects.
 
17426
pic_flag=$lt_lt_prog_compiler_pic_F77
 
17427
pic_mode=$pic_mode
 
17428
 
 
17429
# What is the maximum length of a command?
 
17430
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17431
 
 
17432
# Does compiler simultaneously support -c and -o options?
 
17433
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
17434
 
 
17435
# Must we lock files when doing compilation ?
 
17436
need_locks=$lt_need_locks
 
17437
 
 
17438
# Do we need the lib prefix for modules?
 
17439
need_lib_prefix=$need_lib_prefix
 
17440
 
 
17441
# Do we need a version for libraries?
 
17442
need_version=$need_version
 
17443
 
 
17444
# Whether dlopen is supported.
 
17445
dlopen_support=$enable_dlopen
 
17446
 
 
17447
# Whether dlopen of programs is supported.
 
17448
dlopen_self=$enable_dlopen_self
 
17449
 
 
17450
# Whether dlopen of statically linked programs is supported.
 
17451
dlopen_self_static=$enable_dlopen_self_static
 
17452
 
 
17453
# Compiler flag to prevent dynamic linking.
 
17454
link_static_flag=$lt_lt_prog_compiler_static_F77
 
17455
 
 
17456
# Compiler flag to turn off builtin functions.
 
17457
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
17458
 
 
17459
# Compiler flag to allow reflexive dlopens.
 
17460
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
17461
 
 
17462
# Compiler flag to generate shared objects directly from archives.
 
17463
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
17464
 
 
17465
# Compiler flag to generate thread-safe objects.
 
17466
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
17467
 
 
17468
# Library versioning type.
 
17469
version_type=$version_type
 
17470
 
 
17471
# Format of library name prefix.
 
17472
libname_spec=$lt_libname_spec
 
17473
 
 
17474
# List of archive names.  First name is the real one, the rest are links.
 
17475
# The last name is the one that the linker finds with -lNAME.
 
17476
library_names_spec=$lt_library_names_spec
 
17477
 
 
17478
# The coded name of the library, if different from the real name.
 
17479
soname_spec=$lt_soname_spec
 
17480
 
 
17481
# Commands used to build and install an old-style archive.
 
17482
RANLIB=$lt_RANLIB
 
17483
old_archive_cmds=$lt_old_archive_cmds_F77
 
17484
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17485
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17486
 
 
17487
# Create an old-style archive from a shared archive.
 
17488
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
17489
 
 
17490
# Create a temporary old-style archive to link instead of a shared archive.
 
17491
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
17492
 
 
17493
# Commands used to build and install a shared archive.
 
17494
archive_cmds=$lt_archive_cmds_F77
 
17495
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
17496
postinstall_cmds=$lt_postinstall_cmds
 
17497
postuninstall_cmds=$lt_postuninstall_cmds
 
17498
 
 
17499
# Commands used to build a loadable module (assumed same as above if empty)
 
17500
module_cmds=$lt_module_cmds_F77
 
17501
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
17502
 
 
17503
# Commands to strip libraries.
 
17504
old_striplib=$lt_old_striplib
 
17505
striplib=$lt_striplib
 
17506
 
 
17507
# Dependencies to place before the objects being linked to create a
 
17508
# shared library.
 
17509
predep_objects=$lt_predep_objects_F77
 
17510
 
 
17511
# Dependencies to place after the objects being linked to create a
 
17512
# shared library.
 
17513
postdep_objects=$lt_postdep_objects_F77
 
17514
 
 
17515
# Dependencies to place before the objects being linked to create a
 
17516
# shared library.
 
17517
predeps=$lt_predeps_F77
 
17518
 
 
17519
# Dependencies to place after the objects being linked to create a
 
17520
# shared library.
 
17521
postdeps=$lt_postdeps_F77
 
17522
 
 
17523
# The library search path used internally by the compiler when linking
 
17524
# a shared library.
 
17525
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
17526
 
 
17527
# Method to check whether dependent libraries are shared objects.
 
17528
deplibs_check_method=$lt_deplibs_check_method
 
17529
 
 
17530
# Command to use when deplibs_check_method == file_magic.
 
17531
file_magic_cmd=$lt_file_magic_cmd
 
17532
 
 
17533
# Flag that allows shared libraries with undefined symbols to be built.
 
17534
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
17535
 
 
17536
# Flag that forces no undefined symbols.
 
17537
no_undefined_flag=$lt_no_undefined_flag_F77
 
17538
 
 
17539
# Commands used to finish a libtool library installation in a directory.
 
17540
finish_cmds=$lt_finish_cmds
 
17541
 
 
17542
# Same as above, but a single script fragment to be evaled but not shown.
 
17543
finish_eval=$lt_finish_eval
 
17544
 
 
17545
# Take the output of nm and produce a listing of raw symbols and C names.
 
17546
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17547
 
 
17548
# Transform the output of nm in a proper C declaration
 
17549
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17550
 
 
17551
# Transform the output of nm in a C name address pair
 
17552
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17553
 
 
17554
# This is the shared library runtime path variable.
 
17555
runpath_var=$runpath_var
 
17556
 
 
17557
# This is the shared library path variable.
 
17558
shlibpath_var=$shlibpath_var
 
17559
 
 
17560
# Is shlibpath searched before the hard-coded library search path?
 
17561
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17562
 
 
17563
# How to hardcode a shared library path into an executable.
 
17564
hardcode_action=$hardcode_action_F77
 
17565
 
 
17566
# Whether we should hardcode library paths into libraries.
 
17567
hardcode_into_libs=$hardcode_into_libs
 
17568
 
 
17569
# Flag to hardcode \$libdir into a binary during linking.
 
17570
# This must work even if \$libdir does not exist.
 
17571
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17572
 
 
17573
# If ld is used when linking, flag to hardcode \$libdir into
 
17574
# a binary during linking. This must work even if \$libdir does
 
17575
# not exist.
 
17576
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17577
 
 
17578
# Whether we need a single -rpath flag with a separated argument.
 
17579
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17580
 
 
17581
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17582
# resulting binary.
 
17583
hardcode_direct=$hardcode_direct_F77
 
17584
 
 
17585
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17586
# resulting binary.
 
17587
hardcode_minus_L=$hardcode_minus_L_F77
 
17588
 
 
17589
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17590
# the resulting binary.
 
17591
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17592
 
 
17593
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17594
# and all subsequent libraries and executables linked against it.
 
17595
hardcode_automatic=$hardcode_automatic_F77
 
17596
 
 
17597
# Variables whose values should be saved in libtool wrapper scripts and
 
17598
# restored at relink time.
 
17599
variables_saved_for_relink="$variables_saved_for_relink"
 
17600
 
 
17601
# Whether libtool must link a program against all its dependency libraries.
 
17602
link_all_deplibs=$link_all_deplibs_F77
 
17603
 
 
17604
# Compile-time system search path for libraries
 
17605
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17606
 
 
17607
# Run-time system search path for libraries
 
17608
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17609
 
 
17610
# Fix the shell variable \$srcfile for the compiler.
 
17611
fix_srcfile_path="$fix_srcfile_path_F77"
 
17612
 
 
17613
# Set to yes if exported symbols are required.
 
17614
always_export_symbols=$always_export_symbols_F77
 
17615
 
 
17616
# The commands to list exported symbols.
 
17617
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17618
 
 
17619
# The commands to extract the exported symbol list from a shared archive.
 
17620
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17621
 
 
17622
# Symbols that should not be listed in the preloaded symbols.
 
17623
exclude_expsyms=$lt_exclude_expsyms_F77
 
17624
 
 
17625
# Symbols that must always be exported.
 
17626
include_expsyms=$lt_include_expsyms_F77
 
17627
 
 
17628
# ### END LIBTOOL TAG CONFIG: $tagname
 
17629
 
 
17630
__EOF__
 
17631
 
 
17632
 
 
17633
else
 
17634
  # If there is no Makefile yet, we rely on a make rule to execute
 
17635
  # `config.status --recheck' to rerun these tests and create the
 
17636
  # libtool script then.
 
17637
  test -f Makefile && make "$ltmain"
 
17638
fi
 
17639
 
 
17640
 
 
17641
ac_ext=c
 
17642
ac_cpp='$CPP $CPPFLAGS'
 
17643
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17644
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17645
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17646
 
13470
17647
CC="$lt_save_CC"
13471
17648
 
 
17649
        else
 
17650
          tagname=""
 
17651
        fi
13472
17652
        ;;
13473
17653
 
13474
17654
      GCJ)
13475
 
 
13476
 
 
13477
 
 
13478
 
# Source file extension for C test sources.
 
17655
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17656
 
 
17657
 
 
17658
 
 
17659
# Source file extension for Java test sources.
13479
17660
ac_ext=java
13480
17661
 
13481
 
# Object file extension for compiled C test sources.
 
17662
# Object file extension for compiled Java test sources.
13482
17663
objext=o
13483
17664
objext_GCJ=$objext
13484
17665
 
13485
17666
# Code to be used in simple compile tests
13486
 
lt_simple_compile_test_code="class foo {}"
 
17667
lt_simple_compile_test_code="class foo {}\n"
13487
17668
 
13488
17669
# Code to be used in simple link tests
13489
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
 
17670
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
13490
17671
 
13491
17672
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13492
17673
 
13494
17675
LTCC=${LTCC-"$CC"}
13495
17676
 
13496
17677
# Allow CC to be a program name with arguments.
13497
 
set dummy $CC
13498
 
compiler="$2"
 
17678
compiler=$CC
13499
17679
 
13500
17680
 
13501
17681
# Allow CC to be a program name with arguments.
13502
17682
lt_save_CC="$CC"
13503
17683
CC=${GCJ-"gcj"}
13504
 
set dummy $CC
13505
 
compiler="$2"
 
17684
compiler=$CC
13506
17685
compiler_GCJ=$CC
13507
17686
 
13508
17687
# GCJ did not exist at the time GCC didn't implicitly link libc in.
13514
17693
if test "$GCC" = yes; then
13515
17694
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
13516
17695
 
13517
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17696
 
 
17697
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13518
17698
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
13519
17699
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13520
17700
  echo $ECHO_N "(cached) $ECHO_C" >&6
13521
17701
else
13522
17702
  lt_cv_prog_compiler_rtti_exceptions=no
13523
17703
  ac_outfile=conftest.$ac_objext
13524
 
   save_CFLAGS="$CFLAGS"
13525
 
   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
13526
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13527
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
 
17704
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17705
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17706
   # Insert the option either (1) after the last *FLAGS variable, or
 
17707
   # (2) before a word containing "conftest.", or (3) at the end.
 
17708
   # Note that $ac_compile itself does not contain backslashes and begins
 
17709
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17710
   # The option is referenced via a variable to avoid confusing sed.
 
17711
   lt_compile=`echo "$ac_compile" | $SED \
 
17712
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17713
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17714
   -e 's:$: $lt_compiler_flag:'`
 
17715
   (eval echo "\"\$as_me:17715: $lt_compile\"" >&5)
 
17716
   (eval "$lt_compile" 2>conftest.err)
 
17717
   ac_status=$?
 
17718
   cat conftest.err >&5
 
17719
   echo "$as_me:17719: \$? = $ac_status" >&5
 
17720
   if (exit $ac_status) && test -s "$ac_outfile"; then
13528
17721
     # The compiler can only warn and ignore the option if not recognized
13529
17722
     # So say no if there are warnings
13530
 
     if test -s conftest.err; then
13531
 
       # Append any errors to the config.log.
13532
 
       cat conftest.err 1>&5
13533
 
     else
 
17723
     if test ! -s conftest.err; then
13534
17724
       lt_cv_prog_compiler_rtti_exceptions=yes
13535
17725
     fi
13536
17726
   fi
13537
17727
   $rm conftest*
13538
 
   CFLAGS="$save_CFLAGS"
13539
17728
 
13540
17729
fi
13541
17730
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13576
17765
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
13577
17766
      ;;
13578
17767
 
13579
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17768
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13580
17769
      # PIC is the default for these OSes.
13581
17770
      ;;
13582
17771
 
13583
 
    cygwin* | mingw* | pw32* | os2*)
 
17772
    mingw* | pw32* | os2*)
13584
17773
      # This hack is so that the source file can tell whether it is being
13585
17774
      # built for inclusion in a dll (and should export symbols for example).
13586
17775
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
13606
17795
      ;;
13607
17796
 
13608
17797
    hpux*)
13609
 
      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
13610
 
      if test "$host_cpu" != ia64; then
 
17798
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17799
      # not for PA HP-UX.
 
17800
      case "$host_cpu" in
 
17801
      hppa*64*|ia64*)
 
17802
        # +Z the default
 
17803
        ;;
 
17804
      *)
13611
17805
        lt_prog_compiler_pic_GCJ='-fPIC'
13612
 
      fi
 
17806
        ;;
 
17807
      esac
13613
17808
      ;;
13614
17809
 
13615
17810
    *)
13629
17824
      fi
13630
17825
      ;;
13631
17826
 
13632
 
    cygwin* | mingw* | pw32* | os2*)
 
17827
    mingw* | pw32* | os2*)
13633
17828
      # This hack is so that the source file can tell whether it is being
13634
17829
      # built for inclusion in a dll (and should export symbols for example).
13635
17830
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
13637
17832
 
13638
17833
    hpux9* | hpux10* | hpux11*)
13639
17834
      lt_prog_compiler_wl_GCJ='-Wl,'
13640
 
      if test "$host_cpu" != ia64; then
 
17835
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17836
      # not for PA HP-UX.
 
17837
      case "$host_cpu" in
 
17838
      hppa*64*|ia64*)
 
17839
        # +Z the default
 
17840
        ;;
 
17841
      *)
13641
17842
        lt_prog_compiler_pic_GCJ='+Z'
13642
 
      fi
 
17843
        ;;
 
17844
      esac
13643
17845
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13644
17846
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
13645
17847
      ;;
13655
17857
      lt_prog_compiler_static_GCJ='-Bstatic'
13656
17858
      ;;
13657
17859
 
 
17860
    linux*)
 
17861
      case $CC in
 
17862
      icc* | ecc*)
 
17863
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17864
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17865
        lt_prog_compiler_static_GCJ='-static'
 
17866
        ;;
 
17867
      ccc*)
 
17868
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17869
        # All Alpha code is PIC.
 
17870
        lt_prog_compiler_static_GCJ='-non_shared'
 
17871
        ;;
 
17872
      esac
 
17873
      ;;
 
17874
 
13658
17875
    osf3* | osf4* | osf5*)
13659
17876
      lt_prog_compiler_wl_GCJ='-Wl,'
13660
17877
      # All OSF/1 code is PIC.
13679
17896
      ;;
13680
17897
 
13681
17898
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13682
 
      if test "x$host_vendor" = xsni; then
13683
 
        lt_prog_compiler_wl_GCJ='-LD'
13684
 
      else
13685
 
        lt_prog_compiler_wl_GCJ='-Wl,'
13686
 
      fi
 
17899
      lt_prog_compiler_wl_GCJ='-Wl,'
13687
17900
      lt_prog_compiler_pic_GCJ='-KPIC'
13688
17901
      lt_prog_compiler_static_GCJ='-Bstatic'
13689
17902
      ;;
13713
17926
# Check to make sure the PIC flag actually works.
13714
17927
#
13715
17928
if test -n "$lt_prog_compiler_pic_GCJ"; then
13716
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17929
 
 
17930
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
13717
17931
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
13718
17932
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
13719
17933
  echo $ECHO_N "(cached) $ECHO_C" >&6
13720
17934
else
13721
17935
  lt_prog_compiler_pic_works_GCJ=no
13722
17936
  ac_outfile=conftest.$ac_objext
13723
 
   save_CFLAGS="$CFLAGS"
13724
 
   CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
13725
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13726
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
 
17937
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17938
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17939
   # Insert the option either (1) after the last *FLAGS variable, or
 
17940
   # (2) before a word containing "conftest.", or (3) at the end.
 
17941
   # Note that $ac_compile itself does not contain backslashes and begins
 
17942
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17943
   # The option is referenced via a variable to avoid confusing sed.
 
17944
   lt_compile=`echo "$ac_compile" | $SED \
 
17945
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17946
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17947
   -e 's:$: $lt_compiler_flag:'`
 
17948
   (eval echo "\"\$as_me:17948: $lt_compile\"" >&5)
 
17949
   (eval "$lt_compile" 2>conftest.err)
 
17950
   ac_status=$?
 
17951
   cat conftest.err >&5
 
17952
   echo "$as_me:17952: \$? = $ac_status" >&5
 
17953
   if (exit $ac_status) && test -s "$ac_outfile"; then
13727
17954
     # The compiler can only warn and ignore the option if not recognized
13728
17955
     # So say no if there are warnings
13729
 
     if test -s conftest.err; then
13730
 
       # Append any errors to the config.log.
13731
 
       cat conftest.err 1>&5
13732
 
     else
 
17956
     if test ! -s conftest.err; then
13733
17957
       lt_prog_compiler_pic_works_GCJ=yes
13734
17958
     fi
13735
17959
   fi
13736
17960
   $rm conftest*
13737
 
   CFLAGS="$save_CFLAGS"
13738
17961
 
13739
17962
fi
13740
17963
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
13757
17980
    lt_prog_compiler_pic_GCJ=
13758
17981
    ;;
13759
17982
  *)
13760
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
 
17983
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
13761
17984
    ;;
13762
17985
esac
13763
17986
 
13771
17994
   mkdir conftest
13772
17995
   cd conftest
13773
17996
   mkdir out
13774
 
   save_GCJFLAGS="$GCJFLAGS"
13775
 
                   GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
13776
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17997
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13777
17998
 
13778
17999
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13779
18000
   # that will create temporary files in the current directory regardless of
13782
18003
   # builds.
13783
18004
   chmod -w .
13784
18005
 
13785
 
   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
 
18006
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
18007
   # Insert the option either (1) after the last *FLAGS variable, or
 
18008
   # (2) before a word containing "conftest.", or (3) at the end.
 
18009
   # Note that $ac_compile itself does not contain backslashes and begins
 
18010
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18011
   lt_compile=`echo "$ac_compile" | $SED \
 
18012
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18013
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18014
   -e 's:$: $lt_compiler_flag:'`
 
18015
   (eval echo "\"\$as_me:18015: $lt_compile\"" >&5)
 
18016
   (eval "$lt_compile" 2>out/conftest.err)
 
18017
   ac_status=$?
 
18018
   cat out/conftest.err >&5
 
18019
   echo "$as_me:18019: \$? = $ac_status" >&5
 
18020
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13786
18021
   then
13787
18022
     # The compiler can only warn and ignore the option if not recognized
13788
18023
     # So say no if there are warnings
13789
 
     if test -s out/conftest.err; then
13790
 
       # Append any errors to the config.log.
13791
 
       cat out/conftest.err 1>&5
13792
 
     else
 
18024
     if test ! -s out/conftest.err; then
13793
18025
       lt_cv_prog_compiler_c_o_GCJ=yes
13794
18026
     fi
13795
18027
   fi
13796
 
   GCJFLAGS="$save_GCJFLAGS"
13797
18028
   chmod u+w .
13798
18029
   $rm conftest* out/*
13799
18030
   rmdir out
13833
18064
 
13834
18065
  runpath_var=
13835
18066
  allow_undefined_flag_GCJ=
13836
 
 
 
18067
  enable_shared_with_static_runtimes_GCJ=no
13837
18068
  archive_cmds_GCJ=
13838
 
  archive_cmds_need_lc_GCJ=
13839
18069
  archive_expsym_cmds_GCJ=
13840
18070
  old_archive_From_new_cmds_GCJ=
13841
18071
  old_archive_from_expsyms_cmds_GCJ=
13843
18073
  whole_archive_flag_spec_GCJ=
13844
18074
  thread_safe_flag_spec_GCJ=
13845
18075
  hardcode_libdir_flag_spec_GCJ=
 
18076
  hardcode_libdir_flag_spec_ld_GCJ=
13846
18077
  hardcode_libdir_separator_GCJ=
13847
18078
  hardcode_direct_GCJ=no
13848
18079
  hardcode_minus_L_GCJ=no
13849
18080
  hardcode_shlibpath_var_GCJ=unsupported
13850
18081
  link_all_deplibs_GCJ=unknown
 
18082
  hardcode_automatic_GCJ=no
 
18083
  module_cmds_GCJ=
 
18084
  module_expsym_cmds_GCJ=
13851
18085
  always_export_symbols_GCJ=no
13852
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
18086
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13853
18087
  # include_expsyms should be a list of space-separated symbols to be *always*
13854
18088
  # included in the symbol list
13855
18089
  include_expsyms_GCJ=
13856
 
  # exclude_expsyms can be an egrep regular expression of symbols to exclude
 
18090
  # exclude_expsyms can be an extended regexp of symbols to exclude
13857
18091
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13858
18092
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13859
18093
  # as well as any symbol that contains `d'.
13917
18151
      ;;
13918
18152
 
13919
18153
    beos*)
13920
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
18154
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13921
18155
        allow_undefined_flag_GCJ=unsupported
13922
18156
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13923
18157
        # support --undefined.  This deserves some investigation.  FIXME
13928
18162
      ;;
13929
18163
 
13930
18164
    cygwin* | mingw* | pw32*)
13931
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
13932
 
      # no search path for DLLs.
 
18165
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
18166
      # as there is no search path for DLLs.
13933
18167
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
13934
 
      allow_undefined_flag_GCJ=unsupported
13935
 
      always_export_symbols_GCJ=yes
13936
 
 
13937
 
      extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
13938
 
        sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
13939
 
        test -f $output_objdir/impgen.exe || (cd $output_objdir && \
13940
 
        if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
13941
 
        else $CC -o impgen impgen.c ; fi)~
13942
 
        $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
13943
 
 
13944
 
      old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
13945
 
 
13946
 
      # cygwin and mingw dlls have different entry points and sets of symbols
13947
 
      # to exclude.
13948
 
      # FIXME: what about values for MSVC?
13949
 
      dll_entry=__cygwin_dll_entry@12
13950
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
13951
 
      case $host_os in
13952
 
      mingw*)
13953
 
        # mingw values
13954
 
        dll_entry=_DllMainCRTStartup@12
13955
 
        dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
13956
 
        ;;
13957
 
      esac
13958
 
 
13959
 
      # mingw and cygwin differ, and it's simplest to just exclude the union
13960
 
      # of the two symbol sets.
13961
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
13962
 
 
13963
 
      # recent cygwin and mingw systems supply a stub DllMain which the user
13964
 
      # can override, but on older systems we have to supply one (in ltdll.c)
13965
 
      if test "x$lt_cv_need_dllmain" = "xyes"; then
13966
 
        ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
13967
 
        ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
13968
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
13969
 
      else
13970
 
        ltdll_obj=
13971
 
        ltdll_cmds=
13972
 
      fi
13973
 
 
13974
 
      # Extract the symbol export list from an `--export-all' def file,
13975
 
      # then regenerate the def file from the symbol export list, so that
13976
 
      # the compiled dll only exports the symbol export list.
13977
 
      # Be careful not to strip the DATA tag left by newer dlltools.
13978
 
      export_symbols_cmds_GCJ="$ltdll_cmds"'
13979
 
        $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
13980
 
        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
13981
 
 
13982
 
      # If the export-symbols file already is a .def file (1st line
13983
 
      # is EXPORTS), use it as is.
13984
 
      # If DATA tags from a recent dlltool are present, honour them!
13985
 
      archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
13986
 
          cp $export_symbols $output_objdir/$soname-def;
 
18168
      allow_undefined_flag_GCJ=no
 
18169
      always_export_symbols_GCJ=no
 
18170
      enable_shared_with_static_runtimes_GCJ=yes
 
18171
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
18172
 
 
18173
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
18174
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
18175
        # If the export-symbols file already is a .def file (1st line
 
18176
        # is EXPORTS), use it as is; otherwise, prepend...
 
18177
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
18178
          cp $export_symbols $output_objdir/$soname.def;
13987
18179
        else
13988
 
          echo EXPORTS > $output_objdir/$soname-def;
13989
 
          _lt_hint=1;
13990
 
          cat $export_symbols | while read symbol; do
13991
 
           set dummy \$symbol;
13992
 
           case \$# in
13993
 
             2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
13994
 
             *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
13995
 
           esac;
13996
 
           _lt_hint=`expr 1 + \$_lt_hint`;
13997
 
          done;
 
18180
          echo EXPORTS > $output_objdir/$soname.def;
 
18181
          cat $export_symbols >> $output_objdir/$soname.def;
13998
18182
        fi~
13999
 
        '"$ltdll_cmds"'
14000
 
        $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
14001
 
        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
14002
 
        $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
14003
 
        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
14004
 
        $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
18183
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
18184
      else
 
18185
        ld_shlibs=no
 
18186
      fi
14005
18187
      ;;
14006
18188
 
14007
18189
    netbsd*)
14009
18191
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14010
18192
        wlarc=
14011
18193
      else
14012
 
        archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14013
 
        archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18194
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18195
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14014
18196
      fi
14015
18197
      ;;
14016
18198
 
14017
18199
    solaris* | sysv5*)
14018
 
      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
18200
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14019
18201
        ld_shlibs_GCJ=no
14020
18202
        cat <<EOF 1>&2
14021
18203
 
14027
18209
*** used, and then restart.
14028
18210
 
14029
18211
EOF
14030
 
      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
18212
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14031
18213
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14032
18214
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14033
18215
      else
14043
18225
      ;;
14044
18226
 
14045
18227
    *)
14046
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
18228
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14047
18229
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048
18230
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14049
18231
      else
14056
18238
      runpath_var=LD_RUN_PATH
14057
18239
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14058
18240
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14059
 
      case $host_os in
14060
 
      cygwin* | mingw* | pw32*)
14061
 
        # dlltool doesn't understand --whole-archive et. al.
14062
 
        whole_archive_flag_spec_GCJ=
14063
 
        ;;
14064
 
      *)
14065
 
        # ancient GNU ld didn't support --whole-archive et. al.
14066
 
        if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
14067
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14068
 
        else
 
18241
      # ancient GNU ld didn't support --whole-archive et. al.
 
18242
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
18243
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18244
      else
14069
18245
        whole_archive_flag_spec_GCJ=
14070
 
        fi
14071
 
        ;;
14072
 
      esac
 
18246
      fi
14073
18247
    fi
14074
18248
  else
14075
18249
    # PORTME fill in a description of your system's linker (not GNU ld)
14098
18272
      else
14099
18273
        # If we're using GNU nm, then we don't want the "-C" option.
14100
18274
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
14101
 
        if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
 
18275
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14102
18276
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14103
18277
        else
14104
18278
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14166
18340
        allow_undefined_flag_GCJ='-berok'
14167
18341
       # Determine the default libpath from the value encoded in an empty executable.
14168
18342
        cat >conftest.$ac_ext <<_ACEOF
14169
 
#line $LINENO "configure"
14170
18343
/* confdefs.h.  */
14171
18344
_ACEOF
14172
18345
cat confdefs.h >>conftest.$ac_ext
14183
18356
_ACEOF
14184
18357
rm -f conftest.$ac_objext conftest$ac_exeext
14185
18358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14186
 
  (eval $ac_link) 2>&5
 
18359
  (eval $ac_link) 2>conftest.er1
14187
18360
  ac_status=$?
 
18361
  grep -v '^ *+' conftest.er1 >conftest.err
 
18362
  rm -f conftest.er1
 
18363
  cat conftest.err >&5
14188
18364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189
18365
  (exit $ac_status); } &&
14190
 
         { ac_try='test -s conftest$ac_exeext'
 
18366
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18368
  (eval $ac_try) 2>&5
 
18369
  ac_status=$?
 
18370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18371
  (exit $ac_status); }; } &&
 
18372
         { ac_try='test -s conftest$ac_exeext'
14191
18373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192
18374
  (eval $ac_try) 2>&5
14193
18375
  ac_status=$?
14194
18376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195
18377
  (exit $ac_status); }; }; then
14196
18378
 
14197
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18379
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14198
18380
}'`
14199
18381
# Check for a 64-bit object if we didn't find anything.
14200
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18382
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14201
18383
}'`; fi
14202
18384
else
14203
18385
  echo "$as_me: failed program was:" >&5
14204
18386
sed 's/^/| /' conftest.$ac_ext >&5
14205
18387
 
14206
18388
fi
14207
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18389
rm -f conftest.err conftest.$ac_objext \
 
18390
      conftest$ac_exeext conftest.$ac_ext
14208
18391
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14209
18392
 
14210
18393
        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14218
18401
        else
14219
18402
         # Determine the default libpath from the value encoded in an empty executable.
14220
18403
         cat >conftest.$ac_ext <<_ACEOF
14221
 
#line $LINENO "configure"
14222
18404
/* confdefs.h.  */
14223
18405
_ACEOF
14224
18406
cat confdefs.h >>conftest.$ac_ext
14235
18417
_ACEOF
14236
18418
rm -f conftest.$ac_objext conftest$ac_exeext
14237
18419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14238
 
  (eval $ac_link) 2>&5
 
18420
  (eval $ac_link) 2>conftest.er1
14239
18421
  ac_status=$?
 
18422
  grep -v '^ *+' conftest.er1 >conftest.err
 
18423
  rm -f conftest.er1
 
18424
  cat conftest.err >&5
14240
18425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241
18426
  (exit $ac_status); } &&
14242
 
         { ac_try='test -s conftest$ac_exeext'
 
18427
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18429
  (eval $ac_try) 2>&5
 
18430
  ac_status=$?
 
18431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18432
  (exit $ac_status); }; } &&
 
18433
         { ac_try='test -s conftest$ac_exeext'
14243
18434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244
18435
  (eval $ac_try) 2>&5
14245
18436
  ac_status=$?
14246
18437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247
18438
  (exit $ac_status); }; }; then
14248
18439
 
14249
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18440
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14250
18441
}'`
14251
18442
# Check for a 64-bit object if we didn't find anything.
14252
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18443
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14253
18444
}'`; fi
14254
18445
else
14255
18446
  echo "$as_me: failed program was:" >&5
14256
18447
sed 's/^/| /' conftest.$ac_ext >&5
14257
18448
 
14258
18449
fi
14259
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18450
rm -f conftest.err conftest.$ac_objext \
 
18451
      conftest$ac_exeext conftest.$ac_ext
14260
18452
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14261
18453
 
14262
18454
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14293
18485
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14294
18486
      # no search path for DLLs.
14295
18487
      hardcode_libdir_flag_spec_GCJ=' '
14296
 
      allow_undefined_flag_GCJ=unsupported
 
18488
      allow_undefined_flag_GCJ=no
14297
18489
      # Tell ltmain to make .lib files, not .a files.
14298
18490
      libext=lib
 
18491
      # Tell ltmain to make .dll files, not .so files.
 
18492
      shrext=".dll"
14299
18493
      # FIXME: Setting linknames here is a bad hack.
14300
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18494
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14301
18495
      # The linker will automatically build a .lib file if we build a DLL.
14302
18496
      old_archive_From_new_cmds_GCJ='true'
14303
18497
      # FIXME: Should let the user specify the lib program.
14304
18498
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
14305
18499
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
18500
      enable_shared_with_static_runtimes_GCJ=yes
14306
18501
      ;;
14307
18502
 
14308
18503
    darwin* | rhapsody*)
 
18504
    if test "$GXX" = yes ; then
 
18505
      archive_cmds_need_lc_GCJ=no
14309
18506
      case "$host_os" in
14310
18507
      rhapsody* | darwin1.[012])
14311
18508
        allow_undefined_flag_GCJ='-undefined suppress'
14312
18509
        ;;
14313
18510
      *) # Darwin 1.3 on
14314
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
18511
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
14315
18512
        ;;
14316
18513
      esac
14317
 
 
14318
 
      # FIXME: Relying on posixy $() will cause problems for
14319
 
      #        cross-compilation, but unfortunately the echo tests do not
14320
 
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
14321
 
      #        `"' quotes if we put them in here... so don't!
14322
 
      archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
14323
 
      # We need to add '_' to the symbols in $export_symbols first
14324
 
      #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
14325
 
      hardcode_direct_GCJ=yes
14326
 
      hardcode_shlibpath_var_GCJ=no
 
18514
        lt_int_apple_cc_single_mod=no
 
18515
        output_verbose_link_cmd='echo'
 
18516
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
18517
          lt_int_apple_cc_single_mod=yes
 
18518
        fi
 
18519
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18520
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18521
        else
 
18522
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18523
      fi
 
18524
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18525
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
18526
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18527
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18528
        else
 
18529
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18530
        fi
 
18531
          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}'
 
18532
      hardcode_direct_GCJ=no
 
18533
      hardcode_automatic_GCJ=yes
 
18534
      hardcode_shlibpath_var_GCJ=unsupported
14327
18535
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
18536
      link_all_deplibs_GCJ=yes
 
18537
    else
 
18538
      ld_shlibs_GCJ=no
 
18539
    fi
14328
18540
      ;;
14329
18541
 
14330
18542
    dgux*)
14364
18576
      hardcode_shlibpath_var_GCJ=no
14365
18577
      ;;
14366
18578
 
14367
 
    hpux9* | hpux10* | hpux11*)
 
18579
    hpux9*)
14368
18580
      if test "$GCC" = yes; then
14369
 
        case $host_os in
14370
 
          hpux9*)
14371
 
            archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14372
 
            ;;
14373
 
          *)
14374
 
            if test "$host_cpu" = ia64; then
14375
 
              archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14376
 
            else
14377
 
              archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14378
 
            fi
14379
 
            ;;
14380
 
        esac
14381
 
      else
14382
 
        case $host_os in
14383
 
          hpux9*)
14384
 
            archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14385
 
            ;;
14386
 
          *)
14387
 
            if test "$host_cpu" = ia64; then
14388
 
              archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14389
 
            else
14390
 
              archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14391
 
            fi
14392
 
            ;;
14393
 
        esac
14394
 
      fi
14395
 
      if test "$host_cpu" = ia64; then
14396
 
        hardcode_libdir_flag_spec_GCJ='-L$libdir'
14397
 
        hardcode_direct_GCJ=no
14398
 
        hardcode_shlibpath_var_GCJ=no
14399
 
      else
14400
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
14401
 
        hardcode_libdir_separator_GCJ=:
14402
 
        hardcode_direct_GCJ=yes
14403
 
      fi
 
18581
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18582
      else
 
18583
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18584
      fi
 
18585
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18586
      hardcode_libdir_separator_GCJ=:
 
18587
      hardcode_direct_GCJ=yes
 
18588
 
14404
18589
      # hardcode_minus_L: Not really in the search PATH,
14405
18590
      # but as the default location of the library.
14406
18591
      hardcode_minus_L_GCJ=yes
14407
18592
      export_dynamic_flag_spec_GCJ='${wl}-E'
14408
18593
      ;;
14409
18594
 
 
18595
    hpux10* | hpux11*)
 
18596
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18597
        case "$host_cpu" in
 
18598
        hppa*64*|ia64*)
 
18599
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18600
          ;;
 
18601
        *)
 
18602
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18603
          ;;
 
18604
        esac
 
18605
      else
 
18606
        case "$host_cpu" in
 
18607
        hppa*64*|ia64*)
 
18608
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18609
          ;;
 
18610
        *)
 
18611
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18612
          ;;
 
18613
        esac
 
18614
      fi
 
18615
      if test "$with_gnu_ld" = no; then
 
18616
        case "$host_cpu" in
 
18617
        hppa*64*)
 
18618
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18619
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18620
          hardcode_libdir_separator_GCJ=:
 
18621
          hardcode_direct_GCJ=no
 
18622
          hardcode_shlibpath_var_GCJ=no
 
18623
          ;;
 
18624
        ia64*)
 
18625
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18626
          hardcode_direct_GCJ=no
 
18627
          hardcode_shlibpath_var_GCJ=no
 
18628
 
 
18629
          # hardcode_minus_L: Not really in the search PATH,
 
18630
          # but as the default location of the library.
 
18631
          hardcode_minus_L_GCJ=yes
 
18632
          ;;
 
18633
        *)
 
18634
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18635
          hardcode_libdir_separator_GCJ=:
 
18636
          hardcode_direct_GCJ=yes
 
18637
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18638
 
 
18639
          # hardcode_minus_L: Not really in the search PATH,
 
18640
          # but as the default location of the library.
 
18641
          hardcode_minus_L_GCJ=yes
 
18642
          ;;
 
18643
        esac
 
18644
      fi
 
18645
      ;;
 
18646
 
14410
18647
    irix5* | irix6* | nonstopux*)
14411
18648
      if test "$GCC" = yes; then
14412
18649
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $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'
14413
18650
      else
14414
18651
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18652
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
14415
18653
      fi
14416
18654
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14417
18655
      hardcode_libdir_separator_GCJ=:
14440
18678
    openbsd*)
14441
18679
      hardcode_direct_GCJ=yes
14442
18680
      hardcode_shlibpath_var_GCJ=no
14443
 
 
14444
18681
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14445
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
18682
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14446
18683
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
14447
18684
        export_dynamic_flag_spec_GCJ='${wl}-E'
14448
18685
      else
14452
18689
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
14453
18690
           ;;
14454
18691
         *)
14455
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
18692
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14456
18693
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
14457
18694
           ;;
14458
18695
       esac
14487
18724
      else
14488
18725
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
14489
18726
        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'
14490
 
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
18727
        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~
14491
18728
        $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'
14492
18729
 
14493
18730
        # Both c and cxx compiler support -rpath directly
14508
18745
      no_undefined_flag_GCJ=' -z text'
14509
18746
      if test "$GCC" = yes; then
14510
18747
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14511
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18748
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14512
18749
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14513
18750
      else
14514
18751
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14515
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18752
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14516
18753
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14517
18754
      fi
14518
18755
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
14540
18777
      ;;
14541
18778
 
14542
18779
    sysv4)
14543
 
      if test "x$host_vendor" = xsni; then
14544
 
        archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
14545
 
        hardcode_direct_GCJ=yes # is this really true???
14546
 
      else
14547
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14548
 
        hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
14549
 
      fi
 
18780
      case $host_vendor in
 
18781
        sni)
 
18782
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18783
          hardcode_direct_GCJ=yes # is this really true???
 
18784
        ;;
 
18785
        siemens)
 
18786
          ## LD is ld it makes a PLAMLIB
 
18787
          ## CC just makes a GrossModule.
 
18788
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18789
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18790
          hardcode_direct_GCJ=no
 
18791
        ;;
 
18792
        motorola)
 
18793
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18794
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18795
        ;;
 
18796
      esac
14550
18797
      runpath_var='LD_RUN_PATH'
14551
18798
      hardcode_shlibpath_var_GCJ=no
14552
18799
      ;;
14592
18839
      # $CC -shared without GNU ld will not create a library from C++
14593
18840
      # object files and a static libstdc++, better avoid it by now
14594
18841
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14595
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18842
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14596
18843
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14597
18844
      hardcode_libdir_flag_spec_GCJ=
14598
18845
      hardcode_shlibpath_var_GCJ=no
14623
18870
#
14624
18871
# Do we need to explicitly link libc?
14625
18872
#
14626
 
archive_cmds_need_lc_GCJ=yes
14627
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
14628
 
  case $archive_cmds_GCJ in
14629
 
  *'~'*)
14630
 
    # FIXME: we may have to deal with multi-command sequences.
14631
 
    ;;
14632
 
  '$CC '*)
14633
 
    # Test whether the compiler implicitly links with -lc since on some
14634
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
14635
 
    # to ld, don't add -lc before -lgcc.
14636
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18873
case "x$archive_cmds_need_lc_GCJ" in
 
18874
x|xyes)
 
18875
  # Assume -lc should be added
 
18876
  archive_cmds_need_lc_GCJ=yes
 
18877
 
 
18878
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18879
    case $archive_cmds_GCJ in
 
18880
    *'~'*)
 
18881
      # FIXME: we may have to deal with multi-command sequences.
 
18882
      ;;
 
18883
    '$CC '*)
 
18884
      # Test whether the compiler implicitly links with -lc since on some
 
18885
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18886
      # to ld, don't add -lc before -lgcc.
 
18887
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14637
18888
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14638
 
    $rm conftest*
14639
 
    echo 'static int dummy;' > conftest.$ac_ext
 
18889
      $rm conftest*
 
18890
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14640
18891
 
14641
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18892
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14642
18893
  (eval $ac_compile) 2>&5
14643
18894
  ac_status=$?
14644
18895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645
18896
  (exit $ac_status); } 2>conftest.err; then
14646
 
      soname=conftest
14647
 
      lib=conftest
14648
 
      libobjs=conftest.$ac_objext
14649
 
      deplibs=
14650
 
      wl=$lt_prog_compiler_wl_GCJ
14651
 
      compiler_flags=-v
14652
 
      linker_flags=-v
14653
 
      verstring=
14654
 
      output_objdir=.
14655
 
      libname=conftest
14656
 
      lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14657
 
      allow_undefined_flag_GCJ=
14658
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18897
        soname=conftest
 
18898
        lib=conftest
 
18899
        libobjs=conftest.$ac_objext
 
18900
        deplibs=
 
18901
        wl=$lt_prog_compiler_wl_GCJ
 
18902
        compiler_flags=-v
 
18903
        linker_flags=-v
 
18904
        verstring=
 
18905
        output_objdir=.
 
18906
        libname=conftest
 
18907
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18908
        allow_undefined_flag_GCJ=
 
18909
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14659
18910
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14660
18911
  ac_status=$?
14661
18912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662
18913
  (exit $ac_status); }
14663
 
      then
14664
 
        archive_cmds_need_lc_GCJ=no
 
18914
        then
 
18915
          archive_cmds_need_lc_GCJ=no
 
18916
        else
 
18917
          archive_cmds_need_lc_GCJ=yes
 
18918
        fi
 
18919
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14665
18920
      else
14666
 
        archive_cmds_need_lc_GCJ=yes
 
18921
        cat conftest.err 1>&5
14667
18922
      fi
14668
 
      allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14669
 
    else
14670
 
      cat conftest.err 1>&5
14671
 
    fi
14672
 
    $rm conftest*
14673
 
    echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18923
      $rm conftest*
 
18924
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
14674
18925
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
14675
 
    ;;
14676
 
  esac
14677
 
fi
 
18926
      ;;
 
18927
    esac
 
18928
  fi
 
18929
  ;;
 
18930
esac
 
18931
 
 
18932
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18933
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18934
library_names_spec=
 
18935
libname_spec='lib$name'
 
18936
soname_spec=
 
18937
shrext=".so"
 
18938
postinstall_cmds=
 
18939
postuninstall_cmds=
 
18940
finish_cmds=
 
18941
finish_eval=
 
18942
shlibpath_var=
 
18943
shlibpath_overrides_runpath=unknown
 
18944
version_type=none
 
18945
dynamic_linker="$host_os ld.so"
 
18946
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18947
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18948
need_lib_prefix=unknown
 
18949
hardcode_into_libs=no
 
18950
 
 
18951
# when you set need_version to no, make sure it does not cause -set_version
 
18952
# flags to be left without arguments
 
18953
need_version=unknown
 
18954
 
 
18955
case $host_os in
 
18956
aix3*)
 
18957
  version_type=linux
 
18958
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18959
  shlibpath_var=LIBPATH
 
18960
 
 
18961
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18962
  soname_spec='${libname}${release}${shared_ext}$major'
 
18963
  ;;
 
18964
 
 
18965
aix4* | aix5*)
 
18966
  version_type=linux
 
18967
  need_lib_prefix=no
 
18968
  need_version=no
 
18969
  hardcode_into_libs=yes
 
18970
  if test "$host_cpu" = ia64; then
 
18971
    # AIX 5 supports IA64
 
18972
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18973
    shlibpath_var=LD_LIBRARY_PATH
 
18974
  else
 
18975
    # With GCC up to 2.95.x, collect2 would create an import file
 
18976
    # for dependence libraries.  The import file would start with
 
18977
    # the line `#! .'.  This would cause the generated library to
 
18978
    # depend on `.', always an invalid library.  This was fixed in
 
18979
    # development snapshots of GCC prior to 3.0.
 
18980
    case $host_os in
 
18981
      aix4 | aix4.[01] | aix4.[01].*)
 
18982
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18983
           echo ' yes '
 
18984
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18985
        :
 
18986
      else
 
18987
        can_build_shared=no
 
18988
      fi
 
18989
      ;;
 
18990
    esac
 
18991
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18992
    # soname into executable. Probably we can add versioning support to
 
18993
    # collect2, so additional links can be useful in future.
 
18994
    if test "$aix_use_runtimelinking" = yes; then
 
18995
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18996
      # instead of lib<name>.a to let people know that these are not
 
18997
      # typical AIX shared libraries.
 
18998
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18999
    else
 
19000
      # We preserve .a as extension for shared libraries through AIX4.2
 
19001
      # and later when we are not doing run time linking.
 
19002
      library_names_spec='${libname}${release}.a $libname.a'
 
19003
      soname_spec='${libname}${release}${shared_ext}$major'
 
19004
    fi
 
19005
    shlibpath_var=LIBPATH
 
19006
  fi
 
19007
  ;;
 
19008
 
 
19009
amigaos*)
 
19010
  library_names_spec='$libname.ixlibrary $libname.a'
 
19011
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
19012
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
19013
  ;;
 
19014
 
 
19015
beos*)
 
19016
  library_names_spec='${libname}${shared_ext}'
 
19017
  dynamic_linker="$host_os ld.so"
 
19018
  shlibpath_var=LIBRARY_PATH
 
19019
  ;;
 
19020
 
 
19021
bsdi4*)
 
19022
  version_type=linux
 
19023
  need_version=no
 
19024
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19025
  soname_spec='${libname}${release}${shared_ext}$major'
 
19026
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
19027
  shlibpath_var=LD_LIBRARY_PATH
 
19028
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
19029
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
19030
  # the default ld.so.conf also contains /usr/contrib/lib and
 
19031
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
19032
  # libtool to hard-code these into programs
 
19033
  ;;
 
19034
 
 
19035
cygwin* | mingw* | pw32*)
 
19036
  version_type=windows
 
19037
  shrext=".dll"
 
19038
  need_version=no
 
19039
  need_lib_prefix=no
 
19040
 
 
19041
  case $GCC,$host_os in
 
19042
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
19043
    library_names_spec='$libname.dll.a'
 
19044
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
19045
    postinstall_cmds='base_file=`basename \${file}`~
 
19046
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
19047
      dldir=$destdir/`dirname \$dlpath`~
 
19048
      test -d \$dldir || mkdir -p \$dldir~
 
19049
      $install_prog $dir/$dlname \$dldir/$dlname'
 
19050
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
19051
      dlpath=$dir/\$dldll~
 
19052
       $rm \$dlpath'
 
19053
    shlibpath_overrides_runpath=yes
 
19054
 
 
19055
    case $host_os in
 
19056
    cygwin*)
 
19057
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
19058
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19059
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
19060
      ;;
 
19061
    mingw*)
 
19062
      # MinGW DLLs use traditional 'lib' prefix
 
19063
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19064
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19065
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
19066
        # It is most probably a Windows format PATH printed by
 
19067
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
19068
        # path with ; separators, and with drive letters. We can handle the
 
19069
        # drive letters (cygwin fileutils understands them), so leave them,
 
19070
        # especially as we might pass files found there to a mingw objdump,
 
19071
        # which wouldn't understand a cygwinified path. Ahh.
 
19072
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19073
      else
 
19074
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19075
      fi
 
19076
      ;;
 
19077
    pw32*)
 
19078
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
19079
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
19080
      ;;
 
19081
    esac
 
19082
    ;;
 
19083
 
 
19084
  *)
 
19085
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
19086
    ;;
 
19087
  esac
 
19088
  dynamic_linker='Win32 ld.exe'
 
19089
  # FIXME: first we should search . and the directory the executable is in
 
19090
  shlibpath_var=PATH
 
19091
  ;;
 
19092
 
 
19093
darwin* | rhapsody*)
 
19094
  dynamic_linker="$host_os dyld"
 
19095
  version_type=darwin
 
19096
  need_lib_prefix=no
 
19097
  need_version=no
 
19098
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
19099
  soname_spec='${libname}${release}${major}$shared_ext'
 
19100
  shlibpath_overrides_runpath=yes
 
19101
  shlibpath_var=DYLD_LIBRARY_PATH
 
19102
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
19103
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
19104
  if test "$GCC" = yes; then
 
19105
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
19106
  else
 
19107
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
19108
  fi
 
19109
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
19110
  ;;
 
19111
 
 
19112
dgux*)
 
19113
  version_type=linux
 
19114
  need_lib_prefix=no
 
19115
  need_version=no
 
19116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
19117
  soname_spec='${libname}${release}${shared_ext}$major'
 
19118
  shlibpath_var=LD_LIBRARY_PATH
 
19119
  ;;
 
19120
 
 
19121
freebsd1*)
 
19122
  dynamic_linker=no
 
19123
  ;;
 
19124
 
 
19125
freebsd*-gnu*)
 
19126
  version_type=linux
 
19127
  need_lib_prefix=no
 
19128
  need_version=no
 
19129
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19130
  soname_spec='${libname}${release}${shared_ext}$major'
 
19131
  shlibpath_var=LD_LIBRARY_PATH
 
19132
  shlibpath_overrides_runpath=no
 
19133
  hardcode_into_libs=yes
 
19134
  dynamic_linker='GNU ld.so'
 
19135
  ;;
 
19136
 
 
19137
freebsd*)
 
19138
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
19139
  version_type=freebsd-$objformat
 
19140
  case $version_type in
 
19141
    freebsd-elf*)
 
19142
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19143
      need_version=no
 
19144
      need_lib_prefix=no
 
19145
      ;;
 
19146
    freebsd-*)
 
19147
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19148
      need_version=yes
 
19149
      ;;
 
19150
  esac
 
19151
  shlibpath_var=LD_LIBRARY_PATH
 
19152
  case $host_os in
 
19153
  freebsd2*)
 
19154
    shlibpath_overrides_runpath=yes
 
19155
    ;;
 
19156
  freebsd3.01* | freebsdelf3.01*)
 
19157
    shlibpath_overrides_runpath=yes
 
19158
    hardcode_into_libs=yes
 
19159
    ;;
 
19160
  *) # from 3.2 on
 
19161
    shlibpath_overrides_runpath=no
 
19162
    hardcode_into_libs=yes
 
19163
    ;;
 
19164
  esac
 
19165
  ;;
 
19166
 
 
19167
gnu*)
 
19168
  version_type=linux
 
19169
  need_lib_prefix=no
 
19170
  need_version=no
 
19171
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19172
  soname_spec='${libname}${release}${shared_ext}$major'
 
19173
  shlibpath_var=LD_LIBRARY_PATH
 
19174
  hardcode_into_libs=yes
 
19175
  ;;
 
19176
 
 
19177
hpux9* | hpux10* | hpux11*)
 
19178
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19179
  # link against other versions.
 
19180
  version_type=sunos
 
19181
  need_lib_prefix=no
 
19182
  need_version=no
 
19183
  case "$host_cpu" in
 
19184
  ia64*)
 
19185
    shrext='.so'
 
19186
    hardcode_into_libs=yes
 
19187
    dynamic_linker="$host_os dld.so"
 
19188
    shlibpath_var=LD_LIBRARY_PATH
 
19189
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19190
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19191
    soname_spec='${libname}${release}${shared_ext}$major'
 
19192
    if test "X$HPUX_IA64_MODE" = X32; then
 
19193
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19194
    else
 
19195
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19196
    fi
 
19197
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19198
    ;;
 
19199
   hppa*64*)
 
19200
     shrext='.sl'
 
19201
     hardcode_into_libs=yes
 
19202
     dynamic_linker="$host_os dld.sl"
 
19203
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19204
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19205
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19206
     soname_spec='${libname}${release}${shared_ext}$major'
 
19207
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19208
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19209
     ;;
 
19210
   *)
 
19211
    shrext='.sl'
 
19212
    dynamic_linker="$host_os dld.sl"
 
19213
    shlibpath_var=SHLIB_PATH
 
19214
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19215
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19216
    soname_spec='${libname}${release}${shared_ext}$major'
 
19217
    ;;
 
19218
  esac
 
19219
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19220
  postinstall_cmds='chmod 555 $lib'
 
19221
  ;;
 
19222
 
 
19223
irix5* | irix6* | nonstopux*)
 
19224
  case $host_os in
 
19225
    nonstopux*) version_type=nonstopux ;;
 
19226
    *)
 
19227
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19228
                version_type=linux
 
19229
        else
 
19230
                version_type=irix
 
19231
        fi ;;
 
19232
  esac
 
19233
  need_lib_prefix=no
 
19234
  need_version=no
 
19235
  soname_spec='${libname}${release}${shared_ext}$major'
 
19236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19237
  case $host_os in
 
19238
  irix5* | nonstopux*)
 
19239
    libsuff= shlibsuff=
 
19240
    ;;
 
19241
  *)
 
19242
    case $LD in # libtool.m4 will add one of these switches to LD
 
19243
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19244
      libsuff= shlibsuff= libmagic=32-bit;;
 
19245
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19246
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19247
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19248
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19249
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19250
    esac
 
19251
    ;;
 
19252
  esac
 
19253
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19254
  shlibpath_overrides_runpath=no
 
19255
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19256
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19257
  hardcode_into_libs=yes
 
19258
  ;;
 
19259
 
 
19260
# No shared lib support for Linux oldld, aout, or coff.
 
19261
linux*oldld* | linux*aout* | linux*coff*)
 
19262
  dynamic_linker=no
 
19263
  ;;
 
19264
 
 
19265
# This must be Linux ELF.
 
19266
linux*)
 
19267
  version_type=linux
 
19268
  need_lib_prefix=no
 
19269
  need_version=no
 
19270
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19271
  soname_spec='${libname}${release}${shared_ext}$major'
 
19272
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19273
  libsuff=
 
19274
  if test "x$LINUX_64_MODE" = x64; then
 
19275
    # Some platforms are per default 64-bit, so there's no /lib64
 
19276
    if test -d /lib64; then
 
19277
      libsuff=64
 
19278
    fi
 
19279
  fi
 
19280
  shlibpath_var=LD_LIBRARY_PATH
 
19281
  shlibpath_overrides_runpath=no
 
19282
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
19283
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
19284
  # This implies no fast_install, which is unacceptable.
 
19285
  # Some rework will be needed to allow for fast_install
 
19286
  # before this can be enabled.
 
19287
  hardcode_into_libs=yes
 
19288
 
 
19289
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19290
  # powerpc, because MkLinux only supported shared libraries with the
 
19291
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19292
  # most powerpc-linux boxes support dynamic linking these days and
 
19293
  # people can always --disable-shared, the test was removed, and we
 
19294
  # assume the GNU/Linux dynamic linker is in use.
 
19295
  dynamic_linker='GNU/Linux ld.so'
 
19296
  ;;
 
19297
 
 
19298
netbsd*)
 
19299
  version_type=sunos
 
19300
  need_lib_prefix=no
 
19301
  need_version=no
 
19302
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19303
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19304
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19305
    dynamic_linker='NetBSD (a.out) ld.so'
 
19306
  else
 
19307
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
19308
    soname_spec='${libname}${release}${shared_ext}$major'
 
19309
    dynamic_linker='NetBSD ld.elf_so'
 
19310
  fi
 
19311
  shlibpath_var=LD_LIBRARY_PATH
 
19312
  shlibpath_overrides_runpath=yes
 
19313
  hardcode_into_libs=yes
 
19314
  ;;
 
19315
 
 
19316
newsos6)
 
19317
  version_type=linux
 
19318
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19319
  shlibpath_var=LD_LIBRARY_PATH
 
19320
  shlibpath_overrides_runpath=yes
 
19321
  ;;
 
19322
 
 
19323
nto-qnx*)
 
19324
  version_type=linux
 
19325
  need_lib_prefix=no
 
19326
  need_version=no
 
19327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19328
  soname_spec='${libname}${release}${shared_ext}$major'
 
19329
  shlibpath_var=LD_LIBRARY_PATH
 
19330
  shlibpath_overrides_runpath=yes
 
19331
  ;;
 
19332
 
 
19333
openbsd*)
 
19334
  version_type=sunos
 
19335
  need_lib_prefix=no
 
19336
  need_version=no
 
19337
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19338
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19339
  shlibpath_var=LD_LIBRARY_PATH
 
19340
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19341
    case $host_os in
 
19342
      openbsd2.[89] | openbsd2.[89].*)
 
19343
        shlibpath_overrides_runpath=no
 
19344
        ;;
 
19345
      *)
 
19346
        shlibpath_overrides_runpath=yes
 
19347
        ;;
 
19348
      esac
 
19349
  else
 
19350
    shlibpath_overrides_runpath=yes
 
19351
  fi
 
19352
  ;;
 
19353
 
 
19354
os2*)
 
19355
  libname_spec='$name'
 
19356
  shrext=".dll"
 
19357
  need_lib_prefix=no
 
19358
  library_names_spec='$libname${shared_ext} $libname.a'
 
19359
  dynamic_linker='OS/2 ld.exe'
 
19360
  shlibpath_var=LIBPATH
 
19361
  ;;
 
19362
 
 
19363
osf3* | osf4* | osf5*)
 
19364
  version_type=osf
 
19365
  need_lib_prefix=no
 
19366
  need_version=no
 
19367
  soname_spec='${libname}${release}${shared_ext}$major'
 
19368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19369
  shlibpath_var=LD_LIBRARY_PATH
 
19370
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19371
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19372
  ;;
 
19373
 
 
19374
sco3.2v5*)
 
19375
  version_type=osf
 
19376
  soname_spec='${libname}${release}${shared_ext}$major'
 
19377
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19378
  shlibpath_var=LD_LIBRARY_PATH
 
19379
  ;;
 
19380
 
 
19381
solaris*)
 
19382
  version_type=linux
 
19383
  need_lib_prefix=no
 
19384
  need_version=no
 
19385
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19386
  soname_spec='${libname}${release}${shared_ext}$major'
 
19387
  shlibpath_var=LD_LIBRARY_PATH
 
19388
  shlibpath_overrides_runpath=yes
 
19389
  hardcode_into_libs=yes
 
19390
  # ldd complains unless libraries are executable
 
19391
  postinstall_cmds='chmod +x $lib'
 
19392
  ;;
 
19393
 
 
19394
sunos4*)
 
19395
  version_type=sunos
 
19396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19397
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19398
  shlibpath_var=LD_LIBRARY_PATH
 
19399
  shlibpath_overrides_runpath=yes
 
19400
  if test "$with_gnu_ld" = yes; then
 
19401
    need_lib_prefix=no
 
19402
  fi
 
19403
  need_version=yes
 
19404
  ;;
 
19405
 
 
19406
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
19407
  version_type=linux
 
19408
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19409
  soname_spec='${libname}${release}${shared_ext}$major'
 
19410
  shlibpath_var=LD_LIBRARY_PATH
 
19411
  case $host_vendor in
 
19412
    sni)
 
19413
      shlibpath_overrides_runpath=no
 
19414
      need_lib_prefix=no
 
19415
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19416
      runpath_var=LD_RUN_PATH
 
19417
      ;;
 
19418
    siemens)
 
19419
      need_lib_prefix=no
 
19420
      ;;
 
19421
    motorola)
 
19422
      need_lib_prefix=no
 
19423
      need_version=no
 
19424
      shlibpath_overrides_runpath=no
 
19425
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19426
      ;;
 
19427
  esac
 
19428
  ;;
 
19429
 
 
19430
sysv4*MP*)
 
19431
  if test -d /usr/nec ;then
 
19432
    version_type=linux
 
19433
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19434
    soname_spec='$libname${shared_ext}.$major'
 
19435
    shlibpath_var=LD_LIBRARY_PATH
 
19436
  fi
 
19437
  ;;
 
19438
 
 
19439
uts4*)
 
19440
  version_type=linux
 
19441
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19442
  soname_spec='${libname}${release}${shared_ext}$major'
 
19443
  shlibpath_var=LD_LIBRARY_PATH
 
19444
  ;;
 
19445
 
 
19446
*)
 
19447
  dynamic_linker=no
 
19448
  ;;
 
19449
esac
 
19450
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19451
echo "${ECHO_T}$dynamic_linker" >&6
 
19452
test "$dynamic_linker" = no && can_build_shared=no
14678
19453
 
14679
19454
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14680
19455
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14681
19456
hardcode_action_GCJ=
14682
19457
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14683
 
   test -n "$runpath_var GCJ"; then
 
19458
   test -n "$runpath_var GCJ" || \
 
19459
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
14684
19460
 
14685
19461
  # We can hardcode non-existant directories.
14686
19462
  if test "$hardcode_direct_GCJ" != no &&
14722
19498
  echo "$as_me:$LINENO: result: yes" >&5
14723
19499
echo "${ECHO_T}yes" >&6
14724
19500
else
14725
 
  echo "$as_me:$LINENO: result: no" >&5
14726
 
echo "${ECHO_T}no" >&6
14727
 
fi
14728
 
 
14729
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14730
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14731
 
library_names_spec=
14732
 
libname_spec='lib$name'
14733
 
soname_spec=
14734
 
postinstall_cmds=
14735
 
postuninstall_cmds=
14736
 
finish_cmds=
14737
 
finish_eval=
14738
 
shlibpath_var=
14739
 
shlibpath_overrides_runpath=unknown
14740
 
version_type=none
14741
 
dynamic_linker="$host_os ld.so"
14742
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14743
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14744
 
need_lib_prefix=unknown
14745
 
hardcode_into_libs=no
14746
 
 
14747
 
# when you set need_version to no, make sure it does not cause -set_version
14748
 
# flags to be left without arguments
14749
 
need_version=unknown
14750
 
 
14751
 
case $host_os in
14752
 
aix3*)
14753
 
  version_type=linux
14754
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
14755
 
  shlibpath_var=LIBPATH
14756
 
 
14757
 
  # AIX 3 has no versioning support, so we append a major version to the name.
14758
 
  soname_spec='${libname}${release}.so$major'
14759
 
  ;;
14760
 
 
14761
 
aix4* | aix5*)
14762
 
  version_type=linux
14763
 
  if test "$host_cpu" = ia64; then
14764
 
    # AIX 5 supports IA64
14765
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
14766
 
    shlibpath_var=LD_LIBRARY_PATH
14767
 
  else
14768
 
    # With GCC up to 2.95.x, collect2 would create an import file
14769
 
    # for dependence libraries.  The import file would start with
14770
 
    # the line `#! .'.  This would cause the generated library to
14771
 
    # depend on `.', always an invalid library.  This was fixed in
14772
 
    # development snapshots of GCC prior to 3.0.
14773
 
    case $host_os in
14774
 
      aix4 | aix4.[01] | aix4.[01].*)
14775
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14776
 
           echo ' yes '
14777
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14778
 
        :
14779
 
      else
14780
 
        can_build_shared=no
14781
 
      fi
14782
 
      ;;
14783
 
    esac
14784
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14785
 
    # soname into executable. Probably we can add versioning support to
14786
 
    # collect2, so additional links can be useful in future.
14787
 
    if test "$aix_use_runtimelinking" = yes; then
14788
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14789
 
      # instead of lib<name>.a to let people know that these are not
14790
 
      # typical AIX shared libraries.
14791
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14792
 
    else
14793
 
      # We preserve .a as extension for shared libraries through AIX4.2
14794
 
      # and later when we are not doing run time linking.
14795
 
      library_names_spec='${libname}${release}.a $libname.a'
14796
 
      soname_spec='${libname}${release}.so$major'
14797
 
    fi
14798
 
    shlibpath_var=LIBPATH
14799
 
  fi
14800
 
  ;;
14801
 
 
14802
 
amigaos*)
14803
 
  library_names_spec='$libname.ixlibrary $libname.a'
14804
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14805
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
14806
 
  ;;
14807
 
 
14808
 
beos*)
14809
 
  library_names_spec='${libname}.so'
14810
 
  dynamic_linker="$host_os ld.so"
14811
 
  shlibpath_var=LIBRARY_PATH
14812
 
  ;;
14813
 
 
14814
 
bsdi4*)
14815
 
  version_type=linux
14816
 
  need_version=no
14817
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14818
 
  soname_spec='${libname}${release}.so$major'
14819
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14820
 
  shlibpath_var=LD_LIBRARY_PATH
14821
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14822
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14823
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14824
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14825
 
  # libtool to hard-code these into programs
14826
 
  ;;
14827
 
 
14828
 
cygwin* | mingw* | pw32*)
14829
 
  version_type=windows
14830
 
  need_version=no
14831
 
  need_lib_prefix=no
14832
 
  case $GCC,$host_os in
14833
 
  yes,cygwin*)
14834
 
    library_names_spec='$libname.dll.a'
14835
 
    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14836
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
14837
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
14838
 
      dldir=$destdir/`dirname \$dlpath`~
14839
 
      test -d \$dldir || mkdir -p \$dldir~
14840
 
      $install_prog .libs/$dlname \$dldir/$dlname'
14841
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
14842
 
      dlpath=$dir/\$dldll~
14843
 
       $rm \$dlpath'
14844
 
    ;;
14845
 
  yes,mingw*)
14846
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
14847
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
14848
 
    if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
14849
 
      # It is most probably a Windows format PATH printed by
14850
 
      # mingw gcc, but we are running on Cygwin. Gcc prints its search
14851
 
      # path with ; separators, and with drive letters. We can handle the
14852
 
      # drive letters (cygwin fileutils understands them), so leave them,
14853
 
      # especially as we might pass files found there to a mingw objdump,
14854
 
      # which wouldn't understand a cygwinified path. Ahh.
14855
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
14856
 
    else
14857
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed  -e "s/$PATH_SEPARATOR/ /g"`
14858
 
    fi
14859
 
    ;;
14860
 
  yes,pw32*)
14861
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
14862
 
    ;;
14863
 
  *)
14864
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
14865
 
    ;;
14866
 
  esac
14867
 
  dynamic_linker='Win32 ld.exe'
14868
 
  # FIXME: first we should search . and the directory the executable is in
14869
 
  shlibpath_var=PATH
14870
 
  ;;
14871
 
 
14872
 
darwin* | rhapsody*)
14873
 
  dynamic_linker="$host_os dyld"
14874
 
  version_type=darwin
14875
 
  need_lib_prefix=no
14876
 
  need_version=no
14877
 
  # FIXME: Relying on posixy $() will cause problems for
14878
 
  #        cross-compilation, but unfortunately the echo tests do not
14879
 
  #        yet detect zsh echo's removal of \ escapes.
14880
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
14881
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
14882
 
  shlibpath_overrides_runpath=yes
14883
 
  shlibpath_var=DYLD_LIBRARY_PATH
14884
 
  ;;
14885
 
 
14886
 
dgux*)
14887
 
  version_type=linux
14888
 
  need_lib_prefix=no
14889
 
  need_version=no
14890
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14891
 
  soname_spec='${libname}${release}.so$major'
14892
 
  shlibpath_var=LD_LIBRARY_PATH
14893
 
  ;;
14894
 
 
14895
 
freebsd1*)
14896
 
  dynamic_linker=no
14897
 
  ;;
14898
 
 
14899
 
freebsd*)
14900
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14901
 
  version_type=freebsd-$objformat
14902
 
  case $version_type in
14903
 
    freebsd-elf*)
14904
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
14905
 
      need_version=no
14906
 
      need_lib_prefix=no
14907
 
      ;;
14908
 
    freebsd-*)
14909
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
14910
 
      need_version=yes
14911
 
      ;;
14912
 
  esac
14913
 
  shlibpath_var=LD_LIBRARY_PATH
14914
 
  case $host_os in
14915
 
  freebsd2*)
14916
 
    shlibpath_overrides_runpath=yes
14917
 
    ;;
14918
 
  freebsd3.01* | freebsdelf3.01*)
14919
 
    shlibpath_overrides_runpath=yes
14920
 
    hardcode_into_libs=yes
14921
 
    ;;
14922
 
  *) # from 3.2 on
14923
 
    shlibpath_overrides_runpath=no
14924
 
    hardcode_into_libs=yes
14925
 
    ;;
14926
 
  esac
14927
 
  ;;
14928
 
 
14929
 
gnu*)
14930
 
  version_type=linux
14931
 
  need_lib_prefix=no
14932
 
  need_version=no
14933
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
14934
 
  soname_spec='${libname}${release}.so$major'
14935
 
  shlibpath_var=LD_LIBRARY_PATH
14936
 
  hardcode_into_libs=yes
14937
 
  ;;
14938
 
 
14939
 
hpux9* | hpux10* | hpux11*)
14940
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14941
 
  # link against other versions.
14942
 
  version_type=sunos
14943
 
  need_lib_prefix=no
14944
 
  need_version=no
14945
 
  if test "$host_cpu" = ia64; then
14946
 
    hardcode_into_libs=yes
14947
 
    dynamic_linker="$host_os dld.so"
14948
 
    shlibpath_var=LD_LIBRARY_PATH
14949
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14950
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14951
 
    soname_spec='${libname}${release}.so$major'
14952
 
    if test "X$HPUX_IA64_MODE" = X32; then
14953
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14954
 
    else
14955
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14956
 
    fi
14957
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14958
 
  else
14959
 
    dynamic_linker="$host_os dld.sl"
14960
 
    shlibpath_var=SHLIB_PATH
14961
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14962
 
    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
14963
 
    soname_spec='${libname}${release}.sl$major'
14964
 
  fi
14965
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14966
 
  postinstall_cmds='chmod 555 $lib'
14967
 
  ;;
14968
 
 
14969
 
irix5* | irix6* | nonstopux*)
14970
 
  case $host_os in
14971
 
    nonstopux*) version_type=nonstopux ;;
14972
 
    *)          version_type=irix ;;
14973
 
  esac
14974
 
  need_lib_prefix=no
14975
 
  need_version=no
14976
 
  soname_spec='${libname}${release}.so$major'
14977
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
14978
 
  case $host_os in
14979
 
  irix5* | nonstopux*)
14980
 
    libsuff= shlibsuff=
14981
 
    ;;
14982
 
  *)
14983
 
    case $LD in # libtool.m4 will add one of these switches to LD
14984
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
14985
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
14986
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
14987
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14988
 
    esac
14989
 
    ;;
14990
 
  esac
14991
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14992
 
  shlibpath_overrides_runpath=no
14993
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14994
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14995
 
  ;;
14996
 
 
14997
 
# No shared lib support for Linux oldld, aout, or coff.
14998
 
linux*oldld* | linux*aout* | linux*coff*)
14999
 
  dynamic_linker=no
15000
 
  ;;
15001
 
 
15002
 
# This must be Linux ELF.
15003
 
linux*)
15004
 
  version_type=linux
15005
 
  need_lib_prefix=no
15006
 
  need_version=no
15007
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15008
 
  soname_spec='${libname}${release}.so$major'
15009
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15010
 
  libsuff=
15011
 
  if test "x$LINUX_64_MODE" = x64; then
15012
 
    # Some platforms are per default 64-bit, so there's no /lib64
15013
 
    if test -d /lib64; then
15014
 
      libsuff=64
15015
 
    fi
15016
 
  fi
15017
 
  shlibpath_var=LD_LIBRARY_PATH
15018
 
  shlibpath_overrides_runpath=no
15019
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15020
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15021
 
  # This implies no fast_install, which is unacceptable.
15022
 
  # Some rework will be needed to allow for fast_install
15023
 
  # before this can be enabled.
15024
 
  hardcode_into_libs=yes
15025
 
 
15026
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15027
 
  # powerpc, because MkLinux only supported shared libraries with the
15028
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
15029
 
  # most powerpc-linux boxes support dynamic linking these days and
15030
 
  # people can always --disable-shared, the test was removed, and we
15031
 
  # assume the GNU/Linux dynamic linker is in use.
15032
 
  dynamic_linker='GNU/Linux ld.so'
15033
 
  ;;
15034
 
 
15035
 
netbsd*)
15036
 
  version_type=sunos
15037
 
  need_lib_prefix=no
15038
 
  need_version=no
15039
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15040
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15041
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15042
 
    dynamic_linker='NetBSD (a.out) ld.so'
15043
 
  else
15044
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
15045
 
    soname_spec='${libname}${release}.so$major'
15046
 
    dynamic_linker='NetBSD ld.elf_so'
15047
 
  fi
15048
 
  shlibpath_var=LD_LIBRARY_PATH
15049
 
  shlibpath_overrides_runpath=yes
15050
 
  hardcode_into_libs=yes
15051
 
  ;;
15052
 
 
15053
 
newsos6)
15054
 
  version_type=linux
15055
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15056
 
  shlibpath_var=LD_LIBRARY_PATH
15057
 
  shlibpath_overrides_runpath=yes
15058
 
  ;;
15059
 
 
15060
 
nto-qnx)
15061
 
  version_type=linux
15062
 
  need_lib_prefix=no
15063
 
  need_version=no
15064
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15065
 
  soname_spec='${libname}${release}.so$major'
15066
 
  shlibpath_var=LD_LIBRARY_PATH
15067
 
  shlibpath_overrides_runpath=yes
15068
 
  ;;
15069
 
 
15070
 
openbsd*)
15071
 
  version_type=sunos
15072
 
  need_lib_prefix=no
15073
 
  need_version=no
15074
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15075
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15076
 
  shlibpath_var=LD_LIBRARY_PATH
15077
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15078
 
    case $host_os in
15079
 
      openbsd2.[89] | openbsd2.[89].*)
15080
 
        shlibpath_overrides_runpath=no
15081
 
        ;;
15082
 
      *)
15083
 
        shlibpath_overrides_runpath=yes
15084
 
        ;;
15085
 
      esac
15086
 
  else
15087
 
    shlibpath_overrides_runpath=yes
15088
 
  fi
15089
 
  ;;
15090
 
 
15091
 
os2*)
15092
 
  libname_spec='$name'
15093
 
  need_lib_prefix=no
15094
 
  library_names_spec='$libname.dll $libname.a'
15095
 
  dynamic_linker='OS/2 ld.exe'
15096
 
  shlibpath_var=LIBPATH
15097
 
  ;;
15098
 
 
15099
 
osf3* | osf4* | osf5*)
15100
 
  version_type=osf
15101
 
  need_lib_prefix=no
15102
 
  need_version=no
15103
 
  soname_spec='${libname}${release}.so'
15104
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15105
 
  shlibpath_var=LD_LIBRARY_PATH
15106
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15107
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15108
 
  ;;
15109
 
 
15110
 
sco3.2v5*)
15111
 
  version_type=osf
15112
 
  soname_spec='${libname}${release}.so$major'
15113
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15114
 
  shlibpath_var=LD_LIBRARY_PATH
15115
 
  ;;
15116
 
 
15117
 
solaris*)
15118
 
  version_type=linux
15119
 
  need_lib_prefix=no
15120
 
  need_version=no
15121
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15122
 
  soname_spec='${libname}${release}.so$major'
15123
 
  shlibpath_var=LD_LIBRARY_PATH
15124
 
  shlibpath_overrides_runpath=yes
15125
 
  hardcode_into_libs=yes
15126
 
  # ldd complains unless libraries are executable
15127
 
  postinstall_cmds='chmod +x $lib'
15128
 
  ;;
15129
 
 
15130
 
sunos4*)
15131
 
  version_type=sunos
15132
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15133
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15134
 
  shlibpath_var=LD_LIBRARY_PATH
15135
 
  shlibpath_overrides_runpath=yes
15136
 
  if test "$with_gnu_ld" = yes; then
15137
 
    need_lib_prefix=no
15138
 
  fi
15139
 
  need_version=yes
15140
 
  ;;
15141
 
 
15142
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15143
 
  version_type=linux
15144
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15145
 
  soname_spec='${libname}${release}.so$major'
15146
 
  shlibpath_var=LD_LIBRARY_PATH
15147
 
  case $host_vendor in
15148
 
    sni)
15149
 
      shlibpath_overrides_runpath=no
15150
 
      ;;
15151
 
    motorola)
15152
 
      need_lib_prefix=no
15153
 
      need_version=no
15154
 
      shlibpath_overrides_runpath=no
15155
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15156
 
      ;;
15157
 
  esac
15158
 
  ;;
15159
 
 
15160
 
sysv4*MP*)
15161
 
  if test -d /usr/nec ;then
15162
 
    version_type=linux
15163
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
15164
 
    soname_spec='$libname.so.$major'
15165
 
    shlibpath_var=LD_LIBRARY_PATH
15166
 
  fi
15167
 
  ;;
15168
 
 
15169
 
uts4*)
15170
 
  version_type=linux
15171
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15172
 
  soname_spec='${libname}${release}.so$major'
15173
 
  shlibpath_var=LD_LIBRARY_PATH
15174
 
  ;;
15175
 
 
15176
 
*)
15177
 
  dynamic_linker=no
15178
 
  ;;
15179
 
esac
15180
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15181
 
echo "${ECHO_T}$dynamic_linker" >&6
15182
 
test "$dynamic_linker" = no && can_build_shared=no
 
19501
# FIXME - insert some real tests, host_os isn't really good enough
 
19502
  case $host_os in
 
19503
   darwin*)
 
19504
       if test -n "$STRIP" ; then
 
19505
         striplib="$STRIP -x"
 
19506
         echo "$as_me:$LINENO: result: yes" >&5
 
19507
echo "${ECHO_T}yes" >&6
 
19508
       else
 
19509
  echo "$as_me:$LINENO: result: no" >&5
 
19510
echo "${ECHO_T}no" >&6
 
19511
fi
 
19512
       ;;
 
19513
   *)
 
19514
  echo "$as_me:$LINENO: result: no" >&5
 
19515
echo "${ECHO_T}no" >&6
 
19516
    ;;
 
19517
  esac
 
19518
fi
15183
19519
 
15184
19520
if test "x$enable_dlopen" != xyes; then
15185
19521
  enable_dlopen=unknown
15196
19532
    lt_cv_dlopen_self=yes
15197
19533
    ;;
15198
19534
 
15199
 
  cygwin* | mingw* | pw32*)
 
19535
  mingw* | pw32*)
15200
19536
    lt_cv_dlopen="LoadLibrary"
15201
19537
    lt_cv_dlopen_libs=
15202
19538
   ;;
15203
19539
 
 
19540
  cygwin*)
 
19541
    lt_cv_dlopen="dlopen"
 
19542
    lt_cv_dlopen_libs=
 
19543
   ;;
 
19544
 
 
19545
  darwin*)
 
19546
  # if libdl is installed we need to link against it
 
19547
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19548
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19549
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19551
else
 
19552
  ac_check_lib_save_LIBS=$LIBS
 
19553
LIBS="-ldl  $LIBS"
 
19554
cat >conftest.$ac_ext <<_ACEOF
 
19555
/* confdefs.h.  */
 
19556
_ACEOF
 
19557
cat confdefs.h >>conftest.$ac_ext
 
19558
cat >>conftest.$ac_ext <<_ACEOF
 
19559
/* end confdefs.h.  */
 
19560
 
 
19561
/* Override any gcc2 internal prototype to avoid an error.  */
 
19562
#ifdef __cplusplus
 
19563
extern "C"
 
19564
#endif
 
19565
/* We use char because int might match the return type of a gcc2
 
19566
   builtin and then its argument prototype would still apply.  */
 
19567
char dlopen ();
 
19568
int
 
19569
main ()
 
19570
{
 
19571
dlopen ();
 
19572
  ;
 
19573
  return 0;
 
19574
}
 
19575
_ACEOF
 
19576
rm -f conftest.$ac_objext conftest$ac_exeext
 
19577
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19578
  (eval $ac_link) 2>conftest.er1
 
19579
  ac_status=$?
 
19580
  grep -v '^ *+' conftest.er1 >conftest.err
 
19581
  rm -f conftest.er1
 
19582
  cat conftest.err >&5
 
19583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19584
  (exit $ac_status); } &&
 
19585
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19586
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19587
  (eval $ac_try) 2>&5
 
19588
  ac_status=$?
 
19589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19590
  (exit $ac_status); }; } &&
 
19591
         { ac_try='test -s conftest$ac_exeext'
 
19592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19593
  (eval $ac_try) 2>&5
 
19594
  ac_status=$?
 
19595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19596
  (exit $ac_status); }; }; then
 
19597
  ac_cv_lib_dl_dlopen=yes
 
19598
else
 
19599
  echo "$as_me: failed program was:" >&5
 
19600
sed 's/^/| /' conftest.$ac_ext >&5
 
19601
 
 
19602
ac_cv_lib_dl_dlopen=no
 
19603
fi
 
19604
rm -f conftest.err conftest.$ac_objext \
 
19605
      conftest$ac_exeext conftest.$ac_ext
 
19606
LIBS=$ac_check_lib_save_LIBS
 
19607
fi
 
19608
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19609
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19610
if test $ac_cv_lib_dl_dlopen = yes; then
 
19611
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19612
else
 
19613
 
 
19614
    lt_cv_dlopen="dyld"
 
19615
    lt_cv_dlopen_libs=
 
19616
    lt_cv_dlopen_self=yes
 
19617
 
 
19618
fi
 
19619
 
 
19620
   ;;
 
19621
 
15204
19622
  *)
15205
19623
    echo "$as_me:$LINENO: checking for shl_load" >&5
15206
19624
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15208
19626
  echo $ECHO_N "(cached) $ECHO_C" >&6
15209
19627
else
15210
19628
  cat >conftest.$ac_ext <<_ACEOF
15211
 
#line $LINENO "configure"
15212
19629
/* confdefs.h.  */
15213
19630
_ACEOF
15214
19631
cat confdefs.h >>conftest.$ac_ext
15215
19632
cat >>conftest.$ac_ext <<_ACEOF
15216
19633
/* end confdefs.h.  */
 
19634
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
19635
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19636
#define shl_load innocuous_shl_load
 
19637
 
15217
19638
/* System header to define __stub macros and hopefully few prototypes,
15218
19639
    which can conflict with char shl_load (); below.
15219
19640
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15220
19641
    <limits.h> exists even on freestanding compilers.  */
 
19642
 
15221
19643
#ifdef __STDC__
15222
19644
# include <limits.h>
15223
19645
#else
15224
19646
# include <assert.h>
15225
19647
#endif
 
19648
 
 
19649
#undef shl_load
 
19650
 
15226
19651
/* Override any gcc2 internal prototype to avoid an error.  */
15227
19652
#ifdef __cplusplus
15228
19653
extern "C"
15253
19678
_ACEOF
15254
19679
rm -f conftest.$ac_objext conftest$ac_exeext
15255
19680
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15256
 
  (eval $ac_link) 2>&5
 
19681
  (eval $ac_link) 2>conftest.er1
15257
19682
  ac_status=$?
 
19683
  grep -v '^ *+' conftest.er1 >conftest.err
 
19684
  rm -f conftest.er1
 
19685
  cat conftest.err >&5
15258
19686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259
19687
  (exit $ac_status); } &&
15260
 
         { ac_try='test -s conftest$ac_exeext'
 
19688
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19690
  (eval $ac_try) 2>&5
 
19691
  ac_status=$?
 
19692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19693
  (exit $ac_status); }; } &&
 
19694
         { ac_try='test -s conftest$ac_exeext'
15261
19695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262
19696
  (eval $ac_try) 2>&5
15263
19697
  ac_status=$?
15270
19704
 
15271
19705
ac_cv_func_shl_load=no
15272
19706
fi
15273
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19707
rm -f conftest.err conftest.$ac_objext \
 
19708
      conftest$ac_exeext conftest.$ac_ext
15274
19709
fi
15275
19710
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15276
19711
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15285
19720
  ac_check_lib_save_LIBS=$LIBS
15286
19721
LIBS="-ldld  $LIBS"
15287
19722
cat >conftest.$ac_ext <<_ACEOF
15288
 
#line $LINENO "configure"
15289
19723
/* confdefs.h.  */
15290
19724
_ACEOF
15291
19725
cat confdefs.h >>conftest.$ac_ext
15309
19743
_ACEOF
15310
19744
rm -f conftest.$ac_objext conftest$ac_exeext
15311
19745
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312
 
  (eval $ac_link) 2>&5
 
19746
  (eval $ac_link) 2>conftest.er1
15313
19747
  ac_status=$?
 
19748
  grep -v '^ *+' conftest.er1 >conftest.err
 
19749
  rm -f conftest.er1
 
19750
  cat conftest.err >&5
15314
19751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315
19752
  (exit $ac_status); } &&
15316
 
         { ac_try='test -s conftest$ac_exeext'
 
19753
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19755
  (eval $ac_try) 2>&5
 
19756
  ac_status=$?
 
19757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19758
  (exit $ac_status); }; } &&
 
19759
         { ac_try='test -s conftest$ac_exeext'
15317
19760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318
19761
  (eval $ac_try) 2>&5
15319
19762
  ac_status=$?
15326
19769
 
15327
19770
ac_cv_lib_dld_shl_load=no
15328
19771
fi
15329
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19772
rm -f conftest.err conftest.$ac_objext \
 
19773
      conftest$ac_exeext conftest.$ac_ext
15330
19774
LIBS=$ac_check_lib_save_LIBS
15331
19775
fi
15332
19776
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15340
19784
  echo $ECHO_N "(cached) $ECHO_C" >&6
15341
19785
else
15342
19786
  cat >conftest.$ac_ext <<_ACEOF
15343
 
#line $LINENO "configure"
15344
19787
/* confdefs.h.  */
15345
19788
_ACEOF
15346
19789
cat confdefs.h >>conftest.$ac_ext
15347
19790
cat >>conftest.$ac_ext <<_ACEOF
15348
19791
/* end confdefs.h.  */
 
19792
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
19793
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19794
#define dlopen innocuous_dlopen
 
19795
 
15349
19796
/* System header to define __stub macros and hopefully few prototypes,
15350
19797
    which can conflict with char dlopen (); below.
15351
19798
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15352
19799
    <limits.h> exists even on freestanding compilers.  */
 
19800
 
15353
19801
#ifdef __STDC__
15354
19802
# include <limits.h>
15355
19803
#else
15356
19804
# include <assert.h>
15357
19805
#endif
 
19806
 
 
19807
#undef dlopen
 
19808
 
15358
19809
/* Override any gcc2 internal prototype to avoid an error.  */
15359
19810
#ifdef __cplusplus
15360
19811
extern "C"
15385
19836
_ACEOF
15386
19837
rm -f conftest.$ac_objext conftest$ac_exeext
15387
19838
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388
 
  (eval $ac_link) 2>&5
 
19839
  (eval $ac_link) 2>conftest.er1
15389
19840
  ac_status=$?
 
19841
  grep -v '^ *+' conftest.er1 >conftest.err
 
19842
  rm -f conftest.er1
 
19843
  cat conftest.err >&5
15390
19844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391
19845
  (exit $ac_status); } &&
15392
 
         { ac_try='test -s conftest$ac_exeext'
 
19846
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19848
  (eval $ac_try) 2>&5
 
19849
  ac_status=$?
 
19850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19851
  (exit $ac_status); }; } &&
 
19852
         { ac_try='test -s conftest$ac_exeext'
15393
19853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394
19854
  (eval $ac_try) 2>&5
15395
19855
  ac_status=$?
15402
19862
 
15403
19863
ac_cv_func_dlopen=no
15404
19864
fi
15405
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19865
rm -f conftest.err conftest.$ac_objext \
 
19866
      conftest$ac_exeext conftest.$ac_ext
15406
19867
fi
15407
19868
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15408
19869
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15417
19878
  ac_check_lib_save_LIBS=$LIBS
15418
19879
LIBS="-ldl  $LIBS"
15419
19880
cat >conftest.$ac_ext <<_ACEOF
15420
 
#line $LINENO "configure"
15421
19881
/* confdefs.h.  */
15422
19882
_ACEOF
15423
19883
cat confdefs.h >>conftest.$ac_ext
15441
19901
_ACEOF
15442
19902
rm -f conftest.$ac_objext conftest$ac_exeext
15443
19903
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15444
 
  (eval $ac_link) 2>&5
 
19904
  (eval $ac_link) 2>conftest.er1
15445
19905
  ac_status=$?
 
19906
  grep -v '^ *+' conftest.er1 >conftest.err
 
19907
  rm -f conftest.er1
 
19908
  cat conftest.err >&5
15446
19909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447
19910
  (exit $ac_status); } &&
15448
 
         { ac_try='test -s conftest$ac_exeext'
 
19911
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19913
  (eval $ac_try) 2>&5
 
19914
  ac_status=$?
 
19915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19916
  (exit $ac_status); }; } &&
 
19917
         { ac_try='test -s conftest$ac_exeext'
15449
19918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450
19919
  (eval $ac_try) 2>&5
15451
19920
  ac_status=$?
15458
19927
 
15459
19928
ac_cv_lib_dl_dlopen=no
15460
19929
fi
15461
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19930
rm -f conftest.err conftest.$ac_objext \
 
19931
      conftest$ac_exeext conftest.$ac_ext
15462
19932
LIBS=$ac_check_lib_save_LIBS
15463
19933
fi
15464
19934
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15474
19944
  ac_check_lib_save_LIBS=$LIBS
15475
19945
LIBS="-lsvld  $LIBS"
15476
19946
cat >conftest.$ac_ext <<_ACEOF
15477
 
#line $LINENO "configure"
15478
19947
/* confdefs.h.  */
15479
19948
_ACEOF
15480
19949
cat confdefs.h >>conftest.$ac_ext
15498
19967
_ACEOF
15499
19968
rm -f conftest.$ac_objext conftest$ac_exeext
15500
19969
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15501
 
  (eval $ac_link) 2>&5
 
19970
  (eval $ac_link) 2>conftest.er1
15502
19971
  ac_status=$?
 
19972
  grep -v '^ *+' conftest.er1 >conftest.err
 
19973
  rm -f conftest.er1
 
19974
  cat conftest.err >&5
15503
19975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504
19976
  (exit $ac_status); } &&
15505
 
         { ac_try='test -s conftest$ac_exeext'
 
19977
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19979
  (eval $ac_try) 2>&5
 
19980
  ac_status=$?
 
19981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19982
  (exit $ac_status); }; } &&
 
19983
         { ac_try='test -s conftest$ac_exeext'
15506
19984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507
19985
  (eval $ac_try) 2>&5
15508
19986
  ac_status=$?
15515
19993
 
15516
19994
ac_cv_lib_svld_dlopen=no
15517
19995
fi
15518
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19996
rm -f conftest.err conftest.$ac_objext \
 
19997
      conftest$ac_exeext conftest.$ac_ext
15519
19998
LIBS=$ac_check_lib_save_LIBS
15520
19999
fi
15521
20000
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15531
20010
  ac_check_lib_save_LIBS=$LIBS
15532
20011
LIBS="-ldld  $LIBS"
15533
20012
cat >conftest.$ac_ext <<_ACEOF
15534
 
#line $LINENO "configure"
15535
20013
/* confdefs.h.  */
15536
20014
_ACEOF
15537
20015
cat confdefs.h >>conftest.$ac_ext
15555
20033
_ACEOF
15556
20034
rm -f conftest.$ac_objext conftest$ac_exeext
15557
20035
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558
 
  (eval $ac_link) 2>&5
 
20036
  (eval $ac_link) 2>conftest.er1
15559
20037
  ac_status=$?
 
20038
  grep -v '^ *+' conftest.er1 >conftest.err
 
20039
  rm -f conftest.er1
 
20040
  cat conftest.err >&5
15560
20041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561
20042
  (exit $ac_status); } &&
15562
 
         { ac_try='test -s conftest$ac_exeext'
 
20043
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20045
  (eval $ac_try) 2>&5
 
20046
  ac_status=$?
 
20047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20048
  (exit $ac_status); }; } &&
 
20049
         { ac_try='test -s conftest$ac_exeext'
15563
20050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564
20051
  (eval $ac_try) 2>&5
15565
20052
  ac_status=$?
15572
20059
 
15573
20060
ac_cv_lib_dld_dld_link=no
15574
20061
fi
15575
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20062
rm -f conftest.err conftest.$ac_objext \
 
20063
      conftest$ac_exeext conftest.$ac_ext
15576
20064
LIBS=$ac_check_lib_save_LIBS
15577
20065
fi
15578
20066
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15627
20115
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15628
20116
  lt_status=$lt_dlunknown
15629
20117
  cat > conftest.$ac_ext <<EOF
15630
 
#line 15630 "configure"
 
20118
#line 20118 "configure"
15631
20119
#include "confdefs.h"
15632
20120
 
15633
20121
#if HAVE_DLFCN_H
15725
20213
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15726
20214
  lt_status=$lt_dlunknown
15727
20215
  cat > conftest.$ac_ext <<EOF
15728
 
#line 15728 "configure"
 
20216
#line 20216 "configure"
15729
20217
#include "confdefs.h"
15730
20218
 
15731
20219
#if HAVE_DLFCN_H
15834
20322
# with your package, and you will get complaints that there are
15835
20323
# no rules to generate ltmain.sh.
15836
20324
if test -f "$ltmain"; then
 
20325
  # See if we are running on zsh, and set the options which allow our commands through
 
20326
  # without removal of \ escapes.
 
20327
  if test -n "${ZSH_VERSION+set}" ; then
 
20328
    setopt NO_GLOB_SUBST
 
20329
  fi
15837
20330
  # Now quote all the things that may contain metacharacters while being
15838
20331
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15839
20332
  # variables and quote the copies for generation of the libtool script.
15840
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
 
20333
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15841
20334
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15842
20335
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15843
20336
    deplibs_check_method reload_flag reload_cmds need_locks \
15855
20348
    export_dynamic_flag_spec_GCJ \
15856
20349
    thread_safe_flag_spec_GCJ \
15857
20350
    whole_archive_flag_spec_GCJ \
 
20351
    enable_shared_with_static_runtimes_GCJ \
15858
20352
    old_archive_cmds_GCJ \
15859
20353
    old_archive_from_new_cmds_GCJ \
15860
20354
    predep_objects_GCJ \
15871
20365
    no_undefined_flag_GCJ \
15872
20366
    export_symbols_cmds_GCJ \
15873
20367
    hardcode_libdir_flag_spec_GCJ \
 
20368
    hardcode_libdir_flag_spec_ld_GCJ \
15874
20369
    hardcode_libdir_separator_GCJ \
 
20370
    hardcode_automatic_GCJ \
 
20371
    module_cmds_GCJ \
 
20372
    module_expsym_cmds_GCJ \
15875
20373
    lt_cv_prog_compiler_c_o_GCJ \
15876
20374
    exclude_expsyms_GCJ \
15877
20375
    include_expsyms_GCJ; do
15881
20379
    old_archive_from_new_cmds_GCJ | \
15882
20380
    archive_cmds_GCJ | \
15883
20381
    archive_expsym_cmds_GCJ | \
 
20382
    module_cmds_GCJ | \
 
20383
    module_expsym_cmds_GCJ | \
15884
20384
    old_archive_from_expsyms_cmds_GCJ | \
15885
20385
    export_symbols_cmds_GCJ | \
15886
20386
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15921
20421
# Whether or not to add -lc for building shared libraries.
15922
20422
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
15923
20423
 
 
20424
# Whether or not to disallow shared libs when runtime libs are static
 
20425
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
20426
 
15924
20427
# Whether or not to optimize for fast installation.
15925
20428
fast_install=$enable_fast_install
15926
20429
 
15944
20447
# Is the compiler the GNU C compiler?
15945
20448
with_gcc=$GCC_GCJ
15946
20449
 
 
20450
# An ERE matcher.
 
20451
EGREP=$lt_EGREP
 
20452
 
15947
20453
# The linker used to build libraries.
15948
20454
LD=$lt_LD_GCJ
15949
20455
 
15953
20459
# A BSD-compatible nm program.
15954
20460
NM=$lt_NM
15955
20461
 
15956
 
# A sed program that does not truncate output.
15957
 
SED=$lt_SED
15958
 
 
15959
20462
# A symbol stripping program
15960
20463
STRIP=$STRIP
15961
20464
 
15987
20490
# Old archive suffix (normally "a").
15988
20491
libext="$libext"
15989
20492
 
 
20493
# Shared library suffix (normally ".so").
 
20494
shrext='$shrext'
 
20495
 
15990
20496
# Executable file suffix (normally "").
15991
20497
exeext="$exeext"
15992
20498
 
16064
20570
postinstall_cmds=$lt_postinstall_cmds
16065
20571
postuninstall_cmds=$lt_postuninstall_cmds
16066
20572
 
 
20573
# Commands used to build a loadable module (assumed same as above if empty)
 
20574
module_cmds=$lt_module_cmds_GCJ
 
20575
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
20576
 
16067
20577
# Commands to strip libraries.
16068
20578
old_striplib=$lt_old_striplib
16069
20579
striplib=$lt_striplib
16134
20644
# This must work even if \$libdir does not exist.
16135
20645
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16136
20646
 
 
20647
# If ld is used when linking, flag to hardcode \$libdir into
 
20648
# a binary during linking. This must work even if \$libdir does
 
20649
# not exist.
 
20650
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
20651
 
16137
20652
# Whether we need a single -rpath flag with a separated argument.
16138
20653
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
16139
20654
 
16140
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
20655
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16141
20656
# resulting binary.
16142
20657
hardcode_direct=$hardcode_direct_GCJ
16143
20658
 
16149
20664
# the resulting binary.
16150
20665
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
16151
20666
 
 
20667
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20668
# and all subsequent libraries and executables linked against it.
 
20669
hardcode_automatic=$hardcode_automatic_GCJ
 
20670
 
16152
20671
# Variables whose values should be saved in libtool wrapper scripts and
16153
20672
# restored at relink time.
16154
20673
variables_saved_for_relink="$variables_saved_for_relink"
16201
20720
 
16202
20721
CC="$lt_save_CC"
16203
20722
 
 
20723
        else
 
20724
          tagname=""
 
20725
        fi
16204
20726
        ;;
16205
20727
 
16206
20728
      RC)
16215
20737
objext_RC=$objext
16216
20738
 
16217
20739
# Code to be used in simple compile tests
16218
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
20740
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
16219
20741
 
16220
20742
# Code to be used in simple link tests
16221
20743
lt_simple_link_test_code="$lt_simple_compile_test_code"
16226
20748
LTCC=${LTCC-"$CC"}
16227
20749
 
16228
20750
# Allow CC to be a program name with arguments.
16229
 
set dummy $CC
16230
 
compiler="$2"
 
20751
compiler=$CC
16231
20752
 
16232
20753
 
16233
20754
# Allow CC to be a program name with arguments.
16234
20755
lt_save_CC="$CC"
16235
20756
CC=${RC-"windres"}
16236
 
set dummy $CC
16237
 
compiler="$2"
 
20757
compiler=$CC
16238
20758
compiler_RC=$CC
16239
20759
lt_cv_prog_compiler_c_o_RC=yes
16240
20760
 
16243
20763
# with your package, and you will get complaints that there are
16244
20764
# no rules to generate ltmain.sh.
16245
20765
if test -f "$ltmain"; then
 
20766
  # See if we are running on zsh, and set the options which allow our commands through
 
20767
  # without removal of \ escapes.
 
20768
  if test -n "${ZSH_VERSION+set}" ; then
 
20769
    setopt NO_GLOB_SUBST
 
20770
  fi
16246
20771
  # Now quote all the things that may contain metacharacters while being
16247
20772
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16248
20773
  # variables and quote the copies for generation of the libtool script.
16249
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
 
20774
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16250
20775
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16251
20776
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16252
20777
    deplibs_check_method reload_flag reload_cmds need_locks \
16264
20789
    export_dynamic_flag_spec_RC \
16265
20790
    thread_safe_flag_spec_RC \
16266
20791
    whole_archive_flag_spec_RC \
 
20792
    enable_shared_with_static_runtimes_RC \
16267
20793
    old_archive_cmds_RC \
16268
20794
    old_archive_from_new_cmds_RC \
16269
20795
    predep_objects_RC \
16280
20806
    no_undefined_flag_RC \
16281
20807
    export_symbols_cmds_RC \
16282
20808
    hardcode_libdir_flag_spec_RC \
 
20809
    hardcode_libdir_flag_spec_ld_RC \
16283
20810
    hardcode_libdir_separator_RC \
 
20811
    hardcode_automatic_RC \
 
20812
    module_cmds_RC \
 
20813
    module_expsym_cmds_RC \
16284
20814
    lt_cv_prog_compiler_c_o_RC \
16285
20815
    exclude_expsyms_RC \
16286
20816
    include_expsyms_RC; do
16290
20820
    old_archive_from_new_cmds_RC | \
16291
20821
    archive_cmds_RC | \
16292
20822
    archive_expsym_cmds_RC | \
 
20823
    module_cmds_RC | \
 
20824
    module_expsym_cmds_RC | \
16293
20825
    old_archive_from_expsyms_cmds_RC | \
16294
20826
    export_symbols_cmds_RC | \
16295
20827
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16330
20862
# Whether or not to add -lc for building shared libraries.
16331
20863
build_libtool_need_lc=$archive_cmds_need_lc_RC
16332
20864
 
 
20865
# Whether or not to disallow shared libs when runtime libs are static
 
20866
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
20867
 
16333
20868
# Whether or not to optimize for fast installation.
16334
20869
fast_install=$enable_fast_install
16335
20870
 
16353
20888
# Is the compiler the GNU C compiler?
16354
20889
with_gcc=$GCC_RC
16355
20890
 
 
20891
# An ERE matcher.
 
20892
EGREP=$lt_EGREP
 
20893
 
16356
20894
# The linker used to build libraries.
16357
20895
LD=$lt_LD_RC
16358
20896
 
16362
20900
# A BSD-compatible nm program.
16363
20901
NM=$lt_NM
16364
20902
 
16365
 
# A sed program that does not truncate output.
16366
 
SED=$lt_SED
16367
 
 
16368
20903
# A symbol stripping program
16369
20904
STRIP=$STRIP
16370
20905
 
16396
20931
# Old archive suffix (normally "a").
16397
20932
libext="$libext"
16398
20933
 
 
20934
# Shared library suffix (normally ".so").
 
20935
shrext='$shrext'
 
20936
 
16399
20937
# Executable file suffix (normally "").
16400
20938
exeext="$exeext"
16401
20939
 
16473
21011
postinstall_cmds=$lt_postinstall_cmds
16474
21012
postuninstall_cmds=$lt_postuninstall_cmds
16475
21013
 
 
21014
# Commands used to build a loadable module (assumed same as above if empty)
 
21015
module_cmds=$lt_module_cmds_RC
 
21016
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
21017
 
16476
21018
# Commands to strip libraries.
16477
21019
old_striplib=$lt_old_striplib
16478
21020
striplib=$lt_striplib
16543
21085
# This must work even if \$libdir does not exist.
16544
21086
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
16545
21087
 
 
21088
# If ld is used when linking, flag to hardcode \$libdir into
 
21089
# a binary during linking. This must work even if \$libdir does
 
21090
# not exist.
 
21091
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
21092
 
16546
21093
# Whether we need a single -rpath flag with a separated argument.
16547
21094
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
16548
21095
 
16549
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
21096
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16550
21097
# resulting binary.
16551
21098
hardcode_direct=$hardcode_direct_RC
16552
21099
 
16558
21105
# the resulting binary.
16559
21106
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
16560
21107
 
 
21108
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21109
# and all subsequent libraries and executables linked against it.
 
21110
hardcode_automatic=$hardcode_automatic_RC
 
21111
 
16561
21112
# Variables whose values should be saved in libtool wrapper scripts and
16562
21113
# restored at relink time.
16563
21114
variables_saved_for_relink="$variables_saved_for_relink"
16620
21171
      esac
16621
21172
 
16622
21173
      # Append the new tag name to the list of available tags.
 
21174
      if test -n "$tagname" ; then
16623
21175
      available_tags="$available_tags $tagname"
16624
21176
    fi
 
21177
    fi
16625
21178
  done
16626
21179
  IFS="$lt_save_ifs"
16627
21180
 
16661
21214
 
16662
21215
 
16663
21216
 
16664
 
ac_ext=c
16665
 
ac_cpp='$CPP $CPPFLAGS'
16666
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16667
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16668
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16669
 
 
16670
 
 
16671
 
 
16672
 
ac_ext=c
16673
 
ac_cpp='$CPP $CPPFLAGS'
16674
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16675
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16676
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21217
 
 
21218
 
 
21219
 
 
21220
 
 
21221
 
 
21222
 
 
21223
 
16677
21224
 
16678
21225
 
16679
21226
 
16688
21235
 
16689
21236
LIBTOOL_SHELL="/bin/sh ./libtool"
16690
21237
#  LIBTOOL="$LIBTOOL --silent"
16691
 
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
16692
 
 
16693
 
 
16694
 
# Check whether --enable-objprelink or --disable-objprelink was given.
16695
 
if test "${enable_objprelink+set}" = set; then
16696
 
  enableval="$enable_objprelink"
16697
 
  kde_use_objprelink=$enableval
16698
 
else
16699
 
  kde_use_objprelink=no
16700
 
fi;
16701
 
  if test "x$kde_use_objprelink" = "xyes"; then
16702
 
        { echo "$as_me:$LINENO: WARNING:
16703
 
------------------------------------------------------------
16704
 
Configuration option --enable-objprelink is no longer useful.
16705
 
See http:://objprelink.sourceforge.net for details:
16706
 
1- Recent binutils are fast enough to do without objprelink.
16707
 
2- Newer versions of objprelink do not need this option.
16708
 
------------------------------------------------------------
16709
 
" >&5
16710
 
echo "$as_me: WARNING:
16711
 
------------------------------------------------------------
16712
 
Configuration option --enable-objprelink is no longer useful.
16713
 
See http:://objprelink.sourceforge.net for details:
16714
 
1- Recent binutils are fast enough to do without objprelink.
16715
 
2- Newer versions of objprelink do not need this option.
16716
 
------------------------------------------------------------
16717
 
" >&2;}
16718
 
  fi
 
21238
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
 
21239
 
 
21240
 
 
21241
# we patch configure quite some so we better keep that consistent for incremental runs
 
21242
AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
 
21243
 
16719
21244
 
16720
21245
 
16721
21246
 
16858
21383
 
16859
21384
 
16860
21385
if test -z "3.0"; then
16861
 
  # Current default Qt version: 3.1
 
21386
  # Current default Qt version: 3.3
16862
21387
  kde_qtver=3
16863
 
  kde_qtsubver=1
 
21388
  kde_qtsubver=3
16864
21389
else
16865
21390
  kde_qtsubver=`echo "3.0" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
16866
21391
  # following is the check if subversion isnt found in passed argument
16883
21408
  fi
16884
21409
  if test "$kde_qtver" = "3"; then
16885
21410
    if test $kde_qtsubver -gt 0; then
16886
 
      kde_qt_minversion=">= Qt 3.1.0"
 
21411
         if test $kde_qtsubver -gt 1; then
 
21412
            if test $kde_qtsubver -gt 2; then
 
21413
                kde_qt_minversion=">= Qt 3.3"
 
21414
            else
 
21415
                kde_qt_minversion=">= Qt 3.2"
 
21416
            fi
 
21417
         else
 
21418
            kde_qt_minversion=">= Qt 3.1 (20021021)"
 
21419
         fi
16887
21420
    else
16888
21421
      kde_qt_minversion=">= Qt 3.0"
16889
21422
    fi
16892
21425
    kde_qt_minversion=">= 1.42 and < 2.0"
16893
21426
  fi
16894
21427
else
16895
 
   kde_qt_minversion=
 
21428
   kde_qt_minversion=""
16896
21429
fi
16897
21430
 
16898
21431
if test -z ""; then
16899
21432
   if test $kde_qtver = 3; then
16900
21433
     if test $kde_qtsubver -gt 0; then
16901
 
       kde_qt_verstring="QT_VERSION >= 0x030100"
 
21434
       kde_qt_verstring="QT_VERSION >= 0x03@VER@00"
 
21435
       qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
 
21436
       kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
16902
21437
     else
16903
21438
       kde_qt_verstring="QT_VERSION >= 300"
16904
21439
     fi
16914
21449
    kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
16915
21450
   fi
16916
21451
else
16917
 
   kde_qt_verstring=
 
21452
   kde_qt_verstring=""
16918
21453
fi
16919
21454
 
16920
21455
if test $kde_qtver = 3; then
16928
21463
fi
16929
21464
 
16930
21465
 
 
21466
 
 
21467
 
 
21468
     ac_ext=cc
 
21469
ac_cpp='$CXXCPP $CPPFLAGS'
 
21470
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21471
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21472
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21473
 
 
21474
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21475
 
 
21476
 
 
21477
    ac_save_CXXFLAGS="$CXXFLAGS"
 
21478
    CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
 
21479
 
 
21480
    echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
 
21481
echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6
 
21482
    if test "${kde_cv_stl_works+set}" = set; then
 
21483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21484
else
 
21485
 
 
21486
      cat >conftest.$ac_ext <<_ACEOF
 
21487
/* confdefs.h.  */
 
21488
_ACEOF
 
21489
cat confdefs.h >>conftest.$ac_ext
 
21490
cat >>conftest.$ac_ext <<_ACEOF
 
21491
/* end confdefs.h.  */
 
21492
 
 
21493
#include <string>
 
21494
using namespace std;
 
21495
 
 
21496
int
 
21497
main ()
 
21498
{
 
21499
 
 
21500
  string astring="Hallo Welt.";
 
21501
  astring.erase(0, 6); // now astring is "Welt"
 
21502
  return 0;
 
21503
 
 
21504
  ;
 
21505
  return 0;
 
21506
}
 
21507
_ACEOF
 
21508
rm -f conftest.$ac_objext
 
21509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21510
  (eval $ac_compile) 2>conftest.er1
 
21511
  ac_status=$?
 
21512
  grep -v '^ *+' conftest.er1 >conftest.err
 
21513
  rm -f conftest.er1
 
21514
  cat conftest.err >&5
 
21515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21516
  (exit $ac_status); } &&
 
21517
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
21518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21519
  (eval $ac_try) 2>&5
 
21520
  ac_status=$?
 
21521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21522
  (exit $ac_status); }; } &&
 
21523
         { ac_try='test -s conftest.$ac_objext'
 
21524
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21525
  (eval $ac_try) 2>&5
 
21526
  ac_status=$?
 
21527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21528
  (exit $ac_status); }; }; then
 
21529
  kde_cv_stl_works=yes
 
21530
else
 
21531
  echo "$as_me: failed program was:" >&5
 
21532
sed 's/^/| /' conftest.$ac_ext >&5
 
21533
 
 
21534
kde_cv_stl_works=no
 
21535
fi
 
21536
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21537
 
 
21538
fi
 
21539
 
 
21540
 
 
21541
   echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
 
21542
echo "${ECHO_T}$kde_cv_stl_works" >&6
 
21543
 
 
21544
   if test "$kde_cv_stl_works" = "yes"; then
 
21545
     # back compatible
 
21546
 
 
21547
cat >>confdefs.h <<_ACEOF
 
21548
#define HAVE_SGI_STL 1
 
21549
_ACEOF
 
21550
 
 
21551
   else
 
21552
         { { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
 
21553
Check config.log for details - if you're using a Linux distribution you might miss
 
21554
a package named similiar to libstd++-dev." >&5
 
21555
echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
 
21556
Check config.log for details - if you're using a Linux distribution you might miss
 
21557
a package named similiar to libstd++-dev." >&2;}
 
21558
   { (exit 1); exit 1; }; }
 
21559
   fi
 
21560
 
 
21561
   CXXFLAGS="$ac_save_CXXFLAGS"
16931
21562
   ac_ext=c
16932
21563
ac_cpp='$CPP $CPPFLAGS'
16933
21564
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16934
21565
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16935
21566
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16936
21567
 
 
21568
 
 
21569
 
 
21570
 
 
21571
echo "$as_me:$LINENO: checking for strlcat" >&5
 
21572
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
 
21573
if test "${kde_cv_func_strlcat+set}" = set; then
 
21574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21575
else
 
21576
 
 
21577
 
 
21578
 
 
21579
 ac_ext=cc
 
21580
ac_cpp='$CXXCPP $CPPFLAGS'
 
21581
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21582
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21583
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21584
 
 
21585
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21586
 
 
21587
 
 
21588
save_CXXFLAGS="$CXXFLAGS"
 
21589
kde_safe_LIBS="$LIBS"
 
21590
LIBS="$LIBS $X_EXTRA_LIBS"
 
21591
if test "$GXX" = "yes"; then
 
21592
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
21593
fi
 
21594
cat >conftest.$ac_ext <<_ACEOF
 
21595
/* confdefs.h.  */
 
21596
_ACEOF
 
21597
cat confdefs.h >>conftest.$ac_ext
 
21598
cat >>conftest.$ac_ext <<_ACEOF
 
21599
/* end confdefs.h.  */
 
21600
 
 
21601
 
 
21602
#include <string.h>
 
21603
 
 
21604
 
 
21605
int
 
21606
main ()
 
21607
{
 
21608
 
 
21609
 char buf[20];
 
21610
  buf[0]='\0';
 
21611
  strlcat(buf, "KDE function test", sizeof(buf));
 
21612
 
 
21613
 
 
21614
  ;
 
21615
  return 0;
 
21616
}
 
21617
_ACEOF
 
21618
rm -f conftest.$ac_objext
 
21619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21620
  (eval $ac_compile) 2>conftest.er1
 
21621
  ac_status=$?
 
21622
  grep -v '^ *+' conftest.er1 >conftest.err
 
21623
  rm -f conftest.er1
 
21624
  cat conftest.err >&5
 
21625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21626
  (exit $ac_status); } &&
 
21627
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
21628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21629
  (eval $ac_try) 2>&5
 
21630
  ac_status=$?
 
21631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21632
  (exit $ac_status); }; } &&
 
21633
         { ac_try='test -s conftest.$ac_objext'
 
21634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21635
  (eval $ac_try) 2>&5
 
21636
  ac_status=$?
 
21637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21638
  (exit $ac_status); }; }; then
 
21639
  kde_cv_func_strlcat=yes
 
21640
else
 
21641
  echo "$as_me: failed program was:" >&5
 
21642
sed 's/^/| /' conftest.$ac_ext >&5
 
21643
 
 
21644
kde_cv_func_strlcat=no
 
21645
fi
 
21646
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21647
CXXFLAGS="$save_CXXFLAGS"
 
21648
LIBS="$kde_safe_LIBS"
 
21649
ac_ext=c
 
21650
ac_cpp='$CPP $CPPFLAGS'
 
21651
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21652
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21653
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21654
 
 
21655
 
 
21656
fi
 
21657
 
 
21658
 
 
21659
echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
 
21660
echo "${ECHO_T}$kde_cv_func_strlcat" >&6
 
21661
 
 
21662
echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
 
21663
echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6
 
21664
if test "${kde_cv_proto_strlcat+set}" = set; then
 
21665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21666
else
 
21667
 
 
21668
if test "x$kde_cv_func_strlcat" = xyes; then
 
21669
  kde_cv_proto_strlcat=no
 
21670
else
 
21671
  case "strlcat" in
 
21672
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
21673
                kde_cv_proto_strlcat="yes - in libkdefakes"
 
21674
                ;;
 
21675
        *)
 
21676
                kde_cv_proto_strlcat=unknown
 
21677
                ;;
 
21678
  esac
 
21679
fi
 
21680
 
 
21681
if test "x$kde_cv_proto_strlcat" = xunknown; then
 
21682
 
 
21683
 
 
21684
 
 
21685
 ac_ext=cc
 
21686
ac_cpp='$CXXCPP $CPPFLAGS'
 
21687
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21688
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21689
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21690
 
 
21691
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21692
 
 
21693
 
 
21694
  kde_safe_libs=$LIBS
 
21695
  LIBS="$LIBS $X_EXTRA_LIBS"
 
21696
  cat >conftest.$ac_ext <<_ACEOF
 
21697
/* confdefs.h.  */
 
21698
_ACEOF
 
21699
cat confdefs.h >>conftest.$ac_ext
 
21700
cat >>conftest.$ac_ext <<_ACEOF
 
21701
/* end confdefs.h.  */
 
21702
 
 
21703
 
 
21704
#include <string.h>
 
21705
 
 
21706
 
 
21707
extern "C" unsigned long strlcat(char*, const char*, unsigned long);
 
21708
 
 
21709
int
 
21710
main ()
 
21711
{
 
21712
 
 
21713
 char buf[20];
 
21714
  buf[0]='\0';
 
21715
  strlcat(buf, "KDE function test", sizeof(buf));
 
21716
 
 
21717
 
 
21718
  ;
 
21719
  return 0;
 
21720
}
 
21721
_ACEOF
 
21722
rm -f conftest.$ac_objext conftest$ac_exeext
 
21723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21724
  (eval $ac_link) 2>conftest.er1
 
21725
  ac_status=$?
 
21726
  grep -v '^ *+' conftest.er1 >conftest.err
 
21727
  rm -f conftest.er1
 
21728
  cat conftest.err >&5
 
21729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21730
  (exit $ac_status); } &&
 
21731
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
21732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21733
  (eval $ac_try) 2>&5
 
21734
  ac_status=$?
 
21735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21736
  (exit $ac_status); }; } &&
 
21737
         { ac_try='test -s conftest$ac_exeext'
 
21738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21739
  (eval $ac_try) 2>&5
 
21740
  ac_status=$?
 
21741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21742
  (exit $ac_status); }; }; then
 
21743
   kde_cv_func_strlcat=yes
 
21744
  kde_cv_proto_strlcat=yes
 
21745
else
 
21746
  echo "$as_me: failed program was:" >&5
 
21747
sed 's/^/| /' conftest.$ac_ext >&5
 
21748
 
 
21749
kde_cv_proto_strlcat="strlcat unavailable"
 
21750
 
 
21751
fi
 
21752
rm -f conftest.err conftest.$ac_objext \
 
21753
      conftest$ac_exeext conftest.$ac_ext
 
21754
LIBS=$kde_safe_libs
 
21755
ac_ext=c
 
21756
ac_cpp='$CPP $CPPFLAGS'
 
21757
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21758
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21759
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21760
 
 
21761
fi
 
21762
 
 
21763
fi
 
21764
 
 
21765
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
 
21766
echo "${ECHO_T}$kde_cv_proto_strlcat" >&6
 
21767
 
 
21768
if test "x$kde_cv_func_strlcat" = xyes; then
 
21769
 
 
21770
cat >>confdefs.h <<\_ACEOF
 
21771
#define HAVE_STRLCAT 1
 
21772
_ACEOF
 
21773
 
 
21774
 
 
21775
fi
 
21776
if test "x$kde_cv_proto_strlcat" = xno; then
 
21777
 
 
21778
cat >>confdefs.h <<\_ACEOF
 
21779
#define HAVE_STRLCAT_PROTO 1
 
21780
_ACEOF
 
21781
 
 
21782
fi
 
21783
 
 
21784
 
 
21785
 
 
21786
 
 
21787
 
 
21788
 
 
21789
 
 
21790
echo "$as_me:$LINENO: checking for strlcpy" >&5
 
21791
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
 
21792
if test "${kde_cv_func_strlcpy+set}" = set; then
 
21793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21794
else
 
21795
 
 
21796
 
 
21797
 
 
21798
 ac_ext=cc
 
21799
ac_cpp='$CXXCPP $CPPFLAGS'
 
21800
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21801
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21802
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21803
 
 
21804
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21805
 
 
21806
 
 
21807
save_CXXFLAGS="$CXXFLAGS"
 
21808
kde_safe_LIBS="$LIBS"
 
21809
LIBS="$LIBS $X_EXTRA_LIBS"
 
21810
if test "$GXX" = "yes"; then
 
21811
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
21812
fi
 
21813
cat >conftest.$ac_ext <<_ACEOF
 
21814
/* confdefs.h.  */
 
21815
_ACEOF
 
21816
cat confdefs.h >>conftest.$ac_ext
 
21817
cat >>conftest.$ac_ext <<_ACEOF
 
21818
/* end confdefs.h.  */
 
21819
 
 
21820
 
 
21821
#include <string.h>
 
21822
 
 
21823
 
 
21824
int
 
21825
main ()
 
21826
{
 
21827
 
 
21828
 char buf[20];
 
21829
  strlcpy(buf, "KDE function test", sizeof(buf));
 
21830
 
 
21831
 
 
21832
  ;
 
21833
  return 0;
 
21834
}
 
21835
_ACEOF
 
21836
rm -f conftest.$ac_objext
 
21837
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21838
  (eval $ac_compile) 2>conftest.er1
 
21839
  ac_status=$?
 
21840
  grep -v '^ *+' conftest.er1 >conftest.err
 
21841
  rm -f conftest.er1
 
21842
  cat conftest.err >&5
 
21843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21844
  (exit $ac_status); } &&
 
21845
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
21846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21847
  (eval $ac_try) 2>&5
 
21848
  ac_status=$?
 
21849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21850
  (exit $ac_status); }; } &&
 
21851
         { ac_try='test -s conftest.$ac_objext'
 
21852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21853
  (eval $ac_try) 2>&5
 
21854
  ac_status=$?
 
21855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21856
  (exit $ac_status); }; }; then
 
21857
  kde_cv_func_strlcpy=yes
 
21858
else
 
21859
  echo "$as_me: failed program was:" >&5
 
21860
sed 's/^/| /' conftest.$ac_ext >&5
 
21861
 
 
21862
kde_cv_func_strlcpy=no
 
21863
fi
 
21864
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21865
CXXFLAGS="$save_CXXFLAGS"
 
21866
LIBS="$kde_safe_LIBS"
 
21867
ac_ext=c
 
21868
ac_cpp='$CPP $CPPFLAGS'
 
21869
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21870
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21871
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21872
 
 
21873
 
 
21874
fi
 
21875
 
 
21876
 
 
21877
echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
 
21878
echo "${ECHO_T}$kde_cv_func_strlcpy" >&6
 
21879
 
 
21880
echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
 
21881
echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6
 
21882
if test "${kde_cv_proto_strlcpy+set}" = set; then
 
21883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21884
else
 
21885
 
 
21886
if test "x$kde_cv_func_strlcpy" = xyes; then
 
21887
  kde_cv_proto_strlcpy=no
 
21888
else
 
21889
  case "strlcpy" in
 
21890
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
21891
                kde_cv_proto_strlcpy="yes - in libkdefakes"
 
21892
                ;;
 
21893
        *)
 
21894
                kde_cv_proto_strlcpy=unknown
 
21895
                ;;
 
21896
  esac
 
21897
fi
 
21898
 
 
21899
if test "x$kde_cv_proto_strlcpy" = xunknown; then
 
21900
 
 
21901
 
 
21902
 
 
21903
 ac_ext=cc
 
21904
ac_cpp='$CXXCPP $CPPFLAGS'
 
21905
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21906
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21907
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21908
 
 
21909
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
21910
 
 
21911
 
 
21912
  kde_safe_libs=$LIBS
 
21913
  LIBS="$LIBS $X_EXTRA_LIBS"
 
21914
  cat >conftest.$ac_ext <<_ACEOF
 
21915
/* confdefs.h.  */
 
21916
_ACEOF
 
21917
cat confdefs.h >>conftest.$ac_ext
 
21918
cat >>conftest.$ac_ext <<_ACEOF
 
21919
/* end confdefs.h.  */
 
21920
 
 
21921
 
 
21922
#include <string.h>
 
21923
 
 
21924
 
 
21925
extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
 
21926
 
 
21927
int
 
21928
main ()
 
21929
{
 
21930
 
 
21931
 char buf[20];
 
21932
  strlcpy(buf, "KDE function test", sizeof(buf));
 
21933
 
 
21934
 
 
21935
  ;
 
21936
  return 0;
 
21937
}
 
21938
_ACEOF
 
21939
rm -f conftest.$ac_objext conftest$ac_exeext
 
21940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21941
  (eval $ac_link) 2>conftest.er1
 
21942
  ac_status=$?
 
21943
  grep -v '^ *+' conftest.er1 >conftest.err
 
21944
  rm -f conftest.er1
 
21945
  cat conftest.err >&5
 
21946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21947
  (exit $ac_status); } &&
 
21948
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
21949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21950
  (eval $ac_try) 2>&5
 
21951
  ac_status=$?
 
21952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21953
  (exit $ac_status); }; } &&
 
21954
         { ac_try='test -s conftest$ac_exeext'
 
21955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21956
  (eval $ac_try) 2>&5
 
21957
  ac_status=$?
 
21958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21959
  (exit $ac_status); }; }; then
 
21960
   kde_cv_func_strlcpy=yes
 
21961
  kde_cv_proto_strlcpy=yes
 
21962
else
 
21963
  echo "$as_me: failed program was:" >&5
 
21964
sed 's/^/| /' conftest.$ac_ext >&5
 
21965
 
 
21966
kde_cv_proto_strlcpy="strlcpy unavailable"
 
21967
 
 
21968
fi
 
21969
rm -f conftest.err conftest.$ac_objext \
 
21970
      conftest$ac_exeext conftest.$ac_ext
 
21971
LIBS=$kde_safe_libs
 
21972
ac_ext=c
 
21973
ac_cpp='$CPP $CPPFLAGS'
 
21974
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21975
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21976
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21977
 
 
21978
fi
 
21979
 
 
21980
fi
 
21981
 
 
21982
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
 
21983
echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6
 
21984
 
 
21985
if test "x$kde_cv_func_strlcpy" = xyes; then
 
21986
 
 
21987
cat >>confdefs.h <<\_ACEOF
 
21988
#define HAVE_STRLCPY 1
 
21989
_ACEOF
 
21990
 
 
21991
 
 
21992
fi
 
21993
if test "x$kde_cv_proto_strlcpy" = xno; then
 
21994
 
 
21995
cat >>confdefs.h <<\_ACEOF
 
21996
#define HAVE_STRLCPY_PROTO 1
 
21997
_ACEOF
 
21998
 
 
21999
fi
 
22000
 
 
22001
 
 
22002
 
 
22003
 
 
22004
 
 
22005
 
16937
22006
      echo "$as_me:$LINENO: checking for main in -lutil" >&5
16938
22007
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
16939
22008
if test "${ac_cv_lib_util_main+set}" = set; then
16942
22011
  ac_check_lib_save_LIBS=$LIBS
16943
22012
LIBS="-lutil  $LIBS"
16944
22013
cat >conftest.$ac_ext <<_ACEOF
16945
 
#line $LINENO "configure"
16946
22014
/* confdefs.h.  */
16947
22015
_ACEOF
16948
22016
cat confdefs.h >>conftest.$ac_ext
16960
22028
_ACEOF
16961
22029
rm -f conftest.$ac_objext conftest$ac_exeext
16962
22030
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16963
 
  (eval $ac_link) 2>&5
 
22031
  (eval $ac_link) 2>conftest.er1
16964
22032
  ac_status=$?
 
22033
  grep -v '^ *+' conftest.er1 >conftest.err
 
22034
  rm -f conftest.er1
 
22035
  cat conftest.err >&5
16965
22036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966
22037
  (exit $ac_status); } &&
16967
 
         { ac_try='test -s conftest$ac_exeext'
 
22038
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22040
  (eval $ac_try) 2>&5
 
22041
  ac_status=$?
 
22042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22043
  (exit $ac_status); }; } &&
 
22044
         { ac_try='test -s conftest$ac_exeext'
16968
22045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969
22046
  (eval $ac_try) 2>&5
16970
22047
  ac_status=$?
16977
22054
 
16978
22055
ac_cv_lib_util_main=no
16979
22056
fi
16980
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22057
rm -f conftest.err conftest.$ac_objext \
 
22058
      conftest$ac_exeext conftest.$ac_ext
16981
22059
LIBS=$ac_check_lib_save_LIBS
16982
22060
fi
16983
22061
echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
16994
22072
  ac_check_lib_save_LIBS=$LIBS
16995
22073
LIBS="-lcompat  $LIBS"
16996
22074
cat >conftest.$ac_ext <<_ACEOF
16997
 
#line $LINENO "configure"
16998
22075
/* confdefs.h.  */
16999
22076
_ACEOF
17000
22077
cat confdefs.h >>conftest.$ac_ext
17012
22089
_ACEOF
17013
22090
rm -f conftest.$ac_objext conftest$ac_exeext
17014
22091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015
 
  (eval $ac_link) 2>&5
 
22092
  (eval $ac_link) 2>conftest.er1
17016
22093
  ac_status=$?
 
22094
  grep -v '^ *+' conftest.er1 >conftest.err
 
22095
  rm -f conftest.er1
 
22096
  cat conftest.err >&5
17017
22097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018
22098
  (exit $ac_status); } &&
17019
 
         { ac_try='test -s conftest$ac_exeext'
 
22099
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22100
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22101
  (eval $ac_try) 2>&5
 
22102
  ac_status=$?
 
22103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22104
  (exit $ac_status); }; } &&
 
22105
         { ac_try='test -s conftest$ac_exeext'
17020
22106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021
22107
  (eval $ac_try) 2>&5
17022
22108
  ac_status=$?
17029
22115
 
17030
22116
ac_cv_lib_compat_main=no
17031
22117
fi
17032
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22118
rm -f conftest.err conftest.$ac_objext \
 
22119
      conftest$ac_exeext conftest.$ac_ext
17033
22120
LIBS=$ac_check_lib_save_LIBS
17034
22121
fi
17035
22122
echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
17047
22134
  ac_check_lib_save_LIBS=$LIBS
17048
22135
LIBS="-lcrypt  $LIBS"
17049
22136
cat >conftest.$ac_ext <<_ACEOF
17050
 
#line $LINENO "configure"
17051
22137
/* confdefs.h.  */
17052
22138
_ACEOF
17053
22139
cat confdefs.h >>conftest.$ac_ext
17071
22157
_ACEOF
17072
22158
rm -f conftest.$ac_objext conftest$ac_exeext
17073
22159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074
 
  (eval $ac_link) 2>&5
 
22160
  (eval $ac_link) 2>conftest.er1
17075
22161
  ac_status=$?
 
22162
  grep -v '^ *+' conftest.er1 >conftest.err
 
22163
  rm -f conftest.er1
 
22164
  cat conftest.err >&5
17076
22165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077
22166
  (exit $ac_status); } &&
17078
 
         { ac_try='test -s conftest$ac_exeext'
 
22167
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22169
  (eval $ac_try) 2>&5
 
22170
  ac_status=$?
 
22171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22172
  (exit $ac_status); }; } &&
 
22173
         { ac_try='test -s conftest$ac_exeext'
17079
22174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080
22175
  (eval $ac_try) 2>&5
17081
22176
  ac_status=$?
17088
22183
 
17089
22184
ac_cv_lib_crypt_crypt=no
17090
22185
fi
17091
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22186
rm -f conftest.err conftest.$ac_objext \
 
22187
      conftest$ac_exeext conftest.$ac_ext
17092
22188
LIBS=$ac_check_lib_save_LIBS
17093
22189
fi
17094
22190
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17104
22200
  ac_check_lib_save_LIBS=$LIBS
17105
22201
LIBS="-lc  $LIBS"
17106
22202
cat >conftest.$ac_ext <<_ACEOF
17107
 
#line $LINENO "configure"
17108
22203
/* confdefs.h.  */
17109
22204
_ACEOF
17110
22205
cat confdefs.h >>conftest.$ac_ext
17128
22223
_ACEOF
17129
22224
rm -f conftest.$ac_objext conftest$ac_exeext
17130
22225
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17131
 
  (eval $ac_link) 2>&5
 
22226
  (eval $ac_link) 2>conftest.er1
17132
22227
  ac_status=$?
 
22228
  grep -v '^ *+' conftest.er1 >conftest.err
 
22229
  rm -f conftest.er1
 
22230
  cat conftest.err >&5
17133
22231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134
22232
  (exit $ac_status); } &&
17135
 
         { ac_try='test -s conftest$ac_exeext'
 
22233
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22235
  (eval $ac_try) 2>&5
 
22236
  ac_status=$?
 
22237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22238
  (exit $ac_status); }; } &&
 
22239
         { ac_try='test -s conftest$ac_exeext'
17136
22240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137
22241
  (eval $ac_try) 2>&5
17138
22242
  ac_status=$?
17145
22249
 
17146
22250
ac_cv_lib_c_crypt=no
17147
22251
fi
17148
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22252
rm -f conftest.err conftest.$ac_objext \
 
22253
      conftest$ac_exeext conftest.$ac_ext
17149
22254
LIBS=$ac_check_lib_save_LIBS
17150
22255
fi
17151
22256
echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
17175
22280
 
17176
22281
   fi
17177
22282
 
17178
 
  echo "$as_me:$LINENO: checking for socklen_t" >&5
 
22283
   echo "$as_me:$LINENO: checking for socklen_t" >&5
17179
22284
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17180
 
  if test "${ac_cv_socklen_t+set}" = set; then
17181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17182
 
else
17183
 
 
17184
 
 
17185
 
 
17186
 
     ac_ext=cc
17187
 
ac_cpp='$CXXCPP $CPPFLAGS'
17188
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17189
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17190
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17191
 
 
17192
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17193
 
 
17194
 
 
17195
 
    cat >conftest.$ac_ext <<_ACEOF
17196
 
#line $LINENO "configure"
17197
 
/* confdefs.h.  */
17198
 
_ACEOF
17199
 
cat confdefs.h >>conftest.$ac_ext
17200
 
cat >>conftest.$ac_ext <<_ACEOF
17201
 
/* end confdefs.h.  */
17202
 
 
17203
 
#include <sys/types.h>
17204
 
#include <sys/socket.h>
17205
 
 
17206
 
int
17207
 
main ()
17208
 
{
17209
 
 
17210
 
socklen_t a=0;
17211
 
getsockname(0,(struct sockaddr*)0, &a);
17212
 
 
17213
 
  ;
17214
 
  return 0;
17215
 
}
17216
 
_ACEOF
17217
 
rm -f conftest.$ac_objext
17218
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219
 
  (eval $ac_compile) 2>&5
17220
 
  ac_status=$?
17221
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222
 
  (exit $ac_status); } &&
17223
 
         { ac_try='test -s conftest.$ac_objext'
17224
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225
 
  (eval $ac_try) 2>&5
17226
 
  ac_status=$?
17227
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228
 
  (exit $ac_status); }; }; then
17229
 
  ac_cv_socklen_t=socklen_t
17230
 
else
17231
 
  echo "$as_me: failed program was:" >&5
17232
 
sed 's/^/| /' conftest.$ac_ext >&5
17233
 
 
17234
 
cat >conftest.$ac_ext <<_ACEOF
17235
 
#line $LINENO "configure"
17236
 
/* confdefs.h.  */
17237
 
_ACEOF
17238
 
cat confdefs.h >>conftest.$ac_ext
17239
 
cat >>conftest.$ac_ext <<_ACEOF
17240
 
/* end confdefs.h.  */
17241
 
 
17242
 
#include <sys/types.h>
17243
 
#include <sys/socket.h>
17244
 
 
17245
 
int
17246
 
main ()
17247
 
{
17248
 
 
17249
 
int a=0;
17250
 
getsockname(0,(struct sockaddr*)0, &a);
17251
 
 
17252
 
  ;
17253
 
  return 0;
17254
 
}
17255
 
_ACEOF
17256
 
rm -f conftest.$ac_objext
17257
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258
 
  (eval $ac_compile) 2>&5
17259
 
  ac_status=$?
17260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261
 
  (exit $ac_status); } &&
17262
 
         { ac_try='test -s conftest.$ac_objext'
17263
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264
 
  (eval $ac_try) 2>&5
17265
 
  ac_status=$?
17266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267
 
  (exit $ac_status); }; }; then
17268
 
  ac_cv_socklen_t=int
17269
 
else
17270
 
  echo "$as_me: failed program was:" >&5
17271
 
sed 's/^/| /' conftest.$ac_ext >&5
17272
 
 
17273
 
ac_cv_socklen_t=size_t
17274
 
 
17275
 
fi
17276
 
rm -f conftest.$ac_objext conftest.$ac_ext
17277
 
 
17278
 
fi
17279
 
rm -f conftest.$ac_objext conftest.$ac_ext
17280
 
    ac_ext=c
17281
 
ac_cpp='$CPP $CPPFLAGS'
17282
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17283
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17284
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17285
 
 
17286
 
 
17287
 
fi
17288
 
 
17289
 
 
17290
 
  echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
17291
 
echo "${ECHO_T}$ac_cv_socklen_t" >&6
17292
 
  if test "$ac_cv_socklen_t" != "socklen_t"; then
17293
 
 
17294
 
cat >>confdefs.h <<_ACEOF
17295
 
#define socklen_t $ac_cv_socklen_t
17296
 
_ACEOF
17297
 
 
17298
 
  fi
17299
 
 
17300
 
cat >>confdefs.h <<_ACEOF
17301
 
#define ksize_t socklen_t
17302
 
_ACEOF
17303
 
 
17304
 
 
17305
 
 
17306
 
   ac_ext=c
17307
 
ac_cpp='$CPP $CPPFLAGS'
17308
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17309
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17310
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22285
   if test "${kde_cv_socklen_t+set}" = set; then
 
22286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22287
else
 
22288
 
 
22289
      ac_ext=cc
 
22290
ac_cpp='$CXXCPP $CPPFLAGS'
 
22291
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22292
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22293
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22294
 
 
22295
      kde_cv_socklen_t=no
 
22296
      cat >conftest.$ac_ext <<_ACEOF
 
22297
/* confdefs.h.  */
 
22298
_ACEOF
 
22299
cat confdefs.h >>conftest.$ac_ext
 
22300
cat >>conftest.$ac_ext <<_ACEOF
 
22301
/* end confdefs.h.  */
 
22302
 
 
22303
         #include <sys/types.h>
 
22304
         #include <sys/socket.h>
 
22305
 
 
22306
int
 
22307
main ()
 
22308
{
 
22309
 
 
22310
         socklen_t len;
 
22311
         getpeername(0,0,&len);
 
22312
 
 
22313
  ;
 
22314
  return 0;
 
22315
}
 
22316
_ACEOF
 
22317
rm -f conftest.$ac_objext
 
22318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22319
  (eval $ac_compile) 2>conftest.er1
 
22320
  ac_status=$?
 
22321
  grep -v '^ *+' conftest.er1 >conftest.err
 
22322
  rm -f conftest.er1
 
22323
  cat conftest.err >&5
 
22324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22325
  (exit $ac_status); } &&
 
22326
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
22327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22328
  (eval $ac_try) 2>&5
 
22329
  ac_status=$?
 
22330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22331
  (exit $ac_status); }; } &&
 
22332
         { ac_try='test -s conftest.$ac_objext'
 
22333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22334
  (eval $ac_try) 2>&5
 
22335
  ac_status=$?
 
22336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22337
  (exit $ac_status); }; }; then
 
22338
 
 
22339
         kde_cv_socklen_t=yes
 
22340
         kde_cv_socklen_t_equiv=socklen_t
 
22341
 
 
22342
else
 
22343
  echo "$as_me: failed program was:" >&5
 
22344
sed 's/^/| /' conftest.$ac_ext >&5
 
22345
 
 
22346
fi
 
22347
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22348
      ac_ext=c
 
22349
ac_cpp='$CPP $CPPFLAGS'
 
22350
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22351
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22352
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22353
 
 
22354
 
 
22355
fi
 
22356
 
 
22357
   echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
 
22358
echo "${ECHO_T}$kde_cv_socklen_t" >&6
 
22359
   if test $kde_cv_socklen_t = no; then
 
22360
      echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
 
22361
echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6
 
22362
      if test "${kde_cv_socklen_t_equiv+set}" = set; then
 
22363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22364
else
 
22365
 
 
22366
         kde_cv_socklen_t_equiv=int
 
22367
         ac_ext=cc
 
22368
ac_cpp='$CXXCPP $CPPFLAGS'
 
22369
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22370
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22371
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22372
 
 
22373
         for t in int size_t unsigned long "unsigned long"; do
 
22374
            cat >conftest.$ac_ext <<_ACEOF
 
22375
/* confdefs.h.  */
 
22376
_ACEOF
 
22377
cat confdefs.h >>conftest.$ac_ext
 
22378
cat >>conftest.$ac_ext <<_ACEOF
 
22379
/* end confdefs.h.  */
 
22380
 
 
22381
               #include <sys/types.h>
 
22382
               #include <sys/socket.h>
 
22383
 
 
22384
int
 
22385
main ()
 
22386
{
 
22387
 
 
22388
               $t len;
 
22389
               getpeername(0,0,&len);
 
22390
 
 
22391
  ;
 
22392
  return 0;
 
22393
}
 
22394
_ACEOF
 
22395
rm -f conftest.$ac_objext
 
22396
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22397
  (eval $ac_compile) 2>conftest.er1
 
22398
  ac_status=$?
 
22399
  grep -v '^ *+' conftest.er1 >conftest.err
 
22400
  rm -f conftest.er1
 
22401
  cat conftest.err >&5
 
22402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22403
  (exit $ac_status); } &&
 
22404
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
22405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22406
  (eval $ac_try) 2>&5
 
22407
  ac_status=$?
 
22408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22409
  (exit $ac_status); }; } &&
 
22410
         { ac_try='test -s conftest.$ac_objext'
 
22411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22412
  (eval $ac_try) 2>&5
 
22413
  ac_status=$?
 
22414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22415
  (exit $ac_status); }; }; then
 
22416
 
 
22417
               kde_cv_socklen_t_equiv="$t"
 
22418
               break
 
22419
 
 
22420
else
 
22421
  echo "$as_me: failed program was:" >&5
 
22422
sed 's/^/| /' conftest.$ac_ext >&5
 
22423
 
 
22424
fi
 
22425
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22426
         done
 
22427
         ac_ext=c
 
22428
ac_cpp='$CPP $CPPFLAGS'
 
22429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22432
 
 
22433
 
 
22434
fi
 
22435
 
 
22436
      echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
 
22437
echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6
 
22438
   fi
 
22439
 
 
22440
cat >>confdefs.h <<_ACEOF
 
22441
#define kde_socklen_t $kde_cv_socklen_t_equiv
 
22442
_ACEOF
 
22443
 
 
22444
 
 
22445
cat >>confdefs.h <<_ACEOF
 
22446
#define ksize_t $kde_cv_socklen_t_equiv
 
22447
_ACEOF
 
22448
 
17311
22449
 
17312
22450
   echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17313
22451
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17317
22455
  ac_check_lib_save_LIBS=$LIBS
17318
22456
LIBS="-ldnet  $LIBS"
17319
22457
cat >conftest.$ac_ext <<_ACEOF
17320
 
#line $LINENO "configure"
17321
22458
/* confdefs.h.  */
17322
22459
_ACEOF
17323
22460
cat confdefs.h >>conftest.$ac_ext
17341
22478
_ACEOF
17342
22479
rm -f conftest.$ac_objext conftest$ac_exeext
17343
22480
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17344
 
  (eval $ac_link) 2>&5
 
22481
  (eval $ac_link) 2>conftest.er1
17345
22482
  ac_status=$?
 
22483
  grep -v '^ *+' conftest.er1 >conftest.err
 
22484
  rm -f conftest.er1
 
22485
  cat conftest.err >&5
17346
22486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347
22487
  (exit $ac_status); } &&
17348
 
         { ac_try='test -s conftest$ac_exeext'
 
22488
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22490
  (eval $ac_try) 2>&5
 
22491
  ac_status=$?
 
22492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22493
  (exit $ac_status); }; } &&
 
22494
         { ac_try='test -s conftest$ac_exeext'
17349
22495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350
22496
  (eval $ac_try) 2>&5
17351
22497
  ac_status=$?
17358
22504
 
17359
22505
ac_cv_lib_dnet_dnet_ntoa=no
17360
22506
fi
17361
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22507
rm -f conftest.err conftest.$ac_objext \
 
22508
      conftest$ac_exeext conftest.$ac_ext
17362
22509
LIBS=$ac_check_lib_save_LIBS
17363
22510
fi
17364
22511
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17376
22523
  ac_check_lib_save_LIBS=$LIBS
17377
22524
LIBS="-ldnet_stub  $LIBS"
17378
22525
cat >conftest.$ac_ext <<_ACEOF
17379
 
#line $LINENO "configure"
17380
22526
/* confdefs.h.  */
17381
22527
_ACEOF
17382
22528
cat confdefs.h >>conftest.$ac_ext
17400
22546
_ACEOF
17401
22547
rm -f conftest.$ac_objext conftest$ac_exeext
17402
22548
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403
 
  (eval $ac_link) 2>&5
 
22549
  (eval $ac_link) 2>conftest.er1
17404
22550
  ac_status=$?
 
22551
  grep -v '^ *+' conftest.er1 >conftest.err
 
22552
  rm -f conftest.er1
 
22553
  cat conftest.err >&5
17405
22554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406
22555
  (exit $ac_status); } &&
17407
 
         { ac_try='test -s conftest$ac_exeext'
 
22556
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22557
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22558
  (eval $ac_try) 2>&5
 
22559
  ac_status=$?
 
22560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22561
  (exit $ac_status); }; } &&
 
22562
         { ac_try='test -s conftest$ac_exeext'
17408
22563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409
22564
  (eval $ac_try) 2>&5
17410
22565
  ac_status=$?
17417
22572
 
17418
22573
ac_cv_lib_dnet_stub_dnet_ntoa=no
17419
22574
fi
17420
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22575
rm -f conftest.err conftest.$ac_objext \
 
22576
      conftest$ac_exeext conftest.$ac_ext
17421
22577
LIBS=$ac_check_lib_save_LIBS
17422
22578
fi
17423
22579
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17433
22589
  echo $ECHO_N "(cached) $ECHO_C" >&6
17434
22590
else
17435
22591
  cat >conftest.$ac_ext <<_ACEOF
17436
 
#line $LINENO "configure"
17437
22592
/* confdefs.h.  */
17438
22593
_ACEOF
17439
22594
cat confdefs.h >>conftest.$ac_ext
17440
22595
cat >>conftest.$ac_ext <<_ACEOF
17441
22596
/* end confdefs.h.  */
 
22597
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
 
22598
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22599
#define inet_ntoa innocuous_inet_ntoa
 
22600
 
17442
22601
/* System header to define __stub macros and hopefully few prototypes,
17443
22602
    which can conflict with char inet_ntoa (); below.
17444
22603
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17445
22604
    <limits.h> exists even on freestanding compilers.  */
 
22605
 
17446
22606
#ifdef __STDC__
17447
22607
# include <limits.h>
17448
22608
#else
17449
22609
# include <assert.h>
17450
22610
#endif
 
22611
 
 
22612
#undef inet_ntoa
 
22613
 
17451
22614
/* Override any gcc2 internal prototype to avoid an error.  */
17452
22615
#ifdef __cplusplus
17453
22616
extern "C"
17478
22641
_ACEOF
17479
22642
rm -f conftest.$ac_objext conftest$ac_exeext
17480
22643
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481
 
  (eval $ac_link) 2>&5
 
22644
  (eval $ac_link) 2>conftest.er1
17482
22645
  ac_status=$?
 
22646
  grep -v '^ *+' conftest.er1 >conftest.err
 
22647
  rm -f conftest.er1
 
22648
  cat conftest.err >&5
17483
22649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484
22650
  (exit $ac_status); } &&
17485
 
         { ac_try='test -s conftest$ac_exeext'
 
22651
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22653
  (eval $ac_try) 2>&5
 
22654
  ac_status=$?
 
22655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22656
  (exit $ac_status); }; } &&
 
22657
         { ac_try='test -s conftest$ac_exeext'
17486
22658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487
22659
  (eval $ac_try) 2>&5
17488
22660
  ac_status=$?
17495
22667
 
17496
22668
ac_cv_func_inet_ntoa=no
17497
22669
fi
17498
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22670
rm -f conftest.err conftest.$ac_objext \
 
22671
      conftest$ac_exeext conftest.$ac_ext
17499
22672
fi
17500
22673
echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
17501
22674
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
17509
22682
  ac_check_lib_save_LIBS=$LIBS
17510
22683
LIBS="-lnsl  $LIBS"
17511
22684
cat >conftest.$ac_ext <<_ACEOF
17512
 
#line $LINENO "configure"
17513
22685
/* confdefs.h.  */
17514
22686
_ACEOF
17515
22687
cat confdefs.h >>conftest.$ac_ext
17533
22705
_ACEOF
17534
22706
rm -f conftest.$ac_objext conftest$ac_exeext
17535
22707
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17536
 
  (eval $ac_link) 2>&5
 
22708
  (eval $ac_link) 2>conftest.er1
17537
22709
  ac_status=$?
 
22710
  grep -v '^ *+' conftest.er1 >conftest.err
 
22711
  rm -f conftest.er1
 
22712
  cat conftest.err >&5
17538
22713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539
22714
  (exit $ac_status); } &&
17540
 
         { ac_try='test -s conftest$ac_exeext'
 
22715
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22717
  (eval $ac_try) 2>&5
 
22718
  ac_status=$?
 
22719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22720
  (exit $ac_status); }; } &&
 
22721
         { ac_try='test -s conftest$ac_exeext'
17541
22722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542
22723
  (eval $ac_try) 2>&5
17543
22724
  ac_status=$?
17550
22731
 
17551
22732
ac_cv_lib_nsl_inet_ntoa=no
17552
22733
fi
17553
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22734
rm -f conftest.err conftest.$ac_objext \
 
22735
      conftest$ac_exeext conftest.$ac_ext
17554
22736
LIBS=$ac_check_lib_save_LIBS
17555
22737
fi
17556
22738
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
17566
22748
  echo $ECHO_N "(cached) $ECHO_C" >&6
17567
22749
else
17568
22750
  cat >conftest.$ac_ext <<_ACEOF
17569
 
#line $LINENO "configure"
17570
22751
/* confdefs.h.  */
17571
22752
_ACEOF
17572
22753
cat confdefs.h >>conftest.$ac_ext
17573
22754
cat >>conftest.$ac_ext <<_ACEOF
17574
22755
/* end confdefs.h.  */
 
22756
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
22757
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22758
#define connect innocuous_connect
 
22759
 
17575
22760
/* System header to define __stub macros and hopefully few prototypes,
17576
22761
    which can conflict with char connect (); below.
17577
22762
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578
22763
    <limits.h> exists even on freestanding compilers.  */
 
22764
 
17579
22765
#ifdef __STDC__
17580
22766
# include <limits.h>
17581
22767
#else
17582
22768
# include <assert.h>
17583
22769
#endif
 
22770
 
 
22771
#undef connect
 
22772
 
17584
22773
/* Override any gcc2 internal prototype to avoid an error.  */
17585
22774
#ifdef __cplusplus
17586
22775
extern "C"
17611
22800
_ACEOF
17612
22801
rm -f conftest.$ac_objext conftest$ac_exeext
17613
22802
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614
 
  (eval $ac_link) 2>&5
 
22803
  (eval $ac_link) 2>conftest.er1
17615
22804
  ac_status=$?
 
22805
  grep -v '^ *+' conftest.er1 >conftest.err
 
22806
  rm -f conftest.er1
 
22807
  cat conftest.err >&5
17616
22808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617
22809
  (exit $ac_status); } &&
17618
 
         { ac_try='test -s conftest$ac_exeext'
 
22810
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22812
  (eval $ac_try) 2>&5
 
22813
  ac_status=$?
 
22814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22815
  (exit $ac_status); }; } &&
 
22816
         { ac_try='test -s conftest$ac_exeext'
17619
22817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620
22818
  (eval $ac_try) 2>&5
17621
22819
  ac_status=$?
17628
22826
 
17629
22827
ac_cv_func_connect=no
17630
22828
fi
17631
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22829
rm -f conftest.err conftest.$ac_objext \
 
22830
      conftest$ac_exeext conftest.$ac_ext
17632
22831
fi
17633
22832
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
17634
22833
echo "${ECHO_T}$ac_cv_func_connect" >&6
17642
22841
  ac_check_lib_save_LIBS=$LIBS
17643
22842
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
17644
22843
cat >conftest.$ac_ext <<_ACEOF
17645
 
#line $LINENO "configure"
17646
22844
/* confdefs.h.  */
17647
22845
_ACEOF
17648
22846
cat confdefs.h >>conftest.$ac_ext
17666
22864
_ACEOF
17667
22865
rm -f conftest.$ac_objext conftest$ac_exeext
17668
22866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17669
 
  (eval $ac_link) 2>&5
 
22867
  (eval $ac_link) 2>conftest.er1
17670
22868
  ac_status=$?
 
22869
  grep -v '^ *+' conftest.er1 >conftest.err
 
22870
  rm -f conftest.er1
 
22871
  cat conftest.err >&5
17671
22872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672
22873
  (exit $ac_status); } &&
17673
 
         { ac_try='test -s conftest$ac_exeext'
 
22874
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22876
  (eval $ac_try) 2>&5
 
22877
  ac_status=$?
 
22878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22879
  (exit $ac_status); }; } &&
 
22880
         { ac_try='test -s conftest$ac_exeext'
17674
22881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675
22882
  (eval $ac_try) 2>&5
17676
22883
  ac_status=$?
17683
22890
 
17684
22891
ac_cv_lib_socket_connect=no
17685
22892
fi
17686
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22893
rm -f conftest.err conftest.$ac_objext \
 
22894
      conftest$ac_exeext conftest.$ac_ext
17687
22895
LIBS=$ac_check_lib_save_LIBS
17688
22896
fi
17689
22897
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
17700
22908
  echo $ECHO_N "(cached) $ECHO_C" >&6
17701
22909
else
17702
22910
  cat >conftest.$ac_ext <<_ACEOF
17703
 
#line $LINENO "configure"
17704
22911
/* confdefs.h.  */
17705
22912
_ACEOF
17706
22913
cat confdefs.h >>conftest.$ac_ext
17707
22914
cat >>conftest.$ac_ext <<_ACEOF
17708
22915
/* end confdefs.h.  */
 
22916
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
22917
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22918
#define remove innocuous_remove
 
22919
 
17709
22920
/* System header to define __stub macros and hopefully few prototypes,
17710
22921
    which can conflict with char remove (); below.
17711
22922
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712
22923
    <limits.h> exists even on freestanding compilers.  */
 
22924
 
17713
22925
#ifdef __STDC__
17714
22926
# include <limits.h>
17715
22927
#else
17716
22928
# include <assert.h>
17717
22929
#endif
 
22930
 
 
22931
#undef remove
 
22932
 
17718
22933
/* Override any gcc2 internal prototype to avoid an error.  */
17719
22934
#ifdef __cplusplus
17720
22935
extern "C"
17745
22960
_ACEOF
17746
22961
rm -f conftest.$ac_objext conftest$ac_exeext
17747
22962
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748
 
  (eval $ac_link) 2>&5
 
22963
  (eval $ac_link) 2>conftest.er1
17749
22964
  ac_status=$?
 
22965
  grep -v '^ *+' conftest.er1 >conftest.err
 
22966
  rm -f conftest.er1
 
22967
  cat conftest.err >&5
17750
22968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751
22969
  (exit $ac_status); } &&
17752
 
         { ac_try='test -s conftest$ac_exeext'
 
22970
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22972
  (eval $ac_try) 2>&5
 
22973
  ac_status=$?
 
22974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22975
  (exit $ac_status); }; } &&
 
22976
         { ac_try='test -s conftest$ac_exeext'
17753
22977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754
22978
  (eval $ac_try) 2>&5
17755
22979
  ac_status=$?
17762
22986
 
17763
22987
ac_cv_func_remove=no
17764
22988
fi
17765
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22989
rm -f conftest.err conftest.$ac_objext \
 
22990
      conftest$ac_exeext conftest.$ac_ext
17766
22991
fi
17767
22992
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
17768
22993
echo "${ECHO_T}$ac_cv_func_remove" >&6
17776
23001
  ac_check_lib_save_LIBS=$LIBS
17777
23002
LIBS="-lposix  $LIBS"
17778
23003
cat >conftest.$ac_ext <<_ACEOF
17779
 
#line $LINENO "configure"
17780
23004
/* confdefs.h.  */
17781
23005
_ACEOF
17782
23006
cat confdefs.h >>conftest.$ac_ext
17800
23024
_ACEOF
17801
23025
rm -f conftest.$ac_objext conftest$ac_exeext
17802
23026
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803
 
  (eval $ac_link) 2>&5
 
23027
  (eval $ac_link) 2>conftest.er1
17804
23028
  ac_status=$?
 
23029
  grep -v '^ *+' conftest.er1 >conftest.err
 
23030
  rm -f conftest.er1
 
23031
  cat conftest.err >&5
17805
23032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806
23033
  (exit $ac_status); } &&
17807
 
         { ac_try='test -s conftest$ac_exeext'
 
23034
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23036
  (eval $ac_try) 2>&5
 
23037
  ac_status=$?
 
23038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23039
  (exit $ac_status); }; } &&
 
23040
         { ac_try='test -s conftest$ac_exeext'
17808
23041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809
23042
  (eval $ac_try) 2>&5
17810
23043
  ac_status=$?
17817
23050
 
17818
23051
ac_cv_lib_posix_remove=no
17819
23052
fi
17820
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23053
rm -f conftest.err conftest.$ac_objext \
 
23054
      conftest$ac_exeext conftest.$ac_ext
17821
23055
LIBS=$ac_check_lib_save_LIBS
17822
23056
fi
17823
23057
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
17835
23069
  echo $ECHO_N "(cached) $ECHO_C" >&6
17836
23070
else
17837
23071
  cat >conftest.$ac_ext <<_ACEOF
17838
 
#line $LINENO "configure"
17839
23072
/* confdefs.h.  */
17840
23073
_ACEOF
17841
23074
cat confdefs.h >>conftest.$ac_ext
17842
23075
cat >>conftest.$ac_ext <<_ACEOF
17843
23076
/* end confdefs.h.  */
 
23077
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
23078
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23079
#define shmat innocuous_shmat
 
23080
 
17844
23081
/* System header to define __stub macros and hopefully few prototypes,
17845
23082
    which can conflict with char shmat (); below.
17846
23083
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17847
23084
    <limits.h> exists even on freestanding compilers.  */
 
23085
 
17848
23086
#ifdef __STDC__
17849
23087
# include <limits.h>
17850
23088
#else
17851
23089
# include <assert.h>
17852
23090
#endif
 
23091
 
 
23092
#undef shmat
 
23093
 
17853
23094
/* Override any gcc2 internal prototype to avoid an error.  */
17854
23095
#ifdef __cplusplus
17855
23096
extern "C"
17880
23121
_ACEOF
17881
23122
rm -f conftest.$ac_objext conftest$ac_exeext
17882
23123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17883
 
  (eval $ac_link) 2>&5
 
23124
  (eval $ac_link) 2>conftest.er1
17884
23125
  ac_status=$?
 
23126
  grep -v '^ *+' conftest.er1 >conftest.err
 
23127
  rm -f conftest.er1
 
23128
  cat conftest.err >&5
17885
23129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886
23130
  (exit $ac_status); } &&
17887
 
         { ac_try='test -s conftest$ac_exeext'
 
23131
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23133
  (eval $ac_try) 2>&5
 
23134
  ac_status=$?
 
23135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23136
  (exit $ac_status); }; } &&
 
23137
         { ac_try='test -s conftest$ac_exeext'
17888
23138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889
23139
  (eval $ac_try) 2>&5
17890
23140
  ac_status=$?
17897
23147
 
17898
23148
ac_cv_func_shmat=no
17899
23149
fi
17900
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23150
rm -f conftest.err conftest.$ac_objext \
 
23151
      conftest$ac_exeext conftest.$ac_ext
17901
23152
fi
17902
23153
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
17903
23154
echo "${ECHO_T}$ac_cv_func_shmat" >&6
17912
23163
  ac_check_lib_save_LIBS=$LIBS
17913
23164
LIBS="-lipc  $LIBS"
17914
23165
cat >conftest.$ac_ext <<_ACEOF
17915
 
#line $LINENO "configure"
17916
23166
/* confdefs.h.  */
17917
23167
_ACEOF
17918
23168
cat confdefs.h >>conftest.$ac_ext
17936
23186
_ACEOF
17937
23187
rm -f conftest.$ac_objext conftest$ac_exeext
17938
23188
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17939
 
  (eval $ac_link) 2>&5
 
23189
  (eval $ac_link) 2>conftest.er1
17940
23190
  ac_status=$?
 
23191
  grep -v '^ *+' conftest.er1 >conftest.err
 
23192
  rm -f conftest.er1
 
23193
  cat conftest.err >&5
17941
23194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942
23195
  (exit $ac_status); } &&
17943
 
         { ac_try='test -s conftest$ac_exeext'
 
23196
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23198
  (eval $ac_try) 2>&5
 
23199
  ac_status=$?
 
23200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23201
  (exit $ac_status); }; } &&
 
23202
         { ac_try='test -s conftest$ac_exeext'
17944
23203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945
23204
  (eval $ac_try) 2>&5
17946
23205
  ac_status=$?
17953
23212
 
17954
23213
ac_cv_lib_ipc_shmat=no
17955
23214
fi
17956
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23215
rm -f conftest.err conftest.$ac_objext \
 
23216
      conftest$ac_exeext conftest.$ac_ext
17957
23217
LIBS=$ac_check_lib_save_LIBS
17958
23218
fi
17959
23219
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
17965
23225
fi
17966
23226
 
17967
23227
 
17968
 
   # darwin needs this to initialize the environment
17969
 
 
17970
 
for ac_header in crt_externs.h
17971
 
do
17972
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17973
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17974
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
17975
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17976
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17977
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17978
 
fi
17979
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17980
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17981
 
else
17982
 
  # Is the header compilable?
17983
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
17984
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17985
 
cat >conftest.$ac_ext <<_ACEOF
17986
 
#line $LINENO "configure"
17987
 
/* confdefs.h.  */
17988
 
_ACEOF
17989
 
cat confdefs.h >>conftest.$ac_ext
17990
 
cat >>conftest.$ac_ext <<_ACEOF
17991
 
/* end confdefs.h.  */
17992
 
$ac_includes_default
17993
 
#include <$ac_header>
17994
 
_ACEOF
17995
 
rm -f conftest.$ac_objext
17996
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17997
 
  (eval $ac_compile) 2>&5
17998
 
  ac_status=$?
17999
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000
 
  (exit $ac_status); } &&
18001
 
         { ac_try='test -s conftest.$ac_objext'
18002
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003
 
  (eval $ac_try) 2>&5
18004
 
  ac_status=$?
18005
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006
 
  (exit $ac_status); }; }; then
18007
 
  ac_header_compiler=yes
18008
 
else
18009
 
  echo "$as_me: failed program was:" >&5
18010
 
sed 's/^/| /' conftest.$ac_ext >&5
18011
 
 
18012
 
ac_header_compiler=no
18013
 
fi
18014
 
rm -f conftest.$ac_objext conftest.$ac_ext
18015
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18016
 
echo "${ECHO_T}$ac_header_compiler" >&6
18017
 
 
18018
 
# Is the header present?
18019
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18020
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18021
 
cat >conftest.$ac_ext <<_ACEOF
18022
 
#line $LINENO "configure"
18023
 
/* confdefs.h.  */
18024
 
_ACEOF
18025
 
cat confdefs.h >>conftest.$ac_ext
18026
 
cat >>conftest.$ac_ext <<_ACEOF
18027
 
/* end confdefs.h.  */
18028
 
#include <$ac_header>
18029
 
_ACEOF
18030
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18031
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18032
 
  ac_status=$?
18033
 
  grep -v '^ *+' conftest.er1 >conftest.err
18034
 
  rm -f conftest.er1
18035
 
  cat conftest.err >&5
18036
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037
 
  (exit $ac_status); } >/dev/null; then
18038
 
  if test -s conftest.err; then
18039
 
    ac_cpp_err=$ac_c_preproc_warn_flag
18040
 
  else
18041
 
    ac_cpp_err=
18042
 
  fi
18043
 
else
18044
 
  ac_cpp_err=yes
18045
 
fi
18046
 
if test -z "$ac_cpp_err"; then
18047
 
  ac_header_preproc=yes
18048
 
else
18049
 
  echo "$as_me: failed program was:" >&5
18050
 
sed 's/^/| /' conftest.$ac_ext >&5
18051
 
 
18052
 
  ac_header_preproc=no
18053
 
fi
18054
 
rm -f conftest.err conftest.$ac_ext
18055
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18056
 
echo "${ECHO_T}$ac_header_preproc" >&6
18057
 
 
18058
 
# So?  What about this header?
18059
 
case $ac_header_compiler:$ac_header_preproc in
18060
 
  yes:no )
18061
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18062
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18063
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18064
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18065
 
    (
18066
 
      cat <<\_ASBOX
18067
 
## ------------------------------------ ##
18068
 
## Report this to bug-autoconf@gnu.org. ##
18069
 
## ------------------------------------ ##
18070
 
_ASBOX
18071
 
    ) |
18072
 
      sed "s/^/$as_me: WARNING:     /" >&2
18073
 
    ;;
18074
 
  no:yes )
18075
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18076
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18077
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18078
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18079
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18080
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18081
 
    (
18082
 
      cat <<\_ASBOX
18083
 
## ------------------------------------ ##
18084
 
## Report this to bug-autoconf@gnu.org. ##
18085
 
## ------------------------------------ ##
18086
 
_ASBOX
18087
 
    ) |
18088
 
      sed "s/^/$as_me: WARNING:     /" >&2
18089
 
    ;;
18090
 
esac
18091
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
18092
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18093
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18094
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18095
 
else
18096
 
  eval "$as_ac_Header=$ac_header_preproc"
18097
 
fi
18098
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18099
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18100
 
 
18101
 
fi
18102
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18103
 
  cat >>confdefs.h <<_ACEOF
18104
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18105
 
_ACEOF
18106
 
 
18107
 
fi
18108
 
 
18109
 
done
18110
 
 
18111
 
   echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
18112
 
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
18113
 
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
18114
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18115
 
else
18116
 
  cat >conftest.$ac_ext <<_ACEOF
18117
 
#line $LINENO "configure"
18118
 
/* confdefs.h.  */
18119
 
_ACEOF
18120
 
cat confdefs.h >>conftest.$ac_ext
18121
 
cat >>conftest.$ac_ext <<_ACEOF
18122
 
/* end confdefs.h.  */
18123
 
/* System header to define __stub macros and hopefully few prototypes,
18124
 
    which can conflict with char _NSGetEnviron (); below.
18125
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18126
 
    <limits.h> exists even on freestanding compilers.  */
18127
 
#ifdef __STDC__
18128
 
# include <limits.h>
18129
 
#else
18130
 
# include <assert.h>
18131
 
#endif
18132
 
/* Override any gcc2 internal prototype to avoid an error.  */
18133
 
#ifdef __cplusplus
18134
 
extern "C"
18135
 
{
18136
 
#endif
18137
 
/* We use char because int might match the return type of a gcc2
18138
 
   builtin and then its argument prototype would still apply.  */
18139
 
char _NSGetEnviron ();
18140
 
/* The GNU C library defines this for functions which it implements
18141
 
    to always fail with ENOSYS.  Some functions are actually named
18142
 
    something starting with __ and the normal name is an alias.  */
18143
 
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
18144
 
choke me
18145
 
#else
18146
 
char (*f) () = _NSGetEnviron;
18147
 
#endif
18148
 
#ifdef __cplusplus
18149
 
}
18150
 
#endif
18151
 
 
18152
 
int
18153
 
main ()
18154
 
{
18155
 
return f != _NSGetEnviron;
18156
 
  ;
18157
 
  return 0;
18158
 
}
18159
 
_ACEOF
18160
 
rm -f conftest.$ac_objext conftest$ac_exeext
18161
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18162
 
  (eval $ac_link) 2>&5
18163
 
  ac_status=$?
18164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165
 
  (exit $ac_status); } &&
18166
 
         { ac_try='test -s conftest$ac_exeext'
18167
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168
 
  (eval $ac_try) 2>&5
18169
 
  ac_status=$?
18170
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171
 
  (exit $ac_status); }; }; then
18172
 
  ac_cv_func__NSGetEnviron=yes
18173
 
else
18174
 
  echo "$as_me: failed program was:" >&5
18175
 
sed 's/^/| /' conftest.$ac_ext >&5
18176
 
 
18177
 
ac_cv_func__NSGetEnviron=no
18178
 
fi
18179
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18180
 
fi
18181
 
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
18182
 
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
18183
 
if test $ac_cv_func__NSGetEnviron = yes; then
18184
 
 
18185
 
cat >>confdefs.h <<\_ACEOF
18186
 
#define HAVE_NSGETENVIRON 1
18187
 
_ACEOF
18188
 
 
18189
 
fi
18190
 
 
18191
 
 
18192
23228
   # more headers that need to be explicitly included on darwin
18193
23229
 
18194
23230
 
18208
23244
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18209
23245
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18210
23246
cat >conftest.$ac_ext <<_ACEOF
18211
 
#line $LINENO "configure"
18212
 
/* confdefs.h.  */
18213
 
_ACEOF
18214
 
cat confdefs.h >>conftest.$ac_ext
18215
 
cat >>conftest.$ac_ext <<_ACEOF
18216
 
/* end confdefs.h.  */
18217
 
$ac_includes_default
18218
 
#include <$ac_header>
18219
 
_ACEOF
18220
 
rm -f conftest.$ac_objext
18221
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18222
 
  (eval $ac_compile) 2>&5
18223
 
  ac_status=$?
18224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225
 
  (exit $ac_status); } &&
18226
 
         { ac_try='test -s conftest.$ac_objext'
18227
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228
 
  (eval $ac_try) 2>&5
18229
 
  ac_status=$?
18230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231
 
  (exit $ac_status); }; }; then
18232
 
  ac_header_compiler=yes
18233
 
else
18234
 
  echo "$as_me: failed program was:" >&5
18235
 
sed 's/^/| /' conftest.$ac_ext >&5
18236
 
 
18237
 
ac_header_compiler=no
18238
 
fi
18239
 
rm -f conftest.$ac_objext conftest.$ac_ext
18240
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18241
 
echo "${ECHO_T}$ac_header_compiler" >&6
18242
 
 
18243
 
# Is the header present?
18244
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18245
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18246
 
cat >conftest.$ac_ext <<_ACEOF
18247
 
#line $LINENO "configure"
18248
 
/* confdefs.h.  */
18249
 
_ACEOF
18250
 
cat confdefs.h >>conftest.$ac_ext
18251
 
cat >>conftest.$ac_ext <<_ACEOF
18252
 
/* end confdefs.h.  */
18253
 
#include <$ac_header>
18254
 
_ACEOF
18255
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18256
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18257
 
  ac_status=$?
18258
 
  grep -v '^ *+' conftest.er1 >conftest.err
18259
 
  rm -f conftest.er1
18260
 
  cat conftest.err >&5
18261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262
 
  (exit $ac_status); } >/dev/null; then
18263
 
  if test -s conftest.err; then
18264
 
    ac_cpp_err=$ac_c_preproc_warn_flag
18265
 
  else
18266
 
    ac_cpp_err=
18267
 
  fi
18268
 
else
18269
 
  ac_cpp_err=yes
18270
 
fi
18271
 
if test -z "$ac_cpp_err"; then
18272
 
  ac_header_preproc=yes
18273
 
else
18274
 
  echo "$as_me: failed program was:" >&5
18275
 
sed 's/^/| /' conftest.$ac_ext >&5
18276
 
 
18277
 
  ac_header_preproc=no
18278
 
fi
18279
 
rm -f conftest.err conftest.$ac_ext
18280
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18281
 
echo "${ECHO_T}$ac_header_preproc" >&6
18282
 
 
18283
 
# So?  What about this header?
18284
 
case $ac_header_compiler:$ac_header_preproc in
18285
 
  yes:no )
18286
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18287
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18288
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18289
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18290
 
    (
18291
 
      cat <<\_ASBOX
18292
 
## ------------------------------------ ##
18293
 
## Report this to bug-autoconf@gnu.org. ##
18294
 
## ------------------------------------ ##
18295
 
_ASBOX
18296
 
    ) |
18297
 
      sed "s/^/$as_me: WARNING:     /" >&2
18298
 
    ;;
18299
 
  no:yes )
18300
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18301
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18302
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18303
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18304
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18305
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18306
 
    (
18307
 
      cat <<\_ASBOX
18308
 
## ------------------------------------ ##
18309
 
## Report this to bug-autoconf@gnu.org. ##
18310
 
## ------------------------------------ ##
18311
 
_ASBOX
18312
 
    ) |
18313
 
      sed "s/^/$as_me: WARNING:     /" >&2
18314
 
    ;;
18315
 
esac
18316
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
18317
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18318
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18319
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18320
 
else
18321
 
  eval "$as_ac_Header=$ac_header_preproc"
 
23247
/* confdefs.h.  */
 
23248
_ACEOF
 
23249
cat confdefs.h >>conftest.$ac_ext
 
23250
cat >>conftest.$ac_ext <<_ACEOF
 
23251
/* end confdefs.h.  */
 
23252
$ac_includes_default
 
23253
#include <$ac_header>
 
23254
_ACEOF
 
23255
rm -f conftest.$ac_objext
 
23256
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23257
  (eval $ac_compile) 2>conftest.er1
 
23258
  ac_status=$?
 
23259
  grep -v '^ *+' conftest.er1 >conftest.err
 
23260
  rm -f conftest.er1
 
23261
  cat conftest.err >&5
 
23262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23263
  (exit $ac_status); } &&
 
23264
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23266
  (eval $ac_try) 2>&5
 
23267
  ac_status=$?
 
23268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23269
  (exit $ac_status); }; } &&
 
23270
         { ac_try='test -s conftest.$ac_objext'
 
23271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23272
  (eval $ac_try) 2>&5
 
23273
  ac_status=$?
 
23274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23275
  (exit $ac_status); }; }; then
 
23276
  ac_header_compiler=yes
 
23277
else
 
23278
  echo "$as_me: failed program was:" >&5
 
23279
sed 's/^/| /' conftest.$ac_ext >&5
 
23280
 
 
23281
ac_header_compiler=no
 
23282
fi
 
23283
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23284
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23285
echo "${ECHO_T}$ac_header_compiler" >&6
 
23286
 
 
23287
# Is the header present?
 
23288
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23289
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23290
cat >conftest.$ac_ext <<_ACEOF
 
23291
/* confdefs.h.  */
 
23292
_ACEOF
 
23293
cat confdefs.h >>conftest.$ac_ext
 
23294
cat >>conftest.$ac_ext <<_ACEOF
 
23295
/* end confdefs.h.  */
 
23296
#include <$ac_header>
 
23297
_ACEOF
 
23298
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23299
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23300
  ac_status=$?
 
23301
  grep -v '^ *+' conftest.er1 >conftest.err
 
23302
  rm -f conftest.er1
 
23303
  cat conftest.err >&5
 
23304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23305
  (exit $ac_status); } >/dev/null; then
 
23306
  if test -s conftest.err; then
 
23307
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23308
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23309
  else
 
23310
    ac_cpp_err=
 
23311
  fi
 
23312
else
 
23313
  ac_cpp_err=yes
 
23314
fi
 
23315
if test -z "$ac_cpp_err"; then
 
23316
  ac_header_preproc=yes
 
23317
else
 
23318
  echo "$as_me: failed program was:" >&5
 
23319
sed 's/^/| /' conftest.$ac_ext >&5
 
23320
 
 
23321
  ac_header_preproc=no
 
23322
fi
 
23323
rm -f conftest.err conftest.$ac_ext
 
23324
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23325
echo "${ECHO_T}$ac_header_preproc" >&6
 
23326
 
 
23327
# So?  What about this header?
 
23328
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23329
  yes:no: )
 
23330
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23331
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23332
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23333
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23334
    ac_header_preproc=yes
 
23335
    ;;
 
23336
  no:yes:* )
 
23337
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23338
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23339
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23340
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23341
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23342
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23343
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23344
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23345
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23346
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23347
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23348
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23349
    (
 
23350
      cat <<\_ASBOX
 
23351
## ------------------------------------------ ##
 
23352
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23353
## ------------------------------------------ ##
 
23354
_ASBOX
 
23355
    ) |
 
23356
      sed "s/^/$as_me: WARNING:     /" >&2
 
23357
    ;;
 
23358
esac
 
23359
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23360
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23361
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23363
else
 
23364
  eval "$as_ac_Header=\$ac_header_preproc"
 
23365
fi
 
23366
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23367
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23368
 
 
23369
fi
 
23370
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23371
  cat >>confdefs.h <<_ACEOF
 
23372
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23373
_ACEOF
 
23374
 
 
23375
fi
 
23376
 
 
23377
done
 
23378
 
 
23379
 
 
23380
   # sys/bitypes.h is needed for uint32_t and friends on Tru64
 
23381
 
 
23382
for ac_header in sys/bitypes.h
 
23383
do
 
23384
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23385
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23386
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23387
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23390
fi
 
23391
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23392
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23393
else
 
23394
  # Is the header compilable?
 
23395
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23396
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
23397
cat >conftest.$ac_ext <<_ACEOF
 
23398
/* confdefs.h.  */
 
23399
_ACEOF
 
23400
cat confdefs.h >>conftest.$ac_ext
 
23401
cat >>conftest.$ac_ext <<_ACEOF
 
23402
/* end confdefs.h.  */
 
23403
$ac_includes_default
 
23404
#include <$ac_header>
 
23405
_ACEOF
 
23406
rm -f conftest.$ac_objext
 
23407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23408
  (eval $ac_compile) 2>conftest.er1
 
23409
  ac_status=$?
 
23410
  grep -v '^ *+' conftest.er1 >conftest.err
 
23411
  rm -f conftest.er1
 
23412
  cat conftest.err >&5
 
23413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23414
  (exit $ac_status); } &&
 
23415
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23417
  (eval $ac_try) 2>&5
 
23418
  ac_status=$?
 
23419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23420
  (exit $ac_status); }; } &&
 
23421
         { ac_try='test -s conftest.$ac_objext'
 
23422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23423
  (eval $ac_try) 2>&5
 
23424
  ac_status=$?
 
23425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23426
  (exit $ac_status); }; }; then
 
23427
  ac_header_compiler=yes
 
23428
else
 
23429
  echo "$as_me: failed program was:" >&5
 
23430
sed 's/^/| /' conftest.$ac_ext >&5
 
23431
 
 
23432
ac_header_compiler=no
 
23433
fi
 
23434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23435
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23436
echo "${ECHO_T}$ac_header_compiler" >&6
 
23437
 
 
23438
# Is the header present?
 
23439
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23440
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23441
cat >conftest.$ac_ext <<_ACEOF
 
23442
/* confdefs.h.  */
 
23443
_ACEOF
 
23444
cat confdefs.h >>conftest.$ac_ext
 
23445
cat >>conftest.$ac_ext <<_ACEOF
 
23446
/* end confdefs.h.  */
 
23447
#include <$ac_header>
 
23448
_ACEOF
 
23449
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23450
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23451
  ac_status=$?
 
23452
  grep -v '^ *+' conftest.er1 >conftest.err
 
23453
  rm -f conftest.er1
 
23454
  cat conftest.err >&5
 
23455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23456
  (exit $ac_status); } >/dev/null; then
 
23457
  if test -s conftest.err; then
 
23458
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23459
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23460
  else
 
23461
    ac_cpp_err=
 
23462
  fi
 
23463
else
 
23464
  ac_cpp_err=yes
 
23465
fi
 
23466
if test -z "$ac_cpp_err"; then
 
23467
  ac_header_preproc=yes
 
23468
else
 
23469
  echo "$as_me: failed program was:" >&5
 
23470
sed 's/^/| /' conftest.$ac_ext >&5
 
23471
 
 
23472
  ac_header_preproc=no
 
23473
fi
 
23474
rm -f conftest.err conftest.$ac_ext
 
23475
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23476
echo "${ECHO_T}$ac_header_preproc" >&6
 
23477
 
 
23478
# So?  What about this header?
 
23479
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23480
  yes:no: )
 
23481
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23482
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23483
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23484
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23485
    ac_header_preproc=yes
 
23486
    ;;
 
23487
  no:yes:* )
 
23488
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23489
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23490
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23491
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23492
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23493
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23494
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23495
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23496
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23497
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23498
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23499
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23500
    (
 
23501
      cat <<\_ASBOX
 
23502
## ------------------------------------------ ##
 
23503
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23504
## ------------------------------------------ ##
 
23505
_ASBOX
 
23506
    ) |
 
23507
      sed "s/^/$as_me: WARNING:     /" >&2
 
23508
    ;;
 
23509
esac
 
23510
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23511
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23512
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23514
else
 
23515
  eval "$as_ac_Header=\$ac_header_preproc"
18322
23516
fi
18323
23517
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18324
23518
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18343
23537
  ac_check_lib_save_LIBS=$LIBS
18344
23538
LIBS="-lpoll  $LIBS"
18345
23539
cat >conftest.$ac_ext <<_ACEOF
18346
 
#line $LINENO "configure"
18347
23540
/* confdefs.h.  */
18348
23541
_ACEOF
18349
23542
cat confdefs.h >>conftest.$ac_ext
18367
23560
_ACEOF
18368
23561
rm -f conftest.$ac_objext conftest$ac_exeext
18369
23562
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370
 
  (eval $ac_link) 2>&5
 
23563
  (eval $ac_link) 2>conftest.er1
18371
23564
  ac_status=$?
 
23565
  grep -v '^ *+' conftest.er1 >conftest.err
 
23566
  rm -f conftest.er1
 
23567
  cat conftest.err >&5
18372
23568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373
23569
  (exit $ac_status); } &&
18374
 
         { ac_try='test -s conftest$ac_exeext'
 
23570
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23572
  (eval $ac_try) 2>&5
 
23573
  ac_status=$?
 
23574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23575
  (exit $ac_status); }; } &&
 
23576
         { ac_try='test -s conftest$ac_exeext'
18375
23577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376
23578
  (eval $ac_try) 2>&5
18377
23579
  ac_status=$?
18384
23586
 
18385
23587
ac_cv_lib_poll_poll=no
18386
23588
fi
18387
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23589
rm -f conftest.err conftest.$ac_objext \
 
23590
      conftest$ac_exeext conftest.$ac_ext
18388
23591
LIBS=$ac_check_lib_save_LIBS
18389
23592
fi
18390
23593
echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
18408
23611
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
18409
23612
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
18410
23613
cat >conftest.$ac_ext <<_ACEOF
18411
 
#line $LINENO "configure"
18412
23614
/* confdefs.h.  */
18413
23615
_ACEOF
18414
23616
cat confdefs.h >>conftest.$ac_ext
18419
23621
_ACEOF
18420
23622
rm -f conftest.$ac_objext
18421
23623
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18422
 
  (eval $ac_compile) 2>&5
 
23624
  (eval $ac_compile) 2>conftest.er1
18423
23625
  ac_status=$?
 
23626
  grep -v '^ *+' conftest.er1 >conftest.err
 
23627
  rm -f conftest.er1
 
23628
  cat conftest.err >&5
18424
23629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425
23630
  (exit $ac_status); } &&
18426
 
         { ac_try='test -s conftest.$ac_objext'
 
23631
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23633
  (eval $ac_try) 2>&5
 
23634
  ac_status=$?
 
23635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23636
  (exit $ac_status); }; } &&
 
23637
         { ac_try='test -s conftest.$ac_objext'
18427
23638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428
23639
  (eval $ac_try) 2>&5
18429
23640
  ac_status=$?
18436
23647
 
18437
23648
ac_header_compiler=no
18438
23649
fi
18439
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
23650
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18440
23651
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18441
23652
echo "${ECHO_T}$ac_header_compiler" >&6
18442
23653
 
18444
23655
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
18445
23656
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
18446
23657
cat >conftest.$ac_ext <<_ACEOF
18447
 
#line $LINENO "configure"
18448
23658
/* confdefs.h.  */
18449
23659
_ACEOF
18450
23660
cat confdefs.h >>conftest.$ac_ext
18462
23672
  (exit $ac_status); } >/dev/null; then
18463
23673
  if test -s conftest.err; then
18464
23674
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23675
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18465
23676
  else
18466
23677
    ac_cpp_err=
18467
23678
  fi
18481
23692
echo "${ECHO_T}$ac_header_preproc" >&6
18482
23693
 
18483
23694
# So?  What about this header?
18484
 
case $ac_header_compiler:$ac_header_preproc in
18485
 
  yes:no )
 
23695
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23696
  yes:no: )
18486
23697
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18487
23698
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18488
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
18489
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
18490
 
    (
18491
 
      cat <<\_ASBOX
18492
 
## ------------------------------------ ##
18493
 
## Report this to bug-autoconf@gnu.org. ##
18494
 
## ------------------------------------ ##
18495
 
_ASBOX
18496
 
    ) |
18497
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
23699
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 
23700
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 
23701
    ac_header_preproc=yes
18498
23702
    ;;
18499
 
  no:yes )
 
23703
  no:yes:* )
18500
23704
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
18501
23705
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
18502
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
18503
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
 
23706
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 
23707
echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 
23708
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 
23709
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 
23710
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 
23711
echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18504
23712
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
18505
23713
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 
23714
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 
23715
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
18506
23716
    (
18507
23717
      cat <<\_ASBOX
18508
 
## ------------------------------------ ##
18509
 
## Report this to bug-autoconf@gnu.org. ##
18510
 
## ------------------------------------ ##
 
23718
## ------------------------------------------ ##
 
23719
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23720
## ------------------------------------------ ##
18511
23721
_ASBOX
18512
23722
    ) |
18513
23723
      sed "s/^/$as_me: WARNING:     /" >&2
18531
23741
#define HAVE_COREAUDIO 1
18532
23742
_ACEOF
18533
23743
 
18534
 
     FRAMEWORK_COREAUDIO="-framework CoreAudio"
 
23744
     FRAMEWORK_COREAUDIO="-Xlinker -framework -Xlinker CoreAudio"
18535
23745
 
18536
23746
fi
18537
23747
 
18543
23753
  kde_libs_safe="$LIBS"
18544
23754
  LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
18545
23755
  cat >conftest.$ac_ext <<_ACEOF
18546
 
#line $LINENO "configure"
18547
23756
/* confdefs.h.  */
18548
23757
_ACEOF
18549
23758
cat confdefs.h >>conftest.$ac_ext
18567
23776
_ACEOF
18568
23777
rm -f conftest.$ac_objext conftest$ac_exeext
18569
23778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18570
 
  (eval $ac_link) 2>&5
 
23779
  (eval $ac_link) 2>conftest.er1
18571
23780
  ac_status=$?
 
23781
  grep -v '^ *+' conftest.er1 >conftest.err
 
23782
  rm -f conftest.er1
 
23783
  cat conftest.err >&5
18572
23784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573
23785
  (exit $ac_status); } &&
18574
 
         { ac_try='test -s conftest$ac_exeext'
 
23786
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23788
  (eval $ac_try) 2>&5
 
23789
  ac_status=$?
 
23790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23791
  (exit $ac_status); }; } &&
 
23792
         { ac_try='test -s conftest$ac_exeext'
18575
23793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576
23794
  (eval $ac_try) 2>&5
18577
23795
  ac_status=$?
18595
23813
echo "${ECHO_T}no" >&6
18596
23814
 
18597
23815
fi
18598
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18599
 
  LIBS="$kde_libs_safe"
18600
 
 
18601
 
 
18602
 
  echo "$as_me:$LINENO: checking if res_init is available" >&5
18603
 
echo $ECHO_N "checking if res_init is available... $ECHO_C" >&6
18604
 
  cat >conftest.$ac_ext <<_ACEOF
18605
 
#line $LINENO "configure"
 
23816
rm -f conftest.err conftest.$ac_objext \
 
23817
      conftest$ac_exeext conftest.$ac_ext
 
23818
  LIBS=$kde_libs_safe
 
23819
 
 
23820
 
 
23821
 
 
23822
echo "$as_me:$LINENO: checking for res_init" >&5
 
23823
echo $ECHO_N "checking for res_init... $ECHO_C" >&6
 
23824
if test "${kde_cv_func_res_init+set}" = set; then
 
23825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23826
else
 
23827
 
 
23828
 
 
23829
 
 
23830
 ac_ext=cc
 
23831
ac_cpp='$CXXCPP $CPPFLAGS'
 
23832
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23833
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23834
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
23835
 
 
23836
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
23837
 
 
23838
 
 
23839
save_CXXFLAGS="$CXXFLAGS"
 
23840
kde_safe_LIBS="$LIBS"
 
23841
LIBS="$LIBS $X_EXTRA_LIBS"
 
23842
if test "$GXX" = "yes"; then
 
23843
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
23844
fi
 
23845
cat >conftest.$ac_ext <<_ACEOF
18606
23846
/* confdefs.h.  */
18607
23847
_ACEOF
18608
23848
cat confdefs.h >>conftest.$ac_ext
18609
23849
cat >>conftest.$ac_ext <<_ACEOF
18610
23850
/* end confdefs.h.  */
18611
23851
 
 
23852
 
18612
23853
#include <sys/types.h>
18613
23854
#include <netinet/in.h>
18614
23855
#include <arpa/nameser.h>
18615
23856
#include <resolv.h>
18616
23857
 
 
23858
 
18617
23859
int
18618
23860
main ()
18619
23861
{
18620
23862
 
18621
 
      res_init();
 
23863
res_init()
18622
23864
 
18623
23865
  ;
18624
23866
  return 0;
18626
23868
_ACEOF
18627
23869
rm -f conftest.$ac_objext
18628
23870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18629
 
  (eval $ac_compile) 2>&5
18630
 
  ac_status=$?
18631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632
 
  (exit $ac_status); } &&
18633
 
         { ac_try='test -s conftest.$ac_objext'
18634
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635
 
  (eval $ac_try) 2>&5
18636
 
  ac_status=$?
18637
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638
 
  (exit $ac_status); }; }; then
18639
 
 
18640
 
      echo "$as_me:$LINENO: result: yes" >&5
18641
 
echo "${ECHO_T}yes" >&6
 
23871
  (eval $ac_compile) 2>conftest.er1
 
23872
  ac_status=$?
 
23873
  grep -v '^ *+' conftest.er1 >conftest.err
 
23874
  rm -f conftest.er1
 
23875
  cat conftest.err >&5
 
23876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23877
  (exit $ac_status); } &&
 
23878
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
23879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23880
  (eval $ac_try) 2>&5
 
23881
  ac_status=$?
 
23882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23883
  (exit $ac_status); }; } &&
 
23884
         { ac_try='test -s conftest.$ac_objext'
 
23885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23886
  (eval $ac_try) 2>&5
 
23887
  ac_status=$?
 
23888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23889
  (exit $ac_status); }; }; then
 
23890
  kde_cv_func_res_init=yes
 
23891
else
 
23892
  echo "$as_me: failed program was:" >&5
 
23893
sed 's/^/| /' conftest.$ac_ext >&5
 
23894
 
 
23895
kde_cv_func_res_init=no
 
23896
fi
 
23897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23898
CXXFLAGS="$save_CXXFLAGS"
 
23899
LIBS="$kde_safe_LIBS"
 
23900
ac_ext=c
 
23901
ac_cpp='$CPP $CPPFLAGS'
 
23902
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23903
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23904
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
23905
 
 
23906
 
 
23907
fi
 
23908
 
 
23909
 
 
23910
echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
 
23911
echo "${ECHO_T}$kde_cv_func_res_init" >&6
 
23912
 
 
23913
echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
 
23914
echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6
 
23915
if test "${kde_cv_proto_res_init+set}" = set; then
 
23916
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23917
else
 
23918
 
 
23919
if test "x$kde_cv_func_res_init" = xyes; then
 
23920
  kde_cv_proto_res_init=no
 
23921
else
 
23922
  case "res_init" in
 
23923
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
 
23924
                kde_cv_proto_res_init="yes - in libkdefakes"
 
23925
                ;;
 
23926
        *)
 
23927
                kde_cv_proto_res_init=unknown
 
23928
                ;;
 
23929
  esac
 
23930
fi
 
23931
 
 
23932
if test "x$kde_cv_proto_res_init" = xunknown; then
 
23933
 
 
23934
 
 
23935
 
 
23936
 ac_ext=cc
 
23937
ac_cpp='$CXXCPP $CPPFLAGS'
 
23938
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23939
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23940
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
23941
 
 
23942
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
23943
 
 
23944
 
 
23945
  kde_safe_libs=$LIBS
 
23946
  LIBS="$LIBS $X_EXTRA_LIBS"
 
23947
  cat >conftest.$ac_ext <<_ACEOF
 
23948
/* confdefs.h.  */
 
23949
_ACEOF
 
23950
cat confdefs.h >>conftest.$ac_ext
 
23951
cat >>conftest.$ac_ext <<_ACEOF
 
23952
/* end confdefs.h.  */
 
23953
 
 
23954
 
 
23955
#include <sys/types.h>
 
23956
#include <netinet/in.h>
 
23957
#include <arpa/nameser.h>
 
23958
#include <resolv.h>
 
23959
 
 
23960
 
 
23961
extern "C" int res_init(void);
 
23962
 
 
23963
int
 
23964
main ()
 
23965
{
 
23966
 
 
23967
res_init()
 
23968
 
 
23969
  ;
 
23970
  return 0;
 
23971
}
 
23972
_ACEOF
 
23973
rm -f conftest.$ac_objext conftest$ac_exeext
 
23974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23975
  (eval $ac_link) 2>conftest.er1
 
23976
  ac_status=$?
 
23977
  grep -v '^ *+' conftest.er1 >conftest.err
 
23978
  rm -f conftest.er1
 
23979
  cat conftest.err >&5
 
23980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23981
  (exit $ac_status); } &&
 
23982
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
23983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23984
  (eval $ac_try) 2>&5
 
23985
  ac_status=$?
 
23986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23987
  (exit $ac_status); }; } &&
 
23988
         { ac_try='test -s conftest$ac_exeext'
 
23989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23990
  (eval $ac_try) 2>&5
 
23991
  ac_status=$?
 
23992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23993
  (exit $ac_status); }; }; then
 
23994
   kde_cv_func_res_init=yes
 
23995
  kde_cv_proto_res_init=yes
 
23996
else
 
23997
  echo "$as_me: failed program was:" >&5
 
23998
sed 's/^/| /' conftest.$ac_ext >&5
 
23999
 
 
24000
kde_cv_proto_res_init="res_init unavailable"
 
24001
 
 
24002
fi
 
24003
rm -f conftest.err conftest.$ac_objext \
 
24004
      conftest$ac_exeext conftest.$ac_ext
 
24005
LIBS=$kde_safe_libs
 
24006
ac_ext=c
 
24007
ac_cpp='$CPP $CPPFLAGS'
 
24008
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24009
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24010
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
24011
 
 
24012
fi
 
24013
 
 
24014
fi
 
24015
 
 
24016
echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
 
24017
echo "${ECHO_T}$kde_cv_proto_res_init" >&6
 
24018
 
 
24019
if test "x$kde_cv_func_res_init" = xyes; then
18642
24020
 
18643
24021
cat >>confdefs.h <<\_ACEOF
18644
24022
#define HAVE_RES_INIT 1
18645
24023
_ACEOF
18646
24024
 
18647
24025
 
18648
 
else
18649
 
  echo "$as_me: failed program was:" >&5
18650
 
sed 's/^/| /' conftest.$ac_ext >&5
18651
 
 
18652
 
 echo "$as_me:$LINENO: result: no" >&5
18653
 
echo "${ECHO_T}no" >&6
18654
 
 
18655
 
fi
18656
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
24026
fi
 
24027
if test "x$kde_cv_proto_res_init" = xno; then
 
24028
 
 
24029
cat >>confdefs.h <<\_ACEOF
 
24030
#define HAVE_RES_INIT_PROTO 1
 
24031
_ACEOF
 
24032
 
 
24033
fi
 
24034
 
 
24035
 
 
24036
 
 
24037
 
18657
24038
 
18658
24039
 
18659
24040
 
18668
24049
  ac_check_lib_save_LIBS=$LIBS
18669
24050
LIBS="-lucb  $LIBS"
18670
24051
cat >conftest.$ac_ext <<_ACEOF
18671
 
#line $LINENO "configure"
18672
24052
/* confdefs.h.  */
18673
24053
_ACEOF
18674
24054
cat confdefs.h >>conftest.$ac_ext
18692
24072
_ACEOF
18693
24073
rm -f conftest.$ac_objext conftest$ac_exeext
18694
24074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18695
 
  (eval $ac_link) 2>&5
 
24075
  (eval $ac_link) 2>conftest.er1
18696
24076
  ac_status=$?
 
24077
  grep -v '^ *+' conftest.er1 >conftest.err
 
24078
  rm -f conftest.er1
 
24079
  cat conftest.err >&5
18697
24080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698
24081
  (exit $ac_status); } &&
18699
 
         { ac_try='test -s conftest$ac_exeext'
 
24082
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24084
  (eval $ac_try) 2>&5
 
24085
  ac_status=$?
 
24086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24087
  (exit $ac_status); }; } &&
 
24088
         { ac_try='test -s conftest$ac_exeext'
18700
24089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701
24090
  (eval $ac_try) 2>&5
18702
24091
  ac_status=$?
18709
24098
 
18710
24099
ac_cv_lib_ucb_killpg=no
18711
24100
fi
18712
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
24101
rm -f conftest.err conftest.$ac_objext \
 
24102
      conftest$ac_exeext conftest.$ac_ext
18713
24103
LIBS=$ac_check_lib_save_LIBS
18714
24104
fi
18715
24105
echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
18733
24123
  ac_check_lib_save_LIBS=$LIBS
18734
24124
LIBS="-lbsd  $LIBS"
18735
24125
cat >conftest.$ac_ext <<_ACEOF
18736
 
#line $LINENO "configure"
18737
24126
/* confdefs.h.  */
18738
24127
_ACEOF
18739
24128
cat confdefs.h >>conftest.$ac_ext
18757
24146
_ACEOF
18758
24147
rm -f conftest.$ac_objext conftest$ac_exeext
18759
24148
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18760
 
  (eval $ac_link) 2>&5
 
24149
  (eval $ac_link) 2>conftest.er1
18761
24150
  ac_status=$?
 
24151
  grep -v '^ *+' conftest.er1 >conftest.err
 
24152
  rm -f conftest.er1
 
24153
  cat conftest.err >&5
18762
24154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763
24155
  (exit $ac_status); } &&
18764
 
         { ac_try='test -s conftest$ac_exeext'
 
24156
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24157
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24158
  (eval $ac_try) 2>&5
 
24159
  ac_status=$?
 
24160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24161
  (exit $ac_status); }; } &&
 
24162
         { ac_try='test -s conftest$ac_exeext'
18765
24163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766
24164
  (eval $ac_try) 2>&5
18767
24165
  ac_status=$?
18774
24172
 
18775
24173
ac_cv_lib_bsd_gethostbyname=no
18776
24174
fi
18777
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
24175
rm -f conftest.err conftest.$ac_objext \
 
24176
      conftest$ac_exeext conftest.$ac_ext
18778
24177
LIBS=$ac_check_lib_save_LIBS
18779
24178
fi
18780
24179
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18791
24190
  echo $ECHO_N "(cached) $ECHO_C" >&6
18792
24191
else
18793
24192
  cat >conftest.$ac_ext <<_ACEOF
18794
 
#line $LINENO "configure"
18795
24193
/* confdefs.h.  */
18796
24194
_ACEOF
18797
24195
cat confdefs.h >>conftest.$ac_ext
18811
24209
_ACEOF
18812
24210
rm -f conftest.$ac_objext
18813
24211
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18814
 
  (eval $ac_compile) 2>&5
 
24212
  (eval $ac_compile) 2>conftest.er1
18815
24213
  ac_status=$?
 
24214
  grep -v '^ *+' conftest.er1 >conftest.err
 
24215
  rm -f conftest.er1
 
24216
  cat conftest.err >&5
18816
24217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817
24218
  (exit $ac_status); } &&
18818
 
         { ac_try='test -s conftest.$ac_objext'
 
24219
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24221
  (eval $ac_try) 2>&5
 
24222
  ac_status=$?
 
24223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24224
  (exit $ac_status); }; } &&
 
24225
         { ac_try='test -s conftest.$ac_objext'
18819
24226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820
24227
  (eval $ac_try) 2>&5
18821
24228
  ac_status=$?
18828
24235
 
18829
24236
ac_cv_type_int=no
18830
24237
fi
18831
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
24238
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18832
24239
fi
18833
24240
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18834
24241
echo "${ECHO_T}$ac_cv_type_int" >&6
18846
24253
  if test "$cross_compiling" = yes; then
18847
24254
  # Depending upon the size, compute the lo and hi bounds.
18848
24255
cat >conftest.$ac_ext <<_ACEOF
18849
 
#line $LINENO "configure"
18850
24256
/* confdefs.h.  */
18851
24257
_ACEOF
18852
24258
cat confdefs.h >>conftest.$ac_ext
18865
24271
_ACEOF
18866
24272
rm -f conftest.$ac_objext
18867
24273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18868
 
  (eval $ac_compile) 2>&5
 
24274
  (eval $ac_compile) 2>conftest.er1
18869
24275
  ac_status=$?
 
24276
  grep -v '^ *+' conftest.er1 >conftest.err
 
24277
  rm -f conftest.er1
 
24278
  cat conftest.err >&5
18870
24279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871
24280
  (exit $ac_status); } &&
18872
 
         { ac_try='test -s conftest.$ac_objext'
 
24281
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24283
  (eval $ac_try) 2>&5
 
24284
  ac_status=$?
 
24285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24286
  (exit $ac_status); }; } &&
 
24287
         { ac_try='test -s conftest.$ac_objext'
18873
24288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874
24289
  (eval $ac_try) 2>&5
18875
24290
  ac_status=$?
18878
24293
  ac_lo=0 ac_mid=0
18879
24294
  while :; do
18880
24295
    cat >conftest.$ac_ext <<_ACEOF
18881
 
#line $LINENO "configure"
18882
24296
/* confdefs.h.  */
18883
24297
_ACEOF
18884
24298
cat confdefs.h >>conftest.$ac_ext
18897
24311
_ACEOF
18898
24312
rm -f conftest.$ac_objext
18899
24313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18900
 
  (eval $ac_compile) 2>&5
 
24314
  (eval $ac_compile) 2>conftest.er1
18901
24315
  ac_status=$?
 
24316
  grep -v '^ *+' conftest.er1 >conftest.err
 
24317
  rm -f conftest.er1
 
24318
  cat conftest.err >&5
18902
24319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903
24320
  (exit $ac_status); } &&
18904
 
         { ac_try='test -s conftest.$ac_objext'
 
24321
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24323
  (eval $ac_try) 2>&5
 
24324
  ac_status=$?
 
24325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24326
  (exit $ac_status); }; } &&
 
24327
         { ac_try='test -s conftest.$ac_objext'
18905
24328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906
24329
  (eval $ac_try) 2>&5
18907
24330
  ac_status=$?
18913
24336
sed 's/^/| /' conftest.$ac_ext >&5
18914
24337
 
18915
24338
ac_lo=`expr $ac_mid + 1`
18916
 
                    if test $ac_lo -le $ac_mid; then
18917
 
                      ac_lo= ac_hi=
18918
 
                      break
18919
 
                    fi
18920
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
24339
                    if test $ac_lo -le $ac_mid; then
 
24340
                      ac_lo= ac_hi=
 
24341
                      break
 
24342
                    fi
 
24343
                    ac_mid=`expr 2 '*' $ac_mid + 1`
18921
24344
fi
18922
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
24345
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18923
24346
  done
18924
24347
else
18925
24348
  echo "$as_me: failed program was:" >&5
18926
24349
sed 's/^/| /' conftest.$ac_ext >&5
18927
24350
 
18928
24351
cat >conftest.$ac_ext <<_ACEOF
18929
 
#line $LINENO "configure"
18930
24352
/* confdefs.h.  */
18931
24353
_ACEOF
18932
24354
cat confdefs.h >>conftest.$ac_ext
18945
24367
_ACEOF
18946
24368
rm -f conftest.$ac_objext
18947
24369
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18948
 
  (eval $ac_compile) 2>&5
 
24370
  (eval $ac_compile) 2>conftest.er1
18949
24371
  ac_status=$?
 
24372
  grep -v '^ *+' conftest.er1 >conftest.err
 
24373
  rm -f conftest.er1
 
24374
  cat conftest.err >&5
18950
24375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951
24376
  (exit $ac_status); } &&
18952
 
         { ac_try='test -s conftest.$ac_objext'
 
24377
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24379
  (eval $ac_try) 2>&5
 
24380
  ac_status=$?
 
24381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24382
  (exit $ac_status); }; } &&
 
24383
         { ac_try='test -s conftest.$ac_objext'
18953
24384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954
24385
  (eval $ac_try) 2>&5
18955
24386
  ac_status=$?
18958
24389
  ac_hi=-1 ac_mid=-1
18959
24390
  while :; do
18960
24391
    cat >conftest.$ac_ext <<_ACEOF
18961
 
#line $LINENO "configure"
18962
24392
/* confdefs.h.  */
18963
24393
_ACEOF
18964
24394
cat confdefs.h >>conftest.$ac_ext
18977
24407
_ACEOF
18978
24408
rm -f conftest.$ac_objext
18979
24409
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18980
 
  (eval $ac_compile) 2>&5
 
24410
  (eval $ac_compile) 2>conftest.er1
18981
24411
  ac_status=$?
 
24412
  grep -v '^ *+' conftest.er1 >conftest.err
 
24413
  rm -f conftest.er1
 
24414
  cat conftest.err >&5
18982
24415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983
24416
  (exit $ac_status); } &&
18984
 
         { ac_try='test -s conftest.$ac_objext'
 
24417
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24419
  (eval $ac_try) 2>&5
 
24420
  ac_status=$?
 
24421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24422
  (exit $ac_status); }; } &&
 
24423
         { ac_try='test -s conftest.$ac_objext'
18985
24424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986
24425
  (eval $ac_try) 2>&5
18987
24426
  ac_status=$?
18993
24432
sed 's/^/| /' conftest.$ac_ext >&5
18994
24433
 
18995
24434
ac_hi=`expr '(' $ac_mid ')' - 1`
18996
 
                       if test $ac_mid -le $ac_hi; then
18997
 
                         ac_lo= ac_hi=
18998
 
                         break
18999
 
                       fi
19000
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
24435
                       if test $ac_mid -le $ac_hi; then
 
24436
                         ac_lo= ac_hi=
 
24437
                         break
 
24438
                       fi
 
24439
                       ac_mid=`expr 2 '*' $ac_mid`
19001
24440
fi
19002
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
24441
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19003
24442
  done
19004
24443
else
19005
24444
  echo "$as_me: failed program was:" >&5
19007
24446
 
19008
24447
ac_lo= ac_hi=
19009
24448
fi
19010
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
24449
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19011
24450
fi
19012
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
24451
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19013
24452
# Binary search between lo and hi bounds.
19014
24453
while test "x$ac_lo" != "x$ac_hi"; do
19015
24454
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19016
24455
  cat >conftest.$ac_ext <<_ACEOF
19017
 
#line $LINENO "configure"
19018
24456
/* confdefs.h.  */
19019
24457
_ACEOF
19020
24458
cat confdefs.h >>conftest.$ac_ext
19033
24471
_ACEOF
19034
24472
rm -f conftest.$ac_objext
19035
24473
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19036
 
  (eval $ac_compile) 2>&5
 
24474
  (eval $ac_compile) 2>conftest.er1
19037
24475
  ac_status=$?
 
24476
  grep -v '^ *+' conftest.er1 >conftest.err
 
24477
  rm -f conftest.er1
 
24478
  cat conftest.err >&5
19038
24479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039
24480
  (exit $ac_status); } &&
19040
 
         { ac_try='test -s conftest.$ac_objext'
 
24481
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24483
  (eval $ac_try) 2>&5
 
24484
  ac_status=$?
 
24485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24486
  (exit $ac_status); }; } &&
 
24487
         { ac_try='test -s conftest.$ac_objext'
19041
24488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042
24489
  (eval $ac_try) 2>&5
19043
24490
  ac_status=$?
19050
24497
 
19051
24498
ac_lo=`expr '(' $ac_mid ')' + 1`
19052
24499
fi
19053
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
24500
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19054
24501
done
19055
24502
case $ac_lo in
19056
24503
?*) ac_cv_sizeof_int=$ac_lo;;
19062
24509
esac
19063
24510
else
19064
24511
  if test "$cross_compiling" = yes; then
19065
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19066
 
See \`config.log' for more details." >&5
19067
 
echo "$as_me: error: cannot run test program while cross compiling
19068
 
See \`config.log' for more details." >&2;}
 
24512
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
24513
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19069
24514
   { (exit 1); exit 1; }; }
19070
24515
else
19071
24516
  cat >conftest.$ac_ext <<_ACEOF
19072
 
#line $LINENO "configure"
19073
24517
/* confdefs.h.  */
19074
24518
_ACEOF
19075
24519
cat confdefs.h >>conftest.$ac_ext
19131
24575
See \`config.log' for more details." >&2;}
19132
24576
   { (exit 1); exit 1; }; }
19133
24577
fi
19134
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24578
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19135
24579
fi
19136
24580
fi
19137
24581
rm -f conftest.val
19145
24589
#define SIZEOF_INT $ac_cv_sizeof_int
19146
24590
_ACEOF
19147
24591
 
 
24592
   echo "$as_me:$LINENO: checking for short" >&5
 
24593
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
24594
if test "${ac_cv_type_short+set}" = set; then
 
24595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24596
else
 
24597
  cat >conftest.$ac_ext <<_ACEOF
 
24598
/* confdefs.h.  */
 
24599
_ACEOF
 
24600
cat confdefs.h >>conftest.$ac_ext
 
24601
cat >>conftest.$ac_ext <<_ACEOF
 
24602
/* end confdefs.h.  */
 
24603
$ac_includes_default
 
24604
int
 
24605
main ()
 
24606
{
 
24607
if ((short *) 0)
 
24608
  return 0;
 
24609
if (sizeof (short))
 
24610
  return 0;
 
24611
  ;
 
24612
  return 0;
 
24613
}
 
24614
_ACEOF
 
24615
rm -f conftest.$ac_objext
 
24616
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24617
  (eval $ac_compile) 2>conftest.er1
 
24618
  ac_status=$?
 
24619
  grep -v '^ *+' conftest.er1 >conftest.err
 
24620
  rm -f conftest.er1
 
24621
  cat conftest.err >&5
 
24622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24623
  (exit $ac_status); } &&
 
24624
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24626
  (eval $ac_try) 2>&5
 
24627
  ac_status=$?
 
24628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24629
  (exit $ac_status); }; } &&
 
24630
         { ac_try='test -s conftest.$ac_objext'
 
24631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24632
  (eval $ac_try) 2>&5
 
24633
  ac_status=$?
 
24634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24635
  (exit $ac_status); }; }; then
 
24636
  ac_cv_type_short=yes
 
24637
else
 
24638
  echo "$as_me: failed program was:" >&5
 
24639
sed 's/^/| /' conftest.$ac_ext >&5
 
24640
 
 
24641
ac_cv_type_short=no
 
24642
fi
 
24643
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24644
fi
 
24645
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
24646
echo "${ECHO_T}$ac_cv_type_short" >&6
 
24647
 
 
24648
echo "$as_me:$LINENO: checking size of short" >&5
 
24649
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
24650
if test "${ac_cv_sizeof_short+set}" = set; then
 
24651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24652
else
 
24653
  if test "$ac_cv_type_short" = yes; then
 
24654
  # The cast to unsigned long works around a bug in the HP C Compiler
 
24655
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24656
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24657
  # This bug is HP SR number 8606223364.
 
24658
  if test "$cross_compiling" = yes; then
 
24659
  # Depending upon the size, compute the lo and hi bounds.
 
24660
cat >conftest.$ac_ext <<_ACEOF
 
24661
/* confdefs.h.  */
 
24662
_ACEOF
 
24663
cat confdefs.h >>conftest.$ac_ext
 
24664
cat >>conftest.$ac_ext <<_ACEOF
 
24665
/* end confdefs.h.  */
 
24666
$ac_includes_default
 
24667
int
 
24668
main ()
 
24669
{
 
24670
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
24671
test_array [0] = 0
 
24672
 
 
24673
  ;
 
24674
  return 0;
 
24675
}
 
24676
_ACEOF
 
24677
rm -f conftest.$ac_objext
 
24678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24679
  (eval $ac_compile) 2>conftest.er1
 
24680
  ac_status=$?
 
24681
  grep -v '^ *+' conftest.er1 >conftest.err
 
24682
  rm -f conftest.er1
 
24683
  cat conftest.err >&5
 
24684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24685
  (exit $ac_status); } &&
 
24686
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24688
  (eval $ac_try) 2>&5
 
24689
  ac_status=$?
 
24690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24691
  (exit $ac_status); }; } &&
 
24692
         { ac_try='test -s conftest.$ac_objext'
 
24693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24694
  (eval $ac_try) 2>&5
 
24695
  ac_status=$?
 
24696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24697
  (exit $ac_status); }; }; then
 
24698
  ac_lo=0 ac_mid=0
 
24699
  while :; do
 
24700
    cat >conftest.$ac_ext <<_ACEOF
 
24701
/* confdefs.h.  */
 
24702
_ACEOF
 
24703
cat confdefs.h >>conftest.$ac_ext
 
24704
cat >>conftest.$ac_ext <<_ACEOF
 
24705
/* end confdefs.h.  */
 
24706
$ac_includes_default
 
24707
int
 
24708
main ()
 
24709
{
 
24710
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
24711
test_array [0] = 0
 
24712
 
 
24713
  ;
 
24714
  return 0;
 
24715
}
 
24716
_ACEOF
 
24717
rm -f conftest.$ac_objext
 
24718
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24719
  (eval $ac_compile) 2>conftest.er1
 
24720
  ac_status=$?
 
24721
  grep -v '^ *+' conftest.er1 >conftest.err
 
24722
  rm -f conftest.er1
 
24723
  cat conftest.err >&5
 
24724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24725
  (exit $ac_status); } &&
 
24726
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24728
  (eval $ac_try) 2>&5
 
24729
  ac_status=$?
 
24730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24731
  (exit $ac_status); }; } &&
 
24732
         { ac_try='test -s conftest.$ac_objext'
 
24733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24734
  (eval $ac_try) 2>&5
 
24735
  ac_status=$?
 
24736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24737
  (exit $ac_status); }; }; then
 
24738
  ac_hi=$ac_mid; break
 
24739
else
 
24740
  echo "$as_me: failed program was:" >&5
 
24741
sed 's/^/| /' conftest.$ac_ext >&5
 
24742
 
 
24743
ac_lo=`expr $ac_mid + 1`
 
24744
                    if test $ac_lo -le $ac_mid; then
 
24745
                      ac_lo= ac_hi=
 
24746
                      break
 
24747
                    fi
 
24748
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
24749
fi
 
24750
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24751
  done
 
24752
else
 
24753
  echo "$as_me: failed program was:" >&5
 
24754
sed 's/^/| /' conftest.$ac_ext >&5
 
24755
 
 
24756
cat >conftest.$ac_ext <<_ACEOF
 
24757
/* confdefs.h.  */
 
24758
_ACEOF
 
24759
cat confdefs.h >>conftest.$ac_ext
 
24760
cat >>conftest.$ac_ext <<_ACEOF
 
24761
/* end confdefs.h.  */
 
24762
$ac_includes_default
 
24763
int
 
24764
main ()
 
24765
{
 
24766
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
24767
test_array [0] = 0
 
24768
 
 
24769
  ;
 
24770
  return 0;
 
24771
}
 
24772
_ACEOF
 
24773
rm -f conftest.$ac_objext
 
24774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24775
  (eval $ac_compile) 2>conftest.er1
 
24776
  ac_status=$?
 
24777
  grep -v '^ *+' conftest.er1 >conftest.err
 
24778
  rm -f conftest.er1
 
24779
  cat conftest.err >&5
 
24780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24781
  (exit $ac_status); } &&
 
24782
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24784
  (eval $ac_try) 2>&5
 
24785
  ac_status=$?
 
24786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24787
  (exit $ac_status); }; } &&
 
24788
         { ac_try='test -s conftest.$ac_objext'
 
24789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24790
  (eval $ac_try) 2>&5
 
24791
  ac_status=$?
 
24792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24793
  (exit $ac_status); }; }; then
 
24794
  ac_hi=-1 ac_mid=-1
 
24795
  while :; do
 
24796
    cat >conftest.$ac_ext <<_ACEOF
 
24797
/* confdefs.h.  */
 
24798
_ACEOF
 
24799
cat confdefs.h >>conftest.$ac_ext
 
24800
cat >>conftest.$ac_ext <<_ACEOF
 
24801
/* end confdefs.h.  */
 
24802
$ac_includes_default
 
24803
int
 
24804
main ()
 
24805
{
 
24806
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
24807
test_array [0] = 0
 
24808
 
 
24809
  ;
 
24810
  return 0;
 
24811
}
 
24812
_ACEOF
 
24813
rm -f conftest.$ac_objext
 
24814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24815
  (eval $ac_compile) 2>conftest.er1
 
24816
  ac_status=$?
 
24817
  grep -v '^ *+' conftest.er1 >conftest.err
 
24818
  rm -f conftest.er1
 
24819
  cat conftest.err >&5
 
24820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24821
  (exit $ac_status); } &&
 
24822
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24824
  (eval $ac_try) 2>&5
 
24825
  ac_status=$?
 
24826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24827
  (exit $ac_status); }; } &&
 
24828
         { ac_try='test -s conftest.$ac_objext'
 
24829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24830
  (eval $ac_try) 2>&5
 
24831
  ac_status=$?
 
24832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24833
  (exit $ac_status); }; }; then
 
24834
  ac_lo=$ac_mid; break
 
24835
else
 
24836
  echo "$as_me: failed program was:" >&5
 
24837
sed 's/^/| /' conftest.$ac_ext >&5
 
24838
 
 
24839
ac_hi=`expr '(' $ac_mid ')' - 1`
 
24840
                       if test $ac_mid -le $ac_hi; then
 
24841
                         ac_lo= ac_hi=
 
24842
                         break
 
24843
                       fi
 
24844
                       ac_mid=`expr 2 '*' $ac_mid`
 
24845
fi
 
24846
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24847
  done
 
24848
else
 
24849
  echo "$as_me: failed program was:" >&5
 
24850
sed 's/^/| /' conftest.$ac_ext >&5
 
24851
 
 
24852
ac_lo= ac_hi=
 
24853
fi
 
24854
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24855
fi
 
24856
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24857
# Binary search between lo and hi bounds.
 
24858
while test "x$ac_lo" != "x$ac_hi"; do
 
24859
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24860
  cat >conftest.$ac_ext <<_ACEOF
 
24861
/* confdefs.h.  */
 
24862
_ACEOF
 
24863
cat confdefs.h >>conftest.$ac_ext
 
24864
cat >>conftest.$ac_ext <<_ACEOF
 
24865
/* end confdefs.h.  */
 
24866
$ac_includes_default
 
24867
int
 
24868
main ()
 
24869
{
 
24870
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
24871
test_array [0] = 0
 
24872
 
 
24873
  ;
 
24874
  return 0;
 
24875
}
 
24876
_ACEOF
 
24877
rm -f conftest.$ac_objext
 
24878
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24879
  (eval $ac_compile) 2>conftest.er1
 
24880
  ac_status=$?
 
24881
  grep -v '^ *+' conftest.er1 >conftest.err
 
24882
  rm -f conftest.er1
 
24883
  cat conftest.err >&5
 
24884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24885
  (exit $ac_status); } &&
 
24886
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24888
  (eval $ac_try) 2>&5
 
24889
  ac_status=$?
 
24890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24891
  (exit $ac_status); }; } &&
 
24892
         { ac_try='test -s conftest.$ac_objext'
 
24893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24894
  (eval $ac_try) 2>&5
 
24895
  ac_status=$?
 
24896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24897
  (exit $ac_status); }; }; then
 
24898
  ac_hi=$ac_mid
 
24899
else
 
24900
  echo "$as_me: failed program was:" >&5
 
24901
sed 's/^/| /' conftest.$ac_ext >&5
 
24902
 
 
24903
ac_lo=`expr '(' $ac_mid ')' + 1`
 
24904
fi
 
24905
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24906
done
 
24907
case $ac_lo in
 
24908
?*) ac_cv_sizeof_short=$ac_lo;;
 
24909
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
24910
See \`config.log' for more details." >&5
 
24911
echo "$as_me: error: cannot compute sizeof (short), 77
 
24912
See \`config.log' for more details." >&2;}
 
24913
   { (exit 1); exit 1; }; } ;;
 
24914
esac
 
24915
else
 
24916
  if test "$cross_compiling" = yes; then
 
24917
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
24918
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
24919
   { (exit 1); exit 1; }; }
 
24920
else
 
24921
  cat >conftest.$ac_ext <<_ACEOF
 
24922
/* confdefs.h.  */
 
24923
_ACEOF
 
24924
cat confdefs.h >>conftest.$ac_ext
 
24925
cat >>conftest.$ac_ext <<_ACEOF
 
24926
/* end confdefs.h.  */
 
24927
$ac_includes_default
 
24928
long longval () { return (long) (sizeof (short)); }
 
24929
unsigned long ulongval () { return (long) (sizeof (short)); }
 
24930
#include <stdio.h>
 
24931
#include <stdlib.h>
 
24932
int
 
24933
main ()
 
24934
{
 
24935
 
 
24936
  FILE *f = fopen ("conftest.val", "w");
 
24937
  if (! f)
 
24938
    exit (1);
 
24939
  if (((long) (sizeof (short))) < 0)
 
24940
    {
 
24941
      long i = longval ();
 
24942
      if (i != ((long) (sizeof (short))))
 
24943
        exit (1);
 
24944
      fprintf (f, "%ld\n", i);
 
24945
    }
 
24946
  else
 
24947
    {
 
24948
      unsigned long i = ulongval ();
 
24949
      if (i != ((long) (sizeof (short))))
 
24950
        exit (1);
 
24951
      fprintf (f, "%lu\n", i);
 
24952
    }
 
24953
  exit (ferror (f) || fclose (f) != 0);
 
24954
 
 
24955
  ;
 
24956
  return 0;
 
24957
}
 
24958
_ACEOF
 
24959
rm -f conftest$ac_exeext
 
24960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24961
  (eval $ac_link) 2>&5
 
24962
  ac_status=$?
 
24963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24964
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24966
  (eval $ac_try) 2>&5
 
24967
  ac_status=$?
 
24968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24969
  (exit $ac_status); }; }; then
 
24970
  ac_cv_sizeof_short=`cat conftest.val`
 
24971
else
 
24972
  echo "$as_me: program exited with status $ac_status" >&5
 
24973
echo "$as_me: failed program was:" >&5
 
24974
sed 's/^/| /' conftest.$ac_ext >&5
 
24975
 
 
24976
( exit $ac_status )
 
24977
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
24978
See \`config.log' for more details." >&5
 
24979
echo "$as_me: error: cannot compute sizeof (short), 77
 
24980
See \`config.log' for more details." >&2;}
 
24981
   { (exit 1); exit 1; }; }
 
24982
fi
 
24983
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24984
fi
 
24985
fi
 
24986
rm -f conftest.val
 
24987
else
 
24988
  ac_cv_sizeof_short=0
 
24989
fi
 
24990
fi
 
24991
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
24992
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
24993
cat >>confdefs.h <<_ACEOF
 
24994
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
24995
_ACEOF
 
24996
 
19148
24997
  echo "$as_me:$LINENO: checking for long" >&5
19149
24998
echo $ECHO_N "checking for long... $ECHO_C" >&6
19150
24999
if test "${ac_cv_type_long+set}" = set; then
19151
25000
  echo $ECHO_N "(cached) $ECHO_C" >&6
19152
25001
else
19153
25002
  cat >conftest.$ac_ext <<_ACEOF
19154
 
#line $LINENO "configure"
19155
25003
/* confdefs.h.  */
19156
25004
_ACEOF
19157
25005
cat confdefs.h >>conftest.$ac_ext
19171
25019
_ACEOF
19172
25020
rm -f conftest.$ac_objext
19173
25021
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19174
 
  (eval $ac_compile) 2>&5
 
25022
  (eval $ac_compile) 2>conftest.er1
19175
25023
  ac_status=$?
 
25024
  grep -v '^ *+' conftest.er1 >conftest.err
 
25025
  rm -f conftest.er1
 
25026
  cat conftest.err >&5
19176
25027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177
25028
  (exit $ac_status); } &&
19178
 
         { ac_try='test -s conftest.$ac_objext'
 
25029
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25031
  (eval $ac_try) 2>&5
 
25032
  ac_status=$?
 
25033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25034
  (exit $ac_status); }; } &&
 
25035
         { ac_try='test -s conftest.$ac_objext'
19179
25036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180
25037
  (eval $ac_try) 2>&5
19181
25038
  ac_status=$?
19188
25045
 
19189
25046
ac_cv_type_long=no
19190
25047
fi
19191
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19192
25049
fi
19193
25050
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19194
25051
echo "${ECHO_T}$ac_cv_type_long" >&6
19206
25063
  if test "$cross_compiling" = yes; then
19207
25064
  # Depending upon the size, compute the lo and hi bounds.
19208
25065
cat >conftest.$ac_ext <<_ACEOF
19209
 
#line $LINENO "configure"
19210
25066
/* confdefs.h.  */
19211
25067
_ACEOF
19212
25068
cat confdefs.h >>conftest.$ac_ext
19225
25081
_ACEOF
19226
25082
rm -f conftest.$ac_objext
19227
25083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228
 
  (eval $ac_compile) 2>&5
 
25084
  (eval $ac_compile) 2>conftest.er1
19229
25085
  ac_status=$?
 
25086
  grep -v '^ *+' conftest.er1 >conftest.err
 
25087
  rm -f conftest.er1
 
25088
  cat conftest.err >&5
19230
25089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231
25090
  (exit $ac_status); } &&
19232
 
         { ac_try='test -s conftest.$ac_objext'
 
25091
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25093
  (eval $ac_try) 2>&5
 
25094
  ac_status=$?
 
25095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25096
  (exit $ac_status); }; } &&
 
25097
         { ac_try='test -s conftest.$ac_objext'
19233
25098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234
25099
  (eval $ac_try) 2>&5
19235
25100
  ac_status=$?
19238
25103
  ac_lo=0 ac_mid=0
19239
25104
  while :; do
19240
25105
    cat >conftest.$ac_ext <<_ACEOF
19241
 
#line $LINENO "configure"
19242
25106
/* confdefs.h.  */
19243
25107
_ACEOF
19244
25108
cat confdefs.h >>conftest.$ac_ext
19257
25121
_ACEOF
19258
25122
rm -f conftest.$ac_objext
19259
25123
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260
 
  (eval $ac_compile) 2>&5
 
25124
  (eval $ac_compile) 2>conftest.er1
19261
25125
  ac_status=$?
 
25126
  grep -v '^ *+' conftest.er1 >conftest.err
 
25127
  rm -f conftest.er1
 
25128
  cat conftest.err >&5
19262
25129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263
25130
  (exit $ac_status); } &&
19264
 
         { ac_try='test -s conftest.$ac_objext'
 
25131
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25133
  (eval $ac_try) 2>&5
 
25134
  ac_status=$?
 
25135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25136
  (exit $ac_status); }; } &&
 
25137
         { ac_try='test -s conftest.$ac_objext'
19265
25138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266
25139
  (eval $ac_try) 2>&5
19267
25140
  ac_status=$?
19273
25146
sed 's/^/| /' conftest.$ac_ext >&5
19274
25147
 
19275
25148
ac_lo=`expr $ac_mid + 1`
19276
 
                    if test $ac_lo -le $ac_mid; then
19277
 
                      ac_lo= ac_hi=
19278
 
                      break
19279
 
                    fi
19280
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
25149
                    if test $ac_lo -le $ac_mid; then
 
25150
                      ac_lo= ac_hi=
 
25151
                      break
 
25152
                    fi
 
25153
                    ac_mid=`expr 2 '*' $ac_mid + 1`
19281
25154
fi
19282
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25155
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19283
25156
  done
19284
25157
else
19285
25158
  echo "$as_me: failed program was:" >&5
19286
25159
sed 's/^/| /' conftest.$ac_ext >&5
19287
25160
 
19288
25161
cat >conftest.$ac_ext <<_ACEOF
19289
 
#line $LINENO "configure"
19290
25162
/* confdefs.h.  */
19291
25163
_ACEOF
19292
25164
cat confdefs.h >>conftest.$ac_ext
19305
25177
_ACEOF
19306
25178
rm -f conftest.$ac_objext
19307
25179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19308
 
  (eval $ac_compile) 2>&5
 
25180
  (eval $ac_compile) 2>conftest.er1
19309
25181
  ac_status=$?
 
25182
  grep -v '^ *+' conftest.er1 >conftest.err
 
25183
  rm -f conftest.er1
 
25184
  cat conftest.err >&5
19310
25185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311
25186
  (exit $ac_status); } &&
19312
 
         { ac_try='test -s conftest.$ac_objext'
 
25187
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25189
  (eval $ac_try) 2>&5
 
25190
  ac_status=$?
 
25191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25192
  (exit $ac_status); }; } &&
 
25193
         { ac_try='test -s conftest.$ac_objext'
19313
25194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314
25195
  (eval $ac_try) 2>&5
19315
25196
  ac_status=$?
19318
25199
  ac_hi=-1 ac_mid=-1
19319
25200
  while :; do
19320
25201
    cat >conftest.$ac_ext <<_ACEOF
19321
 
#line $LINENO "configure"
19322
25202
/* confdefs.h.  */
19323
25203
_ACEOF
19324
25204
cat confdefs.h >>conftest.$ac_ext
19337
25217
_ACEOF
19338
25218
rm -f conftest.$ac_objext
19339
25219
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19340
 
  (eval $ac_compile) 2>&5
 
25220
  (eval $ac_compile) 2>conftest.er1
19341
25221
  ac_status=$?
 
25222
  grep -v '^ *+' conftest.er1 >conftest.err
 
25223
  rm -f conftest.er1
 
25224
  cat conftest.err >&5
19342
25225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343
25226
  (exit $ac_status); } &&
19344
 
         { ac_try='test -s conftest.$ac_objext'
 
25227
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25229
  (eval $ac_try) 2>&5
 
25230
  ac_status=$?
 
25231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25232
  (exit $ac_status); }; } &&
 
25233
         { ac_try='test -s conftest.$ac_objext'
19345
25234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346
25235
  (eval $ac_try) 2>&5
19347
25236
  ac_status=$?
19353
25242
sed 's/^/| /' conftest.$ac_ext >&5
19354
25243
 
19355
25244
ac_hi=`expr '(' $ac_mid ')' - 1`
19356
 
                       if test $ac_mid -le $ac_hi; then
19357
 
                         ac_lo= ac_hi=
19358
 
                         break
19359
 
                       fi
19360
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
25245
                       if test $ac_mid -le $ac_hi; then
 
25246
                         ac_lo= ac_hi=
 
25247
                         break
 
25248
                       fi
 
25249
                       ac_mid=`expr 2 '*' $ac_mid`
19361
25250
fi
19362
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19363
25252
  done
19364
25253
else
19365
25254
  echo "$as_me: failed program was:" >&5
19367
25256
 
19368
25257
ac_lo= ac_hi=
19369
25258
fi
19370
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25259
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19371
25260
fi
19372
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25261
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19373
25262
# Binary search between lo and hi bounds.
19374
25263
while test "x$ac_lo" != "x$ac_hi"; do
19375
25264
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19376
25265
  cat >conftest.$ac_ext <<_ACEOF
19377
 
#line $LINENO "configure"
19378
25266
/* confdefs.h.  */
19379
25267
_ACEOF
19380
25268
cat confdefs.h >>conftest.$ac_ext
19393
25281
_ACEOF
19394
25282
rm -f conftest.$ac_objext
19395
25283
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19396
 
  (eval $ac_compile) 2>&5
 
25284
  (eval $ac_compile) 2>conftest.er1
19397
25285
  ac_status=$?
 
25286
  grep -v '^ *+' conftest.er1 >conftest.err
 
25287
  rm -f conftest.er1
 
25288
  cat conftest.err >&5
19398
25289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399
25290
  (exit $ac_status); } &&
19400
 
         { ac_try='test -s conftest.$ac_objext'
 
25291
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25293
  (eval $ac_try) 2>&5
 
25294
  ac_status=$?
 
25295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25296
  (exit $ac_status); }; } &&
 
25297
         { ac_try='test -s conftest.$ac_objext'
19401
25298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402
25299
  (eval $ac_try) 2>&5
19403
25300
  ac_status=$?
19410
25307
 
19411
25308
ac_lo=`expr '(' $ac_mid ')' + 1`
19412
25309
fi
19413
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25310
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19414
25311
done
19415
25312
case $ac_lo in
19416
25313
?*) ac_cv_sizeof_long=$ac_lo;;
19422
25319
esac
19423
25320
else
19424
25321
  if test "$cross_compiling" = yes; then
19425
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19426
 
See \`config.log' for more details." >&5
19427
 
echo "$as_me: error: cannot run test program while cross compiling
19428
 
See \`config.log' for more details." >&2;}
 
25322
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
25323
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19429
25324
   { (exit 1); exit 1; }; }
19430
25325
else
19431
25326
  cat >conftest.$ac_ext <<_ACEOF
19432
 
#line $LINENO "configure"
19433
25327
/* confdefs.h.  */
19434
25328
_ACEOF
19435
25329
cat confdefs.h >>conftest.$ac_ext
19491
25385
See \`config.log' for more details." >&2;}
19492
25386
   { (exit 1); exit 1; }; }
19493
25387
fi
19494
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25388
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19495
25389
fi
19496
25390
fi
19497
25391
rm -f conftest.val
19511
25405
  echo $ECHO_N "(cached) $ECHO_C" >&6
19512
25406
else
19513
25407
  cat >conftest.$ac_ext <<_ACEOF
19514
 
#line $LINENO "configure"
19515
25408
/* confdefs.h.  */
19516
25409
_ACEOF
19517
25410
cat confdefs.h >>conftest.$ac_ext
19531
25424
_ACEOF
19532
25425
rm -f conftest.$ac_objext
19533
25426
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534
 
  (eval $ac_compile) 2>&5
 
25427
  (eval $ac_compile) 2>conftest.er1
19535
25428
  ac_status=$?
 
25429
  grep -v '^ *+' conftest.er1 >conftest.err
 
25430
  rm -f conftest.er1
 
25431
  cat conftest.err >&5
19536
25432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537
25433
  (exit $ac_status); } &&
19538
 
         { ac_try='test -s conftest.$ac_objext'
 
25434
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25436
  (eval $ac_try) 2>&5
 
25437
  ac_status=$?
 
25438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25439
  (exit $ac_status); }; } &&
 
25440
         { ac_try='test -s conftest.$ac_objext'
19539
25441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540
25442
  (eval $ac_try) 2>&5
19541
25443
  ac_status=$?
19548
25450
 
19549
25451
ac_cv_type_char_p=no
19550
25452
fi
19551
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25453
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19552
25454
fi
19553
25455
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
19554
25456
echo "${ECHO_T}$ac_cv_type_char_p" >&6
19566
25468
  if test "$cross_compiling" = yes; then
19567
25469
  # Depending upon the size, compute the lo and hi bounds.
19568
25470
cat >conftest.$ac_ext <<_ACEOF
19569
 
#line $LINENO "configure"
19570
25471
/* confdefs.h.  */
19571
25472
_ACEOF
19572
25473
cat confdefs.h >>conftest.$ac_ext
19585
25486
_ACEOF
19586
25487
rm -f conftest.$ac_objext
19587
25488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19588
 
  (eval $ac_compile) 2>&5
 
25489
  (eval $ac_compile) 2>conftest.er1
19589
25490
  ac_status=$?
 
25491
  grep -v '^ *+' conftest.er1 >conftest.err
 
25492
  rm -f conftest.er1
 
25493
  cat conftest.err >&5
19590
25494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591
25495
  (exit $ac_status); } &&
19592
 
         { ac_try='test -s conftest.$ac_objext'
 
25496
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25498
  (eval $ac_try) 2>&5
 
25499
  ac_status=$?
 
25500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25501
  (exit $ac_status); }; } &&
 
25502
         { ac_try='test -s conftest.$ac_objext'
19593
25503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594
25504
  (eval $ac_try) 2>&5
19595
25505
  ac_status=$?
19598
25508
  ac_lo=0 ac_mid=0
19599
25509
  while :; do
19600
25510
    cat >conftest.$ac_ext <<_ACEOF
19601
 
#line $LINENO "configure"
19602
25511
/* confdefs.h.  */
19603
25512
_ACEOF
19604
25513
cat confdefs.h >>conftest.$ac_ext
19617
25526
_ACEOF
19618
25527
rm -f conftest.$ac_objext
19619
25528
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19620
 
  (eval $ac_compile) 2>&5
 
25529
  (eval $ac_compile) 2>conftest.er1
19621
25530
  ac_status=$?
 
25531
  grep -v '^ *+' conftest.er1 >conftest.err
 
25532
  rm -f conftest.er1
 
25533
  cat conftest.err >&5
19622
25534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623
25535
  (exit $ac_status); } &&
19624
 
         { ac_try='test -s conftest.$ac_objext'
 
25536
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25538
  (eval $ac_try) 2>&5
 
25539
  ac_status=$?
 
25540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25541
  (exit $ac_status); }; } &&
 
25542
         { ac_try='test -s conftest.$ac_objext'
19625
25543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626
25544
  (eval $ac_try) 2>&5
19627
25545
  ac_status=$?
19633
25551
sed 's/^/| /' conftest.$ac_ext >&5
19634
25552
 
19635
25553
ac_lo=`expr $ac_mid + 1`
19636
 
                    if test $ac_lo -le $ac_mid; then
19637
 
                      ac_lo= ac_hi=
19638
 
                      break
19639
 
                    fi
19640
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
25554
                    if test $ac_lo -le $ac_mid; then
 
25555
                      ac_lo= ac_hi=
 
25556
                      break
 
25557
                    fi
 
25558
                    ac_mid=`expr 2 '*' $ac_mid + 1`
19641
25559
fi
19642
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25560
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19643
25561
  done
19644
25562
else
19645
25563
  echo "$as_me: failed program was:" >&5
19646
25564
sed 's/^/| /' conftest.$ac_ext >&5
19647
25565
 
19648
25566
cat >conftest.$ac_ext <<_ACEOF
19649
 
#line $LINENO "configure"
19650
25567
/* confdefs.h.  */
19651
25568
_ACEOF
19652
25569
cat confdefs.h >>conftest.$ac_ext
19665
25582
_ACEOF
19666
25583
rm -f conftest.$ac_objext
19667
25584
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19668
 
  (eval $ac_compile) 2>&5
 
25585
  (eval $ac_compile) 2>conftest.er1
19669
25586
  ac_status=$?
 
25587
  grep -v '^ *+' conftest.er1 >conftest.err
 
25588
  rm -f conftest.er1
 
25589
  cat conftest.err >&5
19670
25590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671
25591
  (exit $ac_status); } &&
19672
 
         { ac_try='test -s conftest.$ac_objext'
 
25592
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25594
  (eval $ac_try) 2>&5
 
25595
  ac_status=$?
 
25596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25597
  (exit $ac_status); }; } &&
 
25598
         { ac_try='test -s conftest.$ac_objext'
19673
25599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674
25600
  (eval $ac_try) 2>&5
19675
25601
  ac_status=$?
19678
25604
  ac_hi=-1 ac_mid=-1
19679
25605
  while :; do
19680
25606
    cat >conftest.$ac_ext <<_ACEOF
19681
 
#line $LINENO "configure"
19682
25607
/* confdefs.h.  */
19683
25608
_ACEOF
19684
25609
cat confdefs.h >>conftest.$ac_ext
19697
25622
_ACEOF
19698
25623
rm -f conftest.$ac_objext
19699
25624
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19700
 
  (eval $ac_compile) 2>&5
 
25625
  (eval $ac_compile) 2>conftest.er1
19701
25626
  ac_status=$?
 
25627
  grep -v '^ *+' conftest.er1 >conftest.err
 
25628
  rm -f conftest.er1
 
25629
  cat conftest.err >&5
19702
25630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703
25631
  (exit $ac_status); } &&
19704
 
         { ac_try='test -s conftest.$ac_objext'
 
25632
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25634
  (eval $ac_try) 2>&5
 
25635
  ac_status=$?
 
25636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25637
  (exit $ac_status); }; } &&
 
25638
         { ac_try='test -s conftest.$ac_objext'
19705
25639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706
25640
  (eval $ac_try) 2>&5
19707
25641
  ac_status=$?
19713
25647
sed 's/^/| /' conftest.$ac_ext >&5
19714
25648
 
19715
25649
ac_hi=`expr '(' $ac_mid ')' - 1`
19716
 
                       if test $ac_mid -le $ac_hi; then
19717
 
                         ac_lo= ac_hi=
19718
 
                         break
19719
 
                       fi
19720
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
25650
                       if test $ac_mid -le $ac_hi; then
 
25651
                         ac_lo= ac_hi=
 
25652
                         break
 
25653
                       fi
 
25654
                       ac_mid=`expr 2 '*' $ac_mid`
19721
25655
fi
19722
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25656
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19723
25657
  done
19724
25658
else
19725
25659
  echo "$as_me: failed program was:" >&5
19727
25661
 
19728
25662
ac_lo= ac_hi=
19729
25663
fi
19730
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25664
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19731
25665
fi
19732
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25666
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19733
25667
# Binary search between lo and hi bounds.
19734
25668
while test "x$ac_lo" != "x$ac_hi"; do
19735
25669
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19736
25670
  cat >conftest.$ac_ext <<_ACEOF
19737
 
#line $LINENO "configure"
19738
25671
/* confdefs.h.  */
19739
25672
_ACEOF
19740
25673
cat confdefs.h >>conftest.$ac_ext
19753
25686
_ACEOF
19754
25687
rm -f conftest.$ac_objext
19755
25688
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19756
 
  (eval $ac_compile) 2>&5
 
25689
  (eval $ac_compile) 2>conftest.er1
19757
25690
  ac_status=$?
 
25691
  grep -v '^ *+' conftest.er1 >conftest.err
 
25692
  rm -f conftest.er1
 
25693
  cat conftest.err >&5
19758
25694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759
25695
  (exit $ac_status); } &&
19760
 
         { ac_try='test -s conftest.$ac_objext'
 
25696
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25698
  (eval $ac_try) 2>&5
 
25699
  ac_status=$?
 
25700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25701
  (exit $ac_status); }; } &&
 
25702
         { ac_try='test -s conftest.$ac_objext'
19761
25703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762
25704
  (eval $ac_try) 2>&5
19763
25705
  ac_status=$?
19770
25712
 
19771
25713
ac_lo=`expr '(' $ac_mid ')' + 1`
19772
25714
fi
19773
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
25715
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19774
25716
done
19775
25717
case $ac_lo in
19776
25718
?*) ac_cv_sizeof_char_p=$ac_lo;;
19782
25724
esac
19783
25725
else
19784
25726
  if test "$cross_compiling" = yes; then
19785
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19786
 
See \`config.log' for more details." >&5
19787
 
echo "$as_me: error: cannot run test program while cross compiling
19788
 
See \`config.log' for more details." >&2;}
 
25727
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
25728
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19789
25729
   { (exit 1); exit 1; }; }
19790
25730
else
19791
25731
  cat >conftest.$ac_ext <<_ACEOF
19792
 
#line $LINENO "configure"
19793
25732
/* confdefs.h.  */
19794
25733
_ACEOF
19795
25734
cat confdefs.h >>conftest.$ac_ext
19851
25790
See \`config.log' for more details." >&2;}
19852
25791
   { (exit 1); exit 1; }; }
19853
25792
fi
19854
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25793
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19855
25794
fi
19856
25795
fi
19857
25796
rm -f conftest.val
19865
25804
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19866
25805
_ACEOF
19867
25806
 
19868
 
  echo "$as_me:$LINENO: checking for char" >&5
19869
 
echo $ECHO_N "checking for char... $ECHO_C" >&6
19870
 
if test "${ac_cv_type_char+set}" = set; then
19871
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19872
 
else
19873
 
  cat >conftest.$ac_ext <<_ACEOF
19874
 
#line $LINENO "configure"
19875
 
/* confdefs.h.  */
19876
 
_ACEOF
19877
 
cat confdefs.h >>conftest.$ac_ext
19878
 
cat >>conftest.$ac_ext <<_ACEOF
19879
 
/* end confdefs.h.  */
19880
 
$ac_includes_default
19881
 
int
19882
 
main ()
19883
 
{
19884
 
if ((char *) 0)
19885
 
  return 0;
19886
 
if (sizeof (char))
19887
 
  return 0;
19888
 
  ;
19889
 
  return 0;
19890
 
}
19891
 
_ACEOF
19892
 
rm -f conftest.$ac_objext
19893
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19894
 
  (eval $ac_compile) 2>&5
19895
 
  ac_status=$?
19896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897
 
  (exit $ac_status); } &&
19898
 
         { ac_try='test -s conftest.$ac_objext'
19899
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900
 
  (eval $ac_try) 2>&5
19901
 
  ac_status=$?
19902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903
 
  (exit $ac_status); }; }; then
19904
 
  ac_cv_type_char=yes
19905
 
else
19906
 
  echo "$as_me: failed program was:" >&5
19907
 
sed 's/^/| /' conftest.$ac_ext >&5
19908
 
 
19909
 
ac_cv_type_char=no
19910
 
fi
19911
 
rm -f conftest.$ac_objext conftest.$ac_ext
19912
 
fi
19913
 
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
19914
 
echo "${ECHO_T}$ac_cv_type_char" >&6
19915
 
 
19916
 
echo "$as_me:$LINENO: checking size of char" >&5
19917
 
echo $ECHO_N "checking size of char... $ECHO_C" >&6
19918
 
if test "${ac_cv_sizeof_char+set}" = set; then
19919
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19920
 
else
19921
 
  if test "$ac_cv_type_char" = yes; then
19922
 
  # The cast to unsigned long works around a bug in the HP C Compiler
19923
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19924
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19925
 
  # This bug is HP SR number 8606223364.
19926
 
  if test "$cross_compiling" = yes; then
19927
 
  # Depending upon the size, compute the lo and hi bounds.
19928
 
cat >conftest.$ac_ext <<_ACEOF
19929
 
#line $LINENO "configure"
19930
 
/* confdefs.h.  */
19931
 
_ACEOF
19932
 
cat confdefs.h >>conftest.$ac_ext
19933
 
cat >>conftest.$ac_ext <<_ACEOF
19934
 
/* end confdefs.h.  */
19935
 
$ac_includes_default
19936
 
int
19937
 
main ()
19938
 
{
19939
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
19940
 
test_array [0] = 0
19941
 
 
19942
 
  ;
19943
 
  return 0;
19944
 
}
19945
 
_ACEOF
19946
 
rm -f conftest.$ac_objext
19947
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19948
 
  (eval $ac_compile) 2>&5
19949
 
  ac_status=$?
19950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951
 
  (exit $ac_status); } &&
19952
 
         { ac_try='test -s conftest.$ac_objext'
19953
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954
 
  (eval $ac_try) 2>&5
19955
 
  ac_status=$?
19956
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957
 
  (exit $ac_status); }; }; then
19958
 
  ac_lo=0 ac_mid=0
19959
 
  while :; do
19960
 
    cat >conftest.$ac_ext <<_ACEOF
19961
 
#line $LINENO "configure"
19962
 
/* confdefs.h.  */
19963
 
_ACEOF
19964
 
cat confdefs.h >>conftest.$ac_ext
19965
 
cat >>conftest.$ac_ext <<_ACEOF
19966
 
/* end confdefs.h.  */
19967
 
$ac_includes_default
19968
 
int
19969
 
main ()
19970
 
{
19971
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
19972
 
test_array [0] = 0
19973
 
 
19974
 
  ;
19975
 
  return 0;
19976
 
}
19977
 
_ACEOF
19978
 
rm -f conftest.$ac_objext
19979
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19980
 
  (eval $ac_compile) 2>&5
19981
 
  ac_status=$?
19982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983
 
  (exit $ac_status); } &&
19984
 
         { ac_try='test -s conftest.$ac_objext'
19985
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986
 
  (eval $ac_try) 2>&5
19987
 
  ac_status=$?
19988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989
 
  (exit $ac_status); }; }; then
19990
 
  ac_hi=$ac_mid; break
19991
 
else
19992
 
  echo "$as_me: failed program was:" >&5
19993
 
sed 's/^/| /' conftest.$ac_ext >&5
19994
 
 
19995
 
ac_lo=`expr $ac_mid + 1`
19996
 
                    if test $ac_lo -le $ac_mid; then
19997
 
                      ac_lo= ac_hi=
19998
 
                      break
19999
 
                    fi
20000
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
20001
 
fi
20002
 
rm -f conftest.$ac_objext conftest.$ac_ext
20003
 
  done
20004
 
else
20005
 
  echo "$as_me: failed program was:" >&5
20006
 
sed 's/^/| /' conftest.$ac_ext >&5
20007
 
 
20008
 
cat >conftest.$ac_ext <<_ACEOF
20009
 
#line $LINENO "configure"
20010
 
/* confdefs.h.  */
20011
 
_ACEOF
20012
 
cat confdefs.h >>conftest.$ac_ext
20013
 
cat >>conftest.$ac_ext <<_ACEOF
20014
 
/* end confdefs.h.  */
20015
 
$ac_includes_default
20016
 
int
20017
 
main ()
20018
 
{
20019
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
20020
 
test_array [0] = 0
20021
 
 
20022
 
  ;
20023
 
  return 0;
20024
 
}
20025
 
_ACEOF
20026
 
rm -f conftest.$ac_objext
20027
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20028
 
  (eval $ac_compile) 2>&5
20029
 
  ac_status=$?
20030
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031
 
  (exit $ac_status); } &&
20032
 
         { ac_try='test -s conftest.$ac_objext'
20033
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034
 
  (eval $ac_try) 2>&5
20035
 
  ac_status=$?
20036
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037
 
  (exit $ac_status); }; }; then
20038
 
  ac_hi=-1 ac_mid=-1
20039
 
  while :; do
20040
 
    cat >conftest.$ac_ext <<_ACEOF
20041
 
#line $LINENO "configure"
20042
 
/* confdefs.h.  */
20043
 
_ACEOF
20044
 
cat confdefs.h >>conftest.$ac_ext
20045
 
cat >>conftest.$ac_ext <<_ACEOF
20046
 
/* end confdefs.h.  */
20047
 
$ac_includes_default
20048
 
int
20049
 
main ()
20050
 
{
20051
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
20052
 
test_array [0] = 0
20053
 
 
20054
 
  ;
20055
 
  return 0;
20056
 
}
20057
 
_ACEOF
20058
 
rm -f conftest.$ac_objext
20059
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20060
 
  (eval $ac_compile) 2>&5
20061
 
  ac_status=$?
20062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063
 
  (exit $ac_status); } &&
20064
 
         { ac_try='test -s conftest.$ac_objext'
20065
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066
 
  (eval $ac_try) 2>&5
20067
 
  ac_status=$?
20068
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069
 
  (exit $ac_status); }; }; then
20070
 
  ac_lo=$ac_mid; break
20071
 
else
20072
 
  echo "$as_me: failed program was:" >&5
20073
 
sed 's/^/| /' conftest.$ac_ext >&5
20074
 
 
20075
 
ac_hi=`expr '(' $ac_mid ')' - 1`
20076
 
                       if test $ac_mid -le $ac_hi; then
20077
 
                         ac_lo= ac_hi=
20078
 
                         break
20079
 
                       fi
20080
 
                       ac_mid=`expr 2 '*' $ac_mid`
20081
 
fi
20082
 
rm -f conftest.$ac_objext conftest.$ac_ext
20083
 
  done
20084
 
else
20085
 
  echo "$as_me: failed program was:" >&5
20086
 
sed 's/^/| /' conftest.$ac_ext >&5
20087
 
 
20088
 
ac_lo= ac_hi=
20089
 
fi
20090
 
rm -f conftest.$ac_objext conftest.$ac_ext
20091
 
fi
20092
 
rm -f conftest.$ac_objext conftest.$ac_ext
20093
 
# Binary search between lo and hi bounds.
20094
 
while test "x$ac_lo" != "x$ac_hi"; do
20095
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20096
 
  cat >conftest.$ac_ext <<_ACEOF
20097
 
#line $LINENO "configure"
20098
 
/* confdefs.h.  */
20099
 
_ACEOF
20100
 
cat confdefs.h >>conftest.$ac_ext
20101
 
cat >>conftest.$ac_ext <<_ACEOF
20102
 
/* end confdefs.h.  */
20103
 
$ac_includes_default
20104
 
int
20105
 
main ()
20106
 
{
20107
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20108
 
test_array [0] = 0
20109
 
 
20110
 
  ;
20111
 
  return 0;
20112
 
}
20113
 
_ACEOF
20114
 
rm -f conftest.$ac_objext
20115
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20116
 
  (eval $ac_compile) 2>&5
20117
 
  ac_status=$?
20118
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119
 
  (exit $ac_status); } &&
20120
 
         { ac_try='test -s conftest.$ac_objext'
20121
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122
 
  (eval $ac_try) 2>&5
20123
 
  ac_status=$?
20124
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125
 
  (exit $ac_status); }; }; then
20126
 
  ac_hi=$ac_mid
20127
 
else
20128
 
  echo "$as_me: failed program was:" >&5
20129
 
sed 's/^/| /' conftest.$ac_ext >&5
20130
 
 
20131
 
ac_lo=`expr '(' $ac_mid ')' + 1`
20132
 
fi
20133
 
rm -f conftest.$ac_objext conftest.$ac_ext
20134
 
done
20135
 
case $ac_lo in
20136
 
?*) ac_cv_sizeof_char=$ac_lo;;
20137
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20138
 
See \`config.log' for more details." >&5
20139
 
echo "$as_me: error: cannot compute sizeof (char), 77
20140
 
See \`config.log' for more details." >&2;}
20141
 
   { (exit 1); exit 1; }; } ;;
20142
 
esac
20143
 
else
20144
 
  if test "$cross_compiling" = yes; then
20145
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20146
 
See \`config.log' for more details." >&5
20147
 
echo "$as_me: error: cannot run test program while cross compiling
20148
 
See \`config.log' for more details." >&2;}
20149
 
   { (exit 1); exit 1; }; }
20150
 
else
20151
 
  cat >conftest.$ac_ext <<_ACEOF
20152
 
#line $LINENO "configure"
20153
 
/* confdefs.h.  */
20154
 
_ACEOF
20155
 
cat confdefs.h >>conftest.$ac_ext
20156
 
cat >>conftest.$ac_ext <<_ACEOF
20157
 
/* end confdefs.h.  */
20158
 
$ac_includes_default
20159
 
long longval () { return (long) (sizeof (char)); }
20160
 
unsigned long ulongval () { return (long) (sizeof (char)); }
20161
 
#include <stdio.h>
20162
 
#include <stdlib.h>
20163
 
int
20164
 
main ()
20165
 
{
20166
 
 
20167
 
  FILE *f = fopen ("conftest.val", "w");
20168
 
  if (! f)
20169
 
    exit (1);
20170
 
  if (((long) (sizeof (char))) < 0)
20171
 
    {
20172
 
      long i = longval ();
20173
 
      if (i != ((long) (sizeof (char))))
20174
 
        exit (1);
20175
 
      fprintf (f, "%ld\n", i);
20176
 
    }
20177
 
  else
20178
 
    {
20179
 
      unsigned long i = ulongval ();
20180
 
      if (i != ((long) (sizeof (char))))
20181
 
        exit (1);
20182
 
      fprintf (f, "%lu\n", i);
20183
 
    }
20184
 
  exit (ferror (f) || fclose (f) != 0);
20185
 
 
20186
 
  ;
20187
 
  return 0;
20188
 
}
20189
 
_ACEOF
20190
 
rm -f conftest$ac_exeext
20191
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20192
 
  (eval $ac_link) 2>&5
20193
 
  ac_status=$?
20194
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20196
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197
 
  (eval $ac_try) 2>&5
20198
 
  ac_status=$?
20199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200
 
  (exit $ac_status); }; }; then
20201
 
  ac_cv_sizeof_char=`cat conftest.val`
20202
 
else
20203
 
  echo "$as_me: program exited with status $ac_status" >&5
20204
 
echo "$as_me: failed program was:" >&5
20205
 
sed 's/^/| /' conftest.$ac_ext >&5
20206
 
 
20207
 
( exit $ac_status )
20208
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20209
 
See \`config.log' for more details." >&5
20210
 
echo "$as_me: error: cannot compute sizeof (char), 77
20211
 
See \`config.log' for more details." >&2;}
20212
 
   { (exit 1); exit 1; }; }
20213
 
fi
20214
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20215
 
fi
20216
 
fi
20217
 
rm -f conftest.val
20218
 
else
20219
 
  ac_cv_sizeof_char=0
20220
 
fi
20221
 
fi
20222
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20223
 
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
20224
 
cat >>confdefs.h <<_ACEOF
20225
 
#define SIZEOF_CHAR $ac_cv_sizeof_char
20226
 
_ACEOF
20227
 
 
20228
25807
 
20229
25808
 
20230
25809
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20235
25814
  ac_check_lib_save_LIBS=$LIBS
20236
25815
LIBS="-ldl  $LIBS"
20237
25816
cat >conftest.$ac_ext <<_ACEOF
20238
 
#line $LINENO "configure"
20239
25817
/* confdefs.h.  */
20240
25818
_ACEOF
20241
25819
cat confdefs.h >>conftest.$ac_ext
20259
25837
_ACEOF
20260
25838
rm -f conftest.$ac_objext conftest$ac_exeext
20261
25839
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20262
 
  (eval $ac_link) 2>&5
 
25840
  (eval $ac_link) 2>conftest.er1
20263
25841
  ac_status=$?
 
25842
  grep -v '^ *+' conftest.er1 >conftest.err
 
25843
  rm -f conftest.er1
 
25844
  cat conftest.err >&5
20264
25845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265
25846
  (exit $ac_status); } &&
20266
 
         { ac_try='test -s conftest$ac_exeext'
 
25847
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25849
  (eval $ac_try) 2>&5
 
25850
  ac_status=$?
 
25851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25852
  (exit $ac_status); }; } &&
 
25853
         { ac_try='test -s conftest$ac_exeext'
20267
25854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268
25855
  (eval $ac_try) 2>&5
20269
25856
  ac_status=$?
20276
25863
 
20277
25864
ac_cv_lib_dl_dlopen=no
20278
25865
fi
20279
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
25866
rm -f conftest.err conftest.$ac_objext \
 
25867
      conftest$ac_exeext conftest.$ac_ext
20280
25868
LIBS=$ac_check_lib_save_LIBS
20281
25869
fi
20282
25870
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20297
25885
  ac_check_lib_save_LIBS=$LIBS
20298
25886
LIBS="-ldld  $LIBS"
20299
25887
cat >conftest.$ac_ext <<_ACEOF
20300
 
#line $LINENO "configure"
20301
25888
/* confdefs.h.  */
20302
25889
_ACEOF
20303
25890
cat confdefs.h >>conftest.$ac_ext
20321
25908
_ACEOF
20322
25909
rm -f conftest.$ac_objext conftest$ac_exeext
20323
25910
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20324
 
  (eval $ac_link) 2>&5
 
25911
  (eval $ac_link) 2>conftest.er1
20325
25912
  ac_status=$?
 
25913
  grep -v '^ *+' conftest.er1 >conftest.err
 
25914
  rm -f conftest.er1
 
25915
  cat conftest.err >&5
20326
25916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327
25917
  (exit $ac_status); } &&
20328
 
         { ac_try='test -s conftest$ac_exeext'
 
25918
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25920
  (eval $ac_try) 2>&5
 
25921
  ac_status=$?
 
25922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25923
  (exit $ac_status); }; } &&
 
25924
         { ac_try='test -s conftest$ac_exeext'
20329
25925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330
25926
  (eval $ac_try) 2>&5
20331
25927
  ac_status=$?
20338
25934
 
20339
25935
ac_cv_lib_dld_shl_unload=no
20340
25936
fi
20341
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
25937
rm -f conftest.err conftest.$ac_objext \
 
25938
      conftest$ac_exeext conftest.$ac_ext
20342
25939
LIBS=$ac_check_lib_save_LIBS
20343
25940
fi
20344
25941
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
20356
25953
 
20357
25954
 
20358
25955
 
 
25956
  echo "$as_me:$LINENO: checking for size_t" >&5
 
25957
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
25958
if test "${ac_cv_type_size_t+set}" = set; then
 
25959
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25960
else
 
25961
  cat >conftest.$ac_ext <<_ACEOF
 
25962
/* confdefs.h.  */
 
25963
_ACEOF
 
25964
cat confdefs.h >>conftest.$ac_ext
 
25965
cat >>conftest.$ac_ext <<_ACEOF
 
25966
/* end confdefs.h.  */
 
25967
$ac_includes_default
 
25968
int
 
25969
main ()
 
25970
{
 
25971
if ((size_t *) 0)
 
25972
  return 0;
 
25973
if (sizeof (size_t))
 
25974
  return 0;
 
25975
  ;
 
25976
  return 0;
 
25977
}
 
25978
_ACEOF
 
25979
rm -f conftest.$ac_objext
 
25980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25981
  (eval $ac_compile) 2>conftest.er1
 
25982
  ac_status=$?
 
25983
  grep -v '^ *+' conftest.er1 >conftest.err
 
25984
  rm -f conftest.er1
 
25985
  cat conftest.err >&5
 
25986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25987
  (exit $ac_status); } &&
 
25988
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25990
  (eval $ac_try) 2>&5
 
25991
  ac_status=$?
 
25992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25993
  (exit $ac_status); }; } &&
 
25994
         { ac_try='test -s conftest.$ac_objext'
 
25995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25996
  (eval $ac_try) 2>&5
 
25997
  ac_status=$?
 
25998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25999
  (exit $ac_status); }; }; then
 
26000
  ac_cv_type_size_t=yes
 
26001
else
 
26002
  echo "$as_me: failed program was:" >&5
 
26003
sed 's/^/| /' conftest.$ac_ext >&5
 
26004
 
 
26005
ac_cv_type_size_t=no
 
26006
fi
 
26007
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26008
fi
 
26009
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
26010
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
26011
 
 
26012
echo "$as_me:$LINENO: checking size of size_t" >&5
 
26013
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
 
26014
if test "${ac_cv_sizeof_size_t+set}" = set; then
 
26015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26016
else
 
26017
  if test "$ac_cv_type_size_t" = yes; then
 
26018
  # The cast to unsigned long works around a bug in the HP C Compiler
 
26019
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
26020
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
26021
  # This bug is HP SR number 8606223364.
 
26022
  if test "$cross_compiling" = yes; then
 
26023
  # Depending upon the size, compute the lo and hi bounds.
 
26024
cat >conftest.$ac_ext <<_ACEOF
 
26025
/* confdefs.h.  */
 
26026
_ACEOF
 
26027
cat confdefs.h >>conftest.$ac_ext
 
26028
cat >>conftest.$ac_ext <<_ACEOF
 
26029
/* end confdefs.h.  */
 
26030
$ac_includes_default
 
26031
int
 
26032
main ()
 
26033
{
 
26034
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
 
26035
test_array [0] = 0
 
26036
 
 
26037
  ;
 
26038
  return 0;
 
26039
}
 
26040
_ACEOF
 
26041
rm -f conftest.$ac_objext
 
26042
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26043
  (eval $ac_compile) 2>conftest.er1
 
26044
  ac_status=$?
 
26045
  grep -v '^ *+' conftest.er1 >conftest.err
 
26046
  rm -f conftest.er1
 
26047
  cat conftest.err >&5
 
26048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26049
  (exit $ac_status); } &&
 
26050
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26052
  (eval $ac_try) 2>&5
 
26053
  ac_status=$?
 
26054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26055
  (exit $ac_status); }; } &&
 
26056
         { ac_try='test -s conftest.$ac_objext'
 
26057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26058
  (eval $ac_try) 2>&5
 
26059
  ac_status=$?
 
26060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26061
  (exit $ac_status); }; }; then
 
26062
  ac_lo=0 ac_mid=0
 
26063
  while :; do
 
26064
    cat >conftest.$ac_ext <<_ACEOF
 
26065
/* confdefs.h.  */
 
26066
_ACEOF
 
26067
cat confdefs.h >>conftest.$ac_ext
 
26068
cat >>conftest.$ac_ext <<_ACEOF
 
26069
/* end confdefs.h.  */
 
26070
$ac_includes_default
 
26071
int
 
26072
main ()
 
26073
{
 
26074
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
 
26075
test_array [0] = 0
 
26076
 
 
26077
  ;
 
26078
  return 0;
 
26079
}
 
26080
_ACEOF
 
26081
rm -f conftest.$ac_objext
 
26082
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26083
  (eval $ac_compile) 2>conftest.er1
 
26084
  ac_status=$?
 
26085
  grep -v '^ *+' conftest.er1 >conftest.err
 
26086
  rm -f conftest.er1
 
26087
  cat conftest.err >&5
 
26088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26089
  (exit $ac_status); } &&
 
26090
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26092
  (eval $ac_try) 2>&5
 
26093
  ac_status=$?
 
26094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26095
  (exit $ac_status); }; } &&
 
26096
         { ac_try='test -s conftest.$ac_objext'
 
26097
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26098
  (eval $ac_try) 2>&5
 
26099
  ac_status=$?
 
26100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26101
  (exit $ac_status); }; }; then
 
26102
  ac_hi=$ac_mid; break
 
26103
else
 
26104
  echo "$as_me: failed program was:" >&5
 
26105
sed 's/^/| /' conftest.$ac_ext >&5
 
26106
 
 
26107
ac_lo=`expr $ac_mid + 1`
 
26108
                    if test $ac_lo -le $ac_mid; then
 
26109
                      ac_lo= ac_hi=
 
26110
                      break
 
26111
                    fi
 
26112
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
26113
fi
 
26114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26115
  done
 
26116
else
 
26117
  echo "$as_me: failed program was:" >&5
 
26118
sed 's/^/| /' conftest.$ac_ext >&5
 
26119
 
 
26120
cat >conftest.$ac_ext <<_ACEOF
 
26121
/* confdefs.h.  */
 
26122
_ACEOF
 
26123
cat confdefs.h >>conftest.$ac_ext
 
26124
cat >>conftest.$ac_ext <<_ACEOF
 
26125
/* end confdefs.h.  */
 
26126
$ac_includes_default
 
26127
int
 
26128
main ()
 
26129
{
 
26130
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
 
26131
test_array [0] = 0
 
26132
 
 
26133
  ;
 
26134
  return 0;
 
26135
}
 
26136
_ACEOF
 
26137
rm -f conftest.$ac_objext
 
26138
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26139
  (eval $ac_compile) 2>conftest.er1
 
26140
  ac_status=$?
 
26141
  grep -v '^ *+' conftest.er1 >conftest.err
 
26142
  rm -f conftest.er1
 
26143
  cat conftest.err >&5
 
26144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26145
  (exit $ac_status); } &&
 
26146
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26148
  (eval $ac_try) 2>&5
 
26149
  ac_status=$?
 
26150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26151
  (exit $ac_status); }; } &&
 
26152
         { ac_try='test -s conftest.$ac_objext'
 
26153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26154
  (eval $ac_try) 2>&5
 
26155
  ac_status=$?
 
26156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26157
  (exit $ac_status); }; }; then
 
26158
  ac_hi=-1 ac_mid=-1
 
26159
  while :; do
 
26160
    cat >conftest.$ac_ext <<_ACEOF
 
26161
/* confdefs.h.  */
 
26162
_ACEOF
 
26163
cat confdefs.h >>conftest.$ac_ext
 
26164
cat >>conftest.$ac_ext <<_ACEOF
 
26165
/* end confdefs.h.  */
 
26166
$ac_includes_default
 
26167
int
 
26168
main ()
 
26169
{
 
26170
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
 
26171
test_array [0] = 0
 
26172
 
 
26173
  ;
 
26174
  return 0;
 
26175
}
 
26176
_ACEOF
 
26177
rm -f conftest.$ac_objext
 
26178
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26179
  (eval $ac_compile) 2>conftest.er1
 
26180
  ac_status=$?
 
26181
  grep -v '^ *+' conftest.er1 >conftest.err
 
26182
  rm -f conftest.er1
 
26183
  cat conftest.err >&5
 
26184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26185
  (exit $ac_status); } &&
 
26186
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26188
  (eval $ac_try) 2>&5
 
26189
  ac_status=$?
 
26190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26191
  (exit $ac_status); }; } &&
 
26192
         { ac_try='test -s conftest.$ac_objext'
 
26193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26194
  (eval $ac_try) 2>&5
 
26195
  ac_status=$?
 
26196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26197
  (exit $ac_status); }; }; then
 
26198
  ac_lo=$ac_mid; break
 
26199
else
 
26200
  echo "$as_me: failed program was:" >&5
 
26201
sed 's/^/| /' conftest.$ac_ext >&5
 
26202
 
 
26203
ac_hi=`expr '(' $ac_mid ')' - 1`
 
26204
                       if test $ac_mid -le $ac_hi; then
 
26205
                         ac_lo= ac_hi=
 
26206
                         break
 
26207
                       fi
 
26208
                       ac_mid=`expr 2 '*' $ac_mid`
 
26209
fi
 
26210
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26211
  done
 
26212
else
 
26213
  echo "$as_me: failed program was:" >&5
 
26214
sed 's/^/| /' conftest.$ac_ext >&5
 
26215
 
 
26216
ac_lo= ac_hi=
 
26217
fi
 
26218
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26219
fi
 
26220
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26221
# Binary search between lo and hi bounds.
 
26222
while test "x$ac_lo" != "x$ac_hi"; do
 
26223
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26224
  cat >conftest.$ac_ext <<_ACEOF
 
26225
/* confdefs.h.  */
 
26226
_ACEOF
 
26227
cat confdefs.h >>conftest.$ac_ext
 
26228
cat >>conftest.$ac_ext <<_ACEOF
 
26229
/* end confdefs.h.  */
 
26230
$ac_includes_default
 
26231
int
 
26232
main ()
 
26233
{
 
26234
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
 
26235
test_array [0] = 0
 
26236
 
 
26237
  ;
 
26238
  return 0;
 
26239
}
 
26240
_ACEOF
 
26241
rm -f conftest.$ac_objext
 
26242
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26243
  (eval $ac_compile) 2>conftest.er1
 
26244
  ac_status=$?
 
26245
  grep -v '^ *+' conftest.er1 >conftest.err
 
26246
  rm -f conftest.er1
 
26247
  cat conftest.err >&5
 
26248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26249
  (exit $ac_status); } &&
 
26250
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26252
  (eval $ac_try) 2>&5
 
26253
  ac_status=$?
 
26254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26255
  (exit $ac_status); }; } &&
 
26256
         { ac_try='test -s conftest.$ac_objext'
 
26257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26258
  (eval $ac_try) 2>&5
 
26259
  ac_status=$?
 
26260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26261
  (exit $ac_status); }; }; then
 
26262
  ac_hi=$ac_mid
 
26263
else
 
26264
  echo "$as_me: failed program was:" >&5
 
26265
sed 's/^/| /' conftest.$ac_ext >&5
 
26266
 
 
26267
ac_lo=`expr '(' $ac_mid ')' + 1`
 
26268
fi
 
26269
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26270
done
 
26271
case $ac_lo in
 
26272
?*) ac_cv_sizeof_size_t=$ac_lo;;
 
26273
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
 
26274
See \`config.log' for more details." >&5
 
26275
echo "$as_me: error: cannot compute sizeof (size_t), 77
 
26276
See \`config.log' for more details." >&2;}
 
26277
   { (exit 1); exit 1; }; } ;;
 
26278
esac
 
26279
else
 
26280
  if test "$cross_compiling" = yes; then
 
26281
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
26282
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
26283
   { (exit 1); exit 1; }; }
 
26284
else
 
26285
  cat >conftest.$ac_ext <<_ACEOF
 
26286
/* confdefs.h.  */
 
26287
_ACEOF
 
26288
cat confdefs.h >>conftest.$ac_ext
 
26289
cat >>conftest.$ac_ext <<_ACEOF
 
26290
/* end confdefs.h.  */
 
26291
$ac_includes_default
 
26292
long longval () { return (long) (sizeof (size_t)); }
 
26293
unsigned long ulongval () { return (long) (sizeof (size_t)); }
 
26294
#include <stdio.h>
 
26295
#include <stdlib.h>
 
26296
int
 
26297
main ()
 
26298
{
 
26299
 
 
26300
  FILE *f = fopen ("conftest.val", "w");
 
26301
  if (! f)
 
26302
    exit (1);
 
26303
  if (((long) (sizeof (size_t))) < 0)
 
26304
    {
 
26305
      long i = longval ();
 
26306
      if (i != ((long) (sizeof (size_t))))
 
26307
        exit (1);
 
26308
      fprintf (f, "%ld\n", i);
 
26309
    }
 
26310
  else
 
26311
    {
 
26312
      unsigned long i = ulongval ();
 
26313
      if (i != ((long) (sizeof (size_t))))
 
26314
        exit (1);
 
26315
      fprintf (f, "%lu\n", i);
 
26316
    }
 
26317
  exit (ferror (f) || fclose (f) != 0);
 
26318
 
 
26319
  ;
 
26320
  return 0;
 
26321
}
 
26322
_ACEOF
 
26323
rm -f conftest$ac_exeext
 
26324
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26325
  (eval $ac_link) 2>&5
 
26326
  ac_status=$?
 
26327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26328
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26330
  (eval $ac_try) 2>&5
 
26331
  ac_status=$?
 
26332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26333
  (exit $ac_status); }; }; then
 
26334
  ac_cv_sizeof_size_t=`cat conftest.val`
 
26335
else
 
26336
  echo "$as_me: program exited with status $ac_status" >&5
 
26337
echo "$as_me: failed program was:" >&5
 
26338
sed 's/^/| /' conftest.$ac_ext >&5
 
26339
 
 
26340
( exit $ac_status )
 
26341
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
 
26342
See \`config.log' for more details." >&5
 
26343
echo "$as_me: error: cannot compute sizeof (size_t), 77
 
26344
See \`config.log' for more details." >&2;}
 
26345
   { (exit 1); exit 1; }; }
 
26346
fi
 
26347
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26348
fi
 
26349
fi
 
26350
rm -f conftest.val
 
26351
else
 
26352
  ac_cv_sizeof_size_t=0
 
26353
fi
 
26354
fi
 
26355
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
 
26356
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
 
26357
cat >>confdefs.h <<_ACEOF
 
26358
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
 
26359
_ACEOF
 
26360
 
 
26361
 
 
26362
  echo "$as_me:$LINENO: checking for unsigned long" >&5
 
26363
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
 
26364
if test "${ac_cv_type_unsigned_long+set}" = set; then
 
26365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26366
else
 
26367
  cat >conftest.$ac_ext <<_ACEOF
 
26368
/* confdefs.h.  */
 
26369
_ACEOF
 
26370
cat confdefs.h >>conftest.$ac_ext
 
26371
cat >>conftest.$ac_ext <<_ACEOF
 
26372
/* end confdefs.h.  */
 
26373
$ac_includes_default
 
26374
int
 
26375
main ()
 
26376
{
 
26377
if ((unsigned long *) 0)
 
26378
  return 0;
 
26379
if (sizeof (unsigned long))
 
26380
  return 0;
 
26381
  ;
 
26382
  return 0;
 
26383
}
 
26384
_ACEOF
 
26385
rm -f conftest.$ac_objext
 
26386
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26387
  (eval $ac_compile) 2>conftest.er1
 
26388
  ac_status=$?
 
26389
  grep -v '^ *+' conftest.er1 >conftest.err
 
26390
  rm -f conftest.er1
 
26391
  cat conftest.err >&5
 
26392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26393
  (exit $ac_status); } &&
 
26394
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26396
  (eval $ac_try) 2>&5
 
26397
  ac_status=$?
 
26398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26399
  (exit $ac_status); }; } &&
 
26400
         { ac_try='test -s conftest.$ac_objext'
 
26401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26402
  (eval $ac_try) 2>&5
 
26403
  ac_status=$?
 
26404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26405
  (exit $ac_status); }; }; then
 
26406
  ac_cv_type_unsigned_long=yes
 
26407
else
 
26408
  echo "$as_me: failed program was:" >&5
 
26409
sed 's/^/| /' conftest.$ac_ext >&5
 
26410
 
 
26411
ac_cv_type_unsigned_long=no
 
26412
fi
 
26413
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26414
fi
 
26415
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
 
26416
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
 
26417
 
 
26418
echo "$as_me:$LINENO: checking size of unsigned long" >&5
 
26419
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
 
26420
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
 
26421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26422
else
 
26423
  if test "$ac_cv_type_unsigned_long" = yes; then
 
26424
  # The cast to unsigned long works around a bug in the HP C Compiler
 
26425
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
26426
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
26427
  # This bug is HP SR number 8606223364.
 
26428
  if test "$cross_compiling" = yes; then
 
26429
  # Depending upon the size, compute the lo and hi bounds.
 
26430
cat >conftest.$ac_ext <<_ACEOF
 
26431
/* confdefs.h.  */
 
26432
_ACEOF
 
26433
cat confdefs.h >>conftest.$ac_ext
 
26434
cat >>conftest.$ac_ext <<_ACEOF
 
26435
/* end confdefs.h.  */
 
26436
$ac_includes_default
 
26437
int
 
26438
main ()
 
26439
{
 
26440
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
 
26441
test_array [0] = 0
 
26442
 
 
26443
  ;
 
26444
  return 0;
 
26445
}
 
26446
_ACEOF
 
26447
rm -f conftest.$ac_objext
 
26448
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26449
  (eval $ac_compile) 2>conftest.er1
 
26450
  ac_status=$?
 
26451
  grep -v '^ *+' conftest.er1 >conftest.err
 
26452
  rm -f conftest.er1
 
26453
  cat conftest.err >&5
 
26454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26455
  (exit $ac_status); } &&
 
26456
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26458
  (eval $ac_try) 2>&5
 
26459
  ac_status=$?
 
26460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26461
  (exit $ac_status); }; } &&
 
26462
         { ac_try='test -s conftest.$ac_objext'
 
26463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26464
  (eval $ac_try) 2>&5
 
26465
  ac_status=$?
 
26466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26467
  (exit $ac_status); }; }; then
 
26468
  ac_lo=0 ac_mid=0
 
26469
  while :; do
 
26470
    cat >conftest.$ac_ext <<_ACEOF
 
26471
/* confdefs.h.  */
 
26472
_ACEOF
 
26473
cat confdefs.h >>conftest.$ac_ext
 
26474
cat >>conftest.$ac_ext <<_ACEOF
 
26475
/* end confdefs.h.  */
 
26476
$ac_includes_default
 
26477
int
 
26478
main ()
 
26479
{
 
26480
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
26481
test_array [0] = 0
 
26482
 
 
26483
  ;
 
26484
  return 0;
 
26485
}
 
26486
_ACEOF
 
26487
rm -f conftest.$ac_objext
 
26488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26489
  (eval $ac_compile) 2>conftest.er1
 
26490
  ac_status=$?
 
26491
  grep -v '^ *+' conftest.er1 >conftest.err
 
26492
  rm -f conftest.er1
 
26493
  cat conftest.err >&5
 
26494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26495
  (exit $ac_status); } &&
 
26496
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26498
  (eval $ac_try) 2>&5
 
26499
  ac_status=$?
 
26500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26501
  (exit $ac_status); }; } &&
 
26502
         { ac_try='test -s conftest.$ac_objext'
 
26503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26504
  (eval $ac_try) 2>&5
 
26505
  ac_status=$?
 
26506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26507
  (exit $ac_status); }; }; then
 
26508
  ac_hi=$ac_mid; break
 
26509
else
 
26510
  echo "$as_me: failed program was:" >&5
 
26511
sed 's/^/| /' conftest.$ac_ext >&5
 
26512
 
 
26513
ac_lo=`expr $ac_mid + 1`
 
26514
                    if test $ac_lo -le $ac_mid; then
 
26515
                      ac_lo= ac_hi=
 
26516
                      break
 
26517
                    fi
 
26518
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
26519
fi
 
26520
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26521
  done
 
26522
else
 
26523
  echo "$as_me: failed program was:" >&5
 
26524
sed 's/^/| /' conftest.$ac_ext >&5
 
26525
 
 
26526
cat >conftest.$ac_ext <<_ACEOF
 
26527
/* confdefs.h.  */
 
26528
_ACEOF
 
26529
cat confdefs.h >>conftest.$ac_ext
 
26530
cat >>conftest.$ac_ext <<_ACEOF
 
26531
/* end confdefs.h.  */
 
26532
$ac_includes_default
 
26533
int
 
26534
main ()
 
26535
{
 
26536
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
 
26537
test_array [0] = 0
 
26538
 
 
26539
  ;
 
26540
  return 0;
 
26541
}
 
26542
_ACEOF
 
26543
rm -f conftest.$ac_objext
 
26544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26545
  (eval $ac_compile) 2>conftest.er1
 
26546
  ac_status=$?
 
26547
  grep -v '^ *+' conftest.er1 >conftest.err
 
26548
  rm -f conftest.er1
 
26549
  cat conftest.err >&5
 
26550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26551
  (exit $ac_status); } &&
 
26552
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26554
  (eval $ac_try) 2>&5
 
26555
  ac_status=$?
 
26556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26557
  (exit $ac_status); }; } &&
 
26558
         { ac_try='test -s conftest.$ac_objext'
 
26559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26560
  (eval $ac_try) 2>&5
 
26561
  ac_status=$?
 
26562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26563
  (exit $ac_status); }; }; then
 
26564
  ac_hi=-1 ac_mid=-1
 
26565
  while :; do
 
26566
    cat >conftest.$ac_ext <<_ACEOF
 
26567
/* confdefs.h.  */
 
26568
_ACEOF
 
26569
cat confdefs.h >>conftest.$ac_ext
 
26570
cat >>conftest.$ac_ext <<_ACEOF
 
26571
/* end confdefs.h.  */
 
26572
$ac_includes_default
 
26573
int
 
26574
main ()
 
26575
{
 
26576
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
 
26577
test_array [0] = 0
 
26578
 
 
26579
  ;
 
26580
  return 0;
 
26581
}
 
26582
_ACEOF
 
26583
rm -f conftest.$ac_objext
 
26584
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26585
  (eval $ac_compile) 2>conftest.er1
 
26586
  ac_status=$?
 
26587
  grep -v '^ *+' conftest.er1 >conftest.err
 
26588
  rm -f conftest.er1
 
26589
  cat conftest.err >&5
 
26590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26591
  (exit $ac_status); } &&
 
26592
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26594
  (eval $ac_try) 2>&5
 
26595
  ac_status=$?
 
26596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26597
  (exit $ac_status); }; } &&
 
26598
         { ac_try='test -s conftest.$ac_objext'
 
26599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26600
  (eval $ac_try) 2>&5
 
26601
  ac_status=$?
 
26602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26603
  (exit $ac_status); }; }; then
 
26604
  ac_lo=$ac_mid; break
 
26605
else
 
26606
  echo "$as_me: failed program was:" >&5
 
26607
sed 's/^/| /' conftest.$ac_ext >&5
 
26608
 
 
26609
ac_hi=`expr '(' $ac_mid ')' - 1`
 
26610
                       if test $ac_mid -le $ac_hi; then
 
26611
                         ac_lo= ac_hi=
 
26612
                         break
 
26613
                       fi
 
26614
                       ac_mid=`expr 2 '*' $ac_mid`
 
26615
fi
 
26616
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26617
  done
 
26618
else
 
26619
  echo "$as_me: failed program was:" >&5
 
26620
sed 's/^/| /' conftest.$ac_ext >&5
 
26621
 
 
26622
ac_lo= ac_hi=
 
26623
fi
 
26624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26625
fi
 
26626
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26627
# Binary search between lo and hi bounds.
 
26628
while test "x$ac_lo" != "x$ac_hi"; do
 
26629
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
26630
  cat >conftest.$ac_ext <<_ACEOF
 
26631
/* confdefs.h.  */
 
26632
_ACEOF
 
26633
cat confdefs.h >>conftest.$ac_ext
 
26634
cat >>conftest.$ac_ext <<_ACEOF
 
26635
/* end confdefs.h.  */
 
26636
$ac_includes_default
 
26637
int
 
26638
main ()
 
26639
{
 
26640
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
26641
test_array [0] = 0
 
26642
 
 
26643
  ;
 
26644
  return 0;
 
26645
}
 
26646
_ACEOF
 
26647
rm -f conftest.$ac_objext
 
26648
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26649
  (eval $ac_compile) 2>conftest.er1
 
26650
  ac_status=$?
 
26651
  grep -v '^ *+' conftest.er1 >conftest.err
 
26652
  rm -f conftest.er1
 
26653
  cat conftest.err >&5
 
26654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26655
  (exit $ac_status); } &&
 
26656
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26658
  (eval $ac_try) 2>&5
 
26659
  ac_status=$?
 
26660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26661
  (exit $ac_status); }; } &&
 
26662
         { ac_try='test -s conftest.$ac_objext'
 
26663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26664
  (eval $ac_try) 2>&5
 
26665
  ac_status=$?
 
26666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26667
  (exit $ac_status); }; }; then
 
26668
  ac_hi=$ac_mid
 
26669
else
 
26670
  echo "$as_me: failed program was:" >&5
 
26671
sed 's/^/| /' conftest.$ac_ext >&5
 
26672
 
 
26673
ac_lo=`expr '(' $ac_mid ')' + 1`
 
26674
fi
 
26675
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26676
done
 
26677
case $ac_lo in
 
26678
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
 
26679
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
26680
See \`config.log' for more details." >&5
 
26681
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
26682
See \`config.log' for more details." >&2;}
 
26683
   { (exit 1); exit 1; }; } ;;
 
26684
esac
 
26685
else
 
26686
  if test "$cross_compiling" = yes; then
 
26687
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
26688
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
26689
   { (exit 1); exit 1; }; }
 
26690
else
 
26691
  cat >conftest.$ac_ext <<_ACEOF
 
26692
/* confdefs.h.  */
 
26693
_ACEOF
 
26694
cat confdefs.h >>conftest.$ac_ext
 
26695
cat >>conftest.$ac_ext <<_ACEOF
 
26696
/* end confdefs.h.  */
 
26697
$ac_includes_default
 
26698
long longval () { return (long) (sizeof (unsigned long)); }
 
26699
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
 
26700
#include <stdio.h>
 
26701
#include <stdlib.h>
 
26702
int
 
26703
main ()
 
26704
{
 
26705
 
 
26706
  FILE *f = fopen ("conftest.val", "w");
 
26707
  if (! f)
 
26708
    exit (1);
 
26709
  if (((long) (sizeof (unsigned long))) < 0)
 
26710
    {
 
26711
      long i = longval ();
 
26712
      if (i != ((long) (sizeof (unsigned long))))
 
26713
        exit (1);
 
26714
      fprintf (f, "%ld\n", i);
 
26715
    }
 
26716
  else
 
26717
    {
 
26718
      unsigned long i = ulongval ();
 
26719
      if (i != ((long) (sizeof (unsigned long))))
 
26720
        exit (1);
 
26721
      fprintf (f, "%lu\n", i);
 
26722
    }
 
26723
  exit (ferror (f) || fclose (f) != 0);
 
26724
 
 
26725
  ;
 
26726
  return 0;
 
26727
}
 
26728
_ACEOF
 
26729
rm -f conftest$ac_exeext
 
26730
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26731
  (eval $ac_link) 2>&5
 
26732
  ac_status=$?
 
26733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26734
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26736
  (eval $ac_try) 2>&5
 
26737
  ac_status=$?
 
26738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26739
  (exit $ac_status); }; }; then
 
26740
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
 
26741
else
 
26742
  echo "$as_me: program exited with status $ac_status" >&5
 
26743
echo "$as_me: failed program was:" >&5
 
26744
sed 's/^/| /' conftest.$ac_ext >&5
 
26745
 
 
26746
( exit $ac_status )
 
26747
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
26748
See \`config.log' for more details." >&5
 
26749
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
26750
See \`config.log' for more details." >&2;}
 
26751
   { (exit 1); exit 1; }; }
 
26752
fi
 
26753
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26754
fi
 
26755
fi
 
26756
rm -f conftest.val
 
26757
else
 
26758
  ac_cv_sizeof_unsigned_long=0
 
26759
fi
 
26760
fi
 
26761
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
 
26762
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
 
26763
cat >>confdefs.h <<_ACEOF
 
26764
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
 
26765
_ACEOF
 
26766
 
 
26767
 
 
26768
 
 
26769
  echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
 
26770
echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6
 
26771
  cat >conftest.$ac_ext <<_ACEOF
 
26772
/* confdefs.h.  */
 
26773
_ACEOF
 
26774
cat confdefs.h >>conftest.$ac_ext
 
26775
cat >>conftest.$ac_ext <<_ACEOF
 
26776
/* end confdefs.h.  */
 
26777
 
 
26778
int
 
26779
main ()
 
26780
{
 
26781
 
 
26782
    #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
 
26783
       choke me
 
26784
    #endif
 
26785
 
 
26786
  ;
 
26787
  return 0;
 
26788
}
 
26789
_ACEOF
 
26790
rm -f conftest.$ac_objext
 
26791
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26792
  (eval $ac_compile) 2>conftest.er1
 
26793
  ac_status=$?
 
26794
  grep -v '^ *+' conftest.er1 >conftest.err
 
26795
  rm -f conftest.er1
 
26796
  cat conftest.err >&5
 
26797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26798
  (exit $ac_status); } &&
 
26799
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26801
  (eval $ac_try) 2>&5
 
26802
  ac_status=$?
 
26803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26804
  (exit $ac_status); }; } &&
 
26805
         { ac_try='test -s conftest.$ac_objext'
 
26806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26807
  (eval $ac_try) 2>&5
 
26808
  ac_status=$?
 
26809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26810
  (exit $ac_status); }; }; then
 
26811
  echo "$as_me:$LINENO: result: yes" >&5
 
26812
echo "${ECHO_T}yes" >&6
 
26813
else
 
26814
  echo "$as_me: failed program was:" >&5
 
26815
sed 's/^/| /' conftest.$ac_ext >&5
 
26816
 
 
26817
 
 
26818
      echo "$as_me:$LINENO: result: no" >&5
 
26819
echo "${ECHO_T}no" >&6
 
26820
      { { echo "$as_me:$LINENO: error:
 
26821
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
 
26822
       does not apply. Please mail kde-devel@kde.org with a description of your system!
 
26823
      " >&5
 
26824
echo "$as_me: error:
 
26825
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
 
26826
       does not apply. Please mail kde-devel@kde.org with a description of your system!
 
26827
      " >&2;}
 
26828
   { (exit 1); exit 1; }; }
 
26829
 
 
26830
fi
 
26831
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26832
 
 
26833
 
 
26834
# darwin needs this to initialize the environment
 
26835
 
 
26836
for ac_header in crt_externs.h
 
26837
do
 
26838
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
26839
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26840
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26841
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26842
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26843
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26844
fi
 
26845
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26846
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26847
else
 
26848
  # Is the header compilable?
 
26849
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
26850
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
26851
cat >conftest.$ac_ext <<_ACEOF
 
26852
/* confdefs.h.  */
 
26853
_ACEOF
 
26854
cat confdefs.h >>conftest.$ac_ext
 
26855
cat >>conftest.$ac_ext <<_ACEOF
 
26856
/* end confdefs.h.  */
 
26857
$ac_includes_default
 
26858
#include <$ac_header>
 
26859
_ACEOF
 
26860
rm -f conftest.$ac_objext
 
26861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26862
  (eval $ac_compile) 2>conftest.er1
 
26863
  ac_status=$?
 
26864
  grep -v '^ *+' conftest.er1 >conftest.err
 
26865
  rm -f conftest.er1
 
26866
  cat conftest.err >&5
 
26867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26868
  (exit $ac_status); } &&
 
26869
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26871
  (eval $ac_try) 2>&5
 
26872
  ac_status=$?
 
26873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26874
  (exit $ac_status); }; } &&
 
26875
         { ac_try='test -s conftest.$ac_objext'
 
26876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26877
  (eval $ac_try) 2>&5
 
26878
  ac_status=$?
 
26879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26880
  (exit $ac_status); }; }; then
 
26881
  ac_header_compiler=yes
 
26882
else
 
26883
  echo "$as_me: failed program was:" >&5
 
26884
sed 's/^/| /' conftest.$ac_ext >&5
 
26885
 
 
26886
ac_header_compiler=no
 
26887
fi
 
26888
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26889
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26890
echo "${ECHO_T}$ac_header_compiler" >&6
 
26891
 
 
26892
# Is the header present?
 
26893
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
26894
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
26895
cat >conftest.$ac_ext <<_ACEOF
 
26896
/* confdefs.h.  */
 
26897
_ACEOF
 
26898
cat confdefs.h >>conftest.$ac_ext
 
26899
cat >>conftest.$ac_ext <<_ACEOF
 
26900
/* end confdefs.h.  */
 
26901
#include <$ac_header>
 
26902
_ACEOF
 
26903
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
26904
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
26905
  ac_status=$?
 
26906
  grep -v '^ *+' conftest.er1 >conftest.err
 
26907
  rm -f conftest.er1
 
26908
  cat conftest.err >&5
 
26909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26910
  (exit $ac_status); } >/dev/null; then
 
26911
  if test -s conftest.err; then
 
26912
    ac_cpp_err=$ac_c_preproc_warn_flag
 
26913
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
26914
  else
 
26915
    ac_cpp_err=
 
26916
  fi
 
26917
else
 
26918
  ac_cpp_err=yes
 
26919
fi
 
26920
if test -z "$ac_cpp_err"; then
 
26921
  ac_header_preproc=yes
 
26922
else
 
26923
  echo "$as_me: failed program was:" >&5
 
26924
sed 's/^/| /' conftest.$ac_ext >&5
 
26925
 
 
26926
  ac_header_preproc=no
 
26927
fi
 
26928
rm -f conftest.err conftest.$ac_ext
 
26929
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26930
echo "${ECHO_T}$ac_header_preproc" >&6
 
26931
 
 
26932
# So?  What about this header?
 
26933
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26934
  yes:no: )
 
26935
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
26936
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26937
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
26938
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
26939
    ac_header_preproc=yes
 
26940
    ;;
 
26941
  no:yes:* )
 
26942
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
26943
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
26944
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
26945
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
26946
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
26947
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
26948
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
26949
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26950
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
26951
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
26952
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
26953
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
26954
    (
 
26955
      cat <<\_ASBOX
 
26956
## ------------------------------------------ ##
 
26957
## Report this to the AC_PACKAGE_NAME lists.  ##
 
26958
## ------------------------------------------ ##
 
26959
_ASBOX
 
26960
    ) |
 
26961
      sed "s/^/$as_me: WARNING:     /" >&2
 
26962
    ;;
 
26963
esac
 
26964
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26965
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26966
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26968
else
 
26969
  eval "$as_ac_Header=\$ac_header_preproc"
 
26970
fi
 
26971
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26972
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26973
 
 
26974
fi
 
26975
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
26976
  cat >>confdefs.h <<_ACEOF
 
26977
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26978
_ACEOF
 
26979
 
 
26980
fi
 
26981
 
 
26982
done
 
26983
 
 
26984
echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
 
26985
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
 
26986
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
 
26987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26988
else
 
26989
  cat >conftest.$ac_ext <<_ACEOF
 
26990
/* confdefs.h.  */
 
26991
_ACEOF
 
26992
cat confdefs.h >>conftest.$ac_ext
 
26993
cat >>conftest.$ac_ext <<_ACEOF
 
26994
/* end confdefs.h.  */
 
26995
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
 
26996
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
26997
#define _NSGetEnviron innocuous__NSGetEnviron
 
26998
 
 
26999
/* System header to define __stub macros and hopefully few prototypes,
 
27000
    which can conflict with char _NSGetEnviron (); below.
 
27001
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27002
    <limits.h> exists even on freestanding compilers.  */
 
27003
 
 
27004
#ifdef __STDC__
 
27005
# include <limits.h>
 
27006
#else
 
27007
# include <assert.h>
 
27008
#endif
 
27009
 
 
27010
#undef _NSGetEnviron
 
27011
 
 
27012
/* Override any gcc2 internal prototype to avoid an error.  */
 
27013
#ifdef __cplusplus
 
27014
extern "C"
 
27015
{
 
27016
#endif
 
27017
/* We use char because int might match the return type of a gcc2
 
27018
   builtin and then its argument prototype would still apply.  */
 
27019
char _NSGetEnviron ();
 
27020
/* The GNU C library defines this for functions which it implements
 
27021
    to always fail with ENOSYS.  Some functions are actually named
 
27022
    something starting with __ and the normal name is an alias.  */
 
27023
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
 
27024
choke me
 
27025
#else
 
27026
char (*f) () = _NSGetEnviron;
 
27027
#endif
 
27028
#ifdef __cplusplus
 
27029
}
 
27030
#endif
 
27031
 
 
27032
int
 
27033
main ()
 
27034
{
 
27035
return f != _NSGetEnviron;
 
27036
  ;
 
27037
  return 0;
 
27038
}
 
27039
_ACEOF
 
27040
rm -f conftest.$ac_objext conftest$ac_exeext
 
27041
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27042
  (eval $ac_link) 2>conftest.er1
 
27043
  ac_status=$?
 
27044
  grep -v '^ *+' conftest.er1 >conftest.err
 
27045
  rm -f conftest.er1
 
27046
  cat conftest.err >&5
 
27047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27048
  (exit $ac_status); } &&
 
27049
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27051
  (eval $ac_try) 2>&5
 
27052
  ac_status=$?
 
27053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27054
  (exit $ac_status); }; } &&
 
27055
         { ac_try='test -s conftest$ac_exeext'
 
27056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27057
  (eval $ac_try) 2>&5
 
27058
  ac_status=$?
 
27059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27060
  (exit $ac_status); }; }; then
 
27061
  ac_cv_func__NSGetEnviron=yes
 
27062
else
 
27063
  echo "$as_me: failed program was:" >&5
 
27064
sed 's/^/| /' conftest.$ac_ext >&5
 
27065
 
 
27066
ac_cv_func__NSGetEnviron=no
 
27067
fi
 
27068
rm -f conftest.err conftest.$ac_objext \
 
27069
      conftest$ac_exeext conftest.$ac_ext
 
27070
fi
 
27071
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
 
27072
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
 
27073
if test $ac_cv_func__NSGetEnviron = yes; then
 
27074
 
 
27075
cat >>confdefs.h <<\_ACEOF
 
27076
#define HAVE_NSGETENVIRON 1
 
27077
_ACEOF
 
27078
 
 
27079
fi
 
27080
 
 
27081
 
 
27082
 
 
27083
 
 
27084
 
 
27085
 
 
27086
 
20359
27087
 
20360
27088
 
20361
27089
 
20368
27096
  echo $ECHO_N "(cached) $ECHO_C" >&6
20369
27097
else
20370
27098
  cat >conftest.$ac_ext <<_ACEOF
20371
 
#line $LINENO "configure"
20372
27099
/* confdefs.h.  */
20373
27100
_ACEOF
20374
27101
cat confdefs.h >>conftest.$ac_ext
20375
27102
cat >>conftest.$ac_ext <<_ACEOF
20376
27103
/* end confdefs.h.  */
 
27104
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27105
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27106
#define $ac_func innocuous_$ac_func
 
27107
 
20377
27108
/* System header to define __stub macros and hopefully few prototypes,
20378
27109
    which can conflict with char $ac_func (); below.
20379
27110
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20380
27111
    <limits.h> exists even on freestanding compilers.  */
 
27112
 
20381
27113
#ifdef __STDC__
20382
27114
# include <limits.h>
20383
27115
#else
20384
27116
# include <assert.h>
20385
27117
#endif
 
27118
 
 
27119
#undef $ac_func
 
27120
 
20386
27121
/* Override any gcc2 internal prototype to avoid an error.  */
20387
27122
#ifdef __cplusplus
20388
27123
extern "C"
20413
27148
_ACEOF
20414
27149
rm -f conftest.$ac_objext conftest$ac_exeext
20415
27150
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20416
 
  (eval $ac_link) 2>&5
 
27151
  (eval $ac_link) 2>conftest.er1
20417
27152
  ac_status=$?
 
27153
  grep -v '^ *+' conftest.er1 >conftest.err
 
27154
  rm -f conftest.er1
 
27155
  cat conftest.err >&5
20418
27156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419
27157
  (exit $ac_status); } &&
20420
 
         { ac_try='test -s conftest$ac_exeext'
 
27158
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27160
  (eval $ac_try) 2>&5
 
27161
  ac_status=$?
 
27162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27163
  (exit $ac_status); }; } &&
 
27164
         { ac_try='test -s conftest$ac_exeext'
20421
27165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422
27166
  (eval $ac_try) 2>&5
20423
27167
  ac_status=$?
20430
27174
 
20431
27175
eval "$as_ac_var=no"
20432
27176
fi
20433
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
27177
rm -f conftest.err conftest.$ac_objext \
 
27178
      conftest$ac_exeext conftest.$ac_ext
20434
27179
fi
20435
27180
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20436
27181
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20468
27213
 
20469
27214
fi;
20470
27215
 
20471
 
if test "$kde_use_qt_emb" = "no"; then
 
27216
# Check whether --enable-mac or --disable-mac was given.
 
27217
if test "${enable_mac+set}" = set; then
 
27218
  enableval="$enable_mac"
 
27219
  kde_use_qt_mac=$enableval
 
27220
else
 
27221
  kde_use_qt_mac=no
 
27222
 
 
27223
fi;
 
27224
 
 
27225
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
20472
27226
 
20473
27227
echo "$as_me:$LINENO: checking for X" >&5
20474
27228
echo $ECHO_N "checking for X... $ECHO_C" >&6
20475
27229
 
20476
 
 
20477
 
ac_ext=c
20478
 
ac_cpp='$CPP $CPPFLAGS'
20479
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20480
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20481
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20482
 
 
20483
27230
if test "${kde_cv_have_x+set}" = set; then
20484
27231
  echo $ECHO_N "(cached) $ECHO_C" >&6
20485
27232
else
20508
27255
 
20509
27256
  # First, try using that file with no special directory specified.
20510
27257
cat >conftest.$ac_ext <<_ACEOF
20511
 
#line $LINENO "configure"
20512
27258
/* confdefs.h.  */
20513
27259
_ACEOF
20514
27260
cat confdefs.h >>conftest.$ac_ext
20526
27272
  (exit $ac_status); } >/dev/null; then
20527
27273
  if test -s conftest.err; then
20528
27274
    ac_cpp_err=$ac_c_preproc_warn_flag
 
27275
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20529
27276
  else
20530
27277
    ac_cpp_err=
20531
27278
  fi
20597
27344
  ac_save_LIBS="$LIBS"
20598
27345
  LIBS="-l$x_direct_test_library $LIBS"
20599
27346
cat >conftest.$ac_ext <<_ACEOF
20600
 
#line $LINENO "configure"
20601
27347
/* confdefs.h.  */
20602
27348
_ACEOF
20603
27349
cat confdefs.h >>conftest.$ac_ext
20614
27360
_ACEOF
20615
27361
rm -f conftest.$ac_objext conftest$ac_exeext
20616
27362
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20617
 
  (eval $ac_link) 2>&5
 
27363
  (eval $ac_link) 2>conftest.er1
20618
27364
  ac_status=$?
 
27365
  grep -v '^ *+' conftest.er1 >conftest.err
 
27366
  rm -f conftest.er1
 
27367
  cat conftest.err >&5
20619
27368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620
27369
  (exit $ac_status); } &&
20621
 
         { ac_try='test -s conftest$ac_exeext'
 
27370
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27372
  (eval $ac_try) 2>&5
 
27373
  ac_status=$?
 
27374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27375
  (exit $ac_status); }; } &&
 
27376
         { ac_try='test -s conftest$ac_exeext'
20622
27377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623
27378
  (eval $ac_try) 2>&5
20624
27379
  ac_status=$?
20679
27434
  done
20680
27435
done
20681
27436
fi
20682
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
27437
rm -f conftest.err conftest.$ac_objext \
 
27438
      conftest$ac_exeext conftest.$ac_ext
20683
27439
fi # $ac_x_libraries = NO
20684
27440
 
20685
27441
case "$host" in
20702
27458
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20703
27459
    for ac_extension in a so sl; do
20704
27460
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20705
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
20706
 
        ac_im_usrlibdir=$ac_im_libdir; break
 
27461
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
27462
        ac_im_usrlibdir=$ac_im_libdir; break
20707
27463
      fi
20708
27464
    done
20709
27465
    # Screen out bogus values from the imake configuration.  They are
20787
27543
all_includes="$X_INCLUDES"
20788
27544
all_libraries="$X_LDFLAGS"
20789
27545
 
20790
 
 
20791
 
 
20792
 
 
20793
 
 
20794
 
 
20795
27546
# Check for libraries that X11R6 Xt/Xaw programs need.
20796
27547
ac_save_LDFLAGS="$LDFLAGS"
20797
27548
LDFLAGS="$LDFLAGS $X_LDFLAGS"
20809
27560
  ac_check_lib_save_LIBS=$LIBS
20810
27561
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20811
27562
cat >conftest.$ac_ext <<_ACEOF
20812
 
#line $LINENO "configure"
20813
27563
/* confdefs.h.  */
20814
27564
_ACEOF
20815
27565
cat confdefs.h >>conftest.$ac_ext
20833
27583
_ACEOF
20834
27584
rm -f conftest.$ac_objext conftest$ac_exeext
20835
27585
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20836
 
  (eval $ac_link) 2>&5
 
27586
  (eval $ac_link) 2>conftest.er1
20837
27587
  ac_status=$?
 
27588
  grep -v '^ *+' conftest.er1 >conftest.err
 
27589
  rm -f conftest.er1
 
27590
  cat conftest.err >&5
20838
27591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839
27592
  (exit $ac_status); } &&
20840
 
         { ac_try='test -s conftest$ac_exeext'
 
27593
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27595
  (eval $ac_try) 2>&5
 
27596
  ac_status=$?
 
27597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27598
  (exit $ac_status); }; } &&
 
27599
         { ac_try='test -s conftest$ac_exeext'
20841
27600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842
27601
  (eval $ac_try) 2>&5
20843
27602
  ac_status=$?
20850
27609
 
20851
27610
ac_cv_lib_ICE_IceConnectionNumber=no
20852
27611
fi
20853
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
27612
rm -f conftest.err conftest.$ac_objext \
 
27613
      conftest$ac_exeext conftest.$ac_ext
20854
27614
LIBS=$ac_check_lib_save_LIBS
20855
27615
fi
20856
27616
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20859
27619
  LIBSM="-lSM -lICE"
20860
27620
fi
20861
27621
 
20862
 
 
20863
27622
LDFLAGS="$ac_save_LDFLAGS"
20864
27623
 
20865
 
 
20866
 
 
20867
27624
LIB_X11='-lX11 $(LIBSOCKET)'
20868
27625
 
20869
 
 
20870
27626
echo "$as_me:$LINENO: checking for libXext" >&5
20871
27627
echo $ECHO_N "checking for libXext... $ECHO_C" >&6
20872
27628
if test "${kde_cv_have_libXext+set}" = set; then
20880
27636
LIBS="-lXext -lX11 $LIBSOCKET"
20881
27637
 
20882
27638
cat >conftest.$ac_ext <<_ACEOF
20883
 
#line $LINENO "configure"
20884
27639
/* confdefs.h.  */
20885
27640
_ACEOF
20886
27641
cat confdefs.h >>conftest.$ac_ext
20904
27659
_ACEOF
20905
27660
rm -f conftest.$ac_objext conftest$ac_exeext
20906
27661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20907
 
  (eval $ac_link) 2>&5
 
27662
  (eval $ac_link) 2>conftest.er1
20908
27663
  ac_status=$?
 
27664
  grep -v '^ *+' conftest.er1 >conftest.err
 
27665
  rm -f conftest.er1
 
27666
  cat conftest.err >&5
20909
27667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910
27668
  (exit $ac_status); } &&
20911
 
         { ac_try='test -s conftest$ac_exeext'
 
27669
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27671
  (eval $ac_try) 2>&5
 
27672
  ac_status=$?
 
27673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27674
  (exit $ac_status); }; } &&
 
27675
         { ac_try='test -s conftest$ac_exeext'
20912
27676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913
27677
  (eval $ac_try) 2>&5
20914
27678
  ac_status=$?
20922
27686
kde_cv_have_libXext=no
20923
27687
 
20924
27688
fi
20925
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
27689
rm -f conftest.err conftest.$ac_objext \
 
27690
      conftest$ac_exeext conftest.$ac_ext
20926
27691
 
20927
27692
LDFLAGS=$kde_ldflags_safe
20928
27693
LIBS=$kde_libs_safe
20943
27708
   { (exit 1); exit 1; }; }
20944
27709
fi
20945
27710
 
20946
 
echo "$as_me:$LINENO: checking for Xinerama" >&5
20947
 
echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
20948
 
 
20949
 
 
20950
 
# Check whether --with-xinerama or --without-xinerama was given.
20951
 
if test "${with_xinerama+set}" = set; then
20952
 
  withval="$with_xinerama"
20953
 
 
20954
 
    no_xinerama=no
20955
 
 
20956
 
else
20957
 
 
20958
 
    no_xinerama=yes
20959
 
 
20960
 
 
20961
 
fi;
20962
 
 
20963
 
kde_save_LDFLAGS="$LDFLAGS"
20964
 
kde_save_CFLAGS="$CFLAGS"
20965
 
kde_save_LIBS="$LIBS"
20966
 
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
20967
 
CFLAGS="$CFLAGS -I$x_includes"
20968
 
LIBS="-lXinerama -lXext"
20969
 
 
20970
 
if test "x$no_xinerama" = "xno"; then
20971
 
 
20972
 
  if test "${ac_cv_have_xinerama+set}" = set; then
20973
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20974
 
else
20975
 
 
20976
 
          cat >conftest.$ac_ext <<_ACEOF
20977
 
#line $LINENO "configure"
20978
 
/* confdefs.h.  */
20979
 
_ACEOF
20980
 
cat confdefs.h >>conftest.$ac_ext
20981
 
cat >>conftest.$ac_ext <<_ACEOF
20982
 
/* end confdefs.h.  */
20983
 
#include <X11/Xlib.h>
20984
 
                        #include <X11/extensions/Xinerama.h>
20985
 
int
20986
 
main ()
20987
 
{
20988
 
XineramaIsActive(NULL);
20989
 
  ;
20990
 
  return 0;
20991
 
}
20992
 
_ACEOF
20993
 
rm -f conftest.$ac_objext conftest$ac_exeext
20994
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20995
 
  (eval $ac_link) 2>&5
20996
 
  ac_status=$?
20997
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998
 
  (exit $ac_status); } &&
20999
 
         { ac_try='test -s conftest$ac_exeext'
21000
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001
 
  (eval $ac_try) 2>&5
21002
 
  ac_status=$?
21003
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004
 
  (exit $ac_status); }; }; then
21005
 
  ac_cv_have_xinerama="yes"
21006
 
else
21007
 
  echo "$as_me: failed program was:" >&5
21008
 
sed 's/^/| /' conftest.$ac_ext >&5
21009
 
 
21010
 
ac_cv_have_xinerama="no"
21011
 
fi
21012
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21013
 
 
21014
 
fi
21015
 
 
21016
 
else
21017
 
  ac_cv_have_xinerama=no;
21018
 
fi
21019
 
 
21020
 
echo "$as_me:$LINENO: result: $ac_cv_have_xinerama" >&5
21021
 
echo "${ECHO_T}$ac_cv_have_xinerama" >&6
21022
 
 
21023
 
LIBXINERAMA=""
21024
 
 
21025
 
if test "$ac_cv_have_xinerama" = "yes"; then
21026
 
 
21027
 
cat >>confdefs.h <<\_ACEOF
21028
 
#define HAVE_XINERAMA 1
21029
 
_ACEOF
21030
 
 
21031
 
  LIBXINERAMA="-lXinerama"
21032
 
fi
21033
 
 
21034
 
 
21035
 
 
21036
 
LDFLAGS="$kde_save_LDFLAGS"
21037
 
CFLAGS="$kde_save_CFLAGS"
21038
 
LIBS="$kde_save_LIBS"
21039
 
 
21040
27711
LIB_XEXT="-lXext"
21041
27712
QTE_NORTTI=""
21042
27713
 
21043
 
else
 
27714
elif test "$kde_use_qt_emb" = "yes"; then
21044
27715
    CPPFLAGS=-DQWS
21045
27716
  CXXFLAGS="$CXXFLAGS -fno-rtti"
21046
27717
  QTE_NORTTI="-fno-rtti -DQWS"
21047
27718
  X_PRE_LIBS=""
21048
27719
  LIB_X11=""
21049
27720
  LIB_XEXT=""
21050
 
  LIBSM=""
21051
 
  X_INCLUDES=""
21052
 
  X_LDFLAGS=""
21053
 
  x_includes=""
21054
 
  x_libraries=""
21055
 
 
21056
 
 
21057
 
 
21058
 
 
21059
 
 
21060
 
 
21061
 
 
21062
 
fi
21063
 
 
21064
 
 
21065
 
 
21066
 
 
21067
 
ac_ext=c
21068
 
ac_cpp='$CPP $CPPFLAGS'
21069
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21070
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21071
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21072
 
 
21073
 
 
21074
 
 
21075
 
 
21076
 
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
27721
  LIB_XRENDER=""
 
27722
  LIBSM=""
 
27723
  X_INCLUDES=""
 
27724
  X_LDFLAGS=""
 
27725
  x_includes=""
 
27726
  x_libraries=""
 
27727
elif test "$kde_use_qt_mac" = "yes"; then
 
27728
      CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
 
27729
  CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
 
27730
  X_PRE_LIBS=""
 
27731
  LIB_X11=""
 
27732
  LIB_XEXT=""
 
27733
  LIB_XRENDER=""
 
27734
  LIBSM=""
 
27735
  X_INCLUDES=""
 
27736
  X_LDFLAGS=""
 
27737
  x_includes=""
 
27738
  x_libraries=""
 
27739
fi
 
27740
 
 
27741
 
 
27742
 
 
27743
 
 
27744
 
 
27745
 
 
27746
 
 
27747
 
 
27748
 
 
27749
 
 
27750
 
 
27751
 
 
27752
 
 
27753
                LIBPTHREAD=""
 
27754
 
 
27755
  if test -n "$PTHREAD_LIBS"; then
 
27756
    if test "x$PTHREAD_LIBS" = "x-pthread" ; then
 
27757
      LIBPTHREAD="PTHREAD"
 
27758
    else
 
27759
      PTHREAD_LIBS_save="$PTHREAD_LIBS"
 
27760
      PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
 
27761
      echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
 
27762
echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6
 
27763
 
 
27764
     kde_save_LDFLAGS="$LDFLAGS"
 
27765
          kde_save_LIBS="$LIBS"
 
27766
     LDFLAGS="$LDFLAGS $all_libraries"
 
27767
     case $host_os in
 
27768
      aix*) LDFLAGS="-brtl $LDFLAGS"
 
27769
        test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
 
27770
        ;;
 
27771
     esac
 
27772
     as_ac_Lib=`echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
 
27773
echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
 
27774
echo $ECHO_N "checking for pthread_create in -l$PTHREAD_LIBS... $ECHO_C" >&6
 
27775
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
27776
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27777
else
 
27778
  ac_check_lib_save_LIBS=$LIBS
 
27779
LIBS="-l$PTHREAD_LIBS  $LIBS"
 
27780
cat >conftest.$ac_ext <<_ACEOF
 
27781
/* confdefs.h.  */
 
27782
_ACEOF
 
27783
cat confdefs.h >>conftest.$ac_ext
 
27784
cat >>conftest.$ac_ext <<_ACEOF
 
27785
/* end confdefs.h.  */
 
27786
 
 
27787
/* Override any gcc2 internal prototype to avoid an error.  */
 
27788
#ifdef __cplusplus
 
27789
extern "C"
 
27790
#endif
 
27791
/* We use char because int might match the return type of a gcc2
 
27792
   builtin and then its argument prototype would still apply.  */
 
27793
char pthread_create ();
 
27794
int
 
27795
main ()
 
27796
{
 
27797
pthread_create ();
 
27798
  ;
 
27799
  return 0;
 
27800
}
 
27801
_ACEOF
 
27802
rm -f conftest.$ac_objext conftest$ac_exeext
 
27803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27804
  (eval $ac_link) 2>conftest.er1
 
27805
  ac_status=$?
 
27806
  grep -v '^ *+' conftest.er1 >conftest.err
 
27807
  rm -f conftest.er1
 
27808
  cat conftest.err >&5
 
27809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27810
  (exit $ac_status); } &&
 
27811
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27813
  (eval $ac_try) 2>&5
 
27814
  ac_status=$?
 
27815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27816
  (exit $ac_status); }; } &&
 
27817
         { ac_try='test -s conftest$ac_exeext'
 
27818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27819
  (eval $ac_try) 2>&5
 
27820
  ac_status=$?
 
27821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27822
  (exit $ac_status); }; }; then
 
27823
  eval "$as_ac_Lib=yes"
 
27824
else
 
27825
  echo "$as_me: failed program was:" >&5
 
27826
sed 's/^/| /' conftest.$ac_ext >&5
 
27827
 
 
27828
eval "$as_ac_Lib=no"
 
27829
fi
 
27830
rm -f conftest.err conftest.$ac_objext \
 
27831
      conftest$ac_exeext conftest.$ac_ext
 
27832
LIBS=$ac_check_lib_save_LIBS
 
27833
fi
 
27834
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
27835
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
27836
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
27837
  LIBPTHREAD="$PTHREAD_LIBS_save"
 
27838
fi
 
27839
 
 
27840
     LDFLAGS="$kde_save_LDFLAGS"
 
27841
     LIBS="$kde_save_LIBS"
 
27842
 
 
27843
      PTHREAD_LIBS="$PTHREAD_LIBS_save"
 
27844
    fi
 
27845
  fi
 
27846
 
 
27847
    if test -z "$LIBPTHREAD"; then
 
27848
    echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21077
27849
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
21078
27850
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21079
27851
  echo $ECHO_N "(cached) $ECHO_C" >&6
21081
27853
  ac_check_lib_save_LIBS=$LIBS
21082
27854
LIBS="-lpthread  $LIBS"
21083
27855
cat >conftest.$ac_ext <<_ACEOF
21084
 
#line $LINENO "configure"
21085
27856
/* confdefs.h.  */
21086
27857
_ACEOF
21087
27858
cat confdefs.h >>conftest.$ac_ext
21105
27876
_ACEOF
21106
27877
rm -f conftest.$ac_objext conftest$ac_exeext
21107
27878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21108
 
  (eval $ac_link) 2>&5
 
27879
  (eval $ac_link) 2>conftest.er1
21109
27880
  ac_status=$?
 
27881
  grep -v '^ *+' conftest.er1 >conftest.err
 
27882
  rm -f conftest.er1
 
27883
  cat conftest.err >&5
21110
27884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111
27885
  (exit $ac_status); } &&
21112
 
         { ac_try='test -s conftest$ac_exeext'
 
27886
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27888
  (eval $ac_try) 2>&5
 
27889
  ac_status=$?
 
27890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27891
  (exit $ac_status); }; } &&
 
27892
         { ac_try='test -s conftest$ac_exeext'
21113
27893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114
27894
  (eval $ac_try) 2>&5
21115
27895
  ac_status=$?
21122
27902
 
21123
27903
ac_cv_lib_pthread_pthread_create=no
21124
27904
fi
21125
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
27905
rm -f conftest.err conftest.$ac_objext \
 
27906
      conftest$ac_exeext conftest.$ac_ext
21126
27907
LIBS=$ac_check_lib_save_LIBS
21127
27908
fi
21128
27909
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21131
27912
  LIBPTHREAD="-lpthread"
21132
27913
fi
21133
27914
 
21134
 
 
21135
 
 
21136
 
 
21137
 
    # Check whether --enable-kernel-threads or --disable-kernel-threads was given.
21138
 
if test "${enable_kernel_threads+set}" = set; then
21139
 
  enableval="$enable_kernel_threads"
21140
 
  kde_use_kernthreads=$enableval
21141
 
else
21142
 
  kde_use_kernthreads=no
21143
 
fi;
21144
 
 
21145
 
    if test "$kde_use_kernthreads" = "yes"; then
21146
 
      ac_save_CXXFLAGS="$CXXFLAGS"
21147
 
      ac_save_CFLAGS="$CFLAGS"
21148
 
      CXXFLAGS="-I/usr/local/include/pthread/linuxthreads $CXXFLAGS"
21149
 
      CFLAGS="-I/usr/local/include/pthread/linuxthreads $CFLAGS"
21150
 
 
21151
 
for ac_header in pthread/linuxthreads/pthread.h
21152
 
do
21153
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21154
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21155
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21156
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21157
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21158
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21159
 
fi
21160
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21161
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21162
 
else
21163
 
  # Is the header compilable?
21164
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21165
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21166
 
cat >conftest.$ac_ext <<_ACEOF
21167
 
#line $LINENO "configure"
21168
 
/* confdefs.h.  */
21169
 
_ACEOF
21170
 
cat confdefs.h >>conftest.$ac_ext
21171
 
cat >>conftest.$ac_ext <<_ACEOF
21172
 
/* end confdefs.h.  */
21173
 
$ac_includes_default
21174
 
#include <$ac_header>
21175
 
_ACEOF
21176
 
rm -f conftest.$ac_objext
21177
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21178
 
  (eval $ac_compile) 2>&5
21179
 
  ac_status=$?
21180
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181
 
  (exit $ac_status); } &&
21182
 
         { ac_try='test -s conftest.$ac_objext'
21183
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184
 
  (eval $ac_try) 2>&5
21185
 
  ac_status=$?
21186
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187
 
  (exit $ac_status); }; }; then
21188
 
  ac_header_compiler=yes
21189
 
else
21190
 
  echo "$as_me: failed program was:" >&5
21191
 
sed 's/^/| /' conftest.$ac_ext >&5
21192
 
 
21193
 
ac_header_compiler=no
21194
 
fi
21195
 
rm -f conftest.$ac_objext conftest.$ac_ext
21196
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21197
 
echo "${ECHO_T}$ac_header_compiler" >&6
21198
 
 
21199
 
# Is the header present?
21200
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21201
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21202
 
cat >conftest.$ac_ext <<_ACEOF
21203
 
#line $LINENO "configure"
21204
 
/* confdefs.h.  */
21205
 
_ACEOF
21206
 
cat confdefs.h >>conftest.$ac_ext
21207
 
cat >>conftest.$ac_ext <<_ACEOF
21208
 
/* end confdefs.h.  */
21209
 
#include <$ac_header>
21210
 
_ACEOF
21211
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21212
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21213
 
  ac_status=$?
21214
 
  grep -v '^ *+' conftest.er1 >conftest.err
21215
 
  rm -f conftest.er1
21216
 
  cat conftest.err >&5
21217
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218
 
  (exit $ac_status); } >/dev/null; then
21219
 
  if test -s conftest.err; then
21220
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21221
 
  else
21222
 
    ac_cpp_err=
21223
27915
  fi
21224
 
else
21225
 
  ac_cpp_err=yes
21226
 
fi
21227
 
if test -z "$ac_cpp_err"; then
21228
 
  ac_header_preproc=yes
21229
 
else
21230
 
  echo "$as_me: failed program was:" >&5
21231
 
sed 's/^/| /' conftest.$ac_ext >&5
21232
 
 
21233
 
  ac_header_preproc=no
21234
 
fi
21235
 
rm -f conftest.err conftest.$ac_ext
21236
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21237
 
echo "${ECHO_T}$ac_header_preproc" >&6
21238
 
 
21239
 
# So?  What about this header?
21240
 
case $ac_header_compiler:$ac_header_preproc in
21241
 
  yes:no )
21242
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21243
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21244
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21245
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21246
 
    (
21247
 
      cat <<\_ASBOX
21248
 
## ------------------------------------ ##
21249
 
## Report this to bug-autoconf@gnu.org. ##
21250
 
## ------------------------------------ ##
21251
 
_ASBOX
21252
 
    ) |
21253
 
      sed "s/^/$as_me: WARNING:     /" >&2
21254
 
    ;;
21255
 
  no:yes )
21256
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21257
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21258
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21259
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21260
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21261
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21262
 
    (
21263
 
      cat <<\_ASBOX
21264
 
## ------------------------------------ ##
21265
 
## Report this to bug-autoconf@gnu.org. ##
21266
 
## ------------------------------------ ##
21267
 
_ASBOX
21268
 
    ) |
21269
 
      sed "s/^/$as_me: WARNING:     /" >&2
21270
 
    ;;
21271
 
esac
21272
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
21273
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21274
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21275
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21276
 
else
21277
 
  eval "$as_ac_Header=$ac_header_preproc"
21278
 
fi
21279
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21280
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21281
 
 
21282
 
fi
21283
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21284
 
  cat >>confdefs.h <<_ACEOF
21285
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21286
 
_ACEOF
21287
 
 
21288
 
fi
21289
 
 
21290
 
done
21291
 
 
21292
 
      CXXFLAGS="$ac_save_CXXFLAGS"
21293
 
      CFLAGS="$ac_save_CFLAGS"
21294
 
      if test "$ac_cv_header_pthread_linuxthreads_pthread_h" = "no"; then
21295
 
        kde_use_kernthreads=no
21296
 
      else
21297
 
                echo "$as_me:$LINENO: checking for pthread_join in -llthread" >&5
21298
 
echo $ECHO_N "checking for pthread_join in -llthread... $ECHO_C" >&6
21299
 
if test "${ac_cv_lib_lthread_pthread_join+set}" = set; then
21300
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21301
 
else
21302
 
  ac_check_lib_save_LIBS=$LIBS
21303
 
LIBS="-llthread  $LIBS"
21304
 
cat >conftest.$ac_ext <<_ACEOF
21305
 
#line $LINENO "configure"
 
27916
 
 
27917
    if test -z "$LIBPTHREAD" ; then
 
27918
    echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
27919
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
 
27920
    kde_safe_libs=$LIBS
 
27921
    LIBS="$LIBS -lpthread"
 
27922
    cat >conftest.$ac_ext <<_ACEOF
21306
27923
/* confdefs.h.  */
21307
27924
_ACEOF
21308
27925
cat confdefs.h >>conftest.$ac_ext
21309
27926
cat >>conftest.$ac_ext <<_ACEOF
21310
27927
/* end confdefs.h.  */
21311
 
 
21312
 
/* Override any gcc2 internal prototype to avoid an error.  */
21313
 
#ifdef __cplusplus
21314
 
extern "C"
21315
 
#endif
21316
 
/* We use char because int might match the return type of a gcc2
21317
 
   builtin and then its argument prototype would still apply.  */
21318
 
char pthread_join ();
 
27928
#include <pthread.h>
21319
27929
int
21320
27930
main ()
21321
27931
{
21322
 
pthread_join ();
 
27932
(void)pthread_create(0,0,0,0);
21323
27933
  ;
21324
27934
  return 0;
21325
27935
}
21326
27936
_ACEOF
21327
27937
rm -f conftest.$ac_objext conftest$ac_exeext
21328
27938
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21329
 
  (eval $ac_link) 2>&5
 
27939
  (eval $ac_link) 2>conftest.er1
21330
27940
  ac_status=$?
 
27941
  grep -v '^ *+' conftest.er1 >conftest.err
 
27942
  rm -f conftest.er1
 
27943
  cat conftest.err >&5
21331
27944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332
27945
  (exit $ac_status); } &&
21333
 
         { ac_try='test -s conftest$ac_exeext'
 
27946
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27948
  (eval $ac_try) 2>&5
 
27949
  ac_status=$?
 
27950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27951
  (exit $ac_status); }; } &&
 
27952
         { ac_try='test -s conftest$ac_exeext'
21334
27953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335
27954
  (eval $ac_try) 2>&5
21336
27955
  ac_status=$?
21337
27956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338
27957
  (exit $ac_status); }; }; then
21339
 
  ac_cv_lib_lthread_pthread_join=yes
 
27958
 
 
27959
        echo "$as_me:$LINENO: result: yes" >&5
 
27960
echo "${ECHO_T}yes" >&6
 
27961
        LIBPTHREAD="-lpthread"
21340
27962
else
21341
27963
  echo "$as_me: failed program was:" >&5
21342
27964
sed 's/^/| /' conftest.$ac_ext >&5
21343
27965
 
21344
 
ac_cv_lib_lthread_pthread_join=no
21345
 
fi
21346
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21347
 
LIBS=$ac_check_lib_save_LIBS
21348
 
fi
21349
 
echo "$as_me:$LINENO: result: $ac_cv_lib_lthread_pthread_join" >&5
21350
 
echo "${ECHO_T}$ac_cv_lib_lthread_pthread_join" >&6
21351
 
if test $ac_cv_lib_lthread_pthread_join = yes; then
21352
 
  LIBPTHREAD="-llthread -llgcc_r"
21353
 
fi
21354
 
         if test "x$LIBPTHREAD" = "x"; then
21355
 
          kde_use_kernthreads=no
21356
 
        else
21357
 
          USE_THREADS="-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads"
21358
 
        fi
21359
 
      fi
21360
 
    else
 
27966
 
 
27967
        echo "$as_me:$LINENO: result: no" >&5
 
27968
echo "${ECHO_T}no" >&6
 
27969
fi
 
27970
rm -f conftest.err conftest.$ac_objext \
 
27971
      conftest$ac_exeext conftest.$ac_ext
 
27972
    LIBS=$kde_safe_libs
 
27973
  fi
 
27974
 
 
27975
    if test "x$LIBPTHREAD" = "xPTHREAD" ; then
 
27976
    LIBPTHREAD=""
 
27977
  fi
 
27978
 
 
27979
 
 
27980
 
 
27981
 
21361
27982
      USE_THREADS=""
21362
27983
      if test -z "$LIBPTHREAD"; then
21363
27984
 
21364
27985
echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
21365
27986
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6
21366
 
kde_cache=`echo pthread | sed 'y% .=/+-%____p_%'`
 
27987
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
21367
27988
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
21368
27989
  echo $ECHO_N "(cached) $ECHO_C" >&6
21369
27990
else
21382
28003
  save_CXXFLAGS="$CXXFLAGS"
21383
28004
  CXXFLAGS="$CXXFLAGS -pthread"
21384
28005
  cat >conftest.$ac_ext <<_ACEOF
21385
 
#line $LINENO "configure"
21386
28006
/* confdefs.h.  */
21387
28007
_ACEOF
21388
28008
cat confdefs.h >>conftest.$ac_ext
21399
28019
_ACEOF
21400
28020
rm -f conftest.$ac_objext conftest$ac_exeext
21401
28021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21402
 
  (eval $ac_link) 2>&5
 
28022
  (eval $ac_link) 2>conftest.er1
21403
28023
  ac_status=$?
 
28024
  grep -v '^ *+' conftest.er1 >conftest.err
 
28025
  rm -f conftest.er1
 
28026
  cat conftest.err >&5
21404
28027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405
28028
  (exit $ac_status); } &&
21406
 
         { ac_try='test -s conftest$ac_exeext'
 
28029
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
28030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28031
  (eval $ac_try) 2>&5
 
28032
  ac_status=$?
 
28033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28034
  (exit $ac_status); }; } &&
 
28035
         { ac_try='test -s conftest$ac_exeext'
21407
28036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408
28037
  (eval $ac_try) 2>&5
21409
28038
  ac_status=$?
21415
28044
sed 's/^/| /' conftest.$ac_ext >&5
21416
28045
 
21417
28046
fi
21418
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
28047
rm -f conftest.err conftest.$ac_objext \
 
28048
      conftest$ac_exeext conftest.$ac_ext
21419
28049
  CXXFLAGS="$save_CXXFLAGS"
21420
28050
  ac_ext=c
21421
28051
ac_cpp='$CPP $CPPFLAGS'
21430
28060
 echo "$as_me:$LINENO: result: yes" >&5
21431
28061
echo "${ECHO_T}yes" >&6
21432
28062
 :
21433
 
 USE_THREADS="-pthread"
 
28063
 USE_THREADS="-D_THREAD_SAFE -pthread"
21434
28064
else
21435
28065
 echo "$as_me:$LINENO: result: no" >&5
21436
28066
echo "${ECHO_T}no" >&6
21439
28069
fi
21440
28070
 
21441
28071
      fi
21442
 
    fi
21443
28072
 
21444
28073
 
21445
28074
 
21448
28077
 
21449
28078
echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
21450
28079
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6
21451
 
kde_cache=`echo mt | sed 'y% .=/+-%____p_%'`
 
28080
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
21452
28081
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
21453
28082
  echo $ECHO_N "(cached) $ECHO_C" >&6
21454
28083
else
21467
28096
  save_CXXFLAGS="$CXXFLAGS"
21468
28097
  CXXFLAGS="$CXXFLAGS -mt"
21469
28098
  cat >conftest.$ac_ext <<_ACEOF
21470
 
#line $LINENO "configure"
21471
28099
/* confdefs.h.  */
21472
28100
_ACEOF
21473
28101
cat confdefs.h >>conftest.$ac_ext
21484
28112
_ACEOF
21485
28113
rm -f conftest.$ac_objext conftest$ac_exeext
21486
28114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21487
 
  (eval $ac_link) 2>&5
 
28115
  (eval $ac_link) 2>conftest.er1
21488
28116
  ac_status=$?
 
28117
  grep -v '^ *+' conftest.er1 >conftest.err
 
28118
  rm -f conftest.er1
 
28119
  cat conftest.err >&5
21489
28120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490
28121
  (exit $ac_status); } &&
21491
 
         { ac_try='test -s conftest$ac_exeext'
 
28122
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
28123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28124
  (eval $ac_try) 2>&5
 
28125
  ac_status=$?
 
28126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28127
  (exit $ac_status); }; } &&
 
28128
         { ac_try='test -s conftest$ac_exeext'
21492
28129
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493
28130
  (eval $ac_try) 2>&5
21494
28131
  ac_status=$?
21500
28137
sed 's/^/| /' conftest.$ac_ext >&5
21501
28138
 
21502
28139
fi
21503
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
28140
rm -f conftest.err conftest.$ac_objext \
 
28141
      conftest$ac_exeext conftest.$ac_ext
21504
28142
  CXXFLAGS="$save_CXXFLAGS"
21505
28143
  ac_ext=c
21506
28144
ac_cpp='$CPP $CPPFLAGS'
21526
28164
                CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
21527
28165
                ;;
21528
28166
        freebsd*)
21529
 
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
 
28167
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
21530
28168
                ;;
21531
28169
        aix*)
21532
28170
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
21618
28256
  echo $ECHO_N "(cached) $ECHO_C" >&6
21619
28257
else
21620
28258
 
21621
 
ac_ext=c
21622
 
ac_cpp='$CPP $CPPFLAGS'
21623
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21624
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21625
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21626
 
 
21627
28259
kde_save_LIBS="$LIBS"
21628
28260
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
21629
28261
kde_save_CFLAGS="$CFLAGS"
21630
28262
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
21631
28263
cat >conftest.$ac_ext <<_ACEOF
21632
 
#line $LINENO "configure"
21633
28264
/* confdefs.h.  */
21634
28265
_ACEOF
21635
28266
cat confdefs.h >>conftest.$ac_ext
21641
28272
int
21642
28273
main ()
21643
28274
{
21644
 
return (zlibVersion() == ZLIB_VERSION);
 
28275
 
 
28276
  char buf[42];
 
28277
  gzFile f = (gzFile) 0;
 
28278
  /* this would segfault.. but we only link, don't run */
 
28279
  (void) gzgets(f, buf, sizeof(buf));
 
28280
 
 
28281
  return (zlibVersion() == ZLIB_VERSION);
 
28282
 
21645
28283
  ;
21646
28284
  return 0;
21647
28285
}
21648
28286
_ACEOF
21649
28287
rm -f conftest.$ac_objext conftest$ac_exeext
21650
28288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21651
 
  (eval $ac_link) 2>&5
 
28289
  (eval $ac_link) 2>conftest.er1
21652
28290
  ac_status=$?
 
28291
  grep -v '^ *+' conftest.er1 >conftest.err
 
28292
  rm -f conftest.er1
 
28293
  cat conftest.err >&5
21653
28294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654
28295
  (exit $ac_status); } &&
21655
 
         { ac_try='test -s conftest$ac_exeext'
 
28296
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28298
  (eval $ac_try) 2>&5
 
28299
  ac_status=$?
 
28300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28301
  (exit $ac_status); }; } &&
 
28302
         { ac_try='test -s conftest$ac_exeext'
21656
28303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657
28304
  (eval $ac_try) 2>&5
21658
28305
  ac_status=$?
21665
28312
 
21666
28313
eval "ac_cv_lib_z=no"
21667
28314
fi
21668
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
28315
rm -f conftest.err conftest.$ac_objext \
 
28316
      conftest$ac_exeext conftest.$ac_ext
21669
28317
LIBS="$kde_save_LIBS"
21670
28318
CFLAGS="$kde_save_CFLAGS"
21671
28319
 
21677
28325
_ACEOF
21678
28326
 
21679
28327
  LIBZ="$ac_cv_lib_z"
21680
 
 
21681
28328
  echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
21682
28329
echo "${ECHO_T}$ac_cv_lib_z" >&6
21683
28330
else
21684
 
  { { echo "$as_me:$LINENO: error: not found. Check your installation and look into config.log" >&5
21685
 
echo "$as_me: error: not found. Check your installation and look into config.log" >&2;}
 
28331
  { { echo "$as_me:$LINENO: error: not found.
 
28332
          Possibly configure picks up an outdated version
 
28333
          installed by XFree86. Remove it from your system.
 
28334
 
 
28335
          Check your installation and look into config.log" >&5
 
28336
echo "$as_me: error: not found.
 
28337
          Possibly configure picks up an outdated version
 
28338
          installed by XFree86. Remove it from your system.
 
28339
 
 
28340
          Check your installation and look into config.log" >&2;}
21686
28341
   { (exit 1); exit 1; }; }
21687
28342
  LIBZ=""
21688
 
 
21689
28343
fi
21690
28344
 
21691
28345
 
21692
28346
 
21693
28347
 
 
28348
 
21694
28349
echo "$as_me:$LINENO: checking for libpng" >&5
21695
28350
echo $ECHO_N "checking for libpng... $ECHO_C" >&6
21696
28351
if test "${ac_cv_lib_png+set}" = set; then
21698
28353
else
21699
28354
 
21700
28355
kde_save_LIBS="$LIBS"
21701
 
if test "x$kde_use_qt_emb" != "xyes"; then
 
28356
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
21702
28357
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
21703
28358
else
21704
28359
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
21705
28360
fi
21706
28361
kde_save_CFLAGS="$CFLAGS"
21707
28362
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
21708
 
ac_ext=c
21709
 
ac_cpp='$CPP $CPPFLAGS'
21710
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21711
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21712
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21713
28363
 
21714
28364
cat >conftest.$ac_ext <<_ACEOF
21715
 
#line $LINENO "configure"
21716
28365
/* confdefs.h.  */
21717
28366
_ACEOF
21718
28367
cat confdefs.h >>conftest.$ac_ext
21735
28384
_ACEOF
21736
28385
rm -f conftest.$ac_objext conftest$ac_exeext
21737
28386
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21738
 
  (eval $ac_link) 2>&5
 
28387
  (eval $ac_link) 2>conftest.er1
21739
28388
  ac_status=$?
 
28389
  grep -v '^ *+' conftest.er1 >conftest.err
 
28390
  rm -f conftest.er1
 
28391
  cat conftest.err >&5
21740
28392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741
28393
  (exit $ac_status); } &&
21742
 
         { ac_try='test -s conftest$ac_exeext'
 
28394
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28396
  (eval $ac_try) 2>&5
 
28397
  ac_status=$?
 
28398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28399
  (exit $ac_status); }; } &&
 
28400
         { ac_try='test -s conftest$ac_exeext'
21743
28401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744
28402
  (eval $ac_try) 2>&5
21745
28403
  ac_status=$?
21753
28411
eval "ac_cv_lib_png=no"
21754
28412
 
21755
28413
fi
21756
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
28414
rm -f conftest.err conftest.$ac_objext \
 
28415
      conftest$ac_exeext conftest.$ac_ext
21757
28416
LIBS="$kde_save_LIBS"
21758
28417
CFLAGS="$kde_save_CFLAGS"
21759
28418
 
21783
28442
  echo $ECHO_N "(cached) $ECHO_C" >&6
21784
28443
else
21785
28444
 
21786
 
ac_ext=c
21787
 
ac_cpp='$CPP $CPPFLAGS'
21788
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21789
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21790
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21791
 
 
21792
28445
ac_save_LIBS="$LIBS"
21793
28446
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
21794
28447
ac_save_CFLAGS="$CFLAGS"
21795
28448
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
21796
28449
cat >conftest.$ac_ext <<_ACEOF
21797
 
#line $LINENO "configure"
21798
28450
/* confdefs.h.  */
21799
28451
_ACEOF
21800
28452
cat confdefs.h >>conftest.$ac_ext
21825
28477
_ACEOF
21826
28478
rm -f conftest.$ac_objext conftest$ac_exeext
21827
28479
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21828
 
  (eval $ac_link) 2>&5
 
28480
  (eval $ac_link) 2>conftest.er1
21829
28481
  ac_status=$?
 
28482
  grep -v '^ *+' conftest.er1 >conftest.err
 
28483
  rm -f conftest.er1
 
28484
  cat conftest.err >&5
21830
28485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831
28486
  (exit $ac_status); } &&
21832
 
         { ac_try='test -s conftest$ac_exeext'
 
28487
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28489
  (eval $ac_try) 2>&5
 
28490
  ac_status=$?
 
28491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28492
  (exit $ac_status); }; } &&
 
28493
         { ac_try='test -s conftest$ac_exeext'
21833
28494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834
28495
  (eval $ac_try) 2>&5
21835
28496
  ac_status=$?
21842
28503
 
21843
28504
eval "ac_cv_lib_jpeg_6b=no"
21844
28505
fi
21845
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
28506
rm -f conftest.err conftest.$ac_objext \
 
28507
      conftest$ac_exeext conftest.$ac_ext
21846
28508
LIBS="$ac_save_LIBS"
21847
28509
CFLAGS="$ac_save_CFLAGS"
21848
28510
 
21863
28525
  echo $ECHO_N "(cached) $ECHO_C" >&6
21864
28526
else
21865
28527
 
21866
 
ac_ext=c
21867
 
ac_cpp='$CPP $CPPFLAGS'
21868
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21869
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21870
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21871
 
 
21872
28528
ac_save_LIBS="$LIBS"
21873
28529
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
21874
28530
ac_save_CFLAGS="$CFLAGS"
21875
28531
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
21876
28532
cat >conftest.$ac_ext <<_ACEOF
21877
 
#line $LINENO "configure"
21878
28533
/* confdefs.h.  */
21879
28534
_ACEOF
21880
28535
cat confdefs.h >>conftest.$ac_ext
21905
28560
_ACEOF
21906
28561
rm -f conftest.$ac_objext conftest$ac_exeext
21907
28562
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21908
 
  (eval $ac_link) 2>&5
 
28563
  (eval $ac_link) 2>conftest.er1
21909
28564
  ac_status=$?
 
28565
  grep -v '^ *+' conftest.er1 >conftest.err
 
28566
  rm -f conftest.er1
 
28567
  cat conftest.err >&5
21910
28568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911
28569
  (exit $ac_status); } &&
21912
 
         { ac_try='test -s conftest$ac_exeext'
 
28570
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28572
  (eval $ac_try) 2>&5
 
28573
  ac_status=$?
 
28574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28575
  (exit $ac_status); }; } &&
 
28576
         { ac_try='test -s conftest$ac_exeext'
21913
28577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914
28578
  (eval $ac_try) 2>&5
21915
28579
  ac_status=$?
21922
28586
 
21923
28587
eval "ac_cv_lib_jpeg_normal=no"
21924
28588
fi
21925
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
28589
rm -f conftest.err conftest.$ac_objext \
 
28590
      conftest$ac_exeext conftest.$ac_ext
21926
28591
LIBS="$ac_save_LIBS"
21927
28592
CFLAGS="$ac_save_CFLAGS"
21928
28593
 
21955
28620
do
21956
28621
  for j in jpeglib.h;
21957
28622
  do
21958
 
    echo "configure: 21958: $i/$j" >&5
 
28623
    echo "configure: 28623: $i/$j" >&5
21959
28624
    if test -r "$i/$j"; then
21960
28625
      echo "taking that" >&5
21961
28626
      jpeg_incdir=$i
22002
28667
 
22003
28668
 
22004
28669
 
 
28670
   echo "$as_me:$LINENO: checking for perl" >&5
 
28671
echo $ECHO_N "checking for perl... $ECHO_C" >&6
 
28672
   if test -n "$PERL"; then
 
28673
        kde_cv_path="$PERL";
 
28674
   else
 
28675
        kde_cache=`echo perl | sed 'y%./+-%__p_%'`
 
28676
 
 
28677
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
28678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28679
else
 
28680
 
 
28681
        kde_cv_path="NONE"
 
28682
        kde_save_IFS=$IFS
 
28683
        IFS=':'
 
28684
        dirs=""
 
28685
        for dir in $PATH; do
 
28686
          dirs="$dirs $dir"
 
28687
        done
 
28688
        if test -z ""; then       dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
 
28689
        else      dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
 
28690
        fi
 
28691
        IFS=$kde_save_IFS
 
28692
 
 
28693
        for dir in $dirs; do
 
28694
          if test -x "$dir/perl"; then
 
28695
            if test -n ""
 
28696
            then
 
28697
              evalstr="$dir/perl  2>&1 "
 
28698
              if eval $evalstr; then
 
28699
                kde_cv_path="$dir/perl"
 
28700
                break
 
28701
              fi
 
28702
            else
 
28703
                kde_cv_path="$dir/perl"
 
28704
                break
 
28705
            fi
 
28706
          fi
 
28707
        done
 
28708
 
 
28709
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
28710
 
 
28711
 
 
28712
fi
 
28713
 
 
28714
 
 
28715
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
28716
 
 
28717
   fi
 
28718
 
 
28719
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
28720
      echo "$as_me:$LINENO: result: not found" >&5
 
28721
echo "${ECHO_T}not found" >&6
 
28722
 
 
28723
                    { { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
 
28724
We need perl to generate some code." >&5
 
28725
echo "$as_me: error: No Perl found in your $PATH.
 
28726
We need perl to generate some code." >&2;}
 
28727
   { (exit 1); exit 1; }; }
 
28728
 
 
28729
   else
 
28730
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
28731
echo "${ECHO_T}$kde_cv_path" >&6
 
28732
      PERL=$kde_cv_path
 
28733
 
 
28734
   fi
 
28735
 
 
28736
 
 
28737
 
 
28738
 
 
28739
 
22005
28740
 
22006
28741
 
22007
28742
 
22131
28866
echo "$as_me:$LINENO: checking for Qt" >&5
22132
28867
echo $ECHO_N "checking for Qt... $ECHO_C" >&6
22133
28868
 
22134
 
if test "x$kde_use_qt_emb" != "xyes"; then
 
28869
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
22135
28870
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
22136
28871
fi
22137
28872
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
22176
28911
for dir in $kde_qt_dirs; do
22177
28912
   qt_incdirs="$qt_incdirs $dir/include $dir"
22178
28913
done
22179
 
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 $x_includes"
 
28914
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
22180
28915
if test ! "$ac_qt_includes" = "NO"; then
22181
28916
   qt_incdirs="$ac_qt_includes $qt_incdirs"
22182
28917
fi
22193
28928
do
22194
28929
  for j in $kde_qt_header;
22195
28930
  do
22196
 
    echo "configure: 22196: $i/$j" >&5
 
28931
    echo "configure: 28931: $i/$j" >&5
22197
28932
    if test -r "$i/$j"; then
22198
28933
      echo "taking that" >&5
22199
28934
      qt_incdir=$i
22220
28955
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
22221
28956
  done
22222
28957
fi
 
28958
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
 
28959
  if test -e "$a"; then
 
28960
    LIBQT="$LIBQT ${kde_int_qt}_incremental"
 
28961
    break
 
28962
  fi
 
28963
done
22223
28964
 
22224
28965
ac_qt_libraries="$qt_libdir"
22225
28966
 
22374
29115
  qt_includes="$ac_qt_includes"
22375
29116
fi
22376
29117
 
22377
 
if test ! "$kde_qt_libs_given" = "yes"; then
 
29118
if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
22378
29119
 
22379
29120
 
22380
29121
echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
22402
29143
 
22403
29144
CXXFLAGS="$CXXFLAGS -I$qt_includes"
22404
29145
LDFLAGS="$LDFLAGS $X_LDFLAGS"
22405
 
if test "x$kde_use_qt_emb" != "xyes"; then
 
29146
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
22406
29147
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
22407
29148
else
22408
29149
LIBS="$LIBQT $LIBSOCKET"
22538
29279
 
22539
29280
 
22540
29281
 
 
29282
 
22541
29283
   qt_bindirs=""
22542
29284
   for dir in $kde_qt_dirs; do
22543
29285
      qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
22560
29302
else
22561
29303
 
22562
29304
        kde_cv_path="NONE"
22563
 
        dirs="$qt_bindirs"
22564
29305
        kde_save_IFS=$IFS
22565
29306
        IFS=':'
 
29307
        dirs=""
22566
29308
        for dir in $PATH; do
22567
29309
          dirs="$dirs $dir"
22568
 
        done
 
29310
        done
 
29311
        if test -z ""; then       dirs="$qt_bindirs $dirs"
 
29312
        else      dirs="$dirs $qt_bindirs"
 
29313
        fi
22569
29314
        IFS=$kde_save_IFS
22570
29315
 
22571
29316
        for dir in $dirs; do
22637
29382
else
22638
29383
 
22639
29384
        kde_cv_path="NONE"
22640
 
        dirs="$qt_bindirs"
22641
29385
        kde_save_IFS=$IFS
22642
29386
        IFS=':'
 
29387
        dirs=""
22643
29388
        for dir in $PATH; do
22644
29389
          dirs="$dirs $dir"
22645
 
        done
 
29390
        done
 
29391
        if test -z ""; then       dirs="$qt_bindirs $dirs"
 
29392
        else      dirs="$dirs $qt_bindirs"
 
29393
        fi
22646
29394
        IFS=$kde_save_IFS
22647
29395
 
22648
29396
        for dir in $dirs; do
22702
29450
" >&2;}
22703
29451
 
22704
29452
       exit 1
22705
 
     elif test $kde_qtver = 3; then
 
29453
     else
 
29454
       UIC=$UIC_PATH
 
29455
 
 
29456
       if test $kde_qtver = 3; then
22706
29457
 
22707
29458
    echo "$as_me:$LINENO: checking whether uic supports -L " >&5
22708
29459
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6
22714
29465
        cat >conftest.ui <<EOT
22715
29466
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
22716
29467
EOT
22717
 
        ac_uic_testrun="$UIC_PATH -L /nonexistant conftest.ui >/dev/null"
 
29468
        ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
22718
29469
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
22719
29470
  (eval $ac_uic_testrun) 2>&5
22720
29471
  ac_status=$?
22780
29531
    fi
22781
29532
 
22782
29533
 
22783
 
       UIC=$UIC_PATH
22784
 
       if test x$ac_uic_supports_libpath = xyes; then
22785
 
           UIC="$UIC -L \$(kde_widgetdir)"
22786
 
       fi
22787
 
       if test x$ac_uic_supports_nounload = xyes; then
22788
 
           UIC="$UIC -nounload"
 
29534
         if test x$ac_uic_supports_libpath = xyes; then
 
29535
             UIC="$UIC -L \$(kde_widgetdir)"
 
29536
         fi
 
29537
         if test x$ac_uic_supports_nounload = xyes; then
 
29538
             UIC="$UIC -nounload"
 
29539
         fi
22789
29540
       fi
22790
29541
     fi
22791
29542
   else
22804
29555
 
22805
29556
 
22806
29557
 
 
29558
if test -n "$LIBJPEG"; then
22807
29559
echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
22808
29560
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6
22809
29561
if test "${kde_cv_qt_jpeg+set}" = set; then
22827
29579
ac_save_CXXFLAGS="$CXXFLAGS"
22828
29580
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
22829
29581
cat >conftest.$ac_ext <<_ACEOF
22830
 
#line $LINENO "configure"
22831
29582
/* confdefs.h.  */
22832
29583
_ACEOF
22833
29584
cat confdefs.h >>conftest.$ac_ext
22847
29598
_ACEOF
22848
29599
rm -f conftest.$ac_objext conftest$ac_exeext
22849
29600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22850
 
  (eval $ac_link) 2>&5
 
29601
  (eval $ac_link) 2>conftest.er1
22851
29602
  ac_status=$?
 
29603
  grep -v '^ *+' conftest.er1 >conftest.err
 
29604
  rm -f conftest.er1
 
29605
  cat conftest.err >&5
22852
29606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853
29607
  (exit $ac_status); } &&
22854
 
         { ac_try='test -s conftest$ac_exeext'
 
29608
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
29609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29610
  (eval $ac_try) 2>&5
 
29611
  ac_status=$?
 
29612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29613
  (exit $ac_status); }; } &&
 
29614
         { ac_try='test -s conftest$ac_exeext'
22855
29615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856
29616
  (eval $ac_try) 2>&5
22857
29617
  ac_status=$?
22864
29624
 
22865
29625
eval "kde_cv_qt_jpeg=yes"
22866
29626
fi
22867
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
29627
rm -f conftest.err conftest.$ac_objext \
 
29628
      conftest$ac_exeext conftest.$ac_ext
22868
29629
LIBS="$ac_save_LIBS"
22869
29630
CXXFLAGS="$ac_save_CXXFLAGS"
22870
29631
ac_ext=c
22873
29634
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22874
29635
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22875
29636
 
 
29637
fi
22876
29638
 
22877
29639
fi
22878
29640
 
22889
29651
 
22890
29652
 
22891
29653
 
22892
 
if test "x$kde_use_qt_emb" != "xyes"; then
22893
 
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
 
29654
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
 
29655
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
22894
29656
else
22895
 
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBPNG)'
 
29657
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
22896
29658
fi
22897
29659
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
 
29660
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
 
29661
  if test -e "$a"; then
 
29662
     LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
 
29663
     break
 
29664
  fi
 
29665
done
22898
29666
 
22899
29667
 
22900
29668
 
22926
29694
    KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
22927
29695
  fi
22928
29696
    if test -n "$X_LDFLAGS"; then
22929
 
    KDE_RPATH="$KDE_RPATH -R \$(x_libraries)"
 
29697
    X_RPATH="-R \$(x_libraries)"
 
29698
    KDE_RPATH="$KDE_RPATH $X_RPATH"
22930
29699
  fi
22931
29700
  if test -n "$KDE_EXTRA_RPATH"; then
22932
29701
    KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
22934
29703
fi
22935
29704
 
22936
29705
 
 
29706
 
22937
29707
echo "$as_me:$LINENO: result: $USE_RPATH" >&5
22938
29708
echo "${ECHO_T}$USE_RPATH" >&6
22939
29709
 
22941
29711
echo $ECHO_N "checking for KDE... $ECHO_C" >&6
22942
29712
 
22943
29713
if test "${prefix}" != NONE; then
22944
 
  kde_includes=${prefix}/include
22945
 
  ac_kde_includes=$prefix/include
22946
 
 
22947
 
  if test "${exec_prefix}" != NONE; then
22948
 
     kde_libraries=${libdir}
22949
 
     ac_kde_libraries=$libdir
22950
 
     if test "$ac_kde_libraries" = '${exec_prefix}/lib'${kdelibsuff}; then
22951
 
        ac_kde_libraries=$exec_prefix/lib${kdelibsuff}
22952
 
     fi
22953
 
  else
22954
 
     kde_libraries=${prefix}/lib${kdelibsuff}
22955
 
     ac_kde_libraries=$prefix/lib${kdelibsuff}
22956
 
  fi
 
29714
  kde_includes=${includedir}
 
29715
 
 
29716
savex=$exec_prefix
 
29717
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
29718
tmp=$includedir
 
29719
while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
 
29720
exec_prefix=$savex
 
29721
 
 
29722
 
 
29723
  kde_libraries=${libdir}
 
29724
 
 
29725
savex=$exec_prefix
 
29726
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
29727
tmp=$libdir
 
29728
while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
 
29729
exec_prefix=$savex
 
29730
 
 
29731
 
22957
29732
else
22958
29733
  ac_kde_includes=
22959
29734
  ac_kde_libraries=
22976
29751
 
22977
29752
if test -z ""; then
22978
29753
 
22979
 
kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
 
29754
kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
22980
29755
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
22981
29756
kde_incdirs="$ac_kde_includes $kde_incdirs"
22982
29757
 
22985
29760
do
22986
29761
  for j in $kde_check_header;
22987
29762
  do
22988
 
    echo "configure: 22988: $i/$j" >&5
 
29763
    echo "configure: 29763: $i/$j" >&5
22989
29764
    if test -r "$i/$j"; then
22990
29765
      echo "taking that" >&5
22991
29766
      kde_incdir=$i
23006
29781
   { (exit 1); exit 1; }; }
23007
29782
fi
23008
29783
 
23009
 
kde_libdirs="/usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
 
29784
kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
23010
29785
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
23011
29786
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
23012
29787
 
23015
29790
do
23016
29791
  for j in $kde_check_lib;
23017
29792
  do
23018
 
    echo "configure: 23018: $i/$j" >&5
 
29793
    echo "configure: 29793: $i/$j" >&5
23019
29794
    if test -r "$i/$j"; then
23020
29795
      echo "taking that" >&5
23021
29796
      kde_libdir=$i
23033
29808
do
23034
29809
  for j in "kde3/plugins/designer/kdewidgets.la";
23035
29810
  do
23036
 
    echo "configure: 23036: $i/$j" >&5
 
29811
    echo "configure: 29811: $i/$j" >&5
23037
29812
    if test -r "$i/$j"; then
23038
29813
      echo "taking that" >&5
23039
29814
      kde_widgetdir=$i
23101
29876
 fi
23102
29877
 
23103
29878
 kde_libraries="${libdir}"
23104
 
 kde_includes=${ac_kde_prefix}/include
 
29879
 kde_includes="${includedir}"
23105
29880
 
23106
29881
else
23107
29882
  ac_cv_have_kde="have_kde=yes \
23122
29897
 all_includes="$KDE_INCLUDES $all_includes"
23123
29898
fi
23124
29899
 
 
29900
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
 
29901
 
23125
29902
KDE_LDFLAGS="-L$kde_libraries"
23126
29903
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
23127
29904
 all_libraries="$all_libraries $KDE_LDFLAGS"
23175
29952
  ac_status=$?
23176
29953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177
29954
  (exit $ac_status); }; then
 
29955
        # if you're trying to debug this check and think it's incorrect,
 
29956
        # better check your installation. The check _is_ correct - your
 
29957
        # installation is not.
23178
29958
        if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
23179
29959
                kde_cv_uic_plugins=yes
23180
29960
        fi
23184
29964
fi
23185
29965
 
23186
29966
 
23187
 
if test "$kde_cv_uic_plugins" = yes; then
23188
 
        echo "$as_me:$LINENO: result: yes" >&5
23189
 
echo "${ECHO_T}yes" >&6
23190
 
else
23191
 
        { { echo "$as_me:$LINENO: error: not found - you need to install kdelibs first." >&5
23192
 
echo "$as_me: error: not found - you need to install kdelibs first." >&2;}
 
29967
echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
 
29968
echo "${ECHO_T}$kde_cv_uic_plugins" >&6
 
29969
if test "$kde_cv_uic_plugins" != yes; then
 
29970
        { { echo "$as_me:$LINENO: error: you need to install kdelibs first." >&5
 
29971
echo "$as_me: error: you need to install kdelibs first." >&2;}
23193
29972
   { (exit 1); exit 1; }; }
23194
29973
fi
23195
29974
fi
23236
30015
if test "$ac_use_path_checking" = "default"; then
23237
30016
 
23238
30017
  if test -z "$kde_htmldir"; then
23239
 
    kde_htmldir='\${prefix}/share/doc/HTML'
 
30018
    kde_htmldir='\${datadir}/doc/HTML'
23240
30019
  fi
23241
30020
  if test -z "$kde_appsdir"; then
23242
 
    kde_appsdir='\${prefix}/share/applnk'
 
30021
    kde_appsdir='\${datadir}/applnk'
23243
30022
  fi
23244
30023
  if test -z "$kde_icondir"; then
23245
 
    kde_icondir='\${prefix}/share/icons'
 
30024
    kde_icondir='\${datadir}/icons'
23246
30025
  fi
23247
30026
  if test -z "$kde_sounddir"; then
23248
 
    kde_sounddir='\${prefix}/share/sounds'
 
30027
    kde_sounddir='\${datadir}/sounds'
23249
30028
  fi
23250
30029
  if test -z "$kde_datadir"; then
23251
 
    kde_datadir='\${prefix}/share/apps'
 
30030
    kde_datadir='\${datadir}/apps'
23252
30031
  fi
23253
30032
  if test -z "$kde_locale"; then
23254
 
    kde_locale='\${prefix}/share/locale'
 
30033
    kde_locale='\${datadir}/locale'
23255
30034
  fi
23256
30035
  if test -z "$kde_cgidir"; then
23257
30036
    kde_cgidir='\${exec_prefix}/cgi-bin'
23258
30037
  fi
23259
30038
  if test -z "$kde_confdir"; then
23260
 
    kde_confdir='\${prefix}/share/config'
 
30039
    kde_confdir='\${datadir}/config'
 
30040
  fi
 
30041
  if test -z "$kde_kcfgdir"; then
 
30042
    kde_kcfgdir='\${datadir}/config.kcfg'
23261
30043
  fi
23262
30044
  if test -z "$kde_mimedir"; then
23263
 
    kde_mimedir='\${prefix}/share/mimelnk'
 
30045
    kde_mimedir='\${datadir}/mimelnk'
23264
30046
  fi
23265
30047
  if test -z "$kde_toolbardir"; then
23266
 
    kde_toolbardir='\${prefix}/share/toolbar'
 
30048
    kde_toolbardir='\${datadir}/toolbar'
23267
30049
  fi
23268
30050
  if test -z "$kde_wallpaperdir"; then
23269
 
    kde_wallpaperdir='\${prefix}/share/wallpapers'
 
30051
    kde_wallpaperdir='\${datadir}/wallpapers'
23270
30052
  fi
23271
30053
  if test -z "$kde_templatesdir"; then
23272
 
    kde_templatesdir='\${prefix}/share/templates'
 
30054
    kde_templatesdir='\${datadir}/templates'
23273
30055
  fi
23274
30056
  if test -z "$kde_bindir"; then
23275
30057
    kde_bindir='\${exec_prefix}/bin'
23276
30058
  fi
23277
30059
  if test -z "$kde_servicesdir"; then
23278
 
    kde_servicesdir='\${prefix}/share/services'
 
30060
    kde_servicesdir='\${datadir}/services'
23279
30061
  fi
23280
30062
  if test -z "$kde_servicetypesdir"; then
23281
 
    kde_servicetypesdir='\${prefix}/share/servicetypes'
 
30063
    kde_servicetypesdir='\${datadir}/servicetypes'
23282
30064
  fi
23283
30065
  if test -z "$kde_moduledir"; then
23284
30066
    if test "$kde_qtver" = "2"; then
23293
30075
  if test -z "$kde_widgetdir"; then
23294
30076
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
23295
30077
  fi
 
30078
  if test -z "$xdg_appsdir"; then
 
30079
    xdg_appsdir='\${datadir}/applications/kde'
 
30080
  fi
 
30081
  if test -z "$xdg_menudir"; then
 
30082
    xdg_menudir='\${sysconfdir}/xdg/menus'
 
30083
  fi
 
30084
  if test -z "$xdg_directorydir"; then
 
30085
    xdg_directorydir='\${datadir}/desktop-directories'
 
30086
  fi
23296
30087
 
23297
30088
 
23298
30089
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
23304
30095
        kde_locale=\"$kde_locale\" \
23305
30096
        kde_cgidir=\"$kde_cgidir\" \
23306
30097
        kde_confdir=\"$kde_confdir\" \
 
30098
        kde_kcfgdir=\"$kde_kcfgdir\" \
23307
30099
        kde_mimedir=\"$kde_mimedir\" \
23308
30100
        kde_toolbardir=\"$kde_toolbardir\" \
23309
30101
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
23312
30104
        kde_servicesdir=\"$kde_servicesdir\" \
23313
30105
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
23314
30106
        kde_moduledir=\"$kde_moduledir\" \
23315
 
   kde_styledir=\"$kde_styledir\" \
 
30107
        kde_styledir=\"$kde_styledir\" \
23316
30108
        kde_widgetdir=\"$kde_widgetdir\" \
 
30109
        xdg_appsdir=\"$xdg_appsdir\" \
 
30110
        xdg_menudir=\"$xdg_menudir\" \
 
30111
        xdg_directorydir=\"$xdg_directorydir\" \
23317
30112
        kde_result=defaults"
23318
30113
 
23319
30114
 
23365
30160
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
23366
30161
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
23367
30162
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
 
30163
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
 
30164
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
 
30165
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
 
30166
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
23368
30167
    return 0;
23369
30168
    }
23370
30169
EOF
23371
30170
 
23372
 
 ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
 
30171
 ac_save_CPPFLAGS=$CPPFLAGS
 
30172
 CPPFLAGS="$all_includes $CPPFLAGS"
23373
30173
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23374
30174
  (eval $ac_compile) 2>&5
23375
30175
  ac_status=$?
23386
30186
For more details about this problem, look at the end of config.log." >&2;}
23387
30187
   { (exit 1); exit 1; }; }
23388
30188
  fi
 
30189
  CPPFLAGS=$ac_save_CPPFLAGS
23389
30190
 
23390
30191
  ac_ext=c
23391
30192
ac_cpp='$CPP $CPPFLAGS'
23456
30257
        kde_locale=\"$kde_locale\" \
23457
30258
        kde_cgidir=\"$kde_cgidir\" \
23458
30259
        kde_confdir=\"$kde_confdir\" \
 
30260
        kde_kcfgdir=\"$kde_kcfgdir\" \
23459
30261
        kde_mimedir=\"$kde_mimedir\" \
23460
30262
        kde_toolbardir=\"$kde_toolbardir\" \
23461
30263
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
23464
30266
        kde_servicesdir=\"$kde_servicesdir\" \
23465
30267
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
23466
30268
        kde_moduledir=\"$kde_moduledir\" \
23467
 
   kde_styledir=\"$kde_styledir\" \
 
30269
        kde_styledir=\"$kde_styledir\" \
23468
30270
        kde_widgetdir=\"$kde_widgetdir\" \
 
30271
        xdg_appsdir=\"$xdg_appsdir\" \
 
30272
        xdg_menudir=\"$xdg_menudir\" \
 
30273
        xdg_directorydir=\"$xdg_directorydir\" \
23469
30274
        kde_result=$kde_result"
23470
30275
 
23471
30276
 
23487
30292
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
23488
30293
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
23489
30294
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
 
30295
   test -z "$kde_kcfgdir" ||
23490
30296
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
23491
30297
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
23492
30298
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
23493
30299
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
23494
 
   test -z "$kde_styledir" || test -z "kde_widgetdir"
 
30300
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
 
30301
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
23495
30302
   test "x$kde_have_all_paths" != "xyes"; then
23496
30303
     kde_have_all_paths=no
23497
30304
  fi
23500
30307
  # wrong values were cached, may be, we can set better ones
23501
30308
  kde_result=
23502
30309
  kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
23503
 
  kde_datadir= kde_locale=  kde_cgidir=  kde_confdir=
 
30310
  kde_datadir= kde_locale=  kde_cgidir=  kde_confdir= kde_kcfgdir=
23504
30311
  kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
23505
30312
  kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
23506
30313
  kde_have_all_paths=
23507
30314
  kde_styledir=
23508
30315
  kde_widgetdir=
 
30316
  xdg_appsdir = xdg_menudir= xdg_directorydir=
23509
30317
 
23510
30318
if test "$ac_use_path_checking" = "default"; then
23511
30319
 
23512
30320
  if test -z "$kde_htmldir"; then
23513
 
    kde_htmldir='\${prefix}/share/doc/HTML'
 
30321
    kde_htmldir='\${datadir}/doc/HTML'
23514
30322
  fi
23515
30323
  if test -z "$kde_appsdir"; then
23516
 
    kde_appsdir='\${prefix}/share/applnk'
 
30324
    kde_appsdir='\${datadir}/applnk'
23517
30325
  fi
23518
30326
  if test -z "$kde_icondir"; then
23519
 
    kde_icondir='\${prefix}/share/icons'
 
30327
    kde_icondir='\${datadir}/icons'
23520
30328
  fi
23521
30329
  if test -z "$kde_sounddir"; then
23522
 
    kde_sounddir='\${prefix}/share/sounds'
 
30330
    kde_sounddir='\${datadir}/sounds'
23523
30331
  fi
23524
30332
  if test -z "$kde_datadir"; then
23525
 
    kde_datadir='\${prefix}/share/apps'
 
30333
    kde_datadir='\${datadir}/apps'
23526
30334
  fi
23527
30335
  if test -z "$kde_locale"; then
23528
 
    kde_locale='\${prefix}/share/locale'
 
30336
    kde_locale='\${datadir}/locale'
23529
30337
  fi
23530
30338
  if test -z "$kde_cgidir"; then
23531
30339
    kde_cgidir='\${exec_prefix}/cgi-bin'
23532
30340
  fi
23533
30341
  if test -z "$kde_confdir"; then
23534
 
    kde_confdir='\${prefix}/share/config'
 
30342
    kde_confdir='\${datadir}/config'
 
30343
  fi
 
30344
  if test -z "$kde_kcfgdir"; then
 
30345
    kde_kcfgdir='\${datadir}/config.kcfg'
23535
30346
  fi
23536
30347
  if test -z "$kde_mimedir"; then
23537
 
    kde_mimedir='\${prefix}/share/mimelnk'
 
30348
    kde_mimedir='\${datadir}/mimelnk'
23538
30349
  fi
23539
30350
  if test -z "$kde_toolbardir"; then
23540
 
    kde_toolbardir='\${prefix}/share/toolbar'
 
30351
    kde_toolbardir='\${datadir}/toolbar'
23541
30352
  fi
23542
30353
  if test -z "$kde_wallpaperdir"; then
23543
 
    kde_wallpaperdir='\${prefix}/share/wallpapers'
 
30354
    kde_wallpaperdir='\${datadir}/wallpapers'
23544
30355
  fi
23545
30356
  if test -z "$kde_templatesdir"; then
23546
 
    kde_templatesdir='\${prefix}/share/templates'
 
30357
    kde_templatesdir='\${datadir}/templates'
23547
30358
  fi
23548
30359
  if test -z "$kde_bindir"; then
23549
30360
    kde_bindir='\${exec_prefix}/bin'
23550
30361
  fi
23551
30362
  if test -z "$kde_servicesdir"; then
23552
 
    kde_servicesdir='\${prefix}/share/services'
 
30363
    kde_servicesdir='\${datadir}/services'
23553
30364
  fi
23554
30365
  if test -z "$kde_servicetypesdir"; then
23555
 
    kde_servicetypesdir='\${prefix}/share/servicetypes'
 
30366
    kde_servicetypesdir='\${datadir}/servicetypes'
23556
30367
  fi
23557
30368
  if test -z "$kde_moduledir"; then
23558
30369
    if test "$kde_qtver" = "2"; then
23567
30378
  if test -z "$kde_widgetdir"; then
23568
30379
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
23569
30380
  fi
 
30381
  if test -z "$xdg_appsdir"; then
 
30382
    xdg_appsdir='\${datadir}/applications/kde'
 
30383
  fi
 
30384
  if test -z "$xdg_menudir"; then
 
30385
    xdg_menudir='\${sysconfdir}/xdg/menus'
 
30386
  fi
 
30387
  if test -z "$xdg_directorydir"; then
 
30388
    xdg_directorydir='\${datadir}/desktop-directories'
 
30389
  fi
23570
30390
 
23571
30391
 
23572
30392
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
23578
30398
        kde_locale=\"$kde_locale\" \
23579
30399
        kde_cgidir=\"$kde_cgidir\" \
23580
30400
        kde_confdir=\"$kde_confdir\" \
 
30401
        kde_kcfgdir=\"$kde_kcfgdir\" \
23581
30402
        kde_mimedir=\"$kde_mimedir\" \
23582
30403
        kde_toolbardir=\"$kde_toolbardir\" \
23583
30404
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
23586
30407
        kde_servicesdir=\"$kde_servicesdir\" \
23587
30408
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
23588
30409
        kde_moduledir=\"$kde_moduledir\" \
23589
 
   kde_styledir=\"$kde_styledir\" \
 
30410
        kde_styledir=\"$kde_styledir\" \
23590
30411
        kde_widgetdir=\"$kde_widgetdir\" \
 
30412
        xdg_appsdir=\"$xdg_appsdir\" \
 
30413
        xdg_menudir=\"$xdg_menudir\" \
 
30414
        xdg_directorydir=\"$xdg_directorydir\" \
23591
30415
        kde_result=defaults"
23592
30416
 
23593
30417
 
23639
30463
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
23640
30464
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
23641
30465
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
 
30466
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
 
30467
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
 
30468
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
 
30469
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
23642
30470
    return 0;
23643
30471
    }
23644
30472
EOF
23645
30473
 
23646
 
 ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
 
30474
 ac_save_CPPFLAGS=$CPPFLAGS
 
30475
 CPPFLAGS="$all_includes $CPPFLAGS"
23647
30476
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23648
30477
  (eval $ac_compile) 2>&5
23649
30478
  ac_status=$?
23660
30489
For more details about this problem, look at the end of config.log." >&2;}
23661
30490
   { (exit 1); exit 1; }; }
23662
30491
  fi
 
30492
  CPPFLAGS=$ac_save_CPPFLAGS
23663
30493
 
23664
30494
  ac_ext=c
23665
30495
ac_cpp='$CPP $CPPFLAGS'
23730
30560
        kde_locale=\"$kde_locale\" \
23731
30561
        kde_cgidir=\"$kde_cgidir\" \
23732
30562
        kde_confdir=\"$kde_confdir\" \
 
30563
        kde_kcfgdir=\"$kde_kcfgdir\" \
23733
30564
        kde_mimedir=\"$kde_mimedir\" \
23734
30565
        kde_toolbardir=\"$kde_toolbardir\" \
23735
30566
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
23738
30569
        kde_servicesdir=\"$kde_servicesdir\" \
23739
30570
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
23740
30571
        kde_moduledir=\"$kde_moduledir\" \
23741
 
   kde_styledir=\"$kde_styledir\" \
 
30572
        kde_styledir=\"$kde_styledir\" \
23742
30573
        kde_widgetdir=\"$kde_widgetdir\" \
 
30574
        xdg_appsdir=\"$xdg_appsdir\" \
 
30575
        xdg_menudir=\"$xdg_menudir\" \
 
30576
        xdg_directorydir=\"$xdg_directorydir\" \
23743
30577
        kde_result=$kde_result"
23744
30578
 
23745
30579
 
23757
30591
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
23758
30592
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
23759
30593
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
 
30594
   test -z "$kde_kcfgdir" ||
23760
30595
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
23761
30596
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
23762
30597
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
23763
30598
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
23764
 
   test -z "$kde_styledir" || test -z "kde_widgetdir"
 
30599
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
 
30600
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
23765
30601
   test "x$kde_have_all_paths" != "xyes"; then
23766
30602
     kde_have_all_paths=no
23767
30603
  fi
23792
30628
 
23793
30629
 
23794
30630
 
23795
 
        kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
23796
 
        test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
23797
 
        if test -n "$KDEDIRS"; then
23798
 
           kde_save_IFS=$IFS
23799
 
           IFS=:
23800
 
           for dir in $KDEDIRS; do
23801
 
                kde_default_bindirs="$dir/bin $kde_default_bindirs "
23802
 
           done
23803
 
           IFS=$kde_save_IFS
23804
 
        fi
23805
 
        kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_default_bindirs"
 
30631
# Check whether --with-arts or --without-arts was given.
 
30632
if test "${with_arts+set}" = set; then
 
30633
  withval="$with_arts"
 
30634
  build_arts=$withval
 
30635
else
 
30636
  build_arts=yes
 
30637
 
 
30638
fi;
 
30639
 
 
30640
 
 
30641
if test "$build_arts" '!=' "no"; then
 
30642
  include_ARTS_TRUE=
 
30643
  include_ARTS_FALSE='#'
 
30644
else
 
30645
  include_ARTS_TRUE='#'
 
30646
  include_ARTS_FALSE=
 
30647
fi
 
30648
 
 
30649
    if test "$build_arts" = "no"; then
 
30650
 
 
30651
cat >>confdefs.h <<\_ACEOF
 
30652
#define WITHOUT_ARTS 1
 
30653
_ACEOF
 
30654
 
 
30655
    fi
 
30656
 
 
30657
 
 
30658
    kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
 
30659
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
 
30660
    if test -n "$KDEDIRS"; then
 
30661
       kde_save_IFS=$IFS
 
30662
       IFS=:
 
30663
       for dir in $KDEDIRS; do
 
30664
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
30665
       done
 
30666
       IFS=$kde_save_IFS
 
30667
    fi
 
30668
 
 
30669
        kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
23806
30670
 
23807
30671
   echo "$as_me:$LINENO: checking for dcopidl" >&5
23808
30672
echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6
23816
30680
else
23817
30681
 
23818
30682
        kde_cv_path="NONE"
23819
 
        dirs="$kde_default_bindirs"
23820
30683
        kde_save_IFS=$IFS
23821
30684
        IFS=':'
 
30685
        dirs=""
23822
30686
        for dir in $PATH; do
23823
30687
          dirs="$dirs $dir"
23824
 
        done
 
30688
        done
 
30689
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
30690
        else      dirs="$dirs $kde_default_bindirs"
 
30691
        fi
23825
30692
        IFS=$kde_save_IFS
23826
30693
 
23827
30694
        for dir in $dirs; do
23882
30749
else
23883
30750
 
23884
30751
        kde_cv_path="NONE"
23885
 
        dirs="$kde_default_bindirs"
23886
30752
        kde_save_IFS=$IFS
23887
30753
        IFS=':'
 
30754
        dirs=""
23888
30755
        for dir in $PATH; do
23889
30756
          dirs="$dirs $dir"
23890
 
        done
 
30757
        done
 
30758
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
30759
        else      dirs="$dirs $kde_default_bindirs"
 
30760
        fi
23891
30761
        IFS=$kde_save_IFS
23892
30762
 
23893
30763
        for dir in $dirs; do
23935
30805
 
23936
30806
   fi
23937
30807
 
 
30808
        if test "$build_arts" '!=' "no"; then
23938
30809
 
23939
30810
   echo "$as_me:$LINENO: checking for mcopidl" >&5
23940
30811
echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6
23948
30819
else
23949
30820
 
23950
30821
        kde_cv_path="NONE"
23951
 
        dirs="$kde_default_bindirs"
23952
30822
        kde_save_IFS=$IFS
23953
30823
        IFS=':'
 
30824
        dirs=""
23954
30825
        for dir in $PATH; do
23955
30826
          dirs="$dirs $dir"
23956
 
        done
 
30827
        done
 
30828
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
30829
        else      dirs="$dirs $kde_default_bindirs"
 
30830
        fi
23957
30831
        IFS=$kde_save_IFS
23958
30832
 
23959
30833
        for dir in $dirs; do
23987
30861
echo "${ECHO_T}not found" >&6
23988
30862
 
23989
30863
    { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
23990
 
Please check whether you installed aRts correctly.
 
30864
Please check whether you installed aRts correctly or use
 
30865
--without-arts to compile without aRts support (this will remove functionality).
23991
30866
" >&5
23992
30867
echo "$as_me: error: The important program mcopidl was not found!
23993
 
Please check whether you installed aRts correctly.
 
30868
Please check whether you installed aRts correctly or use
 
30869
--without-arts to compile without aRts support (this will remove functionality).
23994
30870
" >&2;}
23995
30871
   { (exit 1); exit 1; }; }
23996
30872
 
24014
30890
else
24015
30891
 
24016
30892
        kde_cv_path="NONE"
24017
 
        dirs="$kde_default_bindirs"
24018
30893
        kde_save_IFS=$IFS
24019
30894
        IFS=':'
 
30895
        dirs=""
24020
30896
        for dir in $PATH; do
24021
30897
          dirs="$dirs $dir"
24022
 
        done
 
30898
        done
 
30899
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
30900
        else      dirs="$dirs $kde_default_bindirs"
 
30901
        fi
24023
30902
        IFS=$kde_save_IFS
24024
30903
 
24025
30904
        for dir in $dirs; do
24053
30932
echo "${ECHO_T}not found" >&6
24054
30933
 
24055
30934
    { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
24056
 
Please check whether you installed aRts correctly.
 
30935
Please check whether you installed aRts correctly or use
 
30936
--without-arts to compile without aRts support (this will remove functionality).
24057
30937
" >&5
24058
30938
echo "$as_me: error: The important program artsc-config was not found!
24059
 
Please check whether you installed aRts correctly.
 
30939
Please check whether you installed aRts correctly or use
 
30940
--without-arts to compile without aRts support (this will remove functionality).
24060
30941
" >&2;}
24061
30942
   { (exit 1); exit 1; }; }
24062
30943
 
24067
30948
 
24068
30949
   fi
24069
30950
 
24070
 
 
24071
 
   echo "$as_me:$LINENO: checking for kde-config" >&5
24072
 
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
24073
 
   if test -n "$KDECONFIG"; then
24074
 
        kde_cv_path="$KDECONFIG";
24075
 
   else
24076
 
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
24077
 
 
24078
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
24079
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24080
 
else
24081
 
 
24082
 
        kde_cv_path="NONE"
24083
 
        dirs="$kde_default_bindirs"
24084
 
        kde_save_IFS=$IFS
24085
 
        IFS=':'
24086
 
        for dir in $PATH; do
24087
 
          dirs="$dirs $dir"
24088
 
        done
24089
 
        IFS=$kde_save_IFS
24090
 
 
24091
 
        for dir in $dirs; do
24092
 
          if test -x "$dir/kde-config"; then
24093
 
            if test -n ""
24094
 
            then
24095
 
              evalstr="$dir/kde-config  2>&1 "
24096
 
              if eval $evalstr; then
24097
 
                kde_cv_path="$dir/kde-config"
24098
 
                break
24099
 
              fi
24100
 
            else
24101
 
                kde_cv_path="$dir/kde-config"
24102
 
                break
24103
 
            fi
24104
 
          fi
24105
 
        done
24106
 
 
24107
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
24108
 
 
24109
 
 
24110
 
fi
24111
 
 
24112
 
 
24113
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
24114
 
 
24115
 
   fi
24116
 
 
24117
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
24118
 
      echo "$as_me:$LINENO: result: not found" >&5
24119
 
echo "${ECHO_T}not found" >&6
24120
 
 
24121
 
   else
24122
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
24123
 
echo "${ECHO_T}$kde_cv_path" >&6
24124
 
      KDECONFIG=$kde_cv_path
24125
 
 
24126
 
   fi
24127
 
 
 
30951
        fi
24128
30952
 
24129
30953
   echo "$as_me:$LINENO: checking for meinproc" >&5
24130
30954
echo $ECHO_N "checking for meinproc... $ECHO_C" >&6
24138
30962
else
24139
30963
 
24140
30964
        kde_cv_path="NONE"
24141
 
        dirs="$kde_default_bindirs"
24142
30965
        kde_save_IFS=$IFS
24143
30966
        IFS=':'
 
30967
        dirs=""
24144
30968
        for dir in $PATH; do
24145
30969
          dirs="$dirs $dir"
24146
 
        done
 
30970
        done
 
30971
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
30972
        else      dirs="$dirs $kde_default_bindirs"
 
30973
        fi
24147
30974
        IFS=$kde_save_IFS
24148
30975
 
24149
30976
        for dir in $dirs; do
24184
31011
   fi
24185
31012
 
24186
31013
 
 
31014
        kde32ornewer=1
 
31015
        if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
 
31016
            kde32ornewer=
 
31017
        else
 
31018
            if test "$kde_qtver" = "3" && test "$kde_qtsubver" -le 1; then
 
31019
                kde32ornewer=
 
31020
            fi
 
31021
        fi
 
31022
 
 
31023
        if test -n "$kde32ornewer"; then
 
31024
 
 
31025
   echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
 
31026
echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6
 
31027
   if test -n "$KCONFIG_COMPILER"; then
 
31028
        kde_cv_path="$KCONFIG_COMPILER";
 
31029
   else
 
31030
        kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
 
31031
 
 
31032
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31034
else
 
31035
 
 
31036
        kde_cv_path="NONE"
 
31037
        kde_save_IFS=$IFS
 
31038
        IFS=':'
 
31039
        dirs=""
 
31040
        for dir in $PATH; do
 
31041
          dirs="$dirs $dir"
 
31042
        done
 
31043
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31044
        else      dirs="$dirs $kde_default_bindirs"
 
31045
        fi
 
31046
        IFS=$kde_save_IFS
 
31047
 
 
31048
        for dir in $dirs; do
 
31049
          if test -x "$dir/kconfig_compiler"; then
 
31050
            if test -n ""
 
31051
            then
 
31052
              evalstr="$dir/kconfig_compiler  2>&1 "
 
31053
              if eval $evalstr; then
 
31054
                kde_cv_path="$dir/kconfig_compiler"
 
31055
                break
 
31056
              fi
 
31057
            else
 
31058
                kde_cv_path="$dir/kconfig_compiler"
 
31059
                break
 
31060
            fi
 
31061
          fi
 
31062
        done
 
31063
 
 
31064
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31065
 
 
31066
 
 
31067
fi
 
31068
 
 
31069
 
 
31070
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31071
 
 
31072
   fi
 
31073
 
 
31074
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31075
      echo "$as_me:$LINENO: result: not found" >&5
 
31076
echo "${ECHO_T}not found" >&6
 
31077
 
 
31078
    { { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
 
31079
Please check whether you installed KDE correctly.
 
31080
" >&5
 
31081
echo "$as_me: error: The important program kconfig_compiler was not found!
 
31082
Please check whether you installed KDE correctly.
 
31083
" >&2;}
 
31084
   { (exit 1); exit 1; }; }
 
31085
 
 
31086
   else
 
31087
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31088
echo "${ECHO_T}$kde_cv_path" >&6
 
31089
      KCONFIG_COMPILER=$kde_cv_path
 
31090
 
 
31091
   fi
 
31092
 
 
31093
 
 
31094
   echo "$as_me:$LINENO: checking for dcopidlng" >&5
 
31095
echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6
 
31096
   if test -n "$DCOPIDLNG"; then
 
31097
        kde_cv_path="$DCOPIDLNG";
 
31098
   else
 
31099
        kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
 
31100
 
 
31101
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31103
else
 
31104
 
 
31105
        kde_cv_path="NONE"
 
31106
        kde_save_IFS=$IFS
 
31107
        IFS=':'
 
31108
        dirs=""
 
31109
        for dir in $PATH; do
 
31110
          dirs="$dirs $dir"
 
31111
        done
 
31112
        if test -z ""; then       dirs="$kde_default_bindirs $dirs"
 
31113
        else      dirs="$dirs $kde_default_bindirs"
 
31114
        fi
 
31115
        IFS=$kde_save_IFS
 
31116
 
 
31117
        for dir in $dirs; do
 
31118
          if test -x "$dir/dcopidlng"; then
 
31119
            if test -n ""
 
31120
            then
 
31121
              evalstr="$dir/dcopidlng  2>&1 "
 
31122
              if eval $evalstr; then
 
31123
                kde_cv_path="$dir/dcopidlng"
 
31124
                break
 
31125
              fi
 
31126
            else
 
31127
                kde_cv_path="$dir/dcopidlng"
 
31128
                break
 
31129
            fi
 
31130
          fi
 
31131
        done
 
31132
 
 
31133
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31134
 
 
31135
 
 
31136
fi
 
31137
 
 
31138
 
 
31139
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31140
 
 
31141
   fi
 
31142
 
 
31143
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31144
      echo "$as_me:$LINENO: result: not found" >&5
 
31145
echo "${ECHO_T}not found" >&6
 
31146
 
 
31147
    { { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
 
31148
Please check whether you installed KDE correctly.
 
31149
" >&5
 
31150
echo "$as_me: error: The important program dcopidlng was not found!
 
31151
Please check whether you installed KDE correctly.
 
31152
" >&2;}
 
31153
   { (exit 1); exit 1; }; }
 
31154
 
 
31155
   else
 
31156
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31157
echo "${ECHO_T}$kde_cv_path" >&6
 
31158
      DCOPIDLNG=$kde_cv_path
 
31159
 
 
31160
   fi
 
31161
 
 
31162
        fi
 
31163
 
 
31164
   echo "$as_me:$LINENO: checking for xmllint" >&5
 
31165
echo $ECHO_N "checking for xmllint... $ECHO_C" >&6
 
31166
   if test -n "$XMLLINT"; then
 
31167
        kde_cv_path="$XMLLINT";
 
31168
   else
 
31169
        kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
 
31170
 
 
31171
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
 
31172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31173
else
 
31174
 
 
31175
        kde_cv_path="NONE"
 
31176
        kde_save_IFS=$IFS
 
31177
        IFS=':'
 
31178
        dirs=""
 
31179
        for dir in $PATH; do
 
31180
          dirs="$dirs $dir"
 
31181
        done
 
31182
        if test -z ""; then       dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
 
31183
        else      dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
 
31184
        fi
 
31185
        IFS=$kde_save_IFS
 
31186
 
 
31187
        for dir in $dirs; do
 
31188
          if test -x "$dir/xmllint"; then
 
31189
            if test -n ""
 
31190
            then
 
31191
              evalstr="$dir/xmllint  2>&1 "
 
31192
              if eval $evalstr; then
 
31193
                kde_cv_path="$dir/xmllint"
 
31194
                break
 
31195
              fi
 
31196
            else
 
31197
                kde_cv_path="$dir/xmllint"
 
31198
                break
 
31199
            fi
 
31200
          fi
 
31201
        done
 
31202
 
 
31203
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
31204
 
 
31205
 
 
31206
fi
 
31207
 
 
31208
 
 
31209
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
31210
 
 
31211
   fi
 
31212
 
 
31213
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
31214
      echo "$as_me:$LINENO: result: not found" >&5
 
31215
echo "${ECHO_T}not found" >&6
 
31216
      XMLLINT=""
 
31217
   else
 
31218
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
 
31219
echo "${ECHO_T}$kde_cv_path" >&6
 
31220
      XMLLINT=$kde_cv_path
 
31221
 
 
31222
   fi
 
31223
 
 
31224
 
24187
31225
        if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then
24188
31226
            kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
24189
31227
            test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
24193
31231
do
24194
31232
  for j in apps/ksgmltools2/customization/kde-chunk.xsl;
24195
31233
  do
24196
 
    echo "configure: 24196: $i/$j" >&5
 
31234
    echo "configure: 31234: $i/$j" >&5
24197
31235
    if test -r "$i/$j"; then
24198
31236
      echo "taking that" >&5
24199
31237
      KDE_XSL_STYLESHEET=$i
24210
31248
        fi
24211
31249
 
24212
31250
        DCOP_DEPENDENCIES='$(DCOPIDL)'
24213
 
 
24214
 
 
24215
 
 
24216
 
 
24217
 
 
24218
 
 
24219
 
 
24220
 
 
24221
 
 
24222
 
        if test -x "$KDECONFIG"; then # it can be "compiled"
24223
 
          kde_libs_prefix=`$KDECONFIG --prefix`
24224
 
          if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
24225
 
               { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
24226
 
                          This means it has been moved since you installed it.
24227
 
                          This won't work. Please recompile kdelibs for the new prefix.
24228
 
                          " >&5
24229
 
echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
24230
 
                          This means it has been moved since you installed it.
24231
 
                          This won't work. Please recompile kdelibs for the new prefix.
24232
 
                          " >&2;}
24233
 
   { (exit 1); exit 1; }; }
24234
 
           fi
24235
 
           kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
24236
 
        else
24237
 
           kde_libs_prefix='$(prefix)'
24238
 
           kde_libs_htmldir='$(kde_htmldir)'
 
31251
        if test -n "$kde32ornewer"; then
 
31252
            KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
 
31253
            DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
 
31254
 
 
31255
 
 
31256
 
24239
31257
        fi
24240
31258
 
24241
31259
 
24260
31278
 
24261
31279
 
24262
31280
 
 
31281
 
 
31282
 
 
31283
 
 
31284
 
 
31285
 
 
31286
 
 
31287
 
 
31288
 
 
31289
kdeinitdir='$(kde_moduledir)'
 
31290
 
 
31291
 
 
31292
 
24263
31293
if test "$kde_qtver" = 1; then
24264
31294
  kde_minidir="$kde_icondir/mini"
24265
31295
else
24294
31324
 
24295
31325
   LIB_KDEPRINT="-lkdeprint"
24296
31326
 
 
31327
   LIB_KUTILS="-lkutils"
 
31328
 
 
31329
   LIB_KDEPIM="-lkdepim"
 
31330
 
24297
31331
# these are for backward compatibility
24298
31332
   LIB_KSYCOCA="-lkio"
24299
31333
 
24336
31370
fi
24337
31371
 
24338
31372
 
 
31373
 
24339
31374
#MIN_CONFIG(3.0)
24340
31375
echo "$as_me:$LINENO: checking for library containing ID3Tag_Link" >&5
24341
31376
echo $ECHO_N "checking for library containing ID3Tag_Link... $ECHO_C" >&6
24345
31380
  ac_func_search_save_LIBS=$LIBS
24346
31381
ac_cv_search_ID3Tag_Link=no
24347
31382
cat >conftest.$ac_ext <<_ACEOF
24348
 
#line $LINENO "configure"
24349
31383
/* confdefs.h.  */
24350
31384
_ACEOF
24351
31385
cat confdefs.h >>conftest.$ac_ext
24369
31403
_ACEOF
24370
31404
rm -f conftest.$ac_objext conftest$ac_exeext
24371
31405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24372
 
  (eval $ac_link) 2>&5
 
31406
  (eval $ac_link) 2>conftest.er1
24373
31407
  ac_status=$?
 
31408
  grep -v '^ *+' conftest.er1 >conftest.err
 
31409
  rm -f conftest.er1
 
31410
  cat conftest.err >&5
24374
31411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375
31412
  (exit $ac_status); } &&
24376
 
         { ac_try='test -s conftest$ac_exeext'
 
31413
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31415
  (eval $ac_try) 2>&5
 
31416
  ac_status=$?
 
31417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31418
  (exit $ac_status); }; } &&
 
31419
         { ac_try='test -s conftest$ac_exeext'
24377
31420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24378
31421
  (eval $ac_try) 2>&5
24379
31422
  ac_status=$?
24385
31428
sed 's/^/| /' conftest.$ac_ext >&5
24386
31429
 
24387
31430
fi
24388
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
31431
rm -f conftest.err conftest.$ac_objext \
 
31432
      conftest$ac_exeext conftest.$ac_ext
24389
31433
if test "$ac_cv_search_ID3Tag_Link" = no; then
24390
31434
  for ac_lib in "id3" "id3 -lstdc++" "id3 -lz" "id3 -lz -lstdc++"; do
24391
31435
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24392
31436
    cat >conftest.$ac_ext <<_ACEOF
24393
 
#line $LINENO "configure"
24394
31437
/* confdefs.h.  */
24395
31438
_ACEOF
24396
31439
cat confdefs.h >>conftest.$ac_ext
24414
31457
_ACEOF
24415
31458
rm -f conftest.$ac_objext conftest$ac_exeext
24416
31459
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24417
 
  (eval $ac_link) 2>&5
 
31460
  (eval $ac_link) 2>conftest.er1
24418
31461
  ac_status=$?
 
31462
  grep -v '^ *+' conftest.er1 >conftest.err
 
31463
  rm -f conftest.er1
 
31464
  cat conftest.err >&5
24419
31465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420
31466
  (exit $ac_status); } &&
24421
 
         { ac_try='test -s conftest$ac_exeext'
 
31467
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31469
  (eval $ac_try) 2>&5
 
31470
  ac_status=$?
 
31471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31472
  (exit $ac_status); }; } &&
 
31473
         { ac_try='test -s conftest$ac_exeext'
24422
31474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24423
31475
  (eval $ac_try) 2>&5
24424
31476
  ac_status=$?
24431
31483
sed 's/^/| /' conftest.$ac_ext >&5
24432
31484
 
24433
31485
fi
24434
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
31486
rm -f conftest.err conftest.$ac_objext \
 
31487
      conftest$ac_exeext conftest.$ac_ext
24435
31488
  done
24436
31489
fi
24437
31490
LIBS=$ac_func_search_save_LIBS
24448
31501
fi
24449
31502
 
24450
31503
 
 
31504
# Check if old id3lib without VBR support
 
31505
 
 
31506
 
 
31507
  echo "$as_me:$LINENO: checking for id3lib VBR support" >&5
 
31508
echo $ECHO_N "checking for id3lib VBR support... $ECHO_C" >&6
 
31509
 
 
31510
 
 
31511
   ac_ext=cc
 
31512
ac_cpp='$CXXCPP $CPPFLAGS'
 
31513
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31514
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31515
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
31516
 
 
31517
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
31518
 
 
31519
 
 
31520
cat > conftest.$ac_ext <<EOF
 
31521
#include <id3/globals.h>
 
31522
int main() {
 
31523
  Mp3_Headerinfo info;
 
31524
  info.vbr_bitrate = 0;
 
31525
  return 0;
 
31526
}
 
31527
EOF
 
31528
 
 
31529
  ac_save_CPPFLAGS=$CPPFLAGS
 
31530
  CPPFLAGS="$all_includes $CPPFLAGS"
 
31531
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31532
  (eval $ac_compile) 2>&5
 
31533
  ac_status=$?
 
31534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31535
  (exit $ac_status); }; then
 
31536
    echo "$as_me:$LINENO: result: yes" >&5
 
31537
echo "${ECHO_T}yes" >&6
 
31538
  else
 
31539
    echo "$as_me:$LINENO: result: no" >&5
 
31540
echo "${ECHO_T}no" >&6
 
31541
 
 
31542
cat >>confdefs.h <<\_ACEOF
 
31543
#define HAVE_NO_ID3LIB_VBR 1
 
31544
_ACEOF
 
31545
 
 
31546
  fi
 
31547
  CPPFLAGS=$ac_save_CPPFLAGS
 
31548
 
 
31549
  ac_ext=c
 
31550
ac_cpp='$CPP $CPPFLAGS'
 
31551
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31552
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31553
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
31554
 
 
31555
 
 
31556
 
 
31557
 
24451
31558
# Check whether --with-kde or --without-kde was given.
24452
31559
if test "${with_kde+set}" = set; then
24453
31560
  withval="$with_kde"
24459
31566
if test "$with_kde" != "no"; then
24460
31567
  CONFIG_USE_KDE=1
24461
31568
 
 
31569
 
24462
31570
cat >>confdefs.h <<\_ACEOF
24463
31571
#define CONFIG_USE_KDE 1
24464
31572
_ACEOF
24465
31573
 
24466
 
  cp -f kid3/kid3.h.kde kid3/kid3.h
 
31574
fi
 
31575
 
 
31576
 
 
31577
if test "$with_kde" = "yes"; then
 
31578
  CONFIG_USE_KDE_TRUE=
 
31579
  CONFIG_USE_KDE_FALSE='#'
24467
31580
else
24468
 
  cp -f kid3/kid3.h.qtonly kid3/kid3.h
 
31581
  CONFIG_USE_KDE_TRUE='#'
 
31582
  CONFIG_USE_KDE_FALSE=
24469
31583
fi
24470
31584
 
 
31585
 
24471
31586
# precompiled headers
24472
31587
# Check whether --enable-gcc-pch or --disable-gcc-pch was given.
24473
31588
if test "${enable_gcc_pch+set}" = set; then
24504
31619
fi
24505
31620
 
24506
31621
 
 
31622
# MusicBrainz support with libtunepimp
 
31623
 
 
31624
# Check whether --with-musicbrainz or --without-musicbrainz was given.
 
31625
if test "${with_musicbrainz+set}" = set; then
 
31626
  withval="$with_musicbrainz"
 
31627
  with_musicbrainz="$withval"
 
31628
else
 
31629
  with_musicbrainz=yes
 
31630
 
 
31631
fi;
 
31632
if test "$with_musicbrainz" != "no"; then
 
31633
 
 
31634
 
 
31635
 
 
31636
 
 
31637
   kde_safe_cppflags=$CPPFLAGS
 
31638
   CPPFLAGS="$CPPFLAGS $all_includes"
 
31639
    ac_ext=cc
 
31640
ac_cpp='$CXXCPP $CPPFLAGS'
 
31641
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31642
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31643
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
31644
 
 
31645
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
31646
 
 
31647
 
 
31648
   if test "${ac_cv_header_tunepimp_tp_c_h+set}" = set; then
 
31649
  echo "$as_me:$LINENO: checking for tunepimp/tp_c.h" >&5
 
31650
echo $ECHO_N "checking for tunepimp/tp_c.h... $ECHO_C" >&6
 
31651
if test "${ac_cv_header_tunepimp_tp_c_h+set}" = set; then
 
31652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31653
fi
 
31654
echo "$as_me:$LINENO: result: $ac_cv_header_tunepimp_tp_c_h" >&5
 
31655
echo "${ECHO_T}$ac_cv_header_tunepimp_tp_c_h" >&6
 
31656
else
 
31657
  # Is the header compilable?
 
31658
echo "$as_me:$LINENO: checking tunepimp/tp_c.h usability" >&5
 
31659
echo $ECHO_N "checking tunepimp/tp_c.h usability... $ECHO_C" >&6
 
31660
cat >conftest.$ac_ext <<_ACEOF
 
31661
/* confdefs.h.  */
 
31662
_ACEOF
 
31663
cat confdefs.h >>conftest.$ac_ext
 
31664
cat >>conftest.$ac_ext <<_ACEOF
 
31665
/* end confdefs.h.  */
 
31666
$ac_includes_default
 
31667
#include <tunepimp/tp_c.h>
 
31668
_ACEOF
 
31669
rm -f conftest.$ac_objext
 
31670
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31671
  (eval $ac_compile) 2>conftest.er1
 
31672
  ac_status=$?
 
31673
  grep -v '^ *+' conftest.er1 >conftest.err
 
31674
  rm -f conftest.er1
 
31675
  cat conftest.err >&5
 
31676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31677
  (exit $ac_status); } &&
 
31678
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
31679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31680
  (eval $ac_try) 2>&5
 
31681
  ac_status=$?
 
31682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31683
  (exit $ac_status); }; } &&
 
31684
         { ac_try='test -s conftest.$ac_objext'
 
31685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31686
  (eval $ac_try) 2>&5
 
31687
  ac_status=$?
 
31688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31689
  (exit $ac_status); }; }; then
 
31690
  ac_header_compiler=yes
 
31691
else
 
31692
  echo "$as_me: failed program was:" >&5
 
31693
sed 's/^/| /' conftest.$ac_ext >&5
 
31694
 
 
31695
ac_header_compiler=no
 
31696
fi
 
31697
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31698
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
31699
echo "${ECHO_T}$ac_header_compiler" >&6
 
31700
 
 
31701
# Is the header present?
 
31702
echo "$as_me:$LINENO: checking tunepimp/tp_c.h presence" >&5
 
31703
echo $ECHO_N "checking tunepimp/tp_c.h presence... $ECHO_C" >&6
 
31704
cat >conftest.$ac_ext <<_ACEOF
 
31705
/* confdefs.h.  */
 
31706
_ACEOF
 
31707
cat confdefs.h >>conftest.$ac_ext
 
31708
cat >>conftest.$ac_ext <<_ACEOF
 
31709
/* end confdefs.h.  */
 
31710
#include <tunepimp/tp_c.h>
 
31711
_ACEOF
 
31712
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
31713
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
31714
  ac_status=$?
 
31715
  grep -v '^ *+' conftest.er1 >conftest.err
 
31716
  rm -f conftest.er1
 
31717
  cat conftest.err >&5
 
31718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31719
  (exit $ac_status); } >/dev/null; then
 
31720
  if test -s conftest.err; then
 
31721
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
31722
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
31723
  else
 
31724
    ac_cpp_err=
 
31725
  fi
 
31726
else
 
31727
  ac_cpp_err=yes
 
31728
fi
 
31729
if test -z "$ac_cpp_err"; then
 
31730
  ac_header_preproc=yes
 
31731
else
 
31732
  echo "$as_me: failed program was:" >&5
 
31733
sed 's/^/| /' conftest.$ac_ext >&5
 
31734
 
 
31735
  ac_header_preproc=no
 
31736
fi
 
31737
rm -f conftest.err conftest.$ac_ext
 
31738
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
31739
echo "${ECHO_T}$ac_header_preproc" >&6
 
31740
 
 
31741
# So?  What about this header?
 
31742
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
31743
  yes:no: )
 
31744
    { echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
31745
echo "$as_me: WARNING: tunepimp/tp_c.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
31746
    { echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: proceeding with the compiler's result" >&5
 
31747
echo "$as_me: WARNING: tunepimp/tp_c.h: proceeding with the compiler's result" >&2;}
 
31748
    ac_header_preproc=yes
 
31749
    ;;
 
31750
  no:yes:* )
 
31751
    { echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: present but cannot be compiled" >&5
 
31752
echo "$as_me: WARNING: tunepimp/tp_c.h: present but cannot be compiled" >&2;}
 
31753
    { echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h:     check for missing prerequisite headers?" >&5
 
31754
echo "$as_me: WARNING: tunepimp/tp_c.h:     check for missing prerequisite headers?" >&2;}
 
31755
    { echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: see the Autoconf documentation" >&5
 
31756
echo "$as_me: WARNING: tunepimp/tp_c.h: see the Autoconf documentation" >&2;}
 
31757
    { echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h:     section \"Present But Cannot Be Compiled\"" >&5
 
31758
echo "$as_me: WARNING: tunepimp/tp_c.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
31759
    { echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: proceeding with the preprocessor's result" >&5
 
31760
echo "$as_me: WARNING: tunepimp/tp_c.h: proceeding with the preprocessor's result" >&2;}
 
31761
    { echo "$as_me:$LINENO: WARNING: tunepimp/tp_c.h: in the future, the compiler will take precedence" >&5
 
31762
echo "$as_me: WARNING: tunepimp/tp_c.h: in the future, the compiler will take precedence" >&2;}
 
31763
    (
 
31764
      cat <<\_ASBOX
 
31765
## ------------------------------------------ ##
 
31766
## Report this to the AC_PACKAGE_NAME lists.  ##
 
31767
## ------------------------------------------ ##
 
31768
_ASBOX
 
31769
    ) |
 
31770
      sed "s/^/$as_me: WARNING:     /" >&2
 
31771
    ;;
 
31772
esac
 
31773
echo "$as_me:$LINENO: checking for tunepimp/tp_c.h" >&5
 
31774
echo $ECHO_N "checking for tunepimp/tp_c.h... $ECHO_C" >&6
 
31775
if test "${ac_cv_header_tunepimp_tp_c_h+set}" = set; then
 
31776
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31777
else
 
31778
  ac_cv_header_tunepimp_tp_c_h=$ac_header_preproc
 
31779
fi
 
31780
echo "$as_me:$LINENO: result: $ac_cv_header_tunepimp_tp_c_h" >&5
 
31781
echo "${ECHO_T}$ac_cv_header_tunepimp_tp_c_h" >&6
 
31782
 
 
31783
fi
 
31784
if test $ac_cv_header_tunepimp_tp_c_h = yes; then
 
31785
  build_musicbrainz="yes"
 
31786
else
 
31787
  build_musicbrainz="no"
 
31788
fi
 
31789
 
 
31790
 
 
31791
   CPPFLAGS=$kde_safe_cppflags
 
31792
   ac_ext=c
 
31793
ac_cpp='$CPP $CPPFLAGS'
 
31794
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31795
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31796
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
31797
 
 
31798
 
 
31799
fi
 
31800
if test "$build_musicbrainz" = "yes"; then
 
31801
  HAVE_TUNEPIMP=1
 
31802
 
 
31803
 
 
31804
cat >>confdefs.h <<\_ACEOF
 
31805
#define HAVE_TUNEPIMP 1
 
31806
_ACEOF
 
31807
 
 
31808
  LIB_TUNEPIMP="-ltunepimp"
 
31809
  have_tunepimp=yes
 
31810
else
 
31811
  LIB_TUNEPIMP=""
 
31812
  have_tunepimp=no
 
31813
fi
 
31814
 
 
31815
 
 
31816
 
 
31817
if test "$build_musicbrainz" = "yes"; then
 
31818
  HAVE_TUNEPIMP_TRUE=
 
31819
  HAVE_TUNEPIMP_FALSE='#'
 
31820
else
 
31821
  HAVE_TUNEPIMP_TRUE='#'
 
31822
  HAVE_TUNEPIMP_FALSE=
 
31823
fi
 
31824
 
 
31825
 
 
31826
# ogg/vorbis support with libvorbis
 
31827
 
 
31828
# Check whether --with-vorbis or --without-vorbis was given.
 
31829
if test "${with_vorbis+set}" = set; then
 
31830
  withval="$with_vorbis"
 
31831
  with_vorbis="$withval"
 
31832
else
 
31833
  with_vorbis=yes
 
31834
 
 
31835
fi;
 
31836
if test "$with_vorbis" != "no"; then
 
31837
 
 
31838
 
 
31839
 
 
31840
   kde_safe_cppflags=$CPPFLAGS
 
31841
   CPPFLAGS="$CPPFLAGS $all_includes"
 
31842
    ac_ext=cc
 
31843
ac_cpp='$CXXCPP $CPPFLAGS'
 
31844
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31845
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31846
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
31847
 
 
31848
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
31849
 
 
31850
 
 
31851
   if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
 
31852
  echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
 
31853
echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6
 
31854
if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
 
31855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31856
fi
 
31857
echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
 
31858
echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6
 
31859
else
 
31860
  # Is the header compilable?
 
31861
echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
 
31862
echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6
 
31863
cat >conftest.$ac_ext <<_ACEOF
 
31864
/* confdefs.h.  */
 
31865
_ACEOF
 
31866
cat confdefs.h >>conftest.$ac_ext
 
31867
cat >>conftest.$ac_ext <<_ACEOF
 
31868
/* end confdefs.h.  */
 
31869
$ac_includes_default
 
31870
#include <vorbis/codec.h>
 
31871
_ACEOF
 
31872
rm -f conftest.$ac_objext
 
31873
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31874
  (eval $ac_compile) 2>conftest.er1
 
31875
  ac_status=$?
 
31876
  grep -v '^ *+' conftest.er1 >conftest.err
 
31877
  rm -f conftest.er1
 
31878
  cat conftest.err >&5
 
31879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31880
  (exit $ac_status); } &&
 
31881
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
31882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31883
  (eval $ac_try) 2>&5
 
31884
  ac_status=$?
 
31885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31886
  (exit $ac_status); }; } &&
 
31887
         { ac_try='test -s conftest.$ac_objext'
 
31888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31889
  (eval $ac_try) 2>&5
 
31890
  ac_status=$?
 
31891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31892
  (exit $ac_status); }; }; then
 
31893
  ac_header_compiler=yes
 
31894
else
 
31895
  echo "$as_me: failed program was:" >&5
 
31896
sed 's/^/| /' conftest.$ac_ext >&5
 
31897
 
 
31898
ac_header_compiler=no
 
31899
fi
 
31900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31901
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
31902
echo "${ECHO_T}$ac_header_compiler" >&6
 
31903
 
 
31904
# Is the header present?
 
31905
echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
 
31906
echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6
 
31907
cat >conftest.$ac_ext <<_ACEOF
 
31908
/* confdefs.h.  */
 
31909
_ACEOF
 
31910
cat confdefs.h >>conftest.$ac_ext
 
31911
cat >>conftest.$ac_ext <<_ACEOF
 
31912
/* end confdefs.h.  */
 
31913
#include <vorbis/codec.h>
 
31914
_ACEOF
 
31915
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
31916
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
31917
  ac_status=$?
 
31918
  grep -v '^ *+' conftest.er1 >conftest.err
 
31919
  rm -f conftest.er1
 
31920
  cat conftest.err >&5
 
31921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31922
  (exit $ac_status); } >/dev/null; then
 
31923
  if test -s conftest.err; then
 
31924
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
31925
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
31926
  else
 
31927
    ac_cpp_err=
 
31928
  fi
 
31929
else
 
31930
  ac_cpp_err=yes
 
31931
fi
 
31932
if test -z "$ac_cpp_err"; then
 
31933
  ac_header_preproc=yes
 
31934
else
 
31935
  echo "$as_me: failed program was:" >&5
 
31936
sed 's/^/| /' conftest.$ac_ext >&5
 
31937
 
 
31938
  ac_header_preproc=no
 
31939
fi
 
31940
rm -f conftest.err conftest.$ac_ext
 
31941
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
31942
echo "${ECHO_T}$ac_header_preproc" >&6
 
31943
 
 
31944
# So?  What about this header?
 
31945
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
31946
  yes:no: )
 
31947
    { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
31948
echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
31949
    { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
 
31950
echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
 
31951
    ac_header_preproc=yes
 
31952
    ;;
 
31953
  no:yes:* )
 
31954
    { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
 
31955
echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
 
31956
    { echo "$as_me:$LINENO: WARNING: vorbis/codec.h:     check for missing prerequisite headers?" >&5
 
31957
echo "$as_me: WARNING: vorbis/codec.h:     check for missing prerequisite headers?" >&2;}
 
31958
    { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
 
31959
echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
 
31960
    { echo "$as_me:$LINENO: WARNING: vorbis/codec.h:     section \"Present But Cannot Be Compiled\"" >&5
 
31961
echo "$as_me: WARNING: vorbis/codec.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
31962
    { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
 
31963
echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
 
31964
    { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
 
31965
echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
 
31966
    (
 
31967
      cat <<\_ASBOX
 
31968
## ------------------------------------------ ##
 
31969
## Report this to the AC_PACKAGE_NAME lists.  ##
 
31970
## ------------------------------------------ ##
 
31971
_ASBOX
 
31972
    ) |
 
31973
      sed "s/^/$as_me: WARNING:     /" >&2
 
31974
    ;;
 
31975
esac
 
31976
echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
 
31977
echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6
 
31978
if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
 
31979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31980
else
 
31981
  ac_cv_header_vorbis_codec_h=$ac_header_preproc
 
31982
fi
 
31983
echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
 
31984
echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6
 
31985
 
 
31986
fi
 
31987
if test $ac_cv_header_vorbis_codec_h = yes; then
 
31988
  build_vorbis="yes"
 
31989
else
 
31990
  build_vorbis="no"
 
31991
fi
 
31992
 
 
31993
 
 
31994
   CPPFLAGS=$kde_safe_cppflags
 
31995
   ac_ext=c
 
31996
ac_cpp='$CPP $CPPFLAGS'
 
31997
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31998
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31999
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
32000
 
 
32001
 
 
32002
fi
 
32003
if test "$build_vorbis" = "yes"; then
 
32004
  HAVE_VORBIS=1
 
32005
 
 
32006
 
 
32007
cat >>confdefs.h <<\_ACEOF
 
32008
#define HAVE_VORBIS 1
 
32009
_ACEOF
 
32010
 
 
32011
  LIB_VORBIS="-lvorbis -lvorbisfile"
 
32012
  have_vorbis=yes
 
32013
else
 
32014
  LIB_VORBIS=""
 
32015
  have_vorbis=no
 
32016
fi
 
32017
 
 
32018
 
 
32019
 
 
32020
if test "$build_vorbis" = "yes"; then
 
32021
  HAVE_VORBIS_TRUE=
 
32022
  HAVE_VORBIS_FALSE='#'
 
32023
else
 
32024
  HAVE_VORBIS_TRUE='#'
 
32025
  HAVE_VORBIS_FALSE=
 
32026
fi
 
32027
 
 
32028
 
 
32029
# FLAC support with libFLAC++
 
32030
 
 
32031
# Check whether --with-flac or --without-flac was given.
 
32032
if test "${with_flac+set}" = set; then
 
32033
  withval="$with_flac"
 
32034
  with_flac="$withval"
 
32035
else
 
32036
  with_flac=yes
 
32037
 
 
32038
fi;
 
32039
if test "$with_flac" != "no"; then
 
32040
 
 
32041
 
 
32042
 
 
32043
   kde_safe_cppflags=$CPPFLAGS
 
32044
   CPPFLAGS="$CPPFLAGS $all_includes"
 
32045
    ac_ext=cc
 
32046
ac_cpp='$CXXCPP $CPPFLAGS'
 
32047
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
32048
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
32049
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
32050
 
 
32051
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
32052
 
 
32053
 
 
32054
   if test "${ac_cv_header_FLACpp_metadata_h+set}" = set; then
 
32055
  echo "$as_me:$LINENO: checking for FLAC++/metadata.h" >&5
 
32056
echo $ECHO_N "checking for FLAC++/metadata.h... $ECHO_C" >&6
 
32057
if test "${ac_cv_header_FLACpp_metadata_h+set}" = set; then
 
32058
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32059
fi
 
32060
echo "$as_me:$LINENO: result: $ac_cv_header_FLACpp_metadata_h" >&5
 
32061
echo "${ECHO_T}$ac_cv_header_FLACpp_metadata_h" >&6
 
32062
else
 
32063
  # Is the header compilable?
 
32064
echo "$as_me:$LINENO: checking FLAC++/metadata.h usability" >&5
 
32065
echo $ECHO_N "checking FLAC++/metadata.h usability... $ECHO_C" >&6
 
32066
cat >conftest.$ac_ext <<_ACEOF
 
32067
/* confdefs.h.  */
 
32068
_ACEOF
 
32069
cat confdefs.h >>conftest.$ac_ext
 
32070
cat >>conftest.$ac_ext <<_ACEOF
 
32071
/* end confdefs.h.  */
 
32072
$ac_includes_default
 
32073
#include <FLAC++/metadata.h>
 
32074
_ACEOF
 
32075
rm -f conftest.$ac_objext
 
32076
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32077
  (eval $ac_compile) 2>conftest.er1
 
32078
  ac_status=$?
 
32079
  grep -v '^ *+' conftest.er1 >conftest.err
 
32080
  rm -f conftest.er1
 
32081
  cat conftest.err >&5
 
32082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32083
  (exit $ac_status); } &&
 
32084
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
32085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32086
  (eval $ac_try) 2>&5
 
32087
  ac_status=$?
 
32088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32089
  (exit $ac_status); }; } &&
 
32090
         { ac_try='test -s conftest.$ac_objext'
 
32091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32092
  (eval $ac_try) 2>&5
 
32093
  ac_status=$?
 
32094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32095
  (exit $ac_status); }; }; then
 
32096
  ac_header_compiler=yes
 
32097
else
 
32098
  echo "$as_me: failed program was:" >&5
 
32099
sed 's/^/| /' conftest.$ac_ext >&5
 
32100
 
 
32101
ac_header_compiler=no
 
32102
fi
 
32103
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32104
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
32105
echo "${ECHO_T}$ac_header_compiler" >&6
 
32106
 
 
32107
# Is the header present?
 
32108
echo "$as_me:$LINENO: checking FLAC++/metadata.h presence" >&5
 
32109
echo $ECHO_N "checking FLAC++/metadata.h presence... $ECHO_C" >&6
 
32110
cat >conftest.$ac_ext <<_ACEOF
 
32111
/* confdefs.h.  */
 
32112
_ACEOF
 
32113
cat confdefs.h >>conftest.$ac_ext
 
32114
cat >>conftest.$ac_ext <<_ACEOF
 
32115
/* end confdefs.h.  */
 
32116
#include <FLAC++/metadata.h>
 
32117
_ACEOF
 
32118
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
32119
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
32120
  ac_status=$?
 
32121
  grep -v '^ *+' conftest.er1 >conftest.err
 
32122
  rm -f conftest.er1
 
32123
  cat conftest.err >&5
 
32124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32125
  (exit $ac_status); } >/dev/null; then
 
32126
  if test -s conftest.err; then
 
32127
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
32128
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
32129
  else
 
32130
    ac_cpp_err=
 
32131
  fi
 
32132
else
 
32133
  ac_cpp_err=yes
 
32134
fi
 
32135
if test -z "$ac_cpp_err"; then
 
32136
  ac_header_preproc=yes
 
32137
else
 
32138
  echo "$as_me: failed program was:" >&5
 
32139
sed 's/^/| /' conftest.$ac_ext >&5
 
32140
 
 
32141
  ac_header_preproc=no
 
32142
fi
 
32143
rm -f conftest.err conftest.$ac_ext
 
32144
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
32145
echo "${ECHO_T}$ac_header_preproc" >&6
 
32146
 
 
32147
# So?  What about this header?
 
32148
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
32149
  yes:no: )
 
32150
    { echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
32151
echo "$as_me: WARNING: FLAC++/metadata.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
32152
    { echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: proceeding with the compiler's result" >&5
 
32153
echo "$as_me: WARNING: FLAC++/metadata.h: proceeding with the compiler's result" >&2;}
 
32154
    ac_header_preproc=yes
 
32155
    ;;
 
32156
  no:yes:* )
 
32157
    { echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: present but cannot be compiled" >&5
 
32158
echo "$as_me: WARNING: FLAC++/metadata.h: present but cannot be compiled" >&2;}
 
32159
    { echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h:     check for missing prerequisite headers?" >&5
 
32160
echo "$as_me: WARNING: FLAC++/metadata.h:     check for missing prerequisite headers?" >&2;}
 
32161
    { echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: see the Autoconf documentation" >&5
 
32162
echo "$as_me: WARNING: FLAC++/metadata.h: see the Autoconf documentation" >&2;}
 
32163
    { echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h:     section \"Present But Cannot Be Compiled\"" >&5
 
32164
echo "$as_me: WARNING: FLAC++/metadata.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
32165
    { echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: proceeding with the preprocessor's result" >&5
 
32166
echo "$as_me: WARNING: FLAC++/metadata.h: proceeding with the preprocessor's result" >&2;}
 
32167
    { echo "$as_me:$LINENO: WARNING: FLAC++/metadata.h: in the future, the compiler will take precedence" >&5
 
32168
echo "$as_me: WARNING: FLAC++/metadata.h: in the future, the compiler will take precedence" >&2;}
 
32169
    (
 
32170
      cat <<\_ASBOX
 
32171
## ------------------------------------------ ##
 
32172
## Report this to the AC_PACKAGE_NAME lists.  ##
 
32173
## ------------------------------------------ ##
 
32174
_ASBOX
 
32175
    ) |
 
32176
      sed "s/^/$as_me: WARNING:     /" >&2
 
32177
    ;;
 
32178
esac
 
32179
echo "$as_me:$LINENO: checking for FLAC++/metadata.h" >&5
 
32180
echo $ECHO_N "checking for FLAC++/metadata.h... $ECHO_C" >&6
 
32181
if test "${ac_cv_header_FLACpp_metadata_h+set}" = set; then
 
32182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32183
else
 
32184
  ac_cv_header_FLACpp_metadata_h=$ac_header_preproc
 
32185
fi
 
32186
echo "$as_me:$LINENO: result: $ac_cv_header_FLACpp_metadata_h" >&5
 
32187
echo "${ECHO_T}$ac_cv_header_FLACpp_metadata_h" >&6
 
32188
 
 
32189
fi
 
32190
if test $ac_cv_header_FLACpp_metadata_h = yes; then
 
32191
  build_flac="yes"
 
32192
else
 
32193
  build_flac="no"
 
32194
fi
 
32195
 
 
32196
 
 
32197
   CPPFLAGS=$kde_safe_cppflags
 
32198
   ac_ext=c
 
32199
ac_cpp='$CPP $CPPFLAGS'
 
32200
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
32201
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
32202
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
32203
 
 
32204
 
 
32205
fi
 
32206
if test "$build_flac" = "yes"; then
 
32207
  HAVE_FLAC=1
 
32208
 
 
32209
 
 
32210
cat >>confdefs.h <<\_ACEOF
 
32211
#define HAVE_FLAC 1
 
32212
_ACEOF
 
32213
 
 
32214
  LIB_FLAC="-lFLAC++ -lFLAC"
 
32215
  have_flac=yes
 
32216
else
 
32217
  LIB_FLAC=""
 
32218
  have_flac=no
 
32219
fi
 
32220
 
 
32221
 
 
32222
 
 
32223
if test "$build_flac" = "yes"; then
 
32224
  HAVE_FLAC_TRUE=
 
32225
  HAVE_FLAC_FALSE='#'
 
32226
else
 
32227
  HAVE_FLAC_TRUE='#'
 
32228
  HAVE_FLAC_FALSE=
 
32229
fi
 
32230
 
 
32231
 
 
32232
# Check if old FLAC++ without Prototype::operator ::FLAC__StreamMetadata const *()
 
32233
 
 
32234
 
 
32235
  echo "$as_me:$LINENO: checking for FLAC__StreamMetadata operator" >&5
 
32236
echo $ECHO_N "checking for FLAC__StreamMetadata operator... $ECHO_C" >&6
 
32237
 
 
32238
 
 
32239
   ac_ext=cc
 
32240
ac_cpp='$CXXCPP $CPPFLAGS'
 
32241
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
32242
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
32243
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
32244
 
 
32245
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
32246
 
 
32247
 
 
32248
cat > conftest.$ac_ext <<EOF
 
32249
#include <FLAC++/metadata.h>
 
32250
int main() {
 
32251
  FLAC::Metadata::VorbisComment vc;
 
32252
  const ::FLAC__StreamMetadata* fsmd = vc;
 
32253
  return 0;
 
32254
}
 
32255
EOF
 
32256
 
 
32257
  ac_save_CPPFLAGS=$CPPFLAGS
 
32258
  CPPFLAGS="$all_includes $CPPFLAGS"
 
32259
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32260
  (eval $ac_compile) 2>&5
 
32261
  ac_status=$?
 
32262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32263
  (exit $ac_status); }; then
 
32264
    echo "$as_me:$LINENO: result: yes" >&5
 
32265
echo "${ECHO_T}yes" >&6
 
32266
  else
 
32267
    echo "$as_me:$LINENO: result: no" >&5
 
32268
echo "${ECHO_T}no" >&6
 
32269
 
 
32270
cat >>confdefs.h <<\_ACEOF
 
32271
#define HAVE_NO_FLAC_STREAMMETADATA_OPERATOR 1
 
32272
_ACEOF
 
32273
 
 
32274
  fi
 
32275
  CPPFLAGS=$ac_save_CPPFLAGS
 
32276
 
 
32277
  ac_ext=c
 
32278
ac_cpp='$CPP $CPPFLAGS'
 
32279
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
32280
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
32281
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
32282
 
 
32283
 
 
32284
 
24507
32285
 
24508
32286
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
24509
32287
 
24516
32294
  done
24517
32295
fi
24518
32296
 
 
32297
ac_topsubdirs=
24519
32298
if test -s $srcdir/inst-apps; then
24520
32299
  ac_topsubdirs="`cat $srcdir/inst-apps`"
24521
 
else
 
32300
elif test -s $srcdir/subdirs; then
24522
32301
  ac_topsubdirs="`cat $srcdir/subdirs`"
24523
32302
fi
24524
32303
 
24537
32316
  fi
24538
32317
  echo "$as_me:$LINENO: result: $install_it" >&5
24539
32318
echo "${ECHO_T}$install_it" >&6
24540
 
  vari=`echo $i | sed -e 's,[-+.],_,g'`
 
32319
  vari=`echo $i | sed -e 's,[-+.@],_,g'`
24541
32320
  if test $install_it = "yes"; then
24542
32321
    TOPSUBDIRS="$TOPSUBDIRS $i"
24543
32322
    eval "$vari""_SUBDIR_included=yes"
24590
32369
      # `set' does not quote correctly, so add quotes (double-quote
24591
32370
      # substitution turns \\\\ into \\, and sed turns \\ into \).
24592
32371
      sed -n \
24593
 
        "s/'/'\\\\''/g;
24594
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
32372
        "s/'/'\\\\''/g;
 
32373
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24595
32374
      ;;
24596
32375
    *)
24597
32376
      # `set' quotes correctly as required by POSIX, so do not add quotes.
24598
32377
      sed -n \
24599
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
32378
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24600
32379
      ;;
24601
32380
    esac;
24602
32381
} |
24626
32405
# trailing colons and then remove the whole line if VPATH becomes empty
24627
32406
# (actually we leave an empty line to preserve line numbers).
24628
32407
if test "x$srcdir" = x.; then
24629
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
32408
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
24630
32409
s/:*\$(srcdir):*/:/;
24631
32410
s/:*\${srcdir}:*/:/;
24632
32411
s/:*@srcdir@:*/:/;
24633
 
s/^\([^=]*=[    ]*\):*/\1/;
 
32412
s/^\([^=]*=[     ]*\):*/\1/;
24634
32413
s/:*$//;
24635
 
s/^[^=]*=[      ]*$//;
 
32414
s/^[^=]*=[       ]*$//;
24636
32415
}'
24637
32416
fi
24638
32417
 
24643
32422
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24644
32423
  # 1. Remove the extension, and $U if already installed.
24645
32424
  ac_i=`echo "$ac_i" |
24646
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
32425
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24647
32426
  # 2. Add them.
24648
32427
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24649
32428
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24674
32453
Usually this means the macro was only invoked conditionally." >&2;}
24675
32454
   { (exit 1); exit 1; }; }
24676
32455
fi
 
32456
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
 
32457
  { { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
 
32458
Usually this means the macro was only invoked conditionally." >&5
 
32459
echo "$as_me: error: conditional \"include_ARTS\" was never defined.
 
32460
Usually this means the macro was only invoked conditionally." >&2;}
 
32461
   { (exit 1); exit 1; }; }
 
32462
fi
 
32463
if test -z "${CONFIG_USE_KDE_TRUE}" && test -z "${CONFIG_USE_KDE_FALSE}"; then
 
32464
  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_USE_KDE\" was never defined.
 
32465
Usually this means the macro was only invoked conditionally." >&5
 
32466
echo "$as_me: error: conditional \"CONFIG_USE_KDE\" was never defined.
 
32467
Usually this means the macro was only invoked conditionally." >&2;}
 
32468
   { (exit 1); exit 1; }; }
 
32469
fi
24677
32470
if test -z "${GCC_PCH_TRUE}" && test -z "${GCC_PCH_FALSE}"; then
24678
32471
  { { echo "$as_me:$LINENO: error: conditional \"GCC_PCH\" was never defined.
24679
32472
Usually this means the macro was only invoked conditionally." >&5
24681
32474
Usually this means the macro was only invoked conditionally." >&2;}
24682
32475
   { (exit 1); exit 1; }; }
24683
32476
fi
 
32477
if test -z "${HAVE_TUNEPIMP_TRUE}" && test -z "${HAVE_TUNEPIMP_FALSE}"; then
 
32478
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_TUNEPIMP\" was never defined.
 
32479
Usually this means the macro was only invoked conditionally." >&5
 
32480
echo "$as_me: error: conditional \"HAVE_TUNEPIMP\" was never defined.
 
32481
Usually this means the macro was only invoked conditionally." >&2;}
 
32482
   { (exit 1); exit 1; }; }
 
32483
fi
 
32484
if test -z "${HAVE_VORBIS_TRUE}" && test -z "${HAVE_VORBIS_FALSE}"; then
 
32485
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_VORBIS\" was never defined.
 
32486
Usually this means the macro was only invoked conditionally." >&5
 
32487
echo "$as_me: error: conditional \"HAVE_VORBIS\" was never defined.
 
32488
Usually this means the macro was only invoked conditionally." >&2;}
 
32489
   { (exit 1); exit 1; }; }
 
32490
fi
 
32491
if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
 
32492
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLAC\" was never defined.
 
32493
Usually this means the macro was only invoked conditionally." >&5
 
32494
echo "$as_me: error: conditional \"HAVE_FLAC\" was never defined.
 
32495
Usually this means the macro was only invoked conditionally." >&2;}
 
32496
   { (exit 1); exit 1; }; }
 
32497
fi
24684
32498
 
24685
32499
: ${CONFIG_STATUS=./config.status}
24686
32500
ac_clean_files_save=$ac_clean_files
24715
32529
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24716
32530
  set -o posix
24717
32531
fi
 
32532
DUALCASE=1; export DUALCASE # for MKS sh
24718
32533
 
24719
32534
# Support unset when possible.
24720
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
32535
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24721
32536
  as_unset=unset
24722
32537
else
24723
32538
  as_unset=false
24736
32551
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24737
32552
  LC_TELEPHONE LC_TIME
24738
32553
do
24739
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
32554
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24740
32555
    eval $as_var=C; export $as_var
24741
32556
  else
24742
32557
    $as_unset $as_var
24915
32730
if mkdir -p . 2>/dev/null; then
24916
32731
  as_mkdir_p=:
24917
32732
else
 
32733
  test -d ./-p && rmdir ./-p
24918
32734
  as_mkdir_p=false
24919
32735
fi
24920
32736
 
24921
32737
as_executable_p="test -f"
24922
32738
 
24923
32739
# Sed expression to map a string onto a valid CPP name.
24924
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
32740
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24925
32741
 
24926
32742
# Sed expression to map a string onto a valid variable name.
24927
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
32743
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24928
32744
 
24929
32745
 
24930
32746
# IFS
24951
32767
cat >&5 <<_CSEOF
24952
32768
 
24953
32769
This file was extended by $as_me, which was
24954
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
32770
generated by GNU Autoconf 2.59.  Invocation command line was
24955
32771
 
24956
32772
  CONFIG_FILES    = $CONFIG_FILES
24957
32773
  CONFIG_HEADERS  = $CONFIG_HEADERS
24995
32811
  -d, --debug      don't remove temporary files
24996
32812
      --recheck    update $as_me by reconfiguring in the same conditions
24997
32813
  --file=FILE[:TEMPLATE]
24998
 
                   instantiate the configuration file FILE
 
32814
                   instantiate the configuration file FILE
24999
32815
  --header=FILE[:TEMPLATE]
25000
 
                   instantiate the configuration header FILE
 
32816
                   instantiate the configuration header FILE
25001
32817
 
25002
32818
Configuration files:
25003
32819
$config_files
25014
32830
cat >>$CONFIG_STATUS <<_ACEOF
25015
32831
ac_cs_version="\\
25016
32832
config.status
25017
 
configured by $0, generated by GNU Autoconf 2.57,
 
32833
configured by $0, generated by GNU Autoconf 2.59,
25018
32834
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25019
32835
 
25020
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25021
 
Free Software Foundation, Inc.
 
32836
Copyright (C) 2003 Free Software Foundation, Inc.
25022
32837
This config.status script is free software; the Free Software Foundation
25023
32838
gives unlimited permission to copy, distribute and modify it."
25024
32839
srcdir=$srcdir
25249
33064
s,@AWK@,$AWK,;t t
25250
33065
s,@SET_MAKE@,$SET_MAKE,;t t
25251
33066
s,@am__leading_dot@,$am__leading_dot,;t t
 
33067
s,@KDECONFIG@,$KDECONFIG,;t t
 
33068
s,@kde_libs_prefix@,$kde_libs_prefix,;t t
 
33069
s,@kde_libs_htmldir@,$kde_libs_htmldir,;t t
25252
33070
s,@CONF_FILES@,$CONF_FILES,;t t
25253
33071
s,@CC@,$CC,;t t
25254
33072
s,@CFLAGS@,$CFLAGS,;t t
25279
33097
s,@CXXCPP@,$CXXCPP,;t t
25280
33098
s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
25281
33099
s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
25282
 
s,@REPO@,$REPO,;t t
25283
 
s,@NOREPO@,$NOREPO,;t t
 
33100
s,@ENABLE_PERMISSIVE_FLAG@,$ENABLE_PERMISSIVE_FLAG,;t t
25284
33101
s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
25285
33102
s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
25286
33103
s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
25287
33104
s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
 
33105
s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t
 
33106
s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t
 
33107
s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t
 
33108
s,@EGREP@,$EGREP,;t t
25288
33109
s,@LN_S@,$LN_S,;t t
25289
33110
s,@ECHO@,$ECHO,;t t
 
33111
s,@AR@,$AR,;t t
 
33112
s,@ac_ct_AR@,$ac_ct_AR,;t t
25290
33113
s,@RANLIB@,$RANLIB,;t t
25291
33114
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25292
 
s,@EGREP@,$EGREP,;t t
 
33115
s,@F77@,$F77,;t t
 
33116
s,@FFLAGS@,$FFLAGS,;t t
 
33117
s,@ac_ct_F77@,$ac_ct_F77,;t t
25293
33118
s,@LIBTOOL@,$LIBTOOL,;t t
25294
33119
s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
25295
33120
s,@MSGFMT@,$MSGFMT,;t t
25305
33130
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
25306
33131
s,@LIBUCB@,$LIBUCB,;t t
25307
33132
s,@LIBDL@,$LIBDL,;t t
 
33133
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
33134
s,@LIB_X11@,$LIB_X11,;t t
 
33135
s,@LIB_XRENDER@,$LIB_XRENDER,;t t
 
33136
s,@LIBSM@,$LIBSM,;t t
25308
33137
s,@X_INCLUDES@,$X_INCLUDES,;t t
25309
33138
s,@X_LDFLAGS@,$X_LDFLAGS,;t t
 
33139
s,@x_includes@,$x_includes,;t t
25310
33140
s,@x_libraries@,$x_libraries,;t t
25311
 
s,@x_includes@,$x_includes,;t t
25312
 
s,@LIBSM@,$LIBSM,;t t
25313
 
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
25314
 
s,@LIB_X11@,$LIB_X11,;t t
25315
 
s,@LIBXINERAMA@,$LIBXINERAMA,;t t
25316
33141
s,@QTE_NORTTI@,$QTE_NORTTI,;t t
25317
33142
s,@LIB_XEXT@,$LIB_XEXT,;t t
25318
33143
s,@LIBPTHREAD@,$LIBPTHREAD,;t t
25328
33153
s,@qt_includes@,$qt_includes,;t t
25329
33154
s,@QT_INCLUDES@,$QT_INCLUDES,;t t
25330
33155
s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
 
33156
s,@PERL@,$PERL,;t t
25331
33157
s,@MOC@,$MOC,;t t
25332
33158
s,@UIC@,$UIC,;t t
25333
33159
s,@UIC_TR@,$UIC_TR,;t t
25336
33162
s,@kde_qtver@,$kde_qtver,;t t
25337
33163
s,@KDE_EXTRA_RPATH@,$KDE_EXTRA_RPATH,;t t
25338
33164
s,@KDE_RPATH@,$KDE_RPATH,;t t
 
33165
s,@X_RPATH@,$X_RPATH,;t t
25339
33166
s,@kde_libraries@,$kde_libraries,;t t
25340
33167
s,@kde_includes@,$kde_includes,;t t
25341
33168
s,@KDE_LDFLAGS@,$KDE_LDFLAGS,;t t
25343
33170
s,@all_includes@,$all_includes,;t t
25344
33171
s,@all_libraries@,$all_libraries,;t t
25345
33172
s,@AUTODIRS@,$AUTODIRS,;t t
 
33173
s,@include_ARTS_TRUE@,$include_ARTS_TRUE,;t t
 
33174
s,@include_ARTS_FALSE@,$include_ARTS_FALSE,;t t
 
33175
s,@KCONFIG_COMPILER@,$KCONFIG_COMPILER,;t t
 
33176
s,@KCFG_DEPENDENCIES@,$KCFG_DEPENDENCIES,;t t
 
33177
s,@DCOPIDLNG@,$DCOPIDLNG,;t t
25346
33178
s,@DCOPIDL@,$DCOPIDL,;t t
25347
33179
s,@DCOPIDL2CPP@,$DCOPIDL2CPP,;t t
25348
33180
s,@DCOP_DEPENDENCIES@,$DCOP_DEPENDENCIES,;t t
25349
33181
s,@MCOPIDL@,$MCOPIDL,;t t
25350
33182
s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
25351
 
s,@KDECONFIG@,$KDECONFIG,;t t
25352
33183
s,@MEINPROC@,$MEINPROC,;t t
25353
33184
s,@KDE_XSL_STYLESHEET@,$KDE_XSL_STYLESHEET,;t t
25354
 
s,@kde_libs_prefix@,$kde_libs_prefix,;t t
25355
 
s,@kde_libs_htmldir@,$kde_libs_htmldir,;t t
 
33185
s,@XMLLINT@,$XMLLINT,;t t
25356
33186
s,@kde_htmldir@,$kde_htmldir,;t t
25357
33187
s,@kde_appsdir@,$kde_appsdir,;t t
25358
33188
s,@kde_icondir@,$kde_icondir,;t t
25360
33190
s,@kde_datadir@,$kde_datadir,;t t
25361
33191
s,@kde_locale@,$kde_locale,;t t
25362
33192
s,@kde_confdir@,$kde_confdir,;t t
 
33193
s,@kde_kcfgdir@,$kde_kcfgdir,;t t
25363
33194
s,@kde_mimedir@,$kde_mimedir,;t t
25364
33195
s,@kde_wallpaperdir@,$kde_wallpaperdir,;t t
25365
33196
s,@kde_bindir@,$kde_bindir,;t t
 
33197
s,@xdg_appsdir@,$xdg_appsdir,;t t
 
33198
s,@xdg_menudir@,$xdg_menudir,;t t
 
33199
s,@xdg_directorydir@,$xdg_directorydir,;t t
25366
33200
s,@kde_templatesdir@,$kde_templatesdir,;t t
25367
33201
s,@kde_servicesdir@,$kde_servicesdir,;t t
25368
33202
s,@kde_servicetypesdir@,$kde_servicetypesdir,;t t
25369
33203
s,@kde_moduledir@,$kde_moduledir,;t t
 
33204
s,@kdeinitdir@,$kdeinitdir,;t t
25370
33205
s,@kde_styledir@,$kde_styledir,;t t
25371
33206
s,@kde_widgetdir@,$kde_widgetdir,;t t
25372
33207
s,@LIB_KDECORE@,$LIB_KDECORE,;t t
25379
33214
s,@LIB_KSPELL@,$LIB_KSPELL,;t t
25380
33215
s,@LIB_KPARTS@,$LIB_KPARTS,;t t
25381
33216
s,@LIB_KDEPRINT@,$LIB_KDEPRINT,;t t
 
33217
s,@LIB_KUTILS@,$LIB_KUTILS,;t t
 
33218
s,@LIB_KDEPIM@,$LIB_KDEPIM,;t t
25382
33219
s,@LIB_KSYCOCA@,$LIB_KSYCOCA,;t t
25383
33220
s,@LIB_KFILE@,$LIB_KFILE,;t t
25384
33221
s,@LIB_KFM@,$LIB_KFM,;t t
 
33222
s,@CONFIG_USE_KDE@,$CONFIG_USE_KDE,;t t
 
33223
s,@CONFIG_USE_KDE_TRUE@,$CONFIG_USE_KDE_TRUE,;t t
 
33224
s,@CONFIG_USE_KDE_FALSE@,$CONFIG_USE_KDE_FALSE,;t t
25385
33225
s,@GCC_PCH@,$GCC_PCH,;t t
25386
33226
s,@GCC_PCH_TRUE@,$GCC_PCH_TRUE,;t t
25387
33227
s,@GCC_PCH_FALSE@,$GCC_PCH_FALSE,;t t
 
33228
s,@HAVE_TUNEPIMP@,$HAVE_TUNEPIMP,;t t
 
33229
s,@LIB_TUNEPIMP@,$LIB_TUNEPIMP,;t t
 
33230
s,@HAVE_TUNEPIMP_TRUE@,$HAVE_TUNEPIMP_TRUE,;t t
 
33231
s,@HAVE_TUNEPIMP_FALSE@,$HAVE_TUNEPIMP_FALSE,;t t
 
33232
s,@HAVE_VORBIS@,$HAVE_VORBIS,;t t
 
33233
s,@LIB_VORBIS@,$LIB_VORBIS,;t t
 
33234
s,@HAVE_VORBIS_TRUE@,$HAVE_VORBIS_TRUE,;t t
 
33235
s,@HAVE_VORBIS_FALSE@,$HAVE_VORBIS_FALSE,;t t
 
33236
s,@HAVE_FLAC@,$HAVE_FLAC,;t t
 
33237
s,@LIB_FLAC@,$LIB_FLAC,;t t
 
33238
s,@HAVE_FLAC_TRUE@,$HAVE_FLAC_TRUE,;t t
 
33239
s,@HAVE_FLAC_FALSE@,$HAVE_FLAC_FALSE,;t t
25388
33240
s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
25389
33241
s,@LIBOBJS@,$LIBOBJS,;t t
25390
33242
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25417
33269
      (echo ':t
25418
33270
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25419
33271
      if test -z "$ac_sed_cmds"; then
25420
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
33272
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25421
33273
      else
25422
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
33274
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25423
33275
      fi
25424
33276
      ac_sed_frag=`expr $ac_sed_frag + 1`
25425
33277
      ac_beg=$ac_end
25437
33289
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25438
33290
  case $ac_file in
25439
33291
  - | *:- | *:-:* ) # input from stdin
25440
 
        cat >$tmp/stdin
25441
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25442
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
33292
        cat >$tmp/stdin
 
33293
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
33294
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25443
33295
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25444
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
33296
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25445
33297
  * )   ac_file_in=$ac_file.in ;;
25446
33298
  esac
25447
33299
 
25448
33300
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25449
33301
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25450
33302
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25451
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
25452
 
         X"$ac_file" : 'X\(//\)$' \| \
25453
 
         X"$ac_file" : 'X\(/\)' \| \
25454
 
         .     : '\(.\)' 2>/dev/null ||
 
33303
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
33304
         X"$ac_file" : 'X\(//\)$' \| \
 
33305
         X"$ac_file" : 'X\(/\)' \| \
 
33306
         .     : '\(.\)' 2>/dev/null ||
25455
33307
echo X"$ac_file" |
25456
33308
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25457
33309
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25467
33319
      as_dirs="$as_dir $as_dirs"
25468
33320
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25469
33321
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25470
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
25471
 
         X"$as_dir" : 'X\(//\)$' \| \
25472
 
         X"$as_dir" : 'X\(/\)' \| \
25473
 
         .     : '\(.\)' 2>/dev/null ||
 
33322
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33323
         X"$as_dir" : 'X\(//\)$' \| \
 
33324
         X"$as_dir" : 'X\(/\)' \| \
 
33325
         .     : '\(.\)' 2>/dev/null ||
25474
33326
echo X"$as_dir" |
25475
33327
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25476
33328
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25508
33360
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25509
33361
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25510
33362
esac
25511
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25512
 
# absolute.
25513
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25514
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25515
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25516
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
33363
 
 
33364
# Do not use `cd foo && pwd` to compute absolute paths, because
 
33365
# the directories may not exist.
 
33366
case `pwd` in
 
33367
.) ac_abs_builddir="$ac_dir";;
 
33368
*)
 
33369
  case "$ac_dir" in
 
33370
  .) ac_abs_builddir=`pwd`;;
 
33371
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
33372
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
33373
  esac;;
 
33374
esac
 
33375
case $ac_abs_builddir in
 
33376
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
33377
*)
 
33378
  case ${ac_top_builddir}. in
 
33379
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
33380
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
33381
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
33382
  esac;;
 
33383
esac
 
33384
case $ac_abs_builddir in
 
33385
.) ac_abs_srcdir=$ac_srcdir;;
 
33386
*)
 
33387
  case $ac_srcdir in
 
33388
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
33389
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
33390
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
33391
  esac;;
 
33392
esac
 
33393
case $ac_abs_builddir in
 
33394
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
33395
*)
 
33396
  case $ac_top_srcdir in
 
33397
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
33398
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
33399
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
33400
  esac;;
 
33401
esac
25517
33402
 
25518
33403
 
25519
33404
  case $INSTALL in
25521
33406
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25522
33407
  esac
25523
33408
 
25524
 
  if test x"$ac_file" != x-; then
25525
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
25526
 
echo "$as_me: creating $ac_file" >&6;}
25527
 
    rm -f "$ac_file"
25528
 
  fi
25529
33409
  # Let's still pretend it is `configure' which instantiates (i.e., don't
25530
33410
  # use $as_me), people would be surprised to read:
25531
33411
  #    /* config.h.  Generated by config.status.  */
25535
33415
    configure_input="$ac_file.  "
25536
33416
  fi
25537
33417
  configure_input=$configure_input"Generated from `echo $ac_file_in |
25538
 
                                     sed 's,.*/,,'` by configure."
 
33418
                                     sed 's,.*/,,'` by configure."
25539
33419
 
25540
33420
  # First look for the input files in the build tree, otherwise in the
25541
33421
  # src tree.
25544
33424
      case $f in
25545
33425
      -) echo $tmp/stdin ;;
25546
33426
      [\\/$]*)
25547
 
         # Absolute (can't be DOS-style, as IFS=:)
25548
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
33427
         # Absolute (can't be DOS-style, as IFS=:)
 
33428
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25549
33429
echo "$as_me: error: cannot find input file: $f" >&2;}
25550
33430
   { (exit 1); exit 1; }; }
25551
 
         echo $f;;
 
33431
         echo "$f";;
25552
33432
      *) # Relative
25553
 
         if test -f "$f"; then
25554
 
           # Build tree
25555
 
           echo $f
25556
 
         elif test -f "$srcdir/$f"; then
25557
 
           # Source tree
25558
 
           echo $srcdir/$f
25559
 
         else
25560
 
           # /dev/null tree
25561
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
33433
         if test -f "$f"; then
 
33434
           # Build tree
 
33435
           echo "$f"
 
33436
         elif test -f "$srcdir/$f"; then
 
33437
           # Source tree
 
33438
           echo "$srcdir/$f"
 
33439
         else
 
33440
           # /dev/null tree
 
33441
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25562
33442
echo "$as_me: error: cannot find input file: $f" >&2;}
25563
33443
   { (exit 1); exit 1; }; }
25564
 
         fi;;
 
33444
         fi;;
25565
33445
      esac
25566
33446
    done` || { (exit 1); exit 1; }
 
33447
 
 
33448
  if test x"$ac_file" != x-; then
 
33449
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
33450
echo "$as_me: creating $ac_file" >&6;}
 
33451
    rm -f "$ac_file"
 
33452
  fi
25567
33453
_ACEOF
25568
33454
cat >>$CONFIG_STATUS <<_ACEOF
25569
33455
  sed "$ac_vpsub
25603
33489
# NAME is the cpp macro being defined and VALUE is the value it is being given.
25604
33490
#
25605
33491
# ac_d sets the value in "#define NAME VALUE" lines.
25606
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
25607
 
ac_dB='[        ].*$,\1#\2'
 
33492
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
33493
ac_dB='[         ].*$,\1#\2'
25608
33494
ac_dC=' '
25609
33495
ac_dD=',;t'
25610
33496
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25611
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
33497
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25612
33498
ac_uB='$,\1#\2define\3'
25613
33499
ac_uC=' '
25614
33500
ac_uD=',;t'
25617
33503
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25618
33504
  case $ac_file in
25619
33505
  - | *:- | *:-:* ) # input from stdin
25620
 
        cat >$tmp/stdin
25621
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25622
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
33506
        cat >$tmp/stdin
 
33507
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
33508
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25623
33509
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25624
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
33510
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25625
33511
  * )   ac_file_in=$ac_file.in ;;
25626
33512
  esac
25627
33513
 
25635
33521
      case $f in
25636
33522
      -) echo $tmp/stdin ;;
25637
33523
      [\\/$]*)
25638
 
         # Absolute (can't be DOS-style, as IFS=:)
25639
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
33524
         # Absolute (can't be DOS-style, as IFS=:)
 
33525
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25640
33526
echo "$as_me: error: cannot find input file: $f" >&2;}
25641
33527
   { (exit 1); exit 1; }; }
25642
 
         echo $f;;
 
33528
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
33529
         echo "$f";;
25643
33530
      *) # Relative
25644
 
         if test -f "$f"; then
25645
 
           # Build tree
25646
 
           echo $f
25647
 
         elif test -f "$srcdir/$f"; then
25648
 
           # Source tree
25649
 
           echo $srcdir/$f
25650
 
         else
25651
 
           # /dev/null tree
25652
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
33531
         if test -f "$f"; then
 
33532
           # Build tree
 
33533
           echo "$f"
 
33534
         elif test -f "$srcdir/$f"; then
 
33535
           # Source tree
 
33536
           echo "$srcdir/$f"
 
33537
         else
 
33538
           # /dev/null tree
 
33539
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25653
33540
echo "$as_me: error: cannot find input file: $f" >&2;}
25654
33541
   { (exit 1); exit 1; }; }
25655
 
         fi;;
 
33542
         fi;;
25656
33543
      esac
25657
33544
    done` || { (exit 1); exit 1; }
25658
33545
  # Remove the trailing spaces.
25659
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
33546
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25660
33547
 
25661
33548
_ACEOF
25662
33549
 
25679
33566
s,[\\$`],\\&,g
25680
33567
t clear
25681
33568
: clear
25682
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
33569
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25683
33570
t end
25684
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
33571
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25685
33572
: end
25686
33573
_ACEOF
25687
33574
# If some macros were called several times there might be several times
25695
33582
# example, in the case of _POSIX_SOURCE, which is predefined and required
25696
33583
# on some systems where configure will not decide to define it.
25697
33584
cat >>conftest.undefs <<\_ACEOF
25698
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
33585
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25699
33586
_ACEOF
25700
33587
 
25701
33588
# Break up conftest.defines because some shells have a limit on the size
25702
33589
# of here documents, and old seds have small limits too (100 cmds).
25703
33590
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25704
 
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
33591
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25705
33592
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25706
33593
echo '  :' >>$CONFIG_STATUS
25707
33594
rm -f conftest.tail
25710
33597
  # Write a limited-size here document to $tmp/defines.sed.
25711
33598
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25712
33599
  # Speed up: don't consider the non `#define' lines.
25713
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
33600
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25714
33601
  # Work around the forget-to-reset-the-flag bug.
25715
33602
  echo 't clr' >>$CONFIG_STATUS
25716
33603
  echo ': clr' >>$CONFIG_STATUS
25737
33624
  # Write a limited-size here document to $tmp/undefs.sed.
25738
33625
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25739
33626
  # Speed up: don't consider the non `#undef'
25740
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
33627
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25741
33628
  # Work around the forget-to-reset-the-flag bug.
25742
33629
  echo 't clr' >>$CONFIG_STATUS
25743
33630
  echo ': clr' >>$CONFIG_STATUS
25771
33658
    else
25772
33659
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25773
33660
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25774
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
25775
 
         X"$ac_file" : 'X\(//\)$' \| \
25776
 
         X"$ac_file" : 'X\(/\)' \| \
25777
 
         .     : '\(.\)' 2>/dev/null ||
 
33661
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
33662
         X"$ac_file" : 'X\(//\)$' \| \
 
33663
         X"$ac_file" : 'X\(/\)' \| \
 
33664
         .     : '\(.\)' 2>/dev/null ||
25778
33665
echo X"$ac_file" |
25779
33666
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25780
33667
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25790
33677
      as_dirs="$as_dir $as_dirs"
25791
33678
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25792
33679
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25793
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
25794
 
         X"$as_dir" : 'X\(//\)$' \| \
25795
 
         X"$as_dir" : 'X\(/\)' \| \
25796
 
         .     : '\(.\)' 2>/dev/null ||
 
33680
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33681
         X"$as_dir" : 'X\(//\)$' \| \
 
33682
         X"$as_dir" : 'X\(/\)' \| \
 
33683
         .     : '\(.\)' 2>/dev/null ||
25797
33684
echo X"$as_dir" |
25798
33685
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25799
33686
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25825
33712
done
25826
33713
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25827
33714
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25828
 
         X$ac_file : 'X\(//\)[^/]' \| \
25829
 
         X$ac_file : 'X\(//\)$' \| \
25830
 
         X$ac_file : 'X\(/\)' \| \
25831
 
         .     : '\(.\)' 2>/dev/null ||
 
33715
         X$ac_file : 'X\(//\)[^/]' \| \
 
33716
         X$ac_file : 'X\(//\)$' \| \
 
33717
         X$ac_file : 'X\(/\)' \| \
 
33718
         .     : '\(.\)' 2>/dev/null ||
25832
33719
echo X$ac_file |
25833
33720
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25834
33721
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25847
33734
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25848
33735
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25849
33736
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25850
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
25851
 
         X"$ac_dest" : 'X\(//\)$' \| \
25852
 
         X"$ac_dest" : 'X\(/\)' \| \
25853
 
         .     : '\(.\)' 2>/dev/null ||
 
33737
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
33738
         X"$ac_dest" : 'X\(//\)$' \| \
 
33739
         X"$ac_dest" : 'X\(/\)' \| \
 
33740
         .     : '\(.\)' 2>/dev/null ||
25854
33741
echo X"$ac_dest" |
25855
33742
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25856
33743
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25857
33744
          /^X\(\/\/\)$/{ s//\1/; q; }
25858
33745
          /^X\(\/\).*/{ s//\1/; q; }
25859
33746
          s/.*/./; q'`
 
33747
  { if $as_mkdir_p; then
 
33748
    mkdir -p "$ac_dir"
 
33749
  else
 
33750
    as_dir="$ac_dir"
 
33751
    as_dirs=
 
33752
    while test ! -d "$as_dir"; do
 
33753
      as_dirs="$as_dir $as_dirs"
 
33754
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
33755
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33756
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33757
         X"$as_dir" : 'X\(//\)$' \| \
 
33758
         X"$as_dir" : 'X\(/\)' \| \
 
33759
         .     : '\(.\)' 2>/dev/null ||
 
33760
echo X"$as_dir" |
 
33761
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
33762
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
33763
          /^X\(\/\/\)$/{ s//\1/; q; }
 
33764
          /^X\(\/\).*/{ s//\1/; q; }
 
33765
          s/.*/./; q'`
 
33766
    done
 
33767
    test ! -n "$as_dirs" || mkdir $as_dirs
 
33768
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
33769
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
33770
   { (exit 1); exit 1; }; }; }
 
33771
 
25860
33772
  ac_builddir=.
25861
33773
 
25862
33774
if test "$ac_dir" != .; then
25882
33794
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25883
33795
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25884
33796
esac
25885
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25886
 
# absolute.
25887
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25888
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25889
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25890
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
33797
 
 
33798
# Do not use `cd foo && pwd` to compute absolute paths, because
 
33799
# the directories may not exist.
 
33800
case `pwd` in
 
33801
.) ac_abs_builddir="$ac_dir";;
 
33802
*)
 
33803
  case "$ac_dir" in
 
33804
  .) ac_abs_builddir=`pwd`;;
 
33805
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
33806
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
33807
  esac;;
 
33808
esac
 
33809
case $ac_abs_builddir in
 
33810
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
33811
*)
 
33812
  case ${ac_top_builddir}. in
 
33813
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
33814
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
33815
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
33816
  esac;;
 
33817
esac
 
33818
case $ac_abs_builddir in
 
33819
.) ac_abs_srcdir=$ac_srcdir;;
 
33820
*)
 
33821
  case $ac_srcdir in
 
33822
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
33823
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
33824
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
33825
  esac;;
 
33826
esac
 
33827
case $ac_abs_builddir in
 
33828
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
33829
*)
 
33830
  case $ac_top_srcdir in
 
33831
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
33832
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
33833
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
33834
  esac;;
 
33835
esac
25891
33836
 
25892
33837
 
25893
33838
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25905
33850
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25906
33851
    dirpart=`(dirname "$mf") 2>/dev/null ||
25907
33852
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25908
 
         X"$mf" : 'X\(//\)[^/]' \| \
25909
 
         X"$mf" : 'X\(//\)$' \| \
25910
 
         X"$mf" : 'X\(/\)' \| \
25911
 
         .     : '\(.\)' 2>/dev/null ||
 
33853
         X"$mf" : 'X\(//\)[^/]' \| \
 
33854
         X"$mf" : 'X\(//\)$' \| \
 
33855
         X"$mf" : 'X\(/\)' \| \
 
33856
         .     : '\(.\)' 2>/dev/null ||
25912
33857
echo X"$mf" |
25913
33858
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25914
33859
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25944
33889
    test -f "$dirpart/$file" && continue
25945
33890
    fdir=`(dirname "$file") 2>/dev/null ||
25946
33891
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25947
 
         X"$file" : 'X\(//\)[^/]' \| \
25948
 
         X"$file" : 'X\(//\)$' \| \
25949
 
         X"$file" : 'X\(/\)' \| \
25950
 
         .     : '\(.\)' 2>/dev/null ||
 
33892
         X"$file" : 'X\(//\)[^/]' \| \
 
33893
         X"$file" : 'X\(//\)$' \| \
 
33894
         X"$file" : 'X\(/\)' \| \
 
33895
         .     : '\(.\)' 2>/dev/null ||
25951
33896
echo X"$file" |
25952
33897
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25953
33898
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25963
33908
      as_dirs="$as_dir $as_dirs"
25964
33909
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25965
33910
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25966
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
25967
 
         X"$as_dir" : 'X\(//\)$' \| \
25968
 
         X"$as_dir" : 'X\(/\)' \| \
25969
 
         .     : '\(.\)' 2>/dev/null ||
 
33911
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
33912
         X"$as_dir" : 'X\(//\)$' \| \
 
33913
         X"$as_dir" : 'X\(/\)' \| \
 
33914
         .     : '\(.\)' 2>/dev/null ||
25970
33915
echo X"$as_dir" |
25971
33916
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25972
33917
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25992
33937
 
25993
33938
{ (exit 0); exit 0; }
25994
33939
_ACEOF
 
33940
if test "x$with_fast_perl" = "xyes"; then    
 
33941
  perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS    \
 
33942
    || mv $CONFIG_STATUS.bak $CONFIG_STATUS    
 
33943
  rm -f $CONFIG_STATUS.bak
 
33944
fi    
25995
33945
chmod +x $CONFIG_STATUS
25996
33946
ac_clean_files=$ac_clean_files_save
25997
33947
 
26017
33967
  $ac_cs_success || { (exit 1); exit 1; }
26018
33968
fi
26019
33969
 
 
33970
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
 
33971
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
 
33972
  # And if so, warn when they don't match
 
33973
  if test "$kde_libs_prefix" != "$given_prefix"; then
 
33974
    # And if kde doesn't know about the prefix yet
 
33975
    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
 
33976
    if test $? -ne 0; then
 
33977
      echo ""
 
33978
      echo "Warning: you chose to install this package in $given_prefix,"
 
33979
      echo "but KDE was found in $kde_libs_prefix."
 
33980
      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
 
33981
      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
 
33982
      echo "Then restart KDE."
 
33983
      echo ""
 
33984
    fi
 
33985
  fi
 
33986
fi
 
33987
 
26020
33988
if test "$all_tests" = "bad"; then
26021
33989
  if test ! "$cache_file" = "/dev/null"; then
26022
33990
    echo ""