~ubuntu-branches/ubuntu/edgy/bookmarkbridge/edgy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Masami Ichikawa
  • Date: 2006-06-06 21:09:51 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060606210951-rquwsg47e0icc7e4
Tags: 0.76-2
Added 01_dlghelp.dpatch and 02_image_path.dpatch. 

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
240
241
$as_unset CDPATH
241
242
 
242
243
 
243
 
 
244
 
# Check that we are running under the correct shell.
245
 
SHELL=${CONFIG_SHELL-/bin/sh}
246
 
 
247
 
case X$ECHO in
248
 
X*--fallback-echo)
249
 
  # Remove one level of quotation (which was required for Make).
250
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251
 
  ;;
252
 
esac
253
 
 
254
 
echo=${ECHO-echo}
255
 
if test "X$1" = X--no-reexec; then
256
 
  # Discard the --no-reexec flag, and continue.
257
 
  shift
258
 
elif test "X$1" = X--fallback-echo; then
259
 
  # Avoid inline document here, it may be left over
260
 
  :
261
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
262
 
  # Yippee, $echo works!
263
 
  :
264
 
else
265
 
  # Restart under the correct shell.
266
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
267
 
fi
268
 
 
269
 
if test "X$1" = X--fallback-echo; then
270
 
  # used as fallback echo
271
 
  shift
272
 
  cat <<EOF
273
 
$*
274
 
EOF
275
 
  exit 0
276
 
fi
277
 
 
278
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
279
 
# if CDPATH is set.
280
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281
 
 
282
 
if test -z "$ECHO"; then
283
 
if test "X${echo_test_string+set}" != Xset; then
284
 
# find a string as large as possible, as long as the shell can cope with it
285
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288
 
       echo_test_string="`eval $cmd`" &&
289
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290
 
    then
291
 
      break
292
 
    fi
293
 
  done
294
 
fi
295
 
 
296
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
299
 
  :
300
 
else
301
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
302
 
  # backslashes.  This makes it impossible to quote backslashes using
303
 
  #   echo "$something" | sed 's/\\/\\\\/g'
304
 
  #
305
 
  # So, first we look for a working echo in the user's PATH.
306
 
 
307
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308
 
  for dir in $PATH /usr/ucb; do
309
 
    IFS="$lt_save_ifs"
310
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
314
 
      echo="$dir/echo"
315
 
      break
316
 
    fi
317
 
  done
318
 
  IFS="$lt_save_ifs"
319
 
 
320
 
  if test "X$echo" = Xecho; then
321
 
    # We didn't find a better echo, so look for alternatives.
322
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
325
 
      # This shell has a builtin print -r that does the trick.
326
 
      echo='print -r'
327
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
329
 
      # If we have ksh, try running configure again with it.
330
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331
 
      export ORIGINAL_CONFIG_SHELL
332
 
      CONFIG_SHELL=/bin/ksh
333
 
      export CONFIG_SHELL
334
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335
 
    else
336
 
      # Try using printf.
337
 
      echo='printf %s\n'
338
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
341
 
        # Cool, printf works
342
 
        :
343
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344
 
           test "X$echo_testing_string" = 'X\t' &&
345
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
347
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348
 
        export CONFIG_SHELL
349
 
        SHELL="$CONFIG_SHELL"
350
 
        export SHELL
351
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
352
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353
 
           test "X$echo_testing_string" = 'X\t' &&
354
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
356
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
357
 
      else
358
 
        # maybe with a smaller string...
359
 
        prev=:
360
 
 
361
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363
 
          then
364
 
            break
365
 
          fi
366
 
          prev="$cmd"
367
 
        done
368
 
 
369
 
        if test "$prev" != 'sed 50q "$0"'; then
370
 
          echo_test_string=`eval $prev`
371
 
          export echo_test_string
372
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373
 
        else
374
 
          # Oops.  We lost completely, so just stick with echo.
375
 
          echo=echo
376
 
        fi
377
 
      fi
378
 
    fi
379
 
  fi
380
 
fi
381
 
fi
382
 
 
383
 
# Copy echo and quote the copy suitably for passing to libtool from
384
 
# the Makefile, instead of quoting the original, which is used later.
385
 
ECHO=$echo
386
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388
 
fi
389
 
 
390
 
 
391
 
 
392
244
# Name of the host.
393
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
394
246
# so uname gets run too.
419
271
PACKAGE_STRING=
420
272
PACKAGE_BUGREPORT=
421
273
 
422
 
ac_unique_file="acinclude.m4"
423
 
ac_default_prefix=/usr/local
424
274
# Factoring default headers for most tests.
425
275
ac_includes_default="\
426
276
#include <stdio.h>
458
308
# include <unistd.h>
459
309
#endif"
460
310
 
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 CXXFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX 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 all_includes all_libraries MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET LIBRESOLV 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 TOPSUBDIRS LIBOBJS LTLIBOBJS'
 
311
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PKG_CONFIG ac_pt_PKG_CONFIG QT_CFLAGS QT_LIBS MOC UIC RCC PERL CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS LTLIBOBJS'
462
312
ac_subst_files=''
463
313
 
464
314
# Initialize some variables set by options.
817
667
 
818
668
# Be sure to have absolute paths.
819
669
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
670
              localstatedir libdir includedir oldincludedir infodir mandir
821
671
do
822
672
  eval ac_val=$`echo $ac_var`
823
673
  case $ac_val in
857
707
  # Try the directory containing this script, then its parent.
858
708
  ac_confdir=`(dirname "$0") 2>/dev/null ||
859
709
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860
 
         X"$0" : 'X\(//\)[^/]' \| \
861
 
         X"$0" : 'X\(//\)$' \| \
862
 
         X"$0" : 'X\(/\)' \| \
863
 
         .     : '\(.\)' 2>/dev/null ||
 
710
         X"$0" : 'X\(//\)[^/]' \| \
 
711
         X"$0" : 'X\(//\)$' \| \
 
712
         X"$0" : 'X\(/\)' \| \
 
713
         .     : '\(.\)' 2>/dev/null ||
864
714
echo X"$0" |
865
715
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866
716
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
899
749
ac_env_target_alias_value=$target_alias
900
750
ac_cv_env_target_alias_set=${target_alias+set}
901
751
ac_cv_env_target_alias_value=$target_alias
 
752
ac_env_CXX_set=${CXX+set}
 
753
ac_env_CXX_value=$CXX
 
754
ac_cv_env_CXX_set=${CXX+set}
 
755
ac_cv_env_CXX_value=$CXX
 
756
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
757
ac_env_CXXFLAGS_value=$CXXFLAGS
 
758
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
759
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
760
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
761
ac_env_LDFLAGS_value=$LDFLAGS
 
762
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
763
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
764
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
765
ac_env_CPPFLAGS_value=$CPPFLAGS
 
766
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
767
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
768
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
769
ac_env_PKG_CONFIG_value=$PKG_CONFIG
 
770
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
771
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
 
772
ac_env_QT_CFLAGS_set=${QT_CFLAGS+set}
 
773
ac_env_QT_CFLAGS_value=$QT_CFLAGS
 
774
ac_cv_env_QT_CFLAGS_set=${QT_CFLAGS+set}
 
775
ac_cv_env_QT_CFLAGS_value=$QT_CFLAGS
 
776
ac_env_QT_LIBS_set=${QT_LIBS+set}
 
777
ac_env_QT_LIBS_value=$QT_LIBS
 
778
ac_cv_env_QT_LIBS_set=${QT_LIBS+set}
 
779
ac_cv_env_QT_LIBS_value=$QT_LIBS
902
780
ac_env_CC_set=${CC+set}
903
781
ac_env_CC_value=$CC
904
782
ac_cv_env_CC_set=${CC+set}
907
785
ac_env_CFLAGS_value=$CFLAGS
908
786
ac_cv_env_CFLAGS_set=${CFLAGS+set}
909
787
ac_cv_env_CFLAGS_value=$CFLAGS
910
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
911
 
ac_env_LDFLAGS_value=$LDFLAGS
912
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
914
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915
 
ac_env_CPPFLAGS_value=$CPPFLAGS
916
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918
788
ac_env_CPP_set=${CPP+set}
919
789
ac_env_CPP_value=$CPP
920
790
ac_cv_env_CPP_set=${CPP+set}
921
791
ac_cv_env_CPP_value=$CPP
922
 
ac_env_CXX_set=${CXX+set}
923
 
ac_env_CXX_value=$CXX
924
 
ac_cv_env_CXX_set=${CXX+set}
925
 
ac_cv_env_CXX_value=$CXX
926
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
927
 
ac_env_CXXFLAGS_value=$CXXFLAGS
928
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
929
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
930
 
ac_env_CXXCPP_set=${CXXCPP+set}
931
 
ac_env_CXXCPP_value=$CXXCPP
932
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
933
 
ac_cv_env_CXXCPP_value=$CXXCPP
934
792
 
935
793
#
936
794
# Report the --help message.
964
822
  cat <<_ACEOF
965
823
Installation directories:
966
824
  --prefix=PREFIX         install architecture-independent files in PREFIX
967
 
                          [$ac_default_prefix]
 
825
                          [$ac_default_prefix]
968
826
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
969
 
                          [PREFIX]
 
827
                          [PREFIX]
970
828
 
971
829
By default, \`make install' will install all the files in
972
830
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
996
854
  --program-prefix=PREFIX            prepend PREFIX to installed program names
997
855
  --program-suffix=SUFFIX            append SUFFIX to installed program names
998
856
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
999
 
 
1000
 
System types:
1001
 
  --build=BUILD     configure for building on BUILD [guessed]
1002
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1003
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
1004
857
_ACEOF
1005
858
fi
1006
859
 
1011
864
Optional Features:
1012
865
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1013
866
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1014
 
  --disable-dependency-tracking Speeds up one-time builds
1015
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
1016
 
  --enable-debug=ARG    enables debug symbols (yes|no|full) default=no
1017
 
  --disable-debug         disables debug output and debug symbols default=no
1018
 
  --enable-strict         compiles with strict compiler options (may not work!)
1019
 
  --disable-warnings      disables compilation with -Wall and similiar
1020
 
  --enable-profile        creates profiling infos default=no
1021
 
  --enable-pch            enables precompiled header support (currently only KCC) default=no
1022
 
  --enable-final          build size optimized apps (experimental - needs lots of memory)
1023
 
  --disable-closure       don't delay template instantiation
1024
 
  --enable-shared[=PKGS]
1025
 
                          build shared libraries [default=yes]
1026
 
  --enable-static[=PKGS]
1027
 
                          build static libraries [default=no]
1028
 
  --enable-fast-install[=PKGS]
1029
 
                          optimize for fast installation [default=yes]
1030
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1031
 
  --enable-objprelink     prelink apps using objprelink (obsolete)
1032
 
  --enable-embedded       link to Qt-embedded, don't use X
1033
 
  --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
1034
 
  --disable-mt            link to non-threaded Qt (deprecated)
1035
 
  --enable-kernel-threads Enable the use of the LinuxThreads port on FreeBSD/i386 only.
1036
 
  --disable-threading     disables threading even if libpthread found
 
867
  --disable-dependency-tracking  speeds up one-time build
 
868
  --enable-dependency-tracking   do not reject slow dependency extractors
1037
869
 
1038
870
Optional Packages:
1039
871
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1041
873
  --with-libxml2-include=path
1042
874
                          specify libxml2 include path
1043
875
                          (default is /usr/include/libxml2)
1044
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
1046
 
                          both]
1047
 
  --with-tags=TAGS        include additional configurations [CXX,GCJ]
1048
 
  --with-xinerama         enable support for Xinerama
1049
 
  --with-extra-includes=DIR
1050
 
                          adds non standard include paths
1051
 
  --with-extra-libs=DIR   adds non standard library paths
1052
 
  --with-qt-dir=DIR       where the root of Qt is installed
1053
 
  --with-qt-includes=DIR  where the Qt includes are.
1054
 
  --with-qt-libraries=DIR where the Qt library is installed.
1055
876
 
1056
877
Some influential environment variables:
1057
 
  CC          C compiler command
1058
 
  CFLAGS      C compiler flags
 
878
  CXX         C++ compiler command
 
879
  CXXFLAGS    C++ compiler flags
1059
880
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060
881
              nonstandard directory <lib dir>
1061
882
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062
883
              headers in a nonstandard directory <include dir>
 
884
  PKG_CONFIG  path to pkg-config utility
 
885
  QT_CFLAGS   C compiler flags for QT, overriding pkg-config
 
886
  QT_LIBS     linker flags for QT, overriding pkg-config
 
887
  CC          C compiler command
 
888
  CFLAGS      C compiler flags
1063
889
  CPP         C preprocessor
1064
 
  CXX         C++ compiler command
1065
 
  CXXFLAGS    C++ compiler flags
1066
 
  CXXCPP      C++ preprocessor
1067
890
 
1068
891
Use these variables to override the choices made by `configure' or to help
1069
892
it to find libraries and programs with nonstandard names/locations.
1101
924
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102
925
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103
926
esac
1104
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1105
 
# absolute.
1106
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1107
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1108
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1109
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
927
 
 
928
# Do not use `cd foo && pwd` to compute absolute paths, because
 
929
# the directories may not exist.
 
930
case `pwd` in
 
931
.) ac_abs_builddir="$ac_dir";;
 
932
*)
 
933
  case "$ac_dir" in
 
934
  .) ac_abs_builddir=`pwd`;;
 
935
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
936
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
937
  esac;;
 
938
esac
 
939
case $ac_abs_builddir in
 
940
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
941
*)
 
942
  case ${ac_top_builddir}. in
 
943
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
944
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
945
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
946
  esac;;
 
947
esac
 
948
case $ac_abs_builddir in
 
949
.) ac_abs_srcdir=$ac_srcdir;;
 
950
*)
 
951
  case $ac_srcdir in
 
952
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
953
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
954
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
955
  esac;;
 
956
esac
 
957
case $ac_abs_builddir in
 
958
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
959
*)
 
960
  case $ac_top_srcdir in
 
961
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
962
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
963
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
964
  esac;;
 
965
esac
1110
966
 
1111
967
    cd $ac_dir
1112
968
    # Check for guested configure; otherwise get Cygnus style configure.
1117
973
      echo
1118
974
      $SHELL $ac_srcdir/configure  --help=recursive
1119
975
    elif test -f $ac_srcdir/configure.ac ||
1120
 
           test -f $ac_srcdir/configure.in; then
 
976
           test -f $ac_srcdir/configure.in; then
1121
977
      echo
1122
978
      $ac_configure --help
1123
979
    else
1131
987
if $ac_init_version; then
1132
988
  cat <<\_ACEOF
1133
989
 
1134
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1135
 
Free Software Foundation, Inc.
 
990
Copyright (C) 2003 Free Software Foundation, Inc.
1136
991
This configure script is free software; the Free Software Foundation
1137
992
gives unlimited permission to copy, distribute and modify it.
1138
993
_ACEOF
1144
999
running configure, to aid debugging if configure makes a mistake.
1145
1000
 
1146
1001
It was created by $as_me, which was
1147
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
1002
generated by GNU Autoconf 2.59.  Invocation command line was
1148
1003
 
1149
1004
  $ $0 $@
1150
1005
 
1221
1076
    2)
1222
1077
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1223
1078
      if test $ac_must_keep_next = true; then
1224
 
        ac_must_keep_next=false # Got value, back to normal.
 
1079
        ac_must_keep_next=false # Got value, back to normal.
1225
1080
      else
1226
 
        case $ac_arg in
1227
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1228
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1229
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1230
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1231
 
            case "$ac_configure_args0 " in
1232
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1233
 
            esac
1234
 
            ;;
1235
 
          -* ) ac_must_keep_next=true ;;
1236
 
        esac
 
1081
        case $ac_arg in
 
1082
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1083
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1084
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1085
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1086
            case "$ac_configure_args0 " in
 
1087
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1088
            esac
 
1089
            ;;
 
1090
          -* ) ac_must_keep_next=true ;;
 
1091
        esac
1237
1092
      fi
1238
1093
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1239
1094
      # Get rid of the leading space.
1267
1122
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1268
1123
    *ac_space=\ *)
1269
1124
      sed -n \
1270
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1271
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1125
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1126
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1272
1127
      ;;
1273
1128
    *)
1274
1129
      sed -n \
1275
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1130
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1276
1131
      ;;
1277
1132
    esac;
1278
1133
}
1301
1156
      for ac_var in $ac_subst_files
1302
1157
      do
1303
1158
        eval ac_val=$`echo $ac_var`
1304
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1159
        echo "$ac_var='"'"'$ac_val'"'"'"
1305
1160
      done | sort
1306
1161
      echo
1307
1162
    fi
1320
1175
      echo "$as_me: caught signal $ac_signal"
1321
1176
    echo "$as_me: exit $exit_status"
1322
1177
  } >&5
1323
 
  rm -f core core.* *.core &&
 
1178
  rm -f core *.core &&
1324
1179
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1325
1180
    exit $exit_status
1326
1181
     ' 0
1400
1255
# value.
1401
1256
ac_cache_corrupted=false
1402
1257
for ac_var in `(set) 2>&1 |
1403
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1258
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1404
1259
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1405
1260
  eval ac_new_set=\$ac_env_${ac_var}_set
1406
1261
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1417
1272
    ,);;
1418
1273
    *)
1419
1274
      if test "x$ac_old_val" != "x$ac_new_val"; then
1420
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1275
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1421
1276
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1422
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1277
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1423
1278
echo "$as_me:   former value:  $ac_old_val" >&2;}
1424
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1279
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1425
1280
echo "$as_me:   current value: $ac_new_val" >&2;}
1426
 
        ac_cache_corrupted=:
 
1281
        ac_cache_corrupted=:
1427
1282
      fi;;
1428
1283
  esac
1429
1284
  # Pass precious variables to config.status.
1471
1326
 
1472
1327
 
1473
1328
 
 
1329
am__api_version="1.9"
1474
1330
ac_aux_dir=
1475
 
for ac_dir in admin $srcdir/admin; do
 
1331
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1476
1332
  if test -f $ac_dir/install-sh; then
1477
1333
    ac_aux_dir=$ac_dir
1478
1334
    ac_install_sh="$ac_aux_dir/install-sh -c"
1488
1344
  fi
1489
1345
done
1490
1346
if test -z "$ac_aux_dir"; then
1491
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1492
 
echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
 
1347
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1348
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1493
1349
   { (exit 1); exit 1; }; }
1494
1350
fi
1495
1351
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1496
1352
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1497
1353
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1498
1354
 
1499
 
 
1500
 
 
1501
 
# Check whether --with-libxml2-include or --without-libxml2-include was given.
1502
 
if test "${with_libxml2_include+set}" = set; then
1503
 
  withval="$with_libxml2_include"
1504
 
   libxml_includes="-I$withval"
1505
 
else
1506
 
   libxml_includes="-I/usr/include/libxml2"
1507
 
fi;
1508
 
CXXFLAGS="$CXXFLAGS $libxml_includes"
1509
 
 
1510
 
 
1511
 
ac_ext=c
1512
 
ac_cpp='$CPP $CPPFLAGS'
1513
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
 
if test -n "$ac_tool_prefix"; then
1517
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1518
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1519
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1520
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521
 
if test "${ac_cv_prog_CC+set}" = set; then
1522
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1523
 
else
1524
 
  if test -n "$CC"; then
1525
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1526
 
else
1527
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528
 
for as_dir in $PATH
1529
 
do
1530
 
  IFS=$as_save_IFS
1531
 
  test -z "$as_dir" && as_dir=.
1532
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1533
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1535
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536
 
    break 2
1537
 
  fi
1538
 
done
1539
 
done
1540
 
 
1541
 
fi
1542
 
fi
1543
 
CC=$ac_cv_prog_CC
1544
 
if test -n "$CC"; then
1545
 
  echo "$as_me:$LINENO: result: $CC" >&5
1546
 
echo "${ECHO_T}$CC" >&6
1547
 
else
1548
 
  echo "$as_me:$LINENO: result: no" >&5
1549
 
echo "${ECHO_T}no" >&6
1550
 
fi
1551
 
 
1552
 
fi
1553
 
if test -z "$ac_cv_prog_CC"; then
1554
 
  ac_ct_CC=$CC
1555
 
  # Extract the first word of "gcc", so it can be a program name with args.
1556
 
set dummy gcc; ac_word=$2
1557
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1558
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1561
 
else
1562
 
  if test -n "$ac_ct_CC"; then
1563
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564
 
else
1565
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566
 
for as_dir in $PATH
1567
 
do
1568
 
  IFS=$as_save_IFS
1569
 
  test -z "$as_dir" && as_dir=.
1570
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1571
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572
 
    ac_cv_prog_ac_ct_CC="gcc"
1573
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574
 
    break 2
1575
 
  fi
1576
 
done
1577
 
done
1578
 
 
1579
 
fi
1580
 
fi
1581
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582
 
if test -n "$ac_ct_CC"; then
1583
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584
 
echo "${ECHO_T}$ac_ct_CC" >&6
1585
 
else
1586
 
  echo "$as_me:$LINENO: result: no" >&5
1587
 
echo "${ECHO_T}no" >&6
1588
 
fi
1589
 
 
1590
 
  CC=$ac_ct_CC
1591
 
else
1592
 
  CC="$ac_cv_prog_CC"
1593
 
fi
1594
 
 
1595
 
if test -z "$CC"; then
1596
 
  if test -n "$ac_tool_prefix"; then
1597
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1598
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
1599
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1600
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601
 
if test "${ac_cv_prog_CC+set}" = set; then
1602
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1603
 
else
1604
 
  if test -n "$CC"; then
1605
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1606
 
else
1607
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608
 
for as_dir in $PATH
1609
 
do
1610
 
  IFS=$as_save_IFS
1611
 
  test -z "$as_dir" && as_dir=.
1612
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1613
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1615
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616
 
    break 2
1617
 
  fi
1618
 
done
1619
 
done
1620
 
 
1621
 
fi
1622
 
fi
1623
 
CC=$ac_cv_prog_CC
1624
 
if test -n "$CC"; then
1625
 
  echo "$as_me:$LINENO: result: $CC" >&5
1626
 
echo "${ECHO_T}$CC" >&6
1627
 
else
1628
 
  echo "$as_me:$LINENO: result: no" >&5
1629
 
echo "${ECHO_T}no" >&6
1630
 
fi
1631
 
 
1632
 
fi
1633
 
if test -z "$ac_cv_prog_CC"; then
1634
 
  ac_ct_CC=$CC
1635
 
  # Extract the first word of "cc", so it can be a program name with args.
1636
 
set dummy cc; ac_word=$2
1637
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1638
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1641
 
else
1642
 
  if test -n "$ac_ct_CC"; then
1643
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644
 
else
1645
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646
 
for as_dir in $PATH
1647
 
do
1648
 
  IFS=$as_save_IFS
1649
 
  test -z "$as_dir" && as_dir=.
1650
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1651
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652
 
    ac_cv_prog_ac_ct_CC="cc"
1653
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654
 
    break 2
1655
 
  fi
1656
 
done
1657
 
done
1658
 
 
1659
 
fi
1660
 
fi
1661
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662
 
if test -n "$ac_ct_CC"; then
1663
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664
 
echo "${ECHO_T}$ac_ct_CC" >&6
1665
 
else
1666
 
  echo "$as_me:$LINENO: result: no" >&5
1667
 
echo "${ECHO_T}no" >&6
1668
 
fi
1669
 
 
1670
 
  CC=$ac_ct_CC
1671
 
else
1672
 
  CC="$ac_cv_prog_CC"
1673
 
fi
1674
 
 
1675
 
fi
1676
 
if test -z "$CC"; then
1677
 
  # Extract the first word of "cc", so it can be a program name with args.
1678
 
set dummy cc; ac_word=$2
1679
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1680
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681
 
if test "${ac_cv_prog_CC+set}" = set; then
1682
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1683
 
else
1684
 
  if test -n "$CC"; then
1685
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1686
 
else
1687
 
  ac_prog_rejected=no
1688
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689
 
for as_dir in $PATH
1690
 
do
1691
 
  IFS=$as_save_IFS
1692
 
  test -z "$as_dir" && as_dir=.
1693
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1694
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1696
 
       ac_prog_rejected=yes
1697
 
       continue
1698
 
     fi
1699
 
    ac_cv_prog_CC="cc"
1700
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701
 
    break 2
1702
 
  fi
1703
 
done
1704
 
done
1705
 
 
1706
 
if test $ac_prog_rejected = yes; then
1707
 
  # We found a bogon in the path, so make sure we never use it.
1708
 
  set dummy $ac_cv_prog_CC
1709
 
  shift
1710
 
  if test $# != 0; then
1711
 
    # We chose a different compiler from the bogus one.
1712
 
    # However, it has the same basename, so the bogon will be chosen
1713
 
    # first if we set CC to just the basename; use the full file name.
1714
 
    shift
1715
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1716
 
  fi
1717
 
fi
1718
 
fi
1719
 
fi
1720
 
CC=$ac_cv_prog_CC
1721
 
if test -n "$CC"; then
1722
 
  echo "$as_me:$LINENO: result: $CC" >&5
1723
 
echo "${ECHO_T}$CC" >&6
1724
 
else
1725
 
  echo "$as_me:$LINENO: result: no" >&5
1726
 
echo "${ECHO_T}no" >&6
1727
 
fi
1728
 
 
1729
 
fi
1730
 
if test -z "$CC"; then
1731
 
  if test -n "$ac_tool_prefix"; then
1732
 
  for ac_prog in cl
1733
 
  do
1734
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1735
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1736
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1737
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738
 
if test "${ac_cv_prog_CC+set}" = set; then
1739
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1740
 
else
1741
 
  if test -n "$CC"; then
1742
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1743
 
else
1744
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745
 
for as_dir in $PATH
1746
 
do
1747
 
  IFS=$as_save_IFS
1748
 
  test -z "$as_dir" && as_dir=.
1749
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1750
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1752
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753
 
    break 2
1754
 
  fi
1755
 
done
1756
 
done
1757
 
 
1758
 
fi
1759
 
fi
1760
 
CC=$ac_cv_prog_CC
1761
 
if test -n "$CC"; then
1762
 
  echo "$as_me:$LINENO: result: $CC" >&5
1763
 
echo "${ECHO_T}$CC" >&6
1764
 
else
1765
 
  echo "$as_me:$LINENO: result: no" >&5
1766
 
echo "${ECHO_T}no" >&6
1767
 
fi
1768
 
 
1769
 
    test -n "$CC" && break
1770
 
  done
1771
 
fi
1772
 
if test -z "$CC"; then
1773
 
  ac_ct_CC=$CC
1774
 
  for ac_prog in cl
1775
 
do
1776
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1777
 
set dummy $ac_prog; ac_word=$2
1778
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1779
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1781
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1782
 
else
1783
 
  if test -n "$ac_ct_CC"; then
1784
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785
 
else
1786
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787
 
for as_dir in $PATH
1788
 
do
1789
 
  IFS=$as_save_IFS
1790
 
  test -z "$as_dir" && as_dir=.
1791
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1792
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
1794
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795
 
    break 2
1796
 
  fi
1797
 
done
1798
 
done
1799
 
 
1800
 
fi
1801
 
fi
1802
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1803
 
if test -n "$ac_ct_CC"; then
1804
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1805
 
echo "${ECHO_T}$ac_ct_CC" >&6
1806
 
else
1807
 
  echo "$as_me:$LINENO: result: no" >&5
1808
 
echo "${ECHO_T}no" >&6
1809
 
fi
1810
 
 
1811
 
  test -n "$ac_ct_CC" && break
1812
 
done
1813
 
 
1814
 
  CC=$ac_ct_CC
1815
 
fi
1816
 
 
1817
 
fi
1818
 
 
1819
 
 
1820
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1821
 
See \`config.log' for more details." >&5
1822
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
1823
 
See \`config.log' for more details." >&2;}
1824
 
   { (exit 1); exit 1; }; }
1825
 
 
1826
 
# Provide some information about the compiler.
1827
 
echo "$as_me:$LINENO:" \
1828
 
     "checking for C compiler version" >&5
1829
 
ac_compiler=`set X $ac_compile; echo $2`
1830
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1831
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1832
 
  ac_status=$?
1833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834
 
  (exit $ac_status); }
1835
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1836
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1837
 
  ac_status=$?
1838
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839
 
  (exit $ac_status); }
1840
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1841
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1842
 
  ac_status=$?
1843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844
 
  (exit $ac_status); }
1845
 
 
1846
 
cat >conftest.$ac_ext <<_ACEOF
1847
 
#line $LINENO "configure"
1848
 
/* confdefs.h.  */
1849
 
_ACEOF
1850
 
cat confdefs.h >>conftest.$ac_ext
1851
 
cat >>conftest.$ac_ext <<_ACEOF
1852
 
/* end confdefs.h.  */
1853
 
 
1854
 
int
1855
 
main ()
1856
 
{
1857
 
 
1858
 
  ;
1859
 
  return 0;
1860
 
}
1861
 
_ACEOF
1862
 
ac_clean_files_save=$ac_clean_files
1863
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1864
 
# Try to create an executable without -o first, disregard a.out.
1865
 
# It will help us diagnose broken compilers, and finding out an intuition
1866
 
# of exeext.
1867
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1868
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1869
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1870
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1871
 
  (eval $ac_link_default) 2>&5
1872
 
  ac_status=$?
1873
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874
 
  (exit $ac_status); }; then
1875
 
  # Find the output, starting from the most likely.  This scheme is
1876
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1877
 
# resort.
1878
 
 
1879
 
# Be careful to initialize this variable, since it used to be cached.
1880
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1881
 
ac_cv_exeext=
1882
 
# b.out is created by i960 compilers.
1883
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1884
 
do
1885
 
  test -f "$ac_file" || continue
1886
 
  case $ac_file in
1887
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1888
 
        ;;
1889
 
    conftest.$ac_ext )
1890
 
        # This is the source file.
1891
 
        ;;
1892
 
    [ab].out )
1893
 
        # We found the default executable, but exeext='' is most
1894
 
        # certainly right.
1895
 
        break;;
1896
 
    *.* )
1897
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1899
 
        # but it would be cool to find out if it's true.  Does anybody
1900
 
        # maintain Libtool? --akim.
1901
 
        export ac_cv_exeext
1902
 
        break;;
1903
 
    * )
1904
 
        break;;
1905
 
  esac
1906
 
done
1907
 
else
1908
 
  echo "$as_me: failed program was:" >&5
1909
 
sed 's/^/| /' conftest.$ac_ext >&5
1910
 
 
1911
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1912
 
See \`config.log' for more details." >&5
1913
 
echo "$as_me: error: C compiler cannot create executables
1914
 
See \`config.log' for more details." >&2;}
1915
 
   { (exit 77); exit 77; }; }
1916
 
fi
1917
 
 
1918
 
ac_exeext=$ac_cv_exeext
1919
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1920
 
echo "${ECHO_T}$ac_file" >&6
1921
 
 
1922
 
# Check the compiler produces executables we can run.  If not, either
1923
 
# the compiler is broken, or we cross compile.
1924
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1925
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1926
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1927
 
# If not cross compiling, check that we can run a simple program.
1928
 
if test "$cross_compiling" != yes; then
1929
 
  if { ac_try='./$ac_file'
1930
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931
 
  (eval $ac_try) 2>&5
1932
 
  ac_status=$?
1933
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934
 
  (exit $ac_status); }; }; then
1935
 
    cross_compiling=no
1936
 
  else
1937
 
    if test "$cross_compiling" = maybe; then
1938
 
        cross_compiling=yes
1939
 
    else
1940
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1941
 
If you meant to cross compile, use \`--host'.
1942
 
See \`config.log' for more details." >&5
1943
 
echo "$as_me: error: cannot run C compiled programs.
1944
 
If you meant to cross compile, use \`--host'.
1945
 
See \`config.log' for more details." >&2;}
1946
 
   { (exit 1); exit 1; }; }
1947
 
    fi
1948
 
  fi
1949
 
fi
1950
 
echo "$as_me:$LINENO: result: yes" >&5
1951
 
echo "${ECHO_T}yes" >&6
1952
 
 
1953
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1954
 
ac_clean_files=$ac_clean_files_save
1955
 
# Check the compiler produces executables we can run.  If not, either
1956
 
# the compiler is broken, or we cross compile.
1957
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1958
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1959
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1960
 
echo "${ECHO_T}$cross_compiling" >&6
1961
 
 
1962
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1963
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1964
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1965
 
  (eval $ac_link) 2>&5
1966
 
  ac_status=$?
1967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968
 
  (exit $ac_status); }; then
1969
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1970
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1971
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
1972
 
# `rm'.
1973
 
for ac_file in conftest.exe conftest conftest.*; do
1974
 
  test -f "$ac_file" || continue
1975
 
  case $ac_file in
1976
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1977
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1978
 
          export ac_cv_exeext
1979
 
          break;;
1980
 
    * ) break;;
1981
 
  esac
1982
 
done
1983
 
else
1984
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1985
 
See \`config.log' for more details." >&5
1986
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1987
 
See \`config.log' for more details." >&2;}
1988
 
   { (exit 1); exit 1; }; }
1989
 
fi
1990
 
 
1991
 
rm -f conftest$ac_cv_exeext
1992
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1993
 
echo "${ECHO_T}$ac_cv_exeext" >&6
1994
 
 
1995
 
rm -f conftest.$ac_ext
1996
 
EXEEXT=$ac_cv_exeext
1997
 
ac_exeext=$EXEEXT
1998
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1999
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2000
 
if test "${ac_cv_objext+set}" = set; then
2001
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2002
 
else
2003
 
  cat >conftest.$ac_ext <<_ACEOF
2004
 
#line $LINENO "configure"
2005
 
/* confdefs.h.  */
2006
 
_ACEOF
2007
 
cat confdefs.h >>conftest.$ac_ext
2008
 
cat >>conftest.$ac_ext <<_ACEOF
2009
 
/* end confdefs.h.  */
2010
 
 
2011
 
int
2012
 
main ()
2013
 
{
2014
 
 
2015
 
  ;
2016
 
  return 0;
2017
 
}
2018
 
_ACEOF
2019
 
rm -f conftest.o conftest.obj
2020
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2021
 
  (eval $ac_compile) 2>&5
2022
 
  ac_status=$?
2023
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024
 
  (exit $ac_status); }; then
2025
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2026
 
  case $ac_file in
2027
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2028
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2029
 
       break;;
2030
 
  esac
2031
 
done
2032
 
else
2033
 
  echo "$as_me: failed program was:" >&5
2034
 
sed 's/^/| /' conftest.$ac_ext >&5
2035
 
 
2036
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2037
 
See \`config.log' for more details." >&5
2038
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2039
 
See \`config.log' for more details." >&2;}
2040
 
   { (exit 1); exit 1; }; }
2041
 
fi
2042
 
 
2043
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2044
 
fi
2045
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2046
 
echo "${ECHO_T}$ac_cv_objext" >&6
2047
 
OBJEXT=$ac_cv_objext
2048
 
ac_objext=$OBJEXT
2049
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2050
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2051
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2052
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2053
 
else
2054
 
  cat >conftest.$ac_ext <<_ACEOF
2055
 
#line $LINENO "configure"
2056
 
/* confdefs.h.  */
2057
 
_ACEOF
2058
 
cat confdefs.h >>conftest.$ac_ext
2059
 
cat >>conftest.$ac_ext <<_ACEOF
2060
 
/* end confdefs.h.  */
2061
 
 
2062
 
int
2063
 
main ()
2064
 
{
2065
 
#ifndef __GNUC__
2066
 
       choke me
2067
 
#endif
2068
 
 
2069
 
  ;
2070
 
  return 0;
2071
 
}
2072
 
_ACEOF
2073
 
rm -f conftest.$ac_objext
2074
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2075
 
  (eval $ac_compile) 2>&5
2076
 
  ac_status=$?
2077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078
 
  (exit $ac_status); } &&
2079
 
         { ac_try='test -s conftest.$ac_objext'
2080
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081
 
  (eval $ac_try) 2>&5
2082
 
  ac_status=$?
2083
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084
 
  (exit $ac_status); }; }; then
2085
 
  ac_compiler_gnu=yes
2086
 
else
2087
 
  echo "$as_me: failed program was:" >&5
2088
 
sed 's/^/| /' conftest.$ac_ext >&5
2089
 
 
2090
 
ac_compiler_gnu=no
2091
 
fi
2092
 
rm -f conftest.$ac_objext conftest.$ac_ext
2093
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2094
 
 
2095
 
fi
2096
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2097
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2098
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2099
 
ac_test_CFLAGS=${CFLAGS+set}
2100
 
ac_save_CFLAGS=$CFLAGS
2101
 
CFLAGS="-g"
2102
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2103
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2104
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2105
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2106
 
else
2107
 
  cat >conftest.$ac_ext <<_ACEOF
2108
 
#line $LINENO "configure"
2109
 
/* confdefs.h.  */
2110
 
_ACEOF
2111
 
cat confdefs.h >>conftest.$ac_ext
2112
 
cat >>conftest.$ac_ext <<_ACEOF
2113
 
/* end confdefs.h.  */
2114
 
 
2115
 
int
2116
 
main ()
2117
 
{
2118
 
 
2119
 
  ;
2120
 
  return 0;
2121
 
}
2122
 
_ACEOF
2123
 
rm -f conftest.$ac_objext
2124
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125
 
  (eval $ac_compile) 2>&5
2126
 
  ac_status=$?
2127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128
 
  (exit $ac_status); } &&
2129
 
         { ac_try='test -s conftest.$ac_objext'
2130
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131
 
  (eval $ac_try) 2>&5
2132
 
  ac_status=$?
2133
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134
 
  (exit $ac_status); }; }; then
2135
 
  ac_cv_prog_cc_g=yes
2136
 
else
2137
 
  echo "$as_me: failed program was:" >&5
2138
 
sed 's/^/| /' conftest.$ac_ext >&5
2139
 
 
2140
 
ac_cv_prog_cc_g=no
2141
 
fi
2142
 
rm -f conftest.$ac_objext conftest.$ac_ext
2143
 
fi
2144
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2145
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2146
 
if test "$ac_test_CFLAGS" = set; then
2147
 
  CFLAGS=$ac_save_CFLAGS
2148
 
elif test $ac_cv_prog_cc_g = yes; then
2149
 
  if test "$GCC" = yes; then
2150
 
    CFLAGS="-g -O2"
2151
 
  else
2152
 
    CFLAGS="-g"
2153
 
  fi
2154
 
else
2155
 
  if test "$GCC" = yes; then
2156
 
    CFLAGS="-O2"
2157
 
  else
2158
 
    CFLAGS=
2159
 
  fi
2160
 
fi
2161
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2162
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2163
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2164
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2165
 
else
2166
 
  ac_cv_prog_cc_stdc=no
2167
 
ac_save_CC=$CC
2168
 
cat >conftest.$ac_ext <<_ACEOF
2169
 
#line $LINENO "configure"
2170
 
/* confdefs.h.  */
2171
 
_ACEOF
2172
 
cat confdefs.h >>conftest.$ac_ext
2173
 
cat >>conftest.$ac_ext <<_ACEOF
2174
 
/* end confdefs.h.  */
2175
 
#include <stdarg.h>
2176
 
#include <stdio.h>
2177
 
#include <sys/types.h>
2178
 
#include <sys/stat.h>
2179
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2180
 
struct buf { int x; };
2181
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2182
 
static char *e (p, i)
2183
 
     char **p;
2184
 
     int i;
2185
 
{
2186
 
  return p[i];
2187
 
}
2188
 
static char *f (char * (*g) (char **, int), char **p, ...)
2189
 
{
2190
 
  char *s;
2191
 
  va_list v;
2192
 
  va_start (v,p);
2193
 
  s = g (p, va_arg (v,int));
2194
 
  va_end (v);
2195
 
  return s;
2196
 
}
2197
 
int test (int i, double x);
2198
 
struct s1 {int (*f) (int a);};
2199
 
struct s2 {int (*f) (double a);};
2200
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2201
 
int argc;
2202
 
char **argv;
2203
 
int
2204
 
main ()
2205
 
{
2206
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2207
 
  ;
2208
 
  return 0;
2209
 
}
2210
 
_ACEOF
2211
 
# Don't try gcc -ansi; that turns off useful extensions and
2212
 
# breaks some systems' header files.
2213
 
# AIX                   -qlanglvl=ansi
2214
 
# Ultrix and OSF/1      -std1
2215
 
# HP-UX 10.20 and later -Ae
2216
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2217
 
# SVR4                  -Xc -D__EXTENSIONS__
2218
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2219
 
do
2220
 
  CC="$ac_save_CC $ac_arg"
2221
 
  rm -f conftest.$ac_objext
2222
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223
 
  (eval $ac_compile) 2>&5
2224
 
  ac_status=$?
2225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226
 
  (exit $ac_status); } &&
2227
 
         { ac_try='test -s conftest.$ac_objext'
2228
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229
 
  (eval $ac_try) 2>&5
2230
 
  ac_status=$?
2231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232
 
  (exit $ac_status); }; }; then
2233
 
  ac_cv_prog_cc_stdc=$ac_arg
2234
 
break
2235
 
else
2236
 
  echo "$as_me: failed program was:" >&5
2237
 
sed 's/^/| /' conftest.$ac_ext >&5
2238
 
 
2239
 
fi
2240
 
rm -f conftest.$ac_objext
2241
 
done
2242
 
rm -f conftest.$ac_ext conftest.$ac_objext
2243
 
CC=$ac_save_CC
2244
 
 
2245
 
fi
2246
 
 
2247
 
case "x$ac_cv_prog_cc_stdc" in
2248
 
  x|xno)
2249
 
    echo "$as_me:$LINENO: result: none needed" >&5
2250
 
echo "${ECHO_T}none needed" >&6 ;;
2251
 
  *)
2252
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2253
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2254
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2255
 
esac
2256
 
 
2257
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2258
 
# in C++ we need to declare it.  In case someone uses the same compiler
2259
 
# for both compiling C and C++ we need to have the C++ compiler decide
2260
 
# the declaration of exit, since it's the most demanding environment.
2261
 
cat >conftest.$ac_ext <<_ACEOF
2262
 
#ifndef __cplusplus
2263
 
  choke me
2264
 
#endif
2265
 
_ACEOF
2266
 
rm -f conftest.$ac_objext
2267
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268
 
  (eval $ac_compile) 2>&5
2269
 
  ac_status=$?
2270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271
 
  (exit $ac_status); } &&
2272
 
         { ac_try='test -s conftest.$ac_objext'
2273
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274
 
  (eval $ac_try) 2>&5
2275
 
  ac_status=$?
2276
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277
 
  (exit $ac_status); }; }; then
2278
 
  for ac_declaration in \
2279
 
   ''\
2280
 
   '#include <stdlib.h>' \
2281
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2282
 
   'extern "C" void std::exit (int); using std::exit;' \
2283
 
   'extern "C" void exit (int) throw ();' \
2284
 
   'extern "C" void exit (int);' \
2285
 
   'void exit (int);'
2286
 
do
2287
 
  cat >conftest.$ac_ext <<_ACEOF
2288
 
#line $LINENO "configure"
2289
 
/* confdefs.h.  */
2290
 
_ACEOF
2291
 
cat confdefs.h >>conftest.$ac_ext
2292
 
cat >>conftest.$ac_ext <<_ACEOF
2293
 
/* end confdefs.h.  */
2294
 
#include <stdlib.h>
2295
 
$ac_declaration
2296
 
int
2297
 
main ()
2298
 
{
2299
 
exit (42);
2300
 
  ;
2301
 
  return 0;
2302
 
}
2303
 
_ACEOF
2304
 
rm -f conftest.$ac_objext
2305
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306
 
  (eval $ac_compile) 2>&5
2307
 
  ac_status=$?
2308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309
 
  (exit $ac_status); } &&
2310
 
         { ac_try='test -s conftest.$ac_objext'
2311
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312
 
  (eval $ac_try) 2>&5
2313
 
  ac_status=$?
2314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315
 
  (exit $ac_status); }; }; then
2316
 
  :
2317
 
else
2318
 
  echo "$as_me: failed program was:" >&5
2319
 
sed 's/^/| /' conftest.$ac_ext >&5
2320
 
 
2321
 
continue
2322
 
fi
2323
 
rm -f conftest.$ac_objext conftest.$ac_ext
2324
 
  cat >conftest.$ac_ext <<_ACEOF
2325
 
#line $LINENO "configure"
2326
 
/* confdefs.h.  */
2327
 
_ACEOF
2328
 
cat confdefs.h >>conftest.$ac_ext
2329
 
cat >>conftest.$ac_ext <<_ACEOF
2330
 
/* end confdefs.h.  */
2331
 
$ac_declaration
2332
 
int
2333
 
main ()
2334
 
{
2335
 
exit (42);
2336
 
  ;
2337
 
  return 0;
2338
 
}
2339
 
_ACEOF
2340
 
rm -f conftest.$ac_objext
2341
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342
 
  (eval $ac_compile) 2>&5
2343
 
  ac_status=$?
2344
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345
 
  (exit $ac_status); } &&
2346
 
         { ac_try='test -s conftest.$ac_objext'
2347
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348
 
  (eval $ac_try) 2>&5
2349
 
  ac_status=$?
2350
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351
 
  (exit $ac_status); }; }; then
2352
 
  break
2353
 
else
2354
 
  echo "$as_me: failed program was:" >&5
2355
 
sed 's/^/| /' conftest.$ac_ext >&5
2356
 
 
2357
 
fi
2358
 
rm -f conftest.$ac_objext conftest.$ac_ext
2359
 
done
2360
 
rm -f conftest*
2361
 
if test -n "$ac_declaration"; then
2362
 
  echo '#ifdef __cplusplus' >>confdefs.h
2363
 
  echo $ac_declaration      >>confdefs.h
2364
 
  echo '#endif'             >>confdefs.h
2365
 
fi
2366
 
 
2367
 
else
2368
 
  echo "$as_me: failed program was:" >&5
2369
 
sed 's/^/| /' conftest.$ac_ext >&5
2370
 
 
2371
 
fi
2372
 
rm -f conftest.$ac_objext conftest.$ac_ext
2373
 
ac_ext=c
2374
 
ac_cpp='$CPP $CPPFLAGS'
2375
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
 
 
2379
 
 
2380
 
 
2381
 
echo "$as_me:$LINENO: checking for xmlNewParserCtxt in -lxml2" >&5
2382
 
echo $ECHO_N "checking for xmlNewParserCtxt in -lxml2... $ECHO_C" >&6
2383
 
if test "${ac_cv_lib_xml2_xmlNewParserCtxt+set}" = set; then
2384
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2385
 
else
2386
 
  ac_check_lib_save_LIBS=$LIBS
2387
 
LIBS="-lxml2  $LIBS"
2388
 
cat >conftest.$ac_ext <<_ACEOF
2389
 
#line $LINENO "configure"
2390
 
/* confdefs.h.  */
2391
 
_ACEOF
2392
 
cat confdefs.h >>conftest.$ac_ext
2393
 
cat >>conftest.$ac_ext <<_ACEOF
2394
 
/* end confdefs.h.  */
2395
 
 
2396
 
/* Override any gcc2 internal prototype to avoid an error.  */
2397
 
#ifdef __cplusplus
2398
 
extern "C"
2399
 
#endif
2400
 
/* We use char because int might match the return type of a gcc2
2401
 
   builtin and then its argument prototype would still apply.  */
2402
 
char xmlNewParserCtxt ();
2403
 
int
2404
 
main ()
2405
 
{
2406
 
xmlNewParserCtxt ();
2407
 
  ;
2408
 
  return 0;
2409
 
}
2410
 
_ACEOF
2411
 
rm -f conftest.$ac_objext conftest$ac_exeext
2412
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413
 
  (eval $ac_link) 2>&5
2414
 
  ac_status=$?
2415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416
 
  (exit $ac_status); } &&
2417
 
         { ac_try='test -s conftest$ac_exeext'
2418
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419
 
  (eval $ac_try) 2>&5
2420
 
  ac_status=$?
2421
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422
 
  (exit $ac_status); }; }; then
2423
 
  ac_cv_lib_xml2_xmlNewParserCtxt=yes
2424
 
else
2425
 
  echo "$as_me: failed program was:" >&5
2426
 
sed 's/^/| /' conftest.$ac_ext >&5
2427
 
 
2428
 
ac_cv_lib_xml2_xmlNewParserCtxt=no
2429
 
fi
2430
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2431
 
LIBS=$ac_check_lib_save_LIBS
2432
 
fi
2433
 
echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewParserCtxt" >&5
2434
 
echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewParserCtxt" >&6
2435
 
if test $ac_cv_lib_xml2_xmlNewParserCtxt = yes; then
2436
 
  cat >>confdefs.h <<_ACEOF
2437
 
#define HAVE_LIBXML2 1
2438
 
_ACEOF
2439
 
 
2440
 
  LIBS="-lxml2 $LIBS"
2441
 
 
2442
 
else
2443
 
 
2444
 
        "You must have the libxml2 development files installed"
2445
 
        exit -1
2446
 
 
2447
 
fi
2448
 
 
2449
 
 
2450
 
# Make sure we can run config.sub.
2451
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
2452
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2453
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2454
 
   { (exit 1); exit 1; }; }
2455
 
 
2456
 
echo "$as_me:$LINENO: checking build system type" >&5
2457
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2458
 
if test "${ac_cv_build+set}" = set; then
2459
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2460
 
else
2461
 
  ac_cv_build_alias=$build_alias
2462
 
test -z "$ac_cv_build_alias" &&
2463
 
  ac_cv_build_alias=`$ac_config_guess`
2464
 
test -z "$ac_cv_build_alias" &&
2465
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2466
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2467
 
   { (exit 1); exit 1; }; }
2468
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2469
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2470
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2471
 
   { (exit 1); exit 1; }; }
2472
 
 
2473
 
fi
2474
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2475
 
echo "${ECHO_T}$ac_cv_build" >&6
2476
 
build=$ac_cv_build
2477
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2478
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2479
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2480
 
 
2481
 
 
2482
 
echo "$as_me:$LINENO: checking host system type" >&5
2483
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2484
 
if test "${ac_cv_host+set}" = set; then
2485
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2486
 
else
2487
 
  ac_cv_host_alias=$host_alias
2488
 
test -z "$ac_cv_host_alias" &&
2489
 
  ac_cv_host_alias=$ac_cv_build_alias
2490
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2491
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2492
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2493
 
   { (exit 1); exit 1; }; }
2494
 
 
2495
 
fi
2496
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2497
 
echo "${ECHO_T}$ac_cv_host" >&6
2498
 
host=$ac_cv_host
2499
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2500
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2501
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2502
 
 
2503
 
 
2504
 
echo "$as_me:$LINENO: checking target system type" >&5
2505
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
2506
 
if test "${ac_cv_target+set}" = set; then
2507
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2508
 
else
2509
 
  ac_cv_target_alias=$target_alias
2510
 
test "x$ac_cv_target_alias" = "x" &&
2511
 
  ac_cv_target_alias=$ac_cv_host_alias
2512
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2513
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2514
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2515
 
   { (exit 1); exit 1; }; }
2516
 
 
2517
 
fi
2518
 
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2519
 
echo "${ECHO_T}$ac_cv_target" >&6
2520
 
target=$ac_cv_target
2521
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2522
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2523
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2524
 
 
2525
 
 
2526
 
# The aliases save the names the user supplied, while $host etc.
2527
 
# will get canonicalized.
2528
 
test -n "$target_alias" &&
2529
 
  test "$program_prefix$program_suffix$program_transform_name" = \
2530
 
    NONENONEs,x,x, &&
2531
 
  program_prefix=${target_alias}-
2532
 
 
2533
 
am__api_version="1.7"
2534
 
 
2535
 
 
2536
 
          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
2537
 
  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
2538
 
  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
2539
 
  # Find a good install program.  We prefer a C program (faster),
 
1355
# Find a good install program.  We prefer a C program (faster),
2540
1356
# so one script is as good as another.  But avoid the broken or
2541
1357
# incompatible versions:
2542
1358
# SysV /etc/install, /usr/sbin/install
2547
1363
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548
1364
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549
1365
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1366
# OS/2's system install, which has a completely different semantic
2550
1367
# ./install, which can be erroneously created by make from ./install.sh.
2551
1368
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2552
1369
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2563
1380
case $as_dir/ in
2564
1381
  ./ | .// | /cC/* | \
2565
1382
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1383
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2566
1384
  /usr/ucb/* ) ;;
2567
1385
  *)
2568
1386
    # OSF1 and SCO ODT 3.0 have their own names for install.
2570
1388
    # by default.
2571
1389
    for ac_prog in ginstall scoinst install; do
2572
1390
      for ac_exec_ext in '' $ac_executable_extensions; do
2573
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2574
 
          if test $ac_prog = install &&
2575
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2576
 
            # AIX install.  It has an incompatible calling convention.
2577
 
            :
2578
 
          elif test $ac_prog = install &&
2579
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2580
 
            # program-specific install script used by HP pwplus--don't use.
2581
 
            :
2582
 
          else
2583
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2584
 
            break 3
2585
 
          fi
2586
 
        fi
 
1391
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1392
          if test $ac_prog = install &&
 
1393
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1394
            # AIX install.  It has an incompatible calling convention.
 
1395
            :
 
1396
          elif test $ac_prog = install &&
 
1397
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1398
            # program-specific install script used by HP pwplus--don't use.
 
1399
            :
 
1400
          else
 
1401
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1402
            break 3
 
1403
          fi
 
1404
        fi
2587
1405
      done
2588
1406
    done
2589
1407
    ;;
2613
1431
 
2614
1432
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2615
1433
 
2616
 
 
2617
 
  if test -z "$kde_save_INSTALL_given" ; then
2618
 
    # OK, user hasn't given any INSTALL, autoconf found one for us
2619
 
    # now we test, if it supports the -p flag
2620
 
    echo "$as_me:$LINENO: checking for -p flag to install" >&5
2621
 
echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
2622
 
    rm -f confinst.$$.* > /dev/null 2>&1
2623
 
    echo "Testtest" > confinst.$$.orig
2624
 
    ac_res=no
2625
 
    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
2626
 
      if test -f confinst.$$.new ; then
2627
 
        # OK, -p seems to do no harm to install
2628
 
        INSTALL="${INSTALL} -p"
2629
 
        ac_res=yes
2630
 
      fi
2631
 
    fi
2632
 
    rm -f confinst.$$.*
2633
 
    echo "$as_me:$LINENO: result: $ac_res" >&5
2634
 
echo "${ECHO_T}$ac_res" >&6
2635
 
  fi
2636
 
 
2637
 
  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
2638
 
    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
2639
 
  fi
2640
 
  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
2641
 
    INSTALL_SCRIPT='${INSTALL}'
2642
 
  fi
2643
 
 
2644
1434
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2645
1435
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2646
1436
# Just in case
2699
1489
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2700
1490
rm conftest.sed
2701
1491
 
2702
 
 
2703
1492
# expand $ac_aux_dir to an absolute path
2704
1493
am_aux_dir=`cd $ac_aux_dir && pwd`
2705
1494
 
2713
1502
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2714
1503
fi
2715
1504
 
 
1505
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1506
  # We used to keeping the `.' as first argument, in order to
 
1507
  # allow $(mkdir_p) to be used without argument.  As in
 
1508
  #   $(mkdir_p) $(somedir)
 
1509
  # where $(somedir) is conditionally defined.  However this is wrong
 
1510
  # for two reasons:
 
1511
  #  1. if the package is installed by a user who cannot write `.'
 
1512
  #     make install will fail,
 
1513
  #  2. the above comment should most certainly read
 
1514
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1515
  #     so it does not work when $(somedir) is undefined and
 
1516
  #     $(DESTDIR) is not.
 
1517
  #  To support the latter case, we have to write
 
1518
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1519
  #  so the `.' trick is pointless.
 
1520
  mkdir_p='mkdir -p --'
 
1521
else
 
1522
  # On NextStep and OpenStep, the `mkdir' command does not
 
1523
  # recognize any option.  It will interpret all options as
 
1524
  # directories to create, and then abort because `.' already
 
1525
  # exists.
 
1526
  for d in ./-p ./--version;
 
1527
  do
 
1528
    test -d $d && rmdir $d
 
1529
  done
 
1530
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1531
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1532
    mkdir_p='$(mkinstalldirs)'
 
1533
  else
 
1534
    mkdir_p='$(install_sh) -d'
 
1535
  fi
 
1536
fi
 
1537
 
2716
1538
for ac_prog in gawk mawk nawk awk
2717
1539
do
2718
1540
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2755
1577
 
2756
1578
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2757
1579
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2758
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1580
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2759
1581
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2760
1582
  echo $ECHO_N "(cached) $ECHO_C" >&6
2761
1583
else
2791
1613
fi
2792
1614
rmdir .tst 2>/dev/null
2793
1615
 
2794
 
DEPDIR="${am__leading_dot}deps"
2795
 
 
2796
 
          ac_config_commands="$ac_config_commands depfiles"
2797
 
 
2798
 
 
2799
 
am_make=${MAKE-make}
2800
 
cat > confinc << 'END'
2801
 
am__doit:
2802
 
        @echo done
2803
 
.PHONY: am__doit
2804
 
END
2805
 
# If we don't find an include directive, just comment out the code.
2806
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2807
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2808
 
am__include="#"
2809
 
am__quote=
2810
 
_am_result=none
2811
 
# First try GNU make style include.
2812
 
echo "include confinc" > confmf
2813
 
# We grep out `Entering directory' and `Leaving directory'
2814
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2815
 
# In particular we don't look at `^make:' because GNU make might
2816
 
# be invoked under some other name (usually "gmake"), in which
2817
 
# case it prints its new name instead of `make'.
2818
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2819
 
   am__include=include
2820
 
   am__quote=
2821
 
   _am_result=GNU
2822
 
fi
2823
 
# Now try BSD make style include.
2824
 
if test "$am__include" = "#"; then
2825
 
   echo '.include "confinc"' > confmf
2826
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2827
 
      am__include=.include
2828
 
      am__quote="\""
2829
 
      _am_result=BSD
2830
 
   fi
2831
 
fi
2832
 
 
2833
 
 
2834
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2835
 
echo "${ECHO_T}$_am_result" >&6
2836
 
rm -f confinc confmf
2837
 
 
2838
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2839
 
if test "${enable_dependency_tracking+set}" = set; then
2840
 
  enableval="$enable_dependency_tracking"
2841
 
 
2842
 
fi;
2843
 
if test "x$enable_dependency_tracking" != xno; then
2844
 
  am_depcomp="$ac_aux_dir/depcomp"
2845
 
  AMDEPBACKSLASH='\'
2846
 
fi
2847
 
 
2848
 
 
2849
 
if test "x$enable_dependency_tracking" != xno; then
2850
 
  AMDEP_TRUE=
2851
 
  AMDEP_FALSE='#'
2852
 
else
2853
 
  AMDEP_TRUE='#'
2854
 
  AMDEP_FALSE=
2855
 
fi
2856
 
 
2857
 
 
2858
 
 
2859
 
 # test to see if srcdir already configured
 
1616
# test to see if srcdir already configured
2860
1617
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2861
1618
   test -f $srcdir/config.status; then
2862
1619
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2876
1633
 
2877
1634
# Define the identity of the package.
2878
1635
 PACKAGE=bookmarkbridge
2879
 
 VERSION=0.1
 
1636
 VERSION=0.76
2880
1637
 
2881
1638
 
2882
1639
cat >>confdefs.h <<_ACEOF
2904
1661
 
2905
1662
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2906
1663
 
2907
 
 
2908
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2909
 
 
2910
1664
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2911
1665
 
2912
1666
# Installed binaries are usually stripped using `strip' when the user
2999
1753
 
3000
1754
# We need awk for the "check" target.  The system "awk" is bad on
3001
1755
# some platforms.
3002
 
 
3003
 
 
3004
 
depcc="$CC"   am_compiler_list=
3005
 
 
3006
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3007
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3008
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3009
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3010
 
else
3011
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3012
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3013
 
  # making bogus files that we don't know about and never remove.  For
3014
 
  # instance it was reported that on HP-UX the gcc test will end up
3015
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3016
 
  # in D'.
3017
 
  mkdir conftest.dir
3018
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3019
 
  # using a relative directory.
3020
 
  cp "$am_depcomp" conftest.dir
3021
 
  cd conftest.dir
3022
 
  # We will build objects and dependencies in a subdirectory because
3023
 
  # it helps to detect inapplicable dependency modes.  For instance
3024
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3025
 
  # side effect of compilation, but ICC will put the dependencies in
3026
 
  # the current directory while Tru64 will put them in the object
3027
 
  # directory.
3028
 
  mkdir sub
3029
 
 
3030
 
  am_cv_CC_dependencies_compiler_type=none
3031
 
  if test "$am_compiler_list" = ""; then
3032
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3033
 
  fi
3034
 
  for depmode in $am_compiler_list; do
3035
 
    # Setup a source with many dependencies, because some compilers
3036
 
    # like to wrap large dependency lists on column 80 (with \), and
3037
 
    # we should not choose a depcomp mode which is confused by this.
3038
 
    #
3039
 
    # We need to recreate these files for each test, as the compiler may
3040
 
    # overwrite some of them when testing with obscure command lines.
3041
 
    # This happens at least with the AIX C compiler.
3042
 
    : > sub/conftest.c
3043
 
    for i in 1 2 3 4 5 6; do
3044
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3045
 
      : > sub/conftst$i.h
3046
 
    done
3047
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3048
 
 
3049
 
    case $depmode in
3050
 
    nosideeffect)
3051
 
      # after this tag, mechanisms are not by side-effect, so they'll
3052
 
      # only be used when explicitly requested
3053
 
      if test "x$enable_dependency_tracking" = xyes; then
3054
 
        continue
3055
 
      else
3056
 
        break
3057
 
      fi
3058
 
      ;;
3059
 
    none) break ;;
3060
 
    esac
3061
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3062
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3063
 
    # handle `-M -o', and we need to detect this.
3064
 
    if depmode=$depmode \
3065
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3066
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3067
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3068
 
         >/dev/null 2>conftest.err &&
3069
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3070
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3071
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3072
 
      # icc doesn't choke on unknown options, it will just issue warnings
3073
 
      # (even with -Werror).  So we grep stderr for any message
3074
 
      # that says an option was ignored.
3075
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3076
 
        am_cv_CC_dependencies_compiler_type=$depmode
3077
 
        break
3078
 
      fi
3079
 
    fi
3080
 
  done
3081
 
 
3082
 
  cd ..
3083
 
  rm -rf conftest.dir
3084
 
else
3085
 
  am_cv_CC_dependencies_compiler_type=none
3086
 
fi
3087
 
 
3088
 
fi
3089
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3090
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3091
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3092
 
 
3093
 
 
3094
 
 
3095
 
if
3096
 
  test "x$enable_dependency_tracking" != xno \
3097
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3098
 
  am__fastdepCC_TRUE=
3099
 
  am__fastdepCC_FALSE='#'
3100
 
else
3101
 
  am__fastdepCC_TRUE='#'
3102
 
  am__fastdepCC_FALSE=
3103
 
fi
3104
 
 
3105
 
 
3106
 
 
3107
 
 
3108
 
 
3109
 
 
3110
 
if test "x$prefix" = "xNONE"; then
3111
 
  prefix=$ac_default_prefix
3112
 
  ac_configure_args="$ac_configure_args --prefix $prefix"
3113
 
fi
3114
 
 
3115
 
 
3116
 
 
3117
 
 
3118
 
  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3119
 
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3120
 
  ac_define_dir=`eval echo $datadir`
3121
 
  ac_define_dir=`eval echo $ac_define_dir`
3122
 
 
3123
 
cat >>confdefs.h <<_ACEOF
3124
 
#define DATADIR "$ac_define_dir"
3125
 
_ACEOF
3126
 
 
3127
 
 
3128
 
 
3129
 
          ac_config_headers="$ac_config_headers config.h"
3130
 
 
3131
 
 
3132
 
 
3133
 
  # Check whether --enable-debug or --disable-debug was given.
3134
 
if test "${enable_debug+set}" = set; then
3135
 
  enableval="$enable_debug"
3136
 
 
3137
 
    case $enableval in
3138
 
      yes)
3139
 
        kde_use_debug_code="yes"
3140
 
        kde_use_debug_define=no
3141
 
        ;;
3142
 
      full)
3143
 
        kde_use_debug_code="full"
3144
 
        kde_use_debug_define=no
3145
 
        ;;
3146
 
      *)
3147
 
        kde_use_debug_code="no"
3148
 
        kde_use_debug_define=yes
3149
 
        ;;
3150
 
    esac
3151
 
 
3152
 
else
3153
 
  kde_use_debug_code="no"
3154
 
      kde_use_debug_define=no
3155
 
 
3156
 
fi;
3157
 
 
3158
 
    # Check whether --enable-dummyoption or --disable-dummyoption was given.
3159
 
if test "${enable_dummyoption+set}" = set; then
3160
 
  enableval="$enable_dummyoption"
3161
 
 
3162
 
fi;
3163
 
 
3164
 
  # Check whether --enable-strict or --disable-strict was given.
3165
 
if test "${enable_strict+set}" = set; then
3166
 
  enableval="$enable_strict"
3167
 
 
3168
 
    if test $enableval = "no"; then
3169
 
         kde_use_strict_options="no"
3170
 
       else
3171
 
         kde_use_strict_options="yes"
3172
 
    fi
3173
 
 
3174
 
else
3175
 
  kde_use_strict_options="no"
3176
 
fi;
3177
 
 
3178
 
  # Check whether --enable-warnings or --disable-warnings was given.
3179
 
if test "${enable_warnings+set}" = set; then
3180
 
  enableval="$enable_warnings"
3181
 
 
3182
 
    if test $enableval = "no"; then
3183
 
         kde_use_warnings="no"
3184
 
       else
3185
 
         kde_use_warnings="yes"
3186
 
    fi
3187
 
 
3188
 
else
3189
 
  kde_use_warnings="yes"
3190
 
fi;
3191
 
 
3192
 
    if test "$kde_use_debug_code" != "no"; then
3193
 
    kde_use_warnings=yes
3194
 
  fi
3195
 
 
3196
 
  # Check whether --enable-profile or --disable-profile was given.
3197
 
if test "${enable_profile+set}" = set; then
3198
 
  enableval="$enable_profile"
3199
 
  kde_use_profiling=$enableval
3200
 
else
3201
 
  kde_use_profiling="no"
3202
 
 
3203
 
fi;
3204
 
 
3205
 
    CFLAGS=" $CFLAGS"
3206
 
 
3207
 
  ac_ext=c
3208
 
ac_cpp='$CPP $CPPFLAGS'
3209
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212
 
if test -n "$ac_tool_prefix"; then
3213
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3214
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3215
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3216
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217
 
if test "${ac_cv_prog_CC+set}" = set; then
3218
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3219
 
else
3220
 
  if test -n "$CC"; then
3221
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3222
 
else
3223
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224
 
for as_dir in $PATH
3225
 
do
3226
 
  IFS=$as_save_IFS
3227
 
  test -z "$as_dir" && as_dir=.
3228
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3229
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3231
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232
 
    break 2
3233
 
  fi
3234
 
done
3235
 
done
3236
 
 
3237
 
fi
3238
 
fi
3239
 
CC=$ac_cv_prog_CC
3240
 
if test -n "$CC"; then
3241
 
  echo "$as_me:$LINENO: result: $CC" >&5
3242
 
echo "${ECHO_T}$CC" >&6
3243
 
else
3244
 
  echo "$as_me:$LINENO: result: no" >&5
3245
 
echo "${ECHO_T}no" >&6
3246
 
fi
3247
 
 
3248
 
fi
3249
 
if test -z "$ac_cv_prog_CC"; then
3250
 
  ac_ct_CC=$CC
3251
 
  # Extract the first word of "gcc", so it can be a program name with args.
3252
 
set dummy gcc; ac_word=$2
3253
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3254
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3256
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3257
 
else
3258
 
  if test -n "$ac_ct_CC"; then
3259
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260
 
else
3261
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262
 
for as_dir in $PATH
3263
 
do
3264
 
  IFS=$as_save_IFS
3265
 
  test -z "$as_dir" && as_dir=.
3266
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3267
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268
 
    ac_cv_prog_ac_ct_CC="gcc"
3269
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270
 
    break 2
3271
 
  fi
3272
 
done
3273
 
done
3274
 
 
3275
 
fi
3276
 
fi
3277
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278
 
if test -n "$ac_ct_CC"; then
3279
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3280
 
echo "${ECHO_T}$ac_ct_CC" >&6
3281
 
else
3282
 
  echo "$as_me:$LINENO: result: no" >&5
3283
 
echo "${ECHO_T}no" >&6
3284
 
fi
3285
 
 
3286
 
  CC=$ac_ct_CC
3287
 
else
3288
 
  CC="$ac_cv_prog_CC"
3289
 
fi
3290
 
 
3291
 
if test -z "$CC"; then
3292
 
  if test -n "$ac_tool_prefix"; then
3293
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3294
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3295
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3296
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297
 
if test "${ac_cv_prog_CC+set}" = set; then
3298
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3299
 
else
3300
 
  if test -n "$CC"; then
3301
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3302
 
else
3303
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304
 
for as_dir in $PATH
3305
 
do
3306
 
  IFS=$as_save_IFS
3307
 
  test -z "$as_dir" && as_dir=.
3308
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3309
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3311
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312
 
    break 2
3313
 
  fi
3314
 
done
3315
 
done
3316
 
 
3317
 
fi
3318
 
fi
3319
 
CC=$ac_cv_prog_CC
3320
 
if test -n "$CC"; then
3321
 
  echo "$as_me:$LINENO: result: $CC" >&5
3322
 
echo "${ECHO_T}$CC" >&6
3323
 
else
3324
 
  echo "$as_me:$LINENO: result: no" >&5
3325
 
echo "${ECHO_T}no" >&6
3326
 
fi
3327
 
 
3328
 
fi
3329
 
if test -z "$ac_cv_prog_CC"; then
3330
 
  ac_ct_CC=$CC
3331
 
  # Extract the first word of "cc", so it can be a program name with args.
3332
 
set dummy cc; ac_word=$2
3333
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3334
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3336
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3337
 
else
3338
 
  if test -n "$ac_ct_CC"; then
3339
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3340
 
else
3341
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342
 
for as_dir in $PATH
3343
 
do
3344
 
  IFS=$as_save_IFS
3345
 
  test -z "$as_dir" && as_dir=.
3346
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3347
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348
 
    ac_cv_prog_ac_ct_CC="cc"
3349
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350
 
    break 2
3351
 
  fi
3352
 
done
3353
 
done
3354
 
 
3355
 
fi
3356
 
fi
3357
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358
 
if test -n "$ac_ct_CC"; then
3359
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3360
 
echo "${ECHO_T}$ac_ct_CC" >&6
3361
 
else
3362
 
  echo "$as_me:$LINENO: result: no" >&5
3363
 
echo "${ECHO_T}no" >&6
3364
 
fi
3365
 
 
3366
 
  CC=$ac_ct_CC
3367
 
else
3368
 
  CC="$ac_cv_prog_CC"
3369
 
fi
3370
 
 
3371
 
fi
3372
 
if test -z "$CC"; then
3373
 
  # Extract the first word of "cc", so it can be a program name with args.
3374
 
set dummy cc; ac_word=$2
3375
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3376
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377
 
if test "${ac_cv_prog_CC+set}" = set; then
3378
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3379
 
else
3380
 
  if test -n "$CC"; then
3381
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3382
 
else
3383
 
  ac_prog_rejected=no
3384
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385
 
for as_dir in $PATH
3386
 
do
3387
 
  IFS=$as_save_IFS
3388
 
  test -z "$as_dir" && as_dir=.
3389
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3390
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3392
 
       ac_prog_rejected=yes
3393
 
       continue
3394
 
     fi
3395
 
    ac_cv_prog_CC="cc"
3396
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397
 
    break 2
3398
 
  fi
3399
 
done
3400
 
done
3401
 
 
3402
 
if test $ac_prog_rejected = yes; then
3403
 
  # We found a bogon in the path, so make sure we never use it.
3404
 
  set dummy $ac_cv_prog_CC
3405
 
  shift
3406
 
  if test $# != 0; then
3407
 
    # We chose a different compiler from the bogus one.
3408
 
    # However, it has the same basename, so the bogon will be chosen
3409
 
    # first if we set CC to just the basename; use the full file name.
3410
 
    shift
3411
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3412
 
  fi
3413
 
fi
3414
 
fi
3415
 
fi
3416
 
CC=$ac_cv_prog_CC
3417
 
if test -n "$CC"; then
3418
 
  echo "$as_me:$LINENO: result: $CC" >&5
3419
 
echo "${ECHO_T}$CC" >&6
3420
 
else
3421
 
  echo "$as_me:$LINENO: result: no" >&5
3422
 
echo "${ECHO_T}no" >&6
3423
 
fi
3424
 
 
3425
 
fi
3426
 
if test -z "$CC"; then
3427
 
  if test -n "$ac_tool_prefix"; then
3428
 
  for ac_prog in cl
3429
 
  do
3430
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3431
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3432
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3433
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434
 
if test "${ac_cv_prog_CC+set}" = set; then
3435
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3436
 
else
3437
 
  if test -n "$CC"; then
3438
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3439
 
else
3440
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441
 
for as_dir in $PATH
3442
 
do
3443
 
  IFS=$as_save_IFS
3444
 
  test -z "$as_dir" && as_dir=.
3445
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3446
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3448
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449
 
    break 2
3450
 
  fi
3451
 
done
3452
 
done
3453
 
 
3454
 
fi
3455
 
fi
3456
 
CC=$ac_cv_prog_CC
3457
 
if test -n "$CC"; then
3458
 
  echo "$as_me:$LINENO: result: $CC" >&5
3459
 
echo "${ECHO_T}$CC" >&6
3460
 
else
3461
 
  echo "$as_me:$LINENO: result: no" >&5
3462
 
echo "${ECHO_T}no" >&6
3463
 
fi
3464
 
 
3465
 
    test -n "$CC" && break
3466
 
  done
3467
 
fi
3468
 
if test -z "$CC"; then
3469
 
  ac_ct_CC=$CC
3470
 
  for ac_prog in cl
3471
 
do
3472
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3473
 
set dummy $ac_prog; ac_word=$2
3474
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3475
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3476
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3477
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3478
 
else
3479
 
  if test -n "$ac_ct_CC"; then
3480
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481
 
else
3482
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483
 
for as_dir in $PATH
3484
 
do
3485
 
  IFS=$as_save_IFS
3486
 
  test -z "$as_dir" && as_dir=.
3487
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3488
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3490
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491
 
    break 2
3492
 
  fi
3493
 
done
3494
 
done
3495
 
 
3496
 
fi
3497
 
fi
3498
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499
 
if test -n "$ac_ct_CC"; then
3500
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3501
 
echo "${ECHO_T}$ac_ct_CC" >&6
3502
 
else
3503
 
  echo "$as_me:$LINENO: result: no" >&5
3504
 
echo "${ECHO_T}no" >&6
3505
 
fi
3506
 
 
3507
 
  test -n "$ac_ct_CC" && break
3508
 
done
3509
 
 
3510
 
  CC=$ac_ct_CC
3511
 
fi
3512
 
 
3513
 
fi
3514
 
 
3515
 
 
3516
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3517
 
See \`config.log' for more details." >&5
3518
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3519
 
See \`config.log' for more details." >&2;}
3520
 
   { (exit 1); exit 1; }; }
3521
 
 
3522
 
# Provide some information about the compiler.
3523
 
echo "$as_me:$LINENO:" \
3524
 
     "checking for C compiler version" >&5
3525
 
ac_compiler=`set X $ac_compile; echo $2`
3526
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3527
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
3528
 
  ac_status=$?
3529
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530
 
  (exit $ac_status); }
3531
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3532
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
3533
 
  ac_status=$?
3534
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535
 
  (exit $ac_status); }
3536
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3537
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
3538
 
  ac_status=$?
3539
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540
 
  (exit $ac_status); }
3541
 
 
3542
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3543
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3544
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3545
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3546
 
else
3547
 
  cat >conftest.$ac_ext <<_ACEOF
3548
 
#line $LINENO "configure"
3549
 
/* confdefs.h.  */
3550
 
_ACEOF
3551
 
cat confdefs.h >>conftest.$ac_ext
3552
 
cat >>conftest.$ac_ext <<_ACEOF
3553
 
/* end confdefs.h.  */
3554
 
 
3555
 
int
3556
 
main ()
3557
 
{
3558
 
#ifndef __GNUC__
3559
 
       choke me
3560
 
#endif
3561
 
 
3562
 
  ;
3563
 
  return 0;
3564
 
}
3565
 
_ACEOF
3566
 
rm -f conftest.$ac_objext
3567
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568
 
  (eval $ac_compile) 2>&5
3569
 
  ac_status=$?
3570
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571
 
  (exit $ac_status); } &&
3572
 
         { ac_try='test -s conftest.$ac_objext'
3573
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574
 
  (eval $ac_try) 2>&5
3575
 
  ac_status=$?
3576
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577
 
  (exit $ac_status); }; }; then
3578
 
  ac_compiler_gnu=yes
3579
 
else
3580
 
  echo "$as_me: failed program was:" >&5
3581
 
sed 's/^/| /' conftest.$ac_ext >&5
3582
 
 
3583
 
ac_compiler_gnu=no
3584
 
fi
3585
 
rm -f conftest.$ac_objext conftest.$ac_ext
3586
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3587
 
 
3588
 
fi
3589
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3590
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3591
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
3592
 
ac_test_CFLAGS=${CFLAGS+set}
3593
 
ac_save_CFLAGS=$CFLAGS
3594
 
CFLAGS="-g"
3595
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3596
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3597
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3598
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3599
 
else
3600
 
  cat >conftest.$ac_ext <<_ACEOF
3601
 
#line $LINENO "configure"
3602
 
/* confdefs.h.  */
3603
 
_ACEOF
3604
 
cat confdefs.h >>conftest.$ac_ext
3605
 
cat >>conftest.$ac_ext <<_ACEOF
3606
 
/* end confdefs.h.  */
3607
 
 
3608
 
int
3609
 
main ()
3610
 
{
3611
 
 
3612
 
  ;
3613
 
  return 0;
3614
 
}
3615
 
_ACEOF
3616
 
rm -f conftest.$ac_objext
3617
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618
 
  (eval $ac_compile) 2>&5
3619
 
  ac_status=$?
3620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621
 
  (exit $ac_status); } &&
3622
 
         { ac_try='test -s conftest.$ac_objext'
3623
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624
 
  (eval $ac_try) 2>&5
3625
 
  ac_status=$?
3626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627
 
  (exit $ac_status); }; }; then
3628
 
  ac_cv_prog_cc_g=yes
3629
 
else
3630
 
  echo "$as_me: failed program was:" >&5
3631
 
sed 's/^/| /' conftest.$ac_ext >&5
3632
 
 
3633
 
ac_cv_prog_cc_g=no
3634
 
fi
3635
 
rm -f conftest.$ac_objext conftest.$ac_ext
3636
 
fi
3637
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3638
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3639
 
if test "$ac_test_CFLAGS" = set; then
3640
 
  CFLAGS=$ac_save_CFLAGS
3641
 
elif test $ac_cv_prog_cc_g = yes; then
3642
 
  if test "$GCC" = yes; then
3643
 
    CFLAGS="-g -O2"
3644
 
  else
3645
 
    CFLAGS="-g"
3646
 
  fi
3647
 
else
3648
 
  if test "$GCC" = yes; then
3649
 
    CFLAGS="-O2"
3650
 
  else
3651
 
    CFLAGS=
3652
 
  fi
3653
 
fi
3654
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3655
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3656
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3657
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3658
 
else
3659
 
  ac_cv_prog_cc_stdc=no
3660
 
ac_save_CC=$CC
3661
 
cat >conftest.$ac_ext <<_ACEOF
3662
 
#line $LINENO "configure"
3663
 
/* confdefs.h.  */
3664
 
_ACEOF
3665
 
cat confdefs.h >>conftest.$ac_ext
3666
 
cat >>conftest.$ac_ext <<_ACEOF
3667
 
/* end confdefs.h.  */
3668
 
#include <stdarg.h>
3669
 
#include <stdio.h>
3670
 
#include <sys/types.h>
3671
 
#include <sys/stat.h>
3672
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3673
 
struct buf { int x; };
3674
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675
 
static char *e (p, i)
3676
 
     char **p;
3677
 
     int i;
3678
 
{
3679
 
  return p[i];
3680
 
}
3681
 
static char *f (char * (*g) (char **, int), char **p, ...)
3682
 
{
3683
 
  char *s;
3684
 
  va_list v;
3685
 
  va_start (v,p);
3686
 
  s = g (p, va_arg (v,int));
3687
 
  va_end (v);
3688
 
  return s;
3689
 
}
3690
 
int test (int i, double x);
3691
 
struct s1 {int (*f) (int a);};
3692
 
struct s2 {int (*f) (double a);};
3693
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3694
 
int argc;
3695
 
char **argv;
3696
 
int
3697
 
main ()
3698
 
{
3699
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3700
 
  ;
3701
 
  return 0;
3702
 
}
3703
 
_ACEOF
3704
 
# Don't try gcc -ansi; that turns off useful extensions and
3705
 
# breaks some systems' header files.
3706
 
# AIX                   -qlanglvl=ansi
3707
 
# Ultrix and OSF/1      -std1
3708
 
# HP-UX 10.20 and later -Ae
3709
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3710
 
# SVR4                  -Xc -D__EXTENSIONS__
3711
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3712
 
do
3713
 
  CC="$ac_save_CC $ac_arg"
3714
 
  rm -f conftest.$ac_objext
3715
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716
 
  (eval $ac_compile) 2>&5
3717
 
  ac_status=$?
3718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719
 
  (exit $ac_status); } &&
3720
 
         { ac_try='test -s conftest.$ac_objext'
3721
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722
 
  (eval $ac_try) 2>&5
3723
 
  ac_status=$?
3724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725
 
  (exit $ac_status); }; }; then
3726
 
  ac_cv_prog_cc_stdc=$ac_arg
3727
 
break
3728
 
else
3729
 
  echo "$as_me: failed program was:" >&5
3730
 
sed 's/^/| /' conftest.$ac_ext >&5
3731
 
 
3732
 
fi
3733
 
rm -f conftest.$ac_objext
3734
 
done
3735
 
rm -f conftest.$ac_ext conftest.$ac_objext
3736
 
CC=$ac_save_CC
3737
 
 
3738
 
fi
3739
 
 
3740
 
case "x$ac_cv_prog_cc_stdc" in
3741
 
  x|xno)
3742
 
    echo "$as_me:$LINENO: result: none needed" >&5
3743
 
echo "${ECHO_T}none needed" >&6 ;;
3744
 
  *)
3745
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3746
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3747
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3748
 
esac
3749
 
 
3750
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
3751
 
# in C++ we need to declare it.  In case someone uses the same compiler
3752
 
# for both compiling C and C++ we need to have the C++ compiler decide
3753
 
# the declaration of exit, since it's the most demanding environment.
3754
 
cat >conftest.$ac_ext <<_ACEOF
3755
 
#ifndef __cplusplus
3756
 
  choke me
3757
 
#endif
3758
 
_ACEOF
3759
 
rm -f conftest.$ac_objext
3760
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761
 
  (eval $ac_compile) 2>&5
3762
 
  ac_status=$?
3763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764
 
  (exit $ac_status); } &&
3765
 
         { ac_try='test -s conftest.$ac_objext'
3766
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767
 
  (eval $ac_try) 2>&5
3768
 
  ac_status=$?
3769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770
 
  (exit $ac_status); }; }; then
3771
 
  for ac_declaration in \
3772
 
   ''\
3773
 
   '#include <stdlib.h>' \
3774
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3775
 
   'extern "C" void std::exit (int); using std::exit;' \
3776
 
   'extern "C" void exit (int) throw ();' \
3777
 
   'extern "C" void exit (int);' \
3778
 
   'void exit (int);'
3779
 
do
3780
 
  cat >conftest.$ac_ext <<_ACEOF
3781
 
#line $LINENO "configure"
3782
 
/* confdefs.h.  */
3783
 
_ACEOF
3784
 
cat confdefs.h >>conftest.$ac_ext
3785
 
cat >>conftest.$ac_ext <<_ACEOF
3786
 
/* end confdefs.h.  */
3787
 
#include <stdlib.h>
3788
 
$ac_declaration
3789
 
int
3790
 
main ()
3791
 
{
3792
 
exit (42);
3793
 
  ;
3794
 
  return 0;
3795
 
}
3796
 
_ACEOF
3797
 
rm -f conftest.$ac_objext
3798
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799
 
  (eval $ac_compile) 2>&5
3800
 
  ac_status=$?
3801
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802
 
  (exit $ac_status); } &&
3803
 
         { ac_try='test -s conftest.$ac_objext'
3804
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805
 
  (eval $ac_try) 2>&5
3806
 
  ac_status=$?
3807
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808
 
  (exit $ac_status); }; }; then
3809
 
  :
3810
 
else
3811
 
  echo "$as_me: failed program was:" >&5
3812
 
sed 's/^/| /' conftest.$ac_ext >&5
3813
 
 
3814
 
continue
3815
 
fi
3816
 
rm -f conftest.$ac_objext conftest.$ac_ext
3817
 
  cat >conftest.$ac_ext <<_ACEOF
3818
 
#line $LINENO "configure"
3819
 
/* confdefs.h.  */
3820
 
_ACEOF
3821
 
cat confdefs.h >>conftest.$ac_ext
3822
 
cat >>conftest.$ac_ext <<_ACEOF
3823
 
/* end confdefs.h.  */
3824
 
$ac_declaration
3825
 
int
3826
 
main ()
3827
 
{
3828
 
exit (42);
3829
 
  ;
3830
 
  return 0;
3831
 
}
3832
 
_ACEOF
3833
 
rm -f conftest.$ac_objext
3834
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3835
 
  (eval $ac_compile) 2>&5
3836
 
  ac_status=$?
3837
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838
 
  (exit $ac_status); } &&
3839
 
         { ac_try='test -s conftest.$ac_objext'
3840
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841
 
  (eval $ac_try) 2>&5
3842
 
  ac_status=$?
3843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844
 
  (exit $ac_status); }; }; then
3845
 
  break
3846
 
else
3847
 
  echo "$as_me: failed program was:" >&5
3848
 
sed 's/^/| /' conftest.$ac_ext >&5
3849
 
 
3850
 
fi
3851
 
rm -f conftest.$ac_objext conftest.$ac_ext
3852
 
done
3853
 
rm -f conftest*
3854
 
if test -n "$ac_declaration"; then
3855
 
  echo '#ifdef __cplusplus' >>confdefs.h
3856
 
  echo $ac_declaration      >>confdefs.h
3857
 
  echo '#endif'             >>confdefs.h
3858
 
fi
3859
 
 
3860
 
else
3861
 
  echo "$as_me: failed program was:" >&5
3862
 
sed 's/^/| /' conftest.$ac_ext >&5
3863
 
 
3864
 
fi
3865
 
rm -f conftest.$ac_objext conftest.$ac_ext
3866
 
ac_ext=c
3867
 
ac_cpp='$CPP $CPPFLAGS'
3868
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871
 
 
3872
 
 
3873
 
  ac_ext=c
3874
 
ac_cpp='$CPP $CPPFLAGS'
3875
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3879
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3880
 
# On Suns, sometimes $CPP names a directory.
3881
 
if test -n "$CPP" && test -d "$CPP"; then
3882
 
  CPP=
3883
 
fi
3884
 
if test -z "$CPP"; then
3885
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3886
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3887
 
else
3888
 
      # Double quotes because CPP needs to be expanded
3889
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3890
 
    do
3891
 
      ac_preproc_ok=false
3892
 
for ac_c_preproc_warn_flag in '' yes
3893
 
do
3894
 
  # Use a header file that comes with gcc, so configuring glibc
3895
 
  # with a fresh cross-compiler works.
3896
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897
 
  # <limits.h> exists even on freestanding compilers.
3898
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3899
 
  # not just through cpp. "Syntax error" is here to catch this case.
3900
 
  cat >conftest.$ac_ext <<_ACEOF
3901
 
#line $LINENO "configure"
3902
 
/* confdefs.h.  */
3903
 
_ACEOF
3904
 
cat confdefs.h >>conftest.$ac_ext
3905
 
cat >>conftest.$ac_ext <<_ACEOF
3906
 
/* end confdefs.h.  */
3907
 
#ifdef __STDC__
3908
 
# include <limits.h>
3909
 
#else
3910
 
# include <assert.h>
3911
 
#endif
3912
 
                     Syntax error
3913
 
_ACEOF
3914
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3915
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3916
 
  ac_status=$?
3917
 
  grep -v '^ *+' conftest.er1 >conftest.err
3918
 
  rm -f conftest.er1
3919
 
  cat conftest.err >&5
3920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921
 
  (exit $ac_status); } >/dev/null; then
3922
 
  if test -s conftest.err; then
3923
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3924
 
  else
3925
 
    ac_cpp_err=
3926
 
  fi
3927
 
else
3928
 
  ac_cpp_err=yes
3929
 
fi
3930
 
if test -z "$ac_cpp_err"; then
3931
 
  :
3932
 
else
3933
 
  echo "$as_me: failed program was:" >&5
3934
 
sed 's/^/| /' conftest.$ac_ext >&5
3935
 
 
3936
 
  # Broken: fails on valid input.
3937
 
continue
3938
 
fi
3939
 
rm -f conftest.err conftest.$ac_ext
3940
 
 
3941
 
  # OK, works on sane cases.  Now check whether non-existent headers
3942
 
  # can be detected and how.
3943
 
  cat >conftest.$ac_ext <<_ACEOF
3944
 
#line $LINENO "configure"
3945
 
/* confdefs.h.  */
3946
 
_ACEOF
3947
 
cat confdefs.h >>conftest.$ac_ext
3948
 
cat >>conftest.$ac_ext <<_ACEOF
3949
 
/* end confdefs.h.  */
3950
 
#include <ac_nonexistent.h>
3951
 
_ACEOF
3952
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3953
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3954
 
  ac_status=$?
3955
 
  grep -v '^ *+' conftest.er1 >conftest.err
3956
 
  rm -f conftest.er1
3957
 
  cat conftest.err >&5
3958
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959
 
  (exit $ac_status); } >/dev/null; then
3960
 
  if test -s conftest.err; then
3961
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3962
 
  else
3963
 
    ac_cpp_err=
3964
 
  fi
3965
 
else
3966
 
  ac_cpp_err=yes
3967
 
fi
3968
 
if test -z "$ac_cpp_err"; then
3969
 
  # Broken: success on invalid input.
3970
 
continue
3971
 
else
3972
 
  echo "$as_me: failed program was:" >&5
3973
 
sed 's/^/| /' conftest.$ac_ext >&5
3974
 
 
3975
 
  # Passes both tests.
3976
 
ac_preproc_ok=:
3977
 
break
3978
 
fi
3979
 
rm -f conftest.err conftest.$ac_ext
3980
 
 
3981
 
done
3982
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3983
 
rm -f conftest.err conftest.$ac_ext
3984
 
if $ac_preproc_ok; then
3985
 
  break
3986
 
fi
3987
 
 
3988
 
    done
3989
 
    ac_cv_prog_CPP=$CPP
3990
 
 
3991
 
fi
3992
 
  CPP=$ac_cv_prog_CPP
3993
 
else
3994
 
  ac_cv_prog_CPP=$CPP
3995
 
fi
3996
 
echo "$as_me:$LINENO: result: $CPP" >&5
3997
 
echo "${ECHO_T}$CPP" >&6
3998
 
ac_preproc_ok=false
3999
 
for ac_c_preproc_warn_flag in '' yes
4000
 
do
4001
 
  # Use a header file that comes with gcc, so configuring glibc
4002
 
  # with a fresh cross-compiler works.
4003
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4004
 
  # <limits.h> exists even on freestanding compilers.
4005
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4006
 
  # not just through cpp. "Syntax error" is here to catch this case.
4007
 
  cat >conftest.$ac_ext <<_ACEOF
4008
 
#line $LINENO "configure"
4009
 
/* confdefs.h.  */
4010
 
_ACEOF
4011
 
cat confdefs.h >>conftest.$ac_ext
4012
 
cat >>conftest.$ac_ext <<_ACEOF
4013
 
/* end confdefs.h.  */
4014
 
#ifdef __STDC__
4015
 
# include <limits.h>
4016
 
#else
4017
 
# include <assert.h>
4018
 
#endif
4019
 
                     Syntax error
4020
 
_ACEOF
4021
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4022
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4023
 
  ac_status=$?
4024
 
  grep -v '^ *+' conftest.er1 >conftest.err
4025
 
  rm -f conftest.er1
4026
 
  cat conftest.err >&5
4027
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028
 
  (exit $ac_status); } >/dev/null; then
4029
 
  if test -s conftest.err; then
4030
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4031
 
  else
4032
 
    ac_cpp_err=
4033
 
  fi
4034
 
else
4035
 
  ac_cpp_err=yes
4036
 
fi
4037
 
if test -z "$ac_cpp_err"; then
4038
 
  :
4039
 
else
4040
 
  echo "$as_me: failed program was:" >&5
4041
 
sed 's/^/| /' conftest.$ac_ext >&5
4042
 
 
4043
 
  # Broken: fails on valid input.
4044
 
continue
4045
 
fi
4046
 
rm -f conftest.err conftest.$ac_ext
4047
 
 
4048
 
  # OK, works on sane cases.  Now check whether non-existent headers
4049
 
  # can be detected and how.
4050
 
  cat >conftest.$ac_ext <<_ACEOF
4051
 
#line $LINENO "configure"
4052
 
/* confdefs.h.  */
4053
 
_ACEOF
4054
 
cat confdefs.h >>conftest.$ac_ext
4055
 
cat >>conftest.$ac_ext <<_ACEOF
4056
 
/* end confdefs.h.  */
4057
 
#include <ac_nonexistent.h>
4058
 
_ACEOF
4059
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4060
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4061
 
  ac_status=$?
4062
 
  grep -v '^ *+' conftest.er1 >conftest.err
4063
 
  rm -f conftest.er1
4064
 
  cat conftest.err >&5
4065
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066
 
  (exit $ac_status); } >/dev/null; then
4067
 
  if test -s conftest.err; then
4068
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4069
 
  else
4070
 
    ac_cpp_err=
4071
 
  fi
4072
 
else
4073
 
  ac_cpp_err=yes
4074
 
fi
4075
 
if test -z "$ac_cpp_err"; then
4076
 
  # Broken: success on invalid input.
4077
 
continue
4078
 
else
4079
 
  echo "$as_me: failed program was:" >&5
4080
 
sed 's/^/| /' conftest.$ac_ext >&5
4081
 
 
4082
 
  # Passes both tests.
4083
 
ac_preproc_ok=:
4084
 
break
4085
 
fi
4086
 
rm -f conftest.err conftest.$ac_ext
4087
 
 
4088
 
done
4089
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4090
 
rm -f conftest.err conftest.$ac_ext
4091
 
if $ac_preproc_ok; then
4092
 
  :
4093
 
else
4094
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4095
 
See \`config.log' for more details." >&5
4096
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4097
 
See \`config.log' for more details." >&2;}
4098
 
   { (exit 1); exit 1; }; }
4099
 
fi
4100
 
 
4101
 
ac_ext=c
4102
 
ac_cpp='$CPP $CPPFLAGS'
4103
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106
 
 
4107
 
 
4108
 
  if test "$GCC" = "yes"; then
4109
 
    if test "$kde_use_debug_code" != "no"; then
4110
 
      if test $kde_use_debug_code = "full"; then
4111
 
        CFLAGS="-g3 $CFLAGS"
4112
 
      else
4113
 
        CFLAGS="-g -O2 $CFLAGS"
4114
 
      fi
4115
 
    else
4116
 
      CFLAGS="-O2 $CFLAGS"
4117
 
    fi
4118
 
  fi
4119
 
 
4120
 
  if test "$kde_use_debug_define" = "yes"; then
4121
 
    CFLAGS="-DNDEBUG $CFLAGS"
4122
 
  fi
4123
 
 
4124
 
 
4125
 
  case "$host" in
4126
 
  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
4127
 
  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
4128
 
  esac
4129
 
 
4130
 
  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
4131
 
     LDFLAGS=""
4132
 
  fi
4133
 
 
4134
 
  CXXFLAGS=" $CXXFLAGS"
4135
 
 
4136
 
  ac_ext=cc
 
1756
# Always define AMTAR for backward compatibility.
 
1757
 
 
1758
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1759
 
 
1760
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1761
 
 
1762
 
 
1763
 
 
1764
 
 
1765
 
 
1766
 
 
1767
ac_ext=cc
4137
1768
ac_cpp='$CXXCPP $CPPFLAGS'
4138
1769
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139
1770
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246
1877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247
1878
  (exit $ac_status); }
4248
1879
 
 
1880
cat >conftest.$ac_ext <<_ACEOF
 
1881
/* confdefs.h.  */
 
1882
_ACEOF
 
1883
cat confdefs.h >>conftest.$ac_ext
 
1884
cat >>conftest.$ac_ext <<_ACEOF
 
1885
/* end confdefs.h.  */
 
1886
 
 
1887
int
 
1888
main ()
 
1889
{
 
1890
 
 
1891
  ;
 
1892
  return 0;
 
1893
}
 
1894
_ACEOF
 
1895
ac_clean_files_save=$ac_clean_files
 
1896
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1897
# Try to create an executable without -o first, disregard a.out.
 
1898
# It will help us diagnose broken compilers, and finding out an intuition
 
1899
# of exeext.
 
1900
echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
 
1901
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
 
1902
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1903
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1904
  (eval $ac_link_default) 2>&5
 
1905
  ac_status=$?
 
1906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1907
  (exit $ac_status); }; then
 
1908
  # Find the output, starting from the most likely.  This scheme is
 
1909
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1910
# resort.
 
1911
 
 
1912
# Be careful to initialize this variable, since it used to be cached.
 
1913
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1914
ac_cv_exeext=
 
1915
# b.out is created by i960 compilers.
 
1916
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1917
do
 
1918
  test -f "$ac_file" || continue
 
1919
  case $ac_file in
 
1920
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1921
        ;;
 
1922
    conftest.$ac_ext )
 
1923
        # This is the source file.
 
1924
        ;;
 
1925
    [ab].out )
 
1926
        # We found the default executable, but exeext='' is most
 
1927
        # certainly right.
 
1928
        break;;
 
1929
    *.* )
 
1930
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1931
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1932
        # but it would be cool to find out if it's true.  Does anybody
 
1933
        # maintain Libtool? --akim.
 
1934
        export ac_cv_exeext
 
1935
        break;;
 
1936
    * )
 
1937
        break;;
 
1938
  esac
 
1939
done
 
1940
else
 
1941
  echo "$as_me: failed program was:" >&5
 
1942
sed 's/^/| /' conftest.$ac_ext >&5
 
1943
 
 
1944
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
 
1945
See \`config.log' for more details." >&5
 
1946
echo "$as_me: error: C++ compiler cannot create executables
 
1947
See \`config.log' for more details." >&2;}
 
1948
   { (exit 77); exit 77; }; }
 
1949
fi
 
1950
 
 
1951
ac_exeext=$ac_cv_exeext
 
1952
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1953
echo "${ECHO_T}$ac_file" >&6
 
1954
 
 
1955
# Check the compiler produces executables we can run.  If not, either
 
1956
# the compiler is broken, or we cross compile.
 
1957
echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
 
1958
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
 
1959
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1960
# If not cross compiling, check that we can run a simple program.
 
1961
if test "$cross_compiling" != yes; then
 
1962
  if { ac_try='./$ac_file'
 
1963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1964
  (eval $ac_try) 2>&5
 
1965
  ac_status=$?
 
1966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1967
  (exit $ac_status); }; }; then
 
1968
    cross_compiling=no
 
1969
  else
 
1970
    if test "$cross_compiling" = maybe; then
 
1971
        cross_compiling=yes
 
1972
    else
 
1973
        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
 
1974
If you meant to cross compile, use \`--host'.
 
1975
See \`config.log' for more details." >&5
 
1976
echo "$as_me: error: cannot run C++ compiled programs.
 
1977
If you meant to cross compile, use \`--host'.
 
1978
See \`config.log' for more details." >&2;}
 
1979
   { (exit 1); exit 1; }; }
 
1980
    fi
 
1981
  fi
 
1982
fi
 
1983
echo "$as_me:$LINENO: result: yes" >&5
 
1984
echo "${ECHO_T}yes" >&6
 
1985
 
 
1986
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1987
ac_clean_files=$ac_clean_files_save
 
1988
# Check the compiler produces executables we can run.  If not, either
 
1989
# the compiler is broken, or we cross compile.
 
1990
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1991
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1992
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1993
echo "${ECHO_T}$cross_compiling" >&6
 
1994
 
 
1995
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1996
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1997
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1998
  (eval $ac_link) 2>&5
 
1999
  ac_status=$?
 
2000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2001
  (exit $ac_status); }; then
 
2002
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2003
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2004
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2005
# `rm'.
 
2006
for ac_file in conftest.exe conftest conftest.*; do
 
2007
  test -f "$ac_file" || continue
 
2008
  case $ac_file in
 
2009
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2010
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2011
          export ac_cv_exeext
 
2012
          break;;
 
2013
    * ) break;;
 
2014
  esac
 
2015
done
 
2016
else
 
2017
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2018
See \`config.log' for more details." >&5
 
2019
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2020
See \`config.log' for more details." >&2;}
 
2021
   { (exit 1); exit 1; }; }
 
2022
fi
 
2023
 
 
2024
rm -f conftest$ac_cv_exeext
 
2025
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2026
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2027
 
 
2028
rm -f conftest.$ac_ext
 
2029
EXEEXT=$ac_cv_exeext
 
2030
ac_exeext=$EXEEXT
 
2031
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2032
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2033
if test "${ac_cv_objext+set}" = set; then
 
2034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2035
else
 
2036
  cat >conftest.$ac_ext <<_ACEOF
 
2037
/* confdefs.h.  */
 
2038
_ACEOF
 
2039
cat confdefs.h >>conftest.$ac_ext
 
2040
cat >>conftest.$ac_ext <<_ACEOF
 
2041
/* end confdefs.h.  */
 
2042
 
 
2043
int
 
2044
main ()
 
2045
{
 
2046
 
 
2047
  ;
 
2048
  return 0;
 
2049
}
 
2050
_ACEOF
 
2051
rm -f conftest.o conftest.obj
 
2052
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2053
  (eval $ac_compile) 2>&5
 
2054
  ac_status=$?
 
2055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2056
  (exit $ac_status); }; then
 
2057
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2058
  case $ac_file in
 
2059
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2060
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2061
       break;;
 
2062
  esac
 
2063
done
 
2064
else
 
2065
  echo "$as_me: failed program was:" >&5
 
2066
sed 's/^/| /' conftest.$ac_ext >&5
 
2067
 
 
2068
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2069
See \`config.log' for more details." >&5
 
2070
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2071
See \`config.log' for more details." >&2;}
 
2072
   { (exit 1); exit 1; }; }
 
2073
fi
 
2074
 
 
2075
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2076
fi
 
2077
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2078
echo "${ECHO_T}$ac_cv_objext" >&6
 
2079
OBJEXT=$ac_cv_objext
 
2080
ac_objext=$OBJEXT
4249
2081
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4250
2082
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4251
2083
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4252
2084
  echo $ECHO_N "(cached) $ECHO_C" >&6
4253
2085
else
4254
2086
  cat >conftest.$ac_ext <<_ACEOF
4255
 
#line $LINENO "configure"
4256
2087
/* confdefs.h.  */
4257
2088
_ACEOF
4258
2089
cat confdefs.h >>conftest.$ac_ext
4272
2103
_ACEOF
4273
2104
rm -f conftest.$ac_objext
4274
2105
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275
 
  (eval $ac_compile) 2>&5
 
2106
  (eval $ac_compile) 2>conftest.er1
4276
2107
  ac_status=$?
 
2108
  grep -v '^ *+' conftest.er1 >conftest.err
 
2109
  rm -f conftest.er1
 
2110
  cat conftest.err >&5
4277
2111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278
2112
  (exit $ac_status); } &&
4279
 
         { ac_try='test -s conftest.$ac_objext'
 
2113
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2114
                         || test ! -s conftest.err'
 
2115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2116
  (eval $ac_try) 2>&5
 
2117
  ac_status=$?
 
2118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2119
  (exit $ac_status); }; } &&
 
2120
         { ac_try='test -s conftest.$ac_objext'
4280
2121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281
2122
  (eval $ac_try) 2>&5
4282
2123
  ac_status=$?
4289
2130
 
4290
2131
ac_compiler_gnu=no
4291
2132
fi
4292
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2133
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4293
2134
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4294
2135
 
4295
2136
fi
4305
2146
  echo $ECHO_N "(cached) $ECHO_C" >&6
4306
2147
else
4307
2148
  cat >conftest.$ac_ext <<_ACEOF
4308
 
#line $LINENO "configure"
4309
2149
/* confdefs.h.  */
4310
2150
_ACEOF
4311
2151
cat confdefs.h >>conftest.$ac_ext
4322
2162
_ACEOF
4323
2163
rm -f conftest.$ac_objext
4324
2164
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325
 
  (eval $ac_compile) 2>&5
 
2165
  (eval $ac_compile) 2>conftest.er1
4326
2166
  ac_status=$?
 
2167
  grep -v '^ *+' conftest.er1 >conftest.err
 
2168
  rm -f conftest.er1
 
2169
  cat conftest.err >&5
4327
2170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328
2171
  (exit $ac_status); } &&
4329
 
         { ac_try='test -s conftest.$ac_objext'
 
2172
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2173
                         || test ! -s conftest.err'
 
2174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2175
  (eval $ac_try) 2>&5
 
2176
  ac_status=$?
 
2177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2178
  (exit $ac_status); }; } &&
 
2179
         { ac_try='test -s conftest.$ac_objext'
4330
2180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331
2181
  (eval $ac_try) 2>&5
4332
2182
  ac_status=$?
4339
2189
 
4340
2190
ac_cv_prog_cxx_g=no
4341
2191
fi
4342
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2192
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4343
2193
fi
4344
2194
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4345
2195
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4359
2209
  fi
4360
2210
fi
4361
2211
for ac_declaration in \
4362
 
   ''\
4363
 
   '#include <stdlib.h>' \
 
2212
   '' \
4364
2213
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4365
2214
   'extern "C" void std::exit (int); using std::exit;' \
4366
2215
   'extern "C" void exit (int) throw ();' \
4368
2217
   'void exit (int);'
4369
2218
do
4370
2219
  cat >conftest.$ac_ext <<_ACEOF
4371
 
#line $LINENO "configure"
4372
2220
/* confdefs.h.  */
4373
2221
_ACEOF
4374
2222
cat confdefs.h >>conftest.$ac_ext
4375
2223
cat >>conftest.$ac_ext <<_ACEOF
4376
2224
/* end confdefs.h.  */
 
2225
$ac_declaration
4377
2226
#include <stdlib.h>
4378
 
$ac_declaration
4379
2227
int
4380
2228
main ()
4381
2229
{
4386
2234
_ACEOF
4387
2235
rm -f conftest.$ac_objext
4388
2236
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389
 
  (eval $ac_compile) 2>&5
 
2237
  (eval $ac_compile) 2>conftest.er1
4390
2238
  ac_status=$?
 
2239
  grep -v '^ *+' conftest.er1 >conftest.err
 
2240
  rm -f conftest.er1
 
2241
  cat conftest.err >&5
4391
2242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392
2243
  (exit $ac_status); } &&
4393
 
         { ac_try='test -s conftest.$ac_objext'
 
2244
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2245
                         || test ! -s conftest.err'
 
2246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2247
  (eval $ac_try) 2>&5
 
2248
  ac_status=$?
 
2249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2250
  (exit $ac_status); }; } &&
 
2251
         { ac_try='test -s conftest.$ac_objext'
4394
2252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395
2253
  (eval $ac_try) 2>&5
4396
2254
  ac_status=$?
4403
2261
 
4404
2262
continue
4405
2263
fi
4406
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4407
2265
  cat >conftest.$ac_ext <<_ACEOF
4408
 
#line $LINENO "configure"
4409
2266
/* confdefs.h.  */
4410
2267
_ACEOF
4411
2268
cat confdefs.h >>conftest.$ac_ext
4422
2279
_ACEOF
4423
2280
rm -f conftest.$ac_objext
4424
2281
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425
 
  (eval $ac_compile) 2>&5
 
2282
  (eval $ac_compile) 2>conftest.er1
4426
2283
  ac_status=$?
 
2284
  grep -v '^ *+' conftest.er1 >conftest.err
 
2285
  rm -f conftest.er1
 
2286
  cat conftest.err >&5
4427
2287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428
2288
  (exit $ac_status); } &&
4429
 
         { ac_try='test -s conftest.$ac_objext'
 
2289
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2290
                         || test ! -s conftest.err'
 
2291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2292
  (eval $ac_try) 2>&5
 
2293
  ac_status=$?
 
2294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2295
  (exit $ac_status); }; } &&
 
2296
         { ac_try='test -s conftest.$ac_objext'
4430
2297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431
2298
  (eval $ac_try) 2>&5
4432
2299
  ac_status=$?
4438
2305
sed 's/^/| /' conftest.$ac_ext >&5
4439
2306
 
4440
2307
fi
4441
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2308
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4442
2309
done
4443
2310
rm -f conftest*
4444
2311
if test -n "$ac_declaration"; then
4452
2319
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453
2320
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454
2321
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2322
DEPDIR="${am__leading_dot}deps"
 
2323
 
 
2324
          ac_config_commands="$ac_config_commands depfiles"
 
2325
 
 
2326
 
 
2327
am_make=${MAKE-make}
 
2328
cat > confinc << 'END'
 
2329
am__doit:
 
2330
        @echo done
 
2331
.PHONY: am__doit
 
2332
END
 
2333
# If we don't find an include directive, just comment out the code.
 
2334
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2335
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2336
am__include="#"
 
2337
am__quote=
 
2338
_am_result=none
 
2339
# First try GNU make style include.
 
2340
echo "include confinc" > confmf
 
2341
# We grep out `Entering directory' and `Leaving directory'
 
2342
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2343
# In particular we don't look at `^make:' because GNU make might
 
2344
# be invoked under some other name (usually "gmake"), in which
 
2345
# case it prints its new name instead of `make'.
 
2346
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2347
   am__include=include
 
2348
   am__quote=
 
2349
   _am_result=GNU
 
2350
fi
 
2351
# Now try BSD make style include.
 
2352
if test "$am__include" = "#"; then
 
2353
   echo '.include "confinc"' > confmf
 
2354
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2355
      am__include=.include
 
2356
      am__quote="\""
 
2357
      _am_result=BSD
 
2358
   fi
 
2359
fi
 
2360
 
 
2361
 
 
2362
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2363
echo "${ECHO_T}$_am_result" >&6
 
2364
rm -f confinc confmf
 
2365
 
 
2366
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2367
if test "${enable_dependency_tracking+set}" = set; then
 
2368
  enableval="$enable_dependency_tracking"
 
2369
 
 
2370
fi;
 
2371
if test "x$enable_dependency_tracking" != xno; then
 
2372
  am_depcomp="$ac_aux_dir/depcomp"
 
2373
  AMDEPBACKSLASH='\'
 
2374
fi
 
2375
 
 
2376
 
 
2377
if test "x$enable_dependency_tracking" != xno; then
 
2378
  AMDEP_TRUE=
 
2379
  AMDEP_FALSE='#'
 
2380
else
 
2381
  AMDEP_TRUE='#'
 
2382
  AMDEP_FALSE=
 
2383
fi
 
2384
 
 
2385
 
 
2386
 
4455
2387
 
4456
2388
depcc="$CXX"  am_compiler_list=
4457
2389
 
4494
2426
    : > sub/conftest.c
4495
2427
    for i in 1 2 3 4 5 6; do
4496
2428
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4497
 
      : > sub/conftst$i.h
 
2429
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2430
      # Solaris 8's {/usr,}/bin/sh.
 
2431
      touch sub/conftst$i.h
4498
2432
    done
4499
2433
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4500
2434
 
4522
2456
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4523
2457
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4524
2458
      # icc doesn't choke on unknown options, it will just issue warnings
4525
 
      # (even with -Werror).  So we grep stderr for any message
4526
 
      # that says an option was ignored.
4527
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
2459
      # or remarks (even with -Werror).  So we grep stderr for any message
 
2460
      # that says an option was ignored or not supported.
 
2461
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
2462
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
2463
      # The diagnosis changed in icc 8.0:
 
2464
      #   icc: Command line remark: option '-MP' not supported
 
2465
      if (grep 'ignoring option' conftest.err ||
 
2466
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4528
2467
        am_cv_CXX_dependencies_compiler_type=$depmode
4529
2468
        break
4530
2469
      fi
4556
2495
 
4557
2496
 
4558
2497
 
4559
 
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
4560
 
    if test "$kde_use_debug_code" != "no"; then
4561
 
      if test "$CXX" = "KCC"; then
4562
 
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
4563
 
      else
4564
 
        if test "$kde_use_debug_code" = "full"; then
4565
 
          CXXFLAGS="-g3 $CXXFLAGS"
 
2498
 
 
2499
 
 
2500
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
2501
        if test -n "$ac_tool_prefix"; then
 
2502
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
2503
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
2504
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2506
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
2507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2508
else
 
2509
  case $PKG_CONFIG in
 
2510
  [\\/]* | ?:[\\/]*)
 
2511
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
2512
  ;;
 
2513
  *)
 
2514
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2515
for as_dir in $PATH
 
2516
do
 
2517
  IFS=$as_save_IFS
 
2518
  test -z "$as_dir" && as_dir=.
 
2519
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2520
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2521
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
2522
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2523
    break 2
 
2524
  fi
 
2525
done
 
2526
done
 
2527
 
 
2528
  ;;
 
2529
esac
 
2530
fi
 
2531
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
2532
 
 
2533
if test -n "$PKG_CONFIG"; then
 
2534
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
2535
echo "${ECHO_T}$PKG_CONFIG" >&6
 
2536
else
 
2537
  echo "$as_me:$LINENO: result: no" >&5
 
2538
echo "${ECHO_T}no" >&6
 
2539
fi
 
2540
 
 
2541
fi
 
2542
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
2543
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
2544
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
2545
set dummy pkg-config; ac_word=$2
 
2546
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2547
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2548
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
2549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2550
else
 
2551
  case $ac_pt_PKG_CONFIG in
 
2552
  [\\/]* | ?:[\\/]*)
 
2553
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
2554
  ;;
 
2555
  *)
 
2556
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2557
for as_dir in $PATH
 
2558
do
 
2559
  IFS=$as_save_IFS
 
2560
  test -z "$as_dir" && as_dir=.
 
2561
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2562
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2563
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
2564
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2565
    break 2
 
2566
  fi
 
2567
done
 
2568
done
 
2569
 
 
2570
  ;;
 
2571
esac
 
2572
fi
 
2573
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
2574
 
 
2575
if test -n "$ac_pt_PKG_CONFIG"; then
 
2576
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
2577
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
2578
else
 
2579
  echo "$as_me:$LINENO: result: no" >&5
 
2580
echo "${ECHO_T}no" >&6
 
2581
fi
 
2582
 
 
2583
  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
2584
else
 
2585
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
2586
fi
 
2587
 
 
2588
fi
 
2589
if test -n "$PKG_CONFIG"; then
 
2590
        _pkg_min_version=0.9.0
 
2591
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
2592
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
2593
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
2594
                echo "$as_me:$LINENO: result: yes" >&5
 
2595
echo "${ECHO_T}yes" >&6
 
2596
        else
 
2597
                echo "$as_me:$LINENO: result: no" >&5
 
2598
echo "${ECHO_T}no" >&6
 
2599
                PKG_CONFIG=""
 
2600
        fi
 
2601
 
 
2602
fi
 
2603
 
 
2604
pkg_failed=no
 
2605
echo "$as_me:$LINENO: checking for QT" >&5
 
2606
echo $ECHO_N "checking for QT... $ECHO_C" >&6
 
2607
 
 
2608
if test -n "$PKG_CONFIG"; then
 
2609
    if test -n "$QT_CFLAGS"; then
 
2610
        pkg_cv_QT_CFLAGS="$QT_CFLAGS"
 
2611
    else
 
2612
        if test -n "$PKG_CONFIG" && \
 
2613
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.0.1\"") >&5
 
2614
  ($PKG_CONFIG --exists --print-errors "QtGui >= 4.0.1") 2>&5
 
2615
  ac_status=$?
 
2616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2617
  (exit $ac_status); }; then
 
2618
  pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "QtGui >= 4.0.1" 2>/dev/null`
 
2619
else
 
2620
  pkg_failed=yes
 
2621
fi
 
2622
    fi
 
2623
else
 
2624
        pkg_failed=untried
 
2625
fi
 
2626
if test -n "$PKG_CONFIG"; then
 
2627
    if test -n "$QT_LIBS"; then
 
2628
        pkg_cv_QT_LIBS="$QT_LIBS"
 
2629
    else
 
2630
        if test -n "$PKG_CONFIG" && \
 
2631
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.0.1\"") >&5
 
2632
  ($PKG_CONFIG --exists --print-errors "QtGui >= 4.0.1") 2>&5
 
2633
  ac_status=$?
 
2634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2635
  (exit $ac_status); }; then
 
2636
  pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "QtGui >= 4.0.1" 2>/dev/null`
 
2637
else
 
2638
  pkg_failed=yes
 
2639
fi
 
2640
    fi
 
2641
else
 
2642
        pkg_failed=untried
 
2643
fi
 
2644
 
 
2645
 
 
2646
 
 
2647
if test $pkg_failed = yes; then
 
2648
 
 
2649
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
2650
        _pkg_short_errors_supported=yes
 
2651
else
 
2652
        _pkg_short_errors_supported=no
 
2653
fi
 
2654
        if test $_pkg_short_errors_supported = yes; then
 
2655
                QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtGui >= 4.0.1"`
4566
2656
        else
4567
 
          CXXFLAGS="-g -O2 $CXXFLAGS"
 
2657
                QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui >= 4.0.1"`
4568
2658
        fi
4569
 
      fi
4570
 
 
4571
 
echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
4572
 
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
4573
 
kde_cache=`echo fno-builtin | sed 'y% .=/+-%____p_%'`
4574
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4575
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4576
 
else
4577
 
 
4578
 
 
4579
 
 
4580
 
 
4581
 
ac_ext=cc
4582
 
ac_cpp='$CXXCPP $CPPFLAGS'
4583
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4586
 
 
4587
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4588
 
 
4589
 
 
4590
 
 
4591
 
  save_CXXFLAGS="$CXXFLAGS"
4592
 
  CXXFLAGS="$CXXFLAGS -fno-builtin"
4593
 
  cat >conftest.$ac_ext <<_ACEOF
4594
 
#line $LINENO "configure"
4595
 
/* confdefs.h.  */
4596
 
_ACEOF
4597
 
cat confdefs.h >>conftest.$ac_ext
4598
 
cat >>conftest.$ac_ext <<_ACEOF
4599
 
/* end confdefs.h.  */
4600
 
 
4601
 
int
4602
 
main ()
4603
 
{
4604
 
 return 0;
4605
 
  ;
4606
 
  return 0;
4607
 
}
4608
 
_ACEOF
4609
 
rm -f conftest.$ac_objext conftest$ac_exeext
4610
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611
 
  (eval $ac_link) 2>&5
4612
 
  ac_status=$?
4613
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614
 
  (exit $ac_status); } &&
4615
 
         { ac_try='test -s conftest$ac_exeext'
4616
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617
 
  (eval $ac_try) 2>&5
4618
 
  ac_status=$?
4619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620
 
  (exit $ac_status); }; }; then
4621
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4622
 
else
4623
 
  echo "$as_me: failed program was:" >&5
4624
 
sed 's/^/| /' conftest.$ac_ext >&5
4625
 
 
4626
 
fi
4627
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4628
 
  CXXFLAGS="$save_CXXFLAGS"
4629
 
  ac_ext=c
4630
 
ac_cpp='$CPP $CPPFLAGS'
4631
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
 
 
4635
 
 
4636
 
fi
4637
 
 
4638
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4639
 
 echo "$as_me:$LINENO: result: yes" >&5
4640
 
echo "${ECHO_T}yes" >&6
4641
 
 :
4642
 
 CXXFLAGS="-fno-builtin $CXXFLAGS"
4643
 
else
4644
 
 echo "$as_me:$LINENO: result: no" >&5
4645
 
echo "${ECHO_T}no" >&6
4646
 
 :
4647
 
 
4648
 
fi
4649
 
 
4650
 
 
4651
 
 
4652
 
echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
4653
 
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
4654
 
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-%____p_%'`
4655
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4656
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4657
 
else
4658
 
 
4659
 
 
4660
 
 
4661
 
   ac_ext=cc
4662
 
ac_cpp='$CXXCPP $CPPFLAGS'
4663
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4666
 
 
4667
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4668
 
 
4669
 
 
4670
 
  save_CXXFLAGS="$CXXFLAGS"
4671
 
  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
4672
 
  cat >conftest.$ac_ext <<_ACEOF
4673
 
#line $LINENO "configure"
4674
 
/* confdefs.h.  */
4675
 
_ACEOF
4676
 
cat confdefs.h >>conftest.$ac_ext
4677
 
cat >>conftest.$ac_ext <<_ACEOF
4678
 
/* end confdefs.h.  */
4679
 
 
4680
 
int
4681
 
main ()
4682
 
{
4683
 
 return 0;
4684
 
  ;
4685
 
  return 0;
4686
 
}
4687
 
_ACEOF
4688
 
rm -f conftest.$ac_objext conftest$ac_exeext
4689
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690
 
  (eval $ac_link) 2>&5
4691
 
  ac_status=$?
4692
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693
 
  (exit $ac_status); } &&
4694
 
         { ac_try='test -s conftest$ac_exeext'
4695
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696
 
  (eval $ac_try) 2>&5
4697
 
  ac_status=$?
4698
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699
 
  (exit $ac_status); }; }; then
4700
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4701
 
else
4702
 
  echo "$as_me: failed program was:" >&5
4703
 
sed 's/^/| /' conftest.$ac_ext >&5
4704
 
 
4705
 
fi
4706
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4707
 
  CXXFLAGS="$save_CXXFLAGS"
4708
 
  ac_ext=c
4709
 
ac_cpp='$CPP $CPPFLAGS'
4710
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4713
 
 
4714
 
 
4715
 
fi
4716
 
 
4717
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4718
 
 echo "$as_me:$LINENO: result: yes" >&5
4719
 
echo "${ECHO_T}yes" >&6
4720
 
 :
4721
 
 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
4722
 
else
4723
 
 echo "$as_me:$LINENO: result: no" >&5
4724
 
echo "${ECHO_T}no" >&6
4725
 
 :
4726
 
 WOVERLOADED_VRITUAL=""
4727
 
fi
4728
 
 
4729
 
 
4730
 
    else
4731
 
      if test "$CXX" = "KCC"; then
4732
 
        CXXFLAGS="+K3 $CXXFLAGS"
4733
 
      else
4734
 
        CXXFLAGS="-O2 $CXXFLAGS"
4735
 
      fi
4736
 
    fi
4737
 
  fi
4738
 
 
4739
 
  if test "$kde_use_debug_define" = "yes"; then
4740
 
    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
4741
 
  fi
4742
 
 
4743
 
  if test "$kde_use_profiling" = "yes"; then
4744
 
 
4745
 
echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
4746
 
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
4747
 
kde_cache=`echo pg | sed 'y% .=/+-%____p_%'`
4748
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4749
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4750
 
else
4751
 
 
4752
 
 
4753
 
 
4754
 
   ac_ext=cc
4755
 
ac_cpp='$CXXCPP $CPPFLAGS'
4756
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4757
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4758
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4759
 
 
4760
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4761
 
 
4762
 
 
4763
 
  save_CXXFLAGS="$CXXFLAGS"
4764
 
  CXXFLAGS="$CXXFLAGS -pg"
4765
 
  cat >conftest.$ac_ext <<_ACEOF
4766
 
#line $LINENO "configure"
4767
 
/* confdefs.h.  */
4768
 
_ACEOF
4769
 
cat confdefs.h >>conftest.$ac_ext
4770
 
cat >>conftest.$ac_ext <<_ACEOF
4771
 
/* end confdefs.h.  */
4772
 
 
4773
 
int
4774
 
main ()
4775
 
{
4776
 
 return 0;
4777
 
  ;
4778
 
  return 0;
4779
 
}
4780
 
_ACEOF
4781
 
rm -f conftest.$ac_objext conftest$ac_exeext
4782
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783
 
  (eval $ac_link) 2>&5
4784
 
  ac_status=$?
4785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786
 
  (exit $ac_status); } &&
4787
 
         { ac_try='test -s conftest$ac_exeext'
4788
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789
 
  (eval $ac_try) 2>&5
4790
 
  ac_status=$?
4791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792
 
  (exit $ac_status); }; }; then
4793
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4794
 
else
4795
 
  echo "$as_me: failed program was:" >&5
4796
 
sed 's/^/| /' conftest.$ac_ext >&5
4797
 
 
4798
 
fi
4799
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4800
 
  CXXFLAGS="$save_CXXFLAGS"
4801
 
  ac_ext=c
4802
 
ac_cpp='$CPP $CPPFLAGS'
4803
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806
 
 
4807
 
 
4808
 
fi
4809
 
 
4810
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4811
 
 echo "$as_me:$LINENO: result: yes" >&5
4812
 
echo "${ECHO_T}yes" >&6
4813
 
 :
4814
 
 
4815
 
      CFLAGS="-pg $CFLAGS"
4816
 
      CXXFLAGS="-pg $CXXFLAGS"
4817
 
 
4818
 
else
4819
 
 echo "$as_me:$LINENO: result: no" >&5
4820
 
echo "${ECHO_T}no" >&6
4821
 
 :
4822
 
 
4823
 
fi
4824
 
 
4825
 
  fi
4826
 
 
4827
 
  if test "$kde_use_warnings" = "yes"; then
4828
 
      if test "$GCC" = "yes"; then
4829
 
        case $host in
4830
 
          *-*-linux-gnu)
4831
 
            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
4832
 
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
4833
 
          ;;
4834
 
        esac
4835
 
        CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
4836
 
 
4837
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
4838
 
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
4839
 
kde_cache=`echo Wundef | sed 'y% .=/+-%____p_%'`
4840
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4841
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4842
 
else
4843
 
 
4844
 
 
4845
 
 
4846
 
   ac_ext=cc
4847
 
ac_cpp='$CXXCPP $CPPFLAGS'
4848
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4851
 
 
4852
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4853
 
 
4854
 
 
4855
 
  save_CXXFLAGS="$CXXFLAGS"
4856
 
  CXXFLAGS="$CXXFLAGS -Wundef"
4857
 
  cat >conftest.$ac_ext <<_ACEOF
4858
 
#line $LINENO "configure"
4859
 
/* confdefs.h.  */
4860
 
_ACEOF
4861
 
cat confdefs.h >>conftest.$ac_ext
4862
 
cat >>conftest.$ac_ext <<_ACEOF
4863
 
/* end confdefs.h.  */
4864
 
 
4865
 
int
4866
 
main ()
4867
 
{
4868
 
 return 0;
4869
 
  ;
4870
 
  return 0;
4871
 
}
4872
 
_ACEOF
4873
 
rm -f conftest.$ac_objext conftest$ac_exeext
4874
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875
 
  (eval $ac_link) 2>&5
4876
 
  ac_status=$?
4877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878
 
  (exit $ac_status); } &&
4879
 
         { ac_try='test -s conftest$ac_exeext'
4880
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881
 
  (eval $ac_try) 2>&5
4882
 
  ac_status=$?
4883
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884
 
  (exit $ac_status); }; }; then
4885
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4886
 
else
4887
 
  echo "$as_me: failed program was:" >&5
4888
 
sed 's/^/| /' conftest.$ac_ext >&5
4889
 
 
4890
 
fi
4891
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4892
 
  CXXFLAGS="$save_CXXFLAGS"
4893
 
  ac_ext=c
4894
 
ac_cpp='$CPP $CPPFLAGS'
4895
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898
 
 
4899
 
 
4900
 
fi
4901
 
 
4902
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4903
 
 echo "$as_me:$LINENO: result: yes" >&5
4904
 
echo "${ECHO_T}yes" >&6
4905
 
 :
4906
 
 CXXFLAGS="-Wundef $CXXFLAGS"
4907
 
else
4908
 
 echo "$as_me:$LINENO: result: no" >&5
4909
 
echo "${ECHO_T}no" >&6
4910
 
 :
4911
 
 
4912
 
fi
4913
 
 
4914
 
 
4915
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
4916
 
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
4917
 
kde_cache=`echo Wno-long-long | sed 'y% .=/+-%____p_%'`
4918
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4919
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4920
 
else
4921
 
 
4922
 
 
4923
 
 
4924
 
   ac_ext=cc
4925
 
ac_cpp='$CXXCPP $CPPFLAGS'
4926
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4929
 
 
4930
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4931
 
 
4932
 
 
4933
 
  save_CXXFLAGS="$CXXFLAGS"
4934
 
  CXXFLAGS="$CXXFLAGS -Wno-long-long"
4935
 
  cat >conftest.$ac_ext <<_ACEOF
4936
 
#line $LINENO "configure"
4937
 
/* confdefs.h.  */
4938
 
_ACEOF
4939
 
cat confdefs.h >>conftest.$ac_ext
4940
 
cat >>conftest.$ac_ext <<_ACEOF
4941
 
/* end confdefs.h.  */
4942
 
 
4943
 
int
4944
 
main ()
4945
 
{
4946
 
 return 0;
4947
 
  ;
4948
 
  return 0;
4949
 
}
4950
 
_ACEOF
4951
 
rm -f conftest.$ac_objext conftest$ac_exeext
4952
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4953
 
  (eval $ac_link) 2>&5
4954
 
  ac_status=$?
4955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956
 
  (exit $ac_status); } &&
4957
 
         { ac_try='test -s conftest$ac_exeext'
4958
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959
 
  (eval $ac_try) 2>&5
4960
 
  ac_status=$?
4961
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962
 
  (exit $ac_status); }; }; then
4963
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4964
 
else
4965
 
  echo "$as_me: failed program was:" >&5
4966
 
sed 's/^/| /' conftest.$ac_ext >&5
4967
 
 
4968
 
fi
4969
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4970
 
  CXXFLAGS="$save_CXXFLAGS"
4971
 
  ac_ext=c
4972
 
ac_cpp='$CPP $CPPFLAGS'
4973
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976
 
 
4977
 
 
4978
 
fi
4979
 
 
4980
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4981
 
 echo "$as_me:$LINENO: result: yes" >&5
4982
 
echo "${ECHO_T}yes" >&6
4983
 
 :
4984
 
 CXXFLAGS="-Wno-long-long $CXXFLAGS"
4985
 
else
4986
 
 echo "$as_me:$LINENO: result: no" >&5
4987
 
echo "${ECHO_T}no" >&6
4988
 
 :
4989
 
 
4990
 
fi
4991
 
 
4992
 
 
4993
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
4994
 
echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6
4995
 
kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-%____p_%'`
4996
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4997
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4998
 
else
4999
 
 
5000
 
 
5001
 
 
5002
 
   ac_ext=cc
5003
 
ac_cpp='$CXXCPP $CPPFLAGS'
5004
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5007
 
 
5008
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5009
 
 
5010
 
 
5011
 
  save_CXXFLAGS="$CXXFLAGS"
5012
 
  CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
5013
 
  cat >conftest.$ac_ext <<_ACEOF
5014
 
#line $LINENO "configure"
5015
 
/* confdefs.h.  */
5016
 
_ACEOF
5017
 
cat confdefs.h >>conftest.$ac_ext
5018
 
cat >>conftest.$ac_ext <<_ACEOF
5019
 
/* end confdefs.h.  */
5020
 
 
5021
 
int
5022
 
main ()
5023
 
{
5024
 
 return 0;
5025
 
  ;
5026
 
  return 0;
5027
 
}
5028
 
_ACEOF
5029
 
rm -f conftest.$ac_objext conftest$ac_exeext
5030
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031
 
  (eval $ac_link) 2>&5
5032
 
  ac_status=$?
5033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034
 
  (exit $ac_status); } &&
5035
 
         { ac_try='test -s conftest$ac_exeext'
5036
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037
 
  (eval $ac_try) 2>&5
5038
 
  ac_status=$?
5039
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040
 
  (exit $ac_status); }; }; then
5041
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5042
 
else
5043
 
  echo "$as_me: failed program was:" >&5
5044
 
sed 's/^/| /' conftest.$ac_ext >&5
5045
 
 
5046
 
fi
5047
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5048
 
  CXXFLAGS="$save_CXXFLAGS"
5049
 
  ac_ext=c
5050
 
ac_cpp='$CPP $CPPFLAGS'
5051
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054
 
 
5055
 
 
5056
 
fi
5057
 
 
5058
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5059
 
 echo "$as_me:$LINENO: result: yes" >&5
5060
 
echo "${ECHO_T}yes" >&6
5061
 
 :
5062
 
 CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
5063
 
else
5064
 
 echo "$as_me:$LINENO: result: no" >&5
5065
 
echo "${ECHO_T}no" >&6
5066
 
 :
5067
 
 
5068
 
fi
5069
 
 
 
2659
        # Put the nasty error message in config.log where it belongs
 
2660
        echo "$QT_PKG_ERRORS" >&5
 
2661
 
 
2662
        { { echo "$as_me:$LINENO: error: Package requirements (QtGui >= 4.0.1) were not met:
 
2663
 
 
2664
$QT_PKG_ERRORS
 
2665
 
 
2666
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
2667
installed software in a non-standard prefix.
 
2668
 
 
2669
Alternatively, you may set the environment variables QT_CFLAGS
 
2670
and QT_LIBS to avoid the need to call pkg-config.
 
2671
See the pkg-config man page for more details.
 
2672
" >&5
 
2673
echo "$as_me: error: Package requirements (QtGui >= 4.0.1) were not met:
 
2674
 
 
2675
$QT_PKG_ERRORS
 
2676
 
 
2677
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
2678
installed software in a non-standard prefix.
 
2679
 
 
2680
Alternatively, you may set the environment variables QT_CFLAGS
 
2681
and QT_LIBS to avoid the need to call pkg-config.
 
2682
See the pkg-config man page for more details.
 
2683
" >&2;}
 
2684
   { (exit 1); exit 1; }; }
 
2685
elif test $pkg_failed = untried; then
 
2686
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
2687
is in your PATH or set the PKG_CONFIG environment variable to the full
 
2688
path to pkg-config.
 
2689
 
 
2690
Alternatively, you may set the environment variables QT_CFLAGS
 
2691
and QT_LIBS to avoid the need to call pkg-config.
 
2692
See the pkg-config man page for more details.
 
2693
 
 
2694
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
2695
See \`config.log' for more details." >&5
 
2696
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
2697
is in your PATH or set the PKG_CONFIG environment variable to the full
 
2698
path to pkg-config.
 
2699
 
 
2700
Alternatively, you may set the environment variables QT_CFLAGS
 
2701
and QT_LIBS to avoid the need to call pkg-config.
 
2702
See the pkg-config man page for more details.
 
2703
 
 
2704
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
2705
See \`config.log' for more details." >&2;}
 
2706
   { (exit 1); exit 1; }; }
 
2707
else
 
2708
        QT_CFLAGS=$pkg_cv_QT_CFLAGS
 
2709
        QT_LIBS=$pkg_cv_QT_LIBS
 
2710
        echo "$as_me:$LINENO: result: yes" >&5
 
2711
echo "${ECHO_T}yes" >&6
 
2712
        :
 
2713
fi
 
2714
 
 
2715
 
 
2716
QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui)
 
2717
EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
 
2718
as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
 
2719
echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
 
2720
echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
 
2721
if eval "test \"\${$as_ac_File+set}\" = set"; then
 
2722
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2723
else
 
2724
  test "$cross_compiling" = yes &&
 
2725
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
2726
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
2727
   { (exit 1); exit 1; }; }
 
2728
if test -r "$QT_INCLUDE_DIR/QWidget"; then
 
2729
  eval "$as_ac_File=yes"
 
2730
else
 
2731
  eval "$as_ac_File=no"
 
2732
fi
 
2733
fi
 
2734
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
 
2735
echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
 
2736
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
2737
  { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
 
2738
echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
 
2739
else
 
2740
  as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
 
2741
echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
 
2742
echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
 
2743
if eval "test \"\${$as_ac_File+set}\" = set"; then
 
2744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2745
else
 
2746
  test "$cross_compiling" = yes &&
 
2747
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
2748
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
2749
   { (exit 1); exit 1; }; }
 
2750
if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
 
2751
  eval "$as_ac_File=yes"
 
2752
else
 
2753
  eval "$as_ac_File=no"
 
2754
fi
 
2755
fi
 
2756
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
 
2757
echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
 
2758
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
2759
  QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
 
2760
else
 
2761
  { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
 
2762
echo "$as_me: WARNING: QWidget not found" >&2;}
 
2763
fi
 
2764
 
 
2765
fi
 
2766
 
 
2767
{ echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
 
2768
echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
 
2769
# Extract the first word of "moc", so it can be a program name with args.
 
2770
set dummy moc; ac_word=$2
 
2771
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2772
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2773
if test "${ac_cv_prog_MOC+set}" = set; then
 
2774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2775
else
 
2776
  if test -n "$MOC"; then
 
2777
  ac_cv_prog_MOC="$MOC" # Let the user override the test.
 
2778
else
 
2779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2780
for as_dir in $PATH
 
2781
do
 
2782
  IFS=$as_save_IFS
 
2783
  test -z "$as_dir" && as_dir=.
 
2784
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2785
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2786
    ac_cv_prog_MOC="moc"
 
2787
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2788
    break 2
 
2789
  fi
 
2790
done
 
2791
done
 
2792
 
 
2793
fi
 
2794
fi
 
2795
MOC=$ac_cv_prog_MOC
 
2796
if test -n "$MOC"; then
 
2797
  echo "$as_me:$LINENO: result: $MOC" >&5
 
2798
echo "${ECHO_T}$MOC" >&6
 
2799
else
 
2800
  echo "$as_me:$LINENO: result: no" >&5
 
2801
echo "${ECHO_T}no" >&6
 
2802
fi
 
2803
 
 
2804
# Extract the first word of "uic", so it can be a program name with args.
 
2805
set dummy uic; ac_word=$2
 
2806
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2807
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2808
if test "${ac_cv_prog_UIC+set}" = set; then
 
2809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2810
else
 
2811
  if test -n "$UIC"; then
 
2812
  ac_cv_prog_UIC="$UIC" # Let the user override the test.
 
2813
else
 
2814
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2815
for as_dir in $PATH
 
2816
do
 
2817
  IFS=$as_save_IFS
 
2818
  test -z "$as_dir" && as_dir=.
 
2819
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2820
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2821
    ac_cv_prog_UIC="uic"
 
2822
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2823
    break 2
 
2824
  fi
 
2825
done
 
2826
done
 
2827
 
 
2828
fi
 
2829
fi
 
2830
UIC=$ac_cv_prog_UIC
 
2831
if test -n "$UIC"; then
 
2832
  echo "$as_me:$LINENO: result: $UIC" >&5
 
2833
echo "${ECHO_T}$UIC" >&6
 
2834
else
 
2835
  echo "$as_me:$LINENO: result: no" >&5
 
2836
echo "${ECHO_T}no" >&6
 
2837
fi
 
2838
 
 
2839
# Extract the first word of "rcc", so it can be a program name with args.
 
2840
set dummy rcc; ac_word=$2
 
2841
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2842
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2843
if test "${ac_cv_prog_RCC+set}" = set; then
 
2844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2845
else
 
2846
  if test -n "$RCC"; then
 
2847
  ac_cv_prog_RCC="$RCC" # Let the user override the test.
 
2848
else
 
2849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2850
for as_dir in $PATH
 
2851
do
 
2852
  IFS=$as_save_IFS
 
2853
  test -z "$as_dir" && as_dir=.
 
2854
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2855
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2856
    ac_cv_prog_RCC="rcc"
 
2857
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2858
    break 2
 
2859
  fi
 
2860
done
 
2861
done
 
2862
 
 
2863
fi
 
2864
fi
 
2865
RCC=$ac_cv_prog_RCC
 
2866
if test -n "$RCC"; then
 
2867
  echo "$as_me:$LINENO: result: $RCC" >&5
 
2868
echo "${ECHO_T}$RCC" >&6
 
2869
else
 
2870
  echo "$as_me:$LINENO: result: no" >&5
 
2871
echo "${ECHO_T}no" >&6
 
2872
fi
 
2873
 
 
2874
# Extract the first word of "perl", so it can be a program name with args.
 
2875
set dummy perl; ac_word=$2
 
2876
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2877
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2878
if test "${ac_cv_prog_PERL+set}" = set; then
 
2879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2880
else
 
2881
  if test -n "$PERL"; then
 
2882
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
 
2883
else
 
2884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2885
for as_dir in $PATH
 
2886
do
 
2887
  IFS=$as_save_IFS
 
2888
  test -z "$as_dir" && as_dir=.
 
2889
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2890
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2891
    ac_cv_prog_PERL="perl"
 
2892
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2893
    break 2
 
2894
  fi
 
2895
done
 
2896
done
 
2897
 
 
2898
fi
 
2899
fi
 
2900
PERL=$ac_cv_prog_PERL
 
2901
if test -n "$PERL"; then
 
2902
  echo "$as_me:$LINENO: result: $PERL" >&5
 
2903
echo "${ECHO_T}$PERL" >&6
 
2904
else
 
2905
  echo "$as_me:$LINENO: result: no" >&5
 
2906
echo "${ECHO_T}no" >&6
 
2907
fi
 
2908
 
 
2909
 
 
2910
 
 
2911
# Check whether --with-libxml2-include or --without-libxml2-include was given.
 
2912
if test "${with_libxml2_include+set}" = set; then
 
2913
  withval="$with_libxml2_include"
 
2914
   libxml_includes="-I$withval"
 
2915
else
 
2916
   libxml_includes="-I/usr/include/libxml2"
 
2917
fi;
 
2918
CXXFLAGS="$CXXFLAGS $libxml_includes"
 
2919
 
 
2920
 
 
2921
ac_ext=c
 
2922
ac_cpp='$CPP $CPPFLAGS'
 
2923
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2924
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2925
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2926
if test -n "$ac_tool_prefix"; then
 
2927
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2928
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2929
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2930
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2931
if test "${ac_cv_prog_CC+set}" = set; then
 
2932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2933
else
 
2934
  if test -n "$CC"; then
 
2935
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2936
else
 
2937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2938
for as_dir in $PATH
 
2939
do
 
2940
  IFS=$as_save_IFS
 
2941
  test -z "$as_dir" && as_dir=.
 
2942
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2943
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2944
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2945
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2946
    break 2
 
2947
  fi
 
2948
done
 
2949
done
 
2950
 
 
2951
fi
 
2952
fi
 
2953
CC=$ac_cv_prog_CC
 
2954
if test -n "$CC"; then
 
2955
  echo "$as_me:$LINENO: result: $CC" >&5
 
2956
echo "${ECHO_T}$CC" >&6
 
2957
else
 
2958
  echo "$as_me:$LINENO: result: no" >&5
 
2959
echo "${ECHO_T}no" >&6
 
2960
fi
 
2961
 
 
2962
fi
 
2963
if test -z "$ac_cv_prog_CC"; then
 
2964
  ac_ct_CC=$CC
 
2965
  # Extract the first word of "gcc", so it can be a program name with args.
 
2966
set dummy gcc; ac_word=$2
 
2967
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2968
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2969
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2970
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2971
else
 
2972
  if test -n "$ac_ct_CC"; then
 
2973
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2974
else
 
2975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2976
for as_dir in $PATH
 
2977
do
 
2978
  IFS=$as_save_IFS
 
2979
  test -z "$as_dir" && as_dir=.
 
2980
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2981
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2982
    ac_cv_prog_ac_ct_CC="gcc"
 
2983
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2984
    break 2
 
2985
  fi
 
2986
done
 
2987
done
 
2988
 
 
2989
fi
 
2990
fi
 
2991
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2992
if test -n "$ac_ct_CC"; then
 
2993
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2994
echo "${ECHO_T}$ac_ct_CC" >&6
 
2995
else
 
2996
  echo "$as_me:$LINENO: result: no" >&5
 
2997
echo "${ECHO_T}no" >&6
 
2998
fi
 
2999
 
 
3000
  CC=$ac_ct_CC
 
3001
else
 
3002
  CC="$ac_cv_prog_CC"
 
3003
fi
 
3004
 
 
3005
if test -z "$CC"; then
 
3006
  if test -n "$ac_tool_prefix"; then
 
3007
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3008
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3009
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3010
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3011
if test "${ac_cv_prog_CC+set}" = set; then
 
3012
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3013
else
 
3014
  if test -n "$CC"; then
 
3015
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3016
else
 
3017
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3018
for as_dir in $PATH
 
3019
do
 
3020
  IFS=$as_save_IFS
 
3021
  test -z "$as_dir" && as_dir=.
 
3022
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3023
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3024
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3025
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3026
    break 2
 
3027
  fi
 
3028
done
 
3029
done
 
3030
 
 
3031
fi
 
3032
fi
 
3033
CC=$ac_cv_prog_CC
 
3034
if test -n "$CC"; then
 
3035
  echo "$as_me:$LINENO: result: $CC" >&5
 
3036
echo "${ECHO_T}$CC" >&6
 
3037
else
 
3038
  echo "$as_me:$LINENO: result: no" >&5
 
3039
echo "${ECHO_T}no" >&6
 
3040
fi
 
3041
 
 
3042
fi
 
3043
if test -z "$ac_cv_prog_CC"; then
 
3044
  ac_ct_CC=$CC
 
3045
  # Extract the first word of "cc", so it can be a program name with args.
 
3046
set dummy cc; ac_word=$2
 
3047
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3048
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3049
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3050
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3051
else
 
3052
  if test -n "$ac_ct_CC"; then
 
3053
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3054
else
 
3055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3056
for as_dir in $PATH
 
3057
do
 
3058
  IFS=$as_save_IFS
 
3059
  test -z "$as_dir" && as_dir=.
 
3060
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3061
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3062
    ac_cv_prog_ac_ct_CC="cc"
 
3063
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3064
    break 2
 
3065
  fi
 
3066
done
 
3067
done
 
3068
 
 
3069
fi
 
3070
fi
 
3071
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3072
if test -n "$ac_ct_CC"; then
 
3073
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3074
echo "${ECHO_T}$ac_ct_CC" >&6
 
3075
else
 
3076
  echo "$as_me:$LINENO: result: no" >&5
 
3077
echo "${ECHO_T}no" >&6
 
3078
fi
 
3079
 
 
3080
  CC=$ac_ct_CC
 
3081
else
 
3082
  CC="$ac_cv_prog_CC"
 
3083
fi
 
3084
 
 
3085
fi
 
3086
if test -z "$CC"; then
 
3087
  # Extract the first word of "cc", so it can be a program name with args.
 
3088
set dummy cc; ac_word=$2
 
3089
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3090
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3091
if test "${ac_cv_prog_CC+set}" = set; then
 
3092
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3093
else
 
3094
  if test -n "$CC"; then
 
3095
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3096
else
 
3097
  ac_prog_rejected=no
 
3098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3099
for as_dir in $PATH
 
3100
do
 
3101
  IFS=$as_save_IFS
 
3102
  test -z "$as_dir" && as_dir=.
 
3103
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3104
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3105
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3106
       ac_prog_rejected=yes
 
3107
       continue
5070
3108
     fi
5071
 
  fi
5072
 
 
5073
 
  if test "$GCC" = "yes" && test "$kde_use_strict_options" = "yes"; then
5074
 
    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
5075
 
  fi
5076
 
 
5077
 
  if test "$GXX" = "yes"; then
5078
 
 
5079
 
echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
5080
 
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
5081
 
kde_cache=`echo fno-exceptions | 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-exceptions"
5099
 
  cat >conftest.$ac_ext <<_ACEOF
5100
 
#line $LINENO "configure"
5101
 
/* confdefs.h.  */
5102
 
_ACEOF
5103
 
cat confdefs.h >>conftest.$ac_ext
5104
 
cat >>conftest.$ac_ext <<_ACEOF
5105
 
/* end confdefs.h.  */
5106
 
 
5107
 
int
5108
 
main ()
5109
 
{
5110
 
 return 0;
5111
 
  ;
5112
 
  return 0;
5113
 
}
5114
 
_ACEOF
5115
 
rm -f conftest.$ac_objext conftest$ac_exeext
5116
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5117
 
  (eval $ac_link) 2>&5
5118
 
  ac_status=$?
5119
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120
 
  (exit $ac_status); } &&
5121
 
         { ac_try='test -s conftest$ac_exeext'
5122
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123
 
  (eval $ac_try) 2>&5
5124
 
  ac_status=$?
5125
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126
 
  (exit $ac_status); }; }; then
5127
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5128
 
else
5129
 
  echo "$as_me: failed program was:" >&5
5130
 
sed 's/^/| /' conftest.$ac_ext >&5
5131
 
 
5132
 
fi
5133
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5134
 
  CXXFLAGS="$save_CXXFLAGS"
5135
 
  ac_ext=c
5136
 
ac_cpp='$CPP $CPPFLAGS'
5137
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140
 
 
5141
 
 
5142
 
fi
5143
 
 
5144
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5145
 
 echo "$as_me:$LINENO: result: yes" >&5
5146
 
echo "${ECHO_T}yes" >&6
5147
 
 :
5148
 
 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5149
 
else
5150
 
 echo "$as_me:$LINENO: result: no" >&5
5151
 
echo "${ECHO_T}no" >&6
5152
 
 :
5153
 
 
5154
 
fi
5155
 
 
5156
 
 
5157
 
echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
5158
 
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
5159
 
kde_cache=`echo fno-check-new | sed 'y% .=/+-%____p_%'`
5160
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5161
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5162
 
else
5163
 
 
5164
 
 
5165
 
 
5166
 
   ac_ext=cc
5167
 
ac_cpp='$CXXCPP $CPPFLAGS'
5168
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5171
 
 
5172
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5173
 
 
5174
 
 
5175
 
  save_CXXFLAGS="$CXXFLAGS"
5176
 
  CXXFLAGS="$CXXFLAGS -fno-check-new"
5177
 
  cat >conftest.$ac_ext <<_ACEOF
5178
 
#line $LINENO "configure"
5179
 
/* confdefs.h.  */
5180
 
_ACEOF
5181
 
cat confdefs.h >>conftest.$ac_ext
5182
 
cat >>conftest.$ac_ext <<_ACEOF
5183
 
/* end confdefs.h.  */
5184
 
 
5185
 
int
5186
 
main ()
5187
 
{
5188
 
 return 0;
5189
 
  ;
5190
 
  return 0;
5191
 
}
5192
 
_ACEOF
5193
 
rm -f conftest.$ac_objext conftest$ac_exeext
5194
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195
 
  (eval $ac_link) 2>&5
5196
 
  ac_status=$?
5197
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198
 
  (exit $ac_status); } &&
5199
 
         { ac_try='test -s conftest$ac_exeext'
5200
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201
 
  (eval $ac_try) 2>&5
5202
 
  ac_status=$?
5203
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204
 
  (exit $ac_status); }; }; then
5205
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5206
 
else
5207
 
  echo "$as_me: failed program was:" >&5
5208
 
sed 's/^/| /' conftest.$ac_ext >&5
5209
 
 
5210
 
fi
5211
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5212
 
  CXXFLAGS="$save_CXXFLAGS"
5213
 
  ac_ext=c
5214
 
ac_cpp='$CPP $CPPFLAGS'
5215
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218
 
 
5219
 
 
5220
 
fi
5221
 
 
5222
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5223
 
 echo "$as_me:$LINENO: result: yes" >&5
5224
 
echo "${ECHO_T}yes" >&6
5225
 
 :
5226
 
 CXXFLAGS="$CXXFLAGS -fno-check-new"
5227
 
else
5228
 
 echo "$as_me:$LINENO: result: no" >&5
5229
 
echo "${ECHO_T}no" >&6
5230
 
 :
5231
 
 
5232
 
fi
5233
 
 
5234
 
 
5235
 
echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
5236
 
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
5237
 
kde_cache=`echo fexceptions | sed 'y% .=/+-%____p_%'`
5238
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5239
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5240
 
else
5241
 
 
5242
 
 
5243
 
 
5244
 
   ac_ext=cc
5245
 
ac_cpp='$CXXCPP $CPPFLAGS'
5246
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5249
 
 
5250
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5251
 
 
5252
 
 
5253
 
  save_CXXFLAGS="$CXXFLAGS"
5254
 
  CXXFLAGS="$CXXFLAGS -fexceptions"
5255
 
  cat >conftest.$ac_ext <<_ACEOF
5256
 
#line $LINENO "configure"
5257
 
/* confdefs.h.  */
5258
 
_ACEOF
5259
 
cat confdefs.h >>conftest.$ac_ext
5260
 
cat >>conftest.$ac_ext <<_ACEOF
5261
 
/* end confdefs.h.  */
5262
 
 
5263
 
int
5264
 
main ()
5265
 
{
5266
 
 return 0;
5267
 
  ;
5268
 
  return 0;
5269
 
}
5270
 
_ACEOF
5271
 
rm -f conftest.$ac_objext conftest$ac_exeext
5272
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5273
 
  (eval $ac_link) 2>&5
5274
 
  ac_status=$?
5275
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276
 
  (exit $ac_status); } &&
5277
 
         { ac_try='test -s conftest$ac_exeext'
5278
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279
 
  (eval $ac_try) 2>&5
5280
 
  ac_status=$?
5281
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282
 
  (exit $ac_status); }; }; then
5283
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5284
 
else
5285
 
  echo "$as_me: failed program was:" >&5
5286
 
sed 's/^/| /' conftest.$ac_ext >&5
5287
 
 
5288
 
fi
5289
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5290
 
  CXXFLAGS="$save_CXXFLAGS"
5291
 
  ac_ext=c
5292
 
ac_cpp='$CPP $CPPFLAGS'
5293
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296
 
 
5297
 
 
5298
 
fi
5299
 
 
5300
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5301
 
 echo "$as_me:$LINENO: result: yes" >&5
5302
 
echo "${ECHO_T}yes" >&6
5303
 
 :
5304
 
 USE_EXCEPTIONS="-fexceptions"
5305
 
else
5306
 
 echo "$as_me:$LINENO: result: no" >&5
5307
 
echo "${ECHO_T}no" >&6
5308
 
 :
5309
 
 USE_EXCEPTIONS=
5310
 
fi
5311
 
 
5312
 
  fi
5313
 
  if test "$CXX" = "KCC"; then
5314
 
 
5315
 
    # Check whether --enable-pch or --disable-pch was given.
5316
 
if test "${enable_pch+set}" = set; then
5317
 
  enableval="$enable_pch"
5318
 
 
5319
 
      kde_use_pch=$enableval
5320
 
 
5321
 
else
5322
 
  kde_use_pch=no
5323
 
fi;
5324
 
 
5325
 
    if test "$kde_use_pch" = "yes"; then
5326
 
 
5327
 
echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
5328
 
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
5329
 
kde_cache=`echo -pch | sed 'y% .=/+-%____p_%'`
5330
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5331
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5332
 
else
5333
 
 
5334
 
 
5335
 
 
5336
 
   ac_ext=cc
5337
 
ac_cpp='$CXXCPP $CPPFLAGS'
5338
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5341
 
 
5342
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5343
 
 
5344
 
 
5345
 
  save_CXXFLAGS="$CXXFLAGS"
5346
 
  CXXFLAGS="$CXXFLAGS --pch"
5347
 
  cat >conftest.$ac_ext <<_ACEOF
5348
 
#line $LINENO "configure"
5349
 
/* confdefs.h.  */
5350
 
_ACEOF
5351
 
cat confdefs.h >>conftest.$ac_ext
5352
 
cat >>conftest.$ac_ext <<_ACEOF
5353
 
/* end confdefs.h.  */
5354
 
 
5355
 
int
5356
 
main ()
5357
 
{
5358
 
 return 0;
5359
 
  ;
5360
 
  return 0;
5361
 
}
5362
 
_ACEOF
5363
 
rm -f conftest.$ac_objext conftest$ac_exeext
5364
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5365
 
  (eval $ac_link) 2>&5
5366
 
  ac_status=$?
5367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368
 
  (exit $ac_status); } &&
5369
 
         { ac_try='test -s conftest$ac_exeext'
5370
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371
 
  (eval $ac_try) 2>&5
5372
 
  ac_status=$?
5373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374
 
  (exit $ac_status); }; }; then
5375
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5376
 
else
5377
 
  echo "$as_me: failed program was:" >&5
5378
 
sed 's/^/| /' conftest.$ac_ext >&5
5379
 
 
5380
 
fi
5381
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5382
 
  CXXFLAGS="$save_CXXFLAGS"
5383
 
  ac_ext=c
5384
 
ac_cpp='$CPP $CPPFLAGS'
5385
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
 
 
5389
 
 
5390
 
fi
5391
 
 
5392
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5393
 
 echo "$as_me:$LINENO: result: yes" >&5
5394
 
echo "${ECHO_T}yes" >&6
5395
 
 :
5396
 
 CXXFLAGS="$CXXFLAGS --pch"
5397
 
else
5398
 
 echo "$as_me:$LINENO: result: no" >&5
5399
 
echo "${ECHO_T}no" >&6
5400
 
 :
5401
 
 
5402
 
fi
5403
 
 
5404
 
                                              fi
5405
 
 
5406
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
5407
 
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
5408
 
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-%____p_%'`
5409
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5410
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5411
 
else
5412
 
 
5413
 
 
5414
 
 
5415
 
   ac_ext=cc
5416
 
ac_cpp='$CXXCPP $CPPFLAGS'
5417
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5420
 
 
5421
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5422
 
 
5423
 
 
5424
 
  save_CXXFLAGS="$CXXFLAGS"
5425
 
  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
5426
 
  cat >conftest.$ac_ext <<_ACEOF
5427
 
#line $LINENO "configure"
5428
 
/* confdefs.h.  */
5429
 
_ACEOF
5430
 
cat confdefs.h >>conftest.$ac_ext
5431
 
cat >>conftest.$ac_ext <<_ACEOF
5432
 
/* end confdefs.h.  */
5433
 
 
5434
 
int
5435
 
main ()
5436
 
{
5437
 
 return 0;
5438
 
  ;
5439
 
  return 0;
5440
 
}
5441
 
_ACEOF
5442
 
rm -f conftest.$ac_objext conftest$ac_exeext
5443
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444
 
  (eval $ac_link) 2>&5
5445
 
  ac_status=$?
5446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447
 
  (exit $ac_status); } &&
5448
 
         { ac_try='test -s conftest$ac_exeext'
5449
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450
 
  (eval $ac_try) 2>&5
5451
 
  ac_status=$?
5452
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453
 
  (exit $ac_status); }; }; then
5454
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5455
 
else
5456
 
  echo "$as_me: failed program was:" >&5
5457
 
sed 's/^/| /' conftest.$ac_ext >&5
5458
 
 
5459
 
fi
5460
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5461
 
  CXXFLAGS="$save_CXXFLAGS"
5462
 
  ac_ext=c
5463
 
ac_cpp='$CPP $CPPFLAGS'
5464
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467
 
 
5468
 
 
5469
 
fi
5470
 
 
5471
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5472
 
 echo "$as_me:$LINENO: result: yes" >&5
5473
 
echo "${ECHO_T}yes" >&6
5474
 
 :
5475
 
 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
5476
 
else
5477
 
 echo "$as_me:$LINENO: result: no" >&5
5478
 
echo "${ECHO_T}no" >&6
5479
 
 :
5480
 
 
5481
 
fi
5482
 
 
5483
 
 
5484
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
5485
 
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
5486
 
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-%____p_%'`
5487
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5488
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5489
 
else
5490
 
 
5491
 
 
5492
 
 
5493
 
   ac_ext=cc
5494
 
ac_cpp='$CXXCPP $CPPFLAGS'
5495
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5496
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5497
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5498
 
 
5499
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5500
 
 
5501
 
 
5502
 
  save_CXXFLAGS="$CXXFLAGS"
5503
 
  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
5504
 
  cat >conftest.$ac_ext <<_ACEOF
5505
 
#line $LINENO "configure"
5506
 
/* confdefs.h.  */
5507
 
_ACEOF
5508
 
cat confdefs.h >>conftest.$ac_ext
5509
 
cat >>conftest.$ac_ext <<_ACEOF
5510
 
/* end confdefs.h.  */
5511
 
 
5512
 
int
5513
 
main ()
5514
 
{
5515
 
 return 0;
5516
 
  ;
5517
 
  return 0;
5518
 
}
5519
 
_ACEOF
5520
 
rm -f conftest.$ac_objext conftest$ac_exeext
5521
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5522
 
  (eval $ac_link) 2>&5
5523
 
  ac_status=$?
5524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525
 
  (exit $ac_status); } &&
5526
 
         { ac_try='test -s conftest$ac_exeext'
5527
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528
 
  (eval $ac_try) 2>&5
5529
 
  ac_status=$?
5530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531
 
  (exit $ac_status); }; }; then
5532
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5533
 
else
5534
 
  echo "$as_me: failed program was:" >&5
5535
 
sed 's/^/| /' conftest.$ac_ext >&5
5536
 
 
5537
 
fi
5538
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5539
 
  CXXFLAGS="$save_CXXFLAGS"
5540
 
  ac_ext=c
5541
 
ac_cpp='$CPP $CPPFLAGS'
5542
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
 
 
5546
 
 
5547
 
fi
5548
 
 
5549
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5550
 
 echo "$as_me:$LINENO: result: yes" >&5
5551
 
echo "${ECHO_T}yes" >&6
5552
 
 :
5553
 
 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
5554
 
else
5555
 
 echo "$as_me:$LINENO: result: no" >&5
5556
 
echo "${ECHO_T}no" >&6
5557
 
 :
5558
 
 
5559
 
fi
5560
 
 
5561
 
 
5562
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
5563
 
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
5564
 
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-%____p_%'`
5565
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5566
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5567
 
else
5568
 
 
5569
 
 
5570
 
 
5571
 
   ac_ext=cc
5572
 
ac_cpp='$CXXCPP $CPPFLAGS'
5573
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5574
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5576
 
 
5577
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5578
 
 
5579
 
 
5580
 
  save_CXXFLAGS="$CXXFLAGS"
5581
 
  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
5582
 
  cat >conftest.$ac_ext <<_ACEOF
5583
 
#line $LINENO "configure"
5584
 
/* confdefs.h.  */
5585
 
_ACEOF
5586
 
cat confdefs.h >>conftest.$ac_ext
5587
 
cat >>conftest.$ac_ext <<_ACEOF
5588
 
/* end confdefs.h.  */
5589
 
 
5590
 
int
5591
 
main ()
5592
 
{
5593
 
 return 0;
5594
 
  ;
5595
 
  return 0;
5596
 
}
5597
 
_ACEOF
5598
 
rm -f conftest.$ac_objext conftest$ac_exeext
5599
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600
 
  (eval $ac_link) 2>&5
5601
 
  ac_status=$?
5602
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603
 
  (exit $ac_status); } &&
5604
 
         { ac_try='test -s conftest$ac_exeext'
5605
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606
 
  (eval $ac_try) 2>&5
5607
 
  ac_status=$?
5608
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609
 
  (exit $ac_status); }; }; then
5610
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5611
 
else
5612
 
  echo "$as_me: failed program was:" >&5
5613
 
sed 's/^/| /' conftest.$ac_ext >&5
5614
 
 
5615
 
fi
5616
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5617
 
  CXXFLAGS="$save_CXXFLAGS"
5618
 
  ac_ext=c
5619
 
ac_cpp='$CPP $CPPFLAGS'
5620
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5623
 
 
5624
 
 
5625
 
fi
5626
 
 
5627
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5628
 
 echo "$as_me:$LINENO: result: yes" >&5
5629
 
echo "${ECHO_T}yes" >&6
5630
 
 :
5631
 
 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
5632
 
else
5633
 
 echo "$as_me:$LINENO: result: no" >&5
5634
 
echo "${ECHO_T}no" >&6
5635
 
 :
5636
 
 
5637
 
fi
5638
 
 
5639
 
 
5640
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
5641
 
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
5642
 
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-%____p_%'`
5643
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5644
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5645
 
else
5646
 
 
5647
 
 
5648
 
 
5649
 
   ac_ext=cc
5650
 
ac_cpp='$CXXCPP $CPPFLAGS'
5651
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5654
 
 
5655
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5656
 
 
5657
 
 
5658
 
  save_CXXFLAGS="$CXXFLAGS"
5659
 
  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
5660
 
  cat >conftest.$ac_ext <<_ACEOF
5661
 
#line $LINENO "configure"
5662
 
/* confdefs.h.  */
5663
 
_ACEOF
5664
 
cat confdefs.h >>conftest.$ac_ext
5665
 
cat >>conftest.$ac_ext <<_ACEOF
5666
 
/* end confdefs.h.  */
5667
 
 
5668
 
int
5669
 
main ()
5670
 
{
5671
 
 return 0;
5672
 
  ;
5673
 
  return 0;
5674
 
}
5675
 
_ACEOF
5676
 
rm -f conftest.$ac_objext conftest$ac_exeext
5677
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678
 
  (eval $ac_link) 2>&5
5679
 
  ac_status=$?
5680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681
 
  (exit $ac_status); } &&
5682
 
         { ac_try='test -s conftest$ac_exeext'
5683
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684
 
  (eval $ac_try) 2>&5
5685
 
  ac_status=$?
5686
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687
 
  (exit $ac_status); }; }; then
5688
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5689
 
else
5690
 
  echo "$as_me: failed program was:" >&5
5691
 
sed 's/^/| /' conftest.$ac_ext >&5
5692
 
 
5693
 
fi
5694
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5695
 
  CXXFLAGS="$save_CXXFLAGS"
5696
 
  ac_ext=c
5697
 
ac_cpp='$CPP $CPPFLAGS'
5698
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5701
 
 
5702
 
 
5703
 
fi
5704
 
 
5705
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5706
 
 echo "$as_me:$LINENO: result: yes" >&5
5707
 
echo "${ECHO_T}yes" >&6
5708
 
 :
5709
 
 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
5710
 
else
5711
 
 echo "$as_me:$LINENO: result: no" >&5
5712
 
echo "${ECHO_T}no" >&6
5713
 
 :
5714
 
 
5715
 
fi
5716
 
 
5717
 
 
5718
 
echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
5719
 
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
5720
 
kde_cache=`echo -one_per | sed 'y% .=/+-%____p_%'`
5721
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5722
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5723
 
else
5724
 
 
5725
 
 
5726
 
 
5727
 
   ac_ext=cc
5728
 
ac_cpp='$CXXCPP $CPPFLAGS'
5729
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5732
 
 
5733
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5734
 
 
5735
 
 
5736
 
  save_CXXFLAGS="$CXXFLAGS"
5737
 
  CXXFLAGS="$CXXFLAGS --one_per"
5738
 
  cat >conftest.$ac_ext <<_ACEOF
5739
 
#line $LINENO "configure"
5740
 
/* confdefs.h.  */
5741
 
_ACEOF
5742
 
cat confdefs.h >>conftest.$ac_ext
5743
 
cat >>conftest.$ac_ext <<_ACEOF
5744
 
/* end confdefs.h.  */
5745
 
 
5746
 
int
5747
 
main ()
5748
 
{
5749
 
 return 0;
5750
 
  ;
5751
 
  return 0;
5752
 
}
5753
 
_ACEOF
5754
 
rm -f conftest.$ac_objext conftest$ac_exeext
5755
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756
 
  (eval $ac_link) 2>&5
5757
 
  ac_status=$?
5758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759
 
  (exit $ac_status); } &&
5760
 
         { ac_try='test -s conftest$ac_exeext'
5761
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762
 
  (eval $ac_try) 2>&5
5763
 
  ac_status=$?
5764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765
 
  (exit $ac_status); }; }; then
5766
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5767
 
else
5768
 
  echo "$as_me: failed program was:" >&5
5769
 
sed 's/^/| /' conftest.$ac_ext >&5
5770
 
 
5771
 
fi
5772
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5773
 
  CXXFLAGS="$save_CXXFLAGS"
5774
 
  ac_ext=c
5775
 
ac_cpp='$CPP $CPPFLAGS'
5776
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5779
 
 
5780
 
 
5781
 
fi
5782
 
 
5783
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5784
 
 echo "$as_me:$LINENO: result: yes" >&5
5785
 
echo "${ECHO_T}yes" >&6
5786
 
 :
5787
 
 CXXFLAGS="$CXXFLAGS --one_per"
5788
 
else
5789
 
 echo "$as_me:$LINENO: result: no" >&5
5790
 
echo "${ECHO_T}no" >&6
5791
 
 :
5792
 
 
5793
 
fi
5794
 
 
5795
 
  fi
5796
 
 
5797
 
    USE_RTTI=
5798
 
 
5799
 
 
5800
 
  case "$host" in
5801
 
      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
5802
 
      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
5803
 
      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
5804
 
      *-*-solaris*)
5805
 
        if test "$GXX" = yes; then
5806
 
          libstdcpp=`$CXX -print-file-name=libstdc++.so`
5807
 
          if test ! -f $libstdcpp; then
5808
 
             { { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
5809
 
echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
 
3109
    ac_cv_prog_CC="cc"
 
3110
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3111
    break 2
 
3112
  fi
 
3113
done
 
3114
done
 
3115
 
 
3116
if test $ac_prog_rejected = yes; then
 
3117
  # We found a bogon in the path, so make sure we never use it.
 
3118
  set dummy $ac_cv_prog_CC
 
3119
  shift
 
3120
  if test $# != 0; then
 
3121
    # We chose a different compiler from the bogus one.
 
3122
    # However, it has the same basename, so the bogon will be chosen
 
3123
    # first if we set CC to just the basename; use the full file name.
 
3124
    shift
 
3125
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3126
  fi
 
3127
fi
 
3128
fi
 
3129
fi
 
3130
CC=$ac_cv_prog_CC
 
3131
if test -n "$CC"; then
 
3132
  echo "$as_me:$LINENO: result: $CC" >&5
 
3133
echo "${ECHO_T}$CC" >&6
 
3134
else
 
3135
  echo "$as_me:$LINENO: result: no" >&5
 
3136
echo "${ECHO_T}no" >&6
 
3137
fi
 
3138
 
 
3139
fi
 
3140
if test -z "$CC"; then
 
3141
  if test -n "$ac_tool_prefix"; then
 
3142
  for ac_prog in cl
 
3143
  do
 
3144
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3145
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3146
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3147
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3148
if test "${ac_cv_prog_CC+set}" = set; then
 
3149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3150
else
 
3151
  if test -n "$CC"; then
 
3152
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3153
else
 
3154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3155
for as_dir in $PATH
 
3156
do
 
3157
  IFS=$as_save_IFS
 
3158
  test -z "$as_dir" && as_dir=.
 
3159
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3160
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3161
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3162
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3163
    break 2
 
3164
  fi
 
3165
done
 
3166
done
 
3167
 
 
3168
fi
 
3169
fi
 
3170
CC=$ac_cv_prog_CC
 
3171
if test -n "$CC"; then
 
3172
  echo "$as_me:$LINENO: result: $CC" >&5
 
3173
echo "${ECHO_T}$CC" >&6
 
3174
else
 
3175
  echo "$as_me:$LINENO: result: no" >&5
 
3176
echo "${ECHO_T}no" >&6
 
3177
fi
 
3178
 
 
3179
    test -n "$CC" && break
 
3180
  done
 
3181
fi
 
3182
if test -z "$CC"; then
 
3183
  ac_ct_CC=$CC
 
3184
  for ac_prog in cl
 
3185
do
 
3186
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3187
set dummy $ac_prog; ac_word=$2
 
3188
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3190
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3192
else
 
3193
  if test -n "$ac_ct_CC"; then
 
3194
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3195
else
 
3196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3197
for as_dir in $PATH
 
3198
do
 
3199
  IFS=$as_save_IFS
 
3200
  test -z "$as_dir" && as_dir=.
 
3201
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3202
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3203
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3204
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3205
    break 2
 
3206
  fi
 
3207
done
 
3208
done
 
3209
 
 
3210
fi
 
3211
fi
 
3212
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3213
if test -n "$ac_ct_CC"; then
 
3214
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3215
echo "${ECHO_T}$ac_ct_CC" >&6
 
3216
else
 
3217
  echo "$as_me:$LINENO: result: no" >&5
 
3218
echo "${ECHO_T}no" >&6
 
3219
fi
 
3220
 
 
3221
  test -n "$ac_ct_CC" && break
 
3222
done
 
3223
 
 
3224
  CC=$ac_ct_CC
 
3225
fi
 
3226
 
 
3227
fi
 
3228
 
 
3229
 
 
3230
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3231
See \`config.log' for more details." >&5
 
3232
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3233
See \`config.log' for more details." >&2;}
5810
3234
   { (exit 1); exit 1; }; }
5811
 
          fi
5812
 
        fi
5813
 
        ;;
5814
 
  esac
5815
 
 
5816
 
  if test "x$kde_use_qt_emb" != "xyes"; then
5817
 
  __val=$CXX
5818
 
  __forbid=" -fno-rtti -rpath "
5819
 
  if test -n "$__val"; then
5820
 
    __new=""
5821
 
    ac_save_IFS=$IFS
5822
 
    IFS="       "
5823
 
    for i in $__val; do
5824
 
      case "$__forbid" in
5825
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
5826
 
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
5827
 
        *) # Careful to not add spaces, where there were none, because otherwise
5828
 
           # libtool gets confused, if we change e.g. CXX
5829
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5830
 
      esac
5831
 
    done
5832
 
    IFS=$ac_save_IFS
5833
 
    CXX=$__new
5834
 
  fi
5835
 
 
5836
 
  __val=$CXXFLAGS
5837
 
  __forbid=" -fno-rtti -rpath "
5838
 
  if test -n "$__val"; then
5839
 
    __new=""
5840
 
    ac_save_IFS=$IFS
5841
 
    IFS="       "
5842
 
    for i in $__val; do
5843
 
      case "$__forbid" in
5844
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
5845
 
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
5846
 
        *) # Careful to not add spaces, where there were none, because otherwise
5847
 
           # libtool gets confused, if we change e.g. CXX
5848
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5849
 
      esac
5850
 
    done
5851
 
    IFS=$ac_save_IFS
5852
 
    CXXFLAGS=$__new
5853
 
  fi
5854
 
 
5855
 
else
5856
 
  __val=$CXX
5857
 
  __forbid=" -rpath "
5858
 
  if test -n "$__val"; then
5859
 
    __new=""
5860
 
    ac_save_IFS=$IFS
5861
 
    IFS="       "
5862
 
    for i in $__val; do
5863
 
      case "$__forbid" in
5864
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
5865
 
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
5866
 
        *) # Careful to not add spaces, where there were none, because otherwise
5867
 
           # libtool gets confused, if we change e.g. CXX
5868
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5869
 
      esac
5870
 
    done
5871
 
    IFS=$ac_save_IFS
5872
 
    CXX=$__new
5873
 
  fi
5874
 
 
5875
 
  __val=$CXXFLAGS
5876
 
  __forbid=" -rpath "
5877
 
  if test -n "$__val"; then
5878
 
    __new=""
5879
 
    ac_save_IFS=$IFS
5880
 
    IFS="       "
5881
 
    for i in $__val; do
5882
 
      case "$__forbid" in
5883
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
5884
 
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
5885
 
        *) # Careful to not add spaces, where there were none, because otherwise
5886
 
           # libtool gets confused, if we change e.g. CXX
5887
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5888
 
      esac
5889
 
    done
5890
 
    IFS=$ac_save_IFS
5891
 
    CXXFLAGS=$__new
5892
 
  fi
5893
 
 
5894
 
fi
5895
 
 
5896
 
 
5897
 
  ac_ext=cc
5898
 
ac_cpp='$CXXCPP $CPPFLAGS'
5899
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5900
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5902
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5903
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5904
 
if test -z "$CXXCPP"; then
5905
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5906
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5907
 
else
5908
 
      # Double quotes because CXXCPP needs to be expanded
5909
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
3235
 
 
3236
# Provide some information about the compiler.
 
3237
echo "$as_me:$LINENO:" \
 
3238
     "checking for C compiler version" >&5
 
3239
ac_compiler=`set X $ac_compile; echo $2`
 
3240
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3241
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3242
  ac_status=$?
 
3243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3244
  (exit $ac_status); }
 
3245
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3246
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3247
  ac_status=$?
 
3248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3249
  (exit $ac_status); }
 
3250
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3251
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3252
  ac_status=$?
 
3253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3254
  (exit $ac_status); }
 
3255
 
 
3256
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3257
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3258
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3260
else
 
3261
  cat >conftest.$ac_ext <<_ACEOF
 
3262
/* confdefs.h.  */
 
3263
_ACEOF
 
3264
cat confdefs.h >>conftest.$ac_ext
 
3265
cat >>conftest.$ac_ext <<_ACEOF
 
3266
/* end confdefs.h.  */
 
3267
 
 
3268
int
 
3269
main ()
 
3270
{
 
3271
#ifndef __GNUC__
 
3272
       choke me
 
3273
#endif
 
3274
 
 
3275
  ;
 
3276
  return 0;
 
3277
}
 
3278
_ACEOF
 
3279
rm -f conftest.$ac_objext
 
3280
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3281
  (eval $ac_compile) 2>conftest.er1
 
3282
  ac_status=$?
 
3283
  grep -v '^ *+' conftest.er1 >conftest.err
 
3284
  rm -f conftest.er1
 
3285
  cat conftest.err >&5
 
3286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3287
  (exit $ac_status); } &&
 
3288
         { ac_try='test -z "$ac_c_werror_flag"
 
3289
                         || test ! -s conftest.err'
 
3290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3291
  (eval $ac_try) 2>&5
 
3292
  ac_status=$?
 
3293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3294
  (exit $ac_status); }; } &&
 
3295
         { ac_try='test -s conftest.$ac_objext'
 
3296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3297
  (eval $ac_try) 2>&5
 
3298
  ac_status=$?
 
3299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3300
  (exit $ac_status); }; }; then
 
3301
  ac_compiler_gnu=yes
 
3302
else
 
3303
  echo "$as_me: failed program was:" >&5
 
3304
sed 's/^/| /' conftest.$ac_ext >&5
 
3305
 
 
3306
ac_compiler_gnu=no
 
3307
fi
 
3308
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3309
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3310
 
 
3311
fi
 
3312
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3313
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3314
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3315
ac_test_CFLAGS=${CFLAGS+set}
 
3316
ac_save_CFLAGS=$CFLAGS
 
3317
CFLAGS="-g"
 
3318
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3319
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3320
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3322
else
 
3323
  cat >conftest.$ac_ext <<_ACEOF
 
3324
/* confdefs.h.  */
 
3325
_ACEOF
 
3326
cat confdefs.h >>conftest.$ac_ext
 
3327
cat >>conftest.$ac_ext <<_ACEOF
 
3328
/* end confdefs.h.  */
 
3329
 
 
3330
int
 
3331
main ()
 
3332
{
 
3333
 
 
3334
  ;
 
3335
  return 0;
 
3336
}
 
3337
_ACEOF
 
3338
rm -f conftest.$ac_objext
 
3339
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3340
  (eval $ac_compile) 2>conftest.er1
 
3341
  ac_status=$?
 
3342
  grep -v '^ *+' conftest.er1 >conftest.err
 
3343
  rm -f conftest.er1
 
3344
  cat conftest.err >&5
 
3345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3346
  (exit $ac_status); } &&
 
3347
         { ac_try='test -z "$ac_c_werror_flag"
 
3348
                         || test ! -s conftest.err'
 
3349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3350
  (eval $ac_try) 2>&5
 
3351
  ac_status=$?
 
3352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3353
  (exit $ac_status); }; } &&
 
3354
         { ac_try='test -s conftest.$ac_objext'
 
3355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3356
  (eval $ac_try) 2>&5
 
3357
  ac_status=$?
 
3358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3359
  (exit $ac_status); }; }; then
 
3360
  ac_cv_prog_cc_g=yes
 
3361
else
 
3362
  echo "$as_me: failed program was:" >&5
 
3363
sed 's/^/| /' conftest.$ac_ext >&5
 
3364
 
 
3365
ac_cv_prog_cc_g=no
 
3366
fi
 
3367
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3368
fi
 
3369
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3370
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3371
if test "$ac_test_CFLAGS" = set; then
 
3372
  CFLAGS=$ac_save_CFLAGS
 
3373
elif test $ac_cv_prog_cc_g = yes; then
 
3374
  if test "$GCC" = yes; then
 
3375
    CFLAGS="-g -O2"
 
3376
  else
 
3377
    CFLAGS="-g"
 
3378
  fi
 
3379
else
 
3380
  if test "$GCC" = yes; then
 
3381
    CFLAGS="-O2"
 
3382
  else
 
3383
    CFLAGS=
 
3384
  fi
 
3385
fi
 
3386
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3387
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3388
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3390
else
 
3391
  ac_cv_prog_cc_stdc=no
 
3392
ac_save_CC=$CC
 
3393
cat >conftest.$ac_ext <<_ACEOF
 
3394
/* confdefs.h.  */
 
3395
_ACEOF
 
3396
cat confdefs.h >>conftest.$ac_ext
 
3397
cat >>conftest.$ac_ext <<_ACEOF
 
3398
/* end confdefs.h.  */
 
3399
#include <stdarg.h>
 
3400
#include <stdio.h>
 
3401
#include <sys/types.h>
 
3402
#include <sys/stat.h>
 
3403
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3404
struct buf { int x; };
 
3405
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3406
static char *e (p, i)
 
3407
     char **p;
 
3408
     int i;
 
3409
{
 
3410
  return p[i];
 
3411
}
 
3412
static char *f (char * (*g) (char **, int), char **p, ...)
 
3413
{
 
3414
  char *s;
 
3415
  va_list v;
 
3416
  va_start (v,p);
 
3417
  s = g (p, va_arg (v,int));
 
3418
  va_end (v);
 
3419
  return s;
 
3420
}
 
3421
 
 
3422
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3423
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3424
   These don't provoke an error unfortunately, instead are silently treated
 
3425
   as 'x'.  The following induces an error, until -std1 is added to get
 
3426
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3427
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3428
   that's true only with -std1.  */
 
3429
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3430
 
 
3431
int test (int i, double x);
 
3432
struct s1 {int (*f) (int a);};
 
3433
struct s2 {int (*f) (double a);};
 
3434
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3435
int argc;
 
3436
char **argv;
 
3437
int
 
3438
main ()
 
3439
{
 
3440
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3441
  ;
 
3442
  return 0;
 
3443
}
 
3444
_ACEOF
 
3445
# Don't try gcc -ansi; that turns off useful extensions and
 
3446
# breaks some systems' header files.
 
3447
# AIX                   -qlanglvl=ansi
 
3448
# Ultrix and OSF/1      -std1
 
3449
# HP-UX 10.20 and later -Ae
 
3450
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3451
# SVR4                  -Xc -D__EXTENSIONS__
 
3452
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3453
do
 
3454
  CC="$ac_save_CC $ac_arg"
 
3455
  rm -f conftest.$ac_objext
 
3456
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3457
  (eval $ac_compile) 2>conftest.er1
 
3458
  ac_status=$?
 
3459
  grep -v '^ *+' conftest.er1 >conftest.err
 
3460
  rm -f conftest.er1
 
3461
  cat conftest.err >&5
 
3462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3463
  (exit $ac_status); } &&
 
3464
         { ac_try='test -z "$ac_c_werror_flag"
 
3465
                         || test ! -s conftest.err'
 
3466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3467
  (eval $ac_try) 2>&5
 
3468
  ac_status=$?
 
3469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3470
  (exit $ac_status); }; } &&
 
3471
         { ac_try='test -s conftest.$ac_objext'
 
3472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3473
  (eval $ac_try) 2>&5
 
3474
  ac_status=$?
 
3475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3476
  (exit $ac_status); }; }; then
 
3477
  ac_cv_prog_cc_stdc=$ac_arg
 
3478
break
 
3479
else
 
3480
  echo "$as_me: failed program was:" >&5
 
3481
sed 's/^/| /' conftest.$ac_ext >&5
 
3482
 
 
3483
fi
 
3484
rm -f conftest.err conftest.$ac_objext
 
3485
done
 
3486
rm -f conftest.$ac_ext conftest.$ac_objext
 
3487
CC=$ac_save_CC
 
3488
 
 
3489
fi
 
3490
 
 
3491
case "x$ac_cv_prog_cc_stdc" in
 
3492
  x|xno)
 
3493
    echo "$as_me:$LINENO: result: none needed" >&5
 
3494
echo "${ECHO_T}none needed" >&6 ;;
 
3495
  *)
 
3496
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3497
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3498
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3499
esac
 
3500
 
 
3501
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3502
# in C++ we need to declare it.  In case someone uses the same compiler
 
3503
# for both compiling C and C++ we need to have the C++ compiler decide
 
3504
# the declaration of exit, since it's the most demanding environment.
 
3505
cat >conftest.$ac_ext <<_ACEOF
 
3506
#ifndef __cplusplus
 
3507
  choke me
 
3508
#endif
 
3509
_ACEOF
 
3510
rm -f conftest.$ac_objext
 
3511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3512
  (eval $ac_compile) 2>conftest.er1
 
3513
  ac_status=$?
 
3514
  grep -v '^ *+' conftest.er1 >conftest.err
 
3515
  rm -f conftest.er1
 
3516
  cat conftest.err >&5
 
3517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3518
  (exit $ac_status); } &&
 
3519
         { ac_try='test -z "$ac_c_werror_flag"
 
3520
                         || test ! -s conftest.err'
 
3521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3522
  (eval $ac_try) 2>&5
 
3523
  ac_status=$?
 
3524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3525
  (exit $ac_status); }; } &&
 
3526
         { ac_try='test -s conftest.$ac_objext'
 
3527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3528
  (eval $ac_try) 2>&5
 
3529
  ac_status=$?
 
3530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3531
  (exit $ac_status); }; }; then
 
3532
  for ac_declaration in \
 
3533
   '' \
 
3534
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3535
   'extern "C" void std::exit (int); using std::exit;' \
 
3536
   'extern "C" void exit (int) throw ();' \
 
3537
   'extern "C" void exit (int);' \
 
3538
   'void exit (int);'
 
3539
do
 
3540
  cat >conftest.$ac_ext <<_ACEOF
 
3541
/* confdefs.h.  */
 
3542
_ACEOF
 
3543
cat confdefs.h >>conftest.$ac_ext
 
3544
cat >>conftest.$ac_ext <<_ACEOF
 
3545
/* end confdefs.h.  */
 
3546
$ac_declaration
 
3547
#include <stdlib.h>
 
3548
int
 
3549
main ()
 
3550
{
 
3551
exit (42);
 
3552
  ;
 
3553
  return 0;
 
3554
}
 
3555
_ACEOF
 
3556
rm -f conftest.$ac_objext
 
3557
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3558
  (eval $ac_compile) 2>conftest.er1
 
3559
  ac_status=$?
 
3560
  grep -v '^ *+' conftest.er1 >conftest.err
 
3561
  rm -f conftest.er1
 
3562
  cat conftest.err >&5
 
3563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3564
  (exit $ac_status); } &&
 
3565
         { ac_try='test -z "$ac_c_werror_flag"
 
3566
                         || test ! -s conftest.err'
 
3567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3568
  (eval $ac_try) 2>&5
 
3569
  ac_status=$?
 
3570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3571
  (exit $ac_status); }; } &&
 
3572
         { ac_try='test -s conftest.$ac_objext'
 
3573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3574
  (eval $ac_try) 2>&5
 
3575
  ac_status=$?
 
3576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3577
  (exit $ac_status); }; }; then
 
3578
  :
 
3579
else
 
3580
  echo "$as_me: failed program was:" >&5
 
3581
sed 's/^/| /' conftest.$ac_ext >&5
 
3582
 
 
3583
continue
 
3584
fi
 
3585
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3586
  cat >conftest.$ac_ext <<_ACEOF
 
3587
/* confdefs.h.  */
 
3588
_ACEOF
 
3589
cat confdefs.h >>conftest.$ac_ext
 
3590
cat >>conftest.$ac_ext <<_ACEOF
 
3591
/* end confdefs.h.  */
 
3592
$ac_declaration
 
3593
int
 
3594
main ()
 
3595
{
 
3596
exit (42);
 
3597
  ;
 
3598
  return 0;
 
3599
}
 
3600
_ACEOF
 
3601
rm -f conftest.$ac_objext
 
3602
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3603
  (eval $ac_compile) 2>conftest.er1
 
3604
  ac_status=$?
 
3605
  grep -v '^ *+' conftest.er1 >conftest.err
 
3606
  rm -f conftest.er1
 
3607
  cat conftest.err >&5
 
3608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3609
  (exit $ac_status); } &&
 
3610
         { ac_try='test -z "$ac_c_werror_flag"
 
3611
                         || test ! -s conftest.err'
 
3612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3613
  (eval $ac_try) 2>&5
 
3614
  ac_status=$?
 
3615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3616
  (exit $ac_status); }; } &&
 
3617
         { ac_try='test -s conftest.$ac_objext'
 
3618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3619
  (eval $ac_try) 2>&5
 
3620
  ac_status=$?
 
3621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3622
  (exit $ac_status); }; }; then
 
3623
  break
 
3624
else
 
3625
  echo "$as_me: failed program was:" >&5
 
3626
sed 's/^/| /' conftest.$ac_ext >&5
 
3627
 
 
3628
fi
 
3629
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3630
done
 
3631
rm -f conftest*
 
3632
if test -n "$ac_declaration"; then
 
3633
  echo '#ifdef __cplusplus' >>confdefs.h
 
3634
  echo $ac_declaration      >>confdefs.h
 
3635
  echo '#endif'             >>confdefs.h
 
3636
fi
 
3637
 
 
3638
else
 
3639
  echo "$as_me: failed program was:" >&5
 
3640
sed 's/^/| /' conftest.$ac_ext >&5
 
3641
 
 
3642
fi
 
3643
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3644
ac_ext=c
 
3645
ac_cpp='$CPP $CPPFLAGS'
 
3646
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3647
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3648
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3649
 
 
3650
depcc="$CC"   am_compiler_list=
 
3651
 
 
3652
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3653
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3654
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3656
else
 
3657
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3658
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3659
  # making bogus files that we don't know about and never remove.  For
 
3660
  # instance it was reported that on HP-UX the gcc test will end up
 
3661
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3662
  # in D'.
 
3663
  mkdir conftest.dir
 
3664
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3665
  # using a relative directory.
 
3666
  cp "$am_depcomp" conftest.dir
 
3667
  cd conftest.dir
 
3668
  # We will build objects and dependencies in a subdirectory because
 
3669
  # it helps to detect inapplicable dependency modes.  For instance
 
3670
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3671
  # side effect of compilation, but ICC will put the dependencies in
 
3672
  # the current directory while Tru64 will put them in the object
 
3673
  # directory.
 
3674
  mkdir sub
 
3675
 
 
3676
  am_cv_CC_dependencies_compiler_type=none
 
3677
  if test "$am_compiler_list" = ""; then
 
3678
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3679
  fi
 
3680
  for depmode in $am_compiler_list; do
 
3681
    # Setup a source with many dependencies, because some compilers
 
3682
    # like to wrap large dependency lists on column 80 (with \), and
 
3683
    # we should not choose a depcomp mode which is confused by this.
 
3684
    #
 
3685
    # We need to recreate these files for each test, as the compiler may
 
3686
    # overwrite some of them when testing with obscure command lines.
 
3687
    # This happens at least with the AIX C compiler.
 
3688
    : > sub/conftest.c
 
3689
    for i in 1 2 3 4 5 6; do
 
3690
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3691
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3692
      # Solaris 8's {/usr,}/bin/sh.
 
3693
      touch sub/conftst$i.h
 
3694
    done
 
3695
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3696
 
 
3697
    case $depmode in
 
3698
    nosideeffect)
 
3699
      # after this tag, mechanisms are not by side-effect, so they'll
 
3700
      # only be used when explicitly requested
 
3701
      if test "x$enable_dependency_tracking" = xyes; then
 
3702
        continue
 
3703
      else
 
3704
        break
 
3705
      fi
 
3706
      ;;
 
3707
    none) break ;;
 
3708
    esac
 
3709
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3710
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3711
    # handle `-M -o', and we need to detect this.
 
3712
    if depmode=$depmode \
 
3713
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3714
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3715
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3716
         >/dev/null 2>conftest.err &&
 
3717
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3718
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3719
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3720
      # icc doesn't choke on unknown options, it will just issue warnings
 
3721
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3722
      # that says an option was ignored or not supported.
 
3723
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3724
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3725
      # The diagnosis changed in icc 8.0:
 
3726
      #   icc: Command line remark: option '-MP' not supported
 
3727
      if (grep 'ignoring option' conftest.err ||
 
3728
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3729
        am_cv_CC_dependencies_compiler_type=$depmode
 
3730
        break
 
3731
      fi
 
3732
    fi
 
3733
  done
 
3734
 
 
3735
  cd ..
 
3736
  rm -rf conftest.dir
 
3737
else
 
3738
  am_cv_CC_dependencies_compiler_type=none
 
3739
fi
 
3740
 
 
3741
fi
 
3742
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3743
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3744
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3745
 
 
3746
 
 
3747
 
 
3748
if
 
3749
  test "x$enable_dependency_tracking" != xno \
 
3750
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3751
  am__fastdepCC_TRUE=
 
3752
  am__fastdepCC_FALSE='#'
 
3753
else
 
3754
  am__fastdepCC_TRUE='#'
 
3755
  am__fastdepCC_FALSE=
 
3756
fi
 
3757
 
 
3758
 
 
3759
 
 
3760
 
 
3761
echo "$as_me:$LINENO: checking for xmlNewParserCtxt in -lxml2" >&5
 
3762
echo $ECHO_N "checking for xmlNewParserCtxt in -lxml2... $ECHO_C" >&6
 
3763
if test "${ac_cv_lib_xml2_xmlNewParserCtxt+set}" = set; then
 
3764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3765
else
 
3766
  ac_check_lib_save_LIBS=$LIBS
 
3767
LIBS="-lxml2  $LIBS"
 
3768
cat >conftest.$ac_ext <<_ACEOF
 
3769
/* confdefs.h.  */
 
3770
_ACEOF
 
3771
cat confdefs.h >>conftest.$ac_ext
 
3772
cat >>conftest.$ac_ext <<_ACEOF
 
3773
/* end confdefs.h.  */
 
3774
 
 
3775
/* Override any gcc2 internal prototype to avoid an error.  */
 
3776
#ifdef __cplusplus
 
3777
extern "C"
 
3778
#endif
 
3779
/* We use char because int might match the return type of a gcc2
 
3780
   builtin and then its argument prototype would still apply.  */
 
3781
char xmlNewParserCtxt ();
 
3782
int
 
3783
main ()
 
3784
{
 
3785
xmlNewParserCtxt ();
 
3786
  ;
 
3787
  return 0;
 
3788
}
 
3789
_ACEOF
 
3790
rm -f conftest.$ac_objext conftest$ac_exeext
 
3791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3792
  (eval $ac_link) 2>conftest.er1
 
3793
  ac_status=$?
 
3794
  grep -v '^ *+' conftest.er1 >conftest.err
 
3795
  rm -f conftest.er1
 
3796
  cat conftest.err >&5
 
3797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3798
  (exit $ac_status); } &&
 
3799
         { ac_try='test -z "$ac_c_werror_flag"
 
3800
                         || test ! -s conftest.err'
 
3801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3802
  (eval $ac_try) 2>&5
 
3803
  ac_status=$?
 
3804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3805
  (exit $ac_status); }; } &&
 
3806
         { ac_try='test -s conftest$ac_exeext'
 
3807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3808
  (eval $ac_try) 2>&5
 
3809
  ac_status=$?
 
3810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3811
  (exit $ac_status); }; }; then
 
3812
  ac_cv_lib_xml2_xmlNewParserCtxt=yes
 
3813
else
 
3814
  echo "$as_me: failed program was:" >&5
 
3815
sed 's/^/| /' conftest.$ac_ext >&5
 
3816
 
 
3817
ac_cv_lib_xml2_xmlNewParserCtxt=no
 
3818
fi
 
3819
rm -f conftest.err conftest.$ac_objext \
 
3820
      conftest$ac_exeext conftest.$ac_ext
 
3821
LIBS=$ac_check_lib_save_LIBS
 
3822
fi
 
3823
echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewParserCtxt" >&5
 
3824
echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewParserCtxt" >&6
 
3825
if test $ac_cv_lib_xml2_xmlNewParserCtxt = yes; then
 
3826
  cat >>confdefs.h <<_ACEOF
 
3827
#define HAVE_LIBXML2 1
 
3828
_ACEOF
 
3829
 
 
3830
  LIBS="-lxml2 $LIBS"
 
3831
 
 
3832
else
 
3833
 
 
3834
        "You must have the libxml2 development files installed"
 
3835
        exit -1
 
3836
 
 
3837
fi
 
3838
 
 
3839
 
 
3840
QT_CFLAGS="$QT_CFLAGS $libxml_includes -DDATADIR='\"$datadir\"'"
 
3841
 
 
3842
 
 
3843
 
 
3844
 
 
3845
ac_ext=c
 
3846
ac_cpp='$CPP $CPPFLAGS'
 
3847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3850
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3851
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3852
# On Suns, sometimes $CPP names a directory.
 
3853
if test -n "$CPP" && test -d "$CPP"; then
 
3854
  CPP=
 
3855
fi
 
3856
if test -z "$CPP"; then
 
3857
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3859
else
 
3860
      # Double quotes because CPP needs to be expanded
 
3861
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5910
3862
    do
5911
3863
      ac_preproc_ok=false
5912
 
for ac_cxx_preproc_warn_flag in '' yes
 
3864
for ac_c_preproc_warn_flag in '' yes
5913
3865
do
5914
3866
  # Use a header file that comes with gcc, so configuring glibc
5915
3867
  # with a fresh cross-compiler works.
5918
3870
  # On the NeXT, cc -E runs the code through the compiler's parser,
5919
3871
  # not just through cpp. "Syntax error" is here to catch this case.
5920
3872
  cat >conftest.$ac_ext <<_ACEOF
5921
 
#line $LINENO "configure"
5922
3873
/* confdefs.h.  */
5923
3874
_ACEOF
5924
3875
cat confdefs.h >>conftest.$ac_ext
5929
3880
#else
5930
3881
# include <assert.h>
5931
3882
#endif
5932
 
                     Syntax error
 
3883
                     Syntax error
5933
3884
_ACEOF
5934
3885
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5935
3886
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5940
3891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941
3892
  (exit $ac_status); } >/dev/null; then
5942
3893
  if test -s conftest.err; then
5943
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
3894
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3895
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5944
3896
  else
5945
3897
    ac_cpp_err=
5946
3898
  fi
5961
3913
  # OK, works on sane cases.  Now check whether non-existent headers
5962
3914
  # can be detected and how.
5963
3915
  cat >conftest.$ac_ext <<_ACEOF
5964
 
#line $LINENO "configure"
5965
3916
/* confdefs.h.  */
5966
3917
_ACEOF
5967
3918
cat confdefs.h >>conftest.$ac_ext
5978
3929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979
3930
  (exit $ac_status); } >/dev/null; then
5980
3931
  if test -s conftest.err; then
5981
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
3932
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3933
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5982
3934
  else
5983
3935
    ac_cpp_err=
5984
3936
  fi
6006
3958
fi
6007
3959
 
6008
3960
    done
6009
 
    ac_cv_prog_CXXCPP=$CXXCPP
 
3961
    ac_cv_prog_CPP=$CPP
6010
3962
 
6011
3963
fi
6012
 
  CXXCPP=$ac_cv_prog_CXXCPP
 
3964
  CPP=$ac_cv_prog_CPP
6013
3965
else
6014
 
  ac_cv_prog_CXXCPP=$CXXCPP
 
3966
  ac_cv_prog_CPP=$CPP
6015
3967
fi
6016
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6017
 
echo "${ECHO_T}$CXXCPP" >&6
 
3968
echo "$as_me:$LINENO: result: $CPP" >&5
 
3969
echo "${ECHO_T}$CPP" >&6
6018
3970
ac_preproc_ok=false
6019
 
for ac_cxx_preproc_warn_flag in '' yes
 
3971
for ac_c_preproc_warn_flag in '' yes
6020
3972
do
6021
3973
  # Use a header file that comes with gcc, so configuring glibc
6022
3974
  # with a fresh cross-compiler works.
6025
3977
  # On the NeXT, cc -E runs the code through the compiler's parser,
6026
3978
  # not just through cpp. "Syntax error" is here to catch this case.
6027
3979
  cat >conftest.$ac_ext <<_ACEOF
6028
 
#line $LINENO "configure"
6029
3980
/* confdefs.h.  */
6030
3981
_ACEOF
6031
3982
cat confdefs.h >>conftest.$ac_ext
6036
3987
#else
6037
3988
# include <assert.h>
6038
3989
#endif
6039
 
                     Syntax error
 
3990
                     Syntax error
6040
3991
_ACEOF
6041
3992
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6042
3993
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6047
3998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048
3999
  (exit $ac_status); } >/dev/null; then
6049
4000
  if test -s conftest.err; then
6050
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4001
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4002
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6051
4003
  else
6052
4004
    ac_cpp_err=
6053
4005
  fi
6068
4020
  # OK, works on sane cases.  Now check whether non-existent headers
6069
4021
  # can be detected and how.
6070
4022
  cat >conftest.$ac_ext <<_ACEOF
6071
 
#line $LINENO "configure"
6072
4023
/* confdefs.h.  */
6073
4024
_ACEOF
6074
4025
cat confdefs.h >>conftest.$ac_ext
6085
4036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086
4037
  (exit $ac_status); } >/dev/null; then
6087
4038
  if test -s conftest.err; then
6088
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4039
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4040
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6089
4041
  else
6090
4042
    ac_cpp_err=
6091
4043
  fi
6111
4063
if $ac_preproc_ok; then
6112
4064
  :
6113
4065
else
6114
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4066
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6115
4067
See \`config.log' for more details." >&5
6116
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4068
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6117
4069
See \`config.log' for more details." >&2;}
6118
4070
   { (exit 1); exit 1; }; }
6119
4071
fi
6125
4077
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6126
4078
 
6127
4079
 
6128
 
  if test "$GCC" = yes; then
6129
 
     NOOPT_CXXFLAGS=-O0
6130
 
     NOOPT_CFLAGS=-O0
6131
 
  fi
6132
 
 
6133
 
 
6134
 
 
6135
 
 
6136
 
 
6137
 
  # Check whether --enable-final or --disable-final was given.
6138
 
if test "${enable_final+set}" = set; then
6139
 
  enableval="$enable_final"
6140
 
  kde_use_final=$enableval
6141
 
else
6142
 
  kde_use_final=no
6143
 
fi;
6144
 
 
6145
 
 
6146
 
  REPO=""
6147
 
  NOREPO=""
6148
 
 
6149
 
 
6150
 
echo "$as_me:$LINENO: checking whether $CXX supports -frepo" >&5
6151
 
echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6
6152
 
kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'`
6153
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6154
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6155
 
else
6156
 
 
6157
 
 
6158
 
 
6159
 
   ac_ext=cc
6160
 
ac_cpp='$CXXCPP $CPPFLAGS'
6161
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6164
 
 
6165
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6166
 
 
6167
 
 
6168
 
  save_CXXFLAGS="$CXXFLAGS"
6169
 
  CXXFLAGS="$CXXFLAGS -frepo"
6170
 
  cat >conftest.$ac_ext <<_ACEOF
6171
 
#line $LINENO "configure"
6172
 
/* confdefs.h.  */
6173
 
_ACEOF
6174
 
cat confdefs.h >>conftest.$ac_ext
6175
 
cat >>conftest.$ac_ext <<_ACEOF
6176
 
/* end confdefs.h.  */
6177
 
 
6178
 
int
6179
 
main ()
6180
 
{
6181
 
 return 0;
6182
 
  ;
6183
 
  return 0;
6184
 
}
6185
 
_ACEOF
6186
 
rm -f conftest.$ac_objext conftest$ac_exeext
6187
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188
 
  (eval $ac_link) 2>&5
6189
 
  ac_status=$?
6190
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191
 
  (exit $ac_status); } &&
6192
 
         { ac_try='test -s conftest$ac_exeext'
6193
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194
 
  (eval $ac_try) 2>&5
6195
 
  ac_status=$?
6196
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197
 
  (exit $ac_status); }; }; then
6198
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6199
 
else
6200
 
  echo "$as_me: failed program was:" >&5
6201
 
sed 's/^/| /' conftest.$ac_ext >&5
6202
 
 
6203
 
fi
6204
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6205
 
  CXXFLAGS="$save_CXXFLAGS"
6206
 
  ac_ext=c
6207
 
ac_cpp='$CPP $CPPFLAGS'
6208
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211
 
 
6212
 
 
6213
 
fi
6214
 
 
6215
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6216
 
 echo "$as_me:$LINENO: result: yes" >&5
6217
 
echo "${ECHO_T}yes" >&6
6218
 
 :
6219
 
 
6220
 
     REPO="-frepo"
6221
 
     NOREPO="-fno-repo"
6222
 
 
6223
 
else
6224
 
 echo "$as_me:$LINENO: result: no" >&5
6225
 
echo "${ECHO_T}no" >&6
6226
 
 :
6227
 
 
6228
 
fi
6229
 
 
6230
 
 
6231
 
  if test -z "$REPO"; then
6232
 
 
6233
 
echo "$as_me:$LINENO: checking whether $CXX supports -instances=explicit" >&5
6234
 
echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6
6235
 
kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'`
6236
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6238
 
else
6239
 
 
6240
 
 
6241
 
 
6242
 
   ac_ext=cc
6243
 
ac_cpp='$CXXCPP $CPPFLAGS'
6244
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6245
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6246
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6247
 
 
6248
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6249
 
 
6250
 
 
6251
 
  save_CXXFLAGS="$CXXFLAGS"
6252
 
  CXXFLAGS="$CXXFLAGS -instances=explicit"
6253
 
  cat >conftest.$ac_ext <<_ACEOF
6254
 
#line $LINENO "configure"
6255
 
/* confdefs.h.  */
6256
 
_ACEOF
6257
 
cat confdefs.h >>conftest.$ac_ext
6258
 
cat >>conftest.$ac_ext <<_ACEOF
6259
 
/* end confdefs.h.  */
6260
 
 
6261
 
int
6262
 
main ()
6263
 
{
6264
 
 return 0;
6265
 
  ;
6266
 
  return 0;
6267
 
}
6268
 
_ACEOF
6269
 
rm -f conftest.$ac_objext conftest$ac_exeext
6270
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271
 
  (eval $ac_link) 2>&5
6272
 
  ac_status=$?
6273
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274
 
  (exit $ac_status); } &&
6275
 
         { ac_try='test -s conftest$ac_exeext'
6276
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277
 
  (eval $ac_try) 2>&5
6278
 
  ac_status=$?
6279
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280
 
  (exit $ac_status); }; }; then
6281
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6282
 
else
6283
 
  echo "$as_me: failed program was:" >&5
6284
 
sed 's/^/| /' conftest.$ac_ext >&5
6285
 
 
6286
 
fi
6287
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6288
 
  CXXFLAGS="$save_CXXFLAGS"
6289
 
  ac_ext=c
6290
 
ac_cpp='$CPP $CPPFLAGS'
6291
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6294
 
 
6295
 
 
6296
 
fi
6297
 
 
6298
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6299
 
 echo "$as_me:$LINENO: result: yes" >&5
6300
 
echo "${ECHO_T}yes" >&6
6301
 
 :
6302
 
 
6303
 
     REPO="-instances=explicit"
6304
 
     NOREPO="-instances=extern"
6305
 
 
6306
 
else
6307
 
 echo "$as_me:$LINENO: result: no" >&5
6308
 
echo "${ECHO_T}no" >&6
6309
 
 :
6310
 
 
6311
 
fi
6312
 
 
6313
 
  fi
6314
 
 
6315
 
  if test -n "$REPO"; then
6316
 
 
6317
 
cat >>confdefs.h <<_ACEOF
6318
 
#define HAVE_TEMPLATE_REPOSITORY 1
6319
 
_ACEOF
6320
 
 
6321
 
 
6322
 
  fi
6323
 
 
6324
 
 
6325
 
 
6326
 
 
6327
 
  if test "x$kde_use_final" = "xyes"; then
6328
 
      KDE_USE_FINAL_TRUE=""
6329
 
      KDE_USE_FINAL_FALSE="#"
6330
 
   else
6331
 
      KDE_USE_FINAL_TRUE="#"
6332
 
      KDE_USE_FINAL_FALSE=""
6333
 
  fi
6334
 
 
6335
 
 
6336
 
 
6337
 
  # Check whether --enable-closure or --disable-closure was given.
6338
 
if test "${enable_closure+set}" = set; then
6339
 
  enableval="$enable_closure"
6340
 
  kde_use_closure=$enableval
6341
 
else
6342
 
  kde_use_closure=yes
6343
 
fi;
6344
 
 
6345
 
  if test "x$kde_use_closure" = "xyes"; then
6346
 
       KDE_USE_CLOSURE_TRUE=""
6347
 
       KDE_USE_CLOSURE_FALSE="#"
6348
 
#       CXXFLAGS="$CXXFLAGS $REPO"
6349
 
  else
6350
 
       KDE_USE_CLOSURE_TRUE="#"
6351
 
       KDE_USE_CLOSURE_FALSE=""
6352
 
  fi
6353
 
 
6354
 
 
6355
 
 
6356
 
 
6357
 
 
6358
 
 
6359
 
 
6360
 
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS"
6361
 
# Check whether --enable-shared or --disable-shared was given.
6362
 
if test "${enable_shared+set}" = set; then
6363
 
  enableval="$enable_shared"
6364
 
  p=${PACKAGE-default}
6365
 
    case $enableval in
6366
 
    yes) enable_shared=yes ;;
6367
 
    no) enable_shared=no ;;
6368
 
    *)
6369
 
      enable_shared=no
6370
 
      # Look at the argument we got.  We use all the common list separators.
6371
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6372
 
      for pkg in $enableval; do
6373
 
        IFS="$lt_save_ifs"
6374
 
        if test "X$pkg" = "X$p"; then
6375
 
          enable_shared=yes
6376
 
        fi
6377
 
      done
6378
 
      IFS="$lt_save_ifs"
6379
 
      ;;
6380
 
    esac
6381
 
else
6382
 
  enable_shared=yes
6383
 
fi;
6384
 
 
6385
 
# Check whether --enable-static or --disable-static was given.
6386
 
if test "${enable_static+set}" = set; then
6387
 
  enableval="$enable_static"
6388
 
  p=${PACKAGE-default}
6389
 
    case $enableval in
6390
 
    yes) enable_static=yes ;;
6391
 
    no) enable_static=no ;;
6392
 
    *)
6393
 
     enable_static=no
6394
 
      # Look at the argument we got.  We use all the common list separators.
6395
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6396
 
      for pkg in $enableval; do
6397
 
        IFS="$lt_save_ifs"
6398
 
        if test "X$pkg" = "X$p"; then
6399
 
          enable_static=yes
6400
 
        fi
6401
 
      done
6402
 
      IFS="$lt_save_ifs"
6403
 
      ;;
6404
 
    esac
6405
 
else
6406
 
  enable_static=no
6407
 
fi;
6408
 
 
6409
 
 
6410
 
 
6411
 
# Check whether --enable-fast-install or --disable-fast-install was given.
6412
 
if test "${enable_fast_install+set}" = set; then
6413
 
  enableval="$enable_fast_install"
6414
 
  p=${PACKAGE-default}
6415
 
    case $enableval in
6416
 
    yes) enable_fast_install=yes ;;
6417
 
    no) enable_fast_install=no ;;
6418
 
    *)
6419
 
      enable_fast_install=no
6420
 
      # Look at the argument we got.  We use all the common list separators.
6421
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6422
 
      for pkg in $enableval; do
6423
 
        IFS="$lt_save_ifs"
6424
 
        if test "X$pkg" = "X$p"; then
6425
 
          enable_fast_install=yes
6426
 
        fi
6427
 
      done
6428
 
      IFS="$lt_save_ifs"
6429
 
      ;;
6430
 
    esac
6431
 
else
6432
 
  enable_fast_install=yes
6433
 
fi;
6434
 
 
6435
 
 
6436
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
6437
 
if test "${with_gnu_ld+set}" = set; then
6438
 
  withval="$with_gnu_ld"
6439
 
  test "$withval" = no || with_gnu_ld=yes
6440
 
else
6441
 
  with_gnu_ld=no
6442
 
fi;
6443
 
ac_prog=ld
6444
 
if test "$GCC" = yes; then
6445
 
  # Check if gcc -print-prog-name=ld gives a path.
6446
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6447
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6448
 
  case $host in
6449
 
  *-*-mingw*)
6450
 
    # gcc leaves a trailing carriage return which upsets mingw
6451
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6452
 
  *)
6453
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6454
 
  esac
6455
 
  case $ac_prog in
6456
 
    # Accept absolute paths.
6457
 
    [\\/]* | ?:[\\/]*)
6458
 
      re_direlt='/[^/][^/]*/\.\./'
6459
 
      # Canonicalize the path of ld
6460
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6461
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6462
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6463
 
      done
6464
 
      test -z "$LD" && LD="$ac_prog"
6465
 
      ;;
6466
 
  "")
6467
 
    # If it fails, then pretend we aren't using GCC.
6468
 
    ac_prog=ld
6469
 
    ;;
6470
 
  *)
6471
 
    # If it is relative, then search for the first ld in PATH.
6472
 
    with_gnu_ld=unknown
6473
 
    ;;
6474
 
  esac
6475
 
elif test "$with_gnu_ld" = yes; then
6476
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
6477
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6478
 
else
6479
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6480
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6481
 
fi
6482
 
if test "${lt_cv_path_LD+set}" = set; then
6483
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6484
 
else
6485
 
  if test -z "$LD"; then
6486
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6487
 
  for ac_dir in $PATH; do
6488
 
    IFS="$lt_save_ifs"
6489
 
    test -z "$ac_dir" && ac_dir=.
6490
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6491
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
6492
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
6493
 
      # but apparently some GNU ld's only accept -v.
6494
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
6495
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6496
 
        test "$with_gnu_ld" != no && break
6497
 
      else
6498
 
        test "$with_gnu_ld" != yes && break
6499
 
      fi
6500
 
    fi
6501
 
  done
6502
 
  IFS="$lt_save_ifs"
6503
 
else
6504
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6505
 
fi
6506
 
fi
6507
 
 
6508
 
LD="$lt_cv_path_LD"
6509
 
if test -n "$LD"; then
6510
 
  echo "$as_me:$LINENO: result: $LD" >&5
6511
 
echo "${ECHO_T}$LD" >&6
6512
 
else
6513
 
  echo "$as_me:$LINENO: result: no" >&5
6514
 
echo "${ECHO_T}no" >&6
6515
 
fi
6516
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6517
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6518
 
   { (exit 1); exit 1; }; }
6519
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6520
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6521
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
6522
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6523
 
else
6524
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6525
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6526
 
  lt_cv_prog_gnu_ld=yes
6527
 
else
6528
 
  lt_cv_prog_gnu_ld=no
6529
 
fi
6530
 
fi
6531
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6532
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6533
 
with_gnu_ld=$lt_cv_prog_gnu_ld
6534
 
 
6535
 
 
6536
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6537
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6538
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
6539
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6540
 
else
6541
 
  lt_cv_ld_reload_flag='-r'
6542
 
fi
6543
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6544
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6545
 
reload_flag=$lt_cv_ld_reload_flag
6546
 
case $reload_flag in
6547
 
"" | " "*) ;;
6548
 
*) reload_flag=" $reload_flag" ;;
6549
 
esac
6550
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6551
 
 
6552
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6553
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6554
 
if test "${lt_cv_path_NM+set}" = set; then
6555
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6556
 
else
6557
 
  if test -n "$NM"; then
6558
 
  # Let the user override the test.
6559
 
  lt_cv_path_NM="$NM"
6560
 
else
6561
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6562
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6563
 
    IFS="$lt_save_ifs"
6564
 
    test -z "$ac_dir" && ac_dir=.
6565
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6566
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6567
 
      # Check to see if the nm accepts a BSD-compat flag.
6568
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6569
 
      #   nm: unknown option "B" ignored
6570
 
      # Tru64's nm complains that /dev/null is an invalid object file
6571
 
      if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
6572
 
        lt_cv_path_NM="$tmp_nm -B"
6573
 
        break
6574
 
      elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
6575
 
        lt_cv_path_NM="$tmp_nm -p"
6576
 
        break
6577
 
      else
6578
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6579
 
        continue # so that we can try to find one that supports BSD flags
6580
 
      fi
6581
 
    fi
6582
 
  done
6583
 
  IFS="$lt_save_ifs"
6584
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6585
 
fi
6586
 
fi
6587
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6588
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
6589
 
NM="$lt_cv_path_NM"
6590
 
 
6591
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6592
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6593
 
if test "${lt_cv_path_SED+set}" = set; then
6594
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6595
 
else
6596
 
  # Loop through the user's path and test for sed and gsed.
6597
 
# Then use that list of sed's as ones to test for truncation.
6598
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599
 
for as_dir in $PATH
6600
 
do
6601
 
  IFS=$as_save_IFS
6602
 
  test -z "$as_dir" && as_dir=.
6603
 
  for ac_prog in sed gsed; do
6604
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6605
 
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6606
 
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
6607
 
      fi
6608
 
    done
6609
 
  done
6610
 
done
6611
 
 
6612
 
  # Create a temporary directory, and hook for its removal unless debugging.
6613
 
$debug ||
6614
 
{
6615
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6616
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
6617
 
}
6618
 
 
6619
 
# Create a (secure) tmp directory for tmp files.
6620
 
: ${TMPDIR=/tmp}
6621
 
{
6622
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
6623
 
  test -n "$tmp" && test -d "$tmp"
6624
 
}  ||
6625
 
{
6626
 
  tmp=$TMPDIR/sed$$-$RANDOM
6627
 
  (umask 077 && mkdir $tmp)
6628
 
} ||
6629
 
{
6630
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6631
 
   { (exit 1); exit 1; }
6632
 
}
6633
 
  _max=0
6634
 
  _count=0
6635
 
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6636
 
  # along with /bin/sed that truncates output.
6637
 
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
6638
 
    test ! -f ${_sed} && break
6639
 
    cat /dev/null > "$tmp/sed.in"
6640
 
    _count=0
6641
 
    echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
6642
 
    # Check for GNU sed and select it if it is found.
6643
 
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
6644
 
      lt_cv_path_SED=${_sed}
6645
 
      break;
6646
 
    fi
6647
 
    while true; do
6648
 
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
6649
 
      mv "$tmp/sed.tmp" "$tmp/sed.in"
6650
 
      cp "$tmp/sed.in" "$tmp/sed.nl"
6651
 
      echo >>"$tmp/sed.nl"
6652
 
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
6653
 
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
6654
 
      # 10000 chars as input seems more than enough
6655
 
      test $_count -gt 10 && break
6656
 
      _count=`expr $_count + 1`
6657
 
      if test $_count -gt $_max; then
6658
 
        _max=$_count
6659
 
        lt_cv_path_SED=$_sed
6660
 
      fi
6661
 
    done
6662
 
  done
6663
 
  rm -rf "$tmp"
6664
 
 
6665
 
fi
6666
 
 
6667
 
echo "$as_me:$LINENO: result: $SED" >&5
6668
 
echo "${ECHO_T}$SED" >&6
6669
 
 
6670
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6671
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6672
 
LN_S=$as_ln_s
6673
 
if test "$LN_S" = "ln -s"; then
6674
 
  echo "$as_me:$LINENO: result: yes" >&5
6675
 
echo "${ECHO_T}yes" >&6
6676
 
else
6677
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6678
 
echo "${ECHO_T}no, using $LN_S" >&6
6679
 
fi
6680
 
 
6681
 
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
6682
 
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
6683
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
6684
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6685
 
else
6686
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6687
 
lt_cv_file_magic_test_file=
6688
 
lt_cv_deplibs_check_method='unknown'
6689
 
# Need to set the preceding variable on all platforms that support
6690
 
# interlibrary dependencies.
6691
 
# 'none' -- dependencies not supported.
6692
 
# `unknown' -- same as none, but documents that we really don't know.
6693
 
# 'pass_all' -- all dependencies passed with no checks.
6694
 
# 'test_compile' -- check by making test program.
6695
 
# 'file_magic [[regex]]' -- check by looking for files in library path
6696
 
# which responds to the $file_magic_cmd with a given egrep regex.
6697
 
# If you have `file' or equivalent on your system and you're not sure
6698
 
# whether `pass_all' will *always* work, you probably want this one.
6699
 
 
6700
 
case $host_os in
6701
 
aix4* | aix5*)
6702
 
  lt_cv_deplibs_check_method=pass_all
6703
 
  ;;
6704
 
 
6705
 
beos*)
6706
 
  lt_cv_deplibs_check_method=pass_all
6707
 
  ;;
6708
 
 
6709
 
bsdi4*)
6710
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6711
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6712
 
  lt_cv_file_magic_test_file=/shlib/libc.so
6713
 
  ;;
6714
 
 
6715
 
cygwin* | mingw* | pw32*)
6716
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6717
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6718
 
  ;;
6719
 
 
6720
 
darwin* | rhapsody*)
6721
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
6722
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6723
 
  case "$host_os" in
6724
 
  rhapsody* | darwin1.[012])
6725
 
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
6726
 
    ;;
6727
 
  *) # Darwin 1.3 on
6728
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
6729
 
    ;;
6730
 
  esac
6731
 
  ;;
6732
 
 
6733
 
freebsd*)
6734
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6735
 
    case $host_cpu in
6736
 
    i*86 )
6737
 
      # Not sure whether the presence of OpenBSD here was a mistake.
6738
 
      # Let's accept both of them until this is cleared up.
6739
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
6740
 
      lt_cv_file_magic_cmd=/usr/bin/file
6741
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6742
 
      ;;
6743
 
    esac
6744
 
  else
6745
 
    lt_cv_deplibs_check_method=pass_all
6746
 
  fi
6747
 
  ;;
6748
 
 
6749
 
gnu*)
6750
 
  lt_cv_deplibs_check_method=pass_all
6751
 
  ;;
6752
 
 
6753
 
hpux10.20* | hpux11*)
6754
 
  lt_cv_file_magic_cmd=/usr/bin/file
6755
 
  if test "$host_cpu" = ia64; then
6756
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6757
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6758
 
  else
6759
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6760
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6761
 
  fi
6762
 
  ;;
6763
 
 
6764
 
irix5* | irix6* | nonstopux*)
6765
 
  case $host_os in
6766
 
  irix5* | nonstopux*)
6767
 
    # this will be overridden with pass_all, but let us keep it just in case
6768
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
6769
 
    ;;
6770
 
  *)
6771
 
    case $LD in
6772
 
    *-32|*"-32 ") libmagic=32-bit;;
6773
 
    *-n32|*"-n32 ") libmagic=N32;;
6774
 
    *-64|*"-64 ") libmagic=64-bit;;
6775
 
    *) libmagic=never-match;;
6776
 
    esac
6777
 
    # this will be overridden with pass_all, but let us keep it just in case
6778
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
6779
 
    ;;
6780
 
  esac
6781
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
6782
 
  lt_cv_deplibs_check_method=pass_all
6783
 
  ;;
6784
 
 
6785
 
# This must be Linux ELF.
6786
 
linux*)
6787
 
  case $host_cpu in
6788
 
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* )
6789
 
    lt_cv_deplibs_check_method=pass_all ;;
6790
 
  *)
6791
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
6792
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
6793
 
  esac
6794
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
6795
 
  ;;
6796
 
 
6797
 
netbsd*)
6798
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6799
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
6800
 
  else
6801
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
6802
 
  fi
6803
 
  ;;
6804
 
 
6805
 
newos6*)
6806
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6807
 
  lt_cv_file_magic_cmd=/usr/bin/file
6808
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6809
 
  ;;
6810
 
 
6811
 
nto-qnx)
6812
 
  lt_cv_deplibs_check_method=unknown
6813
 
  ;;
6814
 
 
6815
 
openbsd*)
6816
 
  lt_cv_file_magic_cmd=/usr/bin/file
6817
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6818
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6819
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6820
 
  else
6821
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6822
 
  fi
6823
 
  ;;
6824
 
 
6825
 
osf3* | osf4* | osf5*)
6826
 
  # this will be overridden with pass_all, but let us keep it just in case
6827
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
6828
 
  lt_cv_file_magic_test_file=/shlib/libc.so
6829
 
  lt_cv_deplibs_check_method=pass_all
6830
 
  ;;
6831
 
 
6832
 
sco3.2v5*)
6833
 
  lt_cv_deplibs_check_method=pass_all
6834
 
  ;;
6835
 
 
6836
 
solaris*)
6837
 
  lt_cv_deplibs_check_method=pass_all
6838
 
  lt_cv_file_magic_test_file=/lib/libc.so
6839
 
  ;;
6840
 
 
6841
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6842
 
  case $host_vendor in
6843
 
  motorola)
6844
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6845
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6846
 
    ;;
6847
 
  ncr)
6848
 
    lt_cv_deplibs_check_method=pass_all
6849
 
    ;;
6850
 
  sequent)
6851
 
    lt_cv_file_magic_cmd='/bin/file'
6852
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6853
 
    ;;
6854
 
  sni)
6855
 
    lt_cv_file_magic_cmd='/bin/file'
6856
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6857
 
    lt_cv_file_magic_test_file=/lib/libc.so
6858
 
    ;;
6859
 
  esac
6860
 
  ;;
6861
 
 
6862
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6863
 
  lt_cv_deplibs_check_method=pass_all
6864
 
  ;;
6865
 
esac
6866
 
 
6867
 
fi
6868
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6869
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6870
 
file_magic_cmd=$lt_cv_file_magic_cmd
6871
 
deplibs_check_method=$lt_cv_deplibs_check_method
6872
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6873
 
 
6874
 
 
6875
 
# If no C compiler was specified, use CC.
6876
 
LTCC=${LTCC-"$CC"}
6877
 
 
6878
 
# Allow CC to be a program name with arguments.
6879
 
set dummy $CC
6880
 
compiler="$2"
6881
 
 
6882
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6883
 
if test "${enable_libtool_lock+set}" = set; then
6884
 
  enableval="$enable_libtool_lock"
6885
 
 
6886
 
fi;
6887
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6888
 
 
6889
 
# Some flags need to be propagated to the compiler or linker for good
6890
 
# libtool support.
6891
 
case $host in
6892
 
ia64-*-hpux*)
6893
 
  # Find out which ABI we are using.
6894
 
  echo 'int i;' > conftest.$ac_ext
6895
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896
 
  (eval $ac_compile) 2>&5
6897
 
  ac_status=$?
6898
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899
 
  (exit $ac_status); }; then
6900
 
    case `/usr/bin/file conftest.$ac_objext` in
6901
 
    *ELF-32*)
6902
 
      HPUX_IA64_MODE="32"
6903
 
      ;;
6904
 
    *ELF-64*)
6905
 
      HPUX_IA64_MODE="64"
6906
 
      ;;
6907
 
    esac
6908
 
  fi
6909
 
  rm -rf conftest*
6910
 
  ;;
6911
 
*-*-irix6*)
6912
 
  # Find out which ABI we are using.
6913
 
  echo '#line 6913 "configure"' > conftest.$ac_ext
6914
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6915
 
  (eval $ac_compile) 2>&5
6916
 
  ac_status=$?
6917
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918
 
  (exit $ac_status); }; then
6919
 
    case `/usr/bin/file conftest.$ac_objext` in
6920
 
    *32-bit*)
6921
 
      LD="${LD-ld} -32"
6922
 
      ;;
6923
 
    *N32*)
6924
 
      LD="${LD-ld} -n32"
6925
 
      ;;
6926
 
    *64-bit*)
6927
 
      LD="${LD-ld} -64"
6928
 
      ;;
6929
 
    esac
6930
 
  fi
6931
 
  rm -rf conftest*
6932
 
  ;;
6933
 
 
6934
 
*-*-linux*)
6935
 
  # Test if the compiler is 64bit
6936
 
  echo 'int i;' > conftest.$ac_ext
6937
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938
 
  (eval $ac_compile) 2>&5
6939
 
  ac_status=$?
6940
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941
 
  (exit $ac_status); }; then
6942
 
    case `/usr/bin/file conftest.$ac_objext` in
6943
 
    *"ELF 32"*)
6944
 
      LINUX_64_MODE="32"
6945
 
      ;;
6946
 
    *"ELF 64"*)
6947
 
      LINUX_64_MODE="64"
6948
 
      ;;
6949
 
    esac
6950
 
  fi
6951
 
  rm -rf conftest*
6952
 
  ;;
6953
 
 
6954
 
*-*-sco3.2v5*)
6955
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6956
 
  SAVE_CFLAGS="$CFLAGS"
6957
 
  CFLAGS="$CFLAGS -belf"
6958
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6959
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6960
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
6961
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6962
 
else
6963
 
  ac_ext=c
6964
 
ac_cpp='$CPP $CPPFLAGS'
6965
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
 
 
6969
 
     cat >conftest.$ac_ext <<_ACEOF
6970
 
#line $LINENO "configure"
6971
 
/* confdefs.h.  */
6972
 
_ACEOF
6973
 
cat confdefs.h >>conftest.$ac_ext
6974
 
cat >>conftest.$ac_ext <<_ACEOF
6975
 
/* end confdefs.h.  */
6976
 
 
6977
 
int
6978
 
main ()
6979
 
{
6980
 
 
6981
 
  ;
6982
 
  return 0;
6983
 
}
6984
 
_ACEOF
6985
 
rm -f conftest.$ac_objext conftest$ac_exeext
6986
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987
 
  (eval $ac_link) 2>&5
6988
 
  ac_status=$?
6989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990
 
  (exit $ac_status); } &&
6991
 
         { ac_try='test -s conftest$ac_exeext'
6992
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993
 
  (eval $ac_try) 2>&5
6994
 
  ac_status=$?
6995
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996
 
  (exit $ac_status); }; }; then
6997
 
  lt_cv_cc_needs_belf=yes
6998
 
else
6999
 
  echo "$as_me: failed program was:" >&5
7000
 
sed 's/^/| /' conftest.$ac_ext >&5
7001
 
 
7002
 
lt_cv_cc_needs_belf=no
7003
 
fi
7004
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7005
 
     ac_ext=c
7006
 
ac_cpp='$CPP $CPPFLAGS'
7007
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010
 
 
7011
 
fi
7012
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7013
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7014
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7015
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7016
 
    CFLAGS="$SAVE_CFLAGS"
7017
 
  fi
7018
 
  ;;
7019
 
 
7020
 
esac
7021
 
 
7022
 
need_locks="$enable_libtool_lock"
7023
 
 
7024
 
 
7025
 
 
7026
4080
echo "$as_me:$LINENO: checking for egrep" >&5
7027
4081
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7028
4082
if test "${ac_cv_prog_egrep+set}" = set; then
7044
4098
  echo $ECHO_N "(cached) $ECHO_C" >&6
7045
4099
else
7046
4100
  cat >conftest.$ac_ext <<_ACEOF
7047
 
#line $LINENO "configure"
7048
4101
/* confdefs.h.  */
7049
4102
_ACEOF
7050
4103
cat confdefs.h >>conftest.$ac_ext
7065
4118
_ACEOF
7066
4119
rm -f conftest.$ac_objext
7067
4120
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068
 
  (eval $ac_compile) 2>&5
 
4121
  (eval $ac_compile) 2>conftest.er1
7069
4122
  ac_status=$?
 
4123
  grep -v '^ *+' conftest.er1 >conftest.err
 
4124
  rm -f conftest.er1
 
4125
  cat conftest.err >&5
7070
4126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071
4127
  (exit $ac_status); } &&
7072
 
         { ac_try='test -s conftest.$ac_objext'
 
4128
         { ac_try='test -z "$ac_c_werror_flag"
 
4129
                         || test ! -s conftest.err'
 
4130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4131
  (eval $ac_try) 2>&5
 
4132
  ac_status=$?
 
4133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4134
  (exit $ac_status); }; } &&
 
4135
         { ac_try='test -s conftest.$ac_objext'
7073
4136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074
4137
  (eval $ac_try) 2>&5
7075
4138
  ac_status=$?
7082
4145
 
7083
4146
ac_cv_header_stdc=no
7084
4147
fi
7085
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4148
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7086
4149
 
7087
4150
if test $ac_cv_header_stdc = yes; then
7088
4151
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7089
4152
  cat >conftest.$ac_ext <<_ACEOF
7090
 
#line $LINENO "configure"
7091
4153
/* confdefs.h.  */
7092
4154
_ACEOF
7093
4155
cat confdefs.h >>conftest.$ac_ext
7109
4171
if test $ac_cv_header_stdc = yes; then
7110
4172
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7111
4173
  cat >conftest.$ac_ext <<_ACEOF
7112
 
#line $LINENO "configure"
7113
4174
/* confdefs.h.  */
7114
4175
_ACEOF
7115
4176
cat confdefs.h >>conftest.$ac_ext
7134
4195
  :
7135
4196
else
7136
4197
  cat >conftest.$ac_ext <<_ACEOF
7137
 
#line $LINENO "configure"
7138
4198
/* confdefs.h.  */
7139
4199
_ACEOF
7140
4200
cat confdefs.h >>conftest.$ac_ext
7146
4206
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7147
4207
#else
7148
4208
# define ISLOWER(c) \
7149
 
                   (('a' <= (c) && (c) <= 'i') \
7150
 
                     || ('j' <= (c) && (c) <= 'r') \
7151
 
                     || ('s' <= (c) && (c) <= 'z'))
 
4209
                   (('a' <= (c) && (c) <= 'i') \
 
4210
                     || ('j' <= (c) && (c) <= 'r') \
 
4211
                     || ('s' <= (c) && (c) <= 'z'))
7152
4212
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7153
4213
#endif
7154
4214
 
7159
4219
  int i;
7160
4220
  for (i = 0; i < 256; i++)
7161
4221
    if (XOR (islower (i), ISLOWER (i))
7162
 
        || toupper (i) != TOUPPER (i))
 
4222
        || toupper (i) != TOUPPER (i))
7163
4223
      exit(2);
7164
4224
  exit (0);
7165
4225
}
7184
4244
( exit $ac_status )
7185
4245
ac_cv_header_stdc=no
7186
4246
fi
7187
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4247
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7188
4248
fi
7189
4249
fi
7190
4250
fi
7209
4269
 
7210
4270
 
7211
4271
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7212
 
                  inttypes.h stdint.h unistd.h
 
4272
                  inttypes.h stdint.h unistd.h
7213
4273
do
7214
4274
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7215
4275
echo "$as_me:$LINENO: checking for $ac_header" >&5
7218
4278
  echo $ECHO_N "(cached) $ECHO_C" >&6
7219
4279
else
7220
4280
  cat >conftest.$ac_ext <<_ACEOF
7221
 
#line $LINENO "configure"
7222
4281
/* confdefs.h.  */
7223
4282
_ACEOF
7224
4283
cat confdefs.h >>conftest.$ac_ext
7230
4289
_ACEOF
7231
4290
rm -f conftest.$ac_objext
7232
4291
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7233
 
  (eval $ac_compile) 2>&5
 
4292
  (eval $ac_compile) 2>conftest.er1
7234
4293
  ac_status=$?
 
4294
  grep -v '^ *+' conftest.er1 >conftest.err
 
4295
  rm -f conftest.er1
 
4296
  cat conftest.err >&5
7235
4297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236
4298
  (exit $ac_status); } &&
7237
 
         { ac_try='test -s conftest.$ac_objext'
 
4299
         { ac_try='test -z "$ac_c_werror_flag"
 
4300
                         || test ! -s conftest.err'
 
4301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4302
  (eval $ac_try) 2>&5
 
4303
  ac_status=$?
 
4304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4305
  (exit $ac_status); }; } &&
 
4306
         { ac_try='test -s conftest.$ac_objext'
7238
4307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239
4308
  (eval $ac_try) 2>&5
7240
4309
  ac_status=$?
7247
4316
 
7248
4317
eval "$as_ac_Header=no"
7249
4318
fi
7250
 
rm -f conftest.$ac_objext conftest.$ac_ext
7251
 
fi
7252
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7253
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7254
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7255
 
  cat >>confdefs.h <<_ACEOF
7256
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7257
 
_ACEOF
7258
 
 
7259
 
fi
7260
 
 
7261
 
done
7262
 
 
7263
 
 
7264
 
 
7265
 
for ac_header in dlfcn.h
7266
 
do
7267
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7268
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7269
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
7270
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7271
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7272
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7273
 
fi
7274
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7275
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7276
 
else
7277
 
  # Is the header compilable?
7278
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7279
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7280
 
cat >conftest.$ac_ext <<_ACEOF
7281
 
#line $LINENO "configure"
7282
 
/* confdefs.h.  */
7283
 
_ACEOF
7284
 
cat confdefs.h >>conftest.$ac_ext
7285
 
cat >>conftest.$ac_ext <<_ACEOF
7286
 
/* end confdefs.h.  */
7287
 
$ac_includes_default
7288
 
#include <$ac_header>
7289
 
_ACEOF
7290
 
rm -f conftest.$ac_objext
7291
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292
 
  (eval $ac_compile) 2>&5
7293
 
  ac_status=$?
7294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295
 
  (exit $ac_status); } &&
7296
 
         { ac_try='test -s conftest.$ac_objext'
7297
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298
 
  (eval $ac_try) 2>&5
7299
 
  ac_status=$?
7300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301
 
  (exit $ac_status); }; }; then
7302
 
  ac_header_compiler=yes
7303
 
else
7304
 
  echo "$as_me: failed program was:" >&5
7305
 
sed 's/^/| /' conftest.$ac_ext >&5
7306
 
 
7307
 
ac_header_compiler=no
7308
 
fi
7309
 
rm -f conftest.$ac_objext conftest.$ac_ext
7310
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7311
 
echo "${ECHO_T}$ac_header_compiler" >&6
7312
 
 
7313
 
# Is the header present?
7314
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7315
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7316
 
cat >conftest.$ac_ext <<_ACEOF
7317
 
#line $LINENO "configure"
7318
 
/* confdefs.h.  */
7319
 
_ACEOF
7320
 
cat confdefs.h >>conftest.$ac_ext
7321
 
cat >>conftest.$ac_ext <<_ACEOF
7322
 
/* end confdefs.h.  */
7323
 
#include <$ac_header>
7324
 
_ACEOF
7325
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7327
 
  ac_status=$?
7328
 
  grep -v '^ *+' conftest.er1 >conftest.err
7329
 
  rm -f conftest.er1
7330
 
  cat conftest.err >&5
7331
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332
 
  (exit $ac_status); } >/dev/null; then
7333
 
  if test -s conftest.err; then
7334
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7335
 
  else
7336
 
    ac_cpp_err=
7337
 
  fi
7338
 
else
7339
 
  ac_cpp_err=yes
7340
 
fi
7341
 
if test -z "$ac_cpp_err"; then
7342
 
  ac_header_preproc=yes
7343
 
else
7344
 
  echo "$as_me: failed program was:" >&5
7345
 
sed 's/^/| /' conftest.$ac_ext >&5
7346
 
 
7347
 
  ac_header_preproc=no
7348
 
fi
7349
 
rm -f conftest.err conftest.$ac_ext
7350
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7351
 
echo "${ECHO_T}$ac_header_preproc" >&6
7352
 
 
7353
 
# So?  What about this header?
7354
 
case $ac_header_compiler:$ac_header_preproc in
7355
 
  yes:no )
7356
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7357
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7358
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7359
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7360
 
    (
7361
 
      cat <<\_ASBOX
7362
 
## ------------------------------------ ##
7363
 
## Report this to bug-autoconf@gnu.org. ##
7364
 
## ------------------------------------ ##
7365
 
_ASBOX
7366
 
    ) |
7367
 
      sed "s/^/$as_me: WARNING:     /" >&2
7368
 
    ;;
7369
 
  no:yes )
7370
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7371
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7372
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7373
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7374
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7375
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7376
 
    (
7377
 
      cat <<\_ASBOX
7378
 
## ------------------------------------ ##
7379
 
## Report this to bug-autoconf@gnu.org. ##
7380
 
## ------------------------------------ ##
7381
 
_ASBOX
7382
 
    ) |
7383
 
      sed "s/^/$as_me: WARNING:     /" >&2
7384
 
    ;;
7385
 
esac
7386
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
7387
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7388
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7390
 
else
7391
 
  eval "$as_ac_Header=$ac_header_preproc"
7392
 
fi
7393
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7394
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7395
 
 
7396
 
fi
7397
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7398
 
  cat >>confdefs.h <<_ACEOF
7399
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7400
 
_ACEOF
7401
 
 
7402
 
fi
7403
 
 
7404
 
done
7405
 
 
7406
 
 
7407
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7408
 
 
7409
 
# find the maximum length of command line arguments
7410
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7411
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7412
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7413
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7414
 
else
7415
 
    i=0
7416
 
  testring="ABCD"
7417
 
 
7418
 
  case $host_os in
7419
 
  msdosdjgpp*)
7420
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
7421
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
7422
 
    # during glob expansion).  Even if it were fixed, the result of this
7423
 
    # check would be larger than it should be.
7424
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7425
 
    ;;
7426
 
 
7427
 
  gnu*)
7428
 
    # Under GNU Hurd, this test is not required because there is
7429
 
    # no limit to the length of command line arguments.
7430
 
    # Libtool will interpret -1 as no limit whatsoever
7431
 
    lt_cv_sys_max_cmd_len=-1;
7432
 
    ;;
7433
 
 
7434
 
  *)
7435
 
    # If test is not a shell built-in, we'll probably end up computing a
7436
 
    # maximum length that is only half of the actual maximum length, but
7437
 
    # we can't tell.
7438
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
7439
 
               = "XX$testring") >/dev/null 2>&1 &&
7440
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
7441
 
            lt_cv_sys_max_cmd_len=$new_result &&
7442
 
            test $i != 17 # 1/2 MB should be enough
7443
 
    do
7444
 
      i=`expr $i + 1`
7445
 
      testring=$testring$testring
7446
 
    done
7447
 
    testring=
7448
 
    # Add a significant safety factor because C++ compilers can tack on massive
7449
 
    # amounts of additional arguments before passing them to the linker.
7450
 
    # It appears as though 1/2 is a usable value.
7451
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7452
 
    ;;
7453
 
  esac
7454
 
 
7455
 
fi
7456
 
 
7457
 
if test -n $lt_cv_sys_max_cmd_len ; then
7458
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7459
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7460
 
else
7461
 
  echo "$as_me:$LINENO: result: none" >&5
7462
 
echo "${ECHO_T}none" >&6
7463
 
fi
7464
 
 
7465
 
 
7466
 
 
7467
 
 
7468
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
7469
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7470
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7471
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7472
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7473
 
else
7474
 
 
7475
 
# These are sane defaults that work on at least a few old systems.
7476
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7477
 
 
7478
 
# Character class describing NM global symbol codes.
7479
 
symcode='[BCDEGRST]'
7480
 
 
7481
 
# Regexp to match symbols that can be accessed directly from C.
7482
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7483
 
 
7484
 
# Transform the above into a raw symbol and a C symbol.
7485
 
symxfrm='\1 \2\3 \3'
7486
 
 
7487
 
# Transform an extracted symbol line into a proper C declaration
7488
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7489
 
 
7490
 
# Transform an extracted symbol line into symbol name and symbol address
7491
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7492
 
 
7493
 
# Define system-specific variables.
7494
 
case $host_os in
7495
 
aix*)
7496
 
  symcode='[BCDT]'
7497
 
  ;;
7498
 
cygwin* | mingw* | pw32*)
7499
 
  symcode='[ABCDGISTW]'
7500
 
  ;;
7501
 
hpux*) # Its linker distinguishes data from code symbols
7502
 
  if test "$host_cpu" = ia64; then
7503
 
    symcode='[ABCDEGRST]'
7504
 
  fi
7505
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7506
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7507
 
  ;;
7508
 
irix* | nonstopux*)
7509
 
  symcode='[BCDEGRST]'
7510
 
  ;;
7511
 
solaris* | sysv5*)
7512
 
  symcode='[BDT]'
7513
 
  ;;
7514
 
sysv4)
7515
 
  symcode='[DFNSTU]'
7516
 
  ;;
7517
 
esac
7518
 
 
7519
 
# Handle CRLF in mingw tool chain
7520
 
opt_cr=
7521
 
case $host_os in
7522
 
mingw*)
7523
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7524
 
  ;;
7525
 
esac
7526
 
 
7527
 
# If we're using GNU nm, then use its standard symbol codes.
7528
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
7529
 
  symcode='[ABCDGISTW]'
7530
 
fi
7531
 
 
7532
 
# Try without a prefix undercore, then with it.
7533
 
for ac_symprfx in "" "_"; do
7534
 
 
7535
 
  # Write the raw and C identifiers.
7536
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7537
 
 
7538
 
  # Check to see that the pipe works correctly.
7539
 
  pipe_works=no
7540
 
 
7541
 
  rm -f conftest*
7542
 
  cat > conftest.$ac_ext <<EOF
7543
 
#ifdef __cplusplus
7544
 
extern "C" {
7545
 
#endif
7546
 
char nm_test_var;
7547
 
void nm_test_func(){}
7548
 
#ifdef __cplusplus
7549
 
}
7550
 
#endif
7551
 
int main(){nm_test_var='a';nm_test_func();return(0);}
7552
 
EOF
7553
 
 
7554
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555
 
  (eval $ac_compile) 2>&5
7556
 
  ac_status=$?
7557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558
 
  (exit $ac_status); }; then
7559
 
    # Now try to grab the symbols.
7560
 
    nlist=conftest.nm
7561
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7562
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7563
 
  ac_status=$?
7564
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565
 
  (exit $ac_status); } && test -s "$nlist"; then
7566
 
      # Try sorting and uniquifying the output.
7567
 
      if sort "$nlist" | uniq > "$nlist"T; then
7568
 
        mv -f "$nlist"T "$nlist"
7569
 
      else
7570
 
        rm -f "$nlist"T
7571
 
      fi
7572
 
 
7573
 
      # Make sure that we snagged all the symbols we need.
7574
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
7575
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
7576
 
          cat <<EOF > conftest.$ac_ext
7577
 
#ifdef __cplusplus
7578
 
extern "C" {
7579
 
#endif
7580
 
 
7581
 
EOF
7582
 
          # Now generate the symbol file.
7583
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7584
 
 
7585
 
          cat <<EOF >> conftest.$ac_ext
7586
 
#if defined (__STDC__) && __STDC__
7587
 
# define lt_ptr_t void *
7588
 
#else
7589
 
# define lt_ptr_t char *
7590
 
# define const
7591
 
#endif
7592
 
 
7593
 
/* The mapping between symbol names and symbols. */
7594
 
const struct {
7595
 
  const char *name;
7596
 
  lt_ptr_t address;
7597
 
}
7598
 
lt_preloaded_symbols[] =
7599
 
{
7600
 
EOF
7601
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7602
 
          cat <<\EOF >> conftest.$ac_ext
7603
 
  {0, (lt_ptr_t) 0}
7604
 
};
7605
 
 
7606
 
#ifdef __cplusplus
7607
 
}
7608
 
#endif
7609
 
EOF
7610
 
          # Now try linking the two files.
7611
 
          mv conftest.$ac_objext conftstm.$ac_objext
7612
 
          lt_save_LIBS="$LIBS"
7613
 
          lt_save_CFLAGS="$CFLAGS"
7614
 
          LIBS="conftstm.$ac_objext"
7615
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7616
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617
 
  (eval $ac_link) 2>&5
7618
 
  ac_status=$?
7619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7621
 
            pipe_works=yes
7622
 
          fi
7623
 
          LIBS="$lt_save_LIBS"
7624
 
          CFLAGS="$lt_save_CFLAGS"
7625
 
        else
7626
 
          echo "cannot find nm_test_func in $nlist" >&5
7627
 
        fi
7628
 
      else
7629
 
        echo "cannot find nm_test_var in $nlist" >&5
7630
 
      fi
7631
 
    else
7632
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7633
 
    fi
7634
 
  else
7635
 
    echo "$progname: failed program was:" >&5
7636
 
    cat conftest.$ac_ext >&5
7637
 
  fi
7638
 
  rm -f conftest* conftst*
7639
 
 
7640
 
  # Do not use the global_symbol_pipe unless it works.
7641
 
  if test "$pipe_works" = yes; then
7642
 
    break
7643
 
  else
7644
 
    lt_cv_sys_global_symbol_pipe=
7645
 
  fi
7646
 
done
7647
 
 
7648
 
fi
7649
 
 
7650
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7651
 
  lt_cv_sys_global_symbol_to_cdecl=
7652
 
fi
7653
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7654
 
  echo "$as_me:$LINENO: result: failed" >&5
7655
 
echo "${ECHO_T}failed" >&6
7656
 
else
7657
 
  echo "$as_me:$LINENO: result: ok" >&5
7658
 
echo "${ECHO_T}ok" >&6
7659
 
fi
7660
 
 
7661
 
echo "$as_me:$LINENO: checking for objdir" >&5
7662
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7663
 
if test "${lt_cv_objdir+set}" = set; then
7664
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7665
 
else
7666
 
  rm -f .libs 2>/dev/null
7667
 
mkdir .libs 2>/dev/null
7668
 
if test -d .libs; then
7669
 
  lt_cv_objdir=.libs
7670
 
else
7671
 
  # MS-DOS does not allow filenames that begin with a dot.
7672
 
  lt_cv_objdir=_libs
7673
 
fi
7674
 
rmdir .libs 2>/dev/null
7675
 
fi
7676
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7677
 
echo "${ECHO_T}$lt_cv_objdir" >&6
7678
 
objdir=$lt_cv_objdir
7679
 
 
7680
 
 
7681
 
 
7682
 
 
7683
 
 
7684
 
case $host_os in
7685
 
aix3*)
7686
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
7687
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7688
 
  # vanish in a puff of smoke.
7689
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
7690
 
    COLLECT_NAMES=
7691
 
    export COLLECT_NAMES
7692
 
  fi
7693
 
  ;;
7694
 
esac
7695
 
 
7696
 
# Sed substitution that helps us do robust quoting.  It backslashifies
7697
 
# metacharacters that are still active within double-quoted strings.
7698
 
Xsed='sed -e s/^X//'
7699
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7700
 
 
7701
 
# Same as above, but do not quote variable references.
7702
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7703
 
 
7704
 
# Sed substitution to delay expansion of an escaped shell variable in a
7705
 
# double_quote_subst'ed string.
7706
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7707
 
 
7708
 
# Sed substitution to avoid accidental globbing in evaled expressions
7709
 
no_glob_subst='s/\*/\\\*/g'
7710
 
 
7711
 
# Constants:
7712
 
rm="rm -f"
7713
 
 
7714
 
# Global variables:
7715
 
default_ofile=libtool
7716
 
can_build_shared=yes
7717
 
 
7718
 
# All known linkers require a `.a' archive for static linking (except M$VC,
7719
 
# which needs '.lib').
7720
 
libext=a
7721
 
ltmain="$ac_aux_dir/ltmain.sh"
7722
 
ofile="$default_ofile"
7723
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
7724
 
 
7725
 
if test -n "$ac_tool_prefix"; then
7726
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7727
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7728
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7729
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7732
 
else
7733
 
  if test -n "$RANLIB"; then
7734
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7735
 
else
7736
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737
 
for as_dir in $PATH
7738
 
do
7739
 
  IFS=$as_save_IFS
7740
 
  test -z "$as_dir" && as_dir=.
7741
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7742
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7744
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745
 
    break 2
7746
 
  fi
7747
 
done
7748
 
done
7749
 
 
7750
 
fi
7751
 
fi
7752
 
RANLIB=$ac_cv_prog_RANLIB
7753
 
if test -n "$RANLIB"; then
7754
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
7755
 
echo "${ECHO_T}$RANLIB" >&6
7756
 
else
7757
 
  echo "$as_me:$LINENO: result: no" >&5
7758
 
echo "${ECHO_T}no" >&6
7759
 
fi
7760
 
 
7761
 
fi
7762
 
if test -z "$ac_cv_prog_RANLIB"; then
7763
 
  ac_ct_RANLIB=$RANLIB
7764
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7765
 
set dummy ranlib; ac_word=$2
7766
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7767
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7768
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7769
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7770
 
else
7771
 
  if test -n "$ac_ct_RANLIB"; then
7772
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7773
 
else
7774
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775
 
for as_dir in $PATH
7776
 
do
7777
 
  IFS=$as_save_IFS
7778
 
  test -z "$as_dir" && as_dir=.
7779
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7780
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7782
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783
 
    break 2
7784
 
  fi
7785
 
done
7786
 
done
7787
 
 
7788
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7789
 
fi
7790
 
fi
7791
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7792
 
if test -n "$ac_ct_RANLIB"; then
7793
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7794
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7795
 
else
7796
 
  echo "$as_me:$LINENO: result: no" >&5
7797
 
echo "${ECHO_T}no" >&6
7798
 
fi
7799
 
 
7800
 
  RANLIB=$ac_ct_RANLIB
7801
 
else
7802
 
  RANLIB="$ac_cv_prog_RANLIB"
7803
 
fi
7804
 
 
7805
 
if test -n "$ac_tool_prefix"; then
7806
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7807
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7808
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7809
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7810
 
if test "${ac_cv_prog_STRIP+set}" = set; then
7811
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7812
 
else
7813
 
  if test -n "$STRIP"; then
7814
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7815
 
else
7816
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817
 
for as_dir in $PATH
7818
 
do
7819
 
  IFS=$as_save_IFS
7820
 
  test -z "$as_dir" && as_dir=.
7821
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7822
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7824
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825
 
    break 2
7826
 
  fi
7827
 
done
7828
 
done
7829
 
 
7830
 
fi
7831
 
fi
7832
 
STRIP=$ac_cv_prog_STRIP
7833
 
if test -n "$STRIP"; then
7834
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
7835
 
echo "${ECHO_T}$STRIP" >&6
7836
 
else
7837
 
  echo "$as_me:$LINENO: result: no" >&5
7838
 
echo "${ECHO_T}no" >&6
7839
 
fi
7840
 
 
7841
 
fi
7842
 
if test -z "$ac_cv_prog_STRIP"; then
7843
 
  ac_ct_STRIP=$STRIP
7844
 
  # Extract the first word of "strip", so it can be a program name with args.
7845
 
set dummy strip; ac_word=$2
7846
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7847
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7848
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7849
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7850
 
else
7851
 
  if test -n "$ac_ct_STRIP"; then
7852
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7853
 
else
7854
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855
 
for as_dir in $PATH
7856
 
do
7857
 
  IFS=$as_save_IFS
7858
 
  test -z "$as_dir" && as_dir=.
7859
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7860
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861
 
    ac_cv_prog_ac_ct_STRIP="strip"
7862
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863
 
    break 2
7864
 
  fi
7865
 
done
7866
 
done
7867
 
 
7868
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7869
 
fi
7870
 
fi
7871
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7872
 
if test -n "$ac_ct_STRIP"; then
7873
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7874
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
7875
 
else
7876
 
  echo "$as_me:$LINENO: result: no" >&5
7877
 
echo "${ECHO_T}no" >&6
7878
 
fi
7879
 
 
7880
 
  STRIP=$ac_ct_STRIP
7881
 
else
7882
 
  STRIP="$ac_cv_prog_STRIP"
7883
 
fi
7884
 
 
7885
 
 
7886
 
old_CC="$CC"
7887
 
old_CFLAGS="$CFLAGS"
7888
 
 
7889
 
# Set sane defaults for various variables
7890
 
test -z "$AR" && AR=ar
7891
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
7892
 
test -z "$AS" && AS=as
7893
 
test -z "$CC" && CC=cc
7894
 
test -z "$LTCC" && LTCC=$CC
7895
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7896
 
test -z "$LD" && LD=ld
7897
 
test -z "$LN_S" && LN_S="ln -s"
7898
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7899
 
test -z "$NM" && NM=nm
7900
 
test -z "$SED" && SED=sed
7901
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7902
 
test -z "$RANLIB" && RANLIB=:
7903
 
test -z "$STRIP" && STRIP=:
7904
 
test -z "$ac_objext" && ac_objext=o
7905
 
 
7906
 
# Determine commands to create old-style static archives.
7907
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7908
 
old_postinstall_cmds='chmod 644 $oldlib'
7909
 
old_postuninstall_cmds=
7910
 
 
7911
 
if test -n "$RANLIB"; then
7912
 
  case $host_os in
7913
 
  openbsd*)
7914
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7915
 
    ;;
7916
 
  *)
7917
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7918
 
    ;;
7919
 
  esac
7920
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7921
 
fi
7922
 
 
7923
 
# Only perform the check for file, if the check method requires it
7924
 
case $deplibs_check_method in
7925
 
file_magic*)
7926
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7927
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7928
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7929
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7930
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7931
 
else
7932
 
  case $MAGIC_CMD in
7933
 
[\\/*] |  ?:[\\/]*)
7934
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7935
 
  ;;
7936
 
*)
7937
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7938
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7939
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7940
 
  for ac_dir in $ac_dummy; do
7941
 
    IFS="$lt_save_ifs"
7942
 
    test -z "$ac_dir" && ac_dir=.
7943
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7944
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7945
 
      if test -n "$file_magic_test_file"; then
7946
 
        case $deplibs_check_method in
7947
 
        "file_magic "*)
7948
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7949
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7951
 
            egrep "$file_magic_regex" > /dev/null; then
7952
 
            :
7953
 
          else
7954
 
            cat <<EOF 1>&2
7955
 
 
7956
 
*** Warning: the command libtool uses to detect shared libraries,
7957
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7958
 
*** The result is that libtool may fail to recognize shared libraries
7959
 
*** as such.  This will affect the creation of libtool libraries that
7960
 
*** depend on shared libraries, but programs linked with such libtool
7961
 
*** libraries will work regardless of this problem.  Nevertheless, you
7962
 
*** may want to report the problem to your system manager and/or to
7963
 
*** bug-libtool@gnu.org
7964
 
 
7965
 
EOF
7966
 
          fi ;;
7967
 
        esac
7968
 
      fi
7969
 
      break
7970
 
    fi
7971
 
  done
7972
 
  IFS="$lt_save_ifs"
7973
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7974
 
  ;;
7975
 
esac
7976
 
fi
7977
 
 
7978
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7979
 
if test -n "$MAGIC_CMD"; then
7980
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7981
 
echo "${ECHO_T}$MAGIC_CMD" >&6
7982
 
else
7983
 
  echo "$as_me:$LINENO: result: no" >&5
7984
 
echo "${ECHO_T}no" >&6
7985
 
fi
7986
 
 
7987
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7988
 
  if test -n "$ac_tool_prefix"; then
7989
 
    echo "$as_me:$LINENO: checking for file" >&5
7990
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
7991
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7992
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7993
 
else
7994
 
  case $MAGIC_CMD in
7995
 
[\\/*] |  ?:[\\/]*)
7996
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7997
 
  ;;
7998
 
*)
7999
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8000
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8001
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8002
 
  for ac_dir in $ac_dummy; do
8003
 
    IFS="$lt_save_ifs"
8004
 
    test -z "$ac_dir" && ac_dir=.
8005
 
    if test -f $ac_dir/file; then
8006
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8007
 
      if test -n "$file_magic_test_file"; then
8008
 
        case $deplibs_check_method in
8009
 
        "file_magic "*)
8010
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8011
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8013
 
            egrep "$file_magic_regex" > /dev/null; then
8014
 
            :
8015
 
          else
8016
 
            cat <<EOF 1>&2
8017
 
 
8018
 
*** Warning: the command libtool uses to detect shared libraries,
8019
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8020
 
*** The result is that libtool may fail to recognize shared libraries
8021
 
*** as such.  This will affect the creation of libtool libraries that
8022
 
*** depend on shared libraries, but programs linked with such libtool
8023
 
*** libraries will work regardless of this problem.  Nevertheless, you
8024
 
*** may want to report the problem to your system manager and/or to
8025
 
*** bug-libtool@gnu.org
8026
 
 
8027
 
EOF
8028
 
          fi ;;
8029
 
        esac
8030
 
      fi
8031
 
      break
8032
 
    fi
8033
 
  done
8034
 
  IFS="$lt_save_ifs"
8035
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8036
 
  ;;
8037
 
esac
8038
 
fi
8039
 
 
8040
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8041
 
if test -n "$MAGIC_CMD"; then
8042
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8043
 
echo "${ECHO_T}$MAGIC_CMD" >&6
8044
 
else
8045
 
  echo "$as_me:$LINENO: result: no" >&5
8046
 
echo "${ECHO_T}no" >&6
8047
 
fi
8048
 
 
8049
 
  else
8050
 
    MAGIC_CMD=:
8051
 
  fi
8052
 
fi
8053
 
 
8054
 
  fi
8055
 
  ;;
8056
 
esac
8057
 
 
8058
 
enable_dlopen=no
8059
 
enable_win32_dll=no
8060
 
 
8061
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8062
 
if test "${enable_libtool_lock+set}" = set; then
8063
 
  enableval="$enable_libtool_lock"
8064
 
 
8065
 
fi;
8066
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8067
 
 
8068
 
 
8069
 
# Check whether --with-pic or --without-pic was given.
8070
 
if test "${with_pic+set}" = set; then
8071
 
  withval="$with_pic"
8072
 
  pic_mode="$withval"
8073
 
else
8074
 
  pic_mode=default
8075
 
fi;
8076
 
test -z "$pic_mode" && pic_mode=default
8077
 
 
8078
 
# Use C for the default configuration in the libtool script
8079
 
tagname=
8080
 
lt_save_CC="$CC"
8081
 
ac_ext=c
8082
 
ac_cpp='$CPP $CPPFLAGS'
8083
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086
 
 
8087
 
 
8088
 
# Source file extension for C test sources.
8089
 
ac_ext=c
8090
 
 
8091
 
# Object file extension for compiled C test sources.
8092
 
objext=o
8093
 
objext=$objext
8094
 
 
8095
 
# Code to be used in simple compile tests
8096
 
lt_simple_compile_test_code="int some_variable = 0;"
8097
 
 
8098
 
# Code to be used in simple link tests
8099
 
lt_simple_link_test_code='main(){return(0);}'
8100
 
 
8101
 
 
8102
 
# If no C compiler was specified, use CC.
8103
 
LTCC=${LTCC-"$CC"}
8104
 
 
8105
 
# Allow CC to be a program name with arguments.
8106
 
set dummy $CC
8107
 
compiler="$2"
8108
 
 
8109
 
 
8110
 
#
8111
 
# Check for any special shared library compilation flags.
8112
 
#
8113
 
lt_prog_cc_shlib=
8114
 
if test "$GCC" = no; then
8115
 
  case $host_os in
8116
 
  sco3.2v5*)
8117
 
    lt_prog_cc_shlib='-belf'
8118
 
    ;;
8119
 
  esac
8120
 
fi
8121
 
if test -n "$lt_prog_cc_shlib"; then
8122
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8123
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8124
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8125
 
  else
8126
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8127
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8128
 
    lt_cv_prog_cc_can_build_shared=no
8129
 
  fi
8130
 
fi
8131
 
 
8132
 
 
8133
 
#
8134
 
# Check to make sure the static flag actually works.
8135
 
#
8136
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8137
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8138
 
if test "${lt_prog_compiler_static_works+set}" = set; then
8139
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8140
 
else
8141
 
  lt_prog_compiler_static_works=no
8142
 
   save_LDFLAGS="$LDFLAGS"
8143
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8144
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8145
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8146
 
     # The compiler can only warn and ignore the option if not recognized
8147
 
     # So say no if there are warnings
8148
 
     if test -s conftest.err; then
8149
 
       # Append any errors to the config.log.
8150
 
       cat conftest.err 1>&5
8151
 
     else
8152
 
       lt_prog_compiler_static_works=yes
8153
 
     fi
8154
 
   fi
8155
 
   $rm conftest*
8156
 
   LDFLAGS="$save_LDFLAGS"
8157
 
 
8158
 
fi
8159
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8160
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8161
 
 
8162
 
if test x"$lt_prog_compiler_static_works" = xyes; then
8163
 
    :
8164
 
else
8165
 
    lt_prog_compiler_static=
8166
 
fi
8167
 
 
8168
 
 
8169
 
 
8170
 
 
8171
 
lt_prog_compiler_no_builtin_flag=
8172
 
 
8173
 
if test "$GCC" = yes; then
8174
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8175
 
 
8176
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8177
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8178
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8179
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8180
 
else
8181
 
  lt_cv_prog_compiler_rtti_exceptions=no
8182
 
  ac_outfile=conftest.$ac_objext
8183
 
   save_CFLAGS="$CFLAGS"
8184
 
   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
8185
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8186
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
8187
 
     # The compiler can only warn and ignore the option if not recognized
8188
 
     # So say no if there are warnings
8189
 
     if test -s conftest.err; then
8190
 
       # Append any errors to the config.log.
8191
 
       cat conftest.err 1>&5
8192
 
     else
8193
 
       lt_cv_prog_compiler_rtti_exceptions=yes
8194
 
     fi
8195
 
   fi
8196
 
   $rm conftest*
8197
 
   CFLAGS="$save_CFLAGS"
8198
 
 
8199
 
fi
8200
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8201
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8202
 
 
8203
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8204
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8205
 
else
8206
 
    :
8207
 
fi
8208
 
 
8209
 
fi
8210
 
 
8211
 
lt_prog_compiler_wl=
8212
 
lt_prog_compiler_pic=
8213
 
lt_prog_compiler_static=
8214
 
 
8215
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8216
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8217
 
 
8218
 
  if test "$GCC" = yes; then
8219
 
    lt_prog_compiler_wl='-Wl,'
8220
 
    lt_prog_compiler_static='-static'
8221
 
 
8222
 
    case $host_os in
8223
 
      aix*)
8224
 
      # All AIX code is PIC.
8225
 
      if test "$host_cpu" = ia64; then
8226
 
        # AIX 5 now supports IA64 processor
8227
 
        lt_prog_compiler_static='-Bstatic'
8228
 
      fi
8229
 
      ;;
8230
 
 
8231
 
    amigaos*)
8232
 
      # FIXME: we need at least 68020 code to build shared libraries, but
8233
 
      # adding the `-m68020' flag to GCC prevents building anything better,
8234
 
      # like `-m68040'.
8235
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8236
 
      ;;
8237
 
 
8238
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8239
 
      # PIC is the default for these OSes.
8240
 
      ;;
8241
 
 
8242
 
    cygwin* | mingw* | pw32* | os2*)
8243
 
      # This hack is so that the source file can tell whether it is being
8244
 
      # built for inclusion in a dll (and should export symbols for example).
8245
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8246
 
      ;;
8247
 
 
8248
 
    darwin* | rhapsody*)
8249
 
      # PIC is the default on this platform
8250
 
      # Common symbols not allowed in MH_DYLIB files
8251
 
      lt_prog_compiler_pic='-fno-common'
8252
 
      ;;
8253
 
 
8254
 
    msdosdjgpp*)
8255
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8256
 
      # on systems that don't support them.
8257
 
      lt_prog_compiler_can_build_shared=no
8258
 
      enable_shared=no
8259
 
      ;;
8260
 
 
8261
 
    sysv4*MP*)
8262
 
      if test -d /usr/nec; then
8263
 
        lt_prog_compiler_pic=-Kconform_pic
8264
 
      fi
8265
 
      ;;
8266
 
 
8267
 
    hpux*)
8268
 
      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
8269
 
      if test "$host_cpu" != ia64; then
8270
 
        lt_prog_compiler_pic='-fPIC'
8271
 
      fi
8272
 
      ;;
8273
 
 
8274
 
    *)
8275
 
      lt_prog_compiler_pic='-fPIC'
8276
 
      ;;
8277
 
    esac
8278
 
  else
8279
 
    # PORTME Check for flag to pass linker flags through the system compiler.
8280
 
    case $host_os in
8281
 
    aix*)
8282
 
      lt_prog_compiler_wl='-Wl,'
8283
 
      if test "$host_cpu" = ia64; then
8284
 
        # AIX 5 now supports IA64 processor
8285
 
        lt_prog_compiler_static='-Bstatic'
8286
 
      else
8287
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8288
 
      fi
8289
 
      ;;
8290
 
 
8291
 
    cygwin* | mingw* | pw32* | os2*)
8292
 
      # This hack is so that the source file can tell whether it is being
8293
 
      # built for inclusion in a dll (and should export symbols for example).
8294
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8295
 
      ;;
8296
 
 
8297
 
    hpux9* | hpux10* | hpux11*)
8298
 
      lt_prog_compiler_wl='-Wl,'
8299
 
      if test "$host_cpu" != ia64; then
8300
 
        lt_prog_compiler_pic='+Z'
8301
 
      fi
8302
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8303
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8304
 
      ;;
8305
 
 
8306
 
    irix5* | irix6* | nonstopux*)
8307
 
      lt_prog_compiler_wl='-Wl,'
8308
 
      # PIC (with -KPIC) is the default.
8309
 
      lt_prog_compiler_static='-non_shared'
8310
 
      ;;
8311
 
 
8312
 
    newsos6)
8313
 
      lt_prog_compiler_pic='-KPIC'
8314
 
      lt_prog_compiler_static='-Bstatic'
8315
 
      ;;
8316
 
 
8317
 
    osf3* | osf4* | osf5*)
8318
 
      lt_prog_compiler_wl='-Wl,'
8319
 
      # All OSF/1 code is PIC.
8320
 
      lt_prog_compiler_static='-non_shared'
8321
 
      ;;
8322
 
 
8323
 
    sco3.2v5*)
8324
 
      lt_prog_compiler_pic='-Kpic'
8325
 
      lt_prog_compiler_static='-dn'
8326
 
      ;;
8327
 
 
8328
 
    solaris*)
8329
 
      lt_prog_compiler_wl='-Wl,'
8330
 
      lt_prog_compiler_pic='-KPIC'
8331
 
      lt_prog_compiler_static='-Bstatic'
8332
 
      ;;
8333
 
 
8334
 
    sunos4*)
8335
 
      lt_prog_compiler_wl='-Qoption ld '
8336
 
      lt_prog_compiler_pic='-PIC'
8337
 
      lt_prog_compiler_static='-Bstatic'
8338
 
      ;;
8339
 
 
8340
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8341
 
      if test "x$host_vendor" = xsni; then
8342
 
        lt_prog_compiler_wl='-LD'
8343
 
      else
8344
 
        lt_prog_compiler_wl='-Wl,'
8345
 
      fi
8346
 
      lt_prog_compiler_pic='-KPIC'
8347
 
      lt_prog_compiler_static='-Bstatic'
8348
 
      ;;
8349
 
 
8350
 
    sysv4*MP*)
8351
 
      if test -d /usr/nec ;then
8352
 
        lt_prog_compiler_pic='-Kconform_pic'
8353
 
        lt_prog_compiler_static='-Bstatic'
8354
 
      fi
8355
 
      ;;
8356
 
 
8357
 
    uts4*)
8358
 
      lt_prog_compiler_pic='-pic'
8359
 
      lt_prog_compiler_static='-Bstatic'
8360
 
      ;;
8361
 
 
8362
 
    *)
8363
 
      lt_prog_compiler_can_build_shared=no
8364
 
      ;;
8365
 
    esac
8366
 
  fi
8367
 
 
8368
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8369
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8370
 
 
8371
 
#
8372
 
# Check to make sure the PIC flag actually works.
8373
 
#
8374
 
if test -n "$lt_prog_compiler_pic"; then
8375
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8376
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8377
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
8378
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8379
 
else
8380
 
  lt_prog_compiler_pic_works=no
8381
 
  ac_outfile=conftest.$ac_objext
8382
 
   save_CFLAGS="$CFLAGS"
8383
 
   CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
8384
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8385
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
8386
 
     # The compiler can only warn and ignore the option if not recognized
8387
 
     # So say no if there are warnings
8388
 
     if test -s conftest.err; then
8389
 
       # Append any errors to the config.log.
8390
 
       cat conftest.err 1>&5
8391
 
     else
8392
 
       lt_prog_compiler_pic_works=yes
8393
 
     fi
8394
 
   fi
8395
 
   $rm conftest*
8396
 
   CFLAGS="$save_CFLAGS"
8397
 
 
8398
 
fi
8399
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8400
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8401
 
 
8402
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
8403
 
    case $lt_prog_compiler_pic in
8404
 
     "" | " "*) ;;
8405
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8406
 
     esac
8407
 
else
8408
 
    lt_prog_compiler_pic=
8409
 
     lt_prog_compiler_can_build_shared=no
8410
 
fi
8411
 
 
8412
 
fi
8413
 
case "$host_os" in
8414
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8415
 
  *djgpp*)
8416
 
    lt_prog_compiler_pic=
8417
 
    ;;
8418
 
  *)
8419
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8420
 
    ;;
8421
 
esac
8422
 
 
8423
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8424
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8425
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8426
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8427
 
else
8428
 
  lt_cv_prog_compiler_c_o=no
8429
 
   $rm -r conftest 2>/dev/null
8430
 
   mkdir conftest
8431
 
   cd conftest
8432
 
   mkdir out
8433
 
   save_CFLAGS="$CFLAGS"
8434
 
                   CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
8435
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8436
 
 
8437
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
8438
 
   # that will create temporary files in the current directory regardless of
8439
 
   # the output directory.  Thus, making CWD read-only will cause this test
8440
 
   # to fail, enabling locking or at least warning the user not to do parallel
8441
 
   # builds.
8442
 
   chmod -w .
8443
 
 
8444
 
   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
8445
 
   then
8446
 
     # The compiler can only warn and ignore the option if not recognized
8447
 
     # So say no if there are warnings
8448
 
     if test -s out/conftest.err; then
8449
 
       # Append any errors to the config.log.
8450
 
       cat out/conftest.err 1>&5
8451
 
     else
8452
 
       lt_cv_prog_compiler_c_o=yes
8453
 
     fi
8454
 
   fi
8455
 
   CFLAGS="$save_CFLAGS"
8456
 
   chmod u+w .
8457
 
   $rm conftest* out/*
8458
 
   rmdir out
8459
 
   cd ..
8460
 
   rmdir conftest
8461
 
   $rm conftest*
8462
 
 
8463
 
fi
8464
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8465
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8466
 
 
8467
 
 
8468
 
hard_links="nottested"
8469
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8470
 
  # do not overwrite the value of need_locks provided by the user
8471
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8472
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8473
 
  hard_links=yes
8474
 
  $rm conftest*
8475
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8476
 
  touch conftest.a
8477
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
8478
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8479
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
8480
 
echo "${ECHO_T}$hard_links" >&6
8481
 
  if test "$hard_links" = no; then
8482
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8483
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8484
 
    need_locks=warn
8485
 
  fi
8486
 
else
8487
 
  need_locks=no
8488
 
fi
8489
 
 
8490
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8491
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8492
 
 
8493
 
  runpath_var=
8494
 
  allow_undefined_flag=
8495
 
 
8496
 
  archive_cmds=
8497
 
  archive_cmds_need_lc=
8498
 
  archive_expsym_cmds=
8499
 
  old_archive_From_new_cmds=
8500
 
  old_archive_from_expsyms_cmds=
8501
 
  export_dynamic_flag_spec=
8502
 
  whole_archive_flag_spec=
8503
 
  thread_safe_flag_spec=
8504
 
  hardcode_libdir_flag_spec=
8505
 
  hardcode_libdir_separator=
8506
 
  hardcode_direct=no
8507
 
  hardcode_minus_L=no
8508
 
  hardcode_shlibpath_var=unsupported
8509
 
  link_all_deplibs=unknown
8510
 
  always_export_symbols=no
8511
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
8512
 
  # include_expsyms should be a list of space-separated symbols to be *always*
8513
 
  # included in the symbol list
8514
 
  include_expsyms=
8515
 
  # exclude_expsyms can be an egrep regular expression of symbols to exclude
8516
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8517
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8518
 
  # as well as any symbol that contains `d'.
8519
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8520
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8521
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
8522
 
  # the symbol is explicitly referenced.  Since portable code cannot
8523
 
  # rely on this symbol name, it's probably fine to never include it in
8524
 
  # preloaded symbol tables.
8525
 
  extract_expsyms_cmds=
8526
 
 
8527
 
  case $host_os in
8528
 
  cygwin* | mingw* | pw32*)
8529
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8530
 
    # When not using gcc, we currently assume that we are using
8531
 
    # Microsoft Visual C++.
8532
 
    if test "$GCC" != yes; then
8533
 
      with_gnu_ld=no
8534
 
    fi
8535
 
    ;;
8536
 
  openbsd*)
8537
 
    with_gnu_ld=no
8538
 
    ;;
8539
 
  esac
8540
 
 
8541
 
  ld_shlibs=yes
8542
 
  if test "$with_gnu_ld" = yes; then
8543
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
8544
 
    wlarc='${wl}'
8545
 
 
8546
 
    # See if GNU ld supports shared libraries.
8547
 
    case $host_os in
8548
 
    aix3* | aix4* | aix5*)
8549
 
      # On AIX/PPC, the GNU linker is very broken
8550
 
      if test "$host_cpu" != ia64; then
8551
 
        ld_shlibs=no
8552
 
        cat <<EOF 1>&2
8553
 
 
8554
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8555
 
*** to be unable to reliably create shared libraries on AIX.
8556
 
*** Therefore, libtool is disabling shared libraries support.  If you
8557
 
*** really care for shared libraries, you may want to modify your PATH
8558
 
*** so that a non-GNU linker is found, and then restart.
8559
 
 
8560
 
EOF
8561
 
      fi
8562
 
      ;;
8563
 
 
8564
 
    amigaos*)
8565
 
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8566
 
      hardcode_libdir_flag_spec='-L$libdir'
8567
 
      hardcode_minus_L=yes
8568
 
 
8569
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8570
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8571
 
      # to version 4, is to share data among multiple programs linked
8572
 
      # with the same dynamic library.  Since this doesn't match the
8573
 
      # behavior of shared libraries on other platforms, we can't use
8574
 
      # them.
8575
 
      ld_shlibs=no
8576
 
      ;;
8577
 
 
8578
 
    beos*)
8579
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8580
 
        allow_undefined_flag=unsupported
8581
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8582
 
        # support --undefined.  This deserves some investigation.  FIXME
8583
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8584
 
      else
8585
 
        ld_shlibs=no
8586
 
      fi
8587
 
      ;;
8588
 
 
8589
 
    cygwin* | mingw* | pw32*)
8590
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
8591
 
      # no search path for DLLs.
8592
 
      hardcode_libdir_flag_spec='-L$libdir'
8593
 
      allow_undefined_flag=unsupported
8594
 
      always_export_symbols=yes
8595
 
 
8596
 
      extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
8597
 
        sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
8598
 
        test -f $output_objdir/impgen.exe || (cd $output_objdir && \
8599
 
        if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
8600
 
        else $CC -o impgen impgen.c ; fi)~
8601
 
        $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
8602
 
 
8603
 
      old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
8604
 
 
8605
 
      # cygwin and mingw dlls have different entry points and sets of symbols
8606
 
      # to exclude.
8607
 
      # FIXME: what about values for MSVC?
8608
 
      dll_entry=__cygwin_dll_entry@12
8609
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
8610
 
      case $host_os in
8611
 
      mingw*)
8612
 
        # mingw values
8613
 
        dll_entry=_DllMainCRTStartup@12
8614
 
        dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
8615
 
        ;;
8616
 
      esac
8617
 
 
8618
 
      # mingw and cygwin differ, and it's simplest to just exclude the union
8619
 
      # of the two symbol sets.
8620
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
8621
 
 
8622
 
      # recent cygwin and mingw systems supply a stub DllMain which the user
8623
 
      # can override, but on older systems we have to supply one (in ltdll.c)
8624
 
      if test "x$lt_cv_need_dllmain" = "xyes"; then
8625
 
        ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
8626
 
        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~
8627
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
8628
 
      else
8629
 
        ltdll_obj=
8630
 
        ltdll_cmds=
8631
 
      fi
8632
 
 
8633
 
      # Extract the symbol export list from an `--export-all' def file,
8634
 
      # then regenerate the def file from the symbol export list, so that
8635
 
      # the compiled dll only exports the symbol export list.
8636
 
      # Be careful not to strip the DATA tag left by newer dlltools.
8637
 
      export_symbols_cmds="$ltdll_cmds"'
8638
 
        $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
8639
 
        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
8640
 
 
8641
 
      # If the export-symbols file already is a .def file (1st line
8642
 
      # is EXPORTS), use it as is.
8643
 
      # If DATA tags from a recent dlltool are present, honour them!
8644
 
      archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
8645
 
          cp $export_symbols $output_objdir/$soname-def;
8646
 
        else
8647
 
          echo EXPORTS > $output_objdir/$soname-def;
8648
 
          _lt_hint=1;
8649
 
          cat $export_symbols | while read symbol; do
8650
 
           set dummy \$symbol;
8651
 
           case \$# in
8652
 
             2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
8653
 
             *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
8654
 
           esac;
8655
 
           _lt_hint=`expr 1 + \$_lt_hint`;
8656
 
          done;
8657
 
        fi~
8658
 
        '"$ltdll_cmds"'
8659
 
        $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~
8660
 
        $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~
8661
 
        $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~
8662
 
        $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~
8663
 
        $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
8664
 
      ;;
8665
 
 
8666
 
    netbsd*)
8667
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8668
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8669
 
        wlarc=
8670
 
      else
8671
 
        archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672
 
        archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8673
 
      fi
8674
 
      ;;
8675
 
 
8676
 
    solaris* | sysv5*)
8677
 
      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
8678
 
        ld_shlibs=no
8679
 
        cat <<EOF 1>&2
8680
 
 
8681
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8682
 
*** create shared libraries on Solaris systems.  Therefore, libtool
8683
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8684
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
8685
 
*** your PATH or compiler configuration so that the native linker is
8686
 
*** used, and then restart.
8687
 
 
8688
 
EOF
8689
 
      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8690
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8692
 
      else
8693
 
        ld_shlibs=no
8694
 
      fi
8695
 
      ;;
8696
 
 
8697
 
    sunos4*)
8698
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8699
 
      wlarc=
8700
 
      hardcode_direct=yes
8701
 
      hardcode_shlibpath_var=no
8702
 
      ;;
8703
 
 
8704
 
    *)
8705
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8706
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708
 
      else
8709
 
        ld_shlibs=no
8710
 
      fi
8711
 
      ;;
8712
 
    esac
8713
 
 
8714
 
    if test "$ld_shlibs" = yes; then
8715
 
      runpath_var=LD_RUN_PATH
8716
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8717
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
8718
 
      case $host_os in
8719
 
      cygwin* | mingw* | pw32*)
8720
 
        # dlltool doesn't understand --whole-archive et. al.
8721
 
        whole_archive_flag_spec=
8722
 
        ;;
8723
 
      *)
8724
 
        # ancient GNU ld didn't support --whole-archive et. al.
8725
 
        if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
8726
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8727
 
        else
8728
 
        whole_archive_flag_spec=
8729
 
        fi
8730
 
        ;;
8731
 
      esac
8732
 
    fi
8733
 
  else
8734
 
    # PORTME fill in a description of your system's linker (not GNU ld)
8735
 
    case $host_os in
8736
 
    aix3*)
8737
 
      allow_undefined_flag=unsupported
8738
 
      always_export_symbols=yes
8739
 
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8740
 
      # Note: this linker hardcodes the directories in LIBPATH if there
8741
 
      # are no directories specified by -L.
8742
 
      hardcode_minus_L=yes
8743
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
8744
 
        # Neither direct hardcoding nor static linking is supported with a
8745
 
        # broken collect2.
8746
 
        hardcode_direct=unsupported
8747
 
      fi
8748
 
      ;;
8749
 
 
8750
 
    aix4* | aix5*)
8751
 
      if test "$host_cpu" = ia64; then
8752
 
        # On IA64, the linker does run time linking by default, so we don't
8753
 
        # have to do anything special.
8754
 
        aix_use_runtimelinking=no
8755
 
        exp_sym_flag='-Bexport'
8756
 
        no_entry_flag=""
8757
 
      else
8758
 
        # If we're using GNU nm, then we don't want the "-C" option.
8759
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8760
 
        if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
8761
 
          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'
8762
 
        else
8763
 
          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'
8764
 
        fi
8765
 
 
8766
 
        # KDE requires run time linking.  Make it the default.
8767
 
        aix_use_runtimelinking=yes
8768
 
        exp_sym_flag='-bexport'
8769
 
        no_entry_flag='-bnoentry'
8770
 
      fi
8771
 
 
8772
 
      # When large executables or shared objects are built, AIX ld can
8773
 
      # have problems creating the table of contents.  If linking a library
8774
 
      # or program results in "error TOC overflow" add -mminimal-toc to
8775
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8776
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8777
 
 
8778
 
      archive_cmds=''
8779
 
      hardcode_direct=yes
8780
 
      hardcode_libdir_separator=':'
8781
 
      link_all_deplibs=yes
8782
 
 
8783
 
      if test "$GCC" = yes; then
8784
 
        case $host_os in aix4.012|aix4.012.*)
8785
 
        # We only want to do this on AIX 4.2 and lower, the check
8786
 
        # below for broken collect2 doesn't work under 4.3+
8787
 
          collect2name=`${CC} -print-prog-name=collect2`
8788
 
          if test -f "$collect2name" && \
8789
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8790
 
          then
8791
 
          # We have reworked collect2
8792
 
          hardcode_direct=yes
8793
 
          else
8794
 
          # We have old collect2
8795
 
          hardcode_direct=unsupported
8796
 
          # It fails to find uninstalled libraries when the uninstalled
8797
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8798
 
          # to unsupported forces relinking
8799
 
          hardcode_minus_L=yes
8800
 
          hardcode_libdir_flag_spec='-L$libdir'
8801
 
          hardcode_libdir_separator=
8802
 
          fi
8803
 
        esac
8804
 
        shared_flag='-shared'
8805
 
      else
8806
 
        # not using gcc
8807
 
        if test "$host_cpu" = ia64; then
8808
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8809
 
        # chokes on -Wl,-G. The following line is correct:
8810
 
          shared_flag='-G'
8811
 
        else
8812
 
        if test "$aix_use_runtimelinking" = yes; then
8813
 
            shared_flag='-qmkshrobj ${wl}-G'
8814
 
          else
8815
 
            shared_flag='-qmkshrobj'
8816
 
        fi
8817
 
        fi
8818
 
      fi
8819
 
 
8820
 
      # Let the compiler handle the export list.
8821
 
      always_export_symbols=no
8822
 
      if test "$aix_use_runtimelinking" = yes; then
8823
 
        # Warning - without using the other runtime loading flags (-brtl),
8824
 
        # -berok will link without error, but may produce a broken library.
8825
 
        allow_undefined_flag='-berok'
8826
 
       # Determine the default libpath from the value encoded in an empty executable.
8827
 
        cat >conftest.$ac_ext <<_ACEOF
8828
 
#line $LINENO "configure"
8829
 
/* confdefs.h.  */
8830
 
_ACEOF
8831
 
cat confdefs.h >>conftest.$ac_ext
8832
 
cat >>conftest.$ac_ext <<_ACEOF
8833
 
/* end confdefs.h.  */
8834
 
 
8835
 
int
8836
 
main ()
8837
 
{
8838
 
 
8839
 
  ;
8840
 
  return 0;
8841
 
}
8842
 
_ACEOF
8843
 
rm -f conftest.$ac_objext conftest$ac_exeext
8844
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845
 
  (eval $ac_link) 2>&5
8846
 
  ac_status=$?
8847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848
 
  (exit $ac_status); } &&
8849
 
         { ac_try='test -s conftest$ac_exeext'
8850
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851
 
  (eval $ac_try) 2>&5
8852
 
  ac_status=$?
8853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854
 
  (exit $ac_status); }; }; then
8855
 
 
8856
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8857
 
}'`
8858
 
# Check for a 64-bit object if we didn't find anything.
8859
 
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; }
8860
 
}'`; fi
8861
 
else
8862
 
  echo "$as_me: failed program was:" >&5
8863
 
sed 's/^/| /' conftest.$ac_ext >&5
8864
 
 
8865
 
fi
8866
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8867
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8868
 
 
8869
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8870
 
        archive_cmds="\$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"
8871
 
        archive_expsym_cmds="\$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"
8872
 
       else
8873
 
        if test "$host_cpu" = ia64; then
8874
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8875
 
          allow_undefined_flag="-z nodefs"
8876
 
          archive_expsym_cmds="\$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"
8877
 
        else
8878
 
         # Determine the default libpath from the value encoded in an empty executable.
8879
 
         cat >conftest.$ac_ext <<_ACEOF
8880
 
#line $LINENO "configure"
8881
 
/* confdefs.h.  */
8882
 
_ACEOF
8883
 
cat confdefs.h >>conftest.$ac_ext
8884
 
cat >>conftest.$ac_ext <<_ACEOF
8885
 
/* end confdefs.h.  */
8886
 
 
8887
 
int
8888
 
main ()
8889
 
{
8890
 
 
8891
 
  ;
8892
 
  return 0;
8893
 
}
8894
 
_ACEOF
8895
 
rm -f conftest.$ac_objext conftest$ac_exeext
8896
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897
 
  (eval $ac_link) 2>&5
8898
 
  ac_status=$?
8899
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900
 
  (exit $ac_status); } &&
8901
 
         { ac_try='test -s conftest$ac_exeext'
8902
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903
 
  (eval $ac_try) 2>&5
8904
 
  ac_status=$?
8905
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906
 
  (exit $ac_status); }; }; then
8907
 
 
8908
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8909
 
}'`
8910
 
# Check for a 64-bit object if we didn't find anything.
8911
 
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; }
8912
 
}'`; fi
8913
 
else
8914
 
  echo "$as_me: failed program was:" >&5
8915
 
sed 's/^/| /' conftest.$ac_ext >&5
8916
 
 
8917
 
fi
8918
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8919
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8920
 
 
8921
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8922
 
          # Warning - without using the other run time loading flags,
8923
 
          # -berok will link without error, but may produce a broken library.
8924
 
          no_undefined_flag=' ${wl}-bernotok'
8925
 
          allow_undefined_flag=' ${wl}-berok'
8926
 
          # -bexpall does not export symbols beginning with underscore (_)
8927
 
          always_export_symbols=yes
8928
 
          # Exported symbols can be pulled into shared objects from archives
8929
 
          whole_archive_flag_spec=' '
8930
 
          archive_cmds_need_lc=yes
8931
 
          # This is similar to how AIX traditionally builds it's shared libraries.
8932
 
          archive_expsym_cmds="\$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'
8933
 
        fi
8934
 
      fi
8935
 
      ;;
8936
 
 
8937
 
    amigaos*)
8938
 
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8939
 
      hardcode_libdir_flag_spec='-L$libdir'
8940
 
      hardcode_minus_L=yes
8941
 
      # see comment about different semantics on the GNU ld section
8942
 
      ld_shlibs=no
8943
 
      ;;
8944
 
 
8945
 
    bsdi4*)
8946
 
      export_dynamic_flag_spec=-rdynamic
8947
 
      ;;
8948
 
 
8949
 
    cygwin* | mingw* | pw32*)
8950
 
      # When not using gcc, we currently assume that we are using
8951
 
      # Microsoft Visual C++.
8952
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8953
 
      # no search path for DLLs.
8954
 
      hardcode_libdir_flag_spec=' '
8955
 
      allow_undefined_flag=unsupported
8956
 
      # Tell ltmain to make .lib files, not .a files.
8957
 
      libext=lib
8958
 
      # FIXME: Setting linknames here is a bad hack.
8959
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8960
 
      # The linker will automatically build a .lib file if we build a DLL.
8961
 
      old_archive_From_new_cmds='true'
8962
 
      # FIXME: Should let the user specify the lib program.
8963
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8964
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8965
 
      ;;
8966
 
 
8967
 
    darwin* | rhapsody*)
8968
 
      case "$host_os" in
8969
 
      rhapsody* | darwin1.[012])
8970
 
        allow_undefined_flag='-undefined suppress'
8971
 
        ;;
8972
 
      *) # Darwin 1.3 on
8973
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
8974
 
        ;;
8975
 
      esac
8976
 
 
8977
 
      # FIXME: Relying on posixy $() will cause problems for
8978
 
      #        cross-compilation, but unfortunately the echo tests do not
8979
 
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8980
 
      #        `"' quotes if we put them in here... so don't!
8981
 
      archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
8982
 
      # We need to add '_' to the symbols in $export_symbols first
8983
 
      #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
8984
 
      hardcode_direct=yes
8985
 
      hardcode_shlibpath_var=no
8986
 
      whole_archive_flag_spec='-all_load $convenience'
8987
 
      ;;
8988
 
 
8989
 
    dgux*)
8990
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991
 
      hardcode_libdir_flag_spec='-L$libdir'
8992
 
      hardcode_shlibpath_var=no
8993
 
      ;;
8994
 
 
8995
 
    freebsd1*)
8996
 
      ld_shlibs=no
8997
 
      ;;
8998
 
 
8999
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9000
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9001
 
    # does not break anything, and helps significantly (at the cost of a little
9002
 
    # extra space).
9003
 
    freebsd2.2*)
9004
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9005
 
      hardcode_libdir_flag_spec='-R$libdir'
9006
 
      hardcode_direct=yes
9007
 
      hardcode_shlibpath_var=no
9008
 
      ;;
9009
 
 
9010
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9011
 
    freebsd2*)
9012
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9013
 
      hardcode_direct=yes
9014
 
      hardcode_minus_L=yes
9015
 
      hardcode_shlibpath_var=no
9016
 
      ;;
9017
 
 
9018
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9019
 
    freebsd*)
9020
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9021
 
      hardcode_libdir_flag_spec='-R$libdir'
9022
 
      hardcode_direct=yes
9023
 
      hardcode_shlibpath_var=no
9024
 
      ;;
9025
 
 
9026
 
    hpux9* | hpux10* | hpux11*)
9027
 
      if test "$GCC" = yes; then
9028
 
        case $host_os in
9029
 
          hpux9*)
9030
 
            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'
9031
 
            ;;
9032
 
          *)
9033
 
            if test "$host_cpu" = ia64; then
9034
 
              archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9035
 
            else
9036
 
              archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9037
 
            fi
9038
 
            ;;
9039
 
        esac
9040
 
      else
9041
 
        case $host_os in
9042
 
          hpux9*)
9043
 
            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'
9044
 
            ;;
9045
 
          *)
9046
 
            if test "$host_cpu" = ia64; then
9047
 
              archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9048
 
            else
9049
 
              archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9050
 
            fi
9051
 
            ;;
9052
 
        esac
9053
 
      fi
9054
 
      if test "$host_cpu" = ia64; then
9055
 
        hardcode_libdir_flag_spec='-L$libdir'
9056
 
        hardcode_direct=no
9057
 
        hardcode_shlibpath_var=no
9058
 
      else
9059
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9060
 
        hardcode_libdir_separator=:
9061
 
        hardcode_direct=yes
9062
 
      fi
9063
 
      # hardcode_minus_L: Not really in the search PATH,
9064
 
      # but as the default location of the library.
9065
 
      hardcode_minus_L=yes
9066
 
      export_dynamic_flag_spec='${wl}-E'
9067
 
      ;;
9068
 
 
9069
 
    irix5* | irix6* | nonstopux*)
9070
 
      if test "$GCC" = yes; then
9071
 
        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'
9072
 
      else
9073
 
        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'
9074
 
      fi
9075
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9076
 
      hardcode_libdir_separator=:
9077
 
      link_all_deplibs=yes
9078
 
      ;;
9079
 
 
9080
 
    netbsd*)
9081
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9082
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9083
 
      else
9084
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9085
 
      fi
9086
 
      hardcode_libdir_flag_spec='-R$libdir'
9087
 
      hardcode_direct=yes
9088
 
      hardcode_shlibpath_var=no
9089
 
      ;;
9090
 
 
9091
 
    newsos6)
9092
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093
 
      hardcode_direct=yes
9094
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9095
 
      hardcode_libdir_separator=:
9096
 
      hardcode_shlibpath_var=no
9097
 
      ;;
9098
 
 
9099
 
    openbsd*)
9100
 
      hardcode_direct=yes
9101
 
      hardcode_shlibpath_var=no
9102
 
 
9103
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9104
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
9105
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9106
 
        export_dynamic_flag_spec='${wl}-E'
9107
 
      else
9108
 
       case $host_os in
9109
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9110
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9111
 
           hardcode_libdir_flag_spec='-R$libdir'
9112
 
           ;;
9113
 
         *)
9114
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
9115
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9116
 
           ;;
9117
 
       esac
9118
 
      fi
9119
 
      ;;
9120
 
 
9121
 
    os2*)
9122
 
      hardcode_libdir_flag_spec='-L$libdir'
9123
 
      hardcode_minus_L=yes
9124
 
      allow_undefined_flag=unsupported
9125
 
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9126
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9127
 
      ;;
9128
 
 
9129
 
    osf3*)
9130
 
      if test "$GCC" = yes; then
9131
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9132
 
        archive_cmds='$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'
9133
 
      else
9134
 
        allow_undefined_flag=' -expect_unresolved \*'
9135
 
        archive_cmds='$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'
9136
 
      fi
9137
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9138
 
      hardcode_libdir_separator=:
9139
 
      ;;
9140
 
 
9141
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9142
 
      if test "$GCC" = yes; then
9143
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9144
 
        archive_cmds='$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'
9145
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9146
 
      else
9147
 
        allow_undefined_flag=' -expect_unresolved \*'
9148
 
        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'
9149
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9150
 
        $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'
9151
 
 
9152
 
        # Both c and cxx compiler support -rpath directly
9153
 
        hardcode_libdir_flag_spec='-rpath $libdir'
9154
 
      fi
9155
 
      hardcode_libdir_separator=:
9156
 
      ;;
9157
 
 
9158
 
    sco3.2v5*)
9159
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9160
 
      hardcode_shlibpath_var=no
9161
 
      export_dynamic_flag_spec='${wl}-Bexport'
9162
 
      runpath_var=LD_RUN_PATH
9163
 
      hardcode_runpath_var=yes
9164
 
      ;;
9165
 
 
9166
 
    solaris*)
9167
 
      no_undefined_flag=' -z text'
9168
 
      if test "$GCC" = yes; then
9169
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9170
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9171
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9172
 
      else
9173
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9175
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9176
 
      fi
9177
 
      hardcode_libdir_flag_spec='-R$libdir'
9178
 
      hardcode_shlibpath_var=no
9179
 
      case $host_os in
9180
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9181
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9182
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9183
 
      esac
9184
 
      link_all_deplibs=yes
9185
 
      ;;
9186
 
 
9187
 
    sunos4*)
9188
 
      if test "x$host_vendor" = xsequent; then
9189
 
        # Use $CC to link under sequent, because it throws in some extra .o
9190
 
        # files that make .init and .fini sections work.
9191
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9192
 
      else
9193
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9194
 
      fi
9195
 
      hardcode_libdir_flag_spec='-L$libdir'
9196
 
      hardcode_direct=yes
9197
 
      hardcode_minus_L=yes
9198
 
      hardcode_shlibpath_var=no
9199
 
      ;;
9200
 
 
9201
 
    sysv4)
9202
 
      if test "x$host_vendor" = xsni; then
9203
 
        archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204
 
        hardcode_direct=yes # is this really true???
9205
 
      else
9206
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9207
 
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9208
 
      fi
9209
 
      runpath_var='LD_RUN_PATH'
9210
 
      hardcode_shlibpath_var=no
9211
 
      ;;
9212
 
 
9213
 
    sysv4.3*)
9214
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9215
 
      hardcode_shlibpath_var=no
9216
 
      export_dynamic_flag_spec='-Bexport'
9217
 
      ;;
9218
 
 
9219
 
    sysv4*MP*)
9220
 
      if test -d /usr/nec; then
9221
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9222
 
        hardcode_shlibpath_var=no
9223
 
        runpath_var=LD_RUN_PATH
9224
 
        hardcode_runpath_var=yes
9225
 
        ld_shlibs=yes
9226
 
      fi
9227
 
      ;;
9228
 
 
9229
 
    sysv4.2uw2*)
9230
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9231
 
      hardcode_direct=yes
9232
 
      hardcode_minus_L=no
9233
 
      hardcode_shlibpath_var=no
9234
 
      hardcode_runpath_var=yes
9235
 
      runpath_var=LD_RUN_PATH
9236
 
      ;;
9237
 
 
9238
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9239
 
      no_undefined_flag='${wl}-z ${wl}text'
9240
 
      if test "$GCC" = yes; then
9241
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9242
 
      else
9243
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9244
 
      fi
9245
 
      runpath_var='LD_RUN_PATH'
9246
 
      hardcode_shlibpath_var=no
9247
 
      ;;
9248
 
 
9249
 
    sysv5*)
9250
 
      no_undefined_flag=' -z text'
9251
 
      # $CC -shared without GNU ld will not create a library from C++
9252
 
      # object files and a static libstdc++, better avoid it by now
9253
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9255
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9256
 
      hardcode_libdir_flag_spec=
9257
 
      hardcode_shlibpath_var=no
9258
 
      runpath_var='LD_RUN_PATH'
9259
 
      ;;
9260
 
 
9261
 
    uts4*)
9262
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9263
 
      hardcode_libdir_flag_spec='-L$libdir'
9264
 
      hardcode_shlibpath_var=no
9265
 
      ;;
9266
 
 
9267
 
    *)
9268
 
      ld_shlibs=no
9269
 
      ;;
9270
 
    esac
9271
 
  fi
9272
 
 
9273
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9274
 
echo "${ECHO_T}$ld_shlibs" >&6
9275
 
test "$ld_shlibs" = no && can_build_shared=no
9276
 
 
9277
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9278
 
if test "$GCC" = yes; then
9279
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9280
 
fi
9281
 
 
9282
 
#
9283
 
# Do we need to explicitly link libc?
9284
 
#
9285
 
archive_cmds_need_lc=yes
9286
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
9287
 
  case $archive_cmds in
9288
 
  *'~'*)
9289
 
    # FIXME: we may have to deal with multi-command sequences.
9290
 
    ;;
9291
 
  '$CC '*)
9292
 
    # Test whether the compiler implicitly links with -lc since on some
9293
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
9294
 
    # to ld, don't add -lc before -lgcc.
9295
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9296
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9297
 
    $rm conftest*
9298
 
    echo 'static int dummy;' > conftest.$ac_ext
9299
 
 
9300
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9301
 
  (eval $ac_compile) 2>&5
9302
 
  ac_status=$?
9303
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304
 
  (exit $ac_status); } 2>conftest.err; then
9305
 
      soname=conftest
9306
 
      lib=conftest
9307
 
      libobjs=conftest.$ac_objext
9308
 
      deplibs=
9309
 
      wl=$lt_prog_compiler_wl
9310
 
      compiler_flags=-v
9311
 
      linker_flags=-v
9312
 
      verstring=
9313
 
      output_objdir=.
9314
 
      libname=conftest
9315
 
      lt_save_allow_undefined_flag=$allow_undefined_flag
9316
 
      allow_undefined_flag=
9317
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9318
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9319
 
  ac_status=$?
9320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321
 
  (exit $ac_status); }
9322
 
      then
9323
 
        archive_cmds_need_lc=no
9324
 
      else
9325
 
        archive_cmds_need_lc=yes
9326
 
      fi
9327
 
      allow_undefined_flag=$lt_save_allow_undefined_flag
9328
 
    else
9329
 
      cat conftest.err 1>&5
9330
 
    fi
9331
 
    $rm conftest*
9332
 
    echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9333
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9334
 
    ;;
9335
 
  esac
9336
 
fi
9337
 
 
9338
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9339
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9340
 
hardcode_action=
9341
 
if test -n "$hardcode_libdir_flag_spec" || \
9342
 
   test -n "$runpath_var "; then
9343
 
 
9344
 
  # We can hardcode non-existant directories.
9345
 
  if test "$hardcode_direct" != no &&
9346
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9347
 
     # have to relink, otherwise we might link with an installed library
9348
 
     # when we should be linking with a yet-to-be-installed one
9349
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9350
 
     test "$hardcode_minus_L" != no; then
9351
 
    # Linking always hardcodes the temporary library directory.
9352
 
    hardcode_action=relink
9353
 
  else
9354
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9355
 
    hardcode_action=immediate
9356
 
  fi
9357
 
else
9358
 
  # We cannot hardcode anything, or else we can only hardcode existing
9359
 
  # directories.
9360
 
  hardcode_action=unsupported
9361
 
fi
9362
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9363
 
echo "${ECHO_T}$hardcode_action" >&6
9364
 
 
9365
 
if test "$hardcode_action" = relink; then
9366
 
  # Fast installation is not supported
9367
 
  enable_fast_install=no
9368
 
elif test "$shlibpath_overrides_runpath" = yes ||
9369
 
     test "$enable_shared" = no; then
9370
 
  # Fast installation is not necessary
9371
 
  enable_fast_install=needless
9372
 
fi
9373
 
 
9374
 
striplib=
9375
 
old_striplib=
9376
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9377
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9378
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9379
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9380
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9381
 
  echo "$as_me:$LINENO: result: yes" >&5
9382
 
echo "${ECHO_T}yes" >&6
9383
 
else
9384
 
  echo "$as_me:$LINENO: result: no" >&5
9385
 
echo "${ECHO_T}no" >&6
9386
 
fi
9387
 
 
9388
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9389
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9390
 
library_names_spec=
9391
 
libname_spec='lib$name'
9392
 
soname_spec=
9393
 
postinstall_cmds=
9394
 
postuninstall_cmds=
9395
 
finish_cmds=
9396
 
finish_eval=
9397
 
shlibpath_var=
9398
 
shlibpath_overrides_runpath=unknown
9399
 
version_type=none
9400
 
dynamic_linker="$host_os ld.so"
9401
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9402
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9403
 
need_lib_prefix=unknown
9404
 
hardcode_into_libs=no
9405
 
 
9406
 
# when you set need_version to no, make sure it does not cause -set_version
9407
 
# flags to be left without arguments
9408
 
need_version=unknown
9409
 
 
9410
 
case $host_os in
9411
 
aix3*)
9412
 
  version_type=linux
9413
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
9414
 
  shlibpath_var=LIBPATH
9415
 
 
9416
 
  # AIX 3 has no versioning support, so we append a major version to the name.
9417
 
  soname_spec='${libname}${release}.so$major'
9418
 
  ;;
9419
 
 
9420
 
aix4* | aix5*)
9421
 
  version_type=linux
9422
 
  if test "$host_cpu" = ia64; then
9423
 
    # AIX 5 supports IA64
9424
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
9425
 
    shlibpath_var=LD_LIBRARY_PATH
9426
 
  else
9427
 
    # With GCC up to 2.95.x, collect2 would create an import file
9428
 
    # for dependence libraries.  The import file would start with
9429
 
    # the line `#! .'.  This would cause the generated library to
9430
 
    # depend on `.', always an invalid library.  This was fixed in
9431
 
    # development snapshots of GCC prior to 3.0.
9432
 
    case $host_os in
9433
 
      aix4 | aix4.[01] | aix4.[01].*)
9434
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9435
 
           echo ' yes '
9436
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9437
 
        :
9438
 
      else
9439
 
        can_build_shared=no
9440
 
      fi
9441
 
      ;;
9442
 
    esac
9443
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9444
 
    # soname into executable. Probably we can add versioning support to
9445
 
    # collect2, so additional links can be useful in future.
9446
 
    if test "$aix_use_runtimelinking" = yes; then
9447
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9448
 
      # instead of lib<name>.a to let people know that these are not
9449
 
      # typical AIX shared libraries.
9450
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9451
 
    else
9452
 
      # We preserve .a as extension for shared libraries through AIX4.2
9453
 
      # and later when we are not doing run time linking.
9454
 
      library_names_spec='${libname}${release}.a $libname.a'
9455
 
      soname_spec='${libname}${release}.so$major'
9456
 
    fi
9457
 
    shlibpath_var=LIBPATH
9458
 
  fi
9459
 
  ;;
9460
 
 
9461
 
amigaos*)
9462
 
  library_names_spec='$libname.ixlibrary $libname.a'
9463
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9464
 
  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'
9465
 
  ;;
9466
 
 
9467
 
beos*)
9468
 
  library_names_spec='${libname}.so'
9469
 
  dynamic_linker="$host_os ld.so"
9470
 
  shlibpath_var=LIBRARY_PATH
9471
 
  ;;
9472
 
 
9473
 
bsdi4*)
9474
 
  version_type=linux
9475
 
  need_version=no
9476
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9477
 
  soname_spec='${libname}${release}.so$major'
9478
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9479
 
  shlibpath_var=LD_LIBRARY_PATH
9480
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9481
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9482
 
  # the default ld.so.conf also contains /usr/contrib/lib and
9483
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9484
 
  # libtool to hard-code these into programs
9485
 
  ;;
9486
 
 
9487
 
cygwin* | mingw* | pw32*)
9488
 
  version_type=windows
9489
 
  need_version=no
9490
 
  need_lib_prefix=no
9491
 
  case $GCC,$host_os in
9492
 
  yes,cygwin*)
9493
 
    library_names_spec='$libname.dll.a'
9494
 
    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
9495
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
9496
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
9497
 
      dldir=$destdir/`dirname \$dlpath`~
9498
 
      test -d \$dldir || mkdir -p \$dldir~
9499
 
      $install_prog .libs/$dlname \$dldir/$dlname'
9500
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
9501
 
      dlpath=$dir/\$dldll~
9502
 
       $rm \$dlpath'
9503
 
    ;;
9504
 
  yes,mingw*)
9505
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
9506
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
9507
 
    if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
9508
 
      # It is most probably a Windows format PATH printed by
9509
 
      # mingw gcc, but we are running on Cygwin. Gcc prints its search
9510
 
      # path with ; separators, and with drive letters. We can handle the
9511
 
      # drive letters (cygwin fileutils understands them), so leave them,
9512
 
      # especially as we might pass files found there to a mingw objdump,
9513
 
      # which wouldn't understand a cygwinified path. Ahh.
9514
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
9515
 
    else
9516
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed  -e "s/$PATH_SEPARATOR/ /g"`
9517
 
    fi
9518
 
    ;;
9519
 
  yes,pw32*)
9520
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
9521
 
    ;;
9522
 
  *)
9523
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
9524
 
    ;;
9525
 
  esac
9526
 
  dynamic_linker='Win32 ld.exe'
9527
 
  # FIXME: first we should search . and the directory the executable is in
9528
 
  shlibpath_var=PATH
9529
 
  ;;
9530
 
 
9531
 
darwin* | rhapsody*)
9532
 
  dynamic_linker="$host_os dyld"
9533
 
  version_type=darwin
9534
 
  need_lib_prefix=no
9535
 
  need_version=no
9536
 
  # FIXME: Relying on posixy $() will cause problems for
9537
 
  #        cross-compilation, but unfortunately the echo tests do not
9538
 
  #        yet detect zsh echo's removal of \ escapes.
9539
 
  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)'
9540
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
9541
 
  shlibpath_overrides_runpath=yes
9542
 
  shlibpath_var=DYLD_LIBRARY_PATH
9543
 
  ;;
9544
 
 
9545
 
dgux*)
9546
 
  version_type=linux
9547
 
  need_lib_prefix=no
9548
 
  need_version=no
9549
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9550
 
  soname_spec='${libname}${release}.so$major'
9551
 
  shlibpath_var=LD_LIBRARY_PATH
9552
 
  ;;
9553
 
 
9554
 
freebsd1*)
9555
 
  dynamic_linker=no
9556
 
  ;;
9557
 
 
9558
 
freebsd*)
9559
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9560
 
  version_type=freebsd-$objformat
9561
 
  case $version_type in
9562
 
    freebsd-elf*)
9563
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
9564
 
      need_version=no
9565
 
      need_lib_prefix=no
9566
 
      ;;
9567
 
    freebsd-*)
9568
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
9569
 
      need_version=yes
9570
 
      ;;
9571
 
  esac
9572
 
  shlibpath_var=LD_LIBRARY_PATH
9573
 
  case $host_os in
9574
 
  freebsd2*)
9575
 
    shlibpath_overrides_runpath=yes
9576
 
    ;;
9577
 
  freebsd3.01* | freebsdelf3.01*)
9578
 
    shlibpath_overrides_runpath=yes
9579
 
    hardcode_into_libs=yes
9580
 
    ;;
9581
 
  *) # from 3.2 on
9582
 
    shlibpath_overrides_runpath=no
9583
 
    hardcode_into_libs=yes
9584
 
    ;;
9585
 
  esac
9586
 
  ;;
9587
 
 
9588
 
gnu*)
9589
 
  version_type=linux
9590
 
  need_lib_prefix=no
9591
 
  need_version=no
9592
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
9593
 
  soname_spec='${libname}${release}.so$major'
9594
 
  shlibpath_var=LD_LIBRARY_PATH
9595
 
  hardcode_into_libs=yes
9596
 
  ;;
9597
 
 
9598
 
hpux9* | hpux10* | hpux11*)
9599
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
9600
 
  # link against other versions.
9601
 
  version_type=sunos
9602
 
  need_lib_prefix=no
9603
 
  need_version=no
9604
 
  if test "$host_cpu" = ia64; then
9605
 
    hardcode_into_libs=yes
9606
 
    dynamic_linker="$host_os dld.so"
9607
 
    shlibpath_var=LD_LIBRARY_PATH
9608
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9609
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9610
 
    soname_spec='${libname}${release}.so$major'
9611
 
    if test "X$HPUX_IA64_MODE" = X32; then
9612
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9613
 
    else
9614
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9615
 
    fi
9616
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9617
 
  else
9618
 
    dynamic_linker="$host_os dld.sl"
9619
 
    shlibpath_var=SHLIB_PATH
9620
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9621
 
    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
9622
 
    soname_spec='${libname}${release}.sl$major'
9623
 
  fi
9624
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9625
 
  postinstall_cmds='chmod 555 $lib'
9626
 
  ;;
9627
 
 
9628
 
irix5* | irix6* | nonstopux*)
9629
 
  case $host_os in
9630
 
    nonstopux*) version_type=nonstopux ;;
9631
 
    *)          version_type=irix ;;
9632
 
  esac
9633
 
  need_lib_prefix=no
9634
 
  need_version=no
9635
 
  soname_spec='${libname}${release}.so$major'
9636
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
9637
 
  case $host_os in
9638
 
  irix5* | nonstopux*)
9639
 
    libsuff= shlibsuff=
9640
 
    ;;
9641
 
  *)
9642
 
    case $LD in # libtool.m4 will add one of these switches to LD
9643
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
9644
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
9645
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
9646
 
    *) libsuff= shlibsuff= libmagic=never-match;;
9647
 
    esac
9648
 
    ;;
9649
 
  esac
9650
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9651
 
  shlibpath_overrides_runpath=no
9652
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9653
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9654
 
  ;;
9655
 
 
9656
 
# No shared lib support for Linux oldld, aout, or coff.
9657
 
linux*oldld* | linux*aout* | linux*coff*)
9658
 
  dynamic_linker=no
9659
 
  ;;
9660
 
 
9661
 
# This must be Linux ELF.
9662
 
linux*)
9663
 
  version_type=linux
9664
 
  need_lib_prefix=no
9665
 
  need_version=no
9666
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9667
 
  soname_spec='${libname}${release}.so$major'
9668
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9669
 
  libsuff=
9670
 
  if test "x$LINUX_64_MODE" = x64; then
9671
 
    # Some platforms are per default 64-bit, so there's no /lib64
9672
 
    if test -d /lib64; then
9673
 
      libsuff=64
9674
 
    fi
9675
 
  fi
9676
 
  shlibpath_var=LD_LIBRARY_PATH
9677
 
  shlibpath_overrides_runpath=no
9678
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9679
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9680
 
  # This implies no fast_install, which is unacceptable.
9681
 
  # Some rework will be needed to allow for fast_install
9682
 
  # before this can be enabled.
9683
 
  hardcode_into_libs=yes
9684
 
 
9685
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9686
 
  # powerpc, because MkLinux only supported shared libraries with the
9687
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
9688
 
  # most powerpc-linux boxes support dynamic linking these days and
9689
 
  # people can always --disable-shared, the test was removed, and we
9690
 
  # assume the GNU/Linux dynamic linker is in use.
9691
 
  dynamic_linker='GNU/Linux ld.so'
9692
 
  ;;
9693
 
 
9694
 
netbsd*)
9695
 
  version_type=sunos
9696
 
  need_lib_prefix=no
9697
 
  need_version=no
9698
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9699
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9700
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9701
 
    dynamic_linker='NetBSD (a.out) ld.so'
9702
 
  else
9703
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
9704
 
    soname_spec='${libname}${release}.so$major'
9705
 
    dynamic_linker='NetBSD ld.elf_so'
9706
 
  fi
9707
 
  shlibpath_var=LD_LIBRARY_PATH
9708
 
  shlibpath_overrides_runpath=yes
9709
 
  hardcode_into_libs=yes
9710
 
  ;;
9711
 
 
9712
 
newsos6)
9713
 
  version_type=linux
9714
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9715
 
  shlibpath_var=LD_LIBRARY_PATH
9716
 
  shlibpath_overrides_runpath=yes
9717
 
  ;;
9718
 
 
9719
 
nto-qnx)
9720
 
  version_type=linux
9721
 
  need_lib_prefix=no
9722
 
  need_version=no
9723
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9724
 
  soname_spec='${libname}${release}.so$major'
9725
 
  shlibpath_var=LD_LIBRARY_PATH
9726
 
  shlibpath_overrides_runpath=yes
9727
 
  ;;
9728
 
 
9729
 
openbsd*)
9730
 
  version_type=sunos
9731
 
  need_lib_prefix=no
9732
 
  need_version=no
9733
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9734
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9735
 
  shlibpath_var=LD_LIBRARY_PATH
9736
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9737
 
    case $host_os in
9738
 
      openbsd2.[89] | openbsd2.[89].*)
9739
 
        shlibpath_overrides_runpath=no
9740
 
        ;;
9741
 
      *)
9742
 
        shlibpath_overrides_runpath=yes
9743
 
        ;;
9744
 
      esac
9745
 
  else
9746
 
    shlibpath_overrides_runpath=yes
9747
 
  fi
9748
 
  ;;
9749
 
 
9750
 
os2*)
9751
 
  libname_spec='$name'
9752
 
  need_lib_prefix=no
9753
 
  library_names_spec='$libname.dll $libname.a'
9754
 
  dynamic_linker='OS/2 ld.exe'
9755
 
  shlibpath_var=LIBPATH
9756
 
  ;;
9757
 
 
9758
 
osf3* | osf4* | osf5*)
9759
 
  version_type=osf
9760
 
  need_lib_prefix=no
9761
 
  need_version=no
9762
 
  soname_spec='${libname}${release}.so'
9763
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
9764
 
  shlibpath_var=LD_LIBRARY_PATH
9765
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9766
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9767
 
  ;;
9768
 
 
9769
 
sco3.2v5*)
9770
 
  version_type=osf
9771
 
  soname_spec='${libname}${release}.so$major'
9772
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9773
 
  shlibpath_var=LD_LIBRARY_PATH
9774
 
  ;;
9775
 
 
9776
 
solaris*)
9777
 
  version_type=linux
9778
 
  need_lib_prefix=no
9779
 
  need_version=no
9780
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9781
 
  soname_spec='${libname}${release}.so$major'
9782
 
  shlibpath_var=LD_LIBRARY_PATH
9783
 
  shlibpath_overrides_runpath=yes
9784
 
  hardcode_into_libs=yes
9785
 
  # ldd complains unless libraries are executable
9786
 
  postinstall_cmds='chmod +x $lib'
9787
 
  ;;
9788
 
 
9789
 
sunos4*)
9790
 
  version_type=sunos
9791
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9792
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9793
 
  shlibpath_var=LD_LIBRARY_PATH
9794
 
  shlibpath_overrides_runpath=yes
9795
 
  if test "$with_gnu_ld" = yes; then
9796
 
    need_lib_prefix=no
9797
 
  fi
9798
 
  need_version=yes
9799
 
  ;;
9800
 
 
9801
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9802
 
  version_type=linux
9803
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9804
 
  soname_spec='${libname}${release}.so$major'
9805
 
  shlibpath_var=LD_LIBRARY_PATH
9806
 
  case $host_vendor in
9807
 
    sni)
9808
 
      shlibpath_overrides_runpath=no
9809
 
      ;;
9810
 
    motorola)
9811
 
      need_lib_prefix=no
9812
 
      need_version=no
9813
 
      shlibpath_overrides_runpath=no
9814
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9815
 
      ;;
9816
 
  esac
9817
 
  ;;
9818
 
 
9819
 
sysv4*MP*)
9820
 
  if test -d /usr/nec ;then
9821
 
    version_type=linux
9822
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
9823
 
    soname_spec='$libname.so.$major'
9824
 
    shlibpath_var=LD_LIBRARY_PATH
9825
 
  fi
9826
 
  ;;
9827
 
 
9828
 
uts4*)
9829
 
  version_type=linux
9830
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9831
 
  soname_spec='${libname}${release}.so$major'
9832
 
  shlibpath_var=LD_LIBRARY_PATH
9833
 
  ;;
9834
 
 
9835
 
*)
9836
 
  dynamic_linker=no
9837
 
  ;;
9838
 
esac
9839
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9840
 
echo "${ECHO_T}$dynamic_linker" >&6
9841
 
test "$dynamic_linker" = no && can_build_shared=no
9842
 
 
9843
 
if test "x$enable_dlopen" != xyes; then
9844
 
  enable_dlopen=unknown
9845
 
  enable_dlopen_self=unknown
9846
 
  enable_dlopen_self_static=unknown
9847
 
else
9848
 
  lt_cv_dlopen=no
9849
 
  lt_cv_dlopen_libs=
9850
 
 
9851
 
  case $host_os in
9852
 
  beos*)
9853
 
    lt_cv_dlopen="load_add_on"
9854
 
    lt_cv_dlopen_libs=
9855
 
    lt_cv_dlopen_self=yes
9856
 
    ;;
9857
 
 
9858
 
  cygwin* | mingw* | pw32*)
9859
 
    lt_cv_dlopen="LoadLibrary"
9860
 
    lt_cv_dlopen_libs=
9861
 
   ;;
9862
 
 
9863
 
  *)
9864
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
9865
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9866
 
if test "${ac_cv_func_shl_load+set}" = set; then
9867
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9868
 
else
9869
 
  cat >conftest.$ac_ext <<_ACEOF
9870
 
#line $LINENO "configure"
9871
 
/* confdefs.h.  */
9872
 
_ACEOF
9873
 
cat confdefs.h >>conftest.$ac_ext
9874
 
cat >>conftest.$ac_ext <<_ACEOF
9875
 
/* end confdefs.h.  */
9876
 
/* System header to define __stub macros and hopefully few prototypes,
9877
 
    which can conflict with char shl_load (); below.
9878
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9879
 
    <limits.h> exists even on freestanding compilers.  */
9880
 
#ifdef __STDC__
9881
 
# include <limits.h>
9882
 
#else
9883
 
# include <assert.h>
9884
 
#endif
9885
 
/* Override any gcc2 internal prototype to avoid an error.  */
9886
 
#ifdef __cplusplus
9887
 
extern "C"
9888
 
{
9889
 
#endif
9890
 
/* We use char because int might match the return type of a gcc2
9891
 
   builtin and then its argument prototype would still apply.  */
9892
 
char shl_load ();
9893
 
/* The GNU C library defines this for functions which it implements
9894
 
    to always fail with ENOSYS.  Some functions are actually named
9895
 
    something starting with __ and the normal name is an alias.  */
9896
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9897
 
choke me
9898
 
#else
9899
 
char (*f) () = shl_load;
9900
 
#endif
9901
 
#ifdef __cplusplus
9902
 
}
9903
 
#endif
9904
 
 
9905
 
int
9906
 
main ()
9907
 
{
9908
 
return f != shl_load;
9909
 
  ;
9910
 
  return 0;
9911
 
}
9912
 
_ACEOF
9913
 
rm -f conftest.$ac_objext conftest$ac_exeext
9914
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915
 
  (eval $ac_link) 2>&5
9916
 
  ac_status=$?
9917
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918
 
  (exit $ac_status); } &&
9919
 
         { ac_try='test -s conftest$ac_exeext'
9920
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921
 
  (eval $ac_try) 2>&5
9922
 
  ac_status=$?
9923
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924
 
  (exit $ac_status); }; }; then
9925
 
  ac_cv_func_shl_load=yes
9926
 
else
9927
 
  echo "$as_me: failed program was:" >&5
9928
 
sed 's/^/| /' conftest.$ac_ext >&5
9929
 
 
9930
 
ac_cv_func_shl_load=no
9931
 
fi
9932
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9933
 
fi
9934
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9935
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9936
 
if test $ac_cv_func_shl_load = yes; then
9937
 
  lt_cv_dlopen="shl_load"
9938
 
else
9939
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9940
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9941
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9942
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9943
 
else
9944
 
  ac_check_lib_save_LIBS=$LIBS
9945
 
LIBS="-ldld  $LIBS"
9946
 
cat >conftest.$ac_ext <<_ACEOF
9947
 
#line $LINENO "configure"
9948
 
/* confdefs.h.  */
9949
 
_ACEOF
9950
 
cat confdefs.h >>conftest.$ac_ext
9951
 
cat >>conftest.$ac_ext <<_ACEOF
9952
 
/* end confdefs.h.  */
9953
 
 
9954
 
/* Override any gcc2 internal prototype to avoid an error.  */
9955
 
#ifdef __cplusplus
9956
 
extern "C"
9957
 
#endif
9958
 
/* We use char because int might match the return type of a gcc2
9959
 
   builtin and then its argument prototype would still apply.  */
9960
 
char shl_load ();
9961
 
int
9962
 
main ()
9963
 
{
9964
 
shl_load ();
9965
 
  ;
9966
 
  return 0;
9967
 
}
9968
 
_ACEOF
9969
 
rm -f conftest.$ac_objext conftest$ac_exeext
9970
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971
 
  (eval $ac_link) 2>&5
9972
 
  ac_status=$?
9973
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974
 
  (exit $ac_status); } &&
9975
 
         { ac_try='test -s conftest$ac_exeext'
9976
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977
 
  (eval $ac_try) 2>&5
9978
 
  ac_status=$?
9979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980
 
  (exit $ac_status); }; }; then
9981
 
  ac_cv_lib_dld_shl_load=yes
9982
 
else
9983
 
  echo "$as_me: failed program was:" >&5
9984
 
sed 's/^/| /' conftest.$ac_ext >&5
9985
 
 
9986
 
ac_cv_lib_dld_shl_load=no
9987
 
fi
9988
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9989
 
LIBS=$ac_check_lib_save_LIBS
9990
 
fi
9991
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9992
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9993
 
if test $ac_cv_lib_dld_shl_load = yes; then
9994
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9995
 
else
9996
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
9997
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9998
 
if test "${ac_cv_func_dlopen+set}" = set; then
9999
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10000
 
else
10001
 
  cat >conftest.$ac_ext <<_ACEOF
10002
 
#line $LINENO "configure"
10003
 
/* confdefs.h.  */
10004
 
_ACEOF
10005
 
cat confdefs.h >>conftest.$ac_ext
10006
 
cat >>conftest.$ac_ext <<_ACEOF
10007
 
/* end confdefs.h.  */
10008
 
/* System header to define __stub macros and hopefully few prototypes,
10009
 
    which can conflict with char dlopen (); below.
10010
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10011
 
    <limits.h> exists even on freestanding compilers.  */
10012
 
#ifdef __STDC__
10013
 
# include <limits.h>
10014
 
#else
10015
 
# include <assert.h>
10016
 
#endif
10017
 
/* Override any gcc2 internal prototype to avoid an error.  */
10018
 
#ifdef __cplusplus
10019
 
extern "C"
10020
 
{
10021
 
#endif
10022
 
/* We use char because int might match the return type of a gcc2
10023
 
   builtin and then its argument prototype would still apply.  */
10024
 
char dlopen ();
10025
 
/* The GNU C library defines this for functions which it implements
10026
 
    to always fail with ENOSYS.  Some functions are actually named
10027
 
    something starting with __ and the normal name is an alias.  */
10028
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10029
 
choke me
10030
 
#else
10031
 
char (*f) () = dlopen;
10032
 
#endif
10033
 
#ifdef __cplusplus
10034
 
}
10035
 
#endif
10036
 
 
10037
 
int
10038
 
main ()
10039
 
{
10040
 
return f != dlopen;
10041
 
  ;
10042
 
  return 0;
10043
 
}
10044
 
_ACEOF
10045
 
rm -f conftest.$ac_objext conftest$ac_exeext
10046
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047
 
  (eval $ac_link) 2>&5
10048
 
  ac_status=$?
10049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050
 
  (exit $ac_status); } &&
10051
 
         { ac_try='test -s conftest$ac_exeext'
10052
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053
 
  (eval $ac_try) 2>&5
10054
 
  ac_status=$?
10055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056
 
  (exit $ac_status); }; }; then
10057
 
  ac_cv_func_dlopen=yes
10058
 
else
10059
 
  echo "$as_me: failed program was:" >&5
10060
 
sed 's/^/| /' conftest.$ac_ext >&5
10061
 
 
10062
 
ac_cv_func_dlopen=no
10063
 
fi
10064
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10065
 
fi
10066
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10067
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10068
 
if test $ac_cv_func_dlopen = yes; then
10069
 
  lt_cv_dlopen="dlopen"
10070
 
else
10071
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10072
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10073
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10074
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10075
 
else
10076
 
  ac_check_lib_save_LIBS=$LIBS
10077
 
LIBS="-ldl  $LIBS"
10078
 
cat >conftest.$ac_ext <<_ACEOF
10079
 
#line $LINENO "configure"
10080
 
/* confdefs.h.  */
10081
 
_ACEOF
10082
 
cat confdefs.h >>conftest.$ac_ext
10083
 
cat >>conftest.$ac_ext <<_ACEOF
10084
 
/* end confdefs.h.  */
10085
 
 
10086
 
/* Override any gcc2 internal prototype to avoid an error.  */
10087
 
#ifdef __cplusplus
10088
 
extern "C"
10089
 
#endif
10090
 
/* We use char because int might match the return type of a gcc2
10091
 
   builtin and then its argument prototype would still apply.  */
10092
 
char dlopen ();
10093
 
int
10094
 
main ()
10095
 
{
10096
 
dlopen ();
10097
 
  ;
10098
 
  return 0;
10099
 
}
10100
 
_ACEOF
10101
 
rm -f conftest.$ac_objext conftest$ac_exeext
10102
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103
 
  (eval $ac_link) 2>&5
10104
 
  ac_status=$?
10105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106
 
  (exit $ac_status); } &&
10107
 
         { ac_try='test -s conftest$ac_exeext'
10108
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109
 
  (eval $ac_try) 2>&5
10110
 
  ac_status=$?
10111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112
 
  (exit $ac_status); }; }; then
10113
 
  ac_cv_lib_dl_dlopen=yes
10114
 
else
10115
 
  echo "$as_me: failed program was:" >&5
10116
 
sed 's/^/| /' conftest.$ac_ext >&5
10117
 
 
10118
 
ac_cv_lib_dl_dlopen=no
10119
 
fi
10120
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10121
 
LIBS=$ac_check_lib_save_LIBS
10122
 
fi
10123
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10124
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10125
 
if test $ac_cv_lib_dl_dlopen = yes; then
10126
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10127
 
else
10128
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10129
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10130
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10131
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10132
 
else
10133
 
  ac_check_lib_save_LIBS=$LIBS
10134
 
LIBS="-lsvld  $LIBS"
10135
 
cat >conftest.$ac_ext <<_ACEOF
10136
 
#line $LINENO "configure"
10137
 
/* confdefs.h.  */
10138
 
_ACEOF
10139
 
cat confdefs.h >>conftest.$ac_ext
10140
 
cat >>conftest.$ac_ext <<_ACEOF
10141
 
/* end confdefs.h.  */
10142
 
 
10143
 
/* Override any gcc2 internal prototype to avoid an error.  */
10144
 
#ifdef __cplusplus
10145
 
extern "C"
10146
 
#endif
10147
 
/* We use char because int might match the return type of a gcc2
10148
 
   builtin and then its argument prototype would still apply.  */
10149
 
char dlopen ();
10150
 
int
10151
 
main ()
10152
 
{
10153
 
dlopen ();
10154
 
  ;
10155
 
  return 0;
10156
 
}
10157
 
_ACEOF
10158
 
rm -f conftest.$ac_objext conftest$ac_exeext
10159
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160
 
  (eval $ac_link) 2>&5
10161
 
  ac_status=$?
10162
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163
 
  (exit $ac_status); } &&
10164
 
         { ac_try='test -s conftest$ac_exeext'
10165
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166
 
  (eval $ac_try) 2>&5
10167
 
  ac_status=$?
10168
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169
 
  (exit $ac_status); }; }; then
10170
 
  ac_cv_lib_svld_dlopen=yes
10171
 
else
10172
 
  echo "$as_me: failed program was:" >&5
10173
 
sed 's/^/| /' conftest.$ac_ext >&5
10174
 
 
10175
 
ac_cv_lib_svld_dlopen=no
10176
 
fi
10177
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10178
 
LIBS=$ac_check_lib_save_LIBS
10179
 
fi
10180
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10181
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10182
 
if test $ac_cv_lib_svld_dlopen = yes; then
10183
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10184
 
else
10185
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10186
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10187
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10188
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10189
 
else
10190
 
  ac_check_lib_save_LIBS=$LIBS
10191
 
LIBS="-ldld  $LIBS"
10192
 
cat >conftest.$ac_ext <<_ACEOF
10193
 
#line $LINENO "configure"
10194
 
/* confdefs.h.  */
10195
 
_ACEOF
10196
 
cat confdefs.h >>conftest.$ac_ext
10197
 
cat >>conftest.$ac_ext <<_ACEOF
10198
 
/* end confdefs.h.  */
10199
 
 
10200
 
/* Override any gcc2 internal prototype to avoid an error.  */
10201
 
#ifdef __cplusplus
10202
 
extern "C"
10203
 
#endif
10204
 
/* We use char because int might match the return type of a gcc2
10205
 
   builtin and then its argument prototype would still apply.  */
10206
 
char dld_link ();
10207
 
int
10208
 
main ()
10209
 
{
10210
 
dld_link ();
10211
 
  ;
10212
 
  return 0;
10213
 
}
10214
 
_ACEOF
10215
 
rm -f conftest.$ac_objext conftest$ac_exeext
10216
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217
 
  (eval $ac_link) 2>&5
10218
 
  ac_status=$?
10219
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220
 
  (exit $ac_status); } &&
10221
 
         { ac_try='test -s conftest$ac_exeext'
10222
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223
 
  (eval $ac_try) 2>&5
10224
 
  ac_status=$?
10225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226
 
  (exit $ac_status); }; }; then
10227
 
  ac_cv_lib_dld_dld_link=yes
10228
 
else
10229
 
  echo "$as_me: failed program was:" >&5
10230
 
sed 's/^/| /' conftest.$ac_ext >&5
10231
 
 
10232
 
ac_cv_lib_dld_dld_link=no
10233
 
fi
10234
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10235
 
LIBS=$ac_check_lib_save_LIBS
10236
 
fi
10237
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10238
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10239
 
if test $ac_cv_lib_dld_dld_link = yes; then
10240
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10241
 
fi
10242
 
 
10243
 
 
10244
 
fi
10245
 
 
10246
 
 
10247
 
fi
10248
 
 
10249
 
 
10250
 
fi
10251
 
 
10252
 
 
10253
 
fi
10254
 
 
10255
 
 
10256
 
fi
10257
 
 
10258
 
    ;;
10259
 
  esac
10260
 
 
10261
 
  if test "x$lt_cv_dlopen" != xno; then
10262
 
    enable_dlopen=yes
10263
 
  else
10264
 
    enable_dlopen=no
10265
 
  fi
10266
 
 
10267
 
  case $lt_cv_dlopen in
10268
 
  dlopen)
10269
 
    save_CPPFLAGS="$CPPFLAGS"
10270
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10271
 
 
10272
 
    save_LDFLAGS="$LDFLAGS"
10273
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10274
 
 
10275
 
    save_LIBS="$LIBS"
10276
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
10277
 
 
10278
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10279
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10280
 
if test "${lt_cv_dlopen_self+set}" = set; then
10281
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10282
 
else
10283
 
          if test "$cross_compiling" = yes; then :
10284
 
  lt_cv_dlopen_self=cross
10285
 
else
10286
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10287
 
  lt_status=$lt_dlunknown
10288
 
  cat > conftest.$ac_ext <<EOF
10289
 
#line 10289 "configure"
10290
 
#include "confdefs.h"
10291
 
 
10292
 
#if HAVE_DLFCN_H
10293
 
#include <dlfcn.h>
10294
 
#endif
10295
 
 
10296
 
#include <stdio.h>
10297
 
 
10298
 
#ifdef RTLD_GLOBAL
10299
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10300
 
#else
10301
 
#  ifdef DL_GLOBAL
10302
 
#    define LT_DLGLOBAL         DL_GLOBAL
10303
 
#  else
10304
 
#    define LT_DLGLOBAL         0
10305
 
#  endif
10306
 
#endif
10307
 
 
10308
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10309
 
   find out it does not work in some platform. */
10310
 
#ifndef LT_DLLAZY_OR_NOW
10311
 
#  ifdef RTLD_LAZY
10312
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10313
 
#  else
10314
 
#    ifdef DL_LAZY
10315
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10316
 
#    else
10317
 
#      ifdef RTLD_NOW
10318
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10319
 
#      else
10320
 
#        ifdef DL_NOW
10321
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10322
 
#        else
10323
 
#          define LT_DLLAZY_OR_NOW      0
10324
 
#        endif
10325
 
#      endif
10326
 
#    endif
10327
 
#  endif
10328
 
#endif
10329
 
 
10330
 
#ifdef __cplusplus
10331
 
extern "C" void exit (int);
10332
 
#endif
10333
 
 
10334
 
void fnord() { int i=42;}
10335
 
int main ()
10336
 
{
10337
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10338
 
  int status = $lt_dlunknown;
10339
 
 
10340
 
  if (self)
10341
 
    {
10342
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10343
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10344
 
      /* dlclose (self); */
10345
 
    }
10346
 
 
10347
 
    exit (status);
10348
 
}
10349
 
EOF
10350
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351
 
  (eval $ac_link) 2>&5
10352
 
  ac_status=$?
10353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10355
 
    (./conftest; exit; ) 2>/dev/null
10356
 
    lt_status=$?
10357
 
    case x$lt_status in
10358
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10359
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10360
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10361
 
    esac
10362
 
  else :
10363
 
    # compilation failed
10364
 
    lt_cv_dlopen_self=no
10365
 
  fi
10366
 
fi
10367
 
rm -fr conftest*
10368
 
 
10369
 
 
10370
 
fi
10371
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10372
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10373
 
 
10374
 
    if test "x$lt_cv_dlopen_self" = xyes; then
10375
 
      LDFLAGS="$LDFLAGS $link_static_flag"
10376
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10377
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10378
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
10379
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10380
 
else
10381
 
          if test "$cross_compiling" = yes; then :
10382
 
  lt_cv_dlopen_self_static=cross
10383
 
else
10384
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10385
 
  lt_status=$lt_dlunknown
10386
 
  cat > conftest.$ac_ext <<EOF
10387
 
#line 10387 "configure"
10388
 
#include "confdefs.h"
10389
 
 
10390
 
#if HAVE_DLFCN_H
10391
 
#include <dlfcn.h>
10392
 
#endif
10393
 
 
10394
 
#include <stdio.h>
10395
 
 
10396
 
#ifdef RTLD_GLOBAL
10397
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10398
 
#else
10399
 
#  ifdef DL_GLOBAL
10400
 
#    define LT_DLGLOBAL         DL_GLOBAL
10401
 
#  else
10402
 
#    define LT_DLGLOBAL         0
10403
 
#  endif
10404
 
#endif
10405
 
 
10406
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10407
 
   find out it does not work in some platform. */
10408
 
#ifndef LT_DLLAZY_OR_NOW
10409
 
#  ifdef RTLD_LAZY
10410
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10411
 
#  else
10412
 
#    ifdef DL_LAZY
10413
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10414
 
#    else
10415
 
#      ifdef RTLD_NOW
10416
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10417
 
#      else
10418
 
#        ifdef DL_NOW
10419
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10420
 
#        else
10421
 
#          define LT_DLLAZY_OR_NOW      0
10422
 
#        endif
10423
 
#      endif
10424
 
#    endif
10425
 
#  endif
10426
 
#endif
10427
 
 
10428
 
#ifdef __cplusplus
10429
 
extern "C" void exit (int);
10430
 
#endif
10431
 
 
10432
 
void fnord() { int i=42;}
10433
 
int main ()
10434
 
{
10435
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10436
 
  int status = $lt_dlunknown;
10437
 
 
10438
 
  if (self)
10439
 
    {
10440
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10441
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10442
 
      /* dlclose (self); */
10443
 
    }
10444
 
 
10445
 
    exit (status);
10446
 
}
10447
 
EOF
10448
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449
 
  (eval $ac_link) 2>&5
10450
 
  ac_status=$?
10451
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10453
 
    (./conftest; exit; ) 2>/dev/null
10454
 
    lt_status=$?
10455
 
    case x$lt_status in
10456
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10457
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10458
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10459
 
    esac
10460
 
  else :
10461
 
    # compilation failed
10462
 
    lt_cv_dlopen_self_static=no
10463
 
  fi
10464
 
fi
10465
 
rm -fr conftest*
10466
 
 
10467
 
 
10468
 
fi
10469
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10470
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10471
 
    fi
10472
 
 
10473
 
    CPPFLAGS="$save_CPPFLAGS"
10474
 
    LDFLAGS="$save_LDFLAGS"
10475
 
    LIBS="$save_LIBS"
10476
 
    ;;
10477
 
  esac
10478
 
 
10479
 
  case $lt_cv_dlopen_self in
10480
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10481
 
  *) enable_dlopen_self=unknown ;;
10482
 
  esac
10483
 
 
10484
 
  case $lt_cv_dlopen_self_static in
10485
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10486
 
  *) enable_dlopen_self_static=unknown ;;
10487
 
  esac
10488
 
fi
10489
 
 
10490
 
 
10491
 
# Report which librarie types wil actually be built
10492
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10493
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10494
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10495
 
echo "${ECHO_T}$can_build_shared" >&6
10496
 
 
10497
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10498
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10499
 
test "$can_build_shared" = "no" && enable_shared=no
10500
 
 
10501
 
# On AIX, shared libraries and static libraries use the same namespace, and
10502
 
# are all built from PIC.
10503
 
case "$host_os" in
10504
 
aix3*)
10505
 
  test "$enable_shared" = yes && enable_static=no
10506
 
  if test -n "$RANLIB"; then
10507
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10508
 
    postinstall_cmds='$RANLIB $lib'
10509
 
  fi
10510
 
  ;;
10511
 
 
10512
 
aix4*)
10513
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10514
 
    test "$enable_shared" = yes && enable_static=no
10515
 
  fi
10516
 
  ;;
10517
 
esac
10518
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
10519
 
echo "${ECHO_T}$enable_shared" >&6
10520
 
 
10521
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10522
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10523
 
# Make sure either enable_shared or enable_static is yes.
10524
 
test "$enable_shared" = yes || enable_static=yes
10525
 
echo "$as_me:$LINENO: result: $enable_static" >&5
10526
 
echo "${ECHO_T}$enable_static" >&6
10527
 
 
10528
 
# The else clause should only fire when bootstrapping the
10529
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10530
 
# with your package, and you will get complaints that there are
10531
 
# no rules to generate ltmain.sh.
10532
 
if test -f "$ltmain"; then
10533
 
  # Now quote all the things that may contain metacharacters while being
10534
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10535
 
  # variables and quote the copies for generation of the libtool script.
10536
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
10537
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10538
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10539
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10540
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10541
 
    lt_cv_sys_global_symbol_to_c_name_address \
10542
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10543
 
    old_postinstall_cmds old_postuninstall_cmds \
10544
 
    compiler \
10545
 
    CC \
10546
 
    LD \
10547
 
    lt_prog_compiler_wl \
10548
 
    lt_prog_compiler_pic \
10549
 
    lt_prog_compiler_static \
10550
 
    lt_prog_compiler_no_builtin_flag \
10551
 
    export_dynamic_flag_spec \
10552
 
    thread_safe_flag_spec \
10553
 
    whole_archive_flag_spec \
10554
 
    old_archive_cmds \
10555
 
    old_archive_from_new_cmds \
10556
 
    predep_objects \
10557
 
    postdep_objects \
10558
 
    predeps \
10559
 
    postdeps \
10560
 
    compiler_lib_search_path \
10561
 
    archive_cmds \
10562
 
    archive_expsym_cmds \
10563
 
    postinstall_cmds \
10564
 
    postuninstall_cmds \
10565
 
    old_archive_from_expsyms_cmds \
10566
 
    allow_undefined_flag \
10567
 
    no_undefined_flag \
10568
 
    export_symbols_cmds \
10569
 
    hardcode_libdir_flag_spec \
10570
 
    hardcode_libdir_separator \
10571
 
    lt_cv_prog_compiler_c_o \
10572
 
    exclude_expsyms \
10573
 
    include_expsyms; do
10574
 
 
10575
 
    case $var in
10576
 
    old_archive_cmds | \
10577
 
    old_archive_from_new_cmds | \
10578
 
    archive_cmds | \
10579
 
    archive_expsym_cmds | \
10580
 
    old_archive_from_expsyms_cmds | \
10581
 
    export_symbols_cmds | \
10582
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10583
 
    postinstall_cmds | postuninstall_cmds | \
10584
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10585
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10586
 
      # Double-quote double-evaled strings.
10587
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10588
 
      ;;
10589
 
    *)
10590
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10591
 
      ;;
10592
 
    esac
10593
 
  done
10594
 
 
10595
 
  case $lt_echo in
10596
 
  *'\$0 --fallback-echo"')
10597
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10598
 
    ;;
10599
 
  esac
10600
 
 
10601
 
cfgfile="${ofile}T"
10602
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10603
 
  $rm -f "$cfgfile"
10604
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
10605
 
echo "$as_me: creating $ofile" >&6;}
10606
 
 
10607
 
  cat <<__EOF__ >> "$cfgfile"
10608
 
#! $SHELL
10609
 
 
10610
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10611
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10612
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10613
 
#
10614
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10615
 
# Free Software Foundation, Inc.
10616
 
#
10617
 
# This file is part of GNU Libtool:
10618
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10619
 
#
10620
 
# This program is free software; you can redistribute it and/or modify
10621
 
# it under the terms of the GNU General Public License as published by
10622
 
# the Free Software Foundation; either version 2 of the License, or
10623
 
# (at your option) any later version.
10624
 
#
10625
 
# This program is distributed in the hope that it will be useful, but
10626
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10627
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10628
 
# General Public License for more details.
10629
 
#
10630
 
# You should have received a copy of the GNU General Public License
10631
 
# along with this program; if not, write to the Free Software
10632
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10633
 
#
10634
 
# As a special exception to the GNU General Public License, if you
10635
 
# distribute this file as part of a program that contains a
10636
 
# configuration script generated by Autoconf, you may include it under
10637
 
# the same distribution terms that you use for the rest of that program.
10638
 
 
10639
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10640
 
Xsed="sed -e s/^X//"
10641
 
 
10642
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10643
 
# if CDPATH is set.
10644
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10645
 
 
10646
 
# The names of the tagged configurations supported by this script.
10647
 
available_tags=
10648
 
 
10649
 
# ### BEGIN LIBTOOL CONFIG
10650
 
 
10651
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10652
 
 
10653
 
# Shell to use when invoking shell scripts.
10654
 
SHELL=$lt_SHELL
10655
 
 
10656
 
# Whether or not to build shared libraries.
10657
 
build_libtool_libs=$enable_shared
10658
 
 
10659
 
# Whether or not to build static libraries.
10660
 
build_old_libs=$enable_static
10661
 
 
10662
 
# Whether or not to add -lc for building shared libraries.
10663
 
build_libtool_need_lc=$archive_cmds_need_lc
10664
 
 
10665
 
# Whether or not to optimize for fast installation.
10666
 
fast_install=$enable_fast_install
10667
 
 
10668
 
# The host system.
10669
 
host_alias=$host_alias
10670
 
host=$host
10671
 
 
10672
 
# An echo program that does not interpret backslashes.
10673
 
echo=$lt_echo
10674
 
 
10675
 
# The archiver.
10676
 
AR=$lt_AR
10677
 
AR_FLAGS=$lt_AR_FLAGS
10678
 
 
10679
 
# A C compiler.
10680
 
LTCC=$lt_LTCC
10681
 
 
10682
 
# A language-specific compiler.
10683
 
CC=$lt_compiler
10684
 
 
10685
 
# Is the compiler the GNU C compiler?
10686
 
with_gcc=$GCC
10687
 
 
10688
 
# The linker used to build libraries.
10689
 
LD=$lt_LD
10690
 
 
10691
 
# Whether we need hard or soft links.
10692
 
LN_S=$lt_LN_S
10693
 
 
10694
 
# A BSD-compatible nm program.
10695
 
NM=$lt_NM
10696
 
 
10697
 
# A sed program that does not truncate output.
10698
 
SED=$lt_SED
10699
 
 
10700
 
# A symbol stripping program
10701
 
STRIP=$STRIP
10702
 
 
10703
 
# Used to examine libraries when file_magic_cmd begins "file"
10704
 
MAGIC_CMD=$MAGIC_CMD
10705
 
 
10706
 
# Used on cygwin: DLL creation program.
10707
 
DLLTOOL="$DLLTOOL"
10708
 
 
10709
 
# Used on cygwin: object dumper.
10710
 
OBJDUMP="$OBJDUMP"
10711
 
 
10712
 
# Used on cygwin: assembler.
10713
 
AS="$AS"
10714
 
 
10715
 
# The name of the directory that contains temporary libtool files.
10716
 
objdir=$objdir
10717
 
 
10718
 
# How to create reloadable object files.
10719
 
reload_flag=$lt_reload_flag
10720
 
reload_cmds=$lt_reload_cmds
10721
 
 
10722
 
# How to pass a linker flag through the compiler.
10723
 
wl=$lt_lt_prog_compiler_wl
10724
 
 
10725
 
# Object file suffix (normally "o").
10726
 
objext="$ac_objext"
10727
 
 
10728
 
# Old archive suffix (normally "a").
10729
 
libext="$libext"
10730
 
 
10731
 
# Executable file suffix (normally "").
10732
 
exeext="$exeext"
10733
 
 
10734
 
# Additional compiler flags for building library objects.
10735
 
pic_flag=$lt_lt_prog_compiler_pic
10736
 
pic_mode=$pic_mode
10737
 
 
10738
 
# What is the maximum length of a command?
10739
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10740
 
 
10741
 
# Does compiler simultaneously support -c and -o options?
10742
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10743
 
 
10744
 
# Must we lock files when doing compilation ?
10745
 
need_locks=$lt_need_locks
10746
 
 
10747
 
# Do we need the lib prefix for modules?
10748
 
need_lib_prefix=$need_lib_prefix
10749
 
 
10750
 
# Do we need a version for libraries?
10751
 
need_version=$need_version
10752
 
 
10753
 
# Whether dlopen is supported.
10754
 
dlopen_support=$enable_dlopen
10755
 
 
10756
 
# Whether dlopen of programs is supported.
10757
 
dlopen_self=$enable_dlopen_self
10758
 
 
10759
 
# Whether dlopen of statically linked programs is supported.
10760
 
dlopen_self_static=$enable_dlopen_self_static
10761
 
 
10762
 
# Compiler flag to prevent dynamic linking.
10763
 
link_static_flag=$lt_lt_prog_compiler_static
10764
 
 
10765
 
# Compiler flag to turn off builtin functions.
10766
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10767
 
 
10768
 
# Compiler flag to allow reflexive dlopens.
10769
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10770
 
 
10771
 
# Compiler flag to generate shared objects directly from archives.
10772
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10773
 
 
10774
 
# Compiler flag to generate thread-safe objects.
10775
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10776
 
 
10777
 
# Library versioning type.
10778
 
version_type=$version_type
10779
 
 
10780
 
# Format of library name prefix.
10781
 
libname_spec=$lt_libname_spec
10782
 
 
10783
 
# List of archive names.  First name is the real one, the rest are links.
10784
 
# The last name is the one that the linker finds with -lNAME.
10785
 
library_names_spec=$lt_library_names_spec
10786
 
 
10787
 
# The coded name of the library, if different from the real name.
10788
 
soname_spec=$lt_soname_spec
10789
 
 
10790
 
# Commands used to build and install an old-style archive.
10791
 
RANLIB=$lt_RANLIB
10792
 
old_archive_cmds=$lt_old_archive_cmds
10793
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10794
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10795
 
 
10796
 
# Create an old-style archive from a shared archive.
10797
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10798
 
 
10799
 
# Create a temporary old-style archive to link instead of a shared archive.
10800
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10801
 
 
10802
 
# Commands used to build and install a shared archive.
10803
 
archive_cmds=$lt_archive_cmds
10804
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10805
 
postinstall_cmds=$lt_postinstall_cmds
10806
 
postuninstall_cmds=$lt_postuninstall_cmds
10807
 
 
10808
 
# Commands to strip libraries.
10809
 
old_striplib=$lt_old_striplib
10810
 
striplib=$lt_striplib
10811
 
 
10812
 
# Dependencies to place before the objects being linked to create a
10813
 
# shared library.
10814
 
predep_objects=$lt_predep_objects
10815
 
 
10816
 
# Dependencies to place after the objects being linked to create a
10817
 
# shared library.
10818
 
postdep_objects=$lt_postdep_objects
10819
 
 
10820
 
# Dependencies to place before the objects being linked to create a
10821
 
# shared library.
10822
 
predeps=$lt_predeps
10823
 
 
10824
 
# Dependencies to place after the objects being linked to create a
10825
 
# shared library.
10826
 
postdeps=$lt_postdeps
10827
 
 
10828
 
# The library search path used internally by the compiler when linking
10829
 
# a shared library.
10830
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10831
 
 
10832
 
# Method to check whether dependent libraries are shared objects.
10833
 
deplibs_check_method=$lt_deplibs_check_method
10834
 
 
10835
 
# Command to use when deplibs_check_method == file_magic.
10836
 
file_magic_cmd=$lt_file_magic_cmd
10837
 
 
10838
 
# Flag that allows shared libraries with undefined symbols to be built.
10839
 
allow_undefined_flag=$lt_allow_undefined_flag
10840
 
 
10841
 
# Flag that forces no undefined symbols.
10842
 
no_undefined_flag=$lt_no_undefined_flag
10843
 
 
10844
 
# Commands used to finish a libtool library installation in a directory.
10845
 
finish_cmds=$lt_finish_cmds
10846
 
 
10847
 
# Same as above, but a single script fragment to be evaled but not shown.
10848
 
finish_eval=$lt_finish_eval
10849
 
 
10850
 
# Take the output of nm and produce a listing of raw symbols and C names.
10851
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10852
 
 
10853
 
# Transform the output of nm in a proper C declaration
10854
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10855
 
 
10856
 
# Transform the output of nm in a C name address pair
10857
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10858
 
 
10859
 
# This is the shared library runtime path variable.
10860
 
runpath_var=$runpath_var
10861
 
 
10862
 
# This is the shared library path variable.
10863
 
shlibpath_var=$shlibpath_var
10864
 
 
10865
 
# Is shlibpath searched before the hard-coded library search path?
10866
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10867
 
 
10868
 
# How to hardcode a shared library path into an executable.
10869
 
hardcode_action=$hardcode_action
10870
 
 
10871
 
# Whether we should hardcode library paths into libraries.
10872
 
hardcode_into_libs=$hardcode_into_libs
10873
 
 
10874
 
# Flag to hardcode \$libdir into a binary during linking.
10875
 
# This must work even if \$libdir does not exist.
10876
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10877
 
 
10878
 
# Whether we need a single -rpath flag with a separated argument.
10879
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10880
 
 
10881
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
10882
 
# resulting binary.
10883
 
hardcode_direct=$hardcode_direct
10884
 
 
10885
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10886
 
# resulting binary.
10887
 
hardcode_minus_L=$hardcode_minus_L
10888
 
 
10889
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10890
 
# the resulting binary.
10891
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
10892
 
 
10893
 
# Variables whose values should be saved in libtool wrapper scripts and
10894
 
# restored at relink time.
10895
 
variables_saved_for_relink="$variables_saved_for_relink"
10896
 
 
10897
 
# Whether libtool must link a program against all its dependency libraries.
10898
 
link_all_deplibs=$link_all_deplibs
10899
 
 
10900
 
# Compile-time system search path for libraries
10901
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10902
 
 
10903
 
# Run-time system search path for libraries
10904
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10905
 
 
10906
 
# Fix the shell variable \$srcfile for the compiler.
10907
 
fix_srcfile_path="$fix_srcfile_path"
10908
 
 
10909
 
# Set to yes if exported symbols are required.
10910
 
always_export_symbols=$always_export_symbols
10911
 
 
10912
 
# The commands to list exported symbols.
10913
 
export_symbols_cmds=$lt_export_symbols_cmds
10914
 
 
10915
 
# The commands to extract the exported symbol list from a shared archive.
10916
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10917
 
 
10918
 
# Symbols that should not be listed in the preloaded symbols.
10919
 
exclude_expsyms=$lt_exclude_expsyms
10920
 
 
10921
 
# Symbols that must always be exported.
10922
 
include_expsyms=$lt_include_expsyms
10923
 
 
10924
 
# ### END LIBTOOL CONFIG
10925
 
 
10926
 
__EOF__
10927
 
 
10928
 
 
10929
 
  case $host_os in
10930
 
  aix3*)
10931
 
    cat <<\EOF >> "$cfgfile"
10932
 
 
10933
 
# AIX sometimes has problems with the GCC collect2 program.  For some
10934
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
10935
 
# vanish in a puff of smoke.
10936
 
if test "X${COLLECT_NAMES+set}" != Xset; then
10937
 
  COLLECT_NAMES=
10938
 
  export COLLECT_NAMES
10939
 
fi
10940
 
EOF
10941
 
    ;;
10942
 
 
10943
 
  cygwin* | mingw* | pw32* | os2*)
10944
 
    cat <<'EOF' >> "$cfgfile"
10945
 
    # This is a source program that is used to create dlls on Windows
10946
 
    # Don't remove nor modify the starting and closing comments
10947
 
 
10948
 
# /* ltdll.c starts here */
10949
 
# #define WIN32_LEAN_AND_MEAN
10950
 
# #include <windows.h>
10951
 
# #undef WIN32_LEAN_AND_MEAN
10952
 
# #include <stdio.h>
10953
 
#
10954
 
# #ifndef __CYGWIN__
10955
 
# #  ifdef __CYGWIN32__
10956
 
# #    define __CYGWIN__ __CYGWIN32__
10957
 
# #  endif
10958
 
# #endif
10959
 
#
10960
 
# #ifdef __cplusplus
10961
 
# extern "C" {
10962
 
# #endif
10963
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
10964
 
# #ifdef __cplusplus
10965
 
# }
10966
 
# #endif
10967
 
#
10968
 
# #ifdef __CYGWIN__
10969
 
# #include <cygwin/cygwin_dll.h>
10970
 
# DECLARE_CYGWIN_DLL( DllMain );
10971
 
# #endif
10972
 
# HINSTANCE __hDllInstance_base;
10973
 
#
10974
 
# BOOL APIENTRY
10975
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
10976
 
# {
10977
 
#   __hDllInstance_base = hInst;
10978
 
#   return TRUE;
10979
 
# }
10980
 
# /* ltdll.c ends here */
10981
 
 
10982
 
    # This is a source program that is used to create import libraries
10983
 
    # on Windows for dlls which lack them. Don't remove nor modify the
10984
 
    # starting and closing comments
10985
 
 
10986
 
# /* impgen.c starts here */
10987
 
# /*   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
10988
 
#
10989
 
#  This file is part of GNU libtool.
10990
 
#
10991
 
#  This program is free software; you can redistribute it and/or modify
10992
 
#  it under the terms of the GNU General Public License as published by
10993
 
#  the Free Software Foundation; either version 2 of the License, or
10994
 
#  (at your option) any later version.
10995
 
#
10996
 
#  This program is distributed in the hope that it will be useful,
10997
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
10998
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10999
 
#  GNU General Public License for more details.
11000
 
#
11001
 
#  You should have received a copy of the GNU General Public License
11002
 
#  along with this program; if not, write to the Free Software
11003
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11004
 
#  */
11005
 
#
11006
 
# #include <stdio.h>            /* for printf() */
11007
 
# #include <unistd.h>           /* for open(), lseek(), read() */
11008
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
11009
 
# #include <string.h>           /* for strdup() */
11010
 
#
11011
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
11012
 
# #ifndef O_BINARY
11013
 
# #define O_BINARY 0
11014
 
# #endif
11015
 
#
11016
 
# static unsigned int
11017
 
# pe_get16 (fd, offset)
11018
 
#      int fd;
11019
 
#      int offset;
11020
 
# {
11021
 
#   unsigned char b[2];
11022
 
#   lseek (fd, offset, SEEK_SET);
11023
 
#   read (fd, b, 2);
11024
 
#   return b[0] + (b[1]<<8);
11025
 
# }
11026
 
#
11027
 
# static unsigned int
11028
 
# pe_get32 (fd, offset)
11029
 
#     int fd;
11030
 
#     int offset;
11031
 
# {
11032
 
#   unsigned char b[4];
11033
 
#   lseek (fd, offset, SEEK_SET);
11034
 
#   read (fd, b, 4);
11035
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
11036
 
# }
11037
 
#
11038
 
# static unsigned int
11039
 
# pe_as32 (ptr)
11040
 
#      void *ptr;
11041
 
# {
11042
 
#   unsigned char *b = ptr;
11043
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
11044
 
# }
11045
 
#
11046
 
# int
11047
 
# main (argc, argv)
11048
 
#     int argc;
11049
 
#     char *argv[];
11050
 
# {
11051
 
#     int dll;
11052
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
11053
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
11054
 
#     unsigned long name_rvas, nexp;
11055
 
#     unsigned char *expdata, *erva;
11056
 
#     char *filename, *dll_name;
11057
 
#
11058
 
#     filename = argv[1];
11059
 
#
11060
 
#     dll = open(filename, O_RDONLY|O_BINARY);
11061
 
#     if (dll < 1)
11062
 
#       return 1;
11063
 
#
11064
 
#     dll_name = filename;
11065
 
#
11066
 
#     for (i=0; filename[i]; i++)
11067
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
11068
 
#           dll_name = filename + i +1;
11069
 
#
11070
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
11071
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
11072
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
11073
 
#
11074
 
#     if (num_entries < 1) /* no exports */
11075
 
#       return 1;
11076
 
#
11077
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
11078
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
11079
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
11080
 
#     secptr = (pe_header_offset + 4 + 20 +
11081
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
11082
 
#
11083
 
#     expptr = 0;
11084
 
#     for (i = 0; i < nsections; i++)
11085
 
#     {
11086
 
#       char sname[8];
11087
 
#       unsigned long secptr1 = secptr + 40 * i;
11088
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
11089
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
11090
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
11091
 
#       lseek(dll, secptr1, SEEK_SET);
11092
 
#       read(dll, sname, 8);
11093
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
11094
 
#       {
11095
 
#           expptr = fptr + (export_rva - vaddr);
11096
 
#           if (export_rva + export_size > vaddr + vsize)
11097
 
#               export_size = vsize - (export_rva - vaddr);
11098
 
#           break;
11099
 
#       }
11100
 
#     }
11101
 
#
11102
 
#     expdata = (unsigned char*)malloc(export_size);
11103
 
#     lseek (dll, expptr, SEEK_SET);
11104
 
#     read (dll, expdata, export_size);
11105
 
#     erva = expdata - export_rva;
11106
 
#
11107
 
#     nexp = pe_as32 (expdata+24);
11108
 
#     name_rvas = pe_as32 (expdata+32);
11109
 
#
11110
 
#     printf ("EXPORTS\n");
11111
 
#     for (i = 0; i<nexp; i++)
11112
 
#     {
11113
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
11114
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
11115
 
#     }
11116
 
#
11117
 
#     return 0;
11118
 
# }
11119
 
# /* impgen.c ends here */
11120
 
 
11121
 
EOF
11122
 
    ;;
11123
 
  esac
11124
 
 
11125
 
  # We use sed instead of cat because bash on DJGPP gets confused if
11126
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11127
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
11128
 
  # is reportedly fixed, but why not run on old versions too?
11129
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11130
 
 
11131
 
  mv -f "$cfgfile" "$ofile" || \
11132
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11133
 
  chmod +x "$ofile"
11134
 
 
11135
 
else
11136
 
  # If there is no Makefile yet, we rely on a make rule to execute
11137
 
  # `config.status --recheck' to rerun these tests and create the
11138
 
  # libtool script then.
11139
 
  test -f Makefile && make "$ltmain"
11140
 
fi
11141
 
 
11142
 
 
11143
 
ac_ext=c
11144
 
ac_cpp='$CPP $CPPFLAGS'
11145
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11146
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11147
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11148
 
 
11149
 
CC="$lt_save_CC"
11150
 
 
11151
 
 
11152
 
# Check whether --with-tags or --without-tags was given.
11153
 
if test "${with_tags+set}" = set; then
11154
 
  withval="$with_tags"
11155
 
  tagnames="$withval"
11156
 
else
11157
 
  tagnames="CXX,GCJ"
11158
 
    case $host_os in
11159
 
      mingw*|cygwin*) tagnames="$tagnames,RC" ;;
11160
 
    esac
11161
 
fi;
11162
 
 
11163
 
if test -f "$ltmain" && test -n "$tagnames"; then
11164
 
  if test ! -f "${ofile}"; then
11165
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11166
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11167
 
  fi
11168
 
 
11169
 
  if test -z "$LTCC"; then
11170
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11171
 
    if test -z "$LTCC"; then
11172
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11173
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11174
 
    else
11175
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11176
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11177
 
    fi
11178
 
  fi
11179
 
 
11180
 
  # Extract list of available tagged configurations in $ofile.
11181
 
  # Note that this assumes the entire list is on one line.
11182
 
  available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11183
 
 
11184
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11185
 
  for tagname in $tagnames; do
11186
 
    IFS="$lt_save_ifs"
11187
 
    # Check whether tagname contains only valid characters
11188
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11189
 
    "") ;;
11190
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11191
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11192
 
   { (exit 1); exit 1; }; }
11193
 
        ;;
11194
 
    esac
11195
 
 
11196
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11197
 
    then
11198
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11199
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11200
 
   { (exit 1); exit 1; }; }
11201
 
    fi
11202
 
 
11203
 
    # Update the list of available tags.
11204
 
    if test -n "$tagname"; then
11205
 
      echo appending configuration tag \"$tagname\" to $ofile
11206
 
 
11207
 
      case $tagname in
11208
 
      CXX)
11209
 
        ac_ext=cc
11210
 
ac_cpp='$CXXCPP $CPPFLAGS'
11211
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11214
 
 
11215
 
 
11216
 
 
11217
 
 
11218
 
archive_cmds_need_lc_CXX=no
11219
 
allow_undefined_flag_CXX=
11220
 
always_export_symbols_CXX=no
11221
 
archive_expsym_cmds_CXX=
11222
 
export_dynamic_flag_spec_CXX=
11223
 
hardcode_direct_CXX=no
11224
 
hardcode_libdir_flag_spec_CXX=
11225
 
hardcode_libdir_separator_CXX=
11226
 
hardcode_minus_L_CXX=no
11227
 
link_all_deplibs_CXX=unknown
11228
 
old_archive_cmds_CXX=$old_archive_cmds
11229
 
no_undefined_flag_CXX=
11230
 
whole_archive_flag_spec_CXX=
11231
 
 
11232
 
# Dependencies to place before and after the object being linked:
11233
 
predep_objects_CXX=
11234
 
postdep_objects_CXX=
11235
 
predeps_CXX=
11236
 
postdeps_CXX=
11237
 
compiler_lib_search_path_CXX=
11238
 
 
11239
 
# Source file extension for C test sources.
11240
 
ac_ext=cc
11241
 
 
11242
 
# Object file extension for compiled C test sources.
11243
 
objext=o
11244
 
objext_CXX=$objext
11245
 
 
11246
 
# Code to be used in simple compile tests
11247
 
lt_simple_compile_test_code="int some_variable = 0;"
11248
 
 
11249
 
# Code to be used in simple link tests
11250
 
lt_simple_link_test_code='int main(int char *) { return(0); }'
11251
 
 
11252
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11253
 
 
11254
 
# If no C compiler was specified, use CC.
11255
 
LTCC=${LTCC-"$CC"}
11256
 
 
11257
 
# Allow CC to be a program name with arguments.
11258
 
set dummy $CC
11259
 
compiler="$2"
11260
 
 
11261
 
 
11262
 
# Allow CC to be a program name with arguments.
11263
 
lt_save_CC="$CC"
11264
 
CC=${CXX-"c++"}
11265
 
set dummy $CC
11266
 
compiler="$2"
11267
 
compiler_CXX=$CC
11268
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11269
 
 
11270
 
# We don't want -fno-exception wen compiling C++ code, so set the
11271
 
# no_builtin_flag separately
11272
 
if test "$GXX" = yes; then
11273
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11274
 
else
11275
 
  lt_prog_compiler_no_builtin_flag_CXX=
11276
 
fi
11277
 
 
11278
 
if test "$GXX" = yes; then
11279
 
  # Set up default GNU C++ configuration
11280
 
 
11281
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11282
 
  # archiving commands below assume that GNU ld is being used.
11283
 
  if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
11284
 
      egrep 'GNU ld' > /dev/null; then
11285
 
    with_gnu_ld=yes
11286
 
 
11287
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11288
 
    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'
11289
 
 
11290
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11291
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11292
 
 
11293
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11294
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11295
 
    #     investigate it a little bit more. (MM)
11296
 
    wlarc='${wl}'
11297
 
 
11298
 
    # ancient GNU ld didn't support --whole-archive et. al.
11299
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11300
 
        egrep 'no-whole-archive' > /dev/null; then
11301
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11302
 
    else
11303
 
      whole_archive_flag_spec_CXX=
11304
 
    fi
11305
 
  else
11306
 
    with_gnu_ld=no
11307
 
    wlarc=
11308
 
 
11309
 
    # A generic and very simple default shared library creation
11310
 
    # command for GNU C++ for the case where it uses the native
11311
 
    # linker, instead of GNU ld.  If possible, this setting should
11312
 
    # overridden to take advantage of the native linker features on
11313
 
    # the platform it is being used on.
11314
 
    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11315
 
  fi
11316
 
 
11317
 
  # Commands to make compiler produce verbose output that lists
11318
 
  # what "hidden" libraries, object files and flags are used when
11319
 
  # linking a shared library.
11320
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
11321
 
 
11322
 
else
11323
 
  GXX=no
11324
 
  with_gnu_ld=no
11325
 
  wlarc=
11326
 
fi
11327
 
 
11328
 
# PORTME: fill in a description of your system's C++ link characteristics
11329
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11330
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11331
 
ld_shlibs_CXX=yes
11332
 
case $host_os in
11333
 
  aix3*)
11334
 
    # FIXME: insert proper C++ library support
11335
 
    ld_shlibs_CXX=no
11336
 
    ;;
11337
 
  aix4* | aix5*)
11338
 
    if test "$host_cpu" = ia64; then
11339
 
      # On IA64, the linker does run time linking by default, so we don't
11340
 
      # have to do anything special.
11341
 
      aix_use_runtimelinking=no
11342
 
      exp_sym_flag='-Bexport'
11343
 
      no_entry_flag=""
11344
 
    else
11345
 
      # KDE requires run time linking.  Make it the default.
11346
 
      aix_use_runtimelinking=yes
11347
 
      exp_sym_flag='-bexport'
11348
 
      no_entry_flag='-bnoentry'
11349
 
    fi
11350
 
 
11351
 
    # When large executables or shared objects are built, AIX ld can
11352
 
    # have problems creating the table of contents.  If linking a library
11353
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11354
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11355
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11356
 
 
11357
 
    archive_cmds_CXX=''
11358
 
    hardcode_direct_CXX=yes
11359
 
    hardcode_libdir_separator_CXX=':'
11360
 
    link_all_deplibs_CXX=yes
11361
 
 
11362
 
    if test "$GXX" = yes; then
11363
 
      case $host_os in aix4.012|aix4.012.*)
11364
 
      # We only want to do this on AIX 4.2 and lower, the check
11365
 
      # below for broken collect2 doesn't work under 4.3+
11366
 
        collect2name=`${CC} -print-prog-name=collect2`
11367
 
        if test -f "$collect2name" && \
11368
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11369
 
        then
11370
 
          # We have reworked collect2
11371
 
          hardcode_direct_CXX=yes
11372
 
        else
11373
 
          # We have old collect2
11374
 
          hardcode_direct_CXX=unsupported
11375
 
          # It fails to find uninstalled libraries when the uninstalled
11376
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11377
 
          # to unsupported forces relinking
11378
 
          hardcode_minus_L_CXX=yes
11379
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11380
 
          hardcode_libdir_separator_CXX=
11381
 
        fi
11382
 
      esac
11383
 
      shared_flag='-shared'
11384
 
    else
11385
 
      # not using gcc
11386
 
      if test "$host_cpu" = ia64; then
11387
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11388
 
        # chokes on -Wl,-G. The following line is correct:
11389
 
        shared_flag='-G'
11390
 
      else
11391
 
        if test "$aix_use_runtimelinking" = yes; then
11392
 
          shared_flag='-qmkshrobj ${wl}-G'
11393
 
        else
11394
 
          shared_flag='-qmkshrobj'
11395
 
        fi
11396
 
      fi
11397
 
    fi
11398
 
 
11399
 
    # Let the compiler handle the export list.
11400
 
    always_export_symbols_CXX=no
11401
 
    if test "$aix_use_runtimelinking" = yes; then
11402
 
      # Warning - without using the other runtime loading flags (-brtl),
11403
 
      # -berok will link without error, but may produce a broken library.
11404
 
      allow_undefined_flag_CXX='-berok'
11405
 
      # Determine the default libpath from the value encoded in an empty executable.
11406
 
      cat >conftest.$ac_ext <<_ACEOF
11407
 
#line $LINENO "configure"
11408
 
/* confdefs.h.  */
11409
 
_ACEOF
11410
 
cat confdefs.h >>conftest.$ac_ext
11411
 
cat >>conftest.$ac_ext <<_ACEOF
11412
 
/* end confdefs.h.  */
11413
 
 
11414
 
int
11415
 
main ()
11416
 
{
11417
 
 
11418
 
  ;
11419
 
  return 0;
11420
 
}
11421
 
_ACEOF
11422
 
rm -f conftest.$ac_objext conftest$ac_exeext
11423
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424
 
  (eval $ac_link) 2>&5
11425
 
  ac_status=$?
11426
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427
 
  (exit $ac_status); } &&
11428
 
         { ac_try='test -s conftest$ac_exeext'
11429
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430
 
  (eval $ac_try) 2>&5
11431
 
  ac_status=$?
11432
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433
 
  (exit $ac_status); }; }; then
11434
 
 
11435
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11436
 
}'`
11437
 
# Check for a 64-bit object if we didn't find anything.
11438
 
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; }
11439
 
}'`; fi
11440
 
else
11441
 
  echo "$as_me: failed program was:" >&5
11442
 
sed 's/^/| /' conftest.$ac_ext >&5
11443
 
 
11444
 
fi
11445
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11446
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11447
 
 
11448
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11449
 
 
11450
 
      archive_cmds_CXX="\$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"
11451
 
      archive_expsym_cmds_CXX="\$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"
11452
 
     else
11453
 
      if test "$host_cpu" = ia64; then
11454
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11455
 
        allow_undefined_flag_CXX="-z nodefs"
11456
 
        archive_expsym_cmds_CXX="\$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"
11457
 
      else
11458
 
        # Determine the default libpath from the value encoded in an empty executable.
11459
 
        cat >conftest.$ac_ext <<_ACEOF
11460
 
#line $LINENO "configure"
11461
 
/* confdefs.h.  */
11462
 
_ACEOF
11463
 
cat confdefs.h >>conftest.$ac_ext
11464
 
cat >>conftest.$ac_ext <<_ACEOF
11465
 
/* end confdefs.h.  */
11466
 
 
11467
 
int
11468
 
main ()
11469
 
{
11470
 
 
11471
 
  ;
11472
 
  return 0;
11473
 
}
11474
 
_ACEOF
11475
 
rm -f conftest.$ac_objext conftest$ac_exeext
11476
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11477
 
  (eval $ac_link) 2>&5
11478
 
  ac_status=$?
11479
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480
 
  (exit $ac_status); } &&
11481
 
         { ac_try='test -s conftest$ac_exeext'
11482
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483
 
  (eval $ac_try) 2>&5
11484
 
  ac_status=$?
11485
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486
 
  (exit $ac_status); }; }; then
11487
 
 
11488
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11489
 
}'`
11490
 
# Check for a 64-bit object if we didn't find anything.
11491
 
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; }
11492
 
}'`; fi
11493
 
else
11494
 
  echo "$as_me: failed program was:" >&5
11495
 
sed 's/^/| /' conftest.$ac_ext >&5
11496
 
 
11497
 
fi
11498
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11499
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11500
 
 
11501
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11502
 
        # Warning - without using the other run time loading flags,
11503
 
        # -berok will link without error, but may produce a broken library.
11504
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11505
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11506
 
        # -bexpall does not export symbols beginning with underscore (_)
11507
 
        always_export_symbols_CXX=yes
11508
 
        # Exported symbols can be pulled into shared objects from archives
11509
 
        whole_archive_flag_spec_CXX=' '
11510
 
        archive_cmds_need_lc_CXX=yes
11511
 
        # This is similar to how AIX traditionally builds it's shared libraries.
11512
 
        archive_expsym_cmds_CXX="\$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'
11513
 
      fi
11514
 
    fi
11515
 
    ;;
11516
 
  chorus*)
11517
 
    case $cc_basename in
11518
 
      *)
11519
 
        # FIXME: insert proper C++ library support
11520
 
        ld_shlibs_CXX=no
11521
 
        ;;
11522
 
    esac
11523
 
    ;;
11524
 
  dgux*)
11525
 
    case $cc_basename in
11526
 
      ec++)
11527
 
        # FIXME: insert proper C++ library support
11528
 
        ld_shlibs_CXX=no
11529
 
        ;;
11530
 
      ghcx)
11531
 
        # Green Hills C++ Compiler
11532
 
        # FIXME: insert proper C++ library support
11533
 
        ld_shlibs_CXX=no
11534
 
        ;;
11535
 
      *)
11536
 
        # FIXME: insert proper C++ library support
11537
 
        ld_shlibs_CXX=no
11538
 
        ;;
11539
 
    esac
11540
 
    ;;
11541
 
  freebsd12*)
11542
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11543
 
    ld_shlibs_CXX=no
11544
 
    ;;
11545
 
  freebsd-elf*)
11546
 
    archive_cmds_need_lc_CXX=no
11547
 
    ;;
11548
 
  freebsd*)
11549
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11550
 
    # conventions
11551
 
    ld_shlibs_CXX=yes
11552
 
    ;;
11553
 
  gnu*)
11554
 
    ;;
11555
 
  hpux*)
11556
 
    if test $with_gnu_ld = no; then
11557
 
      if test "$host_cpu" = ia64; then
11558
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
11559
 
      else
11560
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11561
 
        hardcode_libdir_separator_CXX=:
11562
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11563
 
      fi
11564
 
    fi
11565
 
    if test "$host_cpu" = ia64; then
11566
 
      hardcode_direct_CXX=no
11567
 
      hardcode_shlibpath_var_CXX=no
11568
 
    else
11569
 
      hardcode_direct_CXX=yes
11570
 
    fi
11571
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11572
 
                                            # but as the default
11573
 
                                            # location of the library.
11574
 
 
11575
 
    case $cc_basename in
11576
 
      CC)
11577
 
        # FIXME: insert proper C++ library support
11578
 
        ld_shlibs_CXX=no
11579
 
        ;;
11580
 
      aCC)
11581
 
        case $host_os in
11582
 
        hpux9*)
11583
 
          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'
11584
 
          ;;
11585
 
        *)
11586
 
          if test "$host_cpu" = ia64; then
11587
 
            archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11588
 
          else
11589
 
            archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11590
 
          fi
11591
 
          ;;
11592
 
        esac
11593
 
        # Commands to make compiler produce verbose output that lists
11594
 
        # what "hidden" libraries, object files and flags are used when
11595
 
        # linking a shared library.
11596
 
        #
11597
 
        # There doesn't appear to be a way to prevent this compiler from
11598
 
        # explicitly linking system object files so we need to strip them
11599
 
        # from the output so that they don't get included in the library
11600
 
        # dependencies.
11601
 
        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'
11602
 
        ;;
11603
 
      *)
11604
 
        if test "$GXX" = yes; then
11605
 
          if test $with_gnu_ld = no; then
11606
 
            case $host_os in
11607
 
            hpux9*)
11608
 
              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'
11609
 
              ;;
11610
 
            *)
11611
 
              if test "$host_cpu" = ia64; then
11612
 
                archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11613
 
              else
11614
 
                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'
11615
 
              fi
11616
 
              ;;
11617
 
            esac
11618
 
          fi
11619
 
        else
11620
 
          # FIXME: insert proper C++ library support
11621
 
          ld_shlibs_CXX=no
11622
 
        fi
11623
 
        ;;
11624
 
    esac
11625
 
    ;;
11626
 
  irix5* | irix6*)
11627
 
    case $cc_basename in
11628
 
      CC)
11629
 
        # SGI C++
11630
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11631
 
 
11632
 
        # Archives containing C++ object files must be created using
11633
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11634
 
        # necessary to make sure instantiated templates are included
11635
 
        # in the archive.
11636
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11637
 
        ;;
11638
 
      *)
11639
 
        if test "$GXX" = yes; then
11640
 
          if test "$with_gnu_ld" = no; then
11641
 
            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'
11642
 
          else
11643
 
            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'
11644
 
          fi
11645
 
        fi
11646
 
        link_all_deplibs_CXX=yes
11647
 
        ;;
11648
 
    esac
11649
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11650
 
    hardcode_libdir_separator_CXX=:
11651
 
    ;;
11652
 
  linux*)
11653
 
    case $cc_basename in
11654
 
      KCC)
11655
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11656
 
 
11657
 
        # KCC will only create a shared library if the output file
11658
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11659
 
        # to its proper name (with version) after linking.
11660
 
        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'
11661
 
        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'
11662
 
 
11663
 
        # Commands to make compiler produce verbose output that lists
11664
 
        # what "hidden" libraries, object files and flags are used when
11665
 
        # linking a shared library.
11666
 
        #
11667
 
        # There doesn't appear to be a way to prevent this compiler from
11668
 
        # explicitly linking system object files so we need to strip them
11669
 
        # from the output so that they don't get included in the library
11670
 
        # dependencies.
11671
 
        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'
11672
 
 
11673
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11674
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11675
 
 
11676
 
        # Archives containing C++ object files must be created using
11677
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11678
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11679
 
        ;;
11680
 
      cxx)
11681
 
        # Compaq C++
11682
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11683
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11684
 
 
11685
 
        runpath_var=LD_RUN_PATH
11686
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11687
 
        hardcode_libdir_separator_CXX=:
11688
 
 
11689
 
        # Commands to make compiler produce verbose output that lists
11690
 
        # what "hidden" libraries, object files and flags are used when
11691
 
        # linking a shared library.
11692
 
        #
11693
 
        # There doesn't appear to be a way to prevent this compiler from
11694
 
        # explicitly linking system object files so we need to strip them
11695
 
        # from the output so that they don't get included in the library
11696
 
        # dependencies.
11697
 
        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'
11698
 
        ;;
11699
 
    esac
11700
 
    ;;
11701
 
  lynxos*)
11702
 
    # FIXME: insert proper C++ library support
11703
 
    ld_shlibs_CXX=no
11704
 
    ;;
11705
 
  m88k*)
11706
 
    # FIXME: insert proper C++ library support
11707
 
    ld_shlibs_CXX=no
11708
 
    ;;
11709
 
  mvs*)
11710
 
    case $cc_basename in
11711
 
      cxx)
11712
 
        # FIXME: insert proper C++ library support
11713
 
        ld_shlibs_CXX=no
11714
 
        ;;
11715
 
      *)
11716
 
        # FIXME: insert proper C++ library support
11717
 
        ld_shlibs_CXX=no
11718
 
        ;;
11719
 
    esac
11720
 
    ;;
11721
 
  netbsd*)
11722
 
    # NetBSD uses g++ - do we need to do anything?
11723
 
    ;;
11724
 
  osf3*)
11725
 
    case $cc_basename in
11726
 
      KCC)
11727
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11728
 
 
11729
 
        # KCC will only create a shared library if the output file
11730
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11731
 
        # to its proper name (with version) after linking.
11732
 
        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'
11733
 
 
11734
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11735
 
        hardcode_libdir_separator_CXX=:
11736
 
 
11737
 
        # Archives containing C++ object files must be created using
11738
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11739
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11740
 
 
11741
 
        ;;
11742
 
      RCC)
11743
 
        # Rational C++ 2.4.1
11744
 
        # FIXME: insert proper C++ library support
11745
 
        ld_shlibs_CXX=no
11746
 
        ;;
11747
 
      cxx)
11748
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11749
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11750
 
 
11751
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11752
 
        hardcode_libdir_separator_CXX=:
11753
 
 
11754
 
        # Commands to make compiler produce verbose output that lists
11755
 
        # what "hidden" libraries, object files and flags are used when
11756
 
        # linking a shared library.
11757
 
        #
11758
 
        # There doesn't appear to be a way to prevent this compiler from
11759
 
        # explicitly linking system object files so we need to strip them
11760
 
        # from the output so that they don't get included in the library
11761
 
        # dependencies.
11762
 
        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'
11763
 
        ;;
11764
 
      *)
11765
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11766
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11767
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11768
 
 
11769
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11770
 
          hardcode_libdir_separator_CXX=:
11771
 
 
11772
 
          # Commands to make compiler produce verbose output that lists
11773
 
          # what "hidden" libraries, object files and flags are used when
11774
 
          # linking a shared library.
11775
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
11776
 
 
11777
 
        else
11778
 
          # FIXME: insert proper C++ library support
11779
 
          ld_shlibs_CXX=no
11780
 
        fi
11781
 
        ;;
11782
 
    esac
11783
 
    ;;
11784
 
  osf4* | osf5*)
11785
 
    case $cc_basename in
11786
 
      KCC)
11787
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11788
 
 
11789
 
        # KCC will only create a shared library if the output file
11790
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11791
 
        # to its proper name (with version) after linking.
11792
 
        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'
11793
 
 
11794
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11795
 
        hardcode_libdir_separator_CXX=:
11796
 
 
11797
 
        # Archives containing C++ object files must be created using
11798
 
        # the KAI C++ compiler.
11799
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11800
 
        ;;
11801
 
      RCC)
11802
 
        # Rational C++ 2.4.1
11803
 
        # FIXME: insert proper C++ library support
11804
 
        ld_shlibs_CXX=no
11805
 
        ;;
11806
 
      cxx)
11807
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
11808
 
        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'
11809
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
11810
 
          echo "-hidden">> $lib.exp~
11811
 
          $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~
11812
 
          $rm $lib.exp'
11813
 
 
11814
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11815
 
        hardcode_libdir_separator_CXX=:
11816
 
 
11817
 
        # Commands to make compiler produce verbose output that lists
11818
 
        # what "hidden" libraries, object files and flags are used when
11819
 
        # linking a shared library.
11820
 
        #
11821
 
        # There doesn't appear to be a way to prevent this compiler from
11822
 
        # explicitly linking system object files so we need to strip them
11823
 
        # from the output so that they don't get included in the library
11824
 
        # dependencies.
11825
 
        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'
11826
 
        ;;
11827
 
      *)
11828
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11829
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11830
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11831
 
 
11832
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11833
 
          hardcode_libdir_separator_CXX=:
11834
 
 
11835
 
          # Commands to make compiler produce verbose output that lists
11836
 
          # what "hidden" libraries, object files and flags are used when
11837
 
          # linking a shared library.
11838
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
11839
 
 
11840
 
        else
11841
 
          # FIXME: insert proper C++ library support
11842
 
          ld_shlibs_CXX=no
11843
 
        fi
11844
 
        ;;
11845
 
    esac
11846
 
    ;;
11847
 
  psos*)
11848
 
    # FIXME: insert proper C++ library support
11849
 
    ld_shlibs_CXX=no
11850
 
    ;;
11851
 
  sco*)
11852
 
    archive_cmds_need_lc_CXX=no
11853
 
    case $cc_basename in
11854
 
      CC)
11855
 
        # FIXME: insert proper C++ library support
11856
 
        ld_shlibs_CXX=no
11857
 
        ;;
11858
 
      *)
11859
 
        # FIXME: insert proper C++ library support
11860
 
        ld_shlibs_CXX=no
11861
 
        ;;
11862
 
    esac
11863
 
    ;;
11864
 
  sunos4*)
11865
 
    case $cc_basename in
11866
 
      CC)
11867
 
        # Sun C++ 4.x
11868
 
        # FIXME: insert proper C++ library support
11869
 
        ld_shlibs_CXX=no
11870
 
        ;;
11871
 
      lcc)
11872
 
        # Lucid
11873
 
        # FIXME: insert proper C++ library support
11874
 
        ld_shlibs_CXX=no
11875
 
        ;;
11876
 
      *)
11877
 
        # FIXME: insert proper C++ library support
11878
 
        ld_shlibs_CXX=no
11879
 
        ;;
11880
 
    esac
11881
 
    ;;
11882
 
  solaris*)
11883
 
    case $cc_basename in
11884
 
      CC)
11885
 
        # Sun C++ 4.2, 5.x and Centerline C++
11886
 
        no_undefined_flag_CXX=' -zdefs'
11887
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11888
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11889
 
        $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'
11890
 
 
11891
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11892
 
        hardcode_shlibpath_var_CXX=no
11893
 
        case $host_os in
11894
 
          solaris2.0-5 | solaris2.0-5.*) ;;
11895
 
          *)
11896
 
            # The C++ compiler is used as linker so we must use $wl
11897
 
            # flag to pass the commands to the underlying system
11898
 
            # linker.
11899
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11900
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11901
 
            ;;
11902
 
        esac
11903
 
        link_all_deplibs_CXX=yes
11904
 
 
11905
 
        # Commands to make compiler produce verbose output that lists
11906
 
        # what "hidden" libraries, object files and flags are used when
11907
 
        # linking a shared library.
11908
 
        #
11909
 
        # There doesn't appear to be a way to prevent this compiler from
11910
 
        # explicitly linking system object files so we need to strip them
11911
 
        # from the output so that they don't get included in the library
11912
 
        # dependencies.
11913
 
        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'
11914
 
 
11915
 
        # Archives containing C++ object files must be created using
11916
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11917
 
        # necessary to make sure instantiated templates are included
11918
 
        # in the archive.
11919
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11920
 
        ;;
11921
 
      gcx)
11922
 
        # Green Hills C++ Compiler
11923
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11924
 
 
11925
 
        # The C++ compiler must be used to create the archive.
11926
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11927
 
        ;;
11928
 
      *)
11929
 
        # GNU C++ compiler with Solaris linker
11930
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11931
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11932
 
          if $CC --version | egrep -v '^2\.7' > /dev/null; then
11933
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
11934
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11935
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
11936
 
 
11937
 
            # Commands to make compiler produce verbose output that lists
11938
 
            # what "hidden" libraries, object files and flags are used when
11939
 
            # linking a shared library.
11940
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
11941
 
          else
11942
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11943
 
            # platform.
11944
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
11945
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11946
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
11947
 
 
11948
 
            # Commands to make compiler produce verbose output that lists
11949
 
            # what "hidden" libraries, object files and flags are used when
11950
 
            # linking a shared library.
11951
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
11952
 
          fi
11953
 
 
11954
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11955
 
        fi
11956
 
        ;;
11957
 
    esac
11958
 
    ;;
11959
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11960
 
    archive_cmds_need_lc_CXX=no
11961
 
    ;;
11962
 
  tandem*)
11963
 
    case $cc_basename in
11964
 
      NCC)
11965
 
        # NonStop-UX NCC 3.20
11966
 
        # FIXME: insert proper C++ library support
11967
 
        ld_shlibs_CXX=no
11968
 
        ;;
11969
 
      *)
11970
 
        # FIXME: insert proper C++ library support
11971
 
        ld_shlibs_CXX=no
11972
 
        ;;
11973
 
    esac
11974
 
    ;;
11975
 
  vxworks*)
11976
 
    # FIXME: insert proper C++ library support
11977
 
    ld_shlibs_CXX=no
11978
 
    ;;
11979
 
  *)
11980
 
    # FIXME: insert proper C++ library support
11981
 
    ld_shlibs_CXX=no
11982
 
    ;;
11983
 
esac
11984
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11985
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11986
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
11987
 
 
11988
 
# Figure out "hidden" C++ library dependencies from verbose
11989
 
# compiler output whening linking a shared library.
11990
 
cat > conftest.$ac_ext <<EOF
11991
 
class Foo
11992
 
{
11993
 
public:
11994
 
  Foo (void) { a = 0; }
11995
 
private:
11996
 
  int a;
11997
 
};
11998
 
EOF
11999
 
 
12000
 
 
12001
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002
 
  (eval $ac_compile) 2>&5
12003
 
  ac_status=$?
12004
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005
 
  (exit $ac_status); }; then
12006
 
  # Parse the compiler output and extract the necessary
12007
 
  # objects, libraries and library flags.
12008
 
 
12009
 
  # Sentinel used to keep track of whether or not we are before
12010
 
  # the conftest object file.
12011
 
  pre_test_object_deps_done=no
12012
 
 
12013
 
  # The `*' in the case matches for architectures that use `case' in
12014
 
  # $output_verbose_cmd can trigger glob expansion during the loop
12015
 
  # eval without this substitution.
12016
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12017
 
 
12018
 
  for p in `eval $output_verbose_link_cmd`; do
12019
 
    case $p in
12020
 
 
12021
 
    -L* | -R* | -l*)
12022
 
       # Some compilers place space between "-{L,R}" and the path.
12023
 
       # Remove the space.
12024
 
       if test $p = "-L" \
12025
 
          || test $p = "-R"; then
12026
 
         prev=$p
12027
 
         continue
12028
 
       else
12029
 
         prev=
12030
 
       fi
12031
 
 
12032
 
       if test "$pre_test_object_deps_done" = no; then
12033
 
         case $p in
12034
 
         -L* | -R*)
12035
 
           # Internal compiler library paths should come after those
12036
 
           # provided the user.  The postdeps already come after the
12037
 
           # user supplied libs so there is no need to process them.
12038
 
           if test -z "$compiler_lib_search_path_CXX"; then
12039
 
             compiler_lib_search_path_CXX="${prev}${p}"
12040
 
           else
12041
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12042
 
           fi
12043
 
           ;;
12044
 
         # The "-l" case would never come before the object being
12045
 
         # linked, so don't bother handling this case.
12046
 
         esac
12047
 
       else
12048
 
         if test -z "$postdeps_CXX"; then
12049
 
           postdeps_CXX="${prev}${p}"
12050
 
         else
12051
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12052
 
         fi
12053
 
       fi
12054
 
       ;;
12055
 
 
12056
 
    *.$objext|*.$libext)
12057
 
       # This assumes that the test object file only shows up
12058
 
       # once in the compiler output.
12059
 
       if test "$p" = "conftest.$objext"; then
12060
 
         pre_test_object_deps_done=yes
12061
 
         continue
12062
 
       fi
12063
 
 
12064
 
       if test "$pre_test_object_deps_done" = no; then
12065
 
         if test -z "$predep_objects_CXX"; then
12066
 
           predep_objects_CXX="$p"
12067
 
         else
12068
 
           predep_objects_CXX="$predep_objects_CXX $p"
12069
 
         fi
12070
 
       else
12071
 
         if test -z "$postdep_objects_CXX"; then
12072
 
           postdep_objects_CXX="$p"
12073
 
         else
12074
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12075
 
         fi
12076
 
       fi
12077
 
       ;;
12078
 
 
12079
 
    *) ;; # Ignore the rest.
12080
 
 
12081
 
    esac
12082
 
  done
12083
 
 
12084
 
  # Clean up.
12085
 
  rm -f a.out
12086
 
else
12087
 
  echo "libtool.m4: error: problem compiling C++ test program"
12088
 
fi
12089
 
 
12090
 
$rm -f confest.$objext
12091
 
 
12092
 
case " $postdeps_CXX " in
12093
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12094
 
*) archive_cmds_need_lc_CXX=yes ;;
12095
 
esac
12096
 
 
12097
 
GCC_CXX="$GXX"
12098
 
LD_CXX="$LD"
12099
 
 
12100
 
lt_prog_compiler_wl_CXX=
12101
 
lt_prog_compiler_pic_CXX=
12102
 
lt_prog_compiler_static_CXX=
12103
 
 
12104
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12105
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12106
 
 
12107
 
  # C++ specific cases for pic, static, wl, etc.
12108
 
  if test "$GXX" = yes; then
12109
 
    lt_prog_compiler_wl_CXX='-Wl,'
12110
 
    lt_prog_compiler_static_CXX='-static'
12111
 
 
12112
 
    case $host_os in
12113
 
    aix*)
12114
 
      # All AIX code is PIC.
12115
 
      if test "$host_cpu" = ia64; then
12116
 
        # AIX 5 now supports IA64 processor
12117
 
        lt_prog_compiler_static_CXX='-Bstatic'
12118
 
      fi
12119
 
      ;;
12120
 
    amigaos*)
12121
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12122
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12123
 
      # like `-m68040'.
12124
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12125
 
      ;;
12126
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12127
 
      # PIC is the default for these OSes.
12128
 
      ;;
12129
 
    cygwin* | mingw* | os2*)
12130
 
      # This hack is so that the source file can tell whether it is being
12131
 
      # built for inclusion in a dll (and should export symbols for example).
12132
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12133
 
      ;;
12134
 
    darwin* | rhapsody*)
12135
 
      # PIC is the default on this platform
12136
 
      # Common symbols not allowed in MH_DYLIB files
12137
 
      lt_prog_compiler_pic_CXX='-fno-common'
12138
 
      ;;
12139
 
    *djgpp*)
12140
 
      # DJGPP does not support shared libraries at all
12141
 
      lt_prog_compiler_pic_CXX=
12142
 
      ;;
12143
 
    sysv4*MP*)
12144
 
      if test -d /usr/nec; then
12145
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12146
 
      fi
12147
 
      ;;
12148
 
    hpux*)
12149
 
      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
12150
 
      if test "$host_cpu" != ia64; then
12151
 
        lt_prog_compiler_pic_CXX='-fPIC'
12152
 
      fi
12153
 
      ;;
12154
 
    *)
12155
 
      lt_prog_compiler_pic_CXX='-fPIC'
12156
 
      ;;
12157
 
    esac
12158
 
  else
12159
 
    case $host_os in
12160
 
      aix4* | aix5*)
12161
 
        # All AIX code is PIC.
12162
 
        if test "$host_cpu" = ia64; then
12163
 
          # AIX 5 now supports IA64 processor
12164
 
          lt_prog_compiler_static_CXX='-Bstatic'
12165
 
        else
12166
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12167
 
        fi
12168
 
        ;;
12169
 
      chorus*)
12170
 
        case $cc_basename in
12171
 
        cxch68)
12172
 
          # Green Hills C++ Compiler
12173
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12174
 
          ;;
12175
 
        esac
12176
 
        ;;
12177
 
      dgux*)
12178
 
        case $cc_basename in
12179
 
          ec++)
12180
 
            lt_prog_compiler_pic_CXX='-KPIC'
12181
 
            ;;
12182
 
          ghcx)
12183
 
            # Green Hills C++ Compiler
12184
 
            lt_prog_compiler_pic_CXX='-pic'
12185
 
            ;;
12186
 
          *)
12187
 
            ;;
12188
 
        esac
12189
 
        ;;
12190
 
      freebsd*)
12191
 
        # FreeBSD uses GNU C++
12192
 
        ;;
12193
 
      hpux9* | hpux10* | hpux11*)
12194
 
        case $cc_basename in
12195
 
          CC)
12196
 
            lt_prog_compiler_wl_CXX='-Wl,'
12197
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12198
 
            if test "$host_cpu" != ia64; then
12199
 
              lt_prog_compiler_pic_CXX='+Z'
12200
 
            fi
12201
 
            ;;
12202
 
          aCC)
12203
 
            lt_prog_compiler_wl_CXX='-Wl,'
12204
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12205
 
            if test "$host_cpu" != ia64; then
12206
 
              lt_prog_compiler_pic_CXX='+Z'
12207
 
            fi
12208
 
            ;;
12209
 
          *)
12210
 
            ;;
12211
 
        esac
12212
 
        ;;
12213
 
      irix5* | irix6* | nonstopux*)
12214
 
        case $cc_basename in
12215
 
          CC)
12216
 
            lt_prog_compiler_wl_CXX='-Wl,'
12217
 
            lt_prog_compiler_static_CXX='-non_shared'
12218
 
            # CC pic flag -KPIC is the default.
12219
 
            ;;
12220
 
          *)
12221
 
            ;;
12222
 
        esac
12223
 
        ;;
12224
 
      linux*)
12225
 
        case $cc_basename in
12226
 
          KCC)
12227
 
            # KAI C++ Compiler
12228
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12229
 
            lt_prog_compiler_pic_CXX='-fPIC'
12230
 
            ;;
12231
 
          cxx)
12232
 
            # Compaq C++
12233
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12234
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12235
 
            lt_prog_compiler_pic_CXX=
12236
 
            lt_prog_compiler_static_CXX='-non_shared'
12237
 
            ;;
12238
 
          *)
12239
 
            ;;
12240
 
        esac
12241
 
        ;;
12242
 
      lynxos*)
12243
 
        ;;
12244
 
      m88k*)
12245
 
        ;;
12246
 
      mvs*)
12247
 
        case $cc_basename in
12248
 
          cxx)
12249
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12250
 
            ;;
12251
 
          *)
12252
 
            ;;
12253
 
        esac
12254
 
        ;;
12255
 
      netbsd*)
12256
 
        ;;
12257
 
      osf3* | osf4* | osf5*)
12258
 
        case $cc_basename in
12259
 
          KCC)
12260
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12261
 
            ;;
12262
 
          RCC)
12263
 
            # Rational C++ 2.4.1
12264
 
            lt_prog_compiler_pic_CXX='-pic'
12265
 
            ;;
12266
 
          cxx)
12267
 
            # Digital/Compaq C++
12268
 
            lt_prog_compiler_wl_CXX='-Wl,'
12269
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12270
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12271
 
            lt_prog_compiler_pic_CXX=
12272
 
            lt_prog_compiler_static_CXX='-non_shared'
12273
 
            ;;
12274
 
          *)
12275
 
            ;;
12276
 
        esac
12277
 
        ;;
12278
 
      psos*)
12279
 
        ;;
12280
 
      sco*)
12281
 
        case $cc_basename in
12282
 
          CC)
12283
 
            lt_prog_compiler_pic_CXX='-fPIC'
12284
 
            ;;
12285
 
          *)
12286
 
            ;;
12287
 
        esac
12288
 
        ;;
12289
 
      solaris*)
12290
 
        case $cc_basename in
12291
 
          CC)
12292
 
            # Sun C++ 4.2, 5.x and Centerline C++
12293
 
            lt_prog_compiler_pic_CXX='-KPIC'
12294
 
            lt_prog_compiler_static_CXX='-Bstatic'
12295
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12296
 
            ;;
12297
 
          gcx)
12298
 
            # Green Hills C++ Compiler
12299
 
            lt_prog_compiler_pic_CXX='-PIC'
12300
 
            ;;
12301
 
          *)
12302
 
            ;;
12303
 
        esac
12304
 
        ;;
12305
 
      sunos4*)
12306
 
        case $cc_basename in
12307
 
          CC)
12308
 
            # Sun C++ 4.x
12309
 
            lt_prog_compiler_pic_CXX='-pic'
12310
 
            lt_prog_compiler_static_CXX='-Bstatic'
12311
 
            ;;
12312
 
          lcc)
12313
 
            # Lucid
12314
 
            lt_prog_compiler_pic_CXX='-pic'
12315
 
            ;;
12316
 
          *)
12317
 
            ;;
12318
 
        esac
12319
 
        ;;
12320
 
      tandem*)
12321
 
        case $cc_basename in
12322
 
          NCC)
12323
 
            # NonStop-UX NCC 3.20
12324
 
            lt_prog_compiler_pic_CXX='-KPIC'
12325
 
            ;;
12326
 
          *)
12327
 
            ;;
12328
 
        esac
12329
 
        ;;
12330
 
      unixware*)
12331
 
        ;;
12332
 
      vxworks*)
12333
 
        ;;
12334
 
      *)
12335
 
        lt_prog_compiler_can_build_shared_CXX=no
12336
 
        ;;
12337
 
    esac
12338
 
  fi
12339
 
 
12340
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12341
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12342
 
 
12343
 
#
12344
 
# Check to make sure the PIC flag actually works.
12345
 
#
12346
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12347
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12348
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12349
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12350
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12351
 
else
12352
 
  lt_prog_compiler_pic_works_CXX=no
12353
 
  ac_outfile=conftest.$ac_objext
12354
 
   save_CFLAGS="$CFLAGS"
12355
 
   CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
12356
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12357
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
12358
 
     # The compiler can only warn and ignore the option if not recognized
12359
 
     # So say no if there are warnings
12360
 
     if test -s conftest.err; then
12361
 
       # Append any errors to the config.log.
12362
 
       cat conftest.err 1>&5
12363
 
     else
12364
 
       lt_prog_compiler_pic_works_CXX=yes
12365
 
     fi
12366
 
   fi
12367
 
   $rm conftest*
12368
 
   CFLAGS="$save_CFLAGS"
12369
 
 
12370
 
fi
12371
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12372
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12373
 
 
12374
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12375
 
    case $lt_prog_compiler_pic_CXX in
12376
 
     "" | " "*) ;;
12377
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12378
 
     esac
12379
 
else
12380
 
    lt_prog_compiler_pic_CXX=
12381
 
     lt_prog_compiler_can_build_shared_CXX=no
12382
 
fi
12383
 
 
12384
 
fi
12385
 
case "$host_os" in
12386
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12387
 
  *djgpp*)
12388
 
    lt_prog_compiler_pic_CXX=
12389
 
    ;;
12390
 
  *)
12391
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12392
 
    ;;
12393
 
esac
12394
 
 
12395
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12396
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12397
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12398
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12399
 
else
12400
 
  lt_cv_prog_compiler_c_o_CXX=no
12401
 
   $rm -r conftest 2>/dev/null
12402
 
   mkdir conftest
12403
 
   cd conftest
12404
 
   mkdir out
12405
 
   save_CXXFLAGS="$CXXFLAGS"
12406
 
                   CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
12407
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12408
 
 
12409
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12410
 
   # that will create temporary files in the current directory regardless of
12411
 
   # the output directory.  Thus, making CWD read-only will cause this test
12412
 
   # to fail, enabling locking or at least warning the user not to do parallel
12413
 
   # builds.
12414
 
   chmod -w .
12415
 
 
12416
 
   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
12417
 
   then
12418
 
     # The compiler can only warn and ignore the option if not recognized
12419
 
     # So say no if there are warnings
12420
 
     if test -s out/conftest.err; then
12421
 
       # Append any errors to the config.log.
12422
 
       cat out/conftest.err 1>&5
12423
 
     else
12424
 
       lt_cv_prog_compiler_c_o_CXX=yes
12425
 
     fi
12426
 
   fi
12427
 
   CXXFLAGS="$save_CXXFLAGS"
12428
 
   chmod u+w .
12429
 
   $rm conftest* out/*
12430
 
   rmdir out
12431
 
   cd ..
12432
 
   rmdir conftest
12433
 
   $rm conftest*
12434
 
 
12435
 
fi
12436
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12437
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12438
 
 
12439
 
 
12440
 
hard_links="nottested"
12441
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12442
 
  # do not overwrite the value of need_locks provided by the user
12443
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12444
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12445
 
  hard_links=yes
12446
 
  $rm conftest*
12447
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12448
 
  touch conftest.a
12449
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
12450
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12451
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
12452
 
echo "${ECHO_T}$hard_links" >&6
12453
 
  if test "$hard_links" = no; then
12454
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12455
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12456
 
    need_locks=warn
12457
 
  fi
12458
 
else
12459
 
  need_locks=no
12460
 
fi
12461
 
 
12462
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12463
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12464
 
 
12465
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12466
 
  case $host_os in
12467
 
  aix4* | aix5*)
12468
 
    # If we're using GNU nm, then we don't want the "-C" option.
12469
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12470
 
    if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
12471
 
      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'
12472
 
    else
12473
 
      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'
12474
 
    fi
12475
 
    ;;
12476
 
  cygwin* | mingw* | pw32*)
12477
 
    export_symbols_cmds_CXX="$ltdll_cmds"
12478
 
  ;;
12479
 
  *)
12480
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12481
 
  ;;
12482
 
  esac
12483
 
 
12484
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12485
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12486
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12487
 
 
12488
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12489
 
if test "$GCC" = yes; then
12490
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12491
 
fi
12492
 
 
12493
 
#
12494
 
# Do we need to explicitly link libc?
12495
 
#
12496
 
archive_cmds_need_lc_CXX=yes
12497
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
12498
 
  case $archive_cmds_CXX in
12499
 
  *'~'*)
12500
 
    # FIXME: we may have to deal with multi-command sequences.
12501
 
    ;;
12502
 
  '$CC '*)
12503
 
    # Test whether the compiler implicitly links with -lc since on some
12504
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
12505
 
    # to ld, don't add -lc before -lgcc.
12506
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12507
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12508
 
    $rm conftest*
12509
 
    echo 'static int dummy;' > conftest.$ac_ext
12510
 
 
12511
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512
 
  (eval $ac_compile) 2>&5
12513
 
  ac_status=$?
12514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515
 
  (exit $ac_status); } 2>conftest.err; then
12516
 
      soname=conftest
12517
 
      lib=conftest
12518
 
      libobjs=conftest.$ac_objext
12519
 
      deplibs=
12520
 
      wl=$lt_prog_compiler_wl_CXX
12521
 
      compiler_flags=-v
12522
 
      linker_flags=-v
12523
 
      verstring=
12524
 
      output_objdir=.
12525
 
      libname=conftest
12526
 
      lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12527
 
      allow_undefined_flag_CXX=
12528
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12529
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12530
 
  ac_status=$?
12531
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532
 
  (exit $ac_status); }
12533
 
      then
12534
 
        archive_cmds_need_lc_CXX=no
12535
 
      else
12536
 
        archive_cmds_need_lc_CXX=yes
12537
 
      fi
12538
 
      allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12539
 
    else
12540
 
      cat conftest.err 1>&5
12541
 
    fi
12542
 
    $rm conftest*
12543
 
    echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12544
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12545
 
    ;;
12546
 
  esac
12547
 
fi
12548
 
 
12549
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12550
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12551
 
hardcode_action_CXX=
12552
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12553
 
   test -n "$runpath_var CXX"; then
12554
 
 
12555
 
  # We can hardcode non-existant directories.
12556
 
  if test "$hardcode_direct_CXX" != no &&
12557
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12558
 
     # have to relink, otherwise we might link with an installed library
12559
 
     # when we should be linking with a yet-to-be-installed one
12560
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12561
 
     test "$hardcode_minus_L_CXX" != no; then
12562
 
    # Linking always hardcodes the temporary library directory.
12563
 
    hardcode_action_CXX=relink
12564
 
  else
12565
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12566
 
    hardcode_action_CXX=immediate
12567
 
  fi
12568
 
else
12569
 
  # We cannot hardcode anything, or else we can only hardcode existing
12570
 
  # directories.
12571
 
  hardcode_action_CXX=unsupported
12572
 
fi
12573
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12574
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
12575
 
 
12576
 
if test "$hardcode_action_CXX" = relink; then
12577
 
  # Fast installation is not supported
12578
 
  enable_fast_install=no
12579
 
elif test "$shlibpath_overrides_runpath" = yes ||
12580
 
     test "$enable_shared" = no; then
12581
 
  # Fast installation is not necessary
12582
 
  enable_fast_install=needless
12583
 
fi
12584
 
 
12585
 
striplib=
12586
 
old_striplib=
12587
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12588
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12589
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12590
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12591
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12592
 
  echo "$as_me:$LINENO: result: yes" >&5
12593
 
echo "${ECHO_T}yes" >&6
12594
 
else
12595
 
  echo "$as_me:$LINENO: result: no" >&5
12596
 
echo "${ECHO_T}no" >&6
12597
 
fi
12598
 
 
12599
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12600
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12601
 
library_names_spec=
12602
 
libname_spec='lib$name'
12603
 
soname_spec=
12604
 
postinstall_cmds=
12605
 
postuninstall_cmds=
12606
 
finish_cmds=
12607
 
finish_eval=
12608
 
shlibpath_var=
12609
 
shlibpath_overrides_runpath=unknown
12610
 
version_type=none
12611
 
dynamic_linker="$host_os ld.so"
12612
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12613
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12614
 
need_lib_prefix=unknown
12615
 
hardcode_into_libs=no
12616
 
 
12617
 
# when you set need_version to no, make sure it does not cause -set_version
12618
 
# flags to be left without arguments
12619
 
need_version=unknown
12620
 
 
12621
 
case $host_os in
12622
 
aix3*)
12623
 
  version_type=linux
12624
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
12625
 
  shlibpath_var=LIBPATH
12626
 
 
12627
 
  # AIX 3 has no versioning support, so we append a major version to the name.
12628
 
  soname_spec='${libname}${release}.so$major'
12629
 
  ;;
12630
 
 
12631
 
aix4* | aix5*)
12632
 
  version_type=linux
12633
 
  if test "$host_cpu" = ia64; then
12634
 
    # AIX 5 supports IA64
12635
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
12636
 
    shlibpath_var=LD_LIBRARY_PATH
12637
 
  else
12638
 
    # With GCC up to 2.95.x, collect2 would create an import file
12639
 
    # for dependence libraries.  The import file would start with
12640
 
    # the line `#! .'.  This would cause the generated library to
12641
 
    # depend on `.', always an invalid library.  This was fixed in
12642
 
    # development snapshots of GCC prior to 3.0.
12643
 
    case $host_os in
12644
 
      aix4 | aix4.[01] | aix4.[01].*)
12645
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12646
 
           echo ' yes '
12647
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12648
 
        :
12649
 
      else
12650
 
        can_build_shared=no
12651
 
      fi
12652
 
      ;;
12653
 
    esac
12654
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12655
 
    # soname into executable. Probably we can add versioning support to
12656
 
    # collect2, so additional links can be useful in future.
12657
 
    if test "$aix_use_runtimelinking" = yes; then
12658
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12659
 
      # instead of lib<name>.a to let people know that these are not
12660
 
      # typical AIX shared libraries.
12661
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12662
 
    else
12663
 
      # We preserve .a as extension for shared libraries through AIX4.2
12664
 
      # and later when we are not doing run time linking.
12665
 
      library_names_spec='${libname}${release}.a $libname.a'
12666
 
      soname_spec='${libname}${release}.so$major'
12667
 
    fi
12668
 
    shlibpath_var=LIBPATH
12669
 
  fi
12670
 
  ;;
12671
 
 
12672
 
amigaos*)
12673
 
  library_names_spec='$libname.ixlibrary $libname.a'
12674
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12675
 
  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'
12676
 
  ;;
12677
 
 
12678
 
beos*)
12679
 
  library_names_spec='${libname}.so'
12680
 
  dynamic_linker="$host_os ld.so"
12681
 
  shlibpath_var=LIBRARY_PATH
12682
 
  ;;
12683
 
 
12684
 
bsdi4*)
12685
 
  version_type=linux
12686
 
  need_version=no
12687
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12688
 
  soname_spec='${libname}${release}.so$major'
12689
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12690
 
  shlibpath_var=LD_LIBRARY_PATH
12691
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12692
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12693
 
  # the default ld.so.conf also contains /usr/contrib/lib and
12694
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12695
 
  # libtool to hard-code these into programs
12696
 
  ;;
12697
 
 
12698
 
cygwin* | mingw* | pw32*)
12699
 
  version_type=windows
12700
 
  need_version=no
12701
 
  need_lib_prefix=no
12702
 
  case $GCC,$host_os in
12703
 
  yes,cygwin*)
12704
 
    library_names_spec='$libname.dll.a'
12705
 
    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
12706
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
12707
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
12708
 
      dldir=$destdir/`dirname \$dlpath`~
12709
 
      test -d \$dldir || mkdir -p \$dldir~
12710
 
      $install_prog .libs/$dlname \$dldir/$dlname'
12711
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
12712
 
      dlpath=$dir/\$dldll~
12713
 
       $rm \$dlpath'
12714
 
    ;;
12715
 
  yes,mingw*)
12716
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
12717
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
12718
 
    if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
12719
 
      # It is most probably a Windows format PATH printed by
12720
 
      # mingw gcc, but we are running on Cygwin. Gcc prints its search
12721
 
      # path with ; separators, and with drive letters. We can handle the
12722
 
      # drive letters (cygwin fileutils understands them), so leave them,
12723
 
      # especially as we might pass files found there to a mingw objdump,
12724
 
      # which wouldn't understand a cygwinified path. Ahh.
12725
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
12726
 
    else
12727
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed  -e "s/$PATH_SEPARATOR/ /g"`
12728
 
    fi
12729
 
    ;;
12730
 
  yes,pw32*)
12731
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
12732
 
    ;;
12733
 
  *)
12734
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
12735
 
    ;;
12736
 
  esac
12737
 
  dynamic_linker='Win32 ld.exe'
12738
 
  # FIXME: first we should search . and the directory the executable is in
12739
 
  shlibpath_var=PATH
12740
 
  ;;
12741
 
 
12742
 
darwin* | rhapsody*)
12743
 
  dynamic_linker="$host_os dyld"
12744
 
  version_type=darwin
12745
 
  need_lib_prefix=no
12746
 
  need_version=no
12747
 
  # FIXME: Relying on posixy $() will cause problems for
12748
 
  #        cross-compilation, but unfortunately the echo tests do not
12749
 
  #        yet detect zsh echo's removal of \ escapes.
12750
 
  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)'
12751
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
12752
 
  shlibpath_overrides_runpath=yes
12753
 
  shlibpath_var=DYLD_LIBRARY_PATH
12754
 
  ;;
12755
 
 
12756
 
dgux*)
12757
 
  version_type=linux
12758
 
  need_lib_prefix=no
12759
 
  need_version=no
12760
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12761
 
  soname_spec='${libname}${release}.so$major'
12762
 
  shlibpath_var=LD_LIBRARY_PATH
12763
 
  ;;
12764
 
 
12765
 
freebsd1*)
12766
 
  dynamic_linker=no
12767
 
  ;;
12768
 
 
12769
 
freebsd*)
12770
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12771
 
  version_type=freebsd-$objformat
12772
 
  case $version_type in
12773
 
    freebsd-elf*)
12774
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
12775
 
      need_version=no
12776
 
      need_lib_prefix=no
12777
 
      ;;
12778
 
    freebsd-*)
12779
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
12780
 
      need_version=yes
12781
 
      ;;
12782
 
  esac
12783
 
  shlibpath_var=LD_LIBRARY_PATH
12784
 
  case $host_os in
12785
 
  freebsd2*)
12786
 
    shlibpath_overrides_runpath=yes
12787
 
    ;;
12788
 
  freebsd3.01* | freebsdelf3.01*)
12789
 
    shlibpath_overrides_runpath=yes
12790
 
    hardcode_into_libs=yes
12791
 
    ;;
12792
 
  *) # from 3.2 on
12793
 
    shlibpath_overrides_runpath=no
12794
 
    hardcode_into_libs=yes
12795
 
    ;;
12796
 
  esac
12797
 
  ;;
12798
 
 
12799
 
gnu*)
12800
 
  version_type=linux
12801
 
  need_lib_prefix=no
12802
 
  need_version=no
12803
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
12804
 
  soname_spec='${libname}${release}.so$major'
12805
 
  shlibpath_var=LD_LIBRARY_PATH
12806
 
  hardcode_into_libs=yes
12807
 
  ;;
12808
 
 
12809
 
hpux9* | hpux10* | hpux11*)
12810
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
12811
 
  # link against other versions.
12812
 
  version_type=sunos
12813
 
  need_lib_prefix=no
12814
 
  need_version=no
12815
 
  if test "$host_cpu" = ia64; then
12816
 
    hardcode_into_libs=yes
12817
 
    dynamic_linker="$host_os dld.so"
12818
 
    shlibpath_var=LD_LIBRARY_PATH
12819
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12820
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12821
 
    soname_spec='${libname}${release}.so$major'
12822
 
    if test "X$HPUX_IA64_MODE" = X32; then
12823
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12824
 
    else
12825
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12826
 
    fi
12827
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12828
 
  else
12829
 
    dynamic_linker="$host_os dld.sl"
12830
 
    shlibpath_var=SHLIB_PATH
12831
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12832
 
    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
12833
 
    soname_spec='${libname}${release}.sl$major'
12834
 
  fi
12835
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12836
 
  postinstall_cmds='chmod 555 $lib'
12837
 
  ;;
12838
 
 
12839
 
irix5* | irix6* | nonstopux*)
12840
 
  case $host_os in
12841
 
    nonstopux*) version_type=nonstopux ;;
12842
 
    *)          version_type=irix ;;
12843
 
  esac
12844
 
  need_lib_prefix=no
12845
 
  need_version=no
12846
 
  soname_spec='${libname}${release}.so$major'
12847
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
12848
 
  case $host_os in
12849
 
  irix5* | nonstopux*)
12850
 
    libsuff= shlibsuff=
12851
 
    ;;
12852
 
  *)
12853
 
    case $LD in # libtool.m4 will add one of these switches to LD
12854
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
12855
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
12856
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
12857
 
    *) libsuff= shlibsuff= libmagic=never-match;;
12858
 
    esac
12859
 
    ;;
12860
 
  esac
12861
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12862
 
  shlibpath_overrides_runpath=no
12863
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12864
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12865
 
  ;;
12866
 
 
12867
 
# No shared lib support for Linux oldld, aout, or coff.
12868
 
linux*oldld* | linux*aout* | linux*coff*)
12869
 
  dynamic_linker=no
12870
 
  ;;
12871
 
 
12872
 
# This must be Linux ELF.
12873
 
linux*)
12874
 
  version_type=linux
12875
 
  need_lib_prefix=no
12876
 
  need_version=no
12877
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12878
 
  soname_spec='${libname}${release}.so$major'
12879
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12880
 
  libsuff=
12881
 
  if test "x$LINUX_64_MODE" = x64; then
12882
 
    # Some platforms are per default 64-bit, so there's no /lib64
12883
 
    if test -d /lib64; then
12884
 
      libsuff=64
12885
 
    fi
12886
 
  fi
12887
 
  shlibpath_var=LD_LIBRARY_PATH
12888
 
  shlibpath_overrides_runpath=no
12889
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
12890
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12891
 
  # This implies no fast_install, which is unacceptable.
12892
 
  # Some rework will be needed to allow for fast_install
12893
 
  # before this can be enabled.
12894
 
  hardcode_into_libs=yes
12895
 
 
12896
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12897
 
  # powerpc, because MkLinux only supported shared libraries with the
12898
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
12899
 
  # most powerpc-linux boxes support dynamic linking these days and
12900
 
  # people can always --disable-shared, the test was removed, and we
12901
 
  # assume the GNU/Linux dynamic linker is in use.
12902
 
  dynamic_linker='GNU/Linux ld.so'
12903
 
  ;;
12904
 
 
12905
 
netbsd*)
12906
 
  version_type=sunos
12907
 
  need_lib_prefix=no
12908
 
  need_version=no
12909
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12910
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12911
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12912
 
    dynamic_linker='NetBSD (a.out) ld.so'
12913
 
  else
12914
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
12915
 
    soname_spec='${libname}${release}.so$major'
12916
 
    dynamic_linker='NetBSD ld.elf_so'
12917
 
  fi
12918
 
  shlibpath_var=LD_LIBRARY_PATH
12919
 
  shlibpath_overrides_runpath=yes
12920
 
  hardcode_into_libs=yes
12921
 
  ;;
12922
 
 
12923
 
newsos6)
12924
 
  version_type=linux
12925
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12926
 
  shlibpath_var=LD_LIBRARY_PATH
12927
 
  shlibpath_overrides_runpath=yes
12928
 
  ;;
12929
 
 
12930
 
nto-qnx)
12931
 
  version_type=linux
12932
 
  need_lib_prefix=no
12933
 
  need_version=no
12934
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12935
 
  soname_spec='${libname}${release}.so$major'
12936
 
  shlibpath_var=LD_LIBRARY_PATH
12937
 
  shlibpath_overrides_runpath=yes
12938
 
  ;;
12939
 
 
12940
 
openbsd*)
12941
 
  version_type=sunos
12942
 
  need_lib_prefix=no
12943
 
  need_version=no
12944
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12945
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12946
 
  shlibpath_var=LD_LIBRARY_PATH
12947
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12948
 
    case $host_os in
12949
 
      openbsd2.[89] | openbsd2.[89].*)
12950
 
        shlibpath_overrides_runpath=no
12951
 
        ;;
12952
 
      *)
12953
 
        shlibpath_overrides_runpath=yes
12954
 
        ;;
12955
 
      esac
12956
 
  else
12957
 
    shlibpath_overrides_runpath=yes
12958
 
  fi
12959
 
  ;;
12960
 
 
12961
 
os2*)
12962
 
  libname_spec='$name'
12963
 
  need_lib_prefix=no
12964
 
  library_names_spec='$libname.dll $libname.a'
12965
 
  dynamic_linker='OS/2 ld.exe'
12966
 
  shlibpath_var=LIBPATH
12967
 
  ;;
12968
 
 
12969
 
osf3* | osf4* | osf5*)
12970
 
  version_type=osf
12971
 
  need_lib_prefix=no
12972
 
  need_version=no
12973
 
  soname_spec='${libname}${release}.so'
12974
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
12975
 
  shlibpath_var=LD_LIBRARY_PATH
12976
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12977
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12978
 
  ;;
12979
 
 
12980
 
sco3.2v5*)
12981
 
  version_type=osf
12982
 
  soname_spec='${libname}${release}.so$major'
12983
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12984
 
  shlibpath_var=LD_LIBRARY_PATH
12985
 
  ;;
12986
 
 
12987
 
solaris*)
12988
 
  version_type=linux
12989
 
  need_lib_prefix=no
12990
 
  need_version=no
12991
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12992
 
  soname_spec='${libname}${release}.so$major'
12993
 
  shlibpath_var=LD_LIBRARY_PATH
12994
 
  shlibpath_overrides_runpath=yes
12995
 
  hardcode_into_libs=yes
12996
 
  # ldd complains unless libraries are executable
12997
 
  postinstall_cmds='chmod +x $lib'
12998
 
  ;;
12999
 
 
13000
 
sunos4*)
13001
 
  version_type=sunos
13002
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13003
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13004
 
  shlibpath_var=LD_LIBRARY_PATH
13005
 
  shlibpath_overrides_runpath=yes
13006
 
  if test "$with_gnu_ld" = yes; then
13007
 
    need_lib_prefix=no
13008
 
  fi
13009
 
  need_version=yes
13010
 
  ;;
13011
 
 
13012
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13013
 
  version_type=linux
13014
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13015
 
  soname_spec='${libname}${release}.so$major'
13016
 
  shlibpath_var=LD_LIBRARY_PATH
13017
 
  case $host_vendor in
13018
 
    sni)
13019
 
      shlibpath_overrides_runpath=no
13020
 
      ;;
13021
 
    motorola)
13022
 
      need_lib_prefix=no
13023
 
      need_version=no
13024
 
      shlibpath_overrides_runpath=no
13025
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13026
 
      ;;
13027
 
  esac
13028
 
  ;;
13029
 
 
13030
 
sysv4*MP*)
13031
 
  if test -d /usr/nec ;then
13032
 
    version_type=linux
13033
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13034
 
    soname_spec='$libname.so.$major'
13035
 
    shlibpath_var=LD_LIBRARY_PATH
13036
 
  fi
13037
 
  ;;
13038
 
 
13039
 
uts4*)
13040
 
  version_type=linux
13041
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13042
 
  soname_spec='${libname}${release}.so$major'
13043
 
  shlibpath_var=LD_LIBRARY_PATH
13044
 
  ;;
13045
 
 
13046
 
*)
13047
 
  dynamic_linker=no
13048
 
  ;;
13049
 
esac
13050
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13051
 
echo "${ECHO_T}$dynamic_linker" >&6
13052
 
test "$dynamic_linker" = no && can_build_shared=no
13053
 
 
13054
 
if test "x$enable_dlopen" != xyes; then
13055
 
  enable_dlopen=unknown
13056
 
  enable_dlopen_self=unknown
13057
 
  enable_dlopen_self_static=unknown
13058
 
else
13059
 
  lt_cv_dlopen=no
13060
 
  lt_cv_dlopen_libs=
13061
 
 
13062
 
  case $host_os in
13063
 
  beos*)
13064
 
    lt_cv_dlopen="load_add_on"
13065
 
    lt_cv_dlopen_libs=
13066
 
    lt_cv_dlopen_self=yes
13067
 
    ;;
13068
 
 
13069
 
  cygwin* | mingw* | pw32*)
13070
 
    lt_cv_dlopen="LoadLibrary"
13071
 
    lt_cv_dlopen_libs=
13072
 
   ;;
13073
 
 
13074
 
  *)
13075
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
13076
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13077
 
if test "${ac_cv_func_shl_load+set}" = set; then
13078
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13079
 
else
13080
 
  cat >conftest.$ac_ext <<_ACEOF
13081
 
#line $LINENO "configure"
13082
 
/* confdefs.h.  */
13083
 
_ACEOF
13084
 
cat confdefs.h >>conftest.$ac_ext
13085
 
cat >>conftest.$ac_ext <<_ACEOF
13086
 
/* end confdefs.h.  */
13087
 
/* System header to define __stub macros and hopefully few prototypes,
13088
 
    which can conflict with char shl_load (); below.
13089
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13090
 
    <limits.h> exists even on freestanding compilers.  */
13091
 
#ifdef __STDC__
13092
 
# include <limits.h>
13093
 
#else
13094
 
# include <assert.h>
13095
 
#endif
13096
 
/* Override any gcc2 internal prototype to avoid an error.  */
13097
 
#ifdef __cplusplus
13098
 
extern "C"
13099
 
{
13100
 
#endif
13101
 
/* We use char because int might match the return type of a gcc2
13102
 
   builtin and then its argument prototype would still apply.  */
13103
 
char shl_load ();
13104
 
/* The GNU C library defines this for functions which it implements
13105
 
    to always fail with ENOSYS.  Some functions are actually named
13106
 
    something starting with __ and the normal name is an alias.  */
13107
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13108
 
choke me
13109
 
#else
13110
 
char (*f) () = shl_load;
13111
 
#endif
13112
 
#ifdef __cplusplus
13113
 
}
13114
 
#endif
13115
 
 
13116
 
int
13117
 
main ()
13118
 
{
13119
 
return f != shl_load;
13120
 
  ;
13121
 
  return 0;
13122
 
}
13123
 
_ACEOF
13124
 
rm -f conftest.$ac_objext conftest$ac_exeext
13125
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13126
 
  (eval $ac_link) 2>&5
13127
 
  ac_status=$?
13128
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129
 
  (exit $ac_status); } &&
13130
 
         { ac_try='test -s conftest$ac_exeext'
13131
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132
 
  (eval $ac_try) 2>&5
13133
 
  ac_status=$?
13134
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135
 
  (exit $ac_status); }; }; then
13136
 
  ac_cv_func_shl_load=yes
13137
 
else
13138
 
  echo "$as_me: failed program was:" >&5
13139
 
sed 's/^/| /' conftest.$ac_ext >&5
13140
 
 
13141
 
ac_cv_func_shl_load=no
13142
 
fi
13143
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13144
 
fi
13145
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13146
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13147
 
if test $ac_cv_func_shl_load = yes; then
13148
 
  lt_cv_dlopen="shl_load"
13149
 
else
13150
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13151
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13152
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13153
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13154
 
else
13155
 
  ac_check_lib_save_LIBS=$LIBS
13156
 
LIBS="-ldld  $LIBS"
13157
 
cat >conftest.$ac_ext <<_ACEOF
13158
 
#line $LINENO "configure"
13159
 
/* confdefs.h.  */
13160
 
_ACEOF
13161
 
cat confdefs.h >>conftest.$ac_ext
13162
 
cat >>conftest.$ac_ext <<_ACEOF
13163
 
/* end confdefs.h.  */
13164
 
 
13165
 
/* Override any gcc2 internal prototype to avoid an error.  */
13166
 
#ifdef __cplusplus
13167
 
extern "C"
13168
 
#endif
13169
 
/* We use char because int might match the return type of a gcc2
13170
 
   builtin and then its argument prototype would still apply.  */
13171
 
char shl_load ();
13172
 
int
13173
 
main ()
13174
 
{
13175
 
shl_load ();
13176
 
  ;
13177
 
  return 0;
13178
 
}
13179
 
_ACEOF
13180
 
rm -f conftest.$ac_objext conftest$ac_exeext
13181
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13182
 
  (eval $ac_link) 2>&5
13183
 
  ac_status=$?
13184
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185
 
  (exit $ac_status); } &&
13186
 
         { ac_try='test -s conftest$ac_exeext'
13187
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188
 
  (eval $ac_try) 2>&5
13189
 
  ac_status=$?
13190
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191
 
  (exit $ac_status); }; }; then
13192
 
  ac_cv_lib_dld_shl_load=yes
13193
 
else
13194
 
  echo "$as_me: failed program was:" >&5
13195
 
sed 's/^/| /' conftest.$ac_ext >&5
13196
 
 
13197
 
ac_cv_lib_dld_shl_load=no
13198
 
fi
13199
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13200
 
LIBS=$ac_check_lib_save_LIBS
13201
 
fi
13202
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13203
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13204
 
if test $ac_cv_lib_dld_shl_load = yes; then
13205
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13206
 
else
13207
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
13208
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13209
 
if test "${ac_cv_func_dlopen+set}" = set; then
13210
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13211
 
else
13212
 
  cat >conftest.$ac_ext <<_ACEOF
13213
 
#line $LINENO "configure"
13214
 
/* confdefs.h.  */
13215
 
_ACEOF
13216
 
cat confdefs.h >>conftest.$ac_ext
13217
 
cat >>conftest.$ac_ext <<_ACEOF
13218
 
/* end confdefs.h.  */
13219
 
/* System header to define __stub macros and hopefully few prototypes,
13220
 
    which can conflict with char dlopen (); below.
13221
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13222
 
    <limits.h> exists even on freestanding compilers.  */
13223
 
#ifdef __STDC__
13224
 
# include <limits.h>
13225
 
#else
13226
 
# include <assert.h>
13227
 
#endif
13228
 
/* Override any gcc2 internal prototype to avoid an error.  */
13229
 
#ifdef __cplusplus
13230
 
extern "C"
13231
 
{
13232
 
#endif
13233
 
/* We use char because int might match the return type of a gcc2
13234
 
   builtin and then its argument prototype would still apply.  */
13235
 
char dlopen ();
13236
 
/* The GNU C library defines this for functions which it implements
13237
 
    to always fail with ENOSYS.  Some functions are actually named
13238
 
    something starting with __ and the normal name is an alias.  */
13239
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13240
 
choke me
13241
 
#else
13242
 
char (*f) () = dlopen;
13243
 
#endif
13244
 
#ifdef __cplusplus
13245
 
}
13246
 
#endif
13247
 
 
13248
 
int
13249
 
main ()
13250
 
{
13251
 
return f != dlopen;
13252
 
  ;
13253
 
  return 0;
13254
 
}
13255
 
_ACEOF
13256
 
rm -f conftest.$ac_objext conftest$ac_exeext
13257
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13258
 
  (eval $ac_link) 2>&5
13259
 
  ac_status=$?
13260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261
 
  (exit $ac_status); } &&
13262
 
         { ac_try='test -s conftest$ac_exeext'
13263
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264
 
  (eval $ac_try) 2>&5
13265
 
  ac_status=$?
13266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267
 
  (exit $ac_status); }; }; then
13268
 
  ac_cv_func_dlopen=yes
13269
 
else
13270
 
  echo "$as_me: failed program was:" >&5
13271
 
sed 's/^/| /' conftest.$ac_ext >&5
13272
 
 
13273
 
ac_cv_func_dlopen=no
13274
 
fi
13275
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13276
 
fi
13277
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13278
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13279
 
if test $ac_cv_func_dlopen = yes; then
13280
 
  lt_cv_dlopen="dlopen"
13281
 
else
13282
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13283
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13284
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13285
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13286
 
else
13287
 
  ac_check_lib_save_LIBS=$LIBS
13288
 
LIBS="-ldl  $LIBS"
13289
 
cat >conftest.$ac_ext <<_ACEOF
13290
 
#line $LINENO "configure"
13291
 
/* confdefs.h.  */
13292
 
_ACEOF
13293
 
cat confdefs.h >>conftest.$ac_ext
13294
 
cat >>conftest.$ac_ext <<_ACEOF
13295
 
/* end confdefs.h.  */
13296
 
 
13297
 
/* Override any gcc2 internal prototype to avoid an error.  */
13298
 
#ifdef __cplusplus
13299
 
extern "C"
13300
 
#endif
13301
 
/* We use char because int might match the return type of a gcc2
13302
 
   builtin and then its argument prototype would still apply.  */
13303
 
char dlopen ();
13304
 
int
13305
 
main ()
13306
 
{
13307
 
dlopen ();
13308
 
  ;
13309
 
  return 0;
13310
 
}
13311
 
_ACEOF
13312
 
rm -f conftest.$ac_objext conftest$ac_exeext
13313
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13314
 
  (eval $ac_link) 2>&5
13315
 
  ac_status=$?
13316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317
 
  (exit $ac_status); } &&
13318
 
         { ac_try='test -s conftest$ac_exeext'
13319
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320
 
  (eval $ac_try) 2>&5
13321
 
  ac_status=$?
13322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323
 
  (exit $ac_status); }; }; then
13324
 
  ac_cv_lib_dl_dlopen=yes
13325
 
else
13326
 
  echo "$as_me: failed program was:" >&5
13327
 
sed 's/^/| /' conftest.$ac_ext >&5
13328
 
 
13329
 
ac_cv_lib_dl_dlopen=no
13330
 
fi
13331
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13332
 
LIBS=$ac_check_lib_save_LIBS
13333
 
fi
13334
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13335
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13336
 
if test $ac_cv_lib_dl_dlopen = yes; then
13337
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13338
 
else
13339
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13340
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13341
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13342
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13343
 
else
13344
 
  ac_check_lib_save_LIBS=$LIBS
13345
 
LIBS="-lsvld  $LIBS"
13346
 
cat >conftest.$ac_ext <<_ACEOF
13347
 
#line $LINENO "configure"
13348
 
/* confdefs.h.  */
13349
 
_ACEOF
13350
 
cat confdefs.h >>conftest.$ac_ext
13351
 
cat >>conftest.$ac_ext <<_ACEOF
13352
 
/* end confdefs.h.  */
13353
 
 
13354
 
/* Override any gcc2 internal prototype to avoid an error.  */
13355
 
#ifdef __cplusplus
13356
 
extern "C"
13357
 
#endif
13358
 
/* We use char because int might match the return type of a gcc2
13359
 
   builtin and then its argument prototype would still apply.  */
13360
 
char dlopen ();
13361
 
int
13362
 
main ()
13363
 
{
13364
 
dlopen ();
13365
 
  ;
13366
 
  return 0;
13367
 
}
13368
 
_ACEOF
13369
 
rm -f conftest.$ac_objext conftest$ac_exeext
13370
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371
 
  (eval $ac_link) 2>&5
13372
 
  ac_status=$?
13373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374
 
  (exit $ac_status); } &&
13375
 
         { ac_try='test -s conftest$ac_exeext'
13376
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377
 
  (eval $ac_try) 2>&5
13378
 
  ac_status=$?
13379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380
 
  (exit $ac_status); }; }; then
13381
 
  ac_cv_lib_svld_dlopen=yes
13382
 
else
13383
 
  echo "$as_me: failed program was:" >&5
13384
 
sed 's/^/| /' conftest.$ac_ext >&5
13385
 
 
13386
 
ac_cv_lib_svld_dlopen=no
13387
 
fi
13388
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13389
 
LIBS=$ac_check_lib_save_LIBS
13390
 
fi
13391
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13392
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13393
 
if test $ac_cv_lib_svld_dlopen = yes; then
13394
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13395
 
else
13396
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13397
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13398
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13399
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13400
 
else
13401
 
  ac_check_lib_save_LIBS=$LIBS
13402
 
LIBS="-ldld  $LIBS"
13403
 
cat >conftest.$ac_ext <<_ACEOF
13404
 
#line $LINENO "configure"
13405
 
/* confdefs.h.  */
13406
 
_ACEOF
13407
 
cat confdefs.h >>conftest.$ac_ext
13408
 
cat >>conftest.$ac_ext <<_ACEOF
13409
 
/* end confdefs.h.  */
13410
 
 
13411
 
/* Override any gcc2 internal prototype to avoid an error.  */
13412
 
#ifdef __cplusplus
13413
 
extern "C"
13414
 
#endif
13415
 
/* We use char because int might match the return type of a gcc2
13416
 
   builtin and then its argument prototype would still apply.  */
13417
 
char dld_link ();
13418
 
int
13419
 
main ()
13420
 
{
13421
 
dld_link ();
13422
 
  ;
13423
 
  return 0;
13424
 
}
13425
 
_ACEOF
13426
 
rm -f conftest.$ac_objext conftest$ac_exeext
13427
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428
 
  (eval $ac_link) 2>&5
13429
 
  ac_status=$?
13430
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431
 
  (exit $ac_status); } &&
13432
 
         { ac_try='test -s conftest$ac_exeext'
13433
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434
 
  (eval $ac_try) 2>&5
13435
 
  ac_status=$?
13436
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437
 
  (exit $ac_status); }; }; then
13438
 
  ac_cv_lib_dld_dld_link=yes
13439
 
else
13440
 
  echo "$as_me: failed program was:" >&5
13441
 
sed 's/^/| /' conftest.$ac_ext >&5
13442
 
 
13443
 
ac_cv_lib_dld_dld_link=no
13444
 
fi
13445
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13446
 
LIBS=$ac_check_lib_save_LIBS
13447
 
fi
13448
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13449
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13450
 
if test $ac_cv_lib_dld_dld_link = yes; then
13451
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13452
 
fi
13453
 
 
13454
 
 
13455
 
fi
13456
 
 
13457
 
 
13458
 
fi
13459
 
 
13460
 
 
13461
 
fi
13462
 
 
13463
 
 
13464
 
fi
13465
 
 
13466
 
 
13467
 
fi
13468
 
 
13469
 
    ;;
13470
 
  esac
13471
 
 
13472
 
  if test "x$lt_cv_dlopen" != xno; then
13473
 
    enable_dlopen=yes
13474
 
  else
13475
 
    enable_dlopen=no
13476
 
  fi
13477
 
 
13478
 
  case $lt_cv_dlopen in
13479
 
  dlopen)
13480
 
    save_CPPFLAGS="$CPPFLAGS"
13481
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13482
 
 
13483
 
    save_LDFLAGS="$LDFLAGS"
13484
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13485
 
 
13486
 
    save_LIBS="$LIBS"
13487
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
13488
 
 
13489
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13490
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13491
 
if test "${lt_cv_dlopen_self+set}" = set; then
13492
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13493
 
else
13494
 
          if test "$cross_compiling" = yes; then :
13495
 
  lt_cv_dlopen_self=cross
13496
 
else
13497
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13498
 
  lt_status=$lt_dlunknown
13499
 
  cat > conftest.$ac_ext <<EOF
13500
 
#line 13500 "configure"
13501
 
#include "confdefs.h"
13502
 
 
13503
 
#if HAVE_DLFCN_H
13504
 
#include <dlfcn.h>
13505
 
#endif
13506
 
 
13507
 
#include <stdio.h>
13508
 
 
13509
 
#ifdef RTLD_GLOBAL
13510
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13511
 
#else
13512
 
#  ifdef DL_GLOBAL
13513
 
#    define LT_DLGLOBAL         DL_GLOBAL
13514
 
#  else
13515
 
#    define LT_DLGLOBAL         0
13516
 
#  endif
13517
 
#endif
13518
 
 
13519
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13520
 
   find out it does not work in some platform. */
13521
 
#ifndef LT_DLLAZY_OR_NOW
13522
 
#  ifdef RTLD_LAZY
13523
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13524
 
#  else
13525
 
#    ifdef DL_LAZY
13526
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13527
 
#    else
13528
 
#      ifdef RTLD_NOW
13529
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13530
 
#      else
13531
 
#        ifdef DL_NOW
13532
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13533
 
#        else
13534
 
#          define LT_DLLAZY_OR_NOW      0
13535
 
#        endif
13536
 
#      endif
13537
 
#    endif
13538
 
#  endif
13539
 
#endif
13540
 
 
13541
 
#ifdef __cplusplus
13542
 
extern "C" void exit (int);
13543
 
#endif
13544
 
 
13545
 
void fnord() { int i=42;}
13546
 
int main ()
13547
 
{
13548
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13549
 
  int status = $lt_dlunknown;
13550
 
 
13551
 
  if (self)
13552
 
    {
13553
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13554
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13555
 
      /* dlclose (self); */
13556
 
    }
13557
 
 
13558
 
    exit (status);
13559
 
}
13560
 
EOF
13561
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13562
 
  (eval $ac_link) 2>&5
13563
 
  ac_status=$?
13564
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13566
 
    (./conftest; exit; ) 2>/dev/null
13567
 
    lt_status=$?
13568
 
    case x$lt_status in
13569
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13570
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13571
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13572
 
    esac
13573
 
  else :
13574
 
    # compilation failed
13575
 
    lt_cv_dlopen_self=no
13576
 
  fi
13577
 
fi
13578
 
rm -fr conftest*
13579
 
 
13580
 
 
13581
 
fi
13582
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13583
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13584
 
 
13585
 
    if test "x$lt_cv_dlopen_self" = xyes; then
13586
 
      LDFLAGS="$LDFLAGS $link_static_flag"
13587
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13588
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13589
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
13590
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13591
 
else
13592
 
          if test "$cross_compiling" = yes; then :
13593
 
  lt_cv_dlopen_self_static=cross
13594
 
else
13595
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13596
 
  lt_status=$lt_dlunknown
13597
 
  cat > conftest.$ac_ext <<EOF
13598
 
#line 13598 "configure"
13599
 
#include "confdefs.h"
13600
 
 
13601
 
#if HAVE_DLFCN_H
13602
 
#include <dlfcn.h>
13603
 
#endif
13604
 
 
13605
 
#include <stdio.h>
13606
 
 
13607
 
#ifdef RTLD_GLOBAL
13608
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13609
 
#else
13610
 
#  ifdef DL_GLOBAL
13611
 
#    define LT_DLGLOBAL         DL_GLOBAL
13612
 
#  else
13613
 
#    define LT_DLGLOBAL         0
13614
 
#  endif
13615
 
#endif
13616
 
 
13617
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13618
 
   find out it does not work in some platform. */
13619
 
#ifndef LT_DLLAZY_OR_NOW
13620
 
#  ifdef RTLD_LAZY
13621
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13622
 
#  else
13623
 
#    ifdef DL_LAZY
13624
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13625
 
#    else
13626
 
#      ifdef RTLD_NOW
13627
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13628
 
#      else
13629
 
#        ifdef DL_NOW
13630
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13631
 
#        else
13632
 
#          define LT_DLLAZY_OR_NOW      0
13633
 
#        endif
13634
 
#      endif
13635
 
#    endif
13636
 
#  endif
13637
 
#endif
13638
 
 
13639
 
#ifdef __cplusplus
13640
 
extern "C" void exit (int);
13641
 
#endif
13642
 
 
13643
 
void fnord() { int i=42;}
13644
 
int main ()
13645
 
{
13646
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13647
 
  int status = $lt_dlunknown;
13648
 
 
13649
 
  if (self)
13650
 
    {
13651
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13652
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13653
 
      /* dlclose (self); */
13654
 
    }
13655
 
 
13656
 
    exit (status);
13657
 
}
13658
 
EOF
13659
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13660
 
  (eval $ac_link) 2>&5
13661
 
  ac_status=$?
13662
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13664
 
    (./conftest; exit; ) 2>/dev/null
13665
 
    lt_status=$?
13666
 
    case x$lt_status in
13667
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13668
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13669
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13670
 
    esac
13671
 
  else :
13672
 
    # compilation failed
13673
 
    lt_cv_dlopen_self_static=no
13674
 
  fi
13675
 
fi
13676
 
rm -fr conftest*
13677
 
 
13678
 
 
13679
 
fi
13680
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13681
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13682
 
    fi
13683
 
 
13684
 
    CPPFLAGS="$save_CPPFLAGS"
13685
 
    LDFLAGS="$save_LDFLAGS"
13686
 
    LIBS="$save_LIBS"
13687
 
    ;;
13688
 
  esac
13689
 
 
13690
 
  case $lt_cv_dlopen_self in
13691
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13692
 
  *) enable_dlopen_self=unknown ;;
13693
 
  esac
13694
 
 
13695
 
  case $lt_cv_dlopen_self_static in
13696
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13697
 
  *) enable_dlopen_self_static=unknown ;;
13698
 
  esac
13699
 
fi
13700
 
 
13701
 
 
13702
 
# The else clause should only fire when bootstrapping the
13703
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13704
 
# with your package, and you will get complaints that there are
13705
 
# no rules to generate ltmain.sh.
13706
 
if test -f "$ltmain"; then
13707
 
  # Now quote all the things that may contain metacharacters while being
13708
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13709
 
  # variables and quote the copies for generation of the libtool script.
13710
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
13711
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13712
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13713
 
    deplibs_check_method reload_flag reload_cmds need_locks \
13714
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13715
 
    lt_cv_sys_global_symbol_to_c_name_address \
13716
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13717
 
    old_postinstall_cmds old_postuninstall_cmds \
13718
 
    compiler_CXX \
13719
 
    CC_CXX \
13720
 
    LD_CXX \
13721
 
    lt_prog_compiler_wl_CXX \
13722
 
    lt_prog_compiler_pic_CXX \
13723
 
    lt_prog_compiler_static_CXX \
13724
 
    lt_prog_compiler_no_builtin_flag_CXX \
13725
 
    export_dynamic_flag_spec_CXX \
13726
 
    thread_safe_flag_spec_CXX \
13727
 
    whole_archive_flag_spec_CXX \
13728
 
    old_archive_cmds_CXX \
13729
 
    old_archive_from_new_cmds_CXX \
13730
 
    predep_objects_CXX \
13731
 
    postdep_objects_CXX \
13732
 
    predeps_CXX \
13733
 
    postdeps_CXX \
13734
 
    compiler_lib_search_path_CXX \
13735
 
    archive_cmds_CXX \
13736
 
    archive_expsym_cmds_CXX \
13737
 
    postinstall_cmds_CXX \
13738
 
    postuninstall_cmds_CXX \
13739
 
    old_archive_from_expsyms_cmds_CXX \
13740
 
    allow_undefined_flag_CXX \
13741
 
    no_undefined_flag_CXX \
13742
 
    export_symbols_cmds_CXX \
13743
 
    hardcode_libdir_flag_spec_CXX \
13744
 
    hardcode_libdir_separator_CXX \
13745
 
    lt_cv_prog_compiler_c_o_CXX \
13746
 
    exclude_expsyms_CXX \
13747
 
    include_expsyms_CXX; do
13748
 
 
13749
 
    case $var in
13750
 
    old_archive_cmds_CXX | \
13751
 
    old_archive_from_new_cmds_CXX | \
13752
 
    archive_cmds_CXX | \
13753
 
    archive_expsym_cmds_CXX | \
13754
 
    old_archive_from_expsyms_cmds_CXX | \
13755
 
    export_symbols_cmds_CXX | \
13756
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13757
 
    postinstall_cmds | postuninstall_cmds | \
13758
 
    old_postinstall_cmds | old_postuninstall_cmds | \
13759
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13760
 
      # Double-quote double-evaled strings.
13761
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13762
 
      ;;
13763
 
    *)
13764
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13765
 
      ;;
13766
 
    esac
13767
 
  done
13768
 
 
13769
 
  case $lt_echo in
13770
 
  *'\$0 --fallback-echo"')
13771
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13772
 
    ;;
13773
 
  esac
13774
 
 
13775
 
cfgfile="$ofile"
13776
 
 
13777
 
  cat <<__EOF__ >> "$cfgfile"
13778
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13779
 
 
13780
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13781
 
 
13782
 
# Shell to use when invoking shell scripts.
13783
 
SHELL=$lt_SHELL
13784
 
 
13785
 
# Whether or not to build shared libraries.
13786
 
build_libtool_libs=$enable_shared
13787
 
 
13788
 
# Whether or not to build static libraries.
13789
 
build_old_libs=$enable_static
13790
 
 
13791
 
# Whether or not to add -lc for building shared libraries.
13792
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13793
 
 
13794
 
# Whether or not to optimize for fast installation.
13795
 
fast_install=$enable_fast_install
13796
 
 
13797
 
# The host system.
13798
 
host_alias=$host_alias
13799
 
host=$host
13800
 
 
13801
 
# An echo program that does not interpret backslashes.
13802
 
echo=$lt_echo
13803
 
 
13804
 
# The archiver.
13805
 
AR=$lt_AR
13806
 
AR_FLAGS=$lt_AR_FLAGS
13807
 
 
13808
 
# A C compiler.
13809
 
LTCC=$lt_LTCC
13810
 
 
13811
 
# A language-specific compiler.
13812
 
CC=$lt_compiler_CXX
13813
 
 
13814
 
# Is the compiler the GNU C compiler?
13815
 
with_gcc=$GCC_CXX
13816
 
 
13817
 
# The linker used to build libraries.
13818
 
LD=$lt_LD_CXX
13819
 
 
13820
 
# Whether we need hard or soft links.
13821
 
LN_S=$lt_LN_S
13822
 
 
13823
 
# A BSD-compatible nm program.
13824
 
NM=$lt_NM
13825
 
 
13826
 
# A sed program that does not truncate output.
13827
 
SED=$lt_SED
13828
 
 
13829
 
# A symbol stripping program
13830
 
STRIP=$STRIP
13831
 
 
13832
 
# Used to examine libraries when file_magic_cmd begins "file"
13833
 
MAGIC_CMD=$MAGIC_CMD
13834
 
 
13835
 
# Used on cygwin: DLL creation program.
13836
 
DLLTOOL="$DLLTOOL"
13837
 
 
13838
 
# Used on cygwin: object dumper.
13839
 
OBJDUMP="$OBJDUMP"
13840
 
 
13841
 
# Used on cygwin: assembler.
13842
 
AS="$AS"
13843
 
 
13844
 
# The name of the directory that contains temporary libtool files.
13845
 
objdir=$objdir
13846
 
 
13847
 
# How to create reloadable object files.
13848
 
reload_flag=$lt_reload_flag
13849
 
reload_cmds=$lt_reload_cmds
13850
 
 
13851
 
# How to pass a linker flag through the compiler.
13852
 
wl=$lt_lt_prog_compiler_wl_CXX
13853
 
 
13854
 
# Object file suffix (normally "o").
13855
 
objext="$ac_objext"
13856
 
 
13857
 
# Old archive suffix (normally "a").
13858
 
libext="$libext"
13859
 
 
13860
 
# Executable file suffix (normally "").
13861
 
exeext="$exeext"
13862
 
 
13863
 
# Additional compiler flags for building library objects.
13864
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
13865
 
pic_mode=$pic_mode
13866
 
 
13867
 
# What is the maximum length of a command?
13868
 
max_cmd_len=$lt_cv_sys_max_cmd_len
13869
 
 
13870
 
# Does compiler simultaneously support -c and -o options?
13871
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13872
 
 
13873
 
# Must we lock files when doing compilation ?
13874
 
need_locks=$lt_need_locks
13875
 
 
13876
 
# Do we need the lib prefix for modules?
13877
 
need_lib_prefix=$need_lib_prefix
13878
 
 
13879
 
# Do we need a version for libraries?
13880
 
need_version=$need_version
13881
 
 
13882
 
# Whether dlopen is supported.
13883
 
dlopen_support=$enable_dlopen
13884
 
 
13885
 
# Whether dlopen of programs is supported.
13886
 
dlopen_self=$enable_dlopen_self
13887
 
 
13888
 
# Whether dlopen of statically linked programs is supported.
13889
 
dlopen_self_static=$enable_dlopen_self_static
13890
 
 
13891
 
# Compiler flag to prevent dynamic linking.
13892
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
13893
 
 
13894
 
# Compiler flag to turn off builtin functions.
13895
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13896
 
 
13897
 
# Compiler flag to allow reflexive dlopens.
13898
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13899
 
 
13900
 
# Compiler flag to generate shared objects directly from archives.
13901
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13902
 
 
13903
 
# Compiler flag to generate thread-safe objects.
13904
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13905
 
 
13906
 
# Library versioning type.
13907
 
version_type=$version_type
13908
 
 
13909
 
# Format of library name prefix.
13910
 
libname_spec=$lt_libname_spec
13911
 
 
13912
 
# List of archive names.  First name is the real one, the rest are links.
13913
 
# The last name is the one that the linker finds with -lNAME.
13914
 
library_names_spec=$lt_library_names_spec
13915
 
 
13916
 
# The coded name of the library, if different from the real name.
13917
 
soname_spec=$lt_soname_spec
13918
 
 
13919
 
# Commands used to build and install an old-style archive.
13920
 
RANLIB=$lt_RANLIB
13921
 
old_archive_cmds=$lt_old_archive_cmds_CXX
13922
 
old_postinstall_cmds=$lt_old_postinstall_cmds
13923
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13924
 
 
13925
 
# Create an old-style archive from a shared archive.
13926
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13927
 
 
13928
 
# Create a temporary old-style archive to link instead of a shared archive.
13929
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13930
 
 
13931
 
# Commands used to build and install a shared archive.
13932
 
archive_cmds=$lt_archive_cmds_CXX
13933
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13934
 
postinstall_cmds=$lt_postinstall_cmds
13935
 
postuninstall_cmds=$lt_postuninstall_cmds
13936
 
 
13937
 
# Commands to strip libraries.
13938
 
old_striplib=$lt_old_striplib
13939
 
striplib=$lt_striplib
13940
 
 
13941
 
# Dependencies to place before the objects being linked to create a
13942
 
# shared library.
13943
 
predep_objects=$lt_predep_objects_CXX
13944
 
 
13945
 
# Dependencies to place after the objects being linked to create a
13946
 
# shared library.
13947
 
postdep_objects=$lt_postdep_objects_CXX
13948
 
 
13949
 
# Dependencies to place before the objects being linked to create a
13950
 
# shared library.
13951
 
predeps=$lt_predeps_CXX
13952
 
 
13953
 
# Dependencies to place after the objects being linked to create a
13954
 
# shared library.
13955
 
postdeps=$lt_postdeps_CXX
13956
 
 
13957
 
# The library search path used internally by the compiler when linking
13958
 
# a shared library.
13959
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13960
 
 
13961
 
# Method to check whether dependent libraries are shared objects.
13962
 
deplibs_check_method=$lt_deplibs_check_method
13963
 
 
13964
 
# Command to use when deplibs_check_method == file_magic.
13965
 
file_magic_cmd=$lt_file_magic_cmd
13966
 
 
13967
 
# Flag that allows shared libraries with undefined symbols to be built.
13968
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13969
 
 
13970
 
# Flag that forces no undefined symbols.
13971
 
no_undefined_flag=$lt_no_undefined_flag_CXX
13972
 
 
13973
 
# Commands used to finish a libtool library installation in a directory.
13974
 
finish_cmds=$lt_finish_cmds
13975
 
 
13976
 
# Same as above, but a single script fragment to be evaled but not shown.
13977
 
finish_eval=$lt_finish_eval
13978
 
 
13979
 
# Take the output of nm and produce a listing of raw symbols and C names.
13980
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13981
 
 
13982
 
# Transform the output of nm in a proper C declaration
13983
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13984
 
 
13985
 
# Transform the output of nm in a C name address pair
13986
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13987
 
 
13988
 
# This is the shared library runtime path variable.
13989
 
runpath_var=$runpath_var
13990
 
 
13991
 
# This is the shared library path variable.
13992
 
shlibpath_var=$shlibpath_var
13993
 
 
13994
 
# Is shlibpath searched before the hard-coded library search path?
13995
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13996
 
 
13997
 
# How to hardcode a shared library path into an executable.
13998
 
hardcode_action=$hardcode_action_CXX
13999
 
 
14000
 
# Whether we should hardcode library paths into libraries.
14001
 
hardcode_into_libs=$hardcode_into_libs
14002
 
 
14003
 
# Flag to hardcode \$libdir into a binary during linking.
14004
 
# This must work even if \$libdir does not exist.
14005
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14006
 
 
14007
 
# Whether we need a single -rpath flag with a separated argument.
14008
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14009
 
 
14010
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14011
 
# resulting binary.
14012
 
hardcode_direct=$hardcode_direct_CXX
14013
 
 
14014
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14015
 
# resulting binary.
14016
 
hardcode_minus_L=$hardcode_minus_L_CXX
14017
 
 
14018
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14019
 
# the resulting binary.
14020
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14021
 
 
14022
 
# Variables whose values should be saved in libtool wrapper scripts and
14023
 
# restored at relink time.
14024
 
variables_saved_for_relink="$variables_saved_for_relink"
14025
 
 
14026
 
# Whether libtool must link a program against all its dependency libraries.
14027
 
link_all_deplibs=$link_all_deplibs_CXX
14028
 
 
14029
 
# Compile-time system search path for libraries
14030
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14031
 
 
14032
 
# Run-time system search path for libraries
14033
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14034
 
 
14035
 
# Fix the shell variable \$srcfile for the compiler.
14036
 
fix_srcfile_path="$fix_srcfile_path_CXX"
14037
 
 
14038
 
# Set to yes if exported symbols are required.
14039
 
always_export_symbols=$always_export_symbols_CXX
14040
 
 
14041
 
# The commands to list exported symbols.
14042
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14043
 
 
14044
 
# The commands to extract the exported symbol list from a shared archive.
14045
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14046
 
 
14047
 
# Symbols that should not be listed in the preloaded symbols.
14048
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14049
 
 
14050
 
# Symbols that must always be exported.
14051
 
include_expsyms=$lt_include_expsyms_CXX
14052
 
 
14053
 
# ### END LIBTOOL TAG CONFIG: $tagname
14054
 
 
14055
 
__EOF__
14056
 
 
14057
 
 
14058
 
else
14059
 
  # If there is no Makefile yet, we rely on a make rule to execute
14060
 
  # `config.status --recheck' to rerun these tests and create the
14061
 
  # libtool script then.
14062
 
  test -f Makefile && make "$ltmain"
14063
 
fi
14064
 
 
14065
 
 
14066
 
ac_ext=c
14067
 
ac_cpp='$CPP $CPPFLAGS'
14068
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14069
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14070
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14071
 
 
14072
 
CC="$lt_save_CC"
14073
 
 
14074
 
        ;;
14075
 
 
14076
 
      GCJ)
14077
 
 
14078
 
 
14079
 
 
14080
 
# Source file extension for C test sources.
14081
 
ac_ext=java
14082
 
 
14083
 
# Object file extension for compiled C test sources.
14084
 
objext=o
14085
 
objext_GCJ=$objext
14086
 
 
14087
 
# Code to be used in simple compile tests
14088
 
lt_simple_compile_test_code="class foo {}"
14089
 
 
14090
 
# Code to be used in simple link tests
14091
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
14092
 
 
14093
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14094
 
 
14095
 
# If no C compiler was specified, use CC.
14096
 
LTCC=${LTCC-"$CC"}
14097
 
 
14098
 
# Allow CC to be a program name with arguments.
14099
 
set dummy $CC
14100
 
compiler="$2"
14101
 
 
14102
 
 
14103
 
# Allow CC to be a program name with arguments.
14104
 
lt_save_CC="$CC"
14105
 
CC=${GCJ-"gcj"}
14106
 
set dummy $CC
14107
 
compiler="$2"
14108
 
compiler_GCJ=$CC
14109
 
 
14110
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
14111
 
archive_cmds_need_lc_GCJ=no
14112
 
 
14113
 
 
14114
 
lt_prog_compiler_no_builtin_flag_GCJ=
14115
 
 
14116
 
if test "$GCC" = yes; then
14117
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14118
 
 
14119
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14120
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14121
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14122
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14123
 
else
14124
 
  lt_cv_prog_compiler_rtti_exceptions=no
14125
 
  ac_outfile=conftest.$ac_objext
14126
 
   save_CFLAGS="$CFLAGS"
14127
 
   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
14128
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14129
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14130
 
     # The compiler can only warn and ignore the option if not recognized
14131
 
     # So say no if there are warnings
14132
 
     if test -s conftest.err; then
14133
 
       # Append any errors to the config.log.
14134
 
       cat conftest.err 1>&5
14135
 
     else
14136
 
       lt_cv_prog_compiler_rtti_exceptions=yes
14137
 
     fi
14138
 
   fi
14139
 
   $rm conftest*
14140
 
   CFLAGS="$save_CFLAGS"
14141
 
 
14142
 
fi
14143
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14144
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14145
 
 
14146
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14147
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14148
 
else
14149
 
    :
14150
 
fi
14151
 
 
14152
 
fi
14153
 
 
14154
 
lt_prog_compiler_wl_GCJ=
14155
 
lt_prog_compiler_pic_GCJ=
14156
 
lt_prog_compiler_static_GCJ=
14157
 
 
14158
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14159
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14160
 
 
14161
 
  if test "$GCC" = yes; then
14162
 
    lt_prog_compiler_wl_GCJ='-Wl,'
14163
 
    lt_prog_compiler_static_GCJ='-static'
14164
 
 
14165
 
    case $host_os in
14166
 
      aix*)
14167
 
      # All AIX code is PIC.
14168
 
      if test "$host_cpu" = ia64; then
14169
 
        # AIX 5 now supports IA64 processor
14170
 
        lt_prog_compiler_static_GCJ='-Bstatic'
14171
 
      fi
14172
 
      ;;
14173
 
 
14174
 
    amigaos*)
14175
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14176
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14177
 
      # like `-m68040'.
14178
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14179
 
      ;;
14180
 
 
14181
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14182
 
      # PIC is the default for these OSes.
14183
 
      ;;
14184
 
 
14185
 
    cygwin* | mingw* | pw32* | os2*)
14186
 
      # This hack is so that the source file can tell whether it is being
14187
 
      # built for inclusion in a dll (and should export symbols for example).
14188
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14189
 
      ;;
14190
 
 
14191
 
    darwin* | rhapsody*)
14192
 
      # PIC is the default on this platform
14193
 
      # Common symbols not allowed in MH_DYLIB files
14194
 
      lt_prog_compiler_pic_GCJ='-fno-common'
14195
 
      ;;
14196
 
 
14197
 
    msdosdjgpp*)
14198
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14199
 
      # on systems that don't support them.
14200
 
      lt_prog_compiler_can_build_shared_GCJ=no
14201
 
      enable_shared=no
14202
 
      ;;
14203
 
 
14204
 
    sysv4*MP*)
14205
 
      if test -d /usr/nec; then
14206
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
14207
 
      fi
14208
 
      ;;
14209
 
 
14210
 
    hpux*)
14211
 
      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
14212
 
      if test "$host_cpu" != ia64; then
14213
 
        lt_prog_compiler_pic_GCJ='-fPIC'
14214
 
      fi
14215
 
      ;;
14216
 
 
14217
 
    *)
14218
 
      lt_prog_compiler_pic_GCJ='-fPIC'
14219
 
      ;;
14220
 
    esac
14221
 
  else
14222
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14223
 
    case $host_os in
14224
 
    aix*)
14225
 
      lt_prog_compiler_wl_GCJ='-Wl,'
14226
 
      if test "$host_cpu" = ia64; then
14227
 
        # AIX 5 now supports IA64 processor
14228
 
        lt_prog_compiler_static_GCJ='-Bstatic'
14229
 
      else
14230
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14231
 
      fi
14232
 
      ;;
14233
 
 
14234
 
    cygwin* | mingw* | pw32* | os2*)
14235
 
      # This hack is so that the source file can tell whether it is being
14236
 
      # built for inclusion in a dll (and should export symbols for example).
14237
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14238
 
      ;;
14239
 
 
14240
 
    hpux9* | hpux10* | hpux11*)
14241
 
      lt_prog_compiler_wl_GCJ='-Wl,'
14242
 
      if test "$host_cpu" != ia64; then
14243
 
        lt_prog_compiler_pic_GCJ='+Z'
14244
 
      fi
14245
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14246
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14247
 
      ;;
14248
 
 
14249
 
    irix5* | irix6* | nonstopux*)
14250
 
      lt_prog_compiler_wl_GCJ='-Wl,'
14251
 
      # PIC (with -KPIC) is the default.
14252
 
      lt_prog_compiler_static_GCJ='-non_shared'
14253
 
      ;;
14254
 
 
14255
 
    newsos6)
14256
 
      lt_prog_compiler_pic_GCJ='-KPIC'
14257
 
      lt_prog_compiler_static_GCJ='-Bstatic'
14258
 
      ;;
14259
 
 
14260
 
    osf3* | osf4* | osf5*)
14261
 
      lt_prog_compiler_wl_GCJ='-Wl,'
14262
 
      # All OSF/1 code is PIC.
14263
 
      lt_prog_compiler_static_GCJ='-non_shared'
14264
 
      ;;
14265
 
 
14266
 
    sco3.2v5*)
14267
 
      lt_prog_compiler_pic_GCJ='-Kpic'
14268
 
      lt_prog_compiler_static_GCJ='-dn'
14269
 
      ;;
14270
 
 
14271
 
    solaris*)
14272
 
      lt_prog_compiler_wl_GCJ='-Wl,'
14273
 
      lt_prog_compiler_pic_GCJ='-KPIC'
14274
 
      lt_prog_compiler_static_GCJ='-Bstatic'
14275
 
      ;;
14276
 
 
14277
 
    sunos4*)
14278
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
14279
 
      lt_prog_compiler_pic_GCJ='-PIC'
14280
 
      lt_prog_compiler_static_GCJ='-Bstatic'
14281
 
      ;;
14282
 
 
14283
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14284
 
      if test "x$host_vendor" = xsni; then
14285
 
        lt_prog_compiler_wl_GCJ='-LD'
14286
 
      else
14287
 
        lt_prog_compiler_wl_GCJ='-Wl,'
14288
 
      fi
14289
 
      lt_prog_compiler_pic_GCJ='-KPIC'
14290
 
      lt_prog_compiler_static_GCJ='-Bstatic'
14291
 
      ;;
14292
 
 
14293
 
    sysv4*MP*)
14294
 
      if test -d /usr/nec ;then
14295
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
14296
 
        lt_prog_compiler_static_GCJ='-Bstatic'
14297
 
      fi
14298
 
      ;;
14299
 
 
14300
 
    uts4*)
14301
 
      lt_prog_compiler_pic_GCJ='-pic'
14302
 
      lt_prog_compiler_static_GCJ='-Bstatic'
14303
 
      ;;
14304
 
 
14305
 
    *)
14306
 
      lt_prog_compiler_can_build_shared_GCJ=no
14307
 
      ;;
14308
 
    esac
14309
 
  fi
14310
 
 
14311
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14312
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14313
 
 
14314
 
#
14315
 
# Check to make sure the PIC flag actually works.
14316
 
#
14317
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
14318
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14319
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14320
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14321
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14322
 
else
14323
 
  lt_prog_compiler_pic_works_GCJ=no
14324
 
  ac_outfile=conftest.$ac_objext
14325
 
   save_CFLAGS="$CFLAGS"
14326
 
   CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
14327
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14328
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14329
 
     # The compiler can only warn and ignore the option if not recognized
14330
 
     # So say no if there are warnings
14331
 
     if test -s conftest.err; then
14332
 
       # Append any errors to the config.log.
14333
 
       cat conftest.err 1>&5
14334
 
     else
14335
 
       lt_prog_compiler_pic_works_GCJ=yes
14336
 
     fi
14337
 
   fi
14338
 
   $rm conftest*
14339
 
   CFLAGS="$save_CFLAGS"
14340
 
 
14341
 
fi
14342
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14343
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14344
 
 
14345
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14346
 
    case $lt_prog_compiler_pic_GCJ in
14347
 
     "" | " "*) ;;
14348
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14349
 
     esac
14350
 
else
14351
 
    lt_prog_compiler_pic_GCJ=
14352
 
     lt_prog_compiler_can_build_shared_GCJ=no
14353
 
fi
14354
 
 
14355
 
fi
14356
 
case "$host_os" in
14357
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14358
 
  *djgpp*)
14359
 
    lt_prog_compiler_pic_GCJ=
14360
 
    ;;
14361
 
  *)
14362
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
14363
 
    ;;
14364
 
esac
14365
 
 
14366
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14367
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14368
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14369
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14370
 
else
14371
 
  lt_cv_prog_compiler_c_o_GCJ=no
14372
 
   $rm -r conftest 2>/dev/null
14373
 
   mkdir conftest
14374
 
   cd conftest
14375
 
   mkdir out
14376
 
   save_GCJFLAGS="$GCJFLAGS"
14377
 
                   GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
14378
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14379
 
 
14380
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14381
 
   # that will create temporary files in the current directory regardless of
14382
 
   # the output directory.  Thus, making CWD read-only will cause this test
14383
 
   # to fail, enabling locking or at least warning the user not to do parallel
14384
 
   # builds.
14385
 
   chmod -w .
14386
 
 
14387
 
   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
14388
 
   then
14389
 
     # The compiler can only warn and ignore the option if not recognized
14390
 
     # So say no if there are warnings
14391
 
     if test -s out/conftest.err; then
14392
 
       # Append any errors to the config.log.
14393
 
       cat out/conftest.err 1>&5
14394
 
     else
14395
 
       lt_cv_prog_compiler_c_o_GCJ=yes
14396
 
     fi
14397
 
   fi
14398
 
   GCJFLAGS="$save_GCJFLAGS"
14399
 
   chmod u+w .
14400
 
   $rm conftest* out/*
14401
 
   rmdir out
14402
 
   cd ..
14403
 
   rmdir conftest
14404
 
   $rm conftest*
14405
 
 
14406
 
fi
14407
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14408
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14409
 
 
14410
 
 
14411
 
hard_links="nottested"
14412
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14413
 
  # do not overwrite the value of need_locks provided by the user
14414
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14415
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14416
 
  hard_links=yes
14417
 
  $rm conftest*
14418
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14419
 
  touch conftest.a
14420
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14421
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14422
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
14423
 
echo "${ECHO_T}$hard_links" >&6
14424
 
  if test "$hard_links" = no; then
14425
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14426
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14427
 
    need_locks=warn
14428
 
  fi
14429
 
else
14430
 
  need_locks=no
14431
 
fi
14432
 
 
14433
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14434
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14435
 
 
14436
 
  runpath_var=
14437
 
  allow_undefined_flag_GCJ=
14438
 
 
14439
 
  archive_cmds_GCJ=
14440
 
  archive_cmds_need_lc_GCJ=
14441
 
  archive_expsym_cmds_GCJ=
14442
 
  old_archive_From_new_cmds_GCJ=
14443
 
  old_archive_from_expsyms_cmds_GCJ=
14444
 
  export_dynamic_flag_spec_GCJ=
14445
 
  whole_archive_flag_spec_GCJ=
14446
 
  thread_safe_flag_spec_GCJ=
14447
 
  hardcode_libdir_flag_spec_GCJ=
14448
 
  hardcode_libdir_separator_GCJ=
14449
 
  hardcode_direct_GCJ=no
14450
 
  hardcode_minus_L_GCJ=no
14451
 
  hardcode_shlibpath_var_GCJ=unsupported
14452
 
  link_all_deplibs_GCJ=unknown
14453
 
  always_export_symbols_GCJ=no
14454
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
14455
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14456
 
  # included in the symbol list
14457
 
  include_expsyms_GCJ=
14458
 
  # exclude_expsyms can be an egrep regular expression of symbols to exclude
14459
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14460
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14461
 
  # as well as any symbol that contains `d'.
14462
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14463
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14464
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14465
 
  # the symbol is explicitly referenced.  Since portable code cannot
14466
 
  # rely on this symbol name, it's probably fine to never include it in
14467
 
  # preloaded symbol tables.
14468
 
  extract_expsyms_cmds=
14469
 
 
14470
 
  case $host_os in
14471
 
  cygwin* | mingw* | pw32*)
14472
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14473
 
    # When not using gcc, we currently assume that we are using
14474
 
    # Microsoft Visual C++.
14475
 
    if test "$GCC" != yes; then
14476
 
      with_gnu_ld=no
14477
 
    fi
14478
 
    ;;
14479
 
  openbsd*)
14480
 
    with_gnu_ld=no
14481
 
    ;;
14482
 
  esac
14483
 
 
14484
 
  ld_shlibs_GCJ=yes
14485
 
  if test "$with_gnu_ld" = yes; then
14486
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14487
 
    wlarc='${wl}'
14488
 
 
14489
 
    # See if GNU ld supports shared libraries.
14490
 
    case $host_os in
14491
 
    aix3* | aix4* | aix5*)
14492
 
      # On AIX/PPC, the GNU linker is very broken
14493
 
      if test "$host_cpu" != ia64; then
14494
 
        ld_shlibs_GCJ=no
14495
 
        cat <<EOF 1>&2
14496
 
 
14497
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14498
 
*** to be unable to reliably create shared libraries on AIX.
14499
 
*** Therefore, libtool is disabling shared libraries support.  If you
14500
 
*** really care for shared libraries, you may want to modify your PATH
14501
 
*** so that a non-GNU linker is found, and then restart.
14502
 
 
14503
 
EOF
14504
 
      fi
14505
 
      ;;
14506
 
 
14507
 
    amigaos*)
14508
 
      archive_cmds_GCJ='$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)'
14509
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
14510
 
      hardcode_minus_L_GCJ=yes
14511
 
 
14512
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14513
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14514
 
      # to version 4, is to share data among multiple programs linked
14515
 
      # with the same dynamic library.  Since this doesn't match the
14516
 
      # behavior of shared libraries on other platforms, we can't use
14517
 
      # them.
14518
 
      ld_shlibs_GCJ=no
14519
 
      ;;
14520
 
 
14521
 
    beos*)
14522
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14523
 
        allow_undefined_flag_GCJ=unsupported
14524
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14525
 
        # support --undefined.  This deserves some investigation.  FIXME
14526
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14527
 
      else
14528
 
        ld_shlibs_GCJ=no
14529
 
      fi
14530
 
      ;;
14531
 
 
14532
 
    cygwin* | mingw* | pw32*)
14533
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
14534
 
      # no search path for DLLs.
14535
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
14536
 
      allow_undefined_flag_GCJ=unsupported
14537
 
      always_export_symbols_GCJ=yes
14538
 
 
14539
 
      extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
14540
 
        sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
14541
 
        test -f $output_objdir/impgen.exe || (cd $output_objdir && \
14542
 
        if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
14543
 
        else $CC -o impgen impgen.c ; fi)~
14544
 
        $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
14545
 
 
14546
 
      old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
14547
 
 
14548
 
      # cygwin and mingw dlls have different entry points and sets of symbols
14549
 
      # to exclude.
14550
 
      # FIXME: what about values for MSVC?
14551
 
      dll_entry=__cygwin_dll_entry@12
14552
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
14553
 
      case $host_os in
14554
 
      mingw*)
14555
 
        # mingw values
14556
 
        dll_entry=_DllMainCRTStartup@12
14557
 
        dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
14558
 
        ;;
14559
 
      esac
14560
 
 
14561
 
      # mingw and cygwin differ, and it's simplest to just exclude the union
14562
 
      # of the two symbol sets.
14563
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
14564
 
 
14565
 
      # recent cygwin and mingw systems supply a stub DllMain which the user
14566
 
      # can override, but on older systems we have to supply one (in ltdll.c)
14567
 
      if test "x$lt_cv_need_dllmain" = "xyes"; then
14568
 
        ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
14569
 
        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~
14570
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
14571
 
      else
14572
 
        ltdll_obj=
14573
 
        ltdll_cmds=
14574
 
      fi
14575
 
 
14576
 
      # Extract the symbol export list from an `--export-all' def file,
14577
 
      # then regenerate the def file from the symbol export list, so that
14578
 
      # the compiled dll only exports the symbol export list.
14579
 
      # Be careful not to strip the DATA tag left by newer dlltools.
14580
 
      export_symbols_cmds_GCJ="$ltdll_cmds"'
14581
 
        $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
14582
 
        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
14583
 
 
14584
 
      # If the export-symbols file already is a .def file (1st line
14585
 
      # is EXPORTS), use it as is.
14586
 
      # If DATA tags from a recent dlltool are present, honour them!
14587
 
      archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
14588
 
          cp $export_symbols $output_objdir/$soname-def;
14589
 
        else
14590
 
          echo EXPORTS > $output_objdir/$soname-def;
14591
 
          _lt_hint=1;
14592
 
          cat $export_symbols | while read symbol; do
14593
 
           set dummy \$symbol;
14594
 
           case \$# in
14595
 
             2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
14596
 
             *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
14597
 
           esac;
14598
 
           _lt_hint=`expr 1 + \$_lt_hint`;
14599
 
          done;
14600
 
        fi~
14601
 
        '"$ltdll_cmds"'
14602
 
        $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~
14603
 
        $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~
14604
 
        $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~
14605
 
        $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~
14606
 
        $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
14607
 
      ;;
14608
 
 
14609
 
    netbsd*)
14610
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14611
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14612
 
        wlarc=
14613
 
      else
14614
 
        archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14615
 
        archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14616
 
      fi
14617
 
      ;;
14618
 
 
14619
 
    solaris* | sysv5*)
14620
 
      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
14621
 
        ld_shlibs_GCJ=no
14622
 
        cat <<EOF 1>&2
14623
 
 
14624
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14625
 
*** create shared libraries on Solaris systems.  Therefore, libtool
14626
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14627
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
14628
 
*** your PATH or compiler configuration so that the native linker is
14629
 
*** used, and then restart.
14630
 
 
14631
 
EOF
14632
 
      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14633
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14634
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14635
 
      else
14636
 
        ld_shlibs_GCJ=no
14637
 
      fi
14638
 
      ;;
14639
 
 
14640
 
    sunos4*)
14641
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14642
 
      wlarc=
14643
 
      hardcode_direct_GCJ=yes
14644
 
      hardcode_shlibpath_var_GCJ=no
14645
 
      ;;
14646
 
 
14647
 
    *)
14648
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14649
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14650
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14651
 
      else
14652
 
        ld_shlibs_GCJ=no
14653
 
      fi
14654
 
      ;;
14655
 
    esac
14656
 
 
14657
 
    if test "$ld_shlibs_GCJ" = yes; then
14658
 
      runpath_var=LD_RUN_PATH
14659
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14660
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14661
 
      case $host_os in
14662
 
      cygwin* | mingw* | pw32*)
14663
 
        # dlltool doesn't understand --whole-archive et. al.
14664
 
        whole_archive_flag_spec_GCJ=
14665
 
        ;;
14666
 
      *)
14667
 
        # ancient GNU ld didn't support --whole-archive et. al.
14668
 
        if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
14669
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14670
 
        else
14671
 
        whole_archive_flag_spec_GCJ=
14672
 
        fi
14673
 
        ;;
14674
 
      esac
14675
 
    fi
14676
 
  else
14677
 
    # PORTME fill in a description of your system's linker (not GNU ld)
14678
 
    case $host_os in
14679
 
    aix3*)
14680
 
      allow_undefined_flag_GCJ=unsupported
14681
 
      always_export_symbols_GCJ=yes
14682
 
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14683
 
      # Note: this linker hardcodes the directories in LIBPATH if there
14684
 
      # are no directories specified by -L.
14685
 
      hardcode_minus_L_GCJ=yes
14686
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
14687
 
        # Neither direct hardcoding nor static linking is supported with a
14688
 
        # broken collect2.
14689
 
        hardcode_direct_GCJ=unsupported
14690
 
      fi
14691
 
      ;;
14692
 
 
14693
 
    aix4* | aix5*)
14694
 
      if test "$host_cpu" = ia64; then
14695
 
        # On IA64, the linker does run time linking by default, so we don't
14696
 
        # have to do anything special.
14697
 
        aix_use_runtimelinking=no
14698
 
        exp_sym_flag='-Bexport'
14699
 
        no_entry_flag=""
14700
 
      else
14701
 
        # If we're using GNU nm, then we don't want the "-C" option.
14702
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
14703
 
        if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
14704
 
          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'
14705
 
        else
14706
 
          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'
14707
 
        fi
14708
 
 
14709
 
        # KDE requires run time linking.  Make it the default.
14710
 
        aix_use_runtimelinking=yes
14711
 
        exp_sym_flag='-bexport'
14712
 
        no_entry_flag='-bnoentry'
14713
 
      fi
14714
 
 
14715
 
      # When large executables or shared objects are built, AIX ld can
14716
 
      # have problems creating the table of contents.  If linking a library
14717
 
      # or program results in "error TOC overflow" add -mminimal-toc to
14718
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14719
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14720
 
 
14721
 
      archive_cmds_GCJ=''
14722
 
      hardcode_direct_GCJ=yes
14723
 
      hardcode_libdir_separator_GCJ=':'
14724
 
      link_all_deplibs_GCJ=yes
14725
 
 
14726
 
      if test "$GCC" = yes; then
14727
 
        case $host_os in aix4.012|aix4.012.*)
14728
 
        # We only want to do this on AIX 4.2 and lower, the check
14729
 
        # below for broken collect2 doesn't work under 4.3+
14730
 
          collect2name=`${CC} -print-prog-name=collect2`
14731
 
          if test -f "$collect2name" && \
14732
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14733
 
          then
14734
 
          # We have reworked collect2
14735
 
          hardcode_direct_GCJ=yes
14736
 
          else
14737
 
          # We have old collect2
14738
 
          hardcode_direct_GCJ=unsupported
14739
 
          # It fails to find uninstalled libraries when the uninstalled
14740
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
14741
 
          # to unsupported forces relinking
14742
 
          hardcode_minus_L_GCJ=yes
14743
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
14744
 
          hardcode_libdir_separator_GCJ=
14745
 
          fi
14746
 
        esac
14747
 
        shared_flag='-shared'
14748
 
      else
14749
 
        # not using gcc
14750
 
        if test "$host_cpu" = ia64; then
14751
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14752
 
        # chokes on -Wl,-G. The following line is correct:
14753
 
          shared_flag='-G'
14754
 
        else
14755
 
        if test "$aix_use_runtimelinking" = yes; then
14756
 
            shared_flag='-qmkshrobj ${wl}-G'
14757
 
          else
14758
 
            shared_flag='-qmkshrobj'
14759
 
        fi
14760
 
        fi
14761
 
      fi
14762
 
 
14763
 
      # Let the compiler handle the export list.
14764
 
      always_export_symbols_GCJ=no
14765
 
      if test "$aix_use_runtimelinking" = yes; then
14766
 
        # Warning - without using the other runtime loading flags (-brtl),
14767
 
        # -berok will link without error, but may produce a broken library.
14768
 
        allow_undefined_flag_GCJ='-berok'
14769
 
       # Determine the default libpath from the value encoded in an empty executable.
14770
 
        cat >conftest.$ac_ext <<_ACEOF
14771
 
#line $LINENO "configure"
14772
 
/* confdefs.h.  */
14773
 
_ACEOF
14774
 
cat confdefs.h >>conftest.$ac_ext
14775
 
cat >>conftest.$ac_ext <<_ACEOF
14776
 
/* end confdefs.h.  */
14777
 
 
14778
 
int
14779
 
main ()
14780
 
{
14781
 
 
14782
 
  ;
14783
 
  return 0;
14784
 
}
14785
 
_ACEOF
14786
 
rm -f conftest.$ac_objext conftest$ac_exeext
14787
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14788
 
  (eval $ac_link) 2>&5
14789
 
  ac_status=$?
14790
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791
 
  (exit $ac_status); } &&
14792
 
         { ac_try='test -s conftest$ac_exeext'
14793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794
 
  (eval $ac_try) 2>&5
14795
 
  ac_status=$?
14796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797
 
  (exit $ac_status); }; }; then
14798
 
 
14799
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14800
 
}'`
14801
 
# Check for a 64-bit object if we didn't find anything.
14802
 
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; }
14803
 
}'`; fi
14804
 
else
14805
 
  echo "$as_me: failed program was:" >&5
14806
 
sed 's/^/| /' conftest.$ac_ext >&5
14807
 
 
14808
 
fi
14809
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14810
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14811
 
 
14812
 
        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14813
 
        archive_cmds_GCJ="\$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"
14814
 
        archive_expsym_cmds_GCJ="\$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"
14815
 
       else
14816
 
        if test "$host_cpu" = ia64; then
14817
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
14818
 
          allow_undefined_flag_GCJ="-z nodefs"
14819
 
          archive_expsym_cmds_GCJ="\$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"
14820
 
        else
14821
 
         # Determine the default libpath from the value encoded in an empty executable.
14822
 
         cat >conftest.$ac_ext <<_ACEOF
14823
 
#line $LINENO "configure"
14824
 
/* confdefs.h.  */
14825
 
_ACEOF
14826
 
cat confdefs.h >>conftest.$ac_ext
14827
 
cat >>conftest.$ac_ext <<_ACEOF
14828
 
/* end confdefs.h.  */
14829
 
 
14830
 
int
14831
 
main ()
14832
 
{
14833
 
 
14834
 
  ;
14835
 
  return 0;
14836
 
}
14837
 
_ACEOF
14838
 
rm -f conftest.$ac_objext conftest$ac_exeext
14839
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14840
 
  (eval $ac_link) 2>&5
14841
 
  ac_status=$?
14842
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843
 
  (exit $ac_status); } &&
14844
 
         { ac_try='test -s conftest$ac_exeext'
14845
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846
 
  (eval $ac_try) 2>&5
14847
 
  ac_status=$?
14848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849
 
  (exit $ac_status); }; }; then
14850
 
 
14851
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14852
 
}'`
14853
 
# Check for a 64-bit object if we didn't find anything.
14854
 
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; }
14855
 
}'`; fi
14856
 
else
14857
 
  echo "$as_me: failed program was:" >&5
14858
 
sed 's/^/| /' conftest.$ac_ext >&5
14859
 
 
14860
 
fi
14861
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14862
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14863
 
 
14864
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14865
 
          # Warning - without using the other run time loading flags,
14866
 
          # -berok will link without error, but may produce a broken library.
14867
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
14868
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
14869
 
          # -bexpall does not export symbols beginning with underscore (_)
14870
 
          always_export_symbols_GCJ=yes
14871
 
          # Exported symbols can be pulled into shared objects from archives
14872
 
          whole_archive_flag_spec_GCJ=' '
14873
 
          archive_cmds_need_lc_GCJ=yes
14874
 
          # This is similar to how AIX traditionally builds it's shared libraries.
14875
 
          archive_expsym_cmds_GCJ="\$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'
14876
 
        fi
14877
 
      fi
14878
 
      ;;
14879
 
 
14880
 
    amigaos*)
14881
 
      archive_cmds_GCJ='$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)'
14882
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
14883
 
      hardcode_minus_L_GCJ=yes
14884
 
      # see comment about different semantics on the GNU ld section
14885
 
      ld_shlibs_GCJ=no
14886
 
      ;;
14887
 
 
14888
 
    bsdi4*)
14889
 
      export_dynamic_flag_spec_GCJ=-rdynamic
14890
 
      ;;
14891
 
 
14892
 
    cygwin* | mingw* | pw32*)
14893
 
      # When not using gcc, we currently assume that we are using
14894
 
      # Microsoft Visual C++.
14895
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14896
 
      # no search path for DLLs.
14897
 
      hardcode_libdir_flag_spec_GCJ=' '
14898
 
      allow_undefined_flag_GCJ=unsupported
14899
 
      # Tell ltmain to make .lib files, not .a files.
14900
 
      libext=lib
14901
 
      # FIXME: Setting linknames here is a bad hack.
14902
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14903
 
      # The linker will automatically build a .lib file if we build a DLL.
14904
 
      old_archive_From_new_cmds_GCJ='true'
14905
 
      # FIXME: Should let the user specify the lib program.
14906
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
14907
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
14908
 
      ;;
14909
 
 
14910
 
    darwin* | rhapsody*)
14911
 
      case "$host_os" in
14912
 
      rhapsody* | darwin1.[012])
14913
 
        allow_undefined_flag_GCJ='-undefined suppress'
14914
 
        ;;
14915
 
      *) # Darwin 1.3 on
14916
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
14917
 
        ;;
14918
 
      esac
14919
 
 
14920
 
      # FIXME: Relying on posixy $() will cause problems for
14921
 
      #        cross-compilation, but unfortunately the echo tests do not
14922
 
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
14923
 
      #        `"' quotes if we put them in here... so don't!
14924
 
      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'
14925
 
      # We need to add '_' to the symbols in $export_symbols first
14926
 
      #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
14927
 
      hardcode_direct_GCJ=yes
14928
 
      hardcode_shlibpath_var_GCJ=no
14929
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
14930
 
      ;;
14931
 
 
14932
 
    dgux*)
14933
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14934
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
14935
 
      hardcode_shlibpath_var_GCJ=no
14936
 
      ;;
14937
 
 
14938
 
    freebsd1*)
14939
 
      ld_shlibs_GCJ=no
14940
 
      ;;
14941
 
 
14942
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14943
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
14944
 
    # does not break anything, and helps significantly (at the cost of a little
14945
 
    # extra space).
14946
 
    freebsd2.2*)
14947
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14948
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
14949
 
      hardcode_direct_GCJ=yes
14950
 
      hardcode_shlibpath_var_GCJ=no
14951
 
      ;;
14952
 
 
14953
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14954
 
    freebsd2*)
14955
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14956
 
      hardcode_direct_GCJ=yes
14957
 
      hardcode_minus_L_GCJ=yes
14958
 
      hardcode_shlibpath_var_GCJ=no
14959
 
      ;;
14960
 
 
14961
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14962
 
    freebsd*)
14963
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14964
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
14965
 
      hardcode_direct_GCJ=yes
14966
 
      hardcode_shlibpath_var_GCJ=no
14967
 
      ;;
14968
 
 
14969
 
    hpux9* | hpux10* | hpux11*)
14970
 
      if test "$GCC" = yes; then
14971
 
        case $host_os in
14972
 
          hpux9*)
14973
 
            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'
14974
 
            ;;
14975
 
          *)
14976
 
            if test "$host_cpu" = ia64; then
14977
 
              archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14978
 
            else
14979
 
              archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14980
 
            fi
14981
 
            ;;
14982
 
        esac
14983
 
      else
14984
 
        case $host_os in
14985
 
          hpux9*)
14986
 
            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'
14987
 
            ;;
14988
 
          *)
14989
 
            if test "$host_cpu" = ia64; then
14990
 
              archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14991
 
            else
14992
 
              archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14993
 
            fi
14994
 
            ;;
14995
 
        esac
14996
 
      fi
14997
 
      if test "$host_cpu" = ia64; then
14998
 
        hardcode_libdir_flag_spec_GCJ='-L$libdir'
14999
 
        hardcode_direct_GCJ=no
15000
 
        hardcode_shlibpath_var_GCJ=no
15001
 
      else
15002
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15003
 
        hardcode_libdir_separator_GCJ=:
15004
 
        hardcode_direct_GCJ=yes
15005
 
      fi
15006
 
      # hardcode_minus_L: Not really in the search PATH,
15007
 
      # but as the default location of the library.
15008
 
      hardcode_minus_L_GCJ=yes
15009
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
15010
 
      ;;
15011
 
 
15012
 
    irix5* | irix6* | nonstopux*)
15013
 
      if test "$GCC" = yes; then
15014
 
        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'
15015
 
      else
15016
 
        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'
15017
 
      fi
15018
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15019
 
      hardcode_libdir_separator_GCJ=:
15020
 
      link_all_deplibs_GCJ=yes
15021
 
      ;;
15022
 
 
15023
 
    netbsd*)
15024
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15025
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15026
 
      else
15027
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15028
 
      fi
15029
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15030
 
      hardcode_direct_GCJ=yes
15031
 
      hardcode_shlibpath_var_GCJ=no
15032
 
      ;;
15033
 
 
15034
 
    newsos6)
15035
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036
 
      hardcode_direct_GCJ=yes
15037
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15038
 
      hardcode_libdir_separator_GCJ=:
15039
 
      hardcode_shlibpath_var_GCJ=no
15040
 
      ;;
15041
 
 
15042
 
    openbsd*)
15043
 
      hardcode_direct_GCJ=yes
15044
 
      hardcode_shlibpath_var_GCJ=no
15045
 
 
15046
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15047
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
15048
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15049
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
15050
 
      else
15051
 
       case $host_os in
15052
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15053
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15054
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
15055
 
           ;;
15056
 
         *)
15057
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
15058
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15059
 
           ;;
15060
 
       esac
15061
 
      fi
15062
 
      ;;
15063
 
 
15064
 
    os2*)
15065
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15066
 
      hardcode_minus_L_GCJ=yes
15067
 
      allow_undefined_flag_GCJ=unsupported
15068
 
      archive_cmds_GCJ='$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'
15069
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15070
 
      ;;
15071
 
 
15072
 
    osf3*)
15073
 
      if test "$GCC" = yes; then
15074
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15075
 
        archive_cmds_GCJ='$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'
15076
 
      else
15077
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
15078
 
        archive_cmds_GCJ='$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'
15079
 
      fi
15080
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15081
 
      hardcode_libdir_separator_GCJ=:
15082
 
      ;;
15083
 
 
15084
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15085
 
      if test "$GCC" = yes; then
15086
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15087
 
        archive_cmds_GCJ='$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'
15088
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15089
 
      else
15090
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
15091
 
        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'
15092
 
        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~
15093
 
        $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'
15094
 
 
15095
 
        # Both c and cxx compiler support -rpath directly
15096
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15097
 
      fi
15098
 
      hardcode_libdir_separator_GCJ=:
15099
 
      ;;
15100
 
 
15101
 
    sco3.2v5*)
15102
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15103
 
      hardcode_shlibpath_var_GCJ=no
15104
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15105
 
      runpath_var=LD_RUN_PATH
15106
 
      hardcode_runpath_var=yes
15107
 
      ;;
15108
 
 
15109
 
    solaris*)
15110
 
      no_undefined_flag_GCJ=' -z text'
15111
 
      if test "$GCC" = yes; then
15112
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15113
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15114
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15115
 
      else
15116
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15117
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15118
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15119
 
      fi
15120
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15121
 
      hardcode_shlibpath_var_GCJ=no
15122
 
      case $host_os in
15123
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15124
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15125
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15126
 
      esac
15127
 
      link_all_deplibs_GCJ=yes
15128
 
      ;;
15129
 
 
15130
 
    sunos4*)
15131
 
      if test "x$host_vendor" = xsequent; then
15132
 
        # Use $CC to link under sequent, because it throws in some extra .o
15133
 
        # files that make .init and .fini sections work.
15134
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15135
 
      else
15136
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15137
 
      fi
15138
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15139
 
      hardcode_direct_GCJ=yes
15140
 
      hardcode_minus_L_GCJ=yes
15141
 
      hardcode_shlibpath_var_GCJ=no
15142
 
      ;;
15143
 
 
15144
 
    sysv4)
15145
 
      if test "x$host_vendor" = xsni; then
15146
 
        archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
15147
 
        hardcode_direct_GCJ=yes # is this really true???
15148
 
      else
15149
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15150
 
        hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15151
 
      fi
15152
 
      runpath_var='LD_RUN_PATH'
15153
 
      hardcode_shlibpath_var_GCJ=no
15154
 
      ;;
15155
 
 
15156
 
    sysv4.3*)
15157
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15158
 
      hardcode_shlibpath_var_GCJ=no
15159
 
      export_dynamic_flag_spec_GCJ='-Bexport'
15160
 
      ;;
15161
 
 
15162
 
    sysv4*MP*)
15163
 
      if test -d /usr/nec; then
15164
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15165
 
        hardcode_shlibpath_var_GCJ=no
15166
 
        runpath_var=LD_RUN_PATH
15167
 
        hardcode_runpath_var=yes
15168
 
        ld_shlibs_GCJ=yes
15169
 
      fi
15170
 
      ;;
15171
 
 
15172
 
    sysv4.2uw2*)
15173
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15174
 
      hardcode_direct_GCJ=yes
15175
 
      hardcode_minus_L_GCJ=no
15176
 
      hardcode_shlibpath_var_GCJ=no
15177
 
      hardcode_runpath_var=yes
15178
 
      runpath_var=LD_RUN_PATH
15179
 
      ;;
15180
 
 
15181
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15182
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
15183
 
      if test "$GCC" = yes; then
15184
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15185
 
      else
15186
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15187
 
      fi
15188
 
      runpath_var='LD_RUN_PATH'
15189
 
      hardcode_shlibpath_var_GCJ=no
15190
 
      ;;
15191
 
 
15192
 
    sysv5*)
15193
 
      no_undefined_flag_GCJ=' -z text'
15194
 
      # $CC -shared without GNU ld will not create a library from C++
15195
 
      # object files and a static libstdc++, better avoid it by now
15196
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15197
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15198
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15199
 
      hardcode_libdir_flag_spec_GCJ=
15200
 
      hardcode_shlibpath_var_GCJ=no
15201
 
      runpath_var='LD_RUN_PATH'
15202
 
      ;;
15203
 
 
15204
 
    uts4*)
15205
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15206
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15207
 
      hardcode_shlibpath_var_GCJ=no
15208
 
      ;;
15209
 
 
15210
 
    *)
15211
 
      ld_shlibs_GCJ=no
15212
 
      ;;
15213
 
    esac
15214
 
  fi
15215
 
 
15216
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15217
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15218
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
15219
 
 
15220
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15221
 
if test "$GCC" = yes; then
15222
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15223
 
fi
15224
 
 
15225
 
#
15226
 
# Do we need to explicitly link libc?
15227
 
#
15228
 
archive_cmds_need_lc_GCJ=yes
15229
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
15230
 
  case $archive_cmds_GCJ in
15231
 
  *'~'*)
15232
 
    # FIXME: we may have to deal with multi-command sequences.
15233
 
    ;;
15234
 
  '$CC '*)
15235
 
    # Test whether the compiler implicitly links with -lc since on some
15236
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
15237
 
    # to ld, don't add -lc before -lgcc.
15238
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15239
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15240
 
    $rm conftest*
15241
 
    echo 'static int dummy;' > conftest.$ac_ext
15242
 
 
15243
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244
 
  (eval $ac_compile) 2>&5
15245
 
  ac_status=$?
15246
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247
 
  (exit $ac_status); } 2>conftest.err; then
15248
 
      soname=conftest
15249
 
      lib=conftest
15250
 
      libobjs=conftest.$ac_objext
15251
 
      deplibs=
15252
 
      wl=$lt_prog_compiler_wl_GCJ
15253
 
      compiler_flags=-v
15254
 
      linker_flags=-v
15255
 
      verstring=
15256
 
      output_objdir=.
15257
 
      libname=conftest
15258
 
      lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15259
 
      allow_undefined_flag_GCJ=
15260
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15261
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15262
 
  ac_status=$?
15263
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264
 
  (exit $ac_status); }
15265
 
      then
15266
 
        archive_cmds_need_lc_GCJ=no
15267
 
      else
15268
 
        archive_cmds_need_lc_GCJ=yes
15269
 
      fi
15270
 
      allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15271
 
    else
15272
 
      cat conftest.err 1>&5
15273
 
    fi
15274
 
    $rm conftest*
15275
 
    echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15276
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15277
 
    ;;
15278
 
  esac
15279
 
fi
15280
 
 
15281
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15282
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15283
 
hardcode_action_GCJ=
15284
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15285
 
   test -n "$runpath_var GCJ"; then
15286
 
 
15287
 
  # We can hardcode non-existant directories.
15288
 
  if test "$hardcode_direct_GCJ" != no &&
15289
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15290
 
     # have to relink, otherwise we might link with an installed library
15291
 
     # when we should be linking with a yet-to-be-installed one
15292
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15293
 
     test "$hardcode_minus_L_GCJ" != no; then
15294
 
    # Linking always hardcodes the temporary library directory.
15295
 
    hardcode_action_GCJ=relink
15296
 
  else
15297
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15298
 
    hardcode_action_GCJ=immediate
15299
 
  fi
15300
 
else
15301
 
  # We cannot hardcode anything, or else we can only hardcode existing
15302
 
  # directories.
15303
 
  hardcode_action_GCJ=unsupported
15304
 
fi
15305
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15306
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
15307
 
 
15308
 
if test "$hardcode_action_GCJ" = relink; then
15309
 
  # Fast installation is not supported
15310
 
  enable_fast_install=no
15311
 
elif test "$shlibpath_overrides_runpath" = yes ||
15312
 
     test "$enable_shared" = no; then
15313
 
  # Fast installation is not necessary
15314
 
  enable_fast_install=needless
15315
 
fi
15316
 
 
15317
 
striplib=
15318
 
old_striplib=
15319
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15320
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15321
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15322
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15323
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15324
 
  echo "$as_me:$LINENO: result: yes" >&5
15325
 
echo "${ECHO_T}yes" >&6
15326
 
else
15327
 
  echo "$as_me:$LINENO: result: no" >&5
15328
 
echo "${ECHO_T}no" >&6
15329
 
fi
15330
 
 
15331
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15332
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15333
 
library_names_spec=
15334
 
libname_spec='lib$name'
15335
 
soname_spec=
15336
 
postinstall_cmds=
15337
 
postuninstall_cmds=
15338
 
finish_cmds=
15339
 
finish_eval=
15340
 
shlibpath_var=
15341
 
shlibpath_overrides_runpath=unknown
15342
 
version_type=none
15343
 
dynamic_linker="$host_os ld.so"
15344
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15345
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15346
 
need_lib_prefix=unknown
15347
 
hardcode_into_libs=no
15348
 
 
15349
 
# when you set need_version to no, make sure it does not cause -set_version
15350
 
# flags to be left without arguments
15351
 
need_version=unknown
15352
 
 
15353
 
case $host_os in
15354
 
aix3*)
15355
 
  version_type=linux
15356
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
15357
 
  shlibpath_var=LIBPATH
15358
 
 
15359
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15360
 
  soname_spec='${libname}${release}.so$major'
15361
 
  ;;
15362
 
 
15363
 
aix4* | aix5*)
15364
 
  version_type=linux
15365
 
  if test "$host_cpu" = ia64; then
15366
 
    # AIX 5 supports IA64
15367
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
15368
 
    shlibpath_var=LD_LIBRARY_PATH
15369
 
  else
15370
 
    # With GCC up to 2.95.x, collect2 would create an import file
15371
 
    # for dependence libraries.  The import file would start with
15372
 
    # the line `#! .'.  This would cause the generated library to
15373
 
    # depend on `.', always an invalid library.  This was fixed in
15374
 
    # development snapshots of GCC prior to 3.0.
15375
 
    case $host_os in
15376
 
      aix4 | aix4.[01] | aix4.[01].*)
15377
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15378
 
           echo ' yes '
15379
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15380
 
        :
15381
 
      else
15382
 
        can_build_shared=no
15383
 
      fi
15384
 
      ;;
15385
 
    esac
15386
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15387
 
    # soname into executable. Probably we can add versioning support to
15388
 
    # collect2, so additional links can be useful in future.
15389
 
    if test "$aix_use_runtimelinking" = yes; then
15390
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15391
 
      # instead of lib<name>.a to let people know that these are not
15392
 
      # typical AIX shared libraries.
15393
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15394
 
    else
15395
 
      # We preserve .a as extension for shared libraries through AIX4.2
15396
 
      # and later when we are not doing run time linking.
15397
 
      library_names_spec='${libname}${release}.a $libname.a'
15398
 
      soname_spec='${libname}${release}.so$major'
15399
 
    fi
15400
 
    shlibpath_var=LIBPATH
15401
 
  fi
15402
 
  ;;
15403
 
 
15404
 
amigaos*)
15405
 
  library_names_spec='$libname.ixlibrary $libname.a'
15406
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15407
 
  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'
15408
 
  ;;
15409
 
 
15410
 
beos*)
15411
 
  library_names_spec='${libname}.so'
15412
 
  dynamic_linker="$host_os ld.so"
15413
 
  shlibpath_var=LIBRARY_PATH
15414
 
  ;;
15415
 
 
15416
 
bsdi4*)
15417
 
  version_type=linux
15418
 
  need_version=no
15419
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15420
 
  soname_spec='${libname}${release}.so$major'
15421
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15422
 
  shlibpath_var=LD_LIBRARY_PATH
15423
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15424
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15425
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15426
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15427
 
  # libtool to hard-code these into programs
15428
 
  ;;
15429
 
 
15430
 
cygwin* | mingw* | pw32*)
15431
 
  version_type=windows
15432
 
  need_version=no
15433
 
  need_lib_prefix=no
15434
 
  case $GCC,$host_os in
15435
 
  yes,cygwin*)
15436
 
    library_names_spec='$libname.dll.a'
15437
 
    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15438
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15439
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
15440
 
      dldir=$destdir/`dirname \$dlpath`~
15441
 
      test -d \$dldir || mkdir -p \$dldir~
15442
 
      $install_prog .libs/$dlname \$dldir/$dlname'
15443
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
15444
 
      dlpath=$dir/\$dldll~
15445
 
       $rm \$dlpath'
15446
 
    ;;
15447
 
  yes,mingw*)
15448
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15449
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
15450
 
    if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
15451
 
      # It is most probably a Windows format PATH printed by
15452
 
      # mingw gcc, but we are running on Cygwin. Gcc prints its search
15453
 
      # path with ; separators, and with drive letters. We can handle the
15454
 
      # drive letters (cygwin fileutils understands them), so leave them,
15455
 
      # especially as we might pass files found there to a mingw objdump,
15456
 
      # which wouldn't understand a cygwinified path. Ahh.
15457
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
15458
 
    else
15459
 
      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed  -e "s/$PATH_SEPARATOR/ /g"`
15460
 
    fi
15461
 
    ;;
15462
 
  yes,pw32*)
15463
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
15464
 
    ;;
15465
 
  *)
15466
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
15467
 
    ;;
15468
 
  esac
15469
 
  dynamic_linker='Win32 ld.exe'
15470
 
  # FIXME: first we should search . and the directory the executable is in
15471
 
  shlibpath_var=PATH
15472
 
  ;;
15473
 
 
15474
 
darwin* | rhapsody*)
15475
 
  dynamic_linker="$host_os dyld"
15476
 
  version_type=darwin
15477
 
  need_lib_prefix=no
15478
 
  need_version=no
15479
 
  # FIXME: Relying on posixy $() will cause problems for
15480
 
  #        cross-compilation, but unfortunately the echo tests do not
15481
 
  #        yet detect zsh echo's removal of \ escapes.
15482
 
  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)'
15483
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
15484
 
  shlibpath_overrides_runpath=yes
15485
 
  shlibpath_var=DYLD_LIBRARY_PATH
15486
 
  ;;
15487
 
 
15488
 
dgux*)
15489
 
  version_type=linux
15490
 
  need_lib_prefix=no
15491
 
  need_version=no
15492
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15493
 
  soname_spec='${libname}${release}.so$major'
15494
 
  shlibpath_var=LD_LIBRARY_PATH
15495
 
  ;;
15496
 
 
15497
 
freebsd1*)
15498
 
  dynamic_linker=no
15499
 
  ;;
15500
 
 
15501
 
freebsd*)
15502
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15503
 
  version_type=freebsd-$objformat
15504
 
  case $version_type in
15505
 
    freebsd-elf*)
15506
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15507
 
      need_version=no
15508
 
      need_lib_prefix=no
15509
 
      ;;
15510
 
    freebsd-*)
15511
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
15512
 
      need_version=yes
15513
 
      ;;
15514
 
  esac
15515
 
  shlibpath_var=LD_LIBRARY_PATH
15516
 
  case $host_os in
15517
 
  freebsd2*)
15518
 
    shlibpath_overrides_runpath=yes
15519
 
    ;;
15520
 
  freebsd3.01* | freebsdelf3.01*)
15521
 
    shlibpath_overrides_runpath=yes
15522
 
    hardcode_into_libs=yes
15523
 
    ;;
15524
 
  *) # from 3.2 on
15525
 
    shlibpath_overrides_runpath=no
15526
 
    hardcode_into_libs=yes
15527
 
    ;;
15528
 
  esac
15529
 
  ;;
15530
 
 
15531
 
gnu*)
15532
 
  version_type=linux
15533
 
  need_lib_prefix=no
15534
 
  need_version=no
15535
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
15536
 
  soname_spec='${libname}${release}.so$major'
15537
 
  shlibpath_var=LD_LIBRARY_PATH
15538
 
  hardcode_into_libs=yes
15539
 
  ;;
15540
 
 
15541
 
hpux9* | hpux10* | hpux11*)
15542
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
15543
 
  # link against other versions.
15544
 
  version_type=sunos
15545
 
  need_lib_prefix=no
15546
 
  need_version=no
15547
 
  if test "$host_cpu" = ia64; then
15548
 
    hardcode_into_libs=yes
15549
 
    dynamic_linker="$host_os dld.so"
15550
 
    shlibpath_var=LD_LIBRARY_PATH
15551
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15552
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15553
 
    soname_spec='${libname}${release}.so$major'
15554
 
    if test "X$HPUX_IA64_MODE" = X32; then
15555
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15556
 
    else
15557
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15558
 
    fi
15559
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15560
 
  else
15561
 
    dynamic_linker="$host_os dld.sl"
15562
 
    shlibpath_var=SHLIB_PATH
15563
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15564
 
    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
15565
 
    soname_spec='${libname}${release}.sl$major'
15566
 
  fi
15567
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15568
 
  postinstall_cmds='chmod 555 $lib'
15569
 
  ;;
15570
 
 
15571
 
irix5* | irix6* | nonstopux*)
15572
 
  case $host_os in
15573
 
    nonstopux*) version_type=nonstopux ;;
15574
 
    *)          version_type=irix ;;
15575
 
  esac
15576
 
  need_lib_prefix=no
15577
 
  need_version=no
15578
 
  soname_spec='${libname}${release}.so$major'
15579
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
15580
 
  case $host_os in
15581
 
  irix5* | nonstopux*)
15582
 
    libsuff= shlibsuff=
15583
 
    ;;
15584
 
  *)
15585
 
    case $LD in # libtool.m4 will add one of these switches to LD
15586
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
15587
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
15588
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
15589
 
    *) libsuff= shlibsuff= libmagic=never-match;;
15590
 
    esac
15591
 
    ;;
15592
 
  esac
15593
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15594
 
  shlibpath_overrides_runpath=no
15595
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15596
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15597
 
  ;;
15598
 
 
15599
 
# No shared lib support for Linux oldld, aout, or coff.
15600
 
linux*oldld* | linux*aout* | linux*coff*)
15601
 
  dynamic_linker=no
15602
 
  ;;
15603
 
 
15604
 
# This must be Linux ELF.
15605
 
linux*)
15606
 
  version_type=linux
15607
 
  need_lib_prefix=no
15608
 
  need_version=no
15609
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15610
 
  soname_spec='${libname}${release}.so$major'
15611
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15612
 
  libsuff=
15613
 
  if test "x$LINUX_64_MODE" = x64; then
15614
 
    # Some platforms are per default 64-bit, so there's no /lib64
15615
 
    if test -d /lib64; then
15616
 
      libsuff=64
15617
 
    fi
15618
 
  fi
15619
 
  shlibpath_var=LD_LIBRARY_PATH
15620
 
  shlibpath_overrides_runpath=no
15621
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15622
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15623
 
  # This implies no fast_install, which is unacceptable.
15624
 
  # Some rework will be needed to allow for fast_install
15625
 
  # before this can be enabled.
15626
 
  hardcode_into_libs=yes
15627
 
 
15628
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15629
 
  # powerpc, because MkLinux only supported shared libraries with the
15630
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
15631
 
  # most powerpc-linux boxes support dynamic linking these days and
15632
 
  # people can always --disable-shared, the test was removed, and we
15633
 
  # assume the GNU/Linux dynamic linker is in use.
15634
 
  dynamic_linker='GNU/Linux ld.so'
15635
 
  ;;
15636
 
 
15637
 
netbsd*)
15638
 
  version_type=sunos
15639
 
  need_lib_prefix=no
15640
 
  need_version=no
15641
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15642
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15643
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15644
 
    dynamic_linker='NetBSD (a.out) ld.so'
15645
 
  else
15646
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
15647
 
    soname_spec='${libname}${release}.so$major'
15648
 
    dynamic_linker='NetBSD ld.elf_so'
15649
 
  fi
15650
 
  shlibpath_var=LD_LIBRARY_PATH
15651
 
  shlibpath_overrides_runpath=yes
15652
 
  hardcode_into_libs=yes
15653
 
  ;;
15654
 
 
15655
 
newsos6)
15656
 
  version_type=linux
15657
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15658
 
  shlibpath_var=LD_LIBRARY_PATH
15659
 
  shlibpath_overrides_runpath=yes
15660
 
  ;;
15661
 
 
15662
 
nto-qnx)
15663
 
  version_type=linux
15664
 
  need_lib_prefix=no
15665
 
  need_version=no
15666
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15667
 
  soname_spec='${libname}${release}.so$major'
15668
 
  shlibpath_var=LD_LIBRARY_PATH
15669
 
  shlibpath_overrides_runpath=yes
15670
 
  ;;
15671
 
 
15672
 
openbsd*)
15673
 
  version_type=sunos
15674
 
  need_lib_prefix=no
15675
 
  need_version=no
15676
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15677
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15678
 
  shlibpath_var=LD_LIBRARY_PATH
15679
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15680
 
    case $host_os in
15681
 
      openbsd2.[89] | openbsd2.[89].*)
15682
 
        shlibpath_overrides_runpath=no
15683
 
        ;;
15684
 
      *)
15685
 
        shlibpath_overrides_runpath=yes
15686
 
        ;;
15687
 
      esac
15688
 
  else
15689
 
    shlibpath_overrides_runpath=yes
15690
 
  fi
15691
 
  ;;
15692
 
 
15693
 
os2*)
15694
 
  libname_spec='$name'
15695
 
  need_lib_prefix=no
15696
 
  library_names_spec='$libname.dll $libname.a'
15697
 
  dynamic_linker='OS/2 ld.exe'
15698
 
  shlibpath_var=LIBPATH
15699
 
  ;;
15700
 
 
15701
 
osf3* | osf4* | osf5*)
15702
 
  version_type=osf
15703
 
  need_lib_prefix=no
15704
 
  need_version=no
15705
 
  soname_spec='${libname}${release}.so'
15706
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15707
 
  shlibpath_var=LD_LIBRARY_PATH
15708
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15709
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15710
 
  ;;
15711
 
 
15712
 
sco3.2v5*)
15713
 
  version_type=osf
15714
 
  soname_spec='${libname}${release}.so$major'
15715
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15716
 
  shlibpath_var=LD_LIBRARY_PATH
15717
 
  ;;
15718
 
 
15719
 
solaris*)
15720
 
  version_type=linux
15721
 
  need_lib_prefix=no
15722
 
  need_version=no
15723
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15724
 
  soname_spec='${libname}${release}.so$major'
15725
 
  shlibpath_var=LD_LIBRARY_PATH
15726
 
  shlibpath_overrides_runpath=yes
15727
 
  hardcode_into_libs=yes
15728
 
  # ldd complains unless libraries are executable
15729
 
  postinstall_cmds='chmod +x $lib'
15730
 
  ;;
15731
 
 
15732
 
sunos4*)
15733
 
  version_type=sunos
15734
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15735
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15736
 
  shlibpath_var=LD_LIBRARY_PATH
15737
 
  shlibpath_overrides_runpath=yes
15738
 
  if test "$with_gnu_ld" = yes; then
15739
 
    need_lib_prefix=no
15740
 
  fi
15741
 
  need_version=yes
15742
 
  ;;
15743
 
 
15744
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15745
 
  version_type=linux
15746
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15747
 
  soname_spec='${libname}${release}.so$major'
15748
 
  shlibpath_var=LD_LIBRARY_PATH
15749
 
  case $host_vendor in
15750
 
    sni)
15751
 
      shlibpath_overrides_runpath=no
15752
 
      ;;
15753
 
    motorola)
15754
 
      need_lib_prefix=no
15755
 
      need_version=no
15756
 
      shlibpath_overrides_runpath=no
15757
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15758
 
      ;;
15759
 
  esac
15760
 
  ;;
15761
 
 
15762
 
sysv4*MP*)
15763
 
  if test -d /usr/nec ;then
15764
 
    version_type=linux
15765
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
15766
 
    soname_spec='$libname.so.$major'
15767
 
    shlibpath_var=LD_LIBRARY_PATH
15768
 
  fi
15769
 
  ;;
15770
 
 
15771
 
uts4*)
15772
 
  version_type=linux
15773
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15774
 
  soname_spec='${libname}${release}.so$major'
15775
 
  shlibpath_var=LD_LIBRARY_PATH
15776
 
  ;;
15777
 
 
15778
 
*)
15779
 
  dynamic_linker=no
15780
 
  ;;
15781
 
esac
15782
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15783
 
echo "${ECHO_T}$dynamic_linker" >&6
15784
 
test "$dynamic_linker" = no && can_build_shared=no
15785
 
 
15786
 
if test "x$enable_dlopen" != xyes; then
15787
 
  enable_dlopen=unknown
15788
 
  enable_dlopen_self=unknown
15789
 
  enable_dlopen_self_static=unknown
15790
 
else
15791
 
  lt_cv_dlopen=no
15792
 
  lt_cv_dlopen_libs=
15793
 
 
15794
 
  case $host_os in
15795
 
  beos*)
15796
 
    lt_cv_dlopen="load_add_on"
15797
 
    lt_cv_dlopen_libs=
15798
 
    lt_cv_dlopen_self=yes
15799
 
    ;;
15800
 
 
15801
 
  cygwin* | mingw* | pw32*)
15802
 
    lt_cv_dlopen="LoadLibrary"
15803
 
    lt_cv_dlopen_libs=
15804
 
   ;;
15805
 
 
15806
 
  *)
15807
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
15808
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15809
 
if test "${ac_cv_func_shl_load+set}" = set; then
15810
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15811
 
else
15812
 
  cat >conftest.$ac_ext <<_ACEOF
15813
 
#line $LINENO "configure"
15814
 
/* confdefs.h.  */
15815
 
_ACEOF
15816
 
cat confdefs.h >>conftest.$ac_ext
15817
 
cat >>conftest.$ac_ext <<_ACEOF
15818
 
/* end confdefs.h.  */
15819
 
/* System header to define __stub macros and hopefully few prototypes,
15820
 
    which can conflict with char shl_load (); below.
15821
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15822
 
    <limits.h> exists even on freestanding compilers.  */
15823
 
#ifdef __STDC__
15824
 
# include <limits.h>
15825
 
#else
15826
 
# include <assert.h>
15827
 
#endif
15828
 
/* Override any gcc2 internal prototype to avoid an error.  */
15829
 
#ifdef __cplusplus
15830
 
extern "C"
15831
 
{
15832
 
#endif
15833
 
/* We use char because int might match the return type of a gcc2
15834
 
   builtin and then its argument prototype would still apply.  */
15835
 
char shl_load ();
15836
 
/* The GNU C library defines this for functions which it implements
15837
 
    to always fail with ENOSYS.  Some functions are actually named
15838
 
    something starting with __ and the normal name is an alias.  */
15839
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
15840
 
choke me
15841
 
#else
15842
 
char (*f) () = shl_load;
15843
 
#endif
15844
 
#ifdef __cplusplus
15845
 
}
15846
 
#endif
15847
 
 
15848
 
int
15849
 
main ()
15850
 
{
15851
 
return f != shl_load;
15852
 
  ;
15853
 
  return 0;
15854
 
}
15855
 
_ACEOF
15856
 
rm -f conftest.$ac_objext conftest$ac_exeext
15857
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858
 
  (eval $ac_link) 2>&5
15859
 
  ac_status=$?
15860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861
 
  (exit $ac_status); } &&
15862
 
         { ac_try='test -s conftest$ac_exeext'
15863
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864
 
  (eval $ac_try) 2>&5
15865
 
  ac_status=$?
15866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867
 
  (exit $ac_status); }; }; then
15868
 
  ac_cv_func_shl_load=yes
15869
 
else
15870
 
  echo "$as_me: failed program was:" >&5
15871
 
sed 's/^/| /' conftest.$ac_ext >&5
15872
 
 
15873
 
ac_cv_func_shl_load=no
15874
 
fi
15875
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15876
 
fi
15877
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15878
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15879
 
if test $ac_cv_func_shl_load = yes; then
15880
 
  lt_cv_dlopen="shl_load"
15881
 
else
15882
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15883
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15884
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15885
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15886
 
else
15887
 
  ac_check_lib_save_LIBS=$LIBS
15888
 
LIBS="-ldld  $LIBS"
15889
 
cat >conftest.$ac_ext <<_ACEOF
15890
 
#line $LINENO "configure"
15891
 
/* confdefs.h.  */
15892
 
_ACEOF
15893
 
cat confdefs.h >>conftest.$ac_ext
15894
 
cat >>conftest.$ac_ext <<_ACEOF
15895
 
/* end confdefs.h.  */
15896
 
 
15897
 
/* Override any gcc2 internal prototype to avoid an error.  */
15898
 
#ifdef __cplusplus
15899
 
extern "C"
15900
 
#endif
15901
 
/* We use char because int might match the return type of a gcc2
15902
 
   builtin and then its argument prototype would still apply.  */
15903
 
char shl_load ();
15904
 
int
15905
 
main ()
15906
 
{
15907
 
shl_load ();
15908
 
  ;
15909
 
  return 0;
15910
 
}
15911
 
_ACEOF
15912
 
rm -f conftest.$ac_objext conftest$ac_exeext
15913
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15914
 
  (eval $ac_link) 2>&5
15915
 
  ac_status=$?
15916
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917
 
  (exit $ac_status); } &&
15918
 
         { ac_try='test -s conftest$ac_exeext'
15919
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920
 
  (eval $ac_try) 2>&5
15921
 
  ac_status=$?
15922
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923
 
  (exit $ac_status); }; }; then
15924
 
  ac_cv_lib_dld_shl_load=yes
15925
 
else
15926
 
  echo "$as_me: failed program was:" >&5
15927
 
sed 's/^/| /' conftest.$ac_ext >&5
15928
 
 
15929
 
ac_cv_lib_dld_shl_load=no
15930
 
fi
15931
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15932
 
LIBS=$ac_check_lib_save_LIBS
15933
 
fi
15934
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15935
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15936
 
if test $ac_cv_lib_dld_shl_load = yes; then
15937
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15938
 
else
15939
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
15940
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15941
 
if test "${ac_cv_func_dlopen+set}" = set; then
15942
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15943
 
else
15944
 
  cat >conftest.$ac_ext <<_ACEOF
15945
 
#line $LINENO "configure"
15946
 
/* confdefs.h.  */
15947
 
_ACEOF
15948
 
cat confdefs.h >>conftest.$ac_ext
15949
 
cat >>conftest.$ac_ext <<_ACEOF
15950
 
/* end confdefs.h.  */
15951
 
/* System header to define __stub macros and hopefully few prototypes,
15952
 
    which can conflict with char dlopen (); below.
15953
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15954
 
    <limits.h> exists even on freestanding compilers.  */
15955
 
#ifdef __STDC__
15956
 
# include <limits.h>
15957
 
#else
15958
 
# include <assert.h>
15959
 
#endif
15960
 
/* Override any gcc2 internal prototype to avoid an error.  */
15961
 
#ifdef __cplusplus
15962
 
extern "C"
15963
 
{
15964
 
#endif
15965
 
/* We use char because int might match the return type of a gcc2
15966
 
   builtin and then its argument prototype would still apply.  */
15967
 
char dlopen ();
15968
 
/* The GNU C library defines this for functions which it implements
15969
 
    to always fail with ENOSYS.  Some functions are actually named
15970
 
    something starting with __ and the normal name is an alias.  */
15971
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
15972
 
choke me
15973
 
#else
15974
 
char (*f) () = dlopen;
15975
 
#endif
15976
 
#ifdef __cplusplus
15977
 
}
15978
 
#endif
15979
 
 
15980
 
int
15981
 
main ()
15982
 
{
15983
 
return f != dlopen;
15984
 
  ;
15985
 
  return 0;
15986
 
}
15987
 
_ACEOF
15988
 
rm -f conftest.$ac_objext conftest$ac_exeext
15989
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15990
 
  (eval $ac_link) 2>&5
15991
 
  ac_status=$?
15992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993
 
  (exit $ac_status); } &&
15994
 
         { ac_try='test -s conftest$ac_exeext'
15995
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996
 
  (eval $ac_try) 2>&5
15997
 
  ac_status=$?
15998
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999
 
  (exit $ac_status); }; }; then
16000
 
  ac_cv_func_dlopen=yes
16001
 
else
16002
 
  echo "$as_me: failed program was:" >&5
16003
 
sed 's/^/| /' conftest.$ac_ext >&5
16004
 
 
16005
 
ac_cv_func_dlopen=no
16006
 
fi
16007
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16008
 
fi
16009
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16010
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16011
 
if test $ac_cv_func_dlopen = yes; then
16012
 
  lt_cv_dlopen="dlopen"
16013
 
else
16014
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16015
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16016
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16017
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16018
 
else
16019
 
  ac_check_lib_save_LIBS=$LIBS
16020
 
LIBS="-ldl  $LIBS"
16021
 
cat >conftest.$ac_ext <<_ACEOF
16022
 
#line $LINENO "configure"
16023
 
/* confdefs.h.  */
16024
 
_ACEOF
16025
 
cat confdefs.h >>conftest.$ac_ext
16026
 
cat >>conftest.$ac_ext <<_ACEOF
16027
 
/* end confdefs.h.  */
16028
 
 
16029
 
/* Override any gcc2 internal prototype to avoid an error.  */
16030
 
#ifdef __cplusplus
16031
 
extern "C"
16032
 
#endif
16033
 
/* We use char because int might match the return type of a gcc2
16034
 
   builtin and then its argument prototype would still apply.  */
16035
 
char dlopen ();
16036
 
int
16037
 
main ()
16038
 
{
16039
 
dlopen ();
16040
 
  ;
16041
 
  return 0;
16042
 
}
16043
 
_ACEOF
16044
 
rm -f conftest.$ac_objext conftest$ac_exeext
16045
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16046
 
  (eval $ac_link) 2>&5
16047
 
  ac_status=$?
16048
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049
 
  (exit $ac_status); } &&
16050
 
         { ac_try='test -s conftest$ac_exeext'
16051
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052
 
  (eval $ac_try) 2>&5
16053
 
  ac_status=$?
16054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055
 
  (exit $ac_status); }; }; then
16056
 
  ac_cv_lib_dl_dlopen=yes
16057
 
else
16058
 
  echo "$as_me: failed program was:" >&5
16059
 
sed 's/^/| /' conftest.$ac_ext >&5
16060
 
 
16061
 
ac_cv_lib_dl_dlopen=no
16062
 
fi
16063
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16064
 
LIBS=$ac_check_lib_save_LIBS
16065
 
fi
16066
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16067
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16068
 
if test $ac_cv_lib_dl_dlopen = yes; then
16069
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16070
 
else
16071
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16072
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16073
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16074
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16075
 
else
16076
 
  ac_check_lib_save_LIBS=$LIBS
16077
 
LIBS="-lsvld  $LIBS"
16078
 
cat >conftest.$ac_ext <<_ACEOF
16079
 
#line $LINENO "configure"
16080
 
/* confdefs.h.  */
16081
 
_ACEOF
16082
 
cat confdefs.h >>conftest.$ac_ext
16083
 
cat >>conftest.$ac_ext <<_ACEOF
16084
 
/* end confdefs.h.  */
16085
 
 
16086
 
/* Override any gcc2 internal prototype to avoid an error.  */
16087
 
#ifdef __cplusplus
16088
 
extern "C"
16089
 
#endif
16090
 
/* We use char because int might match the return type of a gcc2
16091
 
   builtin and then its argument prototype would still apply.  */
16092
 
char dlopen ();
16093
 
int
16094
 
main ()
16095
 
{
16096
 
dlopen ();
16097
 
  ;
16098
 
  return 0;
16099
 
}
16100
 
_ACEOF
16101
 
rm -f conftest.$ac_objext conftest$ac_exeext
16102
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16103
 
  (eval $ac_link) 2>&5
16104
 
  ac_status=$?
16105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106
 
  (exit $ac_status); } &&
16107
 
         { ac_try='test -s conftest$ac_exeext'
16108
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109
 
  (eval $ac_try) 2>&5
16110
 
  ac_status=$?
16111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112
 
  (exit $ac_status); }; }; then
16113
 
  ac_cv_lib_svld_dlopen=yes
16114
 
else
16115
 
  echo "$as_me: failed program was:" >&5
16116
 
sed 's/^/| /' conftest.$ac_ext >&5
16117
 
 
16118
 
ac_cv_lib_svld_dlopen=no
16119
 
fi
16120
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16121
 
LIBS=$ac_check_lib_save_LIBS
16122
 
fi
16123
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16124
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16125
 
if test $ac_cv_lib_svld_dlopen = yes; then
16126
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16127
 
else
16128
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16129
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16130
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16131
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16132
 
else
16133
 
  ac_check_lib_save_LIBS=$LIBS
16134
 
LIBS="-ldld  $LIBS"
16135
 
cat >conftest.$ac_ext <<_ACEOF
16136
 
#line $LINENO "configure"
16137
 
/* confdefs.h.  */
16138
 
_ACEOF
16139
 
cat confdefs.h >>conftest.$ac_ext
16140
 
cat >>conftest.$ac_ext <<_ACEOF
16141
 
/* end confdefs.h.  */
16142
 
 
16143
 
/* Override any gcc2 internal prototype to avoid an error.  */
16144
 
#ifdef __cplusplus
16145
 
extern "C"
16146
 
#endif
16147
 
/* We use char because int might match the return type of a gcc2
16148
 
   builtin and then its argument prototype would still apply.  */
16149
 
char dld_link ();
16150
 
int
16151
 
main ()
16152
 
{
16153
 
dld_link ();
16154
 
  ;
16155
 
  return 0;
16156
 
}
16157
 
_ACEOF
16158
 
rm -f conftest.$ac_objext conftest$ac_exeext
16159
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16160
 
  (eval $ac_link) 2>&5
16161
 
  ac_status=$?
16162
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163
 
  (exit $ac_status); } &&
16164
 
         { ac_try='test -s conftest$ac_exeext'
16165
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166
 
  (eval $ac_try) 2>&5
16167
 
  ac_status=$?
16168
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169
 
  (exit $ac_status); }; }; then
16170
 
  ac_cv_lib_dld_dld_link=yes
16171
 
else
16172
 
  echo "$as_me: failed program was:" >&5
16173
 
sed 's/^/| /' conftest.$ac_ext >&5
16174
 
 
16175
 
ac_cv_lib_dld_dld_link=no
16176
 
fi
16177
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16178
 
LIBS=$ac_check_lib_save_LIBS
16179
 
fi
16180
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16181
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16182
 
if test $ac_cv_lib_dld_dld_link = yes; then
16183
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16184
 
fi
16185
 
 
16186
 
 
16187
 
fi
16188
 
 
16189
 
 
16190
 
fi
16191
 
 
16192
 
 
16193
 
fi
16194
 
 
16195
 
 
16196
 
fi
16197
 
 
16198
 
 
16199
 
fi
16200
 
 
16201
 
    ;;
16202
 
  esac
16203
 
 
16204
 
  if test "x$lt_cv_dlopen" != xno; then
16205
 
    enable_dlopen=yes
16206
 
  else
16207
 
    enable_dlopen=no
16208
 
  fi
16209
 
 
16210
 
  case $lt_cv_dlopen in
16211
 
  dlopen)
16212
 
    save_CPPFLAGS="$CPPFLAGS"
16213
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16214
 
 
16215
 
    save_LDFLAGS="$LDFLAGS"
16216
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16217
 
 
16218
 
    save_LIBS="$LIBS"
16219
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
16220
 
 
16221
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16222
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16223
 
if test "${lt_cv_dlopen_self+set}" = set; then
16224
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16225
 
else
16226
 
          if test "$cross_compiling" = yes; then :
16227
 
  lt_cv_dlopen_self=cross
16228
 
else
16229
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16230
 
  lt_status=$lt_dlunknown
16231
 
  cat > conftest.$ac_ext <<EOF
16232
 
#line 16232 "configure"
16233
 
#include "confdefs.h"
16234
 
 
16235
 
#if HAVE_DLFCN_H
16236
 
#include <dlfcn.h>
16237
 
#endif
16238
 
 
16239
 
#include <stdio.h>
16240
 
 
16241
 
#ifdef RTLD_GLOBAL
16242
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
16243
 
#else
16244
 
#  ifdef DL_GLOBAL
16245
 
#    define LT_DLGLOBAL         DL_GLOBAL
16246
 
#  else
16247
 
#    define LT_DLGLOBAL         0
16248
 
#  endif
16249
 
#endif
16250
 
 
16251
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16252
 
   find out it does not work in some platform. */
16253
 
#ifndef LT_DLLAZY_OR_NOW
16254
 
#  ifdef RTLD_LAZY
16255
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16256
 
#  else
16257
 
#    ifdef DL_LAZY
16258
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
16259
 
#    else
16260
 
#      ifdef RTLD_NOW
16261
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
16262
 
#      else
16263
 
#        ifdef DL_NOW
16264
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
16265
 
#        else
16266
 
#          define LT_DLLAZY_OR_NOW      0
16267
 
#        endif
16268
 
#      endif
16269
 
#    endif
16270
 
#  endif
16271
 
#endif
16272
 
 
16273
 
#ifdef __cplusplus
16274
 
extern "C" void exit (int);
16275
 
#endif
16276
 
 
16277
 
void fnord() { int i=42;}
16278
 
int main ()
16279
 
{
16280
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16281
 
  int status = $lt_dlunknown;
16282
 
 
16283
 
  if (self)
16284
 
    {
16285
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16286
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16287
 
      /* dlclose (self); */
16288
 
    }
16289
 
 
16290
 
    exit (status);
16291
 
}
16292
 
EOF
16293
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16294
 
  (eval $ac_link) 2>&5
16295
 
  ac_status=$?
16296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16298
 
    (./conftest; exit; ) 2>/dev/null
16299
 
    lt_status=$?
16300
 
    case x$lt_status in
16301
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16302
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16303
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16304
 
    esac
16305
 
  else :
16306
 
    # compilation failed
16307
 
    lt_cv_dlopen_self=no
16308
 
  fi
16309
 
fi
16310
 
rm -fr conftest*
16311
 
 
16312
 
 
16313
 
fi
16314
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16315
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16316
 
 
16317
 
    if test "x$lt_cv_dlopen_self" = xyes; then
16318
 
      LDFLAGS="$LDFLAGS $link_static_flag"
16319
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16320
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16321
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
16322
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16323
 
else
16324
 
          if test "$cross_compiling" = yes; then :
16325
 
  lt_cv_dlopen_self_static=cross
16326
 
else
16327
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16328
 
  lt_status=$lt_dlunknown
16329
 
  cat > conftest.$ac_ext <<EOF
16330
 
#line 16330 "configure"
16331
 
#include "confdefs.h"
16332
 
 
16333
 
#if HAVE_DLFCN_H
16334
 
#include <dlfcn.h>
16335
 
#endif
16336
 
 
16337
 
#include <stdio.h>
16338
 
 
16339
 
#ifdef RTLD_GLOBAL
16340
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
16341
 
#else
16342
 
#  ifdef DL_GLOBAL
16343
 
#    define LT_DLGLOBAL         DL_GLOBAL
16344
 
#  else
16345
 
#    define LT_DLGLOBAL         0
16346
 
#  endif
16347
 
#endif
16348
 
 
16349
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16350
 
   find out it does not work in some platform. */
16351
 
#ifndef LT_DLLAZY_OR_NOW
16352
 
#  ifdef RTLD_LAZY
16353
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16354
 
#  else
16355
 
#    ifdef DL_LAZY
16356
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
16357
 
#    else
16358
 
#      ifdef RTLD_NOW
16359
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
16360
 
#      else
16361
 
#        ifdef DL_NOW
16362
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
16363
 
#        else
16364
 
#          define LT_DLLAZY_OR_NOW      0
16365
 
#        endif
16366
 
#      endif
16367
 
#    endif
16368
 
#  endif
16369
 
#endif
16370
 
 
16371
 
#ifdef __cplusplus
16372
 
extern "C" void exit (int);
16373
 
#endif
16374
 
 
16375
 
void fnord() { int i=42;}
16376
 
int main ()
16377
 
{
16378
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16379
 
  int status = $lt_dlunknown;
16380
 
 
16381
 
  if (self)
16382
 
    {
16383
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16384
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16385
 
      /* dlclose (self); */
16386
 
    }
16387
 
 
16388
 
    exit (status);
16389
 
}
16390
 
EOF
16391
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392
 
  (eval $ac_link) 2>&5
16393
 
  ac_status=$?
16394
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16396
 
    (./conftest; exit; ) 2>/dev/null
16397
 
    lt_status=$?
16398
 
    case x$lt_status in
16399
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16400
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16401
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16402
 
    esac
16403
 
  else :
16404
 
    # compilation failed
16405
 
    lt_cv_dlopen_self_static=no
16406
 
  fi
16407
 
fi
16408
 
rm -fr conftest*
16409
 
 
16410
 
 
16411
 
fi
16412
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16413
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16414
 
    fi
16415
 
 
16416
 
    CPPFLAGS="$save_CPPFLAGS"
16417
 
    LDFLAGS="$save_LDFLAGS"
16418
 
    LIBS="$save_LIBS"
16419
 
    ;;
16420
 
  esac
16421
 
 
16422
 
  case $lt_cv_dlopen_self in
16423
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16424
 
  *) enable_dlopen_self=unknown ;;
16425
 
  esac
16426
 
 
16427
 
  case $lt_cv_dlopen_self_static in
16428
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16429
 
  *) enable_dlopen_self_static=unknown ;;
16430
 
  esac
16431
 
fi
16432
 
 
16433
 
 
16434
 
# The else clause should only fire when bootstrapping the
16435
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16436
 
# with your package, and you will get complaints that there are
16437
 
# no rules to generate ltmain.sh.
16438
 
if test -f "$ltmain"; then
16439
 
  # Now quote all the things that may contain metacharacters while being
16440
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16441
 
  # variables and quote the copies for generation of the libtool script.
16442
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
16443
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16444
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16445
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16446
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16447
 
    lt_cv_sys_global_symbol_to_c_name_address \
16448
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16449
 
    old_postinstall_cmds old_postuninstall_cmds \
16450
 
    compiler_GCJ \
16451
 
    CC_GCJ \
16452
 
    LD_GCJ \
16453
 
    lt_prog_compiler_wl_GCJ \
16454
 
    lt_prog_compiler_pic_GCJ \
16455
 
    lt_prog_compiler_static_GCJ \
16456
 
    lt_prog_compiler_no_builtin_flag_GCJ \
16457
 
    export_dynamic_flag_spec_GCJ \
16458
 
    thread_safe_flag_spec_GCJ \
16459
 
    whole_archive_flag_spec_GCJ \
16460
 
    old_archive_cmds_GCJ \
16461
 
    old_archive_from_new_cmds_GCJ \
16462
 
    predep_objects_GCJ \
16463
 
    postdep_objects_GCJ \
16464
 
    predeps_GCJ \
16465
 
    postdeps_GCJ \
16466
 
    compiler_lib_search_path_GCJ \
16467
 
    archive_cmds_GCJ \
16468
 
    archive_expsym_cmds_GCJ \
16469
 
    postinstall_cmds_GCJ \
16470
 
    postuninstall_cmds_GCJ \
16471
 
    old_archive_from_expsyms_cmds_GCJ \
16472
 
    allow_undefined_flag_GCJ \
16473
 
    no_undefined_flag_GCJ \
16474
 
    export_symbols_cmds_GCJ \
16475
 
    hardcode_libdir_flag_spec_GCJ \
16476
 
    hardcode_libdir_separator_GCJ \
16477
 
    lt_cv_prog_compiler_c_o_GCJ \
16478
 
    exclude_expsyms_GCJ \
16479
 
    include_expsyms_GCJ; do
16480
 
 
16481
 
    case $var in
16482
 
    old_archive_cmds_GCJ | \
16483
 
    old_archive_from_new_cmds_GCJ | \
16484
 
    archive_cmds_GCJ | \
16485
 
    archive_expsym_cmds_GCJ | \
16486
 
    old_archive_from_expsyms_cmds_GCJ | \
16487
 
    export_symbols_cmds_GCJ | \
16488
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16489
 
    postinstall_cmds | postuninstall_cmds | \
16490
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16491
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16492
 
      # Double-quote double-evaled strings.
16493
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16494
 
      ;;
16495
 
    *)
16496
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16497
 
      ;;
16498
 
    esac
16499
 
  done
16500
 
 
16501
 
  case $lt_echo in
16502
 
  *'\$0 --fallback-echo"')
16503
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16504
 
    ;;
16505
 
  esac
16506
 
 
16507
 
cfgfile="$ofile"
16508
 
 
16509
 
  cat <<__EOF__ >> "$cfgfile"
16510
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16511
 
 
16512
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16513
 
 
16514
 
# Shell to use when invoking shell scripts.
16515
 
SHELL=$lt_SHELL
16516
 
 
16517
 
# Whether or not to build shared libraries.
16518
 
build_libtool_libs=$enable_shared
16519
 
 
16520
 
# Whether or not to build static libraries.
16521
 
build_old_libs=$enable_static
16522
 
 
16523
 
# Whether or not to add -lc for building shared libraries.
16524
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16525
 
 
16526
 
# Whether or not to optimize for fast installation.
16527
 
fast_install=$enable_fast_install
16528
 
 
16529
 
# The host system.
16530
 
host_alias=$host_alias
16531
 
host=$host
16532
 
 
16533
 
# An echo program that does not interpret backslashes.
16534
 
echo=$lt_echo
16535
 
 
16536
 
# The archiver.
16537
 
AR=$lt_AR
16538
 
AR_FLAGS=$lt_AR_FLAGS
16539
 
 
16540
 
# A C compiler.
16541
 
LTCC=$lt_LTCC
16542
 
 
16543
 
# A language-specific compiler.
16544
 
CC=$lt_compiler_GCJ
16545
 
 
16546
 
# Is the compiler the GNU C compiler?
16547
 
with_gcc=$GCC_GCJ
16548
 
 
16549
 
# The linker used to build libraries.
16550
 
LD=$lt_LD_GCJ
16551
 
 
16552
 
# Whether we need hard or soft links.
16553
 
LN_S=$lt_LN_S
16554
 
 
16555
 
# A BSD-compatible nm program.
16556
 
NM=$lt_NM
16557
 
 
16558
 
# A sed program that does not truncate output.
16559
 
SED=$lt_SED
16560
 
 
16561
 
# A symbol stripping program
16562
 
STRIP=$STRIP
16563
 
 
16564
 
# Used to examine libraries when file_magic_cmd begins "file"
16565
 
MAGIC_CMD=$MAGIC_CMD
16566
 
 
16567
 
# Used on cygwin: DLL creation program.
16568
 
DLLTOOL="$DLLTOOL"
16569
 
 
16570
 
# Used on cygwin: object dumper.
16571
 
OBJDUMP="$OBJDUMP"
16572
 
 
16573
 
# Used on cygwin: assembler.
16574
 
AS="$AS"
16575
 
 
16576
 
# The name of the directory that contains temporary libtool files.
16577
 
objdir=$objdir
16578
 
 
16579
 
# How to create reloadable object files.
16580
 
reload_flag=$lt_reload_flag
16581
 
reload_cmds=$lt_reload_cmds
16582
 
 
16583
 
# How to pass a linker flag through the compiler.
16584
 
wl=$lt_lt_prog_compiler_wl_GCJ
16585
 
 
16586
 
# Object file suffix (normally "o").
16587
 
objext="$ac_objext"
16588
 
 
16589
 
# Old archive suffix (normally "a").
16590
 
libext="$libext"
16591
 
 
16592
 
# Executable file suffix (normally "").
16593
 
exeext="$exeext"
16594
 
 
16595
 
# Additional compiler flags for building library objects.
16596
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
16597
 
pic_mode=$pic_mode
16598
 
 
16599
 
# What is the maximum length of a command?
16600
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16601
 
 
16602
 
# Does compiler simultaneously support -c and -o options?
16603
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
16604
 
 
16605
 
# Must we lock files when doing compilation ?
16606
 
need_locks=$lt_need_locks
16607
 
 
16608
 
# Do we need the lib prefix for modules?
16609
 
need_lib_prefix=$need_lib_prefix
16610
 
 
16611
 
# Do we need a version for libraries?
16612
 
need_version=$need_version
16613
 
 
16614
 
# Whether dlopen is supported.
16615
 
dlopen_support=$enable_dlopen
16616
 
 
16617
 
# Whether dlopen of programs is supported.
16618
 
dlopen_self=$enable_dlopen_self
16619
 
 
16620
 
# Whether dlopen of statically linked programs is supported.
16621
 
dlopen_self_static=$enable_dlopen_self_static
16622
 
 
16623
 
# Compiler flag to prevent dynamic linking.
16624
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
16625
 
 
16626
 
# Compiler flag to turn off builtin functions.
16627
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
16628
 
 
16629
 
# Compiler flag to allow reflexive dlopens.
16630
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
16631
 
 
16632
 
# Compiler flag to generate shared objects directly from archives.
16633
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
16634
 
 
16635
 
# Compiler flag to generate thread-safe objects.
16636
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
16637
 
 
16638
 
# Library versioning type.
16639
 
version_type=$version_type
16640
 
 
16641
 
# Format of library name prefix.
16642
 
libname_spec=$lt_libname_spec
16643
 
 
16644
 
# List of archive names.  First name is the real one, the rest are links.
16645
 
# The last name is the one that the linker finds with -lNAME.
16646
 
library_names_spec=$lt_library_names_spec
16647
 
 
16648
 
# The coded name of the library, if different from the real name.
16649
 
soname_spec=$lt_soname_spec
16650
 
 
16651
 
# Commands used to build and install an old-style archive.
16652
 
RANLIB=$lt_RANLIB
16653
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
16654
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16655
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16656
 
 
16657
 
# Create an old-style archive from a shared archive.
16658
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
16659
 
 
16660
 
# Create a temporary old-style archive to link instead of a shared archive.
16661
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
16662
 
 
16663
 
# Commands used to build and install a shared archive.
16664
 
archive_cmds=$lt_archive_cmds_GCJ
16665
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
16666
 
postinstall_cmds=$lt_postinstall_cmds
16667
 
postuninstall_cmds=$lt_postuninstall_cmds
16668
 
 
16669
 
# Commands to strip libraries.
16670
 
old_striplib=$lt_old_striplib
16671
 
striplib=$lt_striplib
16672
 
 
16673
 
# Dependencies to place before the objects being linked to create a
16674
 
# shared library.
16675
 
predep_objects=$lt_predep_objects_GCJ
16676
 
 
16677
 
# Dependencies to place after the objects being linked to create a
16678
 
# shared library.
16679
 
postdep_objects=$lt_postdep_objects_GCJ
16680
 
 
16681
 
# Dependencies to place before the objects being linked to create a
16682
 
# shared library.
16683
 
predeps=$lt_predeps_GCJ
16684
 
 
16685
 
# Dependencies to place after the objects being linked to create a
16686
 
# shared library.
16687
 
postdeps=$lt_postdeps_GCJ
16688
 
 
16689
 
# The library search path used internally by the compiler when linking
16690
 
# a shared library.
16691
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
16692
 
 
16693
 
# Method to check whether dependent libraries are shared objects.
16694
 
deplibs_check_method=$lt_deplibs_check_method
16695
 
 
16696
 
# Command to use when deplibs_check_method == file_magic.
16697
 
file_magic_cmd=$lt_file_magic_cmd
16698
 
 
16699
 
# Flag that allows shared libraries with undefined symbols to be built.
16700
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
16701
 
 
16702
 
# Flag that forces no undefined symbols.
16703
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
16704
 
 
16705
 
# Commands used to finish a libtool library installation in a directory.
16706
 
finish_cmds=$lt_finish_cmds
16707
 
 
16708
 
# Same as above, but a single script fragment to be evaled but not shown.
16709
 
finish_eval=$lt_finish_eval
16710
 
 
16711
 
# Take the output of nm and produce a listing of raw symbols and C names.
16712
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16713
 
 
16714
 
# Transform the output of nm in a proper C declaration
16715
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16716
 
 
16717
 
# Transform the output of nm in a C name address pair
16718
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16719
 
 
16720
 
# This is the shared library runtime path variable.
16721
 
runpath_var=$runpath_var
16722
 
 
16723
 
# This is the shared library path variable.
16724
 
shlibpath_var=$shlibpath_var
16725
 
 
16726
 
# Is shlibpath searched before the hard-coded library search path?
16727
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16728
 
 
16729
 
# How to hardcode a shared library path into an executable.
16730
 
hardcode_action=$hardcode_action_GCJ
16731
 
 
16732
 
# Whether we should hardcode library paths into libraries.
16733
 
hardcode_into_libs=$hardcode_into_libs
16734
 
 
16735
 
# Flag to hardcode \$libdir into a binary during linking.
16736
 
# This must work even if \$libdir does not exist.
16737
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16738
 
 
16739
 
# Whether we need a single -rpath flag with a separated argument.
16740
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
16741
 
 
16742
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
16743
 
# resulting binary.
16744
 
hardcode_direct=$hardcode_direct_GCJ
16745
 
 
16746
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16747
 
# resulting binary.
16748
 
hardcode_minus_L=$hardcode_minus_L_GCJ
16749
 
 
16750
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16751
 
# the resulting binary.
16752
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
16753
 
 
16754
 
# Variables whose values should be saved in libtool wrapper scripts and
16755
 
# restored at relink time.
16756
 
variables_saved_for_relink="$variables_saved_for_relink"
16757
 
 
16758
 
# Whether libtool must link a program against all its dependency libraries.
16759
 
link_all_deplibs=$link_all_deplibs_GCJ
16760
 
 
16761
 
# Compile-time system search path for libraries
16762
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16763
 
 
16764
 
# Run-time system search path for libraries
16765
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16766
 
 
16767
 
# Fix the shell variable \$srcfile for the compiler.
16768
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
16769
 
 
16770
 
# Set to yes if exported symbols are required.
16771
 
always_export_symbols=$always_export_symbols_GCJ
16772
 
 
16773
 
# The commands to list exported symbols.
16774
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
16775
 
 
16776
 
# The commands to extract the exported symbol list from a shared archive.
16777
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16778
 
 
16779
 
# Symbols that should not be listed in the preloaded symbols.
16780
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
16781
 
 
16782
 
# Symbols that must always be exported.
16783
 
include_expsyms=$lt_include_expsyms_GCJ
16784
 
 
16785
 
# ### END LIBTOOL TAG CONFIG: $tagname
16786
 
 
16787
 
__EOF__
16788
 
 
16789
 
 
16790
 
else
16791
 
  # If there is no Makefile yet, we rely on a make rule to execute
16792
 
  # `config.status --recheck' to rerun these tests and create the
16793
 
  # libtool script then.
16794
 
  test -f Makefile && make "$ltmain"
16795
 
fi
16796
 
 
16797
 
 
16798
 
ac_ext=c
16799
 
ac_cpp='$CPP $CPPFLAGS'
16800
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16801
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16802
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16803
 
 
16804
 
CC="$lt_save_CC"
16805
 
 
16806
 
        ;;
16807
 
 
16808
 
      RC)
16809
 
 
16810
 
 
16811
 
 
16812
 
# Source file extension for RC test sources.
16813
 
ac_ext=rc
16814
 
 
16815
 
# Object file extension for compiled RC test sources.
16816
 
objext=o
16817
 
objext_RC=$objext
16818
 
 
16819
 
# Code to be used in simple compile tests
16820
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16821
 
 
16822
 
# Code to be used in simple link tests
16823
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
16824
 
 
16825
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16826
 
 
16827
 
# If no C compiler was specified, use CC.
16828
 
LTCC=${LTCC-"$CC"}
16829
 
 
16830
 
# Allow CC to be a program name with arguments.
16831
 
set dummy $CC
16832
 
compiler="$2"
16833
 
 
16834
 
 
16835
 
# Allow CC to be a program name with arguments.
16836
 
lt_save_CC="$CC"
16837
 
CC=${RC-"windres"}
16838
 
set dummy $CC
16839
 
compiler="$2"
16840
 
compiler_RC=$CC
16841
 
lt_cv_prog_compiler_c_o_RC=yes
16842
 
 
16843
 
# The else clause should only fire when bootstrapping the
16844
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16845
 
# with your package, and you will get complaints that there are
16846
 
# no rules to generate ltmain.sh.
16847
 
if test -f "$ltmain"; then
16848
 
  # Now quote all the things that may contain metacharacters while being
16849
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16850
 
  # variables and quote the copies for generation of the libtool script.
16851
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
16852
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16853
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16854
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16855
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16856
 
    lt_cv_sys_global_symbol_to_c_name_address \
16857
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16858
 
    old_postinstall_cmds old_postuninstall_cmds \
16859
 
    compiler_RC \
16860
 
    CC_RC \
16861
 
    LD_RC \
16862
 
    lt_prog_compiler_wl_RC \
16863
 
    lt_prog_compiler_pic_RC \
16864
 
    lt_prog_compiler_static_RC \
16865
 
    lt_prog_compiler_no_builtin_flag_RC \
16866
 
    export_dynamic_flag_spec_RC \
16867
 
    thread_safe_flag_spec_RC \
16868
 
    whole_archive_flag_spec_RC \
16869
 
    old_archive_cmds_RC \
16870
 
    old_archive_from_new_cmds_RC \
16871
 
    predep_objects_RC \
16872
 
    postdep_objects_RC \
16873
 
    predeps_RC \
16874
 
    postdeps_RC \
16875
 
    compiler_lib_search_path_RC \
16876
 
    archive_cmds_RC \
16877
 
    archive_expsym_cmds_RC \
16878
 
    postinstall_cmds_RC \
16879
 
    postuninstall_cmds_RC \
16880
 
    old_archive_from_expsyms_cmds_RC \
16881
 
    allow_undefined_flag_RC \
16882
 
    no_undefined_flag_RC \
16883
 
    export_symbols_cmds_RC \
16884
 
    hardcode_libdir_flag_spec_RC \
16885
 
    hardcode_libdir_separator_RC \
16886
 
    lt_cv_prog_compiler_c_o_RC \
16887
 
    exclude_expsyms_RC \
16888
 
    include_expsyms_RC; do
16889
 
 
16890
 
    case $var in
16891
 
    old_archive_cmds_RC | \
16892
 
    old_archive_from_new_cmds_RC | \
16893
 
    archive_cmds_RC | \
16894
 
    archive_expsym_cmds_RC | \
16895
 
    old_archive_from_expsyms_cmds_RC | \
16896
 
    export_symbols_cmds_RC | \
16897
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16898
 
    postinstall_cmds | postuninstall_cmds | \
16899
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16900
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16901
 
      # Double-quote double-evaled strings.
16902
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16903
 
      ;;
16904
 
    *)
16905
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16906
 
      ;;
16907
 
    esac
16908
 
  done
16909
 
 
16910
 
  case $lt_echo in
16911
 
  *'\$0 --fallback-echo"')
16912
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16913
 
    ;;
16914
 
  esac
16915
 
 
16916
 
cfgfile="$ofile"
16917
 
 
16918
 
  cat <<__EOF__ >> "$cfgfile"
16919
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16920
 
 
16921
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16922
 
 
16923
 
# Shell to use when invoking shell scripts.
16924
 
SHELL=$lt_SHELL
16925
 
 
16926
 
# Whether or not to build shared libraries.
16927
 
build_libtool_libs=$enable_shared
16928
 
 
16929
 
# Whether or not to build static libraries.
16930
 
build_old_libs=$enable_static
16931
 
 
16932
 
# Whether or not to add -lc for building shared libraries.
16933
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
16934
 
 
16935
 
# Whether or not to optimize for fast installation.
16936
 
fast_install=$enable_fast_install
16937
 
 
16938
 
# The host system.
16939
 
host_alias=$host_alias
16940
 
host=$host
16941
 
 
16942
 
# An echo program that does not interpret backslashes.
16943
 
echo=$lt_echo
16944
 
 
16945
 
# The archiver.
16946
 
AR=$lt_AR
16947
 
AR_FLAGS=$lt_AR_FLAGS
16948
 
 
16949
 
# A C compiler.
16950
 
LTCC=$lt_LTCC
16951
 
 
16952
 
# A language-specific compiler.
16953
 
CC=$lt_compiler_RC
16954
 
 
16955
 
# Is the compiler the GNU C compiler?
16956
 
with_gcc=$GCC_RC
16957
 
 
16958
 
# The linker used to build libraries.
16959
 
LD=$lt_LD_RC
16960
 
 
16961
 
# Whether we need hard or soft links.
16962
 
LN_S=$lt_LN_S
16963
 
 
16964
 
# A BSD-compatible nm program.
16965
 
NM=$lt_NM
16966
 
 
16967
 
# A sed program that does not truncate output.
16968
 
SED=$lt_SED
16969
 
 
16970
 
# A symbol stripping program
16971
 
STRIP=$STRIP
16972
 
 
16973
 
# Used to examine libraries when file_magic_cmd begins "file"
16974
 
MAGIC_CMD=$MAGIC_CMD
16975
 
 
16976
 
# Used on cygwin: DLL creation program.
16977
 
DLLTOOL="$DLLTOOL"
16978
 
 
16979
 
# Used on cygwin: object dumper.
16980
 
OBJDUMP="$OBJDUMP"
16981
 
 
16982
 
# Used on cygwin: assembler.
16983
 
AS="$AS"
16984
 
 
16985
 
# The name of the directory that contains temporary libtool files.
16986
 
objdir=$objdir
16987
 
 
16988
 
# How to create reloadable object files.
16989
 
reload_flag=$lt_reload_flag
16990
 
reload_cmds=$lt_reload_cmds
16991
 
 
16992
 
# How to pass a linker flag through the compiler.
16993
 
wl=$lt_lt_prog_compiler_wl_RC
16994
 
 
16995
 
# Object file suffix (normally "o").
16996
 
objext="$ac_objext"
16997
 
 
16998
 
# Old archive suffix (normally "a").
16999
 
libext="$libext"
17000
 
 
17001
 
# Executable file suffix (normally "").
17002
 
exeext="$exeext"
17003
 
 
17004
 
# Additional compiler flags for building library objects.
17005
 
pic_flag=$lt_lt_prog_compiler_pic_RC
17006
 
pic_mode=$pic_mode
17007
 
 
17008
 
# What is the maximum length of a command?
17009
 
max_cmd_len=$lt_cv_sys_max_cmd_len
17010
 
 
17011
 
# Does compiler simultaneously support -c and -o options?
17012
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17013
 
 
17014
 
# Must we lock files when doing compilation ?
17015
 
need_locks=$lt_need_locks
17016
 
 
17017
 
# Do we need the lib prefix for modules?
17018
 
need_lib_prefix=$need_lib_prefix
17019
 
 
17020
 
# Do we need a version for libraries?
17021
 
need_version=$need_version
17022
 
 
17023
 
# Whether dlopen is supported.
17024
 
dlopen_support=$enable_dlopen
17025
 
 
17026
 
# Whether dlopen of programs is supported.
17027
 
dlopen_self=$enable_dlopen_self
17028
 
 
17029
 
# Whether dlopen of statically linked programs is supported.
17030
 
dlopen_self_static=$enable_dlopen_self_static
17031
 
 
17032
 
# Compiler flag to prevent dynamic linking.
17033
 
link_static_flag=$lt_lt_prog_compiler_static_RC
17034
 
 
17035
 
# Compiler flag to turn off builtin functions.
17036
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17037
 
 
17038
 
# Compiler flag to allow reflexive dlopens.
17039
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17040
 
 
17041
 
# Compiler flag to generate shared objects directly from archives.
17042
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17043
 
 
17044
 
# Compiler flag to generate thread-safe objects.
17045
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17046
 
 
17047
 
# Library versioning type.
17048
 
version_type=$version_type
17049
 
 
17050
 
# Format of library name prefix.
17051
 
libname_spec=$lt_libname_spec
17052
 
 
17053
 
# List of archive names.  First name is the real one, the rest are links.
17054
 
# The last name is the one that the linker finds with -lNAME.
17055
 
library_names_spec=$lt_library_names_spec
17056
 
 
17057
 
# The coded name of the library, if different from the real name.
17058
 
soname_spec=$lt_soname_spec
17059
 
 
17060
 
# Commands used to build and install an old-style archive.
17061
 
RANLIB=$lt_RANLIB
17062
 
old_archive_cmds=$lt_old_archive_cmds_RC
17063
 
old_postinstall_cmds=$lt_old_postinstall_cmds
17064
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17065
 
 
17066
 
# Create an old-style archive from a shared archive.
17067
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17068
 
 
17069
 
# Create a temporary old-style archive to link instead of a shared archive.
17070
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17071
 
 
17072
 
# Commands used to build and install a shared archive.
17073
 
archive_cmds=$lt_archive_cmds_RC
17074
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17075
 
postinstall_cmds=$lt_postinstall_cmds
17076
 
postuninstall_cmds=$lt_postuninstall_cmds
17077
 
 
17078
 
# Commands to strip libraries.
17079
 
old_striplib=$lt_old_striplib
17080
 
striplib=$lt_striplib
17081
 
 
17082
 
# Dependencies to place before the objects being linked to create a
17083
 
# shared library.
17084
 
predep_objects=$lt_predep_objects_RC
17085
 
 
17086
 
# Dependencies to place after the objects being linked to create a
17087
 
# shared library.
17088
 
postdep_objects=$lt_postdep_objects_RC
17089
 
 
17090
 
# Dependencies to place before the objects being linked to create a
17091
 
# shared library.
17092
 
predeps=$lt_predeps_RC
17093
 
 
17094
 
# Dependencies to place after the objects being linked to create a
17095
 
# shared library.
17096
 
postdeps=$lt_postdeps_RC
17097
 
 
17098
 
# The library search path used internally by the compiler when linking
17099
 
# a shared library.
17100
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17101
 
 
17102
 
# Method to check whether dependent libraries are shared objects.
17103
 
deplibs_check_method=$lt_deplibs_check_method
17104
 
 
17105
 
# Command to use when deplibs_check_method == file_magic.
17106
 
file_magic_cmd=$lt_file_magic_cmd
17107
 
 
17108
 
# Flag that allows shared libraries with undefined symbols to be built.
17109
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
17110
 
 
17111
 
# Flag that forces no undefined symbols.
17112
 
no_undefined_flag=$lt_no_undefined_flag_RC
17113
 
 
17114
 
# Commands used to finish a libtool library installation in a directory.
17115
 
finish_cmds=$lt_finish_cmds
17116
 
 
17117
 
# Same as above, but a single script fragment to be evaled but not shown.
17118
 
finish_eval=$lt_finish_eval
17119
 
 
17120
 
# Take the output of nm and produce a listing of raw symbols and C names.
17121
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17122
 
 
17123
 
# Transform the output of nm in a proper C declaration
17124
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17125
 
 
17126
 
# Transform the output of nm in a C name address pair
17127
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17128
 
 
17129
 
# This is the shared library runtime path variable.
17130
 
runpath_var=$runpath_var
17131
 
 
17132
 
# This is the shared library path variable.
17133
 
shlibpath_var=$shlibpath_var
17134
 
 
17135
 
# Is shlibpath searched before the hard-coded library search path?
17136
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17137
 
 
17138
 
# How to hardcode a shared library path into an executable.
17139
 
hardcode_action=$hardcode_action_RC
17140
 
 
17141
 
# Whether we should hardcode library paths into libraries.
17142
 
hardcode_into_libs=$hardcode_into_libs
17143
 
 
17144
 
# Flag to hardcode \$libdir into a binary during linking.
17145
 
# This must work even if \$libdir does not exist.
17146
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17147
 
 
17148
 
# Whether we need a single -rpath flag with a separated argument.
17149
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17150
 
 
17151
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
17152
 
# resulting binary.
17153
 
hardcode_direct=$hardcode_direct_RC
17154
 
 
17155
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17156
 
# resulting binary.
17157
 
hardcode_minus_L=$hardcode_minus_L_RC
17158
 
 
17159
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17160
 
# the resulting binary.
17161
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17162
 
 
17163
 
# Variables whose values should be saved in libtool wrapper scripts and
17164
 
# restored at relink time.
17165
 
variables_saved_for_relink="$variables_saved_for_relink"
17166
 
 
17167
 
# Whether libtool must link a program against all its dependency libraries.
17168
 
link_all_deplibs=$link_all_deplibs_RC
17169
 
 
17170
 
# Compile-time system search path for libraries
17171
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17172
 
 
17173
 
# Run-time system search path for libraries
17174
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17175
 
 
17176
 
# Fix the shell variable \$srcfile for the compiler.
17177
 
fix_srcfile_path="$fix_srcfile_path_RC"
17178
 
 
17179
 
# Set to yes if exported symbols are required.
17180
 
always_export_symbols=$always_export_symbols_RC
17181
 
 
17182
 
# The commands to list exported symbols.
17183
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
17184
 
 
17185
 
# The commands to extract the exported symbol list from a shared archive.
17186
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17187
 
 
17188
 
# Symbols that should not be listed in the preloaded symbols.
17189
 
exclude_expsyms=$lt_exclude_expsyms_RC
17190
 
 
17191
 
# Symbols that must always be exported.
17192
 
include_expsyms=$lt_include_expsyms_RC
17193
 
 
17194
 
# ### END LIBTOOL TAG CONFIG: $tagname
17195
 
 
17196
 
__EOF__
17197
 
 
17198
 
 
17199
 
else
17200
 
  # If there is no Makefile yet, we rely on a make rule to execute
17201
 
  # `config.status --recheck' to rerun these tests and create the
17202
 
  # libtool script then.
17203
 
  test -f Makefile && make "$ltmain"
17204
 
fi
17205
 
 
17206
 
 
17207
 
ac_ext=c
17208
 
ac_cpp='$CPP $CPPFLAGS'
17209
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17210
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17211
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17212
 
 
17213
 
CC="$lt_save_CC"
17214
 
 
17215
 
        ;;
17216
 
 
17217
 
      *)
17218
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17219
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17220
 
   { (exit 1); exit 1; }; }
17221
 
        ;;
17222
 
      esac
17223
 
 
17224
 
      # Append the new tag name to the list of available tags.
17225
 
      available_tags="$available_tags $tagname"
17226
 
    fi
17227
 
  done
17228
 
  IFS="$lt_save_ifs"
17229
 
 
17230
 
  # Now substitute the updated list of available tags.
17231
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17232
 
    mv "${ofile}T" "$ofile"
17233
 
    chmod +x "$ofile"
17234
 
  else
17235
 
    rm -f "${ofile}T"
17236
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17237
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17238
 
   { (exit 1); exit 1; }; }
17239
 
  fi
17240
 
fi
17241
 
 
17242
 
 
17243
 
 
17244
 
# This can be used to rebuild libtool when needed
17245
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17246
 
 
17247
 
# Always use our own libtool.
17248
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
17249
 
 
17250
 
# Prevent multiple expansion
17251
 
 
17252
 
 
17253
 
 
17254
 
 
17255
 
 
17256
 
 
17257
 
 
17258
 
 
17259
 
 
17260
 
 
17261
 
 
17262
 
 
17263
 
 
17264
 
 
17265
 
ac_ext=c
17266
 
ac_cpp='$CPP $CPPFLAGS'
17267
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17268
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17269
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17270
 
 
17271
 
 
17272
 
 
17273
 
ac_ext=c
17274
 
ac_cpp='$CPP $CPPFLAGS'
17275
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17276
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17277
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17278
 
 
17279
 
 
17280
 
 
17281
 
 
17282
 
 
17283
 
 
17284
 
 
17285
 
 
17286
 
 
17287
 
 
17288
 
 
17289
 
 
17290
 
LIBTOOL_SHELL="/bin/sh ./libtool"
17291
 
#  LIBTOOL="$LIBTOOL --silent"
17292
 
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
17293
 
 
17294
 
 
17295
 
# Check whether --enable-objprelink or --disable-objprelink was given.
17296
 
if test "${enable_objprelink+set}" = set; then
17297
 
  enableval="$enable_objprelink"
17298
 
  kde_use_objprelink=$enableval
17299
 
else
17300
 
  kde_use_objprelink=no
17301
 
fi;
17302
 
  if test "x$kde_use_objprelink" = "xyes"; then
17303
 
        { echo "$as_me:$LINENO: WARNING:
17304
 
------------------------------------------------------------
17305
 
Configuration option --enable-objprelink is no longer useful.
17306
 
See http:://objprelink.sourceforge.net for details:
17307
 
1- Recent binutils are fast enough to do without objprelink.
17308
 
2- Newer versions of objprelink do not need this option.
17309
 
------------------------------------------------------------
17310
 
" >&5
17311
 
echo "$as_me: WARNING:
17312
 
------------------------------------------------------------
17313
 
Configuration option --enable-objprelink is no longer useful.
17314
 
See http:://objprelink.sourceforge.net for details:
17315
 
1- Recent binutils are fast enough to do without objprelink.
17316
 
2- Newer versions of objprelink do not need this option.
17317
 
------------------------------------------------------------
17318
 
" >&2;}
17319
 
  fi
17320
 
 
17321
 
 
17322
 
all_libraries="$all_libraries $USER_LDFLAGS"
17323
 
all_includes="$all_includes $USER_INCLUDES"
17324
 
 
17325
 
 
17326
 
 
17327
 
 
17328
 
 
17329
 
    # Extract the first word of "msgfmt", so it can be a program name with args.
17330
 
set dummy msgfmt; ac_word=$2
17331
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
17332
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17333
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
17334
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17335
 
else
17336
 
  case "$MSGFMT" in
17337
 
  /*)
17338
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17339
 
  ;;
17340
 
  *)
17341
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17342
 
  for ac_dir in $PATH; do
17343
 
    test -z "$ac_dir" && ac_dir=.
17344
 
    if test -f $ac_dir/$ac_word; then
17345
 
      if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
17346
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
17347
 
        break
17348
 
      fi
17349
 
    fi
17350
 
  done
17351
 
  IFS="$ac_save_ifs"
17352
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
17353
 
  ;;
17354
 
esac
17355
 
fi
17356
 
MSGFMT="$ac_cv_path_MSGFMT"
17357
 
if test -n "$MSGFMT"; then
17358
 
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
17359
 
echo "${ECHO_T}$MSGFMT" >&6
17360
 
else
17361
 
  echo "$as_me:$LINENO: result: no" >&5
17362
 
echo "${ECHO_T}no" >&6
17363
 
fi
17364
 
 
17365
 
    # Extract the first word of "gmsgfmt", so it can be a program name with args.
17366
 
set dummy gmsgfmt; ac_word=$2
17367
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
17368
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17369
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
17370
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17371
 
else
17372
 
  case $GMSGFMT in
17373
 
  [\\/]* | ?:[\\/]*)
17374
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17375
 
  ;;
17376
 
  *)
17377
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17378
 
for as_dir in $PATH
17379
 
do
17380
 
  IFS=$as_save_IFS
17381
 
  test -z "$as_dir" && as_dir=.
17382
 
  for ac_exec_ext in '' $ac_executable_extensions; do
17383
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17384
 
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17385
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17386
 
    break 2
17387
 
  fi
17388
 
done
17389
 
done
17390
 
 
17391
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17392
 
  ;;
17393
 
esac
17394
 
fi
17395
 
GMSGFMT=$ac_cv_path_GMSGFMT
17396
 
 
17397
 
if test -n "$GMSGFMT"; then
17398
 
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
17399
 
echo "${ECHO_T}$GMSGFMT" >&6
17400
 
else
17401
 
  echo "$as_me:$LINENO: result: no" >&5
17402
 
echo "${ECHO_T}no" >&6
17403
 
fi
17404
 
 
17405
 
 
17406
 
     if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
17407
 
        echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
17408
 
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
17409
 
        GMSGFMT=":"
17410
 
      fi
17411
 
      MSGFMT=$GMSGFMT
17412
 
 
17413
 
 
17414
 
 
17415
 
      # Extract the first word of "xgettext", so it can be a program name with args.
17416
 
set dummy xgettext; ac_word=$2
17417
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
17418
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17419
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
17420
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17421
 
else
17422
 
  case "$XGETTEXT" in
17423
 
  /*)
17424
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17425
 
  ;;
17426
 
  *)
17427
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17428
 
  for ac_dir in $PATH; do
17429
 
    test -z "$ac_dir" && ac_dir=.
17430
 
    if test -f $ac_dir/$ac_word; then
17431
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17432
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17433
 
        break
17434
 
      fi
17435
 
    fi
17436
 
  done
17437
 
  IFS="$ac_save_ifs"
17438
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17439
 
  ;;
17440
 
esac
17441
 
fi
17442
 
XGETTEXT="$ac_cv_path_XGETTEXT"
17443
 
if test -n "$XGETTEXT"; then
17444
 
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17445
 
echo "${ECHO_T}$XGETTEXT" >&6
17446
 
else
17447
 
  echo "$as_me:$LINENO: result: no" >&5
17448
 
echo "${ECHO_T}no" >&6
17449
 
fi
17450
 
 
17451
 
 
17452
 
            if test "$XGETTEXT" != ":"; then
17453
 
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
17454
 
          : ;
17455
 
        else
17456
 
          echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
17457
 
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
17458
 
          XGETTEXT=":"
17459
 
        fi
17460
 
      fi
17461
 
 
17462
 
 
17463
 
 
17464
 
 
17465
 
 
17466
 
if test -z ""; then
17467
 
  kde_qtver=3
17468
 
  kde_qtsubver=1
17469
 
else
17470
 
  kde_qtsubver=`echo "" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
17471
 
  # following is the check if subversion isn�t found in passed argument
17472
 
  if test "$kde_qtsubver" = ""; then
17473
 
    kde_qtsubver=1
17474
 
  fi
17475
 
  kde_qtver=`echo "" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
17476
 
  if test "$kde_qtver" = "1"; then
17477
 
    kde_qtsubver=42
17478
 
  fi
17479
 
fi
17480
 
 
17481
 
if test -z ""; then
17482
 
  if test "$kde_qtver" = "2"; then
17483
 
    if test $kde_qtsubver -gt 0; then
17484
 
      kde_qt_minversion=">= Qt 2.2.2"
17485
 
    else
17486
 
      kde_qt_minversion=">= Qt 2.0.2"
17487
 
    fi
17488
 
  fi
17489
 
  if test "$kde_qtver" = "3"; then
17490
 
    kde_qt_minversion=">= Qt 3.0.3"
17491
 
  fi
17492
 
  if test "$kde_qtver" = "1"; then
17493
 
    kde_qt_minversion=">= 1.42 and < 2.0"
17494
 
  fi
17495
 
else
17496
 
   kde_qt_minversion=
17497
 
fi
17498
 
 
17499
 
if test -z ""; then
17500
 
   if test $kde_qtver = 3; then
17501
 
     kde_qt_verstring="QT_VERSION >= 303"
17502
 
   fi
17503
 
   if test $kde_qtver = 2; then
17504
 
     if test $kde_qtsubver -gt 0; then
17505
 
       kde_qt_verstring="QT_VERSION >= 222"
17506
 
     else
17507
 
       kde_qt_verstring="QT_VERSION >= 200"
17508
 
     fi
17509
 
   fi
17510
 
   if test $kde_qtver = 1; then
17511
 
    kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
17512
 
   fi
17513
 
else
17514
 
   kde_qt_verstring=
17515
 
fi
17516
 
 
17517
 
if test $kde_qtver = 3; then
17518
 
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt"
17519
 
fi
17520
 
if test $kde_qtver = 2; then
17521
 
   kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
17522
 
fi
17523
 
if test $kde_qtver = 1; then
17524
 
   kde_qt_dirs="$QTDIR /usr/lib/qt"
17525
 
fi
17526
 
 
17527
 
 
17528
 
   ac_ext=c
17529
 
ac_cpp='$CPP $CPPFLAGS'
17530
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17531
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17532
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17533
 
 
17534
 
      echo "$as_me:$LINENO: checking for main in -lutil" >&5
17535
 
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
17536
 
if test "${ac_cv_lib_util_main+set}" = set; then
17537
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17538
 
else
17539
 
  ac_check_lib_save_LIBS=$LIBS
17540
 
LIBS="-lutil  $LIBS"
17541
 
cat >conftest.$ac_ext <<_ACEOF
17542
 
#line $LINENO "configure"
17543
 
/* confdefs.h.  */
17544
 
_ACEOF
17545
 
cat confdefs.h >>conftest.$ac_ext
17546
 
cat >>conftest.$ac_ext <<_ACEOF
17547
 
/* end confdefs.h.  */
17548
 
 
17549
 
 
17550
 
int
17551
 
main ()
17552
 
{
17553
 
main ();
17554
 
  ;
17555
 
  return 0;
17556
 
}
17557
 
_ACEOF
17558
 
rm -f conftest.$ac_objext conftest$ac_exeext
17559
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17560
 
  (eval $ac_link) 2>&5
17561
 
  ac_status=$?
17562
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563
 
  (exit $ac_status); } &&
17564
 
         { ac_try='test -s conftest$ac_exeext'
17565
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566
 
  (eval $ac_try) 2>&5
17567
 
  ac_status=$?
17568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569
 
  (exit $ac_status); }; }; then
17570
 
  ac_cv_lib_util_main=yes
17571
 
else
17572
 
  echo "$as_me: failed program was:" >&5
17573
 
sed 's/^/| /' conftest.$ac_ext >&5
17574
 
 
17575
 
ac_cv_lib_util_main=no
17576
 
fi
17577
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17578
 
LIBS=$ac_check_lib_save_LIBS
17579
 
fi
17580
 
echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
17581
 
echo "${ECHO_T}$ac_cv_lib_util_main" >&6
17582
 
if test $ac_cv_lib_util_main = yes; then
17583
 
  LIBUTIL="-lutil"
17584
 
fi
17585
 
 
17586
 
   echo "$as_me:$LINENO: checking for main in -lcompat" >&5
17587
 
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
17588
 
if test "${ac_cv_lib_compat_main+set}" = set; then
17589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17590
 
else
17591
 
  ac_check_lib_save_LIBS=$LIBS
17592
 
LIBS="-lcompat  $LIBS"
17593
 
cat >conftest.$ac_ext <<_ACEOF
17594
 
#line $LINENO "configure"
17595
 
/* confdefs.h.  */
17596
 
_ACEOF
17597
 
cat confdefs.h >>conftest.$ac_ext
17598
 
cat >>conftest.$ac_ext <<_ACEOF
17599
 
/* end confdefs.h.  */
17600
 
 
17601
 
 
17602
 
int
17603
 
main ()
17604
 
{
17605
 
main ();
17606
 
  ;
17607
 
  return 0;
17608
 
}
17609
 
_ACEOF
17610
 
rm -f conftest.$ac_objext conftest$ac_exeext
17611
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612
 
  (eval $ac_link) 2>&5
17613
 
  ac_status=$?
17614
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615
 
  (exit $ac_status); } &&
17616
 
         { ac_try='test -s conftest$ac_exeext'
17617
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618
 
  (eval $ac_try) 2>&5
17619
 
  ac_status=$?
17620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621
 
  (exit $ac_status); }; }; then
17622
 
  ac_cv_lib_compat_main=yes
17623
 
else
17624
 
  echo "$as_me: failed program was:" >&5
17625
 
sed 's/^/| /' conftest.$ac_ext >&5
17626
 
 
17627
 
ac_cv_lib_compat_main=no
17628
 
fi
17629
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17630
 
LIBS=$ac_check_lib_save_LIBS
17631
 
fi
17632
 
echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
17633
 
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
17634
 
if test $ac_cv_lib_compat_main = yes; then
17635
 
  LIBCOMPAT="-lcompat"
17636
 
fi
17637
 
 
17638
 
   kde_have_crypt=
17639
 
   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17640
 
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
17641
 
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17642
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17643
 
else
17644
 
  ac_check_lib_save_LIBS=$LIBS
17645
 
LIBS="-lcrypt  $LIBS"
17646
 
cat >conftest.$ac_ext <<_ACEOF
17647
 
#line $LINENO "configure"
17648
 
/* confdefs.h.  */
17649
 
_ACEOF
17650
 
cat confdefs.h >>conftest.$ac_ext
17651
 
cat >>conftest.$ac_ext <<_ACEOF
17652
 
/* end confdefs.h.  */
17653
 
 
17654
 
/* Override any gcc2 internal prototype to avoid an error.  */
17655
 
#ifdef __cplusplus
17656
 
extern "C"
17657
 
#endif
17658
 
/* We use char because int might match the return type of a gcc2
17659
 
   builtin and then its argument prototype would still apply.  */
17660
 
char crypt ();
17661
 
int
17662
 
main ()
17663
 
{
17664
 
crypt ();
17665
 
  ;
17666
 
  return 0;
17667
 
}
17668
 
_ACEOF
17669
 
rm -f conftest.$ac_objext conftest$ac_exeext
17670
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17671
 
  (eval $ac_link) 2>&5
17672
 
  ac_status=$?
17673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674
 
  (exit $ac_status); } &&
17675
 
         { ac_try='test -s conftest$ac_exeext'
17676
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677
 
  (eval $ac_try) 2>&5
17678
 
  ac_status=$?
17679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680
 
  (exit $ac_status); }; }; then
17681
 
  ac_cv_lib_crypt_crypt=yes
17682
 
else
17683
 
  echo "$as_me: failed program was:" >&5
17684
 
sed 's/^/| /' conftest.$ac_ext >&5
17685
 
 
17686
 
ac_cv_lib_crypt_crypt=no
17687
 
fi
17688
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17689
 
LIBS=$ac_check_lib_save_LIBS
17690
 
fi
17691
 
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17692
 
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17693
 
if test $ac_cv_lib_crypt_crypt = yes; then
17694
 
  LIBCRYPT="-lcrypt"; kde_have_crypt=yes
17695
 
else
17696
 
  echo "$as_me:$LINENO: checking for crypt in -lc" >&5
17697
 
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
17698
 
if test "${ac_cv_lib_c_crypt+set}" = set; then
17699
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17700
 
else
17701
 
  ac_check_lib_save_LIBS=$LIBS
17702
 
LIBS="-lc  $LIBS"
17703
 
cat >conftest.$ac_ext <<_ACEOF
17704
 
#line $LINENO "configure"
17705
 
/* confdefs.h.  */
17706
 
_ACEOF
17707
 
cat confdefs.h >>conftest.$ac_ext
17708
 
cat >>conftest.$ac_ext <<_ACEOF
17709
 
/* end confdefs.h.  */
17710
 
 
17711
 
/* Override any gcc2 internal prototype to avoid an error.  */
17712
 
#ifdef __cplusplus
17713
 
extern "C"
17714
 
#endif
17715
 
/* We use char because int might match the return type of a gcc2
17716
 
   builtin and then its argument prototype would still apply.  */
17717
 
char crypt ();
17718
 
int
17719
 
main ()
17720
 
{
17721
 
crypt ();
17722
 
  ;
17723
 
  return 0;
17724
 
}
17725
 
_ACEOF
17726
 
rm -f conftest.$ac_objext conftest$ac_exeext
17727
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17728
 
  (eval $ac_link) 2>&5
17729
 
  ac_status=$?
17730
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731
 
  (exit $ac_status); } &&
17732
 
         { ac_try='test -s conftest$ac_exeext'
17733
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734
 
  (eval $ac_try) 2>&5
17735
 
  ac_status=$?
17736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737
 
  (exit $ac_status); }; }; then
17738
 
  ac_cv_lib_c_crypt=yes
17739
 
else
17740
 
  echo "$as_me: failed program was:" >&5
17741
 
sed 's/^/| /' conftest.$ac_ext >&5
17742
 
 
17743
 
ac_cv_lib_c_crypt=no
17744
 
fi
17745
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17746
 
LIBS=$ac_check_lib_save_LIBS
17747
 
fi
17748
 
echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
17749
 
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
17750
 
if test $ac_cv_lib_c_crypt = yes; then
17751
 
  kde_have_crypt=yes
17752
 
else
17753
 
 
17754
 
        { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
17755
 
You should install libcrypt from another source or configure with PAM
17756
 
support" >&5
17757
 
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
17758
 
You should install libcrypt from another source or configure with PAM
17759
 
support" >&2;}
17760
 
        kde_have_crypt=no
17761
 
 
17762
 
fi
17763
 
 
17764
 
fi
17765
 
 
17766
 
 
17767
 
   if test $kde_have_crypt = yes; then
17768
 
 
17769
 
cat >>confdefs.h <<_ACEOF
17770
 
#define HAVE_CRYPT 1
17771
 
_ACEOF
17772
 
 
17773
 
   fi
17774
 
 
17775
 
  echo "$as_me:$LINENO: checking for socklen_t" >&5
17776
 
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17777
 
  if test "${ac_cv_socklen_t+set}" = set; then
17778
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17779
 
else
17780
 
 
17781
 
 
17782
 
 
17783
 
     ac_ext=cc
17784
 
ac_cpp='$CXXCPP $CPPFLAGS'
17785
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17786
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17787
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17788
 
 
17789
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17790
 
 
17791
 
 
17792
 
    cat >conftest.$ac_ext <<_ACEOF
17793
 
#line $LINENO "configure"
17794
 
/* confdefs.h.  */
17795
 
_ACEOF
17796
 
cat confdefs.h >>conftest.$ac_ext
17797
 
cat >>conftest.$ac_ext <<_ACEOF
17798
 
/* end confdefs.h.  */
17799
 
 
17800
 
#include <sys/types.h>
17801
 
#include <sys/socket.h>
17802
 
 
17803
 
int
17804
 
main ()
17805
 
{
17806
 
 
17807
 
socklen_t a=0;
17808
 
getsockname(0,(struct sockaddr*)0, &a);
17809
 
 
17810
 
  ;
17811
 
  return 0;
17812
 
}
17813
 
_ACEOF
17814
 
rm -f conftest.$ac_objext
17815
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816
 
  (eval $ac_compile) 2>&5
17817
 
  ac_status=$?
17818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819
 
  (exit $ac_status); } &&
17820
 
         { ac_try='test -s conftest.$ac_objext'
17821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822
 
  (eval $ac_try) 2>&5
17823
 
  ac_status=$?
17824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825
 
  (exit $ac_status); }; }; then
17826
 
  ac_cv_socklen_t=socklen_t
17827
 
else
17828
 
  echo "$as_me: failed program was:" >&5
17829
 
sed 's/^/| /' conftest.$ac_ext >&5
17830
 
 
17831
 
cat >conftest.$ac_ext <<_ACEOF
17832
 
#line $LINENO "configure"
17833
 
/* confdefs.h.  */
17834
 
_ACEOF
17835
 
cat confdefs.h >>conftest.$ac_ext
17836
 
cat >>conftest.$ac_ext <<_ACEOF
17837
 
/* end confdefs.h.  */
17838
 
 
17839
 
#include <sys/types.h>
17840
 
#include <sys/socket.h>
17841
 
 
17842
 
int
17843
 
main ()
17844
 
{
17845
 
 
17846
 
int a=0;
17847
 
getsockname(0,(struct sockaddr*)0, &a);
17848
 
 
17849
 
  ;
17850
 
  return 0;
17851
 
}
17852
 
_ACEOF
17853
 
rm -f conftest.$ac_objext
17854
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17855
 
  (eval $ac_compile) 2>&5
17856
 
  ac_status=$?
17857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858
 
  (exit $ac_status); } &&
17859
 
         { ac_try='test -s conftest.$ac_objext'
17860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861
 
  (eval $ac_try) 2>&5
17862
 
  ac_status=$?
17863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864
 
  (exit $ac_status); }; }; then
17865
 
  ac_cv_socklen_t=int
17866
 
else
17867
 
  echo "$as_me: failed program was:" >&5
17868
 
sed 's/^/| /' conftest.$ac_ext >&5
17869
 
 
17870
 
ac_cv_socklen_t=size_t
17871
 
 
17872
 
fi
17873
 
rm -f conftest.$ac_objext conftest.$ac_ext
17874
 
 
17875
 
fi
17876
 
rm -f conftest.$ac_objext conftest.$ac_ext
17877
 
    ac_ext=c
17878
 
ac_cpp='$CPP $CPPFLAGS'
17879
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17880
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17881
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17882
 
 
17883
 
 
17884
 
fi
17885
 
 
17886
 
 
17887
 
  echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
17888
 
echo "${ECHO_T}$ac_cv_socklen_t" >&6
17889
 
  if test "$ac_cv_socklen_t" != "socklen_t"; then
17890
 
 
17891
 
cat >>confdefs.h <<_ACEOF
17892
 
#define socklen_t $ac_cv_socklen_t
17893
 
_ACEOF
17894
 
 
17895
 
  fi
17896
 
 
17897
 
cat >>confdefs.h <<_ACEOF
17898
 
#define ksize_t socklen_t
17899
 
_ACEOF
17900
 
 
17901
 
 
17902
 
 
17903
 
   ac_ext=c
17904
 
ac_cpp='$CPP $CPPFLAGS'
17905
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17906
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17907
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17908
 
 
17909
 
   echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17910
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17911
 
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17912
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17913
 
else
17914
 
  ac_check_lib_save_LIBS=$LIBS
17915
 
LIBS="-ldnet  $LIBS"
17916
 
cat >conftest.$ac_ext <<_ACEOF
17917
 
#line $LINENO "configure"
17918
 
/* confdefs.h.  */
17919
 
_ACEOF
17920
 
cat confdefs.h >>conftest.$ac_ext
17921
 
cat >>conftest.$ac_ext <<_ACEOF
17922
 
/* end confdefs.h.  */
17923
 
 
17924
 
/* Override any gcc2 internal prototype to avoid an error.  */
17925
 
#ifdef __cplusplus
17926
 
extern "C"
17927
 
#endif
17928
 
/* We use char because int might match the return type of a gcc2
17929
 
   builtin and then its argument prototype would still apply.  */
17930
 
char dnet_ntoa ();
17931
 
int
17932
 
main ()
17933
 
{
17934
 
dnet_ntoa ();
17935
 
  ;
17936
 
  return 0;
17937
 
}
17938
 
_ACEOF
17939
 
rm -f conftest.$ac_objext conftest$ac_exeext
17940
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17941
 
  (eval $ac_link) 2>&5
17942
 
  ac_status=$?
17943
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944
 
  (exit $ac_status); } &&
17945
 
         { ac_try='test -s conftest$ac_exeext'
17946
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947
 
  (eval $ac_try) 2>&5
17948
 
  ac_status=$?
17949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950
 
  (exit $ac_status); }; }; then
17951
 
  ac_cv_lib_dnet_dnet_ntoa=yes
17952
 
else
17953
 
  echo "$as_me: failed program was:" >&5
17954
 
sed 's/^/| /' conftest.$ac_ext >&5
17955
 
 
17956
 
ac_cv_lib_dnet_dnet_ntoa=no
17957
 
fi
17958
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17959
 
LIBS=$ac_check_lib_save_LIBS
17960
 
fi
17961
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17962
 
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17963
 
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17964
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17965
 
fi
17966
 
 
17967
 
   if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17968
 
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17969
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17970
 
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17971
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17972
 
else
17973
 
  ac_check_lib_save_LIBS=$LIBS
17974
 
LIBS="-ldnet_stub  $LIBS"
17975
 
cat >conftest.$ac_ext <<_ACEOF
17976
 
#line $LINENO "configure"
17977
 
/* confdefs.h.  */
17978
 
_ACEOF
17979
 
cat confdefs.h >>conftest.$ac_ext
17980
 
cat >>conftest.$ac_ext <<_ACEOF
17981
 
/* end confdefs.h.  */
17982
 
 
17983
 
/* Override any gcc2 internal prototype to avoid an error.  */
17984
 
#ifdef __cplusplus
17985
 
extern "C"
17986
 
#endif
17987
 
/* We use char because int might match the return type of a gcc2
17988
 
   builtin and then its argument prototype would still apply.  */
17989
 
char dnet_ntoa ();
17990
 
int
17991
 
main ()
17992
 
{
17993
 
dnet_ntoa ();
17994
 
  ;
17995
 
  return 0;
17996
 
}
17997
 
_ACEOF
17998
 
rm -f conftest.$ac_objext conftest$ac_exeext
17999
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18000
 
  (eval $ac_link) 2>&5
18001
 
  ac_status=$?
18002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003
 
  (exit $ac_status); } &&
18004
 
         { ac_try='test -s conftest$ac_exeext'
18005
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006
 
  (eval $ac_try) 2>&5
18007
 
  ac_status=$?
18008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009
 
  (exit $ac_status); }; }; then
18010
 
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
18011
 
else
18012
 
  echo "$as_me: failed program was:" >&5
18013
 
sed 's/^/| /' conftest.$ac_ext >&5
18014
 
 
18015
 
ac_cv_lib_dnet_stub_dnet_ntoa=no
18016
 
fi
18017
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18018
 
LIBS=$ac_check_lib_save_LIBS
18019
 
fi
18020
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18021
 
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18022
 
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18023
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18024
 
fi
18025
 
 
18026
 
   fi
18027
 
   echo "$as_me:$LINENO: checking for inet_ntoa" >&5
18028
 
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
18029
 
if test "${ac_cv_func_inet_ntoa+set}" = set; then
18030
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18031
 
else
18032
 
  cat >conftest.$ac_ext <<_ACEOF
18033
 
#line $LINENO "configure"
18034
 
/* confdefs.h.  */
18035
 
_ACEOF
18036
 
cat confdefs.h >>conftest.$ac_ext
18037
 
cat >>conftest.$ac_ext <<_ACEOF
18038
 
/* end confdefs.h.  */
18039
 
/* System header to define __stub macros and hopefully few prototypes,
18040
 
    which can conflict with char inet_ntoa (); below.
18041
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18042
 
    <limits.h> exists even on freestanding compilers.  */
18043
 
#ifdef __STDC__
18044
 
# include <limits.h>
18045
 
#else
18046
 
# include <assert.h>
18047
 
#endif
18048
 
/* Override any gcc2 internal prototype to avoid an error.  */
18049
 
#ifdef __cplusplus
18050
 
extern "C"
18051
 
{
18052
 
#endif
18053
 
/* We use char because int might match the return type of a gcc2
18054
 
   builtin and then its argument prototype would still apply.  */
18055
 
char inet_ntoa ();
18056
 
/* The GNU C library defines this for functions which it implements
18057
 
    to always fail with ENOSYS.  Some functions are actually named
18058
 
    something starting with __ and the normal name is an alias.  */
18059
 
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
18060
 
choke me
18061
 
#else
18062
 
char (*f) () = inet_ntoa;
18063
 
#endif
18064
 
#ifdef __cplusplus
18065
 
}
18066
 
#endif
18067
 
 
18068
 
int
18069
 
main ()
18070
 
{
18071
 
return f != inet_ntoa;
18072
 
  ;
18073
 
  return 0;
18074
 
}
18075
 
_ACEOF
18076
 
rm -f conftest.$ac_objext conftest$ac_exeext
18077
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18078
 
  (eval $ac_link) 2>&5
18079
 
  ac_status=$?
18080
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081
 
  (exit $ac_status); } &&
18082
 
         { ac_try='test -s conftest$ac_exeext'
18083
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084
 
  (eval $ac_try) 2>&5
18085
 
  ac_status=$?
18086
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087
 
  (exit $ac_status); }; }; then
18088
 
  ac_cv_func_inet_ntoa=yes
18089
 
else
18090
 
  echo "$as_me: failed program was:" >&5
18091
 
sed 's/^/| /' conftest.$ac_ext >&5
18092
 
 
18093
 
ac_cv_func_inet_ntoa=no
18094
 
fi
18095
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18096
 
fi
18097
 
echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
18098
 
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
18099
 
 
18100
 
   if test $ac_cv_func_inet_ntoa = no; then
18101
 
     echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
18102
 
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
18103
 
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
18104
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18105
 
else
18106
 
  ac_check_lib_save_LIBS=$LIBS
18107
 
LIBS="-lnsl  $LIBS"
18108
 
cat >conftest.$ac_ext <<_ACEOF
18109
 
#line $LINENO "configure"
18110
 
/* confdefs.h.  */
18111
 
_ACEOF
18112
 
cat confdefs.h >>conftest.$ac_ext
18113
 
cat >>conftest.$ac_ext <<_ACEOF
18114
 
/* end confdefs.h.  */
18115
 
 
18116
 
/* Override any gcc2 internal prototype to avoid an error.  */
18117
 
#ifdef __cplusplus
18118
 
extern "C"
18119
 
#endif
18120
 
/* We use char because int might match the return type of a gcc2
18121
 
   builtin and then its argument prototype would still apply.  */
18122
 
char inet_ntoa ();
18123
 
int
18124
 
main ()
18125
 
{
18126
 
inet_ntoa ();
18127
 
  ;
18128
 
  return 0;
18129
 
}
18130
 
_ACEOF
18131
 
rm -f conftest.$ac_objext conftest$ac_exeext
18132
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18133
 
  (eval $ac_link) 2>&5
18134
 
  ac_status=$?
18135
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136
 
  (exit $ac_status); } &&
18137
 
         { ac_try='test -s conftest$ac_exeext'
18138
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139
 
  (eval $ac_try) 2>&5
18140
 
  ac_status=$?
18141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142
 
  (exit $ac_status); }; }; then
18143
 
  ac_cv_lib_nsl_inet_ntoa=yes
18144
 
else
18145
 
  echo "$as_me: failed program was:" >&5
18146
 
sed 's/^/| /' conftest.$ac_ext >&5
18147
 
 
18148
 
ac_cv_lib_nsl_inet_ntoa=no
18149
 
fi
18150
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18151
 
LIBS=$ac_check_lib_save_LIBS
18152
 
fi
18153
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
18154
 
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
18155
 
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
18156
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18157
 
fi
18158
 
 
18159
 
   fi
18160
 
   echo "$as_me:$LINENO: checking for connect" >&5
18161
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6
18162
 
if test "${ac_cv_func_connect+set}" = set; then
18163
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18164
 
else
18165
 
  cat >conftest.$ac_ext <<_ACEOF
18166
 
#line $LINENO "configure"
18167
 
/* confdefs.h.  */
18168
 
_ACEOF
18169
 
cat confdefs.h >>conftest.$ac_ext
18170
 
cat >>conftest.$ac_ext <<_ACEOF
18171
 
/* end confdefs.h.  */
18172
 
/* System header to define __stub macros and hopefully few prototypes,
18173
 
    which can conflict with char connect (); below.
18174
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18175
 
    <limits.h> exists even on freestanding compilers.  */
18176
 
#ifdef __STDC__
18177
 
# include <limits.h>
18178
 
#else
18179
 
# include <assert.h>
18180
 
#endif
18181
 
/* Override any gcc2 internal prototype to avoid an error.  */
18182
 
#ifdef __cplusplus
18183
 
extern "C"
18184
 
{
18185
 
#endif
18186
 
/* We use char because int might match the return type of a gcc2
18187
 
   builtin and then its argument prototype would still apply.  */
18188
 
char connect ();
18189
 
/* The GNU C library defines this for functions which it implements
18190
 
    to always fail with ENOSYS.  Some functions are actually named
18191
 
    something starting with __ and the normal name is an alias.  */
18192
 
#if defined (__stub_connect) || defined (__stub___connect)
18193
 
choke me
18194
 
#else
18195
 
char (*f) () = connect;
18196
 
#endif
18197
 
#ifdef __cplusplus
18198
 
}
18199
 
#endif
18200
 
 
18201
 
int
18202
 
main ()
18203
 
{
18204
 
return f != connect;
18205
 
  ;
18206
 
  return 0;
18207
 
}
18208
 
_ACEOF
18209
 
rm -f conftest.$ac_objext conftest$ac_exeext
18210
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211
 
  (eval $ac_link) 2>&5
18212
 
  ac_status=$?
18213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214
 
  (exit $ac_status); } &&
18215
 
         { ac_try='test -s conftest$ac_exeext'
18216
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217
 
  (eval $ac_try) 2>&5
18218
 
  ac_status=$?
18219
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220
 
  (exit $ac_status); }; }; then
18221
 
  ac_cv_func_connect=yes
18222
 
else
18223
 
  echo "$as_me: failed program was:" >&5
18224
 
sed 's/^/| /' conftest.$ac_ext >&5
18225
 
 
18226
 
ac_cv_func_connect=no
18227
 
fi
18228
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18229
 
fi
18230
 
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18231
 
echo "${ECHO_T}$ac_cv_func_connect" >&6
18232
 
 
18233
 
   if test $ac_cv_func_connect = no; then
18234
 
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18235
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18236
 
if test "${ac_cv_lib_socket_connect+set}" = set; then
18237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18238
 
else
18239
 
  ac_check_lib_save_LIBS=$LIBS
18240
 
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18241
 
cat >conftest.$ac_ext <<_ACEOF
18242
 
#line $LINENO "configure"
18243
 
/* confdefs.h.  */
18244
 
_ACEOF
18245
 
cat confdefs.h >>conftest.$ac_ext
18246
 
cat >>conftest.$ac_ext <<_ACEOF
18247
 
/* end confdefs.h.  */
18248
 
 
18249
 
/* Override any gcc2 internal prototype to avoid an error.  */
18250
 
#ifdef __cplusplus
18251
 
extern "C"
18252
 
#endif
18253
 
/* We use char because int might match the return type of a gcc2
18254
 
   builtin and then its argument prototype would still apply.  */
18255
 
char connect ();
18256
 
int
18257
 
main ()
18258
 
{
18259
 
connect ();
18260
 
  ;
18261
 
  return 0;
18262
 
}
18263
 
_ACEOF
18264
 
rm -f conftest.$ac_objext conftest$ac_exeext
18265
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266
 
  (eval $ac_link) 2>&5
18267
 
  ac_status=$?
18268
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269
 
  (exit $ac_status); } &&
18270
 
         { ac_try='test -s conftest$ac_exeext'
18271
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272
 
  (eval $ac_try) 2>&5
18273
 
  ac_status=$?
18274
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275
 
  (exit $ac_status); }; }; then
18276
 
  ac_cv_lib_socket_connect=yes
18277
 
else
18278
 
  echo "$as_me: failed program was:" >&5
18279
 
sed 's/^/| /' conftest.$ac_ext >&5
18280
 
 
18281
 
ac_cv_lib_socket_connect=no
18282
 
fi
18283
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18284
 
LIBS=$ac_check_lib_save_LIBS
18285
 
fi
18286
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18287
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18288
 
if test $ac_cv_lib_socket_connect = yes; then
18289
 
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18290
 
fi
18291
 
 
18292
 
   fi
18293
 
 
18294
 
   echo "$as_me:$LINENO: checking for remove" >&5
18295
 
echo $ECHO_N "checking for remove... $ECHO_C" >&6
18296
 
if test "${ac_cv_func_remove+set}" = set; then
18297
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18298
 
else
18299
 
  cat >conftest.$ac_ext <<_ACEOF
18300
 
#line $LINENO "configure"
18301
 
/* confdefs.h.  */
18302
 
_ACEOF
18303
 
cat confdefs.h >>conftest.$ac_ext
18304
 
cat >>conftest.$ac_ext <<_ACEOF
18305
 
/* end confdefs.h.  */
18306
 
/* System header to define __stub macros and hopefully few prototypes,
18307
 
    which can conflict with char remove (); below.
18308
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18309
 
    <limits.h> exists even on freestanding compilers.  */
18310
 
#ifdef __STDC__
18311
 
# include <limits.h>
18312
 
#else
18313
 
# include <assert.h>
18314
 
#endif
18315
 
/* Override any gcc2 internal prototype to avoid an error.  */
18316
 
#ifdef __cplusplus
18317
 
extern "C"
18318
 
{
18319
 
#endif
18320
 
/* We use char because int might match the return type of a gcc2
18321
 
   builtin and then its argument prototype would still apply.  */
18322
 
char remove ();
18323
 
/* The GNU C library defines this for functions which it implements
18324
 
    to always fail with ENOSYS.  Some functions are actually named
18325
 
    something starting with __ and the normal name is an alias.  */
18326
 
#if defined (__stub_remove) || defined (__stub___remove)
18327
 
choke me
18328
 
#else
18329
 
char (*f) () = remove;
18330
 
#endif
18331
 
#ifdef __cplusplus
18332
 
}
18333
 
#endif
18334
 
 
18335
 
int
18336
 
main ()
18337
 
{
18338
 
return f != remove;
18339
 
  ;
18340
 
  return 0;
18341
 
}
18342
 
_ACEOF
18343
 
rm -f conftest.$ac_objext conftest$ac_exeext
18344
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18345
 
  (eval $ac_link) 2>&5
18346
 
  ac_status=$?
18347
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348
 
  (exit $ac_status); } &&
18349
 
         { ac_try='test -s conftest$ac_exeext'
18350
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351
 
  (eval $ac_try) 2>&5
18352
 
  ac_status=$?
18353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354
 
  (exit $ac_status); }; }; then
18355
 
  ac_cv_func_remove=yes
18356
 
else
18357
 
  echo "$as_me: failed program was:" >&5
18358
 
sed 's/^/| /' conftest.$ac_ext >&5
18359
 
 
18360
 
ac_cv_func_remove=no
18361
 
fi
18362
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18363
 
fi
18364
 
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18365
 
echo "${ECHO_T}$ac_cv_func_remove" >&6
18366
 
 
18367
 
   if test $ac_cv_func_remove = no; then
18368
 
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18369
 
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18370
 
if test "${ac_cv_lib_posix_remove+set}" = set; then
18371
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18372
 
else
18373
 
  ac_check_lib_save_LIBS=$LIBS
18374
 
LIBS="-lposix  $LIBS"
18375
 
cat >conftest.$ac_ext <<_ACEOF
18376
 
#line $LINENO "configure"
18377
 
/* confdefs.h.  */
18378
 
_ACEOF
18379
 
cat confdefs.h >>conftest.$ac_ext
18380
 
cat >>conftest.$ac_ext <<_ACEOF
18381
 
/* end confdefs.h.  */
18382
 
 
18383
 
/* Override any gcc2 internal prototype to avoid an error.  */
18384
 
#ifdef __cplusplus
18385
 
extern "C"
18386
 
#endif
18387
 
/* We use char because int might match the return type of a gcc2
18388
 
   builtin and then its argument prototype would still apply.  */
18389
 
char remove ();
18390
 
int
18391
 
main ()
18392
 
{
18393
 
remove ();
18394
 
  ;
18395
 
  return 0;
18396
 
}
18397
 
_ACEOF
18398
 
rm -f conftest.$ac_objext conftest$ac_exeext
18399
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18400
 
  (eval $ac_link) 2>&5
18401
 
  ac_status=$?
18402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403
 
  (exit $ac_status); } &&
18404
 
         { ac_try='test -s conftest$ac_exeext'
18405
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406
 
  (eval $ac_try) 2>&5
18407
 
  ac_status=$?
18408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409
 
  (exit $ac_status); }; }; then
18410
 
  ac_cv_lib_posix_remove=yes
18411
 
else
18412
 
  echo "$as_me: failed program was:" >&5
18413
 
sed 's/^/| /' conftest.$ac_ext >&5
18414
 
 
18415
 
ac_cv_lib_posix_remove=no
18416
 
fi
18417
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18418
 
LIBS=$ac_check_lib_save_LIBS
18419
 
fi
18420
 
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18421
 
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18422
 
if test $ac_cv_lib_posix_remove = yes; then
18423
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18424
 
fi
18425
 
 
18426
 
   fi
18427
 
 
18428
 
   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18429
 
   echo "$as_me:$LINENO: checking for shmat" >&5
18430
 
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18431
 
if test "${ac_cv_func_shmat+set}" = set; then
18432
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18433
 
else
18434
 
  cat >conftest.$ac_ext <<_ACEOF
18435
 
#line $LINENO "configure"
18436
 
/* confdefs.h.  */
18437
 
_ACEOF
18438
 
cat confdefs.h >>conftest.$ac_ext
18439
 
cat >>conftest.$ac_ext <<_ACEOF
18440
 
/* end confdefs.h.  */
18441
 
/* System header to define __stub macros and hopefully few prototypes,
18442
 
    which can conflict with char shmat (); below.
18443
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18444
 
    <limits.h> exists even on freestanding compilers.  */
18445
 
#ifdef __STDC__
18446
 
# include <limits.h>
18447
 
#else
18448
 
# include <assert.h>
18449
 
#endif
18450
 
/* Override any gcc2 internal prototype to avoid an error.  */
18451
 
#ifdef __cplusplus
18452
 
extern "C"
18453
 
{
18454
 
#endif
18455
 
/* We use char because int might match the return type of a gcc2
18456
 
   builtin and then its argument prototype would still apply.  */
18457
 
char shmat ();
18458
 
/* The GNU C library defines this for functions which it implements
18459
 
    to always fail with ENOSYS.  Some functions are actually named
18460
 
    something starting with __ and the normal name is an alias.  */
18461
 
#if defined (__stub_shmat) || defined (__stub___shmat)
18462
 
choke me
18463
 
#else
18464
 
char (*f) () = shmat;
18465
 
#endif
18466
 
#ifdef __cplusplus
18467
 
}
18468
 
#endif
18469
 
 
18470
 
int
18471
 
main ()
18472
 
{
18473
 
return f != shmat;
18474
 
  ;
18475
 
  return 0;
18476
 
}
18477
 
_ACEOF
18478
 
rm -f conftest.$ac_objext conftest$ac_exeext
18479
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18480
 
  (eval $ac_link) 2>&5
18481
 
  ac_status=$?
18482
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483
 
  (exit $ac_status); } &&
18484
 
         { ac_try='test -s conftest$ac_exeext'
18485
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486
 
  (eval $ac_try) 2>&5
18487
 
  ac_status=$?
18488
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489
 
  (exit $ac_status); }; }; then
18490
 
  ac_cv_func_shmat=yes
18491
 
else
18492
 
  echo "$as_me: failed program was:" >&5
18493
 
sed 's/^/| /' conftest.$ac_ext >&5
18494
 
 
18495
 
ac_cv_func_shmat=no
18496
 
fi
18497
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18498
 
fi
18499
 
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18500
 
echo "${ECHO_T}$ac_cv_func_shmat" >&6
18501
 
if test $ac_cv_func_shmat = yes; then
18502
 
  :
18503
 
else
18504
 
  echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18505
 
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18506
 
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18507
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18508
 
else
18509
 
  ac_check_lib_save_LIBS=$LIBS
18510
 
LIBS="-lipc  $LIBS"
18511
 
cat >conftest.$ac_ext <<_ACEOF
18512
 
#line $LINENO "configure"
18513
 
/* confdefs.h.  */
18514
 
_ACEOF
18515
 
cat confdefs.h >>conftest.$ac_ext
18516
 
cat >>conftest.$ac_ext <<_ACEOF
18517
 
/* end confdefs.h.  */
18518
 
 
18519
 
/* Override any gcc2 internal prototype to avoid an error.  */
18520
 
#ifdef __cplusplus
18521
 
extern "C"
18522
 
#endif
18523
 
/* We use char because int might match the return type of a gcc2
18524
 
   builtin and then its argument prototype would still apply.  */
18525
 
char shmat ();
18526
 
int
18527
 
main ()
18528
 
{
18529
 
shmat ();
18530
 
  ;
18531
 
  return 0;
18532
 
}
18533
 
_ACEOF
18534
 
rm -f conftest.$ac_objext conftest$ac_exeext
18535
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18536
 
  (eval $ac_link) 2>&5
18537
 
  ac_status=$?
18538
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539
 
  (exit $ac_status); } &&
18540
 
         { ac_try='test -s conftest$ac_exeext'
18541
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542
 
  (eval $ac_try) 2>&5
18543
 
  ac_status=$?
18544
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545
 
  (exit $ac_status); }; }; then
18546
 
  ac_cv_lib_ipc_shmat=yes
18547
 
else
18548
 
  echo "$as_me: failed program was:" >&5
18549
 
sed 's/^/| /' conftest.$ac_ext >&5
18550
 
 
18551
 
ac_cv_lib_ipc_shmat=no
18552
 
fi
18553
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18554
 
LIBS=$ac_check_lib_save_LIBS
18555
 
fi
18556
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18557
 
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18558
 
if test $ac_cv_lib_ipc_shmat = yes; then
18559
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18560
 
fi
18561
 
 
18562
 
fi
18563
 
 
18564
 
 
18565
 
   # darwin needs this to initialize the environment
18566
 
 
18567
 
for ac_header in crt_externs.h
18568
 
do
18569
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18570
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18571
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
18572
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18573
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18574
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18575
 
fi
18576
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18577
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18578
 
else
18579
 
  # Is the header compilable?
18580
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18581
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18582
 
cat >conftest.$ac_ext <<_ACEOF
18583
 
#line $LINENO "configure"
18584
 
/* confdefs.h.  */
18585
 
_ACEOF
18586
 
cat confdefs.h >>conftest.$ac_ext
18587
 
cat >>conftest.$ac_ext <<_ACEOF
18588
 
/* end confdefs.h.  */
18589
 
$ac_includes_default
18590
 
#include <$ac_header>
18591
 
_ACEOF
18592
 
rm -f conftest.$ac_objext
18593
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18594
 
  (eval $ac_compile) 2>&5
18595
 
  ac_status=$?
18596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597
 
  (exit $ac_status); } &&
18598
 
         { ac_try='test -s conftest.$ac_objext'
18599
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600
 
  (eval $ac_try) 2>&5
18601
 
  ac_status=$?
18602
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603
 
  (exit $ac_status); }; }; then
18604
 
  ac_header_compiler=yes
18605
 
else
18606
 
  echo "$as_me: failed program was:" >&5
18607
 
sed 's/^/| /' conftest.$ac_ext >&5
18608
 
 
18609
 
ac_header_compiler=no
18610
 
fi
18611
 
rm -f conftest.$ac_objext conftest.$ac_ext
18612
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18613
 
echo "${ECHO_T}$ac_header_compiler" >&6
18614
 
 
18615
 
# Is the header present?
18616
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18617
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18618
 
cat >conftest.$ac_ext <<_ACEOF
18619
 
#line $LINENO "configure"
18620
 
/* confdefs.h.  */
18621
 
_ACEOF
18622
 
cat confdefs.h >>conftest.$ac_ext
18623
 
cat >>conftest.$ac_ext <<_ACEOF
18624
 
/* end confdefs.h.  */
18625
 
#include <$ac_header>
18626
 
_ACEOF
18627
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18628
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18629
 
  ac_status=$?
18630
 
  grep -v '^ *+' conftest.er1 >conftest.err
18631
 
  rm -f conftest.er1
18632
 
  cat conftest.err >&5
18633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634
 
  (exit $ac_status); } >/dev/null; then
18635
 
  if test -s conftest.err; then
18636
 
    ac_cpp_err=$ac_c_preproc_warn_flag
18637
 
  else
18638
 
    ac_cpp_err=
18639
 
  fi
18640
 
else
18641
 
  ac_cpp_err=yes
18642
 
fi
18643
 
if test -z "$ac_cpp_err"; then
18644
 
  ac_header_preproc=yes
18645
 
else
18646
 
  echo "$as_me: failed program was:" >&5
18647
 
sed 's/^/| /' conftest.$ac_ext >&5
18648
 
 
18649
 
  ac_header_preproc=no
18650
 
fi
18651
 
rm -f conftest.err conftest.$ac_ext
18652
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18653
 
echo "${ECHO_T}$ac_header_preproc" >&6
18654
 
 
18655
 
# So?  What about this header?
18656
 
case $ac_header_compiler:$ac_header_preproc in
18657
 
  yes:no )
18658
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18659
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18660
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18661
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18662
 
    (
18663
 
      cat <<\_ASBOX
18664
 
## ------------------------------------ ##
18665
 
## Report this to bug-autoconf@gnu.org. ##
18666
 
## ------------------------------------ ##
18667
 
_ASBOX
18668
 
    ) |
18669
 
      sed "s/^/$as_me: WARNING:     /" >&2
18670
 
    ;;
18671
 
  no:yes )
18672
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18673
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18674
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18675
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18676
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18677
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18678
 
    (
18679
 
      cat <<\_ASBOX
18680
 
## ------------------------------------ ##
18681
 
## Report this to bug-autoconf@gnu.org. ##
18682
 
## ------------------------------------ ##
18683
 
_ASBOX
18684
 
    ) |
18685
 
      sed "s/^/$as_me: WARNING:     /" >&2
18686
 
    ;;
18687
 
esac
18688
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
18689
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18690
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18691
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18692
 
else
18693
 
  eval "$as_ac_Header=$ac_header_preproc"
18694
 
fi
18695
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18696
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18697
 
 
18698
 
fi
18699
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18700
 
  cat >>confdefs.h <<_ACEOF
18701
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18702
 
_ACEOF
18703
 
 
18704
 
fi
18705
 
 
18706
 
done
18707
 
 
18708
 
   echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
18709
 
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
18710
 
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
18711
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18712
 
else
18713
 
  cat >conftest.$ac_ext <<_ACEOF
18714
 
#line $LINENO "configure"
18715
 
/* confdefs.h.  */
18716
 
_ACEOF
18717
 
cat confdefs.h >>conftest.$ac_ext
18718
 
cat >>conftest.$ac_ext <<_ACEOF
18719
 
/* end confdefs.h.  */
18720
 
/* System header to define __stub macros and hopefully few prototypes,
18721
 
    which can conflict with char _NSGetEnviron (); below.
18722
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18723
 
    <limits.h> exists even on freestanding compilers.  */
18724
 
#ifdef __STDC__
18725
 
# include <limits.h>
18726
 
#else
18727
 
# include <assert.h>
18728
 
#endif
18729
 
/* Override any gcc2 internal prototype to avoid an error.  */
18730
 
#ifdef __cplusplus
18731
 
extern "C"
18732
 
{
18733
 
#endif
18734
 
/* We use char because int might match the return type of a gcc2
18735
 
   builtin and then its argument prototype would still apply.  */
18736
 
char _NSGetEnviron ();
18737
 
/* The GNU C library defines this for functions which it implements
18738
 
    to always fail with ENOSYS.  Some functions are actually named
18739
 
    something starting with __ and the normal name is an alias.  */
18740
 
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
18741
 
choke me
18742
 
#else
18743
 
char (*f) () = _NSGetEnviron;
18744
 
#endif
18745
 
#ifdef __cplusplus
18746
 
}
18747
 
#endif
18748
 
 
18749
 
int
18750
 
main ()
18751
 
{
18752
 
return f != _NSGetEnviron;
18753
 
  ;
18754
 
  return 0;
18755
 
}
18756
 
_ACEOF
18757
 
rm -f conftest.$ac_objext conftest$ac_exeext
18758
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18759
 
  (eval $ac_link) 2>&5
18760
 
  ac_status=$?
18761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762
 
  (exit $ac_status); } &&
18763
 
         { ac_try='test -s conftest$ac_exeext'
18764
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765
 
  (eval $ac_try) 2>&5
18766
 
  ac_status=$?
18767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768
 
  (exit $ac_status); }; }; then
18769
 
  ac_cv_func__NSGetEnviron=yes
18770
 
else
18771
 
  echo "$as_me: failed program was:" >&5
18772
 
sed 's/^/| /' conftest.$ac_ext >&5
18773
 
 
18774
 
ac_cv_func__NSGetEnviron=no
18775
 
fi
18776
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18777
 
fi
18778
 
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
18779
 
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
18780
 
if test $ac_cv_func__NSGetEnviron = yes; then
18781
 
 
18782
 
cat >>confdefs.h <<\_ACEOF
18783
 
#define HAVE_NSGETENVIRON 1
18784
 
_ACEOF
18785
 
 
18786
 
fi
18787
 
 
18788
 
 
18789
 
   # more headers that need to be explicitly included on darwin
18790
 
 
18791
 
 
18792
 
for ac_header in sys/types.h stdint.h
18793
 
do
18794
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18795
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18796
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
18797
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18798
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18799
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18800
 
fi
18801
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18802
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18803
 
else
18804
 
  # Is the header compilable?
18805
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18806
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18807
 
cat >conftest.$ac_ext <<_ACEOF
18808
 
#line $LINENO "configure"
18809
 
/* confdefs.h.  */
18810
 
_ACEOF
18811
 
cat confdefs.h >>conftest.$ac_ext
18812
 
cat >>conftest.$ac_ext <<_ACEOF
18813
 
/* end confdefs.h.  */
18814
 
$ac_includes_default
18815
 
#include <$ac_header>
18816
 
_ACEOF
18817
 
rm -f conftest.$ac_objext
18818
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18819
 
  (eval $ac_compile) 2>&5
18820
 
  ac_status=$?
18821
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822
 
  (exit $ac_status); } &&
18823
 
         { ac_try='test -s conftest.$ac_objext'
18824
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825
 
  (eval $ac_try) 2>&5
18826
 
  ac_status=$?
18827
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828
 
  (exit $ac_status); }; }; then
18829
 
  ac_header_compiler=yes
18830
 
else
18831
 
  echo "$as_me: failed program was:" >&5
18832
 
sed 's/^/| /' conftest.$ac_ext >&5
18833
 
 
18834
 
ac_header_compiler=no
18835
 
fi
18836
 
rm -f conftest.$ac_objext conftest.$ac_ext
18837
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18838
 
echo "${ECHO_T}$ac_header_compiler" >&6
18839
 
 
18840
 
# Is the header present?
18841
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18842
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18843
 
cat >conftest.$ac_ext <<_ACEOF
18844
 
#line $LINENO "configure"
18845
 
/* confdefs.h.  */
18846
 
_ACEOF
18847
 
cat confdefs.h >>conftest.$ac_ext
18848
 
cat >>conftest.$ac_ext <<_ACEOF
18849
 
/* end confdefs.h.  */
18850
 
#include <$ac_header>
18851
 
_ACEOF
18852
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18853
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18854
 
  ac_status=$?
18855
 
  grep -v '^ *+' conftest.er1 >conftest.err
18856
 
  rm -f conftest.er1
18857
 
  cat conftest.err >&5
18858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859
 
  (exit $ac_status); } >/dev/null; then
18860
 
  if test -s conftest.err; then
18861
 
    ac_cpp_err=$ac_c_preproc_warn_flag
18862
 
  else
18863
 
    ac_cpp_err=
18864
 
  fi
18865
 
else
18866
 
  ac_cpp_err=yes
18867
 
fi
18868
 
if test -z "$ac_cpp_err"; then
18869
 
  ac_header_preproc=yes
18870
 
else
18871
 
  echo "$as_me: failed program was:" >&5
18872
 
sed 's/^/| /' conftest.$ac_ext >&5
18873
 
 
18874
 
  ac_header_preproc=no
18875
 
fi
18876
 
rm -f conftest.err conftest.$ac_ext
18877
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18878
 
echo "${ECHO_T}$ac_header_preproc" >&6
18879
 
 
18880
 
# So?  What about this header?
18881
 
case $ac_header_compiler:$ac_header_preproc in
18882
 
  yes:no )
18883
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18884
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18885
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18886
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18887
 
    (
18888
 
      cat <<\_ASBOX
18889
 
## ------------------------------------ ##
18890
 
## Report this to bug-autoconf@gnu.org. ##
18891
 
## ------------------------------------ ##
18892
 
_ASBOX
18893
 
    ) |
18894
 
      sed "s/^/$as_me: WARNING:     /" >&2
18895
 
    ;;
18896
 
  no:yes )
18897
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18898
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18899
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18900
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18901
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18902
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18903
 
    (
18904
 
      cat <<\_ASBOX
18905
 
## ------------------------------------ ##
18906
 
## Report this to bug-autoconf@gnu.org. ##
18907
 
## ------------------------------------ ##
18908
 
_ASBOX
18909
 
    ) |
18910
 
      sed "s/^/$as_me: WARNING:     /" >&2
18911
 
    ;;
18912
 
esac
18913
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
18914
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18915
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18916
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18917
 
else
18918
 
  eval "$as_ac_Header=$ac_header_preproc"
18919
 
fi
18920
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18921
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18922
 
 
18923
 
fi
18924
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18925
 
  cat >>confdefs.h <<_ACEOF
18926
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18927
 
_ACEOF
18928
 
 
18929
 
fi
18930
 
 
18931
 
done
18932
 
 
18933
 
 
18934
 
   # darwin requires a poll emulation library
18935
 
   echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
18936
 
echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
18937
 
if test "${ac_cv_lib_poll_poll+set}" = set; then
18938
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18939
 
else
18940
 
  ac_check_lib_save_LIBS=$LIBS
18941
 
LIBS="-lpoll  $LIBS"
18942
 
cat >conftest.$ac_ext <<_ACEOF
18943
 
#line $LINENO "configure"
18944
 
/* confdefs.h.  */
18945
 
_ACEOF
18946
 
cat confdefs.h >>conftest.$ac_ext
18947
 
cat >>conftest.$ac_ext <<_ACEOF
18948
 
/* end confdefs.h.  */
18949
 
 
18950
 
/* Override any gcc2 internal prototype to avoid an error.  */
18951
 
#ifdef __cplusplus
18952
 
extern "C"
18953
 
#endif
18954
 
/* We use char because int might match the return type of a gcc2
18955
 
   builtin and then its argument prototype would still apply.  */
18956
 
char poll ();
18957
 
int
18958
 
main ()
18959
 
{
18960
 
poll ();
18961
 
  ;
18962
 
  return 0;
18963
 
}
18964
 
_ACEOF
18965
 
rm -f conftest.$ac_objext conftest$ac_exeext
18966
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18967
 
  (eval $ac_link) 2>&5
18968
 
  ac_status=$?
18969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970
 
  (exit $ac_status); } &&
18971
 
         { ac_try='test -s conftest$ac_exeext'
18972
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973
 
  (eval $ac_try) 2>&5
18974
 
  ac_status=$?
18975
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976
 
  (exit $ac_status); }; }; then
18977
 
  ac_cv_lib_poll_poll=yes
18978
 
else
18979
 
  echo "$as_me: failed program was:" >&5
18980
 
sed 's/^/| /' conftest.$ac_ext >&5
18981
 
 
18982
 
ac_cv_lib_poll_poll=no
18983
 
fi
18984
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18985
 
LIBS=$ac_check_lib_save_LIBS
18986
 
fi
18987
 
echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
18988
 
echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
18989
 
if test $ac_cv_lib_poll_poll = yes; then
18990
 
  LIB_POLL="-lpoll"
18991
 
fi
18992
 
 
18993
 
 
18994
 
   # CoreAudio framework
18995
 
   if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
18996
 
  echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
18997
 
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
18998
 
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
18999
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19000
 
fi
19001
 
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
19002
 
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
19003
 
else
19004
 
  # Is the header compilable?
19005
 
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
19006
 
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
19007
 
cat >conftest.$ac_ext <<_ACEOF
19008
 
#line $LINENO "configure"
19009
 
/* confdefs.h.  */
19010
 
_ACEOF
19011
 
cat confdefs.h >>conftest.$ac_ext
19012
 
cat >>conftest.$ac_ext <<_ACEOF
19013
 
/* end confdefs.h.  */
19014
 
$ac_includes_default
19015
 
#include <CoreAudio/CoreAudio.h>
19016
 
_ACEOF
19017
 
rm -f conftest.$ac_objext
19018
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19019
 
  (eval $ac_compile) 2>&5
19020
 
  ac_status=$?
19021
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022
 
  (exit $ac_status); } &&
19023
 
         { ac_try='test -s conftest.$ac_objext'
19024
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025
 
  (eval $ac_try) 2>&5
19026
 
  ac_status=$?
19027
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028
 
  (exit $ac_status); }; }; then
19029
 
  ac_header_compiler=yes
19030
 
else
19031
 
  echo "$as_me: failed program was:" >&5
19032
 
sed 's/^/| /' conftest.$ac_ext >&5
19033
 
 
19034
 
ac_header_compiler=no
19035
 
fi
19036
 
rm -f conftest.$ac_objext conftest.$ac_ext
19037
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19038
 
echo "${ECHO_T}$ac_header_compiler" >&6
19039
 
 
19040
 
# Is the header present?
19041
 
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
19042
 
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
19043
 
cat >conftest.$ac_ext <<_ACEOF
19044
 
#line $LINENO "configure"
19045
 
/* confdefs.h.  */
19046
 
_ACEOF
19047
 
cat confdefs.h >>conftest.$ac_ext
19048
 
cat >>conftest.$ac_ext <<_ACEOF
19049
 
/* end confdefs.h.  */
19050
 
#include <CoreAudio/CoreAudio.h>
19051
 
_ACEOF
19052
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19053
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19054
 
  ac_status=$?
19055
 
  grep -v '^ *+' conftest.er1 >conftest.err
19056
 
  rm -f conftest.er1
19057
 
  cat conftest.err >&5
19058
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059
 
  (exit $ac_status); } >/dev/null; then
19060
 
  if test -s conftest.err; then
19061
 
    ac_cpp_err=$ac_c_preproc_warn_flag
19062
 
  else
19063
 
    ac_cpp_err=
19064
 
  fi
19065
 
else
19066
 
  ac_cpp_err=yes
19067
 
fi
19068
 
if test -z "$ac_cpp_err"; then
19069
 
  ac_header_preproc=yes
19070
 
else
19071
 
  echo "$as_me: failed program was:" >&5
19072
 
sed 's/^/| /' conftest.$ac_ext >&5
19073
 
 
19074
 
  ac_header_preproc=no
19075
 
fi
19076
 
rm -f conftest.err conftest.$ac_ext
19077
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19078
 
echo "${ECHO_T}$ac_header_preproc" >&6
19079
 
 
19080
 
# So?  What about this header?
19081
 
case $ac_header_compiler:$ac_header_preproc in
19082
 
  yes:no )
19083
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19084
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19085
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
19086
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
19087
 
    (
19088
 
      cat <<\_ASBOX
19089
 
## ------------------------------------ ##
19090
 
## Report this to bug-autoconf@gnu.org. ##
19091
 
## ------------------------------------ ##
19092
 
_ASBOX
19093
 
    ) |
19094
 
      sed "s/^/$as_me: WARNING:     /" >&2
19095
 
    ;;
19096
 
  no:yes )
19097
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
19098
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
19099
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
19100
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
19101
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
19102
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
19103
 
    (
19104
 
      cat <<\_ASBOX
19105
 
## ------------------------------------ ##
19106
 
## Report this to bug-autoconf@gnu.org. ##
19107
 
## ------------------------------------ ##
19108
 
_ASBOX
19109
 
    ) |
19110
 
      sed "s/^/$as_me: WARNING:     /" >&2
19111
 
    ;;
19112
 
esac
19113
 
echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
19114
 
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
19115
 
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
19116
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19117
 
else
19118
 
  ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
19119
 
fi
19120
 
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
19121
 
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
19122
 
 
19123
 
fi
19124
 
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
19125
 
 
19126
 
 
19127
 
cat >>confdefs.h <<\_ACEOF
19128
 
#define HAVE_COREAUDIO 1
19129
 
_ACEOF
19130
 
 
19131
 
     FRAMEWORK_COREAUDIO="-framework CoreAudio"
19132
 
 
19133
 
fi
19134
 
 
19135
 
 
19136
 
 
19137
 
   # Solaris 2.6 and others need -lresolv for res_init
19138
 
 
19139
 
for ac_func in res_init
19140
 
do
19141
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19142
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
19143
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19144
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
19145
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19146
 
else
19147
 
  cat >conftest.$ac_ext <<_ACEOF
19148
 
#line $LINENO "configure"
19149
 
/* confdefs.h.  */
19150
 
_ACEOF
19151
 
cat confdefs.h >>conftest.$ac_ext
19152
 
cat >>conftest.$ac_ext <<_ACEOF
19153
 
/* end confdefs.h.  */
19154
 
/* System header to define __stub macros and hopefully few prototypes,
19155
 
    which can conflict with char $ac_func (); below.
19156
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19157
 
    <limits.h> exists even on freestanding compilers.  */
19158
 
#ifdef __STDC__
19159
 
# include <limits.h>
19160
 
#else
19161
 
# include <assert.h>
19162
 
#endif
19163
 
/* Override any gcc2 internal prototype to avoid an error.  */
19164
 
#ifdef __cplusplus
19165
 
extern "C"
19166
 
{
19167
 
#endif
19168
 
/* We use char because int might match the return type of a gcc2
19169
 
   builtin and then its argument prototype would still apply.  */
19170
 
char $ac_func ();
19171
 
/* The GNU C library defines this for functions which it implements
19172
 
    to always fail with ENOSYS.  Some functions are actually named
19173
 
    something starting with __ and the normal name is an alias.  */
19174
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19175
 
choke me
19176
 
#else
19177
 
char (*f) () = $ac_func;
19178
 
#endif
19179
 
#ifdef __cplusplus
19180
 
}
19181
 
#endif
19182
 
 
19183
 
int
19184
 
main ()
19185
 
{
19186
 
return f != $ac_func;
19187
 
  ;
19188
 
  return 0;
19189
 
}
19190
 
_ACEOF
19191
 
rm -f conftest.$ac_objext conftest$ac_exeext
19192
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19193
 
  (eval $ac_link) 2>&5
19194
 
  ac_status=$?
19195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196
 
  (exit $ac_status); } &&
19197
 
         { ac_try='test -s conftest$ac_exeext'
19198
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199
 
  (eval $ac_try) 2>&5
19200
 
  ac_status=$?
19201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202
 
  (exit $ac_status); }; }; then
19203
 
  eval "$as_ac_var=yes"
19204
 
else
19205
 
  echo "$as_me: failed program was:" >&5
19206
 
sed 's/^/| /' conftest.$ac_ext >&5
19207
 
 
19208
 
eval "$as_ac_var=no"
19209
 
fi
19210
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19211
 
fi
19212
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19213
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19214
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
19215
 
  cat >>confdefs.h <<_ACEOF
19216
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19217
 
_ACEOF
19218
 
 
19219
 
else
19220
 
 
19221
 
     kde_libs_safe="$LIBS"
19222
 
     LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
19223
 
     cat >conftest.$ac_ext <<_ACEOF
19224
 
#line $LINENO "configure"
19225
 
/* confdefs.h.  */
19226
 
_ACEOF
19227
 
cat confdefs.h >>conftest.$ac_ext
19228
 
cat >>conftest.$ac_ext <<_ACEOF
19229
 
/* end confdefs.h.  */
19230
 
 
19231
 
#include <resolv.h>
19232
 
 
19233
 
int
19234
 
main ()
19235
 
{
19236
 
 
19237
 
res_init();
19238
 
 
19239
 
  ;
19240
 
  return 0;
19241
 
}
19242
 
_ACEOF
19243
 
rm -f conftest.$ac_objext conftest$ac_exeext
19244
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19245
 
  (eval $ac_link) 2>&5
19246
 
  ac_status=$?
19247
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248
 
  (exit $ac_status); } &&
19249
 
         { ac_try='test -s conftest$ac_exeext'
19250
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251
 
  (eval $ac_try) 2>&5
19252
 
  ac_status=$?
19253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254
 
  (exit $ac_status); }; }; then
19255
 
  LIBRESOLV="-lresolv"
19256
 
        X_EXTRA_LIBS="$X_EXTRA_LIBS $LIBRESOLV"
19257
 
 
19258
 
cat >>confdefs.h <<\_ACEOF
19259
 
#define HAVE_RES_INIT 1
19260
 
_ACEOF
19261
 
 
19262
 
 
19263
 
else
19264
 
  echo "$as_me: failed program was:" >&5
19265
 
sed 's/^/| /' conftest.$ac_ext >&5
19266
 
 
19267
 
fi
19268
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19269
 
     LIBS=$kde_libs_safe
19270
 
 
19271
 
fi
19272
 
done
19273
 
 
19274
 
 
19275
 
 
19276
 
 
19277
 
   LIBSOCKET="$X_EXTRA_LIBS"
19278
 
 
19279
 
 
19280
 
 
19281
 
   echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
19282
 
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6
19283
 
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
19284
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19285
 
else
19286
 
  ac_check_lib_save_LIBS=$LIBS
19287
 
LIBS="-lucb  $LIBS"
19288
 
cat >conftest.$ac_ext <<_ACEOF
19289
 
#line $LINENO "configure"
19290
 
/* confdefs.h.  */
19291
 
_ACEOF
19292
 
cat confdefs.h >>conftest.$ac_ext
19293
 
cat >>conftest.$ac_ext <<_ACEOF
19294
 
/* end confdefs.h.  */
19295
 
 
19296
 
/* Override any gcc2 internal prototype to avoid an error.  */
19297
 
#ifdef __cplusplus
19298
 
extern "C"
19299
 
#endif
19300
 
/* We use char because int might match the return type of a gcc2
19301
 
   builtin and then its argument prototype would still apply.  */
19302
 
char killpg ();
19303
 
int
19304
 
main ()
19305
 
{
19306
 
killpg ();
19307
 
  ;
19308
 
  return 0;
19309
 
}
19310
 
_ACEOF
19311
 
rm -f conftest.$ac_objext conftest$ac_exeext
19312
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19313
 
  (eval $ac_link) 2>&5
19314
 
  ac_status=$?
19315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316
 
  (exit $ac_status); } &&
19317
 
         { ac_try='test -s conftest$ac_exeext'
19318
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319
 
  (eval $ac_try) 2>&5
19320
 
  ac_status=$?
19321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322
 
  (exit $ac_status); }; }; then
19323
 
  ac_cv_lib_ucb_killpg=yes
19324
 
else
19325
 
  echo "$as_me: failed program was:" >&5
19326
 
sed 's/^/| /' conftest.$ac_ext >&5
19327
 
 
19328
 
ac_cv_lib_ucb_killpg=no
19329
 
fi
19330
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19331
 
LIBS=$ac_check_lib_save_LIBS
19332
 
fi
19333
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
19334
 
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6
19335
 
if test $ac_cv_lib_ucb_killpg = yes; then
19336
 
  LIBUCB="-lucb"
19337
 
fi
19338
 
 
19339
 
 
19340
 
   case $host in     *-*-lynxos* )
19341
 
        echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
19342
 
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6
19343
 
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
19344
 
        echo "$as_me:$LINENO: result: disabled" >&5
19345
 
echo "${ECHO_T}disabled" >&6
19346
 
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19347
 
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19348
 
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19349
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19350
 
else
19351
 
  ac_check_lib_save_LIBS=$LIBS
19352
 
LIBS="-lbsd  $LIBS"
19353
 
cat >conftest.$ac_ext <<_ACEOF
19354
 
#line $LINENO "configure"
19355
 
/* confdefs.h.  */
19356
 
_ACEOF
19357
 
cat confdefs.h >>conftest.$ac_ext
19358
 
cat >>conftest.$ac_ext <<_ACEOF
19359
 
/* end confdefs.h.  */
19360
 
 
19361
 
/* Override any gcc2 internal prototype to avoid an error.  */
19362
 
#ifdef __cplusplus
19363
 
extern "C"
19364
 
#endif
19365
 
/* We use char because int might match the return type of a gcc2
19366
 
   builtin and then its argument prototype would still apply.  */
19367
 
char gethostbyname ();
19368
 
int
19369
 
main ()
19370
 
{
19371
 
gethostbyname ();
19372
 
  ;
19373
 
  return 0;
19374
 
}
19375
 
_ACEOF
19376
 
rm -f conftest.$ac_objext conftest$ac_exeext
19377
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19378
 
  (eval $ac_link) 2>&5
19379
 
  ac_status=$?
19380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381
 
  (exit $ac_status); } &&
19382
 
         { ac_try='test -s conftest$ac_exeext'
19383
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384
 
  (eval $ac_try) 2>&5
19385
 
  ac_status=$?
19386
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387
 
  (exit $ac_status); }; }; then
19388
 
  ac_cv_lib_bsd_gethostbyname=yes
19389
 
else
19390
 
  echo "$as_me: failed program was:" >&5
19391
 
sed 's/^/| /' conftest.$ac_ext >&5
19392
 
 
19393
 
ac_cv_lib_bsd_gethostbyname=no
19394
 
fi
19395
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19396
 
LIBS=$ac_check_lib_save_LIBS
19397
 
fi
19398
 
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19399
 
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19400
 
if test $ac_cv_lib_bsd_gethostbyname = yes; then
19401
 
  LIBSOCKET="-lbsd"
19402
 
fi
19403
 
          ;;
19404
 
    esac
19405
 
 
19406
 
     echo "$as_me:$LINENO: checking for int" >&5
19407
 
echo $ECHO_N "checking for int... $ECHO_C" >&6
19408
 
if test "${ac_cv_type_int+set}" = set; then
19409
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19410
 
else
19411
 
  cat >conftest.$ac_ext <<_ACEOF
19412
 
#line $LINENO "configure"
19413
 
/* confdefs.h.  */
19414
 
_ACEOF
19415
 
cat confdefs.h >>conftest.$ac_ext
19416
 
cat >>conftest.$ac_ext <<_ACEOF
19417
 
/* end confdefs.h.  */
19418
 
$ac_includes_default
19419
 
int
19420
 
main ()
19421
 
{
19422
 
if ((int *) 0)
19423
 
  return 0;
19424
 
if (sizeof (int))
19425
 
  return 0;
19426
 
  ;
19427
 
  return 0;
19428
 
}
19429
 
_ACEOF
19430
 
rm -f conftest.$ac_objext
19431
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19432
 
  (eval $ac_compile) 2>&5
19433
 
  ac_status=$?
19434
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435
 
  (exit $ac_status); } &&
19436
 
         { ac_try='test -s conftest.$ac_objext'
19437
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438
 
  (eval $ac_try) 2>&5
19439
 
  ac_status=$?
19440
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441
 
  (exit $ac_status); }; }; then
19442
 
  ac_cv_type_int=yes
19443
 
else
19444
 
  echo "$as_me: failed program was:" >&5
19445
 
sed 's/^/| /' conftest.$ac_ext >&5
19446
 
 
19447
 
ac_cv_type_int=no
19448
 
fi
19449
 
rm -f conftest.$ac_objext conftest.$ac_ext
19450
 
fi
19451
 
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19452
 
echo "${ECHO_T}$ac_cv_type_int" >&6
19453
 
 
19454
 
echo "$as_me:$LINENO: checking size of int" >&5
19455
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6
19456
 
if test "${ac_cv_sizeof_int+set}" = set; then
19457
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19458
 
else
19459
 
  if test "$ac_cv_type_int" = yes; then
19460
 
  # The cast to unsigned long works around a bug in the HP C Compiler
19461
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19462
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19463
 
  # This bug is HP SR number 8606223364.
19464
 
  if test "$cross_compiling" = yes; then
19465
 
  # Depending upon the size, compute the lo and hi bounds.
19466
 
cat >conftest.$ac_ext <<_ACEOF
19467
 
#line $LINENO "configure"
19468
 
/* confdefs.h.  */
19469
 
_ACEOF
19470
 
cat confdefs.h >>conftest.$ac_ext
19471
 
cat >>conftest.$ac_ext <<_ACEOF
19472
 
/* end confdefs.h.  */
19473
 
$ac_includes_default
19474
 
int
19475
 
main ()
19476
 
{
19477
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19478
 
test_array [0] = 0
19479
 
 
19480
 
  ;
19481
 
  return 0;
19482
 
}
19483
 
_ACEOF
19484
 
rm -f conftest.$ac_objext
19485
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19486
 
  (eval $ac_compile) 2>&5
19487
 
  ac_status=$?
19488
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489
 
  (exit $ac_status); } &&
19490
 
         { ac_try='test -s conftest.$ac_objext'
19491
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492
 
  (eval $ac_try) 2>&5
19493
 
  ac_status=$?
19494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495
 
  (exit $ac_status); }; }; then
19496
 
  ac_lo=0 ac_mid=0
19497
 
  while :; do
19498
 
    cat >conftest.$ac_ext <<_ACEOF
19499
 
#line $LINENO "configure"
19500
 
/* confdefs.h.  */
19501
 
_ACEOF
19502
 
cat confdefs.h >>conftest.$ac_ext
19503
 
cat >>conftest.$ac_ext <<_ACEOF
19504
 
/* end confdefs.h.  */
19505
 
$ac_includes_default
19506
 
int
19507
 
main ()
19508
 
{
19509
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19510
 
test_array [0] = 0
19511
 
 
19512
 
  ;
19513
 
  return 0;
19514
 
}
19515
 
_ACEOF
19516
 
rm -f conftest.$ac_objext
19517
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518
 
  (eval $ac_compile) 2>&5
19519
 
  ac_status=$?
19520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521
 
  (exit $ac_status); } &&
19522
 
         { ac_try='test -s conftest.$ac_objext'
19523
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524
 
  (eval $ac_try) 2>&5
19525
 
  ac_status=$?
19526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527
 
  (exit $ac_status); }; }; then
19528
 
  ac_hi=$ac_mid; break
19529
 
else
19530
 
  echo "$as_me: failed program was:" >&5
19531
 
sed 's/^/| /' conftest.$ac_ext >&5
19532
 
 
19533
 
ac_lo=`expr $ac_mid + 1`
19534
 
                    if test $ac_lo -le $ac_mid; then
19535
 
                      ac_lo= ac_hi=
19536
 
                      break
19537
 
                    fi
19538
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
19539
 
fi
19540
 
rm -f conftest.$ac_objext conftest.$ac_ext
19541
 
  done
19542
 
else
19543
 
  echo "$as_me: failed program was:" >&5
19544
 
sed 's/^/| /' conftest.$ac_ext >&5
19545
 
 
19546
 
cat >conftest.$ac_ext <<_ACEOF
19547
 
#line $LINENO "configure"
19548
 
/* confdefs.h.  */
19549
 
_ACEOF
19550
 
cat confdefs.h >>conftest.$ac_ext
19551
 
cat >>conftest.$ac_ext <<_ACEOF
19552
 
/* end confdefs.h.  */
19553
 
$ac_includes_default
19554
 
int
19555
 
main ()
19556
 
{
19557
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19558
 
test_array [0] = 0
19559
 
 
19560
 
  ;
19561
 
  return 0;
19562
 
}
19563
 
_ACEOF
19564
 
rm -f conftest.$ac_objext
19565
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19566
 
  (eval $ac_compile) 2>&5
19567
 
  ac_status=$?
19568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569
 
  (exit $ac_status); } &&
19570
 
         { ac_try='test -s conftest.$ac_objext'
19571
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572
 
  (eval $ac_try) 2>&5
19573
 
  ac_status=$?
19574
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575
 
  (exit $ac_status); }; }; then
19576
 
  ac_hi=-1 ac_mid=-1
19577
 
  while :; do
19578
 
    cat >conftest.$ac_ext <<_ACEOF
19579
 
#line $LINENO "configure"
19580
 
/* confdefs.h.  */
19581
 
_ACEOF
19582
 
cat confdefs.h >>conftest.$ac_ext
19583
 
cat >>conftest.$ac_ext <<_ACEOF
19584
 
/* end confdefs.h.  */
19585
 
$ac_includes_default
19586
 
int
19587
 
main ()
19588
 
{
19589
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19590
 
test_array [0] = 0
19591
 
 
19592
 
  ;
19593
 
  return 0;
19594
 
}
19595
 
_ACEOF
19596
 
rm -f conftest.$ac_objext
19597
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598
 
  (eval $ac_compile) 2>&5
19599
 
  ac_status=$?
19600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601
 
  (exit $ac_status); } &&
19602
 
         { ac_try='test -s conftest.$ac_objext'
19603
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604
 
  (eval $ac_try) 2>&5
19605
 
  ac_status=$?
19606
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607
 
  (exit $ac_status); }; }; then
19608
 
  ac_lo=$ac_mid; break
19609
 
else
19610
 
  echo "$as_me: failed program was:" >&5
19611
 
sed 's/^/| /' conftest.$ac_ext >&5
19612
 
 
19613
 
ac_hi=`expr '(' $ac_mid ')' - 1`
19614
 
                       if test $ac_mid -le $ac_hi; then
19615
 
                         ac_lo= ac_hi=
19616
 
                         break
19617
 
                       fi
19618
 
                       ac_mid=`expr 2 '*' $ac_mid`
19619
 
fi
19620
 
rm -f conftest.$ac_objext conftest.$ac_ext
19621
 
  done
19622
 
else
19623
 
  echo "$as_me: failed program was:" >&5
19624
 
sed 's/^/| /' conftest.$ac_ext >&5
19625
 
 
19626
 
ac_lo= ac_hi=
19627
 
fi
19628
 
rm -f conftest.$ac_objext conftest.$ac_ext
19629
 
fi
19630
 
rm -f conftest.$ac_objext conftest.$ac_ext
19631
 
# Binary search between lo and hi bounds.
19632
 
while test "x$ac_lo" != "x$ac_hi"; do
19633
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19634
 
  cat >conftest.$ac_ext <<_ACEOF
19635
 
#line $LINENO "configure"
19636
 
/* confdefs.h.  */
19637
 
_ACEOF
19638
 
cat confdefs.h >>conftest.$ac_ext
19639
 
cat >>conftest.$ac_ext <<_ACEOF
19640
 
/* end confdefs.h.  */
19641
 
$ac_includes_default
19642
 
int
19643
 
main ()
19644
 
{
19645
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19646
 
test_array [0] = 0
19647
 
 
19648
 
  ;
19649
 
  return 0;
19650
 
}
19651
 
_ACEOF
19652
 
rm -f conftest.$ac_objext
19653
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19654
 
  (eval $ac_compile) 2>&5
19655
 
  ac_status=$?
19656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657
 
  (exit $ac_status); } &&
19658
 
         { ac_try='test -s conftest.$ac_objext'
19659
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660
 
  (eval $ac_try) 2>&5
19661
 
  ac_status=$?
19662
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663
 
  (exit $ac_status); }; }; then
19664
 
  ac_hi=$ac_mid
19665
 
else
19666
 
  echo "$as_me: failed program was:" >&5
19667
 
sed 's/^/| /' conftest.$ac_ext >&5
19668
 
 
19669
 
ac_lo=`expr '(' $ac_mid ')' + 1`
19670
 
fi
19671
 
rm -f conftest.$ac_objext conftest.$ac_ext
19672
 
done
19673
 
case $ac_lo in
19674
 
?*) ac_cv_sizeof_int=$ac_lo;;
19675
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19676
 
See \`config.log' for more details." >&5
19677
 
echo "$as_me: error: cannot compute sizeof (int), 77
19678
 
See \`config.log' for more details." >&2;}
19679
 
   { (exit 1); exit 1; }; } ;;
19680
 
esac
19681
 
else
19682
 
  if test "$cross_compiling" = yes; then
19683
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19684
 
See \`config.log' for more details." >&5
19685
 
echo "$as_me: error: cannot run test program while cross compiling
19686
 
See \`config.log' for more details." >&2;}
19687
 
   { (exit 1); exit 1; }; }
19688
 
else
19689
 
  cat >conftest.$ac_ext <<_ACEOF
19690
 
#line $LINENO "configure"
19691
 
/* confdefs.h.  */
19692
 
_ACEOF
19693
 
cat confdefs.h >>conftest.$ac_ext
19694
 
cat >>conftest.$ac_ext <<_ACEOF
19695
 
/* end confdefs.h.  */
19696
 
$ac_includes_default
19697
 
long longval () { return (long) (sizeof (int)); }
19698
 
unsigned long ulongval () { return (long) (sizeof (int)); }
19699
 
#include <stdio.h>
19700
 
#include <stdlib.h>
19701
 
int
19702
 
main ()
19703
 
{
19704
 
 
19705
 
  FILE *f = fopen ("conftest.val", "w");
19706
 
  if (! f)
19707
 
    exit (1);
19708
 
  if (((long) (sizeof (int))) < 0)
19709
 
    {
19710
 
      long i = longval ();
19711
 
      if (i != ((long) (sizeof (int))))
19712
 
        exit (1);
19713
 
      fprintf (f, "%ld\n", i);
19714
 
    }
19715
 
  else
19716
 
    {
19717
 
      unsigned long i = ulongval ();
19718
 
      if (i != ((long) (sizeof (int))))
19719
 
        exit (1);
19720
 
      fprintf (f, "%lu\n", i);
19721
 
    }
19722
 
  exit (ferror (f) || fclose (f) != 0);
19723
 
 
19724
 
  ;
19725
 
  return 0;
19726
 
}
19727
 
_ACEOF
19728
 
rm -f conftest$ac_exeext
19729
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19730
 
  (eval $ac_link) 2>&5
19731
 
  ac_status=$?
19732
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19734
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735
 
  (eval $ac_try) 2>&5
19736
 
  ac_status=$?
19737
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738
 
  (exit $ac_status); }; }; then
19739
 
  ac_cv_sizeof_int=`cat conftest.val`
19740
 
else
19741
 
  echo "$as_me: program exited with status $ac_status" >&5
19742
 
echo "$as_me: failed program was:" >&5
19743
 
sed 's/^/| /' conftest.$ac_ext >&5
19744
 
 
19745
 
( exit $ac_status )
19746
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19747
 
See \`config.log' for more details." >&5
19748
 
echo "$as_me: error: cannot compute sizeof (int), 77
19749
 
See \`config.log' for more details." >&2;}
19750
 
   { (exit 1); exit 1; }; }
19751
 
fi
19752
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19753
 
fi
19754
 
fi
19755
 
rm -f conftest.val
19756
 
else
19757
 
  ac_cv_sizeof_int=0
19758
 
fi
19759
 
fi
19760
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19761
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19762
 
cat >>confdefs.h <<_ACEOF
19763
 
#define SIZEOF_INT $ac_cv_sizeof_int
19764
 
_ACEOF
19765
 
 
19766
 
  echo "$as_me:$LINENO: checking for long" >&5
19767
 
echo $ECHO_N "checking for long... $ECHO_C" >&6
19768
 
if test "${ac_cv_type_long+set}" = set; then
19769
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19770
 
else
19771
 
  cat >conftest.$ac_ext <<_ACEOF
19772
 
#line $LINENO "configure"
19773
 
/* confdefs.h.  */
19774
 
_ACEOF
19775
 
cat confdefs.h >>conftest.$ac_ext
19776
 
cat >>conftest.$ac_ext <<_ACEOF
19777
 
/* end confdefs.h.  */
19778
 
$ac_includes_default
19779
 
int
19780
 
main ()
19781
 
{
19782
 
if ((long *) 0)
19783
 
  return 0;
19784
 
if (sizeof (long))
19785
 
  return 0;
19786
 
  ;
19787
 
  return 0;
19788
 
}
19789
 
_ACEOF
19790
 
rm -f conftest.$ac_objext
19791
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19792
 
  (eval $ac_compile) 2>&5
19793
 
  ac_status=$?
19794
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795
 
  (exit $ac_status); } &&
19796
 
         { ac_try='test -s conftest.$ac_objext'
19797
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798
 
  (eval $ac_try) 2>&5
19799
 
  ac_status=$?
19800
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801
 
  (exit $ac_status); }; }; then
19802
 
  ac_cv_type_long=yes
19803
 
else
19804
 
  echo "$as_me: failed program was:" >&5
19805
 
sed 's/^/| /' conftest.$ac_ext >&5
19806
 
 
19807
 
ac_cv_type_long=no
19808
 
fi
19809
 
rm -f conftest.$ac_objext conftest.$ac_ext
19810
 
fi
19811
 
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19812
 
echo "${ECHO_T}$ac_cv_type_long" >&6
19813
 
 
19814
 
echo "$as_me:$LINENO: checking size of long" >&5
19815
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6
19816
 
if test "${ac_cv_sizeof_long+set}" = set; then
19817
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19818
 
else
19819
 
  if test "$ac_cv_type_long" = yes; then
19820
 
  # The cast to unsigned long works around a bug in the HP C Compiler
19821
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19822
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19823
 
  # This bug is HP SR number 8606223364.
19824
 
  if test "$cross_compiling" = yes; then
19825
 
  # Depending upon the size, compute the lo and hi bounds.
19826
 
cat >conftest.$ac_ext <<_ACEOF
19827
 
#line $LINENO "configure"
19828
 
/* confdefs.h.  */
19829
 
_ACEOF
19830
 
cat confdefs.h >>conftest.$ac_ext
19831
 
cat >>conftest.$ac_ext <<_ACEOF
19832
 
/* end confdefs.h.  */
19833
 
$ac_includes_default
19834
 
int
19835
 
main ()
19836
 
{
19837
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19838
 
test_array [0] = 0
19839
 
 
19840
 
  ;
19841
 
  return 0;
19842
 
}
19843
 
_ACEOF
19844
 
rm -f conftest.$ac_objext
19845
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19846
 
  (eval $ac_compile) 2>&5
19847
 
  ac_status=$?
19848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849
 
  (exit $ac_status); } &&
19850
 
         { ac_try='test -s conftest.$ac_objext'
19851
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852
 
  (eval $ac_try) 2>&5
19853
 
  ac_status=$?
19854
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855
 
  (exit $ac_status); }; }; then
19856
 
  ac_lo=0 ac_mid=0
19857
 
  while :; do
19858
 
    cat >conftest.$ac_ext <<_ACEOF
19859
 
#line $LINENO "configure"
19860
 
/* confdefs.h.  */
19861
 
_ACEOF
19862
 
cat confdefs.h >>conftest.$ac_ext
19863
 
cat >>conftest.$ac_ext <<_ACEOF
19864
 
/* end confdefs.h.  */
19865
 
$ac_includes_default
19866
 
int
19867
 
main ()
19868
 
{
19869
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19870
 
test_array [0] = 0
19871
 
 
19872
 
  ;
19873
 
  return 0;
19874
 
}
19875
 
_ACEOF
19876
 
rm -f conftest.$ac_objext
19877
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19878
 
  (eval $ac_compile) 2>&5
19879
 
  ac_status=$?
19880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881
 
  (exit $ac_status); } &&
19882
 
         { ac_try='test -s conftest.$ac_objext'
19883
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884
 
  (eval $ac_try) 2>&5
19885
 
  ac_status=$?
19886
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887
 
  (exit $ac_status); }; }; then
19888
 
  ac_hi=$ac_mid; break
19889
 
else
19890
 
  echo "$as_me: failed program was:" >&5
19891
 
sed 's/^/| /' conftest.$ac_ext >&5
19892
 
 
19893
 
ac_lo=`expr $ac_mid + 1`
19894
 
                    if test $ac_lo -le $ac_mid; then
19895
 
                      ac_lo= ac_hi=
19896
 
                      break
19897
 
                    fi
19898
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
19899
 
fi
19900
 
rm -f conftest.$ac_objext conftest.$ac_ext
19901
 
  done
19902
 
else
19903
 
  echo "$as_me: failed program was:" >&5
19904
 
sed 's/^/| /' conftest.$ac_ext >&5
19905
 
 
19906
 
cat >conftest.$ac_ext <<_ACEOF
19907
 
#line $LINENO "configure"
19908
 
/* confdefs.h.  */
19909
 
_ACEOF
19910
 
cat confdefs.h >>conftest.$ac_ext
19911
 
cat >>conftest.$ac_ext <<_ACEOF
19912
 
/* end confdefs.h.  */
19913
 
$ac_includes_default
19914
 
int
19915
 
main ()
19916
 
{
19917
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19918
 
test_array [0] = 0
19919
 
 
19920
 
  ;
19921
 
  return 0;
19922
 
}
19923
 
_ACEOF
19924
 
rm -f conftest.$ac_objext
19925
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926
 
  (eval $ac_compile) 2>&5
19927
 
  ac_status=$?
19928
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929
 
  (exit $ac_status); } &&
19930
 
         { ac_try='test -s conftest.$ac_objext'
19931
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932
 
  (eval $ac_try) 2>&5
19933
 
  ac_status=$?
19934
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935
 
  (exit $ac_status); }; }; then
19936
 
  ac_hi=-1 ac_mid=-1
19937
 
  while :; do
19938
 
    cat >conftest.$ac_ext <<_ACEOF
19939
 
#line $LINENO "configure"
19940
 
/* confdefs.h.  */
19941
 
_ACEOF
19942
 
cat confdefs.h >>conftest.$ac_ext
19943
 
cat >>conftest.$ac_ext <<_ACEOF
19944
 
/* end confdefs.h.  */
19945
 
$ac_includes_default
19946
 
int
19947
 
main ()
19948
 
{
19949
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19950
 
test_array [0] = 0
19951
 
 
19952
 
  ;
19953
 
  return 0;
19954
 
}
19955
 
_ACEOF
19956
 
rm -f conftest.$ac_objext
19957
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19958
 
  (eval $ac_compile) 2>&5
19959
 
  ac_status=$?
19960
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961
 
  (exit $ac_status); } &&
19962
 
         { ac_try='test -s conftest.$ac_objext'
19963
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964
 
  (eval $ac_try) 2>&5
19965
 
  ac_status=$?
19966
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967
 
  (exit $ac_status); }; }; then
19968
 
  ac_lo=$ac_mid; break
19969
 
else
19970
 
  echo "$as_me: failed program was:" >&5
19971
 
sed 's/^/| /' conftest.$ac_ext >&5
19972
 
 
19973
 
ac_hi=`expr '(' $ac_mid ')' - 1`
19974
 
                       if test $ac_mid -le $ac_hi; then
19975
 
                         ac_lo= ac_hi=
19976
 
                         break
19977
 
                       fi
19978
 
                       ac_mid=`expr 2 '*' $ac_mid`
19979
 
fi
19980
 
rm -f conftest.$ac_objext conftest.$ac_ext
19981
 
  done
19982
 
else
19983
 
  echo "$as_me: failed program was:" >&5
19984
 
sed 's/^/| /' conftest.$ac_ext >&5
19985
 
 
19986
 
ac_lo= ac_hi=
19987
 
fi
19988
 
rm -f conftest.$ac_objext conftest.$ac_ext
19989
 
fi
19990
 
rm -f conftest.$ac_objext conftest.$ac_ext
19991
 
# Binary search between lo and hi bounds.
19992
 
while test "x$ac_lo" != "x$ac_hi"; do
19993
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19994
 
  cat >conftest.$ac_ext <<_ACEOF
19995
 
#line $LINENO "configure"
19996
 
/* confdefs.h.  */
19997
 
_ACEOF
19998
 
cat confdefs.h >>conftest.$ac_ext
19999
 
cat >>conftest.$ac_ext <<_ACEOF
20000
 
/* end confdefs.h.  */
20001
 
$ac_includes_default
20002
 
int
20003
 
main ()
20004
 
{
20005
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20006
 
test_array [0] = 0
20007
 
 
20008
 
  ;
20009
 
  return 0;
20010
 
}
20011
 
_ACEOF
20012
 
rm -f conftest.$ac_objext
20013
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20014
 
  (eval $ac_compile) 2>&5
20015
 
  ac_status=$?
20016
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017
 
  (exit $ac_status); } &&
20018
 
         { ac_try='test -s conftest.$ac_objext'
20019
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020
 
  (eval $ac_try) 2>&5
20021
 
  ac_status=$?
20022
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023
 
  (exit $ac_status); }; }; then
20024
 
  ac_hi=$ac_mid
20025
 
else
20026
 
  echo "$as_me: failed program was:" >&5
20027
 
sed 's/^/| /' conftest.$ac_ext >&5
20028
 
 
20029
 
ac_lo=`expr '(' $ac_mid ')' + 1`
20030
 
fi
20031
 
rm -f conftest.$ac_objext conftest.$ac_ext
20032
 
done
20033
 
case $ac_lo in
20034
 
?*) ac_cv_sizeof_long=$ac_lo;;
20035
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20036
 
See \`config.log' for more details." >&5
20037
 
echo "$as_me: error: cannot compute sizeof (long), 77
20038
 
See \`config.log' for more details." >&2;}
20039
 
   { (exit 1); exit 1; }; } ;;
20040
 
esac
20041
 
else
20042
 
  if test "$cross_compiling" = yes; then
20043
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20044
 
See \`config.log' for more details." >&5
20045
 
echo "$as_me: error: cannot run test program while cross compiling
20046
 
See \`config.log' for more details." >&2;}
20047
 
   { (exit 1); exit 1; }; }
20048
 
else
20049
 
  cat >conftest.$ac_ext <<_ACEOF
20050
 
#line $LINENO "configure"
20051
 
/* confdefs.h.  */
20052
 
_ACEOF
20053
 
cat confdefs.h >>conftest.$ac_ext
20054
 
cat >>conftest.$ac_ext <<_ACEOF
20055
 
/* end confdefs.h.  */
20056
 
$ac_includes_default
20057
 
long longval () { return (long) (sizeof (long)); }
20058
 
unsigned long ulongval () { return (long) (sizeof (long)); }
20059
 
#include <stdio.h>
20060
 
#include <stdlib.h>
20061
 
int
20062
 
main ()
20063
 
{
20064
 
 
20065
 
  FILE *f = fopen ("conftest.val", "w");
20066
 
  if (! f)
20067
 
    exit (1);
20068
 
  if (((long) (sizeof (long))) < 0)
20069
 
    {
20070
 
      long i = longval ();
20071
 
      if (i != ((long) (sizeof (long))))
20072
 
        exit (1);
20073
 
      fprintf (f, "%ld\n", i);
20074
 
    }
20075
 
  else
20076
 
    {
20077
 
      unsigned long i = ulongval ();
20078
 
      if (i != ((long) (sizeof (long))))
20079
 
        exit (1);
20080
 
      fprintf (f, "%lu\n", i);
20081
 
    }
20082
 
  exit (ferror (f) || fclose (f) != 0);
20083
 
 
20084
 
  ;
20085
 
  return 0;
20086
 
}
20087
 
_ACEOF
20088
 
rm -f conftest$ac_exeext
20089
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20090
 
  (eval $ac_link) 2>&5
20091
 
  ac_status=$?
20092
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20094
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095
 
  (eval $ac_try) 2>&5
20096
 
  ac_status=$?
20097
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098
 
  (exit $ac_status); }; }; then
20099
 
  ac_cv_sizeof_long=`cat conftest.val`
20100
 
else
20101
 
  echo "$as_me: program exited with status $ac_status" >&5
20102
 
echo "$as_me: failed program was:" >&5
20103
 
sed 's/^/| /' conftest.$ac_ext >&5
20104
 
 
20105
 
( exit $ac_status )
20106
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20107
 
See \`config.log' for more details." >&5
20108
 
echo "$as_me: error: cannot compute sizeof (long), 77
20109
 
See \`config.log' for more details." >&2;}
20110
 
   { (exit 1); exit 1; }; }
20111
 
fi
20112
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20113
 
fi
20114
 
fi
20115
 
rm -f conftest.val
20116
 
else
20117
 
  ac_cv_sizeof_long=0
20118
 
fi
20119
 
fi
20120
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20121
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20122
 
cat >>confdefs.h <<_ACEOF
20123
 
#define SIZEOF_LONG $ac_cv_sizeof_long
20124
 
_ACEOF
20125
 
 
20126
 
  echo "$as_me:$LINENO: checking for char *" >&5
20127
 
echo $ECHO_N "checking for char *... $ECHO_C" >&6
20128
 
if test "${ac_cv_type_char_p+set}" = set; then
20129
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20130
 
else
20131
 
  cat >conftest.$ac_ext <<_ACEOF
20132
 
#line $LINENO "configure"
20133
 
/* confdefs.h.  */
20134
 
_ACEOF
20135
 
cat confdefs.h >>conftest.$ac_ext
20136
 
cat >>conftest.$ac_ext <<_ACEOF
20137
 
/* end confdefs.h.  */
20138
 
$ac_includes_default
20139
 
int
20140
 
main ()
20141
 
{
20142
 
if ((char * *) 0)
20143
 
  return 0;
20144
 
if (sizeof (char *))
20145
 
  return 0;
20146
 
  ;
20147
 
  return 0;
20148
 
}
20149
 
_ACEOF
20150
 
rm -f conftest.$ac_objext
20151
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152
 
  (eval $ac_compile) 2>&5
20153
 
  ac_status=$?
20154
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155
 
  (exit $ac_status); } &&
20156
 
         { ac_try='test -s conftest.$ac_objext'
20157
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158
 
  (eval $ac_try) 2>&5
20159
 
  ac_status=$?
20160
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161
 
  (exit $ac_status); }; }; then
20162
 
  ac_cv_type_char_p=yes
20163
 
else
20164
 
  echo "$as_me: failed program was:" >&5
20165
 
sed 's/^/| /' conftest.$ac_ext >&5
20166
 
 
20167
 
ac_cv_type_char_p=no
20168
 
fi
20169
 
rm -f conftest.$ac_objext conftest.$ac_ext
20170
 
fi
20171
 
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
20172
 
echo "${ECHO_T}$ac_cv_type_char_p" >&6
20173
 
 
20174
 
echo "$as_me:$LINENO: checking size of char *" >&5
20175
 
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
20176
 
if test "${ac_cv_sizeof_char_p+set}" = set; then
20177
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20178
 
else
20179
 
  if test "$ac_cv_type_char_p" = yes; then
20180
 
  # The cast to unsigned long works around a bug in the HP C Compiler
20181
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20182
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20183
 
  # This bug is HP SR number 8606223364.
20184
 
  if test "$cross_compiling" = yes; then
20185
 
  # Depending upon the size, compute the lo and hi bounds.
20186
 
cat >conftest.$ac_ext <<_ACEOF
20187
 
#line $LINENO "configure"
20188
 
/* confdefs.h.  */
20189
 
_ACEOF
20190
 
cat confdefs.h >>conftest.$ac_ext
20191
 
cat >>conftest.$ac_ext <<_ACEOF
20192
 
/* end confdefs.h.  */
20193
 
$ac_includes_default
20194
 
int
20195
 
main ()
20196
 
{
20197
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
20198
 
test_array [0] = 0
20199
 
 
20200
 
  ;
20201
 
  return 0;
20202
 
}
20203
 
_ACEOF
20204
 
rm -f conftest.$ac_objext
20205
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206
 
  (eval $ac_compile) 2>&5
20207
 
  ac_status=$?
20208
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209
 
  (exit $ac_status); } &&
20210
 
         { ac_try='test -s conftest.$ac_objext'
20211
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212
 
  (eval $ac_try) 2>&5
20213
 
  ac_status=$?
20214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215
 
  (exit $ac_status); }; }; then
20216
 
  ac_lo=0 ac_mid=0
20217
 
  while :; do
20218
 
    cat >conftest.$ac_ext <<_ACEOF
20219
 
#line $LINENO "configure"
20220
 
/* confdefs.h.  */
20221
 
_ACEOF
20222
 
cat confdefs.h >>conftest.$ac_ext
20223
 
cat >>conftest.$ac_ext <<_ACEOF
20224
 
/* end confdefs.h.  */
20225
 
$ac_includes_default
20226
 
int
20227
 
main ()
20228
 
{
20229
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
20230
 
test_array [0] = 0
20231
 
 
20232
 
  ;
20233
 
  return 0;
20234
 
}
20235
 
_ACEOF
20236
 
rm -f conftest.$ac_objext
20237
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20238
 
  (eval $ac_compile) 2>&5
20239
 
  ac_status=$?
20240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241
 
  (exit $ac_status); } &&
20242
 
         { ac_try='test -s conftest.$ac_objext'
20243
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244
 
  (eval $ac_try) 2>&5
20245
 
  ac_status=$?
20246
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247
 
  (exit $ac_status); }; }; then
20248
 
  ac_hi=$ac_mid; break
20249
 
else
20250
 
  echo "$as_me: failed program was:" >&5
20251
 
sed 's/^/| /' conftest.$ac_ext >&5
20252
 
 
20253
 
ac_lo=`expr $ac_mid + 1`
20254
 
                    if test $ac_lo -le $ac_mid; then
20255
 
                      ac_lo= ac_hi=
20256
 
                      break
20257
 
                    fi
20258
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
20259
 
fi
20260
 
rm -f conftest.$ac_objext conftest.$ac_ext
20261
 
  done
20262
 
else
20263
 
  echo "$as_me: failed program was:" >&5
20264
 
sed 's/^/| /' conftest.$ac_ext >&5
20265
 
 
20266
 
cat >conftest.$ac_ext <<_ACEOF
20267
 
#line $LINENO "configure"
20268
 
/* confdefs.h.  */
20269
 
_ACEOF
20270
 
cat confdefs.h >>conftest.$ac_ext
20271
 
cat >>conftest.$ac_ext <<_ACEOF
20272
 
/* end confdefs.h.  */
20273
 
$ac_includes_default
20274
 
int
20275
 
main ()
20276
 
{
20277
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
20278
 
test_array [0] = 0
20279
 
 
20280
 
  ;
20281
 
  return 0;
20282
 
}
20283
 
_ACEOF
20284
 
rm -f conftest.$ac_objext
20285
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20286
 
  (eval $ac_compile) 2>&5
20287
 
  ac_status=$?
20288
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289
 
  (exit $ac_status); } &&
20290
 
         { ac_try='test -s conftest.$ac_objext'
20291
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292
 
  (eval $ac_try) 2>&5
20293
 
  ac_status=$?
20294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295
 
  (exit $ac_status); }; }; then
20296
 
  ac_hi=-1 ac_mid=-1
20297
 
  while :; do
20298
 
    cat >conftest.$ac_ext <<_ACEOF
20299
 
#line $LINENO "configure"
20300
 
/* confdefs.h.  */
20301
 
_ACEOF
20302
 
cat confdefs.h >>conftest.$ac_ext
20303
 
cat >>conftest.$ac_ext <<_ACEOF
20304
 
/* end confdefs.h.  */
20305
 
$ac_includes_default
20306
 
int
20307
 
main ()
20308
 
{
20309
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
20310
 
test_array [0] = 0
20311
 
 
20312
 
  ;
20313
 
  return 0;
20314
 
}
20315
 
_ACEOF
20316
 
rm -f conftest.$ac_objext
20317
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20318
 
  (eval $ac_compile) 2>&5
20319
 
  ac_status=$?
20320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321
 
  (exit $ac_status); } &&
20322
 
         { ac_try='test -s conftest.$ac_objext'
20323
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324
 
  (eval $ac_try) 2>&5
20325
 
  ac_status=$?
20326
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327
 
  (exit $ac_status); }; }; then
20328
 
  ac_lo=$ac_mid; break
20329
 
else
20330
 
  echo "$as_me: failed program was:" >&5
20331
 
sed 's/^/| /' conftest.$ac_ext >&5
20332
 
 
20333
 
ac_hi=`expr '(' $ac_mid ')' - 1`
20334
 
                       if test $ac_mid -le $ac_hi; then
20335
 
                         ac_lo= ac_hi=
20336
 
                         break
20337
 
                       fi
20338
 
                       ac_mid=`expr 2 '*' $ac_mid`
20339
 
fi
20340
 
rm -f conftest.$ac_objext conftest.$ac_ext
20341
 
  done
20342
 
else
20343
 
  echo "$as_me: failed program was:" >&5
20344
 
sed 's/^/| /' conftest.$ac_ext >&5
20345
 
 
20346
 
ac_lo= ac_hi=
20347
 
fi
20348
 
rm -f conftest.$ac_objext conftest.$ac_ext
20349
 
fi
20350
 
rm -f conftest.$ac_objext conftest.$ac_ext
20351
 
# Binary search between lo and hi bounds.
20352
 
while test "x$ac_lo" != "x$ac_hi"; do
20353
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20354
 
  cat >conftest.$ac_ext <<_ACEOF
20355
 
#line $LINENO "configure"
20356
 
/* confdefs.h.  */
20357
 
_ACEOF
20358
 
cat confdefs.h >>conftest.$ac_ext
20359
 
cat >>conftest.$ac_ext <<_ACEOF
20360
 
/* end confdefs.h.  */
20361
 
$ac_includes_default
20362
 
int
20363
 
main ()
20364
 
{
20365
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
20366
 
test_array [0] = 0
20367
 
 
20368
 
  ;
20369
 
  return 0;
20370
 
}
20371
 
_ACEOF
20372
 
rm -f conftest.$ac_objext
20373
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20374
 
  (eval $ac_compile) 2>&5
20375
 
  ac_status=$?
20376
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377
 
  (exit $ac_status); } &&
20378
 
         { ac_try='test -s conftest.$ac_objext'
20379
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380
 
  (eval $ac_try) 2>&5
20381
 
  ac_status=$?
20382
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383
 
  (exit $ac_status); }; }; then
20384
 
  ac_hi=$ac_mid
20385
 
else
20386
 
  echo "$as_me: failed program was:" >&5
20387
 
sed 's/^/| /' conftest.$ac_ext >&5
20388
 
 
20389
 
ac_lo=`expr '(' $ac_mid ')' + 1`
20390
 
fi
20391
 
rm -f conftest.$ac_objext conftest.$ac_ext
20392
 
done
20393
 
case $ac_lo in
20394
 
?*) ac_cv_sizeof_char_p=$ac_lo;;
20395
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
20396
 
See \`config.log' for more details." >&5
20397
 
echo "$as_me: error: cannot compute sizeof (char *), 77
20398
 
See \`config.log' for more details." >&2;}
20399
 
   { (exit 1); exit 1; }; } ;;
20400
 
esac
20401
 
else
20402
 
  if test "$cross_compiling" = yes; then
20403
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20404
 
See \`config.log' for more details." >&5
20405
 
echo "$as_me: error: cannot run test program while cross compiling
20406
 
See \`config.log' for more details." >&2;}
20407
 
   { (exit 1); exit 1; }; }
20408
 
else
20409
 
  cat >conftest.$ac_ext <<_ACEOF
20410
 
#line $LINENO "configure"
20411
 
/* confdefs.h.  */
20412
 
_ACEOF
20413
 
cat confdefs.h >>conftest.$ac_ext
20414
 
cat >>conftest.$ac_ext <<_ACEOF
20415
 
/* end confdefs.h.  */
20416
 
$ac_includes_default
20417
 
long longval () { return (long) (sizeof (char *)); }
20418
 
unsigned long ulongval () { return (long) (sizeof (char *)); }
20419
 
#include <stdio.h>
20420
 
#include <stdlib.h>
20421
 
int
20422
 
main ()
20423
 
{
20424
 
 
20425
 
  FILE *f = fopen ("conftest.val", "w");
20426
 
  if (! f)
20427
 
    exit (1);
20428
 
  if (((long) (sizeof (char *))) < 0)
20429
 
    {
20430
 
      long i = longval ();
20431
 
      if (i != ((long) (sizeof (char *))))
20432
 
        exit (1);
20433
 
      fprintf (f, "%ld\n", i);
20434
 
    }
20435
 
  else
20436
 
    {
20437
 
      unsigned long i = ulongval ();
20438
 
      if (i != ((long) (sizeof (char *))))
20439
 
        exit (1);
20440
 
      fprintf (f, "%lu\n", i);
20441
 
    }
20442
 
  exit (ferror (f) || fclose (f) != 0);
20443
 
 
20444
 
  ;
20445
 
  return 0;
20446
 
}
20447
 
_ACEOF
20448
 
rm -f conftest$ac_exeext
20449
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20450
 
  (eval $ac_link) 2>&5
20451
 
  ac_status=$?
20452
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20454
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455
 
  (eval $ac_try) 2>&5
20456
 
  ac_status=$?
20457
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458
 
  (exit $ac_status); }; }; then
20459
 
  ac_cv_sizeof_char_p=`cat conftest.val`
20460
 
else
20461
 
  echo "$as_me: program exited with status $ac_status" >&5
20462
 
echo "$as_me: failed program was:" >&5
20463
 
sed 's/^/| /' conftest.$ac_ext >&5
20464
 
 
20465
 
( exit $ac_status )
20466
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
20467
 
See \`config.log' for more details." >&5
20468
 
echo "$as_me: error: cannot compute sizeof (char *), 77
20469
 
See \`config.log' for more details." >&2;}
20470
 
   { (exit 1); exit 1; }; }
20471
 
fi
20472
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20473
 
fi
20474
 
fi
20475
 
rm -f conftest.val
20476
 
else
20477
 
  ac_cv_sizeof_char_p=0
20478
 
fi
20479
 
fi
20480
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
20481
 
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
20482
 
cat >>confdefs.h <<_ACEOF
20483
 
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
20484
 
_ACEOF
20485
 
 
20486
 
  echo "$as_me:$LINENO: checking for char" >&5
20487
 
echo $ECHO_N "checking for char... $ECHO_C" >&6
20488
 
if test "${ac_cv_type_char+set}" = set; then
20489
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20490
 
else
20491
 
  cat >conftest.$ac_ext <<_ACEOF
20492
 
#line $LINENO "configure"
20493
 
/* confdefs.h.  */
20494
 
_ACEOF
20495
 
cat confdefs.h >>conftest.$ac_ext
20496
 
cat >>conftest.$ac_ext <<_ACEOF
20497
 
/* end confdefs.h.  */
20498
 
$ac_includes_default
20499
 
int
20500
 
main ()
20501
 
{
20502
 
if ((char *) 0)
20503
 
  return 0;
20504
 
if (sizeof (char))
20505
 
  return 0;
20506
 
  ;
20507
 
  return 0;
20508
 
}
20509
 
_ACEOF
20510
 
rm -f conftest.$ac_objext
20511
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512
 
  (eval $ac_compile) 2>&5
20513
 
  ac_status=$?
20514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515
 
  (exit $ac_status); } &&
20516
 
         { ac_try='test -s conftest.$ac_objext'
20517
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518
 
  (eval $ac_try) 2>&5
20519
 
  ac_status=$?
20520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521
 
  (exit $ac_status); }; }; then
20522
 
  ac_cv_type_char=yes
20523
 
else
20524
 
  echo "$as_me: failed program was:" >&5
20525
 
sed 's/^/| /' conftest.$ac_ext >&5
20526
 
 
20527
 
ac_cv_type_char=no
20528
 
fi
20529
 
rm -f conftest.$ac_objext conftest.$ac_ext
20530
 
fi
20531
 
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20532
 
echo "${ECHO_T}$ac_cv_type_char" >&6
20533
 
 
20534
 
echo "$as_me:$LINENO: checking size of char" >&5
20535
 
echo $ECHO_N "checking size of char... $ECHO_C" >&6
20536
 
if test "${ac_cv_sizeof_char+set}" = set; then
20537
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20538
 
else
20539
 
  if test "$ac_cv_type_char" = yes; then
20540
 
  # The cast to unsigned long works around a bug in the HP C Compiler
20541
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20542
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20543
 
  # This bug is HP SR number 8606223364.
20544
 
  if test "$cross_compiling" = yes; then
20545
 
  # Depending upon the size, compute the lo and hi bounds.
20546
 
cat >conftest.$ac_ext <<_ACEOF
20547
 
#line $LINENO "configure"
20548
 
/* confdefs.h.  */
20549
 
_ACEOF
20550
 
cat confdefs.h >>conftest.$ac_ext
20551
 
cat >>conftest.$ac_ext <<_ACEOF
20552
 
/* end confdefs.h.  */
20553
 
$ac_includes_default
20554
 
int
20555
 
main ()
20556
 
{
20557
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
20558
 
test_array [0] = 0
20559
 
 
20560
 
  ;
20561
 
  return 0;
20562
 
}
20563
 
_ACEOF
20564
 
rm -f conftest.$ac_objext
20565
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566
 
  (eval $ac_compile) 2>&5
20567
 
  ac_status=$?
20568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569
 
  (exit $ac_status); } &&
20570
 
         { ac_try='test -s conftest.$ac_objext'
20571
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572
 
  (eval $ac_try) 2>&5
20573
 
  ac_status=$?
20574
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575
 
  (exit $ac_status); }; }; then
20576
 
  ac_lo=0 ac_mid=0
20577
 
  while :; do
20578
 
    cat >conftest.$ac_ext <<_ACEOF
20579
 
#line $LINENO "configure"
20580
 
/* confdefs.h.  */
20581
 
_ACEOF
20582
 
cat confdefs.h >>conftest.$ac_ext
20583
 
cat >>conftest.$ac_ext <<_ACEOF
20584
 
/* end confdefs.h.  */
20585
 
$ac_includes_default
20586
 
int
20587
 
main ()
20588
 
{
20589
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20590
 
test_array [0] = 0
20591
 
 
20592
 
  ;
20593
 
  return 0;
20594
 
}
20595
 
_ACEOF
20596
 
rm -f conftest.$ac_objext
20597
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20598
 
  (eval $ac_compile) 2>&5
20599
 
  ac_status=$?
20600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601
 
  (exit $ac_status); } &&
20602
 
         { ac_try='test -s conftest.$ac_objext'
20603
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604
 
  (eval $ac_try) 2>&5
20605
 
  ac_status=$?
20606
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607
 
  (exit $ac_status); }; }; then
20608
 
  ac_hi=$ac_mid; break
20609
 
else
20610
 
  echo "$as_me: failed program was:" >&5
20611
 
sed 's/^/| /' conftest.$ac_ext >&5
20612
 
 
20613
 
ac_lo=`expr $ac_mid + 1`
20614
 
                    if test $ac_lo -le $ac_mid; then
20615
 
                      ac_lo= ac_hi=
20616
 
                      break
20617
 
                    fi
20618
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
20619
 
fi
20620
 
rm -f conftest.$ac_objext conftest.$ac_ext
20621
 
  done
20622
 
else
20623
 
  echo "$as_me: failed program was:" >&5
20624
 
sed 's/^/| /' conftest.$ac_ext >&5
20625
 
 
20626
 
cat >conftest.$ac_ext <<_ACEOF
20627
 
#line $LINENO "configure"
20628
 
/* confdefs.h.  */
20629
 
_ACEOF
20630
 
cat confdefs.h >>conftest.$ac_ext
20631
 
cat >>conftest.$ac_ext <<_ACEOF
20632
 
/* end confdefs.h.  */
20633
 
$ac_includes_default
20634
 
int
20635
 
main ()
20636
 
{
20637
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
20638
 
test_array [0] = 0
20639
 
 
20640
 
  ;
20641
 
  return 0;
20642
 
}
20643
 
_ACEOF
20644
 
rm -f conftest.$ac_objext
20645
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646
 
  (eval $ac_compile) 2>&5
20647
 
  ac_status=$?
20648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649
 
  (exit $ac_status); } &&
20650
 
         { ac_try='test -s conftest.$ac_objext'
20651
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652
 
  (eval $ac_try) 2>&5
20653
 
  ac_status=$?
20654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655
 
  (exit $ac_status); }; }; then
20656
 
  ac_hi=-1 ac_mid=-1
20657
 
  while :; do
20658
 
    cat >conftest.$ac_ext <<_ACEOF
20659
 
#line $LINENO "configure"
20660
 
/* confdefs.h.  */
20661
 
_ACEOF
20662
 
cat confdefs.h >>conftest.$ac_ext
20663
 
cat >>conftest.$ac_ext <<_ACEOF
20664
 
/* end confdefs.h.  */
20665
 
$ac_includes_default
20666
 
int
20667
 
main ()
20668
 
{
20669
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
20670
 
test_array [0] = 0
20671
 
 
20672
 
  ;
20673
 
  return 0;
20674
 
}
20675
 
_ACEOF
20676
 
rm -f conftest.$ac_objext
20677
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20678
 
  (eval $ac_compile) 2>&5
20679
 
  ac_status=$?
20680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681
 
  (exit $ac_status); } &&
20682
 
         { ac_try='test -s conftest.$ac_objext'
20683
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20684
 
  (eval $ac_try) 2>&5
20685
 
  ac_status=$?
20686
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687
 
  (exit $ac_status); }; }; then
20688
 
  ac_lo=$ac_mid; break
20689
 
else
20690
 
  echo "$as_me: failed program was:" >&5
20691
 
sed 's/^/| /' conftest.$ac_ext >&5
20692
 
 
20693
 
ac_hi=`expr '(' $ac_mid ')' - 1`
20694
 
                       if test $ac_mid -le $ac_hi; then
20695
 
                         ac_lo= ac_hi=
20696
 
                         break
20697
 
                       fi
20698
 
                       ac_mid=`expr 2 '*' $ac_mid`
20699
 
fi
20700
 
rm -f conftest.$ac_objext conftest.$ac_ext
20701
 
  done
20702
 
else
20703
 
  echo "$as_me: failed program was:" >&5
20704
 
sed 's/^/| /' conftest.$ac_ext >&5
20705
 
 
20706
 
ac_lo= ac_hi=
20707
 
fi
20708
 
rm -f conftest.$ac_objext conftest.$ac_ext
20709
 
fi
20710
 
rm -f conftest.$ac_objext conftest.$ac_ext
20711
 
# Binary search between lo and hi bounds.
20712
 
while test "x$ac_lo" != "x$ac_hi"; do
20713
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20714
 
  cat >conftest.$ac_ext <<_ACEOF
20715
 
#line $LINENO "configure"
20716
 
/* confdefs.h.  */
20717
 
_ACEOF
20718
 
cat confdefs.h >>conftest.$ac_ext
20719
 
cat >>conftest.$ac_ext <<_ACEOF
20720
 
/* end confdefs.h.  */
20721
 
$ac_includes_default
20722
 
int
20723
 
main ()
20724
 
{
20725
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20726
 
test_array [0] = 0
20727
 
 
20728
 
  ;
20729
 
  return 0;
20730
 
}
20731
 
_ACEOF
20732
 
rm -f conftest.$ac_objext
20733
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734
 
  (eval $ac_compile) 2>&5
20735
 
  ac_status=$?
20736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737
 
  (exit $ac_status); } &&
20738
 
         { ac_try='test -s conftest.$ac_objext'
20739
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740
 
  (eval $ac_try) 2>&5
20741
 
  ac_status=$?
20742
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743
 
  (exit $ac_status); }; }; then
20744
 
  ac_hi=$ac_mid
20745
 
else
20746
 
  echo "$as_me: failed program was:" >&5
20747
 
sed 's/^/| /' conftest.$ac_ext >&5
20748
 
 
20749
 
ac_lo=`expr '(' $ac_mid ')' + 1`
20750
 
fi
20751
 
rm -f conftest.$ac_objext conftest.$ac_ext
20752
 
done
20753
 
case $ac_lo in
20754
 
?*) ac_cv_sizeof_char=$ac_lo;;
20755
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20756
 
See \`config.log' for more details." >&5
20757
 
echo "$as_me: error: cannot compute sizeof (char), 77
20758
 
See \`config.log' for more details." >&2;}
20759
 
   { (exit 1); exit 1; }; } ;;
20760
 
esac
20761
 
else
20762
 
  if test "$cross_compiling" = yes; then
20763
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20764
 
See \`config.log' for more details." >&5
20765
 
echo "$as_me: error: cannot run test program while cross compiling
20766
 
See \`config.log' for more details." >&2;}
20767
 
   { (exit 1); exit 1; }; }
20768
 
else
20769
 
  cat >conftest.$ac_ext <<_ACEOF
20770
 
#line $LINENO "configure"
20771
 
/* confdefs.h.  */
20772
 
_ACEOF
20773
 
cat confdefs.h >>conftest.$ac_ext
20774
 
cat >>conftest.$ac_ext <<_ACEOF
20775
 
/* end confdefs.h.  */
20776
 
$ac_includes_default
20777
 
long longval () { return (long) (sizeof (char)); }
20778
 
unsigned long ulongval () { return (long) (sizeof (char)); }
20779
 
#include <stdio.h>
20780
 
#include <stdlib.h>
20781
 
int
20782
 
main ()
20783
 
{
20784
 
 
20785
 
  FILE *f = fopen ("conftest.val", "w");
20786
 
  if (! f)
20787
 
    exit (1);
20788
 
  if (((long) (sizeof (char))) < 0)
20789
 
    {
20790
 
      long i = longval ();
20791
 
      if (i != ((long) (sizeof (char))))
20792
 
        exit (1);
20793
 
      fprintf (f, "%ld\n", i);
20794
 
    }
20795
 
  else
20796
 
    {
20797
 
      unsigned long i = ulongval ();
20798
 
      if (i != ((long) (sizeof (char))))
20799
 
        exit (1);
20800
 
      fprintf (f, "%lu\n", i);
20801
 
    }
20802
 
  exit (ferror (f) || fclose (f) != 0);
20803
 
 
20804
 
  ;
20805
 
  return 0;
20806
 
}
20807
 
_ACEOF
20808
 
rm -f conftest$ac_exeext
20809
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20810
 
  (eval $ac_link) 2>&5
20811
 
  ac_status=$?
20812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20814
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815
 
  (eval $ac_try) 2>&5
20816
 
  ac_status=$?
20817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818
 
  (exit $ac_status); }; }; then
20819
 
  ac_cv_sizeof_char=`cat conftest.val`
20820
 
else
20821
 
  echo "$as_me: program exited with status $ac_status" >&5
20822
 
echo "$as_me: failed program was:" >&5
20823
 
sed 's/^/| /' conftest.$ac_ext >&5
20824
 
 
20825
 
( exit $ac_status )
20826
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20827
 
See \`config.log' for more details." >&5
20828
 
echo "$as_me: error: cannot compute sizeof (char), 77
20829
 
See \`config.log' for more details." >&2;}
20830
 
   { (exit 1); exit 1; }; }
20831
 
fi
20832
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20833
 
fi
20834
 
fi
20835
 
rm -f conftest.val
20836
 
else
20837
 
  ac_cv_sizeof_char=0
20838
 
fi
20839
 
fi
20840
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20841
 
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
20842
 
cat >>confdefs.h <<_ACEOF
20843
 
#define SIZEOF_CHAR $ac_cv_sizeof_char
20844
 
_ACEOF
20845
 
 
20846
 
 
20847
 
 
20848
 
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20849
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20850
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20851
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20852
 
else
20853
 
  ac_check_lib_save_LIBS=$LIBS
20854
 
LIBS="-ldl  $LIBS"
20855
 
cat >conftest.$ac_ext <<_ACEOF
20856
 
#line $LINENO "configure"
20857
 
/* confdefs.h.  */
20858
 
_ACEOF
20859
 
cat confdefs.h >>conftest.$ac_ext
20860
 
cat >>conftest.$ac_ext <<_ACEOF
20861
 
/* end confdefs.h.  */
20862
 
 
20863
 
/* Override any gcc2 internal prototype to avoid an error.  */
20864
 
#ifdef __cplusplus
20865
 
extern "C"
20866
 
#endif
20867
 
/* We use char because int might match the return type of a gcc2
20868
 
   builtin and then its argument prototype would still apply.  */
20869
 
char dlopen ();
20870
 
int
20871
 
main ()
20872
 
{
20873
 
dlopen ();
20874
 
  ;
20875
 
  return 0;
20876
 
}
20877
 
_ACEOF
20878
 
rm -f conftest.$ac_objext conftest$ac_exeext
20879
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20880
 
  (eval $ac_link) 2>&5
20881
 
  ac_status=$?
20882
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883
 
  (exit $ac_status); } &&
20884
 
         { ac_try='test -s conftest$ac_exeext'
20885
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886
 
  (eval $ac_try) 2>&5
20887
 
  ac_status=$?
20888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889
 
  (exit $ac_status); }; }; then
20890
 
  ac_cv_lib_dl_dlopen=yes
20891
 
else
20892
 
  echo "$as_me: failed program was:" >&5
20893
 
sed 's/^/| /' conftest.$ac_ext >&5
20894
 
 
20895
 
ac_cv_lib_dl_dlopen=no
20896
 
fi
20897
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20898
 
LIBS=$ac_check_lib_save_LIBS
20899
 
fi
20900
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20901
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20902
 
if test $ac_cv_lib_dl_dlopen = yes; then
20903
 
 
20904
 
LIBDL="-ldl"
20905
 
ac_cv_have_dlfcn=yes
20906
 
 
20907
 
fi
20908
 
 
20909
 
 
20910
 
echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
20911
 
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6
20912
 
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
20913
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20914
 
else
20915
 
  ac_check_lib_save_LIBS=$LIBS
20916
 
LIBS="-ldld  $LIBS"
20917
 
cat >conftest.$ac_ext <<_ACEOF
20918
 
#line $LINENO "configure"
20919
 
/* confdefs.h.  */
20920
 
_ACEOF
20921
 
cat confdefs.h >>conftest.$ac_ext
20922
 
cat >>conftest.$ac_ext <<_ACEOF
20923
 
/* end confdefs.h.  */
20924
 
 
20925
 
/* Override any gcc2 internal prototype to avoid an error.  */
20926
 
#ifdef __cplusplus
20927
 
extern "C"
20928
 
#endif
20929
 
/* We use char because int might match the return type of a gcc2
20930
 
   builtin and then its argument prototype would still apply.  */
20931
 
char shl_unload ();
20932
 
int
20933
 
main ()
20934
 
{
20935
 
shl_unload ();
20936
 
  ;
20937
 
  return 0;
20938
 
}
20939
 
_ACEOF
20940
 
rm -f conftest.$ac_objext conftest$ac_exeext
20941
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942
 
  (eval $ac_link) 2>&5
20943
 
  ac_status=$?
20944
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945
 
  (exit $ac_status); } &&
20946
 
         { ac_try='test -s conftest$ac_exeext'
20947
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948
 
  (eval $ac_try) 2>&5
20949
 
  ac_status=$?
20950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951
 
  (exit $ac_status); }; }; then
20952
 
  ac_cv_lib_dld_shl_unload=yes
20953
 
else
20954
 
  echo "$as_me: failed program was:" >&5
20955
 
sed 's/^/| /' conftest.$ac_ext >&5
20956
 
 
20957
 
ac_cv_lib_dld_shl_unload=no
20958
 
fi
20959
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20960
 
LIBS=$ac_check_lib_save_LIBS
20961
 
fi
20962
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
20963
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6
20964
 
if test $ac_cv_lib_dld_shl_unload = yes; then
20965
 
 
20966
 
LIBDL="-ldld"
20967
 
ac_cv_have_shload=yes
20968
 
 
20969
 
fi
20970
 
 
20971
 
 
20972
 
 
20973
 
 
20974
 
 
20975
 
 
20976
 
 
20977
 
# Check whether --enable-embedded or --disable-embedded was given.
20978
 
if test "${enable_embedded+set}" = set; then
20979
 
  enableval="$enable_embedded"
20980
 
  kde_use_qt_emb=$enableval
20981
 
else
20982
 
  kde_use_qt_emb=no
20983
 
 
20984
 
fi;
20985
 
 
20986
 
# Check whether --enable-qtopia or --disable-qtopia was given.
20987
 
if test "${enable_qtopia+set}" = set; then
20988
 
  enableval="$enable_qtopia"
20989
 
  kde_use_qt_emb_palm=$enableval
20990
 
else
20991
 
  kde_use_qt_emb_palm=no
20992
 
 
20993
 
fi;
20994
 
 
20995
 
if test "$kde_use_qt_emb" = "no"; then
20996
 
 
20997
 
echo "$as_me:$LINENO: checking for X" >&5
20998
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
20999
 
 
21000
 
 
21001
 
ac_ext=c
21002
 
ac_cpp='$CPP $CPPFLAGS'
21003
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21004
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21005
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21006
 
 
21007
 
if test "${kde_cv_have_x+set}" = set; then
21008
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21009
 
else
21010
 
  # One or both of the vars are not set, and there is no cached value.
21011
 
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
21012
 
   kde_x_includes=NO
21013
 
else
21014
 
   kde_x_includes=$x_includes
21015
 
fi
21016
 
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
21017
 
   kde_x_libraries=NO
21018
 
else
21019
 
   kde_x_libraries=$x_libraries
21020
 
fi
21021
 
 
21022
 
# below we use the standard autoconf calls
21023
 
ac_x_libraries=$kde_x_libraries
21024
 
ac_x_includes=$kde_x_includes
21025
 
 
21026
 
if test "$ac_x_includes" = NO; then
21027
 
  # Guess where to find include files, by looking for this one X11 .h file.
21028
 
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
21029
 
 
21030
 
  # First, try using that file with no special directory specified.
21031
 
cat >conftest.$ac_ext <<_ACEOF
21032
 
#line $LINENO "configure"
21033
 
/* confdefs.h.  */
21034
 
_ACEOF
21035
 
cat confdefs.h >>conftest.$ac_ext
21036
 
cat >>conftest.$ac_ext <<_ACEOF
21037
 
/* end confdefs.h.  */
21038
 
#include <$x_direct_test_include>
21039
 
_ACEOF
21040
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21041
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21042
 
  ac_status=$?
21043
 
  grep -v '^ *+' conftest.er1 >conftest.err
21044
 
  rm -f conftest.er1
21045
 
  cat conftest.err >&5
21046
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047
 
  (exit $ac_status); } >/dev/null; then
21048
 
  if test -s conftest.err; then
21049
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21050
 
  else
21051
 
    ac_cpp_err=
21052
 
  fi
21053
 
else
21054
 
  ac_cpp_err=yes
21055
 
fi
21056
 
if test -z "$ac_cpp_err"; then
21057
 
  # We can compile using X headers with no special include directory.
21058
 
ac_x_includes=
21059
 
else
21060
 
  echo "$as_me: failed program was:" >&5
21061
 
sed 's/^/| /' conftest.$ac_ext >&5
21062
 
 
21063
 
  # Look for the header file in a standard set of common directories.
21064
 
# Check X11 before X11Rn because it is often a symlink to the current release.
21065
 
  for ac_dir in               \
21066
 
    /usr/X11/include          \
21067
 
    /usr/X11R6/include        \
21068
 
    /usr/X11R5/include        \
21069
 
    /usr/X11R4/include        \
21070
 
                              \
21071
 
    /usr/include/X11          \
21072
 
    /usr/include/X11R6        \
21073
 
    /usr/include/X11R5        \
21074
 
    /usr/include/X11R4        \
21075
 
                              \
21076
 
    /usr/local/X11/include    \
21077
 
    /usr/local/X11R6/include  \
21078
 
    /usr/local/X11R5/include  \
21079
 
    /usr/local/X11R4/include  \
21080
 
                              \
21081
 
    /usr/local/include/X11    \
21082
 
    /usr/local/include/X11R6  \
21083
 
    /usr/local/include/X11R5  \
21084
 
    /usr/local/include/X11R4  \
21085
 
                              \
21086
 
    /usr/X386/include         \
21087
 
    /usr/x386/include         \
21088
 
    /usr/XFree86/include/X11  \
21089
 
                              \
21090
 
    /usr/include              \
21091
 
    /usr/local/include        \
21092
 
    /usr/unsupported/include  \
21093
 
    /usr/athena/include       \
21094
 
    /usr/local/x11r5/include  \
21095
 
    /usr/lpp/Xamples/include  \
21096
 
                              \
21097
 
    /usr/openwin/include      \
21098
 
    /usr/openwin/share/include \
21099
 
    ; \
21100
 
  do
21101
 
    if test -r "$ac_dir/$x_direct_test_include"; then
21102
 
      ac_x_includes=$ac_dir
21103
 
      break
21104
 
    fi
21105
 
  done
21106
 
fi
21107
 
rm -f conftest.err conftest.$ac_ext
21108
 
fi # $ac_x_includes = NO
21109
 
 
21110
 
if test "$ac_x_libraries" = NO; then
21111
 
  # Check for the libraries.
21112
 
 
21113
 
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
21114
 
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
21115
 
 
21116
 
  # See if we find them without any special options.
21117
 
  # Don't add to $LIBS permanently.
21118
 
  ac_save_LIBS="$LIBS"
21119
 
  LIBS="-l$x_direct_test_library $LIBS"
21120
 
cat >conftest.$ac_ext <<_ACEOF
21121
 
#line $LINENO "configure"
21122
 
/* confdefs.h.  */
21123
 
_ACEOF
21124
 
cat confdefs.h >>conftest.$ac_ext
21125
 
cat >>conftest.$ac_ext <<_ACEOF
21126
 
/* end confdefs.h.  */
21127
 
 
21128
 
int
21129
 
main ()
21130
 
{
21131
 
${x_direct_test_function}()
21132
 
  ;
21133
 
  return 0;
21134
 
}
21135
 
_ACEOF
21136
 
rm -f conftest.$ac_objext conftest$ac_exeext
21137
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21138
 
  (eval $ac_link) 2>&5
21139
 
  ac_status=$?
21140
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141
 
  (exit $ac_status); } &&
21142
 
         { ac_try='test -s conftest$ac_exeext'
21143
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144
 
  (eval $ac_try) 2>&5
21145
 
  ac_status=$?
21146
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147
 
  (exit $ac_status); }; }; then
21148
 
  LIBS="$ac_save_LIBS"
21149
 
# We can link X programs with no special library path.
21150
 
ac_x_libraries=
21151
 
else
21152
 
  echo "$as_me: failed program was:" >&5
21153
 
sed 's/^/| /' conftest.$ac_ext >&5
21154
 
 
21155
 
LIBS="$ac_save_LIBS"
21156
 
# First see if replacing the include by lib works.
21157
 
# Check X11 before X11Rn because it is often a symlink to the current release.
21158
 
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
21159
 
    /usr/X11/lib          \
21160
 
    /usr/X11R6/lib        \
21161
 
    /usr/X11R5/lib        \
21162
 
    /usr/X11R4/lib        \
21163
 
                          \
21164
 
    /usr/lib/X11          \
21165
 
    /usr/lib/X11R6        \
21166
 
    /usr/lib/X11R5        \
21167
 
    /usr/lib/X11R4        \
21168
 
                          \
21169
 
    /usr/local/X11/lib    \
21170
 
    /usr/local/X11R6/lib  \
21171
 
    /usr/local/X11R5/lib  \
21172
 
    /usr/local/X11R4/lib  \
21173
 
                          \
21174
 
    /usr/local/lib/X11    \
21175
 
    /usr/local/lib/X11R6  \
21176
 
    /usr/local/lib/X11R5  \
21177
 
    /usr/local/lib/X11R4  \
21178
 
                          \
21179
 
    /usr/X386/lib         \
21180
 
    /usr/x386/lib         \
21181
 
    /usr/XFree86/lib/X11  \
21182
 
                          \
21183
 
    /usr/lib              \
21184
 
    /usr/local/lib        \
21185
 
    /usr/unsupported/lib  \
21186
 
    /usr/athena/lib       \
21187
 
    /usr/local/x11r5/lib  \
21188
 
    /usr/lpp/Xamples/lib  \
21189
 
    /lib/usr/lib/X11      \
21190
 
                          \
21191
 
    /usr/openwin/lib      \
21192
 
    /usr/openwin/share/lib \
21193
 
    ; \
21194
 
do
21195
 
  for ac_extension in a so sl; do
21196
 
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21197
 
      ac_x_libraries=$ac_dir
21198
 
      break 2
21199
 
    fi
21200
 
  done
21201
 
done
21202
 
fi
21203
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21204
 
fi # $ac_x_libraries = NO
21205
 
 
21206
 
case "$host" in
21207
 
mips-sgi-irix6*)
21208
 
  ;;
21209
 
*-*-solaris*)
21210
 
  ;;
21211
 
*)
21212
 
  rm -fr conftest.dir
21213
 
if mkdir conftest.dir; then
21214
 
  cd conftest.dir
21215
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21216
 
  cat >Imakefile <<'_ACEOF'
21217
 
acfindx:
21218
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21219
 
_ACEOF
21220
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21221
 
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21222
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21223
 
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21224
 
    for ac_extension in a so sl; do
21225
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21226
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
21227
 
        ac_im_usrlibdir=$ac_im_libdir; break
21228
 
      fi
21229
 
    done
21230
 
    # Screen out bogus values from the imake configuration.  They are
21231
 
    # bogus both because they are the default anyway, and because
21232
 
    # using them would break gcc on systems where it needs fixed includes.
21233
 
    case $ac_im_incroot in
21234
 
        /usr/include) ;;
21235
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21236
 
    esac
21237
 
    case $ac_im_usrlibdir in
21238
 
        /usr/lib | /lib) ;;
21239
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21240
 
    esac
21241
 
  fi
21242
 
  cd ..
21243
 
  rm -fr conftest.dir
21244
 
fi
21245
 
 
21246
 
  if test -z "$ac_x_includes"; then
21247
 
    ac_x_includes="."
21248
 
  fi
21249
 
  if test -z "$ac_x_libraries"; then
21250
 
    ac_x_libraries="/usr/lib"
21251
 
  fi
21252
 
esac
21253
 
#from now on we use our own again
21254
 
 
21255
 
# when the user already gave --x-includes, we ignore
21256
 
# what the standard autoconf macros told us.
21257
 
if test "$kde_x_includes" = NO; then
21258
 
  kde_x_includes=$ac_x_includes
21259
 
fi
21260
 
 
21261
 
# for --x-libraries too
21262
 
if test "$kde_x_libraries" = NO; then
21263
 
  kde_x_libraries=$ac_x_libraries
21264
 
fi
21265
 
 
21266
 
if test "$kde_x_includes" = NO; then
21267
 
  { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
21268
 
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
21269
 
   { (exit 1); exit 1; }; }
21270
 
fi
21271
 
 
21272
 
if test "$kde_x_libraries" = NO; then
21273
 
  { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
21274
 
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
21275
 
   { (exit 1); exit 1; }; }
21276
 
fi
21277
 
 
21278
 
# Record where we found X for the cache.
21279
 
kde_cv_have_x="have_x=yes \
21280
 
         kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
21281
 
 
21282
 
fi
21283
 
 
21284
 
eval "$kde_cv_have_x"
21285
 
 
21286
 
if test "$have_x" != yes; then
21287
 
  echo "$as_me:$LINENO: result: $have_x" >&5
21288
 
echo "${ECHO_T}$have_x" >&6
21289
 
  no_x=yes
21290
 
else
21291
 
  echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
21292
 
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6
21293
 
fi
21294
 
 
21295
 
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
21296
 
  X_INCLUDES=""
21297
 
  x_includes=".";  else
21298
 
  x_includes=$kde_x_includes
21299
 
  X_INCLUDES="-I$x_includes"
21300
 
fi
21301
 
 
21302
 
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
21303
 
  X_LDFLAGS=""
21304
 
  x_libraries="/usr/lib";  else
21305
 
  x_libraries=$kde_x_libraries
21306
 
  X_LDFLAGS="-L$x_libraries"
21307
 
fi
21308
 
all_includes="$X_INCLUDES"
21309
 
all_libraries="$X_LDFLAGS"
21310
 
 
21311
 
 
21312
 
 
21313
 
 
21314
 
 
21315
 
 
21316
 
# Check for libraries that X11R6 Xt/Xaw programs need.
21317
 
ac_save_LDFLAGS="$LDFLAGS"
21318
 
LDFLAGS="$LDFLAGS $X_LDFLAGS"
21319
 
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21320
 
# check for ICE first), but we must link in the order -lSM -lICE or
21321
 
# we get undefined symbols.  So assume we have SM if we have ICE.
21322
 
# These have to be linked with before -lX11, unlike the other
21323
 
# libraries we check for below, so use a different variable.
21324
 
#  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
21325
 
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21326
 
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21327
 
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21328
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21329
 
else
21330
 
  ac_check_lib_save_LIBS=$LIBS
21331
 
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21332
 
cat >conftest.$ac_ext <<_ACEOF
21333
 
#line $LINENO "configure"
21334
 
/* confdefs.h.  */
21335
 
_ACEOF
21336
 
cat confdefs.h >>conftest.$ac_ext
21337
 
cat >>conftest.$ac_ext <<_ACEOF
21338
 
/* end confdefs.h.  */
21339
 
 
21340
 
/* Override any gcc2 internal prototype to avoid an error.  */
21341
 
#ifdef __cplusplus
21342
 
extern "C"
21343
 
#endif
21344
 
/* We use char because int might match the return type of a gcc2
21345
 
   builtin and then its argument prototype would still apply.  */
21346
 
char IceConnectionNumber ();
21347
 
int
21348
 
main ()
21349
 
{
21350
 
IceConnectionNumber ();
21351
 
  ;
21352
 
  return 0;
21353
 
}
21354
 
_ACEOF
21355
 
rm -f conftest.$ac_objext conftest$ac_exeext
21356
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21357
 
  (eval $ac_link) 2>&5
21358
 
  ac_status=$?
21359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360
 
  (exit $ac_status); } &&
21361
 
         { ac_try='test -s conftest$ac_exeext'
21362
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363
 
  (eval $ac_try) 2>&5
21364
 
  ac_status=$?
21365
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366
 
  (exit $ac_status); }; }; then
21367
 
  ac_cv_lib_ICE_IceConnectionNumber=yes
21368
 
else
21369
 
  echo "$as_me: failed program was:" >&5
21370
 
sed 's/^/| /' conftest.$ac_ext >&5
21371
 
 
21372
 
ac_cv_lib_ICE_IceConnectionNumber=no
21373
 
fi
21374
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21375
 
LIBS=$ac_check_lib_save_LIBS
21376
 
fi
21377
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21378
 
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21379
 
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21380
 
  LIBSM="-lSM -lICE"
21381
 
fi
21382
 
 
21383
 
 
21384
 
LDFLAGS="$ac_save_LDFLAGS"
21385
 
 
21386
 
 
21387
 
 
21388
 
LIB_X11='-lX11 $(LIBSOCKET)'
21389
 
 
21390
 
 
21391
 
echo "$as_me:$LINENO: checking for libXext" >&5
21392
 
echo $ECHO_N "checking for libXext... $ECHO_C" >&6
21393
 
if test "${kde_cv_have_libXext+set}" = set; then
21394
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21395
 
else
21396
 
 
21397
 
kde_ldflags_safe="$LDFLAGS"
21398
 
kde_libs_safe="$LIBS"
21399
 
 
21400
 
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
21401
 
LIBS="-lXext -lX11 $LIBSOCKET"
21402
 
 
21403
 
cat >conftest.$ac_ext <<_ACEOF
21404
 
#line $LINENO "configure"
21405
 
/* confdefs.h.  */
21406
 
_ACEOF
21407
 
cat confdefs.h >>conftest.$ac_ext
21408
 
cat >>conftest.$ac_ext <<_ACEOF
21409
 
/* end confdefs.h.  */
21410
 
 
21411
 
#include <stdio.h>
21412
 
#ifdef STDC_HEADERS
21413
 
# include <stdlib.h>
21414
 
#endif
21415
 
 
21416
 
int
21417
 
main ()
21418
 
{
21419
 
 
21420
 
printf("hello Xext\n");
21421
 
 
21422
 
  ;
21423
 
  return 0;
21424
 
}
21425
 
_ACEOF
21426
 
rm -f conftest.$ac_objext conftest$ac_exeext
21427
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21428
 
  (eval $ac_link) 2>&5
21429
 
  ac_status=$?
21430
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431
 
  (exit $ac_status); } &&
21432
 
         { ac_try='test -s conftest$ac_exeext'
21433
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434
 
  (eval $ac_try) 2>&5
21435
 
  ac_status=$?
21436
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437
 
  (exit $ac_status); }; }; then
21438
 
  kde_cv_have_libXext=yes
21439
 
else
21440
 
  echo "$as_me: failed program was:" >&5
21441
 
sed 's/^/| /' conftest.$ac_ext >&5
21442
 
 
21443
 
kde_cv_have_libXext=no
21444
 
 
21445
 
fi
21446
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21447
 
 
21448
 
LDFLAGS=$kde_ldflags_safe
21449
 
LIBS=$kde_libs_safe
21450
 
 
21451
 
fi
21452
 
 
21453
 
 
21454
 
echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
21455
 
echo "${ECHO_T}$kde_cv_have_libXext" >&6
21456
 
 
21457
 
if test "$kde_cv_have_libXext" = "no"; then
21458
 
  { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
21459
 
can't find it itself, we stop here assuming that make wouldn't find
21460
 
them either." >&5
21461
 
echo "$as_me: error: We need a working libXext to proceed. Since configure
21462
 
can't find it itself, we stop here assuming that make wouldn't find
21463
 
them either." >&2;}
21464
 
   { (exit 1); exit 1; }; }
21465
 
fi
21466
 
 
21467
 
echo "$as_me:$LINENO: checking for Xinerama" >&5
21468
 
echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
21469
 
 
21470
 
 
21471
 
# Check whether --with-xinerama or --without-xinerama was given.
21472
 
if test "${with_xinerama+set}" = set; then
21473
 
  withval="$with_xinerama"
21474
 
 
21475
 
    no_xinerama=no
21476
 
 
21477
 
else
21478
 
 
21479
 
    no_xinerama=yes
21480
 
 
21481
 
 
21482
 
fi;
21483
 
 
21484
 
kde_save_LDFLAGS="$LDFLAGS"
21485
 
kde_save_CFLAGS="$CFLAGS"
21486
 
kde_save_LIBS="$LIBS"
21487
 
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
21488
 
CFLAGS="$CFLAGS -I$x_includes"
21489
 
LIBS="-lXinerama -lXext"
21490
 
 
21491
 
if test "x$no_xinerama" = "xno"; then
21492
 
 
21493
 
  if test "${ac_cv_have_xinerama+set}" = set; then
21494
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21495
 
else
21496
 
 
21497
 
          cat >conftest.$ac_ext <<_ACEOF
21498
 
#line $LINENO "configure"
21499
 
/* confdefs.h.  */
21500
 
_ACEOF
21501
 
cat confdefs.h >>conftest.$ac_ext
21502
 
cat >>conftest.$ac_ext <<_ACEOF
21503
 
/* end confdefs.h.  */
21504
 
#include <X11/Xlib.h>
21505
 
                        #include <X11/extensions/Xinerama.h>
21506
 
int
21507
 
main ()
21508
 
{
21509
 
XineramaIsActive(NULL);
21510
 
  ;
21511
 
  return 0;
21512
 
}
21513
 
_ACEOF
21514
 
rm -f conftest.$ac_objext conftest$ac_exeext
21515
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21516
 
  (eval $ac_link) 2>&5
21517
 
  ac_status=$?
21518
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519
 
  (exit $ac_status); } &&
21520
 
         { ac_try='test -s conftest$ac_exeext'
21521
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522
 
  (eval $ac_try) 2>&5
21523
 
  ac_status=$?
21524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525
 
  (exit $ac_status); }; }; then
21526
 
  ac_cv_have_xinerama="yes"
21527
 
else
21528
 
  echo "$as_me: failed program was:" >&5
21529
 
sed 's/^/| /' conftest.$ac_ext >&5
21530
 
 
21531
 
ac_cv_have_xinerama="no"
21532
 
fi
21533
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21534
 
 
21535
 
fi
21536
 
 
21537
 
else
21538
 
  ac_cv_have_xinerama=no;
21539
 
fi
21540
 
 
21541
 
echo "$as_me:$LINENO: result: $ac_cv_have_xinerama" >&5
21542
 
echo "${ECHO_T}$ac_cv_have_xinerama" >&6
21543
 
 
21544
 
LIBXINERAMA=""
21545
 
 
21546
 
if test "$ac_cv_have_xinerama" = "yes"; then
21547
 
 
21548
 
cat >>confdefs.h <<\_ACEOF
21549
 
#define HAVE_XINERAMA 1
21550
 
_ACEOF
21551
 
 
21552
 
  LIBXINERAMA="-lXinerama"
21553
 
fi
21554
 
 
21555
 
 
21556
 
 
21557
 
LDFLAGS="$kde_save_LDFLAGS"
21558
 
CFLAGS="$kde_save_CFLAGS"
21559
 
LIBS="$kde_save_LIBS"
21560
 
 
21561
 
LIB_XEXT="-lXext"
21562
 
QTE_NORTTI=""
21563
 
 
21564
 
else
21565
 
    CPPFLAGS=-DQWS
21566
 
  CXXFLAGS="$CXXFLAGS -fno-rtti"
21567
 
  QTE_NORTTI="-fno-rtti -DQWS"
21568
 
  X_PRE_LIBS=""
21569
 
  LIB_X11=""
21570
 
  LIB_XEXT=""
21571
 
  LIBSM=""
21572
 
  X_INCLUDES=""
21573
 
  X_LDFLAGS=""
21574
 
  x_includes=""
21575
 
  x_libraries=""
21576
 
 
21577
 
 
21578
 
 
21579
 
 
21580
 
 
21581
 
 
21582
 
 
21583
 
fi
21584
 
 
21585
 
 
21586
 
 
21587
 
 
21588
 
ac_ext=c
21589
 
ac_cpp='$CPP $CPPFLAGS'
21590
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21591
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21592
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21593
 
 
21594
 
 
21595
 
 
21596
 
 
21597
 
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21598
 
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
21599
 
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21600
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21601
 
else
21602
 
  ac_check_lib_save_LIBS=$LIBS
21603
 
LIBS="-lpthread  $LIBS"
21604
 
cat >conftest.$ac_ext <<_ACEOF
21605
 
#line $LINENO "configure"
21606
 
/* confdefs.h.  */
21607
 
_ACEOF
21608
 
cat confdefs.h >>conftest.$ac_ext
21609
 
cat >>conftest.$ac_ext <<_ACEOF
21610
 
/* end confdefs.h.  */
21611
 
 
21612
 
/* Override any gcc2 internal prototype to avoid an error.  */
21613
 
#ifdef __cplusplus
21614
 
extern "C"
21615
 
#endif
21616
 
/* We use char because int might match the return type of a gcc2
21617
 
   builtin and then its argument prototype would still apply.  */
21618
 
char pthread_create ();
21619
 
int
21620
 
main ()
21621
 
{
21622
 
pthread_create ();
21623
 
  ;
21624
 
  return 0;
21625
 
}
21626
 
_ACEOF
21627
 
rm -f conftest.$ac_objext conftest$ac_exeext
21628
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21629
 
  (eval $ac_link) 2>&5
21630
 
  ac_status=$?
21631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632
 
  (exit $ac_status); } &&
21633
 
         { ac_try='test -s conftest$ac_exeext'
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
 
  ac_cv_lib_pthread_pthread_create=yes
21640
 
else
21641
 
  echo "$as_me: failed program was:" >&5
21642
 
sed 's/^/| /' conftest.$ac_ext >&5
21643
 
 
21644
 
ac_cv_lib_pthread_pthread_create=no
21645
 
fi
21646
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21647
 
LIBS=$ac_check_lib_save_LIBS
21648
 
fi
21649
 
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21650
 
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21651
 
if test $ac_cv_lib_pthread_pthread_create = yes; then
21652
 
  LIBPTHREAD="-lpthread"
21653
 
fi
21654
 
 
21655
 
 
21656
 
 
21657
 
 
21658
 
    # Check whether --enable-kernel-threads or --disable-kernel-threads was given.
21659
 
if test "${enable_kernel_threads+set}" = set; then
21660
 
  enableval="$enable_kernel_threads"
21661
 
  kde_use_kernthreads=$enableval
21662
 
else
21663
 
  kde_use_kernthreads=no
21664
 
fi;
21665
 
 
21666
 
    if test "$kde_use_kernthreads" = "yes"; then
21667
 
      ac_save_CXXFLAGS="$CXXFLAGS"
21668
 
      ac_save_CFLAGS="$CFLAGS"
21669
 
      CXXFLAGS="-I/usr/local/include/pthread/linuxthreads $CXXFLAGS"
21670
 
      CFLAGS="-I/usr/local/include/pthread/linuxthreads $CFLAGS"
21671
 
 
21672
 
for ac_header in pthread/linuxthreads/pthread.h
21673
 
do
21674
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21675
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21676
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21677
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21678
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21679
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21680
 
fi
21681
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21682
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21683
 
else
21684
 
  # Is the header compilable?
21685
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21686
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21687
 
cat >conftest.$ac_ext <<_ACEOF
21688
 
#line $LINENO "configure"
21689
 
/* confdefs.h.  */
21690
 
_ACEOF
21691
 
cat confdefs.h >>conftest.$ac_ext
21692
 
cat >>conftest.$ac_ext <<_ACEOF
21693
 
/* end confdefs.h.  */
21694
 
$ac_includes_default
21695
 
#include <$ac_header>
21696
 
_ACEOF
21697
 
rm -f conftest.$ac_objext
21698
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21699
 
  (eval $ac_compile) 2>&5
21700
 
  ac_status=$?
21701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702
 
  (exit $ac_status); } &&
21703
 
         { ac_try='test -s conftest.$ac_objext'
21704
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705
 
  (eval $ac_try) 2>&5
21706
 
  ac_status=$?
21707
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708
 
  (exit $ac_status); }; }; then
21709
 
  ac_header_compiler=yes
21710
 
else
21711
 
  echo "$as_me: failed program was:" >&5
21712
 
sed 's/^/| /' conftest.$ac_ext >&5
21713
 
 
21714
 
ac_header_compiler=no
21715
 
fi
21716
 
rm -f conftest.$ac_objext conftest.$ac_ext
21717
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21718
 
echo "${ECHO_T}$ac_header_compiler" >&6
21719
 
 
21720
 
# Is the header present?
21721
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21722
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21723
 
cat >conftest.$ac_ext <<_ACEOF
21724
 
#line $LINENO "configure"
21725
 
/* confdefs.h.  */
21726
 
_ACEOF
21727
 
cat confdefs.h >>conftest.$ac_ext
21728
 
cat >>conftest.$ac_ext <<_ACEOF
21729
 
/* end confdefs.h.  */
21730
 
#include <$ac_header>
21731
 
_ACEOF
21732
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21733
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21734
 
  ac_status=$?
21735
 
  grep -v '^ *+' conftest.er1 >conftest.err
21736
 
  rm -f conftest.er1
21737
 
  cat conftest.err >&5
21738
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739
 
  (exit $ac_status); } >/dev/null; then
21740
 
  if test -s conftest.err; then
21741
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21742
 
  else
21743
 
    ac_cpp_err=
21744
 
  fi
21745
 
else
21746
 
  ac_cpp_err=yes
21747
 
fi
21748
 
if test -z "$ac_cpp_err"; then
21749
 
  ac_header_preproc=yes
21750
 
else
21751
 
  echo "$as_me: failed program was:" >&5
21752
 
sed 's/^/| /' conftest.$ac_ext >&5
21753
 
 
21754
 
  ac_header_preproc=no
21755
 
fi
21756
 
rm -f conftest.err conftest.$ac_ext
21757
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21758
 
echo "${ECHO_T}$ac_header_preproc" >&6
21759
 
 
21760
 
# So?  What about this header?
21761
 
case $ac_header_compiler:$ac_header_preproc in
21762
 
  yes:no )
21763
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21764
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21765
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21766
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21767
 
    (
21768
 
      cat <<\_ASBOX
21769
 
## ------------------------------------ ##
21770
 
## Report this to bug-autoconf@gnu.org. ##
21771
 
## ------------------------------------ ##
21772
 
_ASBOX
21773
 
    ) |
21774
 
      sed "s/^/$as_me: WARNING:     /" >&2
21775
 
    ;;
21776
 
  no:yes )
21777
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21778
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21779
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21780
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21781
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21782
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21783
 
    (
21784
 
      cat <<\_ASBOX
21785
 
## ------------------------------------ ##
21786
 
## Report this to bug-autoconf@gnu.org. ##
21787
 
## ------------------------------------ ##
21788
 
_ASBOX
21789
 
    ) |
21790
 
      sed "s/^/$as_me: WARNING:     /" >&2
21791
 
    ;;
21792
 
esac
21793
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
21794
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21795
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21796
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21797
 
else
21798
 
  eval "$as_ac_Header=$ac_header_preproc"
21799
 
fi
21800
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21801
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21802
 
 
21803
 
fi
21804
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21805
 
  cat >>confdefs.h <<_ACEOF
21806
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21807
 
_ACEOF
21808
 
 
21809
 
fi
21810
 
 
21811
 
done
21812
 
 
21813
 
      CXXFLAGS="$ac_save_CXXFLAGS"
21814
 
      CFLAGS="$ac_save_CFLAGS"
21815
 
      if test "$ac_cv_header_pthread_linuxthreads_pthread_h" = "no"; then
21816
 
        kde_use_kernthreads=no
21817
 
      else
21818
 
                echo "$as_me:$LINENO: checking for pthread_join in -llthread" >&5
21819
 
echo $ECHO_N "checking for pthread_join in -llthread... $ECHO_C" >&6
21820
 
if test "${ac_cv_lib_lthread_pthread_join+set}" = set; then
21821
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21822
 
else
21823
 
  ac_check_lib_save_LIBS=$LIBS
21824
 
LIBS="-llthread  $LIBS"
21825
 
cat >conftest.$ac_ext <<_ACEOF
21826
 
#line $LINENO "configure"
21827
 
/* confdefs.h.  */
21828
 
_ACEOF
21829
 
cat confdefs.h >>conftest.$ac_ext
21830
 
cat >>conftest.$ac_ext <<_ACEOF
21831
 
/* end confdefs.h.  */
21832
 
 
21833
 
/* Override any gcc2 internal prototype to avoid an error.  */
21834
 
#ifdef __cplusplus
21835
 
extern "C"
21836
 
#endif
21837
 
/* We use char because int might match the return type of a gcc2
21838
 
   builtin and then its argument prototype would still apply.  */
21839
 
char pthread_join ();
21840
 
int
21841
 
main ()
21842
 
{
21843
 
pthread_join ();
21844
 
  ;
21845
 
  return 0;
21846
 
}
21847
 
_ACEOF
21848
 
rm -f conftest.$ac_objext conftest$ac_exeext
21849
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850
 
  (eval $ac_link) 2>&5
21851
 
  ac_status=$?
21852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853
 
  (exit $ac_status); } &&
21854
 
         { ac_try='test -s conftest$ac_exeext'
21855
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856
 
  (eval $ac_try) 2>&5
21857
 
  ac_status=$?
21858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859
 
  (exit $ac_status); }; }; then
21860
 
  ac_cv_lib_lthread_pthread_join=yes
21861
 
else
21862
 
  echo "$as_me: failed program was:" >&5
21863
 
sed 's/^/| /' conftest.$ac_ext >&5
21864
 
 
21865
 
ac_cv_lib_lthread_pthread_join=no
21866
 
fi
21867
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21868
 
LIBS=$ac_check_lib_save_LIBS
21869
 
fi
21870
 
echo "$as_me:$LINENO: result: $ac_cv_lib_lthread_pthread_join" >&5
21871
 
echo "${ECHO_T}$ac_cv_lib_lthread_pthread_join" >&6
21872
 
if test $ac_cv_lib_lthread_pthread_join = yes; then
21873
 
  LIBPTHREAD="-llthread -llgcc_r"
21874
 
fi
21875
 
         if test "x$LIBPTHREAD" = "x"; then
21876
 
          kde_use_kernthreads=no
21877
 
        else
21878
 
          USE_THREADS="-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads"
21879
 
        fi
21880
 
      fi
21881
 
    else
21882
 
      USE_THREADS=""
21883
 
      if test -z "$LIBPTHREAD"; then
21884
 
 
21885
 
echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
21886
 
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6
21887
 
kde_cache=`echo pthread | sed 'y% .=/+-%____p_%'`
21888
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
21889
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21890
 
else
21891
 
 
21892
 
 
21893
 
 
21894
 
   ac_ext=cc
21895
 
ac_cpp='$CXXCPP $CPPFLAGS'
21896
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21897
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21898
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21899
 
 
21900
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21901
 
 
21902
 
 
21903
 
  save_CXXFLAGS="$CXXFLAGS"
21904
 
  CXXFLAGS="$CXXFLAGS -pthread"
21905
 
  cat >conftest.$ac_ext <<_ACEOF
21906
 
#line $LINENO "configure"
21907
 
/* confdefs.h.  */
21908
 
_ACEOF
21909
 
cat confdefs.h >>conftest.$ac_ext
21910
 
cat >>conftest.$ac_ext <<_ACEOF
21911
 
/* end confdefs.h.  */
21912
 
 
21913
 
int
21914
 
main ()
21915
 
{
21916
 
 return 0;
21917
 
  ;
21918
 
  return 0;
21919
 
}
21920
 
_ACEOF
21921
 
rm -f conftest.$ac_objext conftest$ac_exeext
21922
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21923
 
  (eval $ac_link) 2>&5
21924
 
  ac_status=$?
21925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926
 
  (exit $ac_status); } &&
21927
 
         { ac_try='test -s conftest$ac_exeext'
21928
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929
 
  (eval $ac_try) 2>&5
21930
 
  ac_status=$?
21931
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932
 
  (exit $ac_status); }; }; then
21933
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
21934
 
else
21935
 
  echo "$as_me: failed program was:" >&5
21936
 
sed 's/^/| /' conftest.$ac_ext >&5
21937
 
 
21938
 
fi
21939
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21940
 
  CXXFLAGS="$save_CXXFLAGS"
21941
 
  ac_ext=c
21942
 
ac_cpp='$CPP $CPPFLAGS'
21943
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21944
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21945
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21946
 
 
21947
 
 
21948
 
fi
21949
 
 
21950
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
21951
 
 echo "$as_me:$LINENO: result: yes" >&5
21952
 
echo "${ECHO_T}yes" >&6
21953
 
 :
21954
 
 USE_THREADS="-pthread"
21955
 
else
21956
 
 echo "$as_me:$LINENO: result: no" >&5
21957
 
echo "${ECHO_T}no" >&6
21958
 
 :
21959
 
 
21960
 
fi
21961
 
 
21962
 
      fi
21963
 
    fi
21964
 
 
21965
 
    case $host_os in
21966
 
        solaris*)
21967
 
 
21968
 
echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
21969
 
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6
21970
 
kde_cache=`echo mt | sed 'y% .=/+-%____p_%'`
21971
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
21972
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21973
 
else
21974
 
 
21975
 
 
21976
 
 
21977
 
   ac_ext=cc
21978
 
ac_cpp='$CXXCPP $CPPFLAGS'
21979
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21980
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21981
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21982
 
 
21983
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21984
 
 
21985
 
 
21986
 
  save_CXXFLAGS="$CXXFLAGS"
21987
 
  CXXFLAGS="$CXXFLAGS -mt"
21988
 
  cat >conftest.$ac_ext <<_ACEOF
21989
 
#line $LINENO "configure"
21990
 
/* confdefs.h.  */
21991
 
_ACEOF
21992
 
cat confdefs.h >>conftest.$ac_ext
21993
 
cat >>conftest.$ac_ext <<_ACEOF
21994
 
/* end confdefs.h.  */
21995
 
 
21996
 
int
21997
 
main ()
21998
 
{
21999
 
 return 0;
22000
 
  ;
22001
 
  return 0;
22002
 
}
22003
 
_ACEOF
22004
 
rm -f conftest.$ac_objext conftest$ac_exeext
22005
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22006
 
  (eval $ac_link) 2>&5
22007
 
  ac_status=$?
22008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009
 
  (exit $ac_status); } &&
22010
 
         { ac_try='test -s conftest$ac_exeext'
22011
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012
 
  (eval $ac_try) 2>&5
22013
 
  ac_status=$?
22014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015
 
  (exit $ac_status); }; }; then
22016
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
22017
 
else
22018
 
  echo "$as_me: failed program was:" >&5
22019
 
sed 's/^/| /' conftest.$ac_ext >&5
22020
 
 
22021
 
fi
22022
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22023
 
  CXXFLAGS="$save_CXXFLAGS"
22024
 
  ac_ext=c
22025
 
ac_cpp='$CPP $CPPFLAGS'
22026
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22027
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22028
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22029
 
 
22030
 
 
22031
 
fi
22032
 
 
22033
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
22034
 
 echo "$as_me:$LINENO: result: yes" >&5
22035
 
echo "${ECHO_T}yes" >&6
22036
 
 :
22037
 
 USE_THREADS="-mt"
22038
 
else
22039
 
 echo "$as_me:$LINENO: result: no" >&5
22040
 
echo "${ECHO_T}no" >&6
22041
 
 :
22042
 
 
22043
 
fi
22044
 
 
22045
 
                CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
22046
 
                ;;
22047
 
        freebsd*)
22048
 
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
22049
 
                ;;
22050
 
        aix*)
22051
 
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
22052
 
                LIBPTHREAD="$LIBPTHREAD -lc_r"
22053
 
                ;;
22054
 
        linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22055
 
                if test "$CXX" = "KCC"; then
22056
 
                  CXXFLAGS="$CXXFLAGS --thread_safe"
22057
 
                  NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
22058
 
                fi
22059
 
                ;;
22060
 
        *)
22061
 
                ;;
22062
 
    esac
22063
 
 
22064
 
 
22065
 
 
22066
 
 
22067
 
echo "$as_me:$LINENO: checking for extra includes" >&5
22068
 
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
22069
 
 
22070
 
# Check whether --with-extra-includes or --without-extra-includes was given.
22071
 
if test "${with_extra_includes+set}" = set; then
22072
 
  withval="$with_extra_includes"
22073
 
  kde_use_extra_includes="$withval"
22074
 
else
22075
 
  kde_use_extra_includes=NONE
22076
 
 
22077
 
fi;
22078
 
kde_extra_includes=
22079
 
if test -n "$kde_use_extra_includes" && \
22080
 
   test "$kde_use_extra_includes" != "NONE"; then
22081
 
 
22082
 
   ac_save_ifs=$IFS
22083
 
   IFS=':'
22084
 
   for dir in $kde_use_extra_includes; do
22085
 
     kde_extra_includes="$kde_extra_includes $dir"
22086
 
     USER_INCLUDES="$USER_INCLUDES -I$dir"
22087
 
   done
22088
 
   IFS=$ac_save_ifs
22089
 
   kde_use_extra_includes="added"
22090
 
else
22091
 
   kde_use_extra_includes="no"
22092
 
fi
22093
 
 
22094
 
 
22095
 
echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
22096
 
echo "${ECHO_T}$kde_use_extra_includes" >&6
22097
 
 
22098
 
kde_extra_libs=
22099
 
echo "$as_me:$LINENO: checking for extra libs" >&5
22100
 
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
22101
 
 
22102
 
# Check whether --with-extra-libs or --without-extra-libs was given.
22103
 
if test "${with_extra_libs+set}" = set; then
22104
 
  withval="$with_extra_libs"
22105
 
  kde_use_extra_libs=$withval
22106
 
else
22107
 
  kde_use_extra_libs=NONE
22108
 
 
22109
 
fi;
22110
 
if test -n "$kde_use_extra_libs" && \
22111
 
   test "$kde_use_extra_libs" != "NONE"; then
22112
 
 
22113
 
   ac_save_ifs=$IFS
22114
 
   IFS=':'
22115
 
   for dir in $kde_use_extra_libs; do
22116
 
     kde_extra_libs="$kde_extra_libs $dir"
22117
 
     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
22118
 
     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
22119
 
   done
22120
 
   IFS=$ac_save_ifs
22121
 
   kde_use_extra_libs="added"
22122
 
else
22123
 
   kde_use_extra_libs="no"
22124
 
fi
22125
 
 
22126
 
 
22127
 
 
22128
 
echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
22129
 
echo "${ECHO_T}$kde_use_extra_libs" >&6
22130
 
 
22131
 
 
22132
 
 
22133
 
 
22134
 
echo "$as_me:$LINENO: checking for libz" >&5
22135
 
echo $ECHO_N "checking for libz... $ECHO_C" >&6
22136
 
if test "${ac_cv_lib_z+set}" = set; then
22137
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22138
 
else
22139
 
 
22140
 
ac_ext=c
22141
 
ac_cpp='$CPP $CPPFLAGS'
22142
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22143
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22144
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22145
 
 
22146
 
kde_save_LIBS="$LIBS"
22147
 
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
22148
 
kde_save_CFLAGS="$CFLAGS"
22149
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
22150
 
cat >conftest.$ac_ext <<_ACEOF
22151
 
#line $LINENO "configure"
22152
 
/* confdefs.h.  */
22153
 
_ACEOF
22154
 
cat confdefs.h >>conftest.$ac_ext
22155
 
cat >>conftest.$ac_ext <<_ACEOF
22156
 
/* end confdefs.h.  */
22157
 
 
22158
 
#include<zlib.h>
22159
 
 
22160
 
int
22161
 
main ()
22162
 
{
22163
 
return (zlibVersion() == ZLIB_VERSION);
22164
 
  ;
22165
 
  return 0;
22166
 
}
22167
 
_ACEOF
22168
 
rm -f conftest.$ac_objext conftest$ac_exeext
22169
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22170
 
  (eval $ac_link) 2>&5
22171
 
  ac_status=$?
22172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173
 
  (exit $ac_status); } &&
22174
 
         { ac_try='test -s conftest$ac_exeext'
22175
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176
 
  (eval $ac_try) 2>&5
22177
 
  ac_status=$?
22178
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179
 
  (exit $ac_status); }; }; then
22180
 
  eval "ac_cv_lib_z='-lz'"
22181
 
else
22182
 
  echo "$as_me: failed program was:" >&5
22183
 
sed 's/^/| /' conftest.$ac_ext >&5
22184
 
 
22185
 
eval "ac_cv_lib_z=no"
22186
 
fi
22187
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22188
 
LIBS="$kde_save_LIBS"
22189
 
CFLAGS="$kde_save_CFLAGS"
22190
 
 
22191
 
fi
22192
 
if test ! "$ac_cv_lib_z" = no; then
22193
 
 
22194
 
cat >>confdefs.h <<_ACEOF
22195
 
#define HAVE_LIBZ 1
22196
 
_ACEOF
22197
 
 
22198
 
  LIBZ="$ac_cv_lib_z"
22199
 
 
22200
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
22201
 
echo "${ECHO_T}$ac_cv_lib_z" >&6
22202
 
else
22203
 
  { { echo "$as_me:$LINENO: error: not found. Check your installation and look into config.log" >&5
22204
 
echo "$as_me: error: not found. Check your installation and look into config.log" >&2;}
22205
 
   { (exit 1); exit 1; }; }
22206
 
  LIBZ=""
22207
 
 
22208
 
fi
22209
 
 
22210
 
 
22211
 
 
22212
 
 
22213
 
echo "$as_me:$LINENO: checking for libpng" >&5
22214
 
echo $ECHO_N "checking for libpng... $ECHO_C" >&6
22215
 
if test "${ac_cv_lib_png+set}" = set; then
22216
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22217
 
else
22218
 
 
22219
 
kde_save_LIBS="$LIBS"
22220
 
if test "x$kde_use_qt_emb" != "xyes"; then
22221
 
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
22222
 
else
22223
 
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
22224
 
fi
22225
 
kde_save_CFLAGS="$CFLAGS"
22226
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
22227
 
ac_ext=c
22228
 
ac_cpp='$CPP $CPPFLAGS'
22229
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22230
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22231
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22232
 
 
22233
 
cat >conftest.$ac_ext <<_ACEOF
22234
 
#line $LINENO "configure"
22235
 
/* confdefs.h.  */
22236
 
_ACEOF
22237
 
cat confdefs.h >>conftest.$ac_ext
22238
 
cat >>conftest.$ac_ext <<_ACEOF
22239
 
/* end confdefs.h.  */
22240
 
 
22241
 
    #include<png.h>
22242
 
 
22243
 
int
22244
 
main ()
22245
 
{
22246
 
 
22247
 
    png_structp png_ptr = png_create_read_struct(  /* image ptr */
22248
 
                PNG_LIBPNG_VER_STRING, 0, 0, 0 );
22249
 
    return( png_ptr != 0 );
22250
 
 
22251
 
  ;
22252
 
  return 0;
22253
 
}
22254
 
_ACEOF
22255
 
rm -f conftest.$ac_objext conftest$ac_exeext
22256
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22257
 
  (eval $ac_link) 2>&5
22258
 
  ac_status=$?
22259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260
 
  (exit $ac_status); } &&
22261
 
         { ac_try='test -s conftest$ac_exeext'
22262
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263
 
  (eval $ac_try) 2>&5
22264
 
  ac_status=$?
22265
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266
 
  (exit $ac_status); }; }; then
22267
 
  eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
22268
 
else
22269
 
  echo "$as_me: failed program was:" >&5
22270
 
sed 's/^/| /' conftest.$ac_ext >&5
22271
 
 
22272
 
eval "ac_cv_lib_png=no"
22273
 
 
22274
 
fi
22275
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22276
 
LIBS="$kde_save_LIBS"
22277
 
CFLAGS="$kde_save_CFLAGS"
22278
 
 
22279
 
fi
22280
 
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
22281
 
 
22282
 
cat >>confdefs.h <<_ACEOF
22283
 
#define HAVE_LIBPNG 1
22284
 
_ACEOF
22285
 
 
22286
 
  LIBPNG="$ac_cv_lib_png"
22287
 
 
22288
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
22289
 
echo "${ECHO_T}$ac_cv_lib_png" >&6
22290
 
else
22291
 
  echo "$as_me:$LINENO: result: no" >&5
22292
 
echo "${ECHO_T}no" >&6
22293
 
  LIBPNG=""
22294
 
 
22295
 
fi
22296
 
 
22297
 
 
22298
 
 
22299
 
echo "$as_me:$LINENO: checking for libjpeg6b" >&5
22300
 
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6
22301
 
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
22302
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22303
 
else
22304
 
 
22305
 
ac_ext=c
22306
 
ac_cpp='$CPP $CPPFLAGS'
22307
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22308
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22309
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22310
 
 
22311
 
ac_save_LIBS="$LIBS"
22312
 
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
22313
 
ac_save_CFLAGS="$CFLAGS"
22314
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
22315
 
cat >conftest.$ac_ext <<_ACEOF
22316
 
#line $LINENO "configure"
22317
 
/* confdefs.h.  */
22318
 
_ACEOF
22319
 
cat confdefs.h >>conftest.$ac_ext
22320
 
cat >>conftest.$ac_ext <<_ACEOF
22321
 
/* end confdefs.h.  */
22322
 
/* Override any gcc2 internal prototype to avoid an error.  */
22323
 
struct jpeg_decompress_struct;
22324
 
typedef struct jpeg_decompress_struct * j_decompress_ptr;
22325
 
typedef int size_t;
22326
 
#ifdef __cplusplus
22327
 
extern "C" {
22328
 
#endif
22329
 
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
22330
 
                                    int version, size_t structsize);
22331
 
#ifdef __cplusplus
22332
 
}
22333
 
#endif
22334
 
/* We use char because int might match the return type of a gcc2
22335
 
    builtin and then its argument prototype would still apply.  */
22336
 
 
22337
 
int
22338
 
main ()
22339
 
{
22340
 
jpeg_CreateDecompress(0L, 0, 0);
22341
 
  ;
22342
 
  return 0;
22343
 
}
22344
 
_ACEOF
22345
 
rm -f conftest.$ac_objext conftest$ac_exeext
22346
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22347
 
  (eval $ac_link) 2>&5
22348
 
  ac_status=$?
22349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350
 
  (exit $ac_status); } &&
22351
 
         { ac_try='test -s conftest$ac_exeext'
22352
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353
 
  (eval $ac_try) 2>&5
22354
 
  ac_status=$?
22355
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356
 
  (exit $ac_status); }; }; then
22357
 
  eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
22358
 
else
22359
 
  echo "$as_me: failed program was:" >&5
22360
 
sed 's/^/| /' conftest.$ac_ext >&5
22361
 
 
22362
 
eval "ac_cv_lib_jpeg_6b=no"
22363
 
fi
22364
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22365
 
LIBS="$ac_save_LIBS"
22366
 
CFLAGS="$ac_save_CFLAGS"
22367
 
 
22368
 
fi
22369
 
 
22370
 
 
22371
 
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
22372
 
  LIBJPEG="$ac_cv_lib_jpeg_6b"
22373
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
22374
 
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6
22375
 
else
22376
 
  echo "$as_me:$LINENO: result: no" >&5
22377
 
echo "${ECHO_T}no" >&6
22378
 
 
22379
 
echo "$as_me:$LINENO: checking for libjpeg" >&5
22380
 
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6
22381
 
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
22382
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22383
 
else
22384
 
 
22385
 
ac_ext=c
22386
 
ac_cpp='$CPP $CPPFLAGS'
22387
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22388
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22389
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22390
 
 
22391
 
ac_save_LIBS="$LIBS"
22392
 
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
22393
 
ac_save_CFLAGS="$CFLAGS"
22394
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
22395
 
cat >conftest.$ac_ext <<_ACEOF
22396
 
#line $LINENO "configure"
22397
 
/* confdefs.h.  */
22398
 
_ACEOF
22399
 
cat confdefs.h >>conftest.$ac_ext
22400
 
cat >>conftest.$ac_ext <<_ACEOF
22401
 
/* end confdefs.h.  */
22402
 
/* Override any gcc2 internal prototype to avoid an error.  */
22403
 
struct jpeg_decompress_struct;
22404
 
typedef struct jpeg_decompress_struct * j_decompress_ptr;
22405
 
typedef int size_t;
22406
 
#ifdef __cplusplus
22407
 
extern "C" {
22408
 
#endif
22409
 
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
22410
 
                                    int version, size_t structsize);
22411
 
#ifdef __cplusplus
22412
 
}
22413
 
#endif
22414
 
/* We use char because int might match the return type of a gcc2
22415
 
    builtin and then its argument prototype would still apply.  */
22416
 
 
22417
 
int
22418
 
main ()
22419
 
{
22420
 
jpeg_CreateDecompress(0L, 0, 0);
22421
 
  ;
22422
 
  return 0;
22423
 
}
22424
 
_ACEOF
22425
 
rm -f conftest.$ac_objext conftest$ac_exeext
22426
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22427
 
  (eval $ac_link) 2>&5
22428
 
  ac_status=$?
22429
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430
 
  (exit $ac_status); } &&
22431
 
         { ac_try='test -s conftest$ac_exeext'
22432
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22433
 
  (eval $ac_try) 2>&5
22434
 
  ac_status=$?
22435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436
 
  (exit $ac_status); }; }; then
22437
 
  eval "ac_cv_lib_jpeg_normal=-ljpeg"
22438
 
else
22439
 
  echo "$as_me: failed program was:" >&5
22440
 
sed 's/^/| /' conftest.$ac_ext >&5
22441
 
 
22442
 
eval "ac_cv_lib_jpeg_normal=no"
22443
 
fi
22444
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22445
 
LIBS="$ac_save_LIBS"
22446
 
CFLAGS="$ac_save_CFLAGS"
22447
 
 
22448
 
fi
22449
 
 
22450
 
 
22451
 
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
22452
 
  LIBJPEG="$ac_cv_lib_jpeg_normal"
22453
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
22454
 
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6
22455
 
else
22456
 
  echo "$as_me:$LINENO: result: no" >&5
22457
 
echo "${ECHO_T}no" >&6
22458
 
 
22459
 
       LIBJPEG=
22460
 
 
22461
 
 
22462
 
fi
22463
 
 
22464
 
 
22465
 
 
22466
 
fi
22467
 
 
22468
 
 
22469
 
 
22470
 
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
22471
 
 
22472
 
jpeg_incdir=NO
22473
 
for i in $jpeg_incdirs;
22474
 
do
22475
 
  for j in jpeglib.h;
22476
 
  do
22477
 
    echo "configure: 22477: $i/$j" >&5
22478
 
    if test -r "$i/$j"; then
22479
 
      echo "taking that" >&5
22480
 
      jpeg_incdir=$i
22481
 
      break 2
22482
 
    fi
22483
 
  done
22484
 
done
22485
 
 
22486
 
test "x$jpeg_incdir" = xNO && jpeg_incdir=
22487
 
 
22488
 
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
22489
 
 
22490
 
cat >>confdefs.h <<_ACEOF
22491
 
#define HAVE_LIBJPEG 1
22492
 
_ACEOF
22493
 
 
22494
 
else
22495
 
  if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
22496
 
    { echo "$as_me:$LINENO: WARNING:
22497
 
There is an installation error in jpeg support. You seem to have only one
22498
 
of either the headers _or_ the libraries installed. You may need to either
22499
 
provide correct --with-extra-... options, or the development package of
22500
 
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
22501
 
Disabling JPEG support.
22502
 
" >&5
22503
 
echo "$as_me: WARNING:
22504
 
There is an installation error in jpeg support. You seem to have only one
22505
 
of either the headers _or_ the libraries installed. You may need to either
22506
 
provide correct --with-extra-... options, or the development package of
22507
 
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
22508
 
Disabling JPEG support.
22509
 
" >&2;}
22510
 
  else
22511
 
    { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
22512
 
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
22513
 
  fi
22514
 
  jpeg_incdir=
22515
 
  LIBJPEG=
22516
 
fi
22517
 
 
22518
 
 
22519
 
 
22520
 
 
22521
 
 
22522
 
 
22523
 
 
22524
 
 
22525
 
 
22526
 
# Check whether --enable-mt or --disable-mt was given.
22527
 
if test "${enable_mt+set}" = set; then
22528
 
  enableval="$enable_mt"
22529
 
  kde_use_qt_mt=$enableval
22530
 
else
22531
 
 
22532
 
    if test $kde_qtver = 3; then
22533
 
      kde_use_qt_mt=yes
22534
 
    else
22535
 
      kde_use_qt_mt=no
22536
 
    fi
22537
 
 
22538
 
 
22539
 
fi;
22540
 
 
22541
 
USING_QT_MT=""
22542
 
 
22543
 
 
22544
 
KDE_MT_LDFLAGS=
22545
 
KDE_MT_LIBS=
22546
 
if test "x$kde_use_qt_mt" = "xyes"; then
22547
 
 
22548
 
 
22549
 
 
22550
 
    if test -z "$LIBPTHREAD"; then
22551
 
    if test -z "$USE_THREADS"; then
22552
 
      kde_check_threading_default=no
22553
 
    else
22554
 
      kde_check_threading_default=yes
22555
 
    fi
22556
 
  else
22557
 
    kde_check_threading_default=yes
22558
 
  fi
22559
 
  # Check whether --enable-threading or --disable-threading was given.
22560
 
if test "${enable_threading+set}" = set; then
22561
 
  enableval="$enable_threading"
22562
 
  kde_use_threading=$enableval
22563
 
else
22564
 
  kde_use_threading=$kde_check_threading_default
22565
 
fi;
22566
 
  if test "x$kde_use_threading" = "xyes"; then
22567
 
 
22568
 
cat >>confdefs.h <<\_ACEOF
22569
 
#define HAVE_LIBPTHREAD 1
22570
 
_ACEOF
22571
 
 
22572
 
  fi
22573
 
 
22574
 
  if test "x$kde_use_threading" = "xyes"; then
22575
 
    CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
22576
 
    KDE_MT_LDFLAGS="$USE_THREADS"
22577
 
    KDE_MT_LIBS="$LIBPTHREAD"
22578
 
  else
22579
 
    kde_use_qt_mt=no
22580
 
  fi
22581
 
fi
22582
 
 
22583
 
 
22584
 
 
22585
 
kde_qt_was_given=yes
22586
 
 
22587
 
if test -z "$LIBQT_GLOB"; then
22588
 
  if test "x$kde_use_qt_emb" = "xyes"; then
22589
 
    LIBQT_GLOB="libqte.*"
22590
 
  else
22591
 
    LIBQT_GLOB="libqt.*"
22592
 
  fi
22593
 
fi
22594
 
 
22595
 
if test -z "$LIBQT"; then
22596
 
  if test "x$kde_use_qt_emb" = "xyes"; then
22597
 
    qtlib="qte"
22598
 
  else
22599
 
    qtlib="qt"
22600
 
  fi
22601
 
 
22602
 
  kde_int_qt="-l$qtlib"
22603
 
else
22604
 
  kde_int_qt="$LIBQT"
22605
 
  kde_lib_qt_set=yes
22606
 
fi
22607
 
 
22608
 
if test -z "$LIBQPE"; then
22609
 
  if test "x$kde_use_qt_emb" = "xyes"; then
22610
 
    if test "x$kde_use_qt_emb_palm" = "xyes"; then
22611
 
      LIB_QPE="-lqpe"
22612
 
    else
22613
 
      LIB_QPE=""
22614
 
    fi
22615
 
  else
22616
 
    LIB_QPE=""
22617
 
  fi
22618
 
fi
22619
 
 
22620
 
 
22621
 
if test "x$kde_use_qt_mt" = "xyes"; then
22622
 
  if test -z "$LIBQT"; then
22623
 
    LIBQT="-l$qtlib-mt"
22624
 
    kde_int_qt="-l$qtlib-mt"
22625
 
  else
22626
 
    LIBQT="$qtlib-mt"
22627
 
    kde_int_qt="$qtlib-mt"
22628
 
  fi
22629
 
  LIBQT_GLOB="lib$qtlib-mt.*"
22630
 
  USING_QT_MT="using -mt"
22631
 
else
22632
 
  LIBQT="-l$qtlib"
22633
 
fi
22634
 
 
22635
 
if test $kde_qtver != 1; then
22636
 
 
22637
 
 
22638
 
 
22639
 
  LIBQT="$LIBQT $LIBPNG $LIBJPEG"
22640
 
fi
22641
 
 
22642
 
if test $kde_qtver = 3; then
22643
 
 
22644
 
  LIBQT="$LIBQT $LIBDL"
22645
 
fi
22646
 
 
22647
 
echo "$as_me:$LINENO: checking for Qt" >&5
22648
 
echo $ECHO_N "checking for Qt... $ECHO_C" >&6
22649
 
 
22650
 
if test "x$kde_use_qt_emb" != "xyes"; then
22651
 
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
22652
 
fi
22653
 
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
22654
 
qt_libraries=""
22655
 
qt_includes=""
22656
 
 
22657
 
# Check whether --with-qt-dir or --without-qt-dir was given.
22658
 
if test "${with_qt_dir+set}" = set; then
22659
 
  withval="$with_qt_dir"
22660
 
    ac_qt_includes="$withval"/include
22661
 
       ac_qt_libraries="$withval"/lib
22662
 
       ac_qt_bindir="$withval"/bin
22663
 
 
22664
 
fi;
22665
 
 
22666
 
 
22667
 
# Check whether --with-qt-includes or --without-qt-includes was given.
22668
 
if test "${with_qt_includes+set}" = set; then
22669
 
  withval="$with_qt_includes"
22670
 
 
22671
 
       ac_qt_includes="$withval"
22672
 
 
22673
 
fi;
22674
 
 
22675
 
kde_qt_libs_given=no
22676
 
 
22677
 
 
22678
 
# Check whether --with-qt-libraries or --without-qt-libraries was given.
22679
 
if test "${with_qt_libraries+set}" = set; then
22680
 
  withval="$with_qt_libraries"
22681
 
    ac_qt_libraries="$withval"
22682
 
       kde_qt_libs_given=yes
22683
 
 
22684
 
fi;
22685
 
 
22686
 
if test "${ac_cv_have_qt+set}" = set; then
22687
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22688
 
else
22689
 
  #try to guess Qt locations
22690
 
 
22691
 
qt_incdirs=""
22692
 
for dir in $kde_qt_dirs; do
22693
 
   qt_incdirs="$qt_incdirs $dir/include $dir"
22694
 
done
22695
 
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"
22696
 
if test ! "$ac_qt_includes" = "NO"; then
22697
 
   qt_incdirs="$ac_qt_includes $qt_incdirs"
22698
 
fi
22699
 
 
22700
 
if test "$kde_qtver" != "1"; then
22701
 
  kde_qt_header=qstyle.h
22702
 
else
22703
 
  kde_qt_header=qglobal.h
22704
 
fi
22705
 
 
22706
 
 
22707
 
qt_incdir=NO
22708
 
for i in $qt_incdirs;
22709
 
do
22710
 
  for j in $kde_qt_header;
22711
 
  do
22712
 
    echo "configure: 22712: $i/$j" >&5
22713
 
    if test -r "$i/$j"; then
22714
 
      echo "taking that" >&5
22715
 
      qt_incdir=$i
22716
 
      break 2
22717
 
    fi
22718
 
  done
22719
 
done
22720
 
 
22721
 
ac_qt_includes="$qt_incdir"
22722
 
 
22723
 
qt_libdirs=""
22724
 
for dir in $kde_qt_dirs; do
22725
 
   qt_libdirs="$qt_libdirs $dir/lib $dir"
22726
 
done
22727
 
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
22728
 
if test ! "$ac_qt_libraries" = "NO"; then
22729
 
  qt_libdir=$ac_qt_libraries
22730
 
else
22731
 
  qt_libdirs="$ac_qt_libraries $qt_libdirs"
22732
 
  # if the Qt was given, the chance is too big that libqt.* doesn't exist
22733
 
  qt_libdir=NONE
22734
 
  for dir in $qt_libdirs; do
22735
 
    try="ls -1 $dir/${LIBQT_GLOB}"
22736
 
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
22737
 
  done
22738
 
fi
22739
 
 
22740
 
ac_qt_libraries="$qt_libdir"
22741
 
 
22742
 
 
22743
 
 
22744
 
 ac_ext=cc
22745
 
ac_cpp='$CXXCPP $CPPFLAGS'
22746
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22747
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22748
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22749
 
 
22750
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22751
 
 
22752
 
 
22753
 
 
22754
 
ac_cxxflags_safe="$CXXFLAGS"
22755
 
ac_ldflags_safe="$LDFLAGS"
22756
 
ac_libs_safe="$LIBS"
22757
 
 
22758
 
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
22759
 
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
22760
 
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
22761
 
 
22762
 
 
22763
 
 
22764
 
cat > conftest.$ac_ext <<EOF
22765
 
#include "confdefs.h"
22766
 
#include <qglobal.h>
22767
 
#include <qapplication.h>
22768
 
EOF
22769
 
if test "$kde_qtver" = "2"; then
22770
 
cat >> conftest.$ac_ext <<EOF
22771
 
#include <qevent.h>
22772
 
#include <qstring.h>
22773
 
#include <qstyle.h>
22774
 
EOF
22775
 
 
22776
 
if test $kde_qtsubver -gt 0; then
22777
 
cat >> conftest.$ac_ext <<EOF
22778
 
#include <qiconview.h>
22779
 
EOF
22780
 
fi
22781
 
fi
22782
 
 
22783
 
if test "$kde_qtver" = "3"; then
22784
 
cat >> conftest.$ac_ext <<EOF
22785
 
#include <qcursor.h>
22786
 
#include <qstylefactory.h>
22787
 
#include <private/qucomextra_p.h>
22788
 
EOF
22789
 
fi
22790
 
 
22791
 
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
22792
 
cat >> conftest.$ac_ext <<EOF
22793
 
#error 1
22794
 
#endif
22795
 
 
22796
 
int main() {
22797
 
EOF
22798
 
if test "$kde_qtver" = "2"; then
22799
 
cat >> conftest.$ac_ext <<EOF
22800
 
    QStringList *t = new QStringList();
22801
 
    Q_UNUSED(t);
22802
 
EOF
22803
 
if test $kde_qtsubver -gt 0; then
22804
 
cat >> conftest.$ac_ext <<EOF
22805
 
    QIconView iv(0);
22806
 
    iv.setWordWrapIconText(false);
22807
 
    QString s;
22808
 
    s.setLatin1("Elvis is alive", 14);
22809
 
EOF
22810
 
fi
22811
 
fi
22812
 
if test "$kde_qtver" = "3"; then
22813
 
cat >> conftest.$ac_ext <<EOF
22814
 
    (void)QStyleFactory::create(QString::null);
22815
 
    QCursor c(Qt::WhatsThisCursor);
22816
 
EOF
22817
 
fi
22818
 
cat >> conftest.$ac_ext <<EOF
22819
 
    return 0;
22820
 
}
22821
 
EOF
22822
 
 
22823
 
 
22824
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22825
 
  (eval $ac_link) 2>&5
22826
 
  ac_status=$?
22827
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828
 
  (exit $ac_status); } && test -s conftest; then
22829
 
  rm -f conftest*
22830
 
else
22831
 
  echo "configure: failed program was:" >&5
22832
 
  cat conftest.$ac_ext >&5
22833
 
  ac_qt_libraries="NO"
22834
 
fi
22835
 
rm -f conftest*
22836
 
CXXFLAGS="$ac_cxxflags_safe"
22837
 
LDFLAGS="$ac_ldflags_safe"
22838
 
LIBS="$ac_libs_safe"
22839
 
 
22840
 
ac_ext=c
22841
 
ac_cpp='$CPP $CPPFLAGS'
22842
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22843
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22844
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22845
 
 
22846
 
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
22847
 
  ac_cv_have_qt="have_qt=no"
22848
 
  ac_qt_notfound=""
22849
 
  missing_qt_mt=""
22850
 
  if test "$ac_qt_includes" = NO; then
22851
 
    if test "$ac_qt_libraries" = NO; then
22852
 
      ac_qt_notfound="(headers and libraries)";
22853
 
    else
22854
 
      ac_qt_notfound="(headers)";
22855
 
    fi
22856
 
  else
22857
 
    if test "x$kde_use_qt_mt" = "xyes"; then
22858
 
       missing_qt_mt="
22859
 
Make sure that you have compiled Qt with thread support!"
22860
 
       ac_qt_notfound="(library $qtlib-mt)";
22861
 
    else
22862
 
       ac_qt_notfound="(library $qtlib)";
22863
 
    fi
22864
 
  fi
22865
 
 
22866
 
  { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
22867
 
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
22868
 
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
22869
 
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
22870
 
   { (exit 1); exit 1; }; }
22871
 
else
22872
 
  have_qt="yes"
22873
 
fi
22874
 
 
22875
 
fi
22876
 
 
22877
 
 
22878
 
eval "$ac_cv_have_qt"
22879
 
 
22880
 
if test "$have_qt" != yes; then
22881
 
  echo "$as_me:$LINENO: result: $have_qt" >&5
22882
 
echo "${ECHO_T}$have_qt" >&6;
22883
 
else
22884
 
  ac_cv_have_qt="have_qt=yes \
22885
 
    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
22886
 
  echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
22887
 
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6
22888
 
 
22889
 
  qt_libraries="$ac_qt_libraries"
22890
 
  qt_includes="$ac_qt_includes"
22891
 
fi
22892
 
 
22893
 
if test ! "$kde_qt_libs_given" = "yes"; then
22894
 
 
22895
 
 
22896
 
echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
22897
 
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6
22898
 
if test "${kde_cv_qt_direct+set}" = set; then
22899
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22900
 
else
22901
 
 
22902
 
 
22903
 
 
22904
 
 ac_ext=cc
22905
 
ac_cpp='$CXXCPP $CPPFLAGS'
22906
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22907
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22908
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22909
 
 
22910
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22911
 
 
22912
 
 
22913
 
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
22914
 
ac_LIBRARY_PATH="$LIBRARY_PATH"
22915
 
ac_cxxflags_safe="$CXXFLAGS"
22916
 
ac_ldflags_safe="$LDFLAGS"
22917
 
ac_libs_safe="$LIBS"
22918
 
 
22919
 
CXXFLAGS="$CXXFLAGS -I$qt_includes"
22920
 
LDFLAGS="$LDFLAGS $X_LDFLAGS"
22921
 
if test "x$kde_use_qt_emb" != "xyes"; then
22922
 
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
22923
 
else
22924
 
LIBS="$LIBQT $LIBSOCKET"
22925
 
fi
22926
 
LD_LIBRARY_PATH=
22927
 
export LD_LIBRARY_PATH
22928
 
LIBRARY_PATH=
22929
 
export LIBRARY_PATH
22930
 
 
22931
 
 
22932
 
 
22933
 
cat > conftest.$ac_ext <<EOF
22934
 
#include "confdefs.h"
22935
 
#include <qglobal.h>
22936
 
#include <qapplication.h>
22937
 
EOF
22938
 
if test "$kde_qtver" = "2"; then
22939
 
cat >> conftest.$ac_ext <<EOF
22940
 
#include <qevent.h>
22941
 
#include <qstring.h>
22942
 
#include <qstyle.h>
22943
 
EOF
22944
 
 
22945
 
if test $kde_qtsubver -gt 0; then
22946
 
cat >> conftest.$ac_ext <<EOF
22947
 
#include <qiconview.h>
22948
 
EOF
22949
 
fi
22950
 
fi
22951
 
 
22952
 
if test "$kde_qtver" = "3"; then
22953
 
cat >> conftest.$ac_ext <<EOF
22954
 
#include <qcursor.h>
22955
 
#include <qstylefactory.h>
22956
 
#include <private/qucomextra_p.h>
22957
 
EOF
22958
 
fi
22959
 
 
22960
 
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
22961
 
cat >> conftest.$ac_ext <<EOF
22962
 
#error 1
22963
 
#endif
22964
 
 
22965
 
int main() {
22966
 
EOF
22967
 
if test "$kde_qtver" = "2"; then
22968
 
cat >> conftest.$ac_ext <<EOF
22969
 
    QStringList *t = new QStringList();
22970
 
    Q_UNUSED(t);
22971
 
EOF
22972
 
if test $kde_qtsubver -gt 0; then
22973
 
cat >> conftest.$ac_ext <<EOF
22974
 
    QIconView iv(0);
22975
 
    iv.setWordWrapIconText(false);
22976
 
    QString s;
22977
 
    s.setLatin1("Elvis is alive", 14);
22978
 
EOF
22979
 
fi
22980
 
fi
22981
 
if test "$kde_qtver" = "3"; then
22982
 
cat >> conftest.$ac_ext <<EOF
22983
 
    (void)QStyleFactory::create(QString::null);
22984
 
    QCursor c(Qt::WhatsThisCursor);
22985
 
EOF
22986
 
fi
22987
 
cat >> conftest.$ac_ext <<EOF
22988
 
    return 0;
22989
 
}
22990
 
EOF
22991
 
 
22992
 
 
22993
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22994
 
  (eval $ac_link) 2>&5
22995
 
  ac_status=$?
22996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997
 
  (exit $ac_status); } && test -s conftest; then
22998
 
  kde_cv_qt_direct="yes"
22999
 
else
23000
 
  kde_cv_qt_direct="no"
23001
 
  echo "configure: failed program was:" >&5
23002
 
  cat conftest.$ac_ext >&5
23003
 
fi
23004
 
 
23005
 
rm -f conftest*
23006
 
CXXFLAGS="$ac_cxxflags_safe"
23007
 
LDFLAGS="$ac_ldflags_safe"
23008
 
LIBS="$ac_libs_safe"
23009
 
 
23010
 
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
23011
 
export LD_LIBRARY_PATH
23012
 
LIBRARY_PATH="$ac_LIBRARY_PATH"
23013
 
export LIBRARY_PATH
23014
 
ac_ext=c
23015
 
ac_cpp='$CPP $CPPFLAGS'
23016
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23017
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23018
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23019
 
 
23020
 
 
23021
 
fi
23022
 
 
23023
 
 
23024
 
if test "$kde_cv_qt_direct" = "yes"; then
23025
 
  echo "$as_me:$LINENO: result: yes" >&5
23026
 
echo "${ECHO_T}yes" >&6
23027
 
  qt_libraries=
23028
 
else
23029
 
  echo "$as_me:$LINENO: result: no" >&5
23030
 
echo "${ECHO_T}no" >&6
23031
 
 
23032
 
fi
23033
 
 
23034
 
fi
23035
 
 
23036
 
 
23037
 
 
23038
 
 
23039
 
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
23040
 
 QT_INCLUDES=""
23041
 
else
23042
 
 QT_INCLUDES="-I$qt_includes"
23043
 
 all_includes="$QT_INCLUDES $all_includes"
23044
 
fi
23045
 
 
23046
 
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
23047
 
 QT_LDFLAGS=""
23048
 
else
23049
 
 QT_LDFLAGS="-L$qt_libraries"
23050
 
 all_libraries="$all_libraries $QT_LDFLAGS"
23051
 
fi
23052
 
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
23053
 
 
23054
 
 
23055
 
 
23056
 
 
23057
 
   qt_bindirs=""
23058
 
   for dir in $kde_qt_dirs; do
23059
 
      qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
23060
 
   done
23061
 
   qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
23062
 
   if test ! "$ac_qt_bindir" = "NO"; then
23063
 
      qt_bindirs="$ac_qt_bindir $qt_bindirs"
23064
 
   fi
23065
 
 
23066
 
 
23067
 
   echo "$as_me:$LINENO: checking for moc" >&5
23068
 
echo $ECHO_N "checking for moc... $ECHO_C" >&6
23069
 
   if test -n "$MOC"; then
23070
 
        kde_cv_path="$MOC";
23071
 
   else
23072
 
        kde_cache=`echo moc | sed 'y%./+-%__p_%'`
23073
 
 
23074
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
23075
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23076
 
else
23077
 
 
23078
 
        kde_cv_path="NONE"
23079
 
        dirs="$qt_bindirs"
23080
 
        kde_save_IFS=$IFS
23081
 
        IFS=':'
23082
 
        for dir in $PATH; do
23083
 
          dirs="$dirs $dir"
23084
 
        done
23085
 
        IFS=$kde_save_IFS
23086
 
 
23087
 
        for dir in $dirs; do
23088
 
          if test -x "$dir/moc"; then
23089
 
            if test -n ""
23090
 
            then
23091
 
              evalstr="$dir/moc  2>&1 "
23092
 
              if eval $evalstr; then
23093
 
                kde_cv_path="$dir/moc"
23094
 
                break
23095
 
              fi
23096
 
            else
23097
 
                kde_cv_path="$dir/moc"
23098
 
                break
23099
 
            fi
23100
 
          fi
23101
 
        done
23102
 
 
23103
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
23104
 
 
23105
 
 
23106
 
fi
23107
 
 
23108
 
 
23109
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
23110
 
 
23111
 
   fi
23112
 
 
23113
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
23114
 
      echo "$as_me:$LINENO: result: not found" >&5
23115
 
echo "${ECHO_T}not found" >&6
23116
 
 
23117
 
    { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
23118
 
Please check whether you installed Qt correctly.
23119
 
You need to have a running moc binary.
23120
 
configure tried to run $ac_cv_path_moc and the test didn't
23121
 
succeed. If configure shouldn't have tried this one, set
23122
 
the environment variable MOC to the right one before running
23123
 
configure.
23124
 
" >&5
23125
 
echo "$as_me: error: No Qt meta object compiler (moc) found!
23126
 
Please check whether you installed Qt correctly.
23127
 
You need to have a running moc binary.
23128
 
configure tried to run $ac_cv_path_moc and the test didn't
23129
 
succeed. If configure shouldn't have tried this one, set
23130
 
the environment variable MOC to the right one before running
23131
 
configure.
23132
 
" >&2;}
23133
 
   { (exit 1); exit 1; }; }
23134
 
 
23135
 
   else
23136
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
23137
 
echo "${ECHO_T}$kde_cv_path" >&6
23138
 
      MOC=$kde_cv_path
23139
 
 
23140
 
   fi
23141
 
 
23142
 
   if test -z "$UIC_NOT_NEEDED"; then
23143
 
 
23144
 
   echo "$as_me:$LINENO: checking for uic" >&5
23145
 
echo $ECHO_N "checking for uic... $ECHO_C" >&6
23146
 
   if test -n "$UIC"; then
23147
 
        kde_cv_path="$UIC";
23148
 
   else
23149
 
        kde_cache=`echo uic | sed 'y%./+-%__p_%'`
23150
 
 
23151
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
23152
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23153
 
else
23154
 
 
23155
 
        kde_cv_path="NONE"
23156
 
        dirs="$qt_bindirs"
23157
 
        kde_save_IFS=$IFS
23158
 
        IFS=':'
23159
 
        for dir in $PATH; do
23160
 
          dirs="$dirs $dir"
23161
 
        done
23162
 
        IFS=$kde_save_IFS
23163
 
 
23164
 
        for dir in $dirs; do
23165
 
          if test -x "$dir/uic"; then
23166
 
            if test -n ""
23167
 
            then
23168
 
              evalstr="$dir/uic  2>&1 "
23169
 
              if eval $evalstr; then
23170
 
                kde_cv_path="$dir/uic"
23171
 
                break
23172
 
              fi
23173
 
            else
23174
 
                kde_cv_path="$dir/uic"
23175
 
                break
23176
 
            fi
23177
 
          fi
23178
 
        done
23179
 
 
23180
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
23181
 
 
23182
 
 
23183
 
fi
23184
 
 
23185
 
 
23186
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
23187
 
 
23188
 
   fi
23189
 
 
23190
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
23191
 
      echo "$as_me:$LINENO: result: not found" >&5
23192
 
echo "${ECHO_T}not found" >&6
23193
 
      UIC=""
23194
 
   else
23195
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
23196
 
echo "${ECHO_T}$kde_cv_path" >&6
23197
 
      UIC=$kde_cv_path
23198
 
 
23199
 
   fi
23200
 
 
23201
 
     if test -z "$UIC" ; then
23202
 
 
23203
 
    { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
23204
 
Please check whether you installed Qt correctly.
23205
 
You need to have a running uic binary.
23206
 
configure tried to run $ac_cv_path_uic and the test didn't
23207
 
succeed. If configure shouldn't have tried this one, set
23208
 
the environment variable UIC to the right one before running
23209
 
configure.
23210
 
" >&5
23211
 
echo "$as_me: WARNING: No Qt ui compiler (uic) found!
23212
 
Please check whether you installed Qt correctly.
23213
 
You need to have a running uic binary.
23214
 
configure tried to run $ac_cv_path_uic and the test didn't
23215
 
succeed. If configure shouldn't have tried this one, set
23216
 
the environment variable UIC to the right one before running
23217
 
configure.
23218
 
" >&2;}
23219
 
 
23220
 
       exit 1
23221
 
     elif test $kde_qtver = 3; then
23222
 
 
23223
 
    echo "$as_me:$LINENO: checking whether uic supports -L " >&5
23224
 
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6
23225
 
    kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
23226
 
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
23227
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23228
 
else
23229
 
 
23230
 
        cat >conftest.ui <<EOT
23231
 
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
23232
 
EOT
23233
 
        ac_uic_testrun="$UIC -L /nonexistant conftest.ui >/dev/null"
23234
 
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
23235
 
  (eval $ac_uic_testrun) 2>&5
23236
 
  ac_status=$?
23237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238
 
  (exit $ac_status); }; then
23239
 
            eval "kde_cv_prog_uic_$kde_cache=yes"
23240
 
        else
23241
 
            eval "kde_cv_prog_uic_$kde_cache=no"
23242
 
        fi
23243
 
        rm -f conftest*
23244
 
 
23245
 
fi
23246
 
 
23247
 
 
23248
 
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
23249
 
        echo "$as_me:$LINENO: result: yes" >&5
23250
 
echo "${ECHO_T}yes" >&6
23251
 
        :
23252
 
        ac_uic_supports_libpath=yes
23253
 
    else
23254
 
        echo "$as_me:$LINENO: result: no" >&5
23255
 
echo "${ECHO_T}no" >&6
23256
 
        :
23257
 
        ac_uic_supports_libpath=no
23258
 
    fi
23259
 
 
23260
 
 
23261
 
    echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
23262
 
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6
23263
 
    kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
23264
 
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
23265
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23266
 
else
23267
 
 
23268
 
        cat >conftest.ui <<EOT
23269
 
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
23270
 
EOT
23271
 
        ac_uic_testrun="$UIC -nounload  conftest.ui >/dev/null"
23272
 
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
23273
 
  (eval $ac_uic_testrun) 2>&5
23274
 
  ac_status=$?
23275
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276
 
  (exit $ac_status); }; then
23277
 
            eval "kde_cv_prog_uic_$kde_cache=yes"
23278
 
        else
23279
 
            eval "kde_cv_prog_uic_$kde_cache=no"
23280
 
        fi
23281
 
        rm -f conftest*
23282
 
 
23283
 
fi
23284
 
 
23285
 
 
23286
 
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
23287
 
        echo "$as_me:$LINENO: result: yes" >&5
23288
 
echo "${ECHO_T}yes" >&6
23289
 
        :
23290
 
        ac_uic_supports_nounload=yes
23291
 
    else
23292
 
        echo "$as_me:$LINENO: result: no" >&5
23293
 
echo "${ECHO_T}no" >&6
23294
 
        :
23295
 
        ac_uic_supports_nounload=no
23296
 
    fi
23297
 
 
23298
 
 
23299
 
       if test x$ac_uic_supports_libpath = xyes; then
23300
 
           UIC="$UIC -L \$(kde_widgetdir)"
23301
 
       fi
23302
 
       if test x$ac_uic_supports_nounload = xyes; then
23303
 
           UIC="$UIC -nounload"
23304
 
       fi
23305
 
     fi
23306
 
   else
23307
 
     UIC="echo uic not available: "
23308
 
   fi
23309
 
 
23310
 
 
23311
 
 
23312
 
 
23313
 
   UIC_TR="i18n"
23314
 
   if test $kde_qtver = 3; then
23315
 
     UIC_TR="tr2i18n"
23316
 
   fi
23317
 
 
23318
 
 
23319
 
 
23320
 
 
23321
 
 
23322
 
echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
23323
 
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6
23324
 
if test "${kde_cv_qt_jpeg+set}" = set; then
23325
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23326
 
else
23327
 
 
23328
 
 
23329
 
 
23330
 
 ac_ext=cc
23331
 
ac_cpp='$CXXCPP $CPPFLAGS'
23332
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23333
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23334
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23335
 
 
23336
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23337
 
 
23338
 
 
23339
 
ac_save_LIBS="$LIBS"
23340
 
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
23341
 
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
23342
 
ac_save_CXXFLAGS="$CXXFLAGS"
23343
 
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
23344
 
cat >conftest.$ac_ext <<_ACEOF
23345
 
#line $LINENO "configure"
23346
 
/* confdefs.h.  */
23347
 
_ACEOF
23348
 
cat confdefs.h >>conftest.$ac_ext
23349
 
cat >>conftest.$ac_ext <<_ACEOF
23350
 
/* end confdefs.h.  */
23351
 
#include <qapplication.h>
23352
 
int
23353
 
main ()
23354
 
{
23355
 
 
23356
 
            int argc;
23357
 
            char** argv;
23358
 
            QApplication app(argc, argv);
23359
 
  ;
23360
 
  return 0;
23361
 
}
23362
 
_ACEOF
23363
 
rm -f conftest.$ac_objext conftest$ac_exeext
23364
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23365
 
  (eval $ac_link) 2>&5
23366
 
  ac_status=$?
23367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368
 
  (exit $ac_status); } &&
23369
 
         { ac_try='test -s conftest$ac_exeext'
23370
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371
 
  (eval $ac_try) 2>&5
23372
 
  ac_status=$?
23373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374
 
  (exit $ac_status); }; }; then
23375
 
  eval "kde_cv_qt_jpeg=no"
23376
 
else
23377
 
  echo "$as_me: failed program was:" >&5
23378
 
sed 's/^/| /' conftest.$ac_ext >&5
23379
 
 
23380
 
eval "kde_cv_qt_jpeg=yes"
23381
 
fi
23382
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23383
 
LIBS="$ac_save_LIBS"
23384
 
CXXFLAGS="$ac_save_CXXFLAGS"
23385
 
ac_ext=c
23386
 
ac_cpp='$CPP $CPPFLAGS'
23387
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23388
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23389
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23390
 
 
23391
 
 
23392
 
fi
23393
 
 
23394
 
 
23395
 
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
23396
 
  echo "$as_me:$LINENO: result: yes" >&5
23397
 
echo "${ECHO_T}yes" >&6
23398
 
  LIBJPEG_QT='$(LIBJPEG)'
23399
 
else
23400
 
  echo "$as_me:$LINENO: result: no" >&5
23401
 
echo "${ECHO_T}no" >&6
23402
 
  LIBJPEG_QT=
23403
 
fi
23404
 
 
23405
 
 
23406
 
 
23407
 
if test "x$kde_use_qt_emb" != "xyes"; then
23408
 
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
23409
 
else
23410
 
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBPNG)'
23411
 
fi
23412
 
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
23413
 
 
23414
 
 
23415
 
 
23416
 
 
23417
 
 
23418
 
 
23419
 
 
23420
 
 
23421
 
 
23422
 
 
23423
 
 
23424
 
 
23425
 
 
23426
 
 
23427
 
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
23428
 
 
23429
 
if test ! -s $srcdir/subdirs; then
23430
 
    TOPSUBDIRS=""
23431
 
  files=`cd $srcdir && ls -1`
23432
 
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
23433
 
  for i in $dirs; do
23434
 
    echo $i >> $srcdir/subdirs
23435
 
  done
23436
 
fi
23437
 
 
23438
 
if test -s $srcdir/inst-apps; then
23439
 
  ac_topsubdirs="`cat $srcdir/inst-apps`"
23440
 
else
23441
 
  ac_topsubdirs="`cat $srcdir/subdirs`"
23442
 
fi
23443
 
 
23444
 
for i in $ac_topsubdirs; do
23445
 
  echo "$as_me:$LINENO: checking if $i should be compiled" >&5
23446
 
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
23447
 
  if test -d $srcdir/$i; then
23448
 
    install_it="yes"
23449
 
    for j in $DO_NOT_COMPILE; do
23450
 
      if test $i = $j; then
23451
 
        install_it="no"
23452
 
      fi
23453
 
    done
23454
 
  else
23455
 
    install_it="no"
23456
 
  fi
23457
 
  echo "$as_me:$LINENO: result: $install_it" >&5
23458
 
echo "${ECHO_T}$install_it" >&6
23459
 
  vari=`echo $i | sed -e 's,[-+],_,g'`
23460
 
  if test $install_it = "yes"; then
23461
 
    TOPSUBDIRS="$TOPSUBDIRS $i"
23462
 
    eval "$vari""_SUBDIR_included=yes"
23463
 
  else
23464
 
    eval "$vari""_SUBDIR_included=no"
23465
 
  fi
23466
 
done
23467
 
 
23468
 
 
23469
 
 
23470
 
 
23471
 
          ac_config_files="$ac_config_files Makefile"
23472
 
 
23473
 
          ac_config_files="$ac_config_files bookmarkbridge/Makefile"
23474
 
 
23475
 
          ac_config_files="$ac_config_files bookmarkbridge/docs/Makefile"
23476
 
 
23477
 
          ac_config_files="$ac_config_files bookmarkbridge/docs/en/Makefile"
 
4319
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4320
fi
 
4321
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4322
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4323
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4324
  cat >>confdefs.h <<_ACEOF
 
4325
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4326
_ACEOF
 
4327
 
 
4328
fi
 
4329
 
 
4330
done
 
4331
 
 
4332
 
 
4333
 
 
4334
 
 
4335
 
 
4336
for ac_header in stdlib.h string.h unistd.h
 
4337
do
 
4338
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4339
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4340
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4341
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4342
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4344
fi
 
4345
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4346
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4347
else
 
4348
  # Is the header compilable?
 
4349
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4350
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4351
cat >conftest.$ac_ext <<_ACEOF
 
4352
/* confdefs.h.  */
 
4353
_ACEOF
 
4354
cat confdefs.h >>conftest.$ac_ext
 
4355
cat >>conftest.$ac_ext <<_ACEOF
 
4356
/* end confdefs.h.  */
 
4357
$ac_includes_default
 
4358
#include <$ac_header>
 
4359
_ACEOF
 
4360
rm -f conftest.$ac_objext
 
4361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4362
  (eval $ac_compile) 2>conftest.er1
 
4363
  ac_status=$?
 
4364
  grep -v '^ *+' conftest.er1 >conftest.err
 
4365
  rm -f conftest.er1
 
4366
  cat conftest.err >&5
 
4367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4368
  (exit $ac_status); } &&
 
4369
         { ac_try='test -z "$ac_c_werror_flag"
 
4370
                         || test ! -s conftest.err'
 
4371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4372
  (eval $ac_try) 2>&5
 
4373
  ac_status=$?
 
4374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4375
  (exit $ac_status); }; } &&
 
4376
         { ac_try='test -s conftest.$ac_objext'
 
4377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4378
  (eval $ac_try) 2>&5
 
4379
  ac_status=$?
 
4380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4381
  (exit $ac_status); }; }; then
 
4382
  ac_header_compiler=yes
 
4383
else
 
4384
  echo "$as_me: failed program was:" >&5
 
4385
sed 's/^/| /' conftest.$ac_ext >&5
 
4386
 
 
4387
ac_header_compiler=no
 
4388
fi
 
4389
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4390
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4391
echo "${ECHO_T}$ac_header_compiler" >&6
 
4392
 
 
4393
# Is the header present?
 
4394
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4395
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4396
cat >conftest.$ac_ext <<_ACEOF
 
4397
/* confdefs.h.  */
 
4398
_ACEOF
 
4399
cat confdefs.h >>conftest.$ac_ext
 
4400
cat >>conftest.$ac_ext <<_ACEOF
 
4401
/* end confdefs.h.  */
 
4402
#include <$ac_header>
 
4403
_ACEOF
 
4404
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4405
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4406
  ac_status=$?
 
4407
  grep -v '^ *+' conftest.er1 >conftest.err
 
4408
  rm -f conftest.er1
 
4409
  cat conftest.err >&5
 
4410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4411
  (exit $ac_status); } >/dev/null; then
 
4412
  if test -s conftest.err; then
 
4413
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4414
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4415
  else
 
4416
    ac_cpp_err=
 
4417
  fi
 
4418
else
 
4419
  ac_cpp_err=yes
 
4420
fi
 
4421
if test -z "$ac_cpp_err"; then
 
4422
  ac_header_preproc=yes
 
4423
else
 
4424
  echo "$as_me: failed program was:" >&5
 
4425
sed 's/^/| /' conftest.$ac_ext >&5
 
4426
 
 
4427
  ac_header_preproc=no
 
4428
fi
 
4429
rm -f conftest.err conftest.$ac_ext
 
4430
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4431
echo "${ECHO_T}$ac_header_preproc" >&6
 
4432
 
 
4433
# So?  What about this header?
 
4434
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4435
  yes:no: )
 
4436
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4437
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4438
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4439
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4440
    ac_header_preproc=yes
 
4441
    ;;
 
4442
  no:yes:* )
 
4443
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4444
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4445
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4446
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4447
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4448
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4449
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4450
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4451
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4452
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4453
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4454
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4455
    (
 
4456
      cat <<\_ASBOX
 
4457
## ------------------------------------------ ##
 
4458
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4459
## ------------------------------------------ ##
 
4460
_ASBOX
 
4461
    ) |
 
4462
      sed "s/^/$as_me: WARNING:     /" >&2
 
4463
    ;;
 
4464
esac
 
4465
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4466
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4467
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4469
else
 
4470
  eval "$as_ac_Header=\$ac_header_preproc"
 
4471
fi
 
4472
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4473
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4474
 
 
4475
fi
 
4476
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4477
  cat >>confdefs.h <<_ACEOF
 
4478
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4479
_ACEOF
 
4480
 
 
4481
fi
 
4482
 
 
4483
done
 
4484
 
 
4485
 
 
4486
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
4487
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
 
4488
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
4489
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4490
else
 
4491
  cat >conftest.$ac_ext <<_ACEOF
 
4492
/* confdefs.h.  */
 
4493
_ACEOF
 
4494
cat confdefs.h >>conftest.$ac_ext
 
4495
cat >>conftest.$ac_ext <<_ACEOF
 
4496
/* end confdefs.h.  */
 
4497
 
 
4498
#include <stdbool.h>
 
4499
#ifndef bool
 
4500
# error bool is not defined
 
4501
#endif
 
4502
#ifndef false
 
4503
# error false is not defined
 
4504
#endif
 
4505
#if false
 
4506
# error false is not 0
 
4507
#endif
 
4508
#ifndef true
 
4509
# error true is not defined
 
4510
#endif
 
4511
#if true != 1
 
4512
# error true is not 1
 
4513
#endif
 
4514
#ifndef __bool_true_false_are_defined
 
4515
# error __bool_true_false_are_defined is not defined
 
4516
#endif
 
4517
 
 
4518
        struct s { _Bool s: 1; _Bool t; } s;
 
4519
 
 
4520
        char a[true == 1 ? 1 : -1];
 
4521
        char b[false == 0 ? 1 : -1];
 
4522
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
4523
        char d[(bool) -0.5 == true ? 1 : -1];
 
4524
        bool e = &s;
 
4525
        char f[(_Bool) -0.0 == false ? 1 : -1];
 
4526
        char g[true];
 
4527
        char h[sizeof (_Bool)];
 
4528
        char i[sizeof s.t];
 
4529
 
 
4530
int
 
4531
main ()
 
4532
{
 
4533
 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
 
4534
  ;
 
4535
  return 0;
 
4536
}
 
4537
_ACEOF
 
4538
rm -f conftest.$ac_objext
 
4539
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4540
  (eval $ac_compile) 2>conftest.er1
 
4541
  ac_status=$?
 
4542
  grep -v '^ *+' conftest.er1 >conftest.err
 
4543
  rm -f conftest.er1
 
4544
  cat conftest.err >&5
 
4545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4546
  (exit $ac_status); } &&
 
4547
         { ac_try='test -z "$ac_c_werror_flag"
 
4548
                         || test ! -s conftest.err'
 
4549
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4550
  (eval $ac_try) 2>&5
 
4551
  ac_status=$?
 
4552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4553
  (exit $ac_status); }; } &&
 
4554
         { ac_try='test -s conftest.$ac_objext'
 
4555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4556
  (eval $ac_try) 2>&5
 
4557
  ac_status=$?
 
4558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4559
  (exit $ac_status); }; }; then
 
4560
  ac_cv_header_stdbool_h=yes
 
4561
else
 
4562
  echo "$as_me: failed program was:" >&5
 
4563
sed 's/^/| /' conftest.$ac_ext >&5
 
4564
 
 
4565
ac_cv_header_stdbool_h=no
 
4566
fi
 
4567
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4568
fi
 
4569
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
4570
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
 
4571
echo "$as_me:$LINENO: checking for _Bool" >&5
 
4572
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
 
4573
if test "${ac_cv_type__Bool+set}" = set; then
 
4574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4575
else
 
4576
  cat >conftest.$ac_ext <<_ACEOF
 
4577
/* confdefs.h.  */
 
4578
_ACEOF
 
4579
cat confdefs.h >>conftest.$ac_ext
 
4580
cat >>conftest.$ac_ext <<_ACEOF
 
4581
/* end confdefs.h.  */
 
4582
$ac_includes_default
 
4583
int
 
4584
main ()
 
4585
{
 
4586
if ((_Bool *) 0)
 
4587
  return 0;
 
4588
if (sizeof (_Bool))
 
4589
  return 0;
 
4590
  ;
 
4591
  return 0;
 
4592
}
 
4593
_ACEOF
 
4594
rm -f conftest.$ac_objext
 
4595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4596
  (eval $ac_compile) 2>conftest.er1
 
4597
  ac_status=$?
 
4598
  grep -v '^ *+' conftest.er1 >conftest.err
 
4599
  rm -f conftest.er1
 
4600
  cat conftest.err >&5
 
4601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4602
  (exit $ac_status); } &&
 
4603
         { ac_try='test -z "$ac_c_werror_flag"
 
4604
                         || test ! -s conftest.err'
 
4605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4606
  (eval $ac_try) 2>&5
 
4607
  ac_status=$?
 
4608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4609
  (exit $ac_status); }; } &&
 
4610
         { ac_try='test -s conftest.$ac_objext'
 
4611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4612
  (eval $ac_try) 2>&5
 
4613
  ac_status=$?
 
4614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4615
  (exit $ac_status); }; }; then
 
4616
  ac_cv_type__Bool=yes
 
4617
else
 
4618
  echo "$as_me: failed program was:" >&5
 
4619
sed 's/^/| /' conftest.$ac_ext >&5
 
4620
 
 
4621
ac_cv_type__Bool=no
 
4622
fi
 
4623
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4624
fi
 
4625
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
4626
echo "${ECHO_T}$ac_cv_type__Bool" >&6
 
4627
if test $ac_cv_type__Bool = yes; then
 
4628
 
 
4629
cat >>confdefs.h <<_ACEOF
 
4630
#define HAVE__BOOL 1
 
4631
_ACEOF
 
4632
 
 
4633
 
 
4634
fi
 
4635
 
 
4636
if test $ac_cv_header_stdbool_h = yes; then
 
4637
 
 
4638
cat >>confdefs.h <<\_ACEOF
 
4639
#define HAVE_STDBOOL_H 1
 
4640
_ACEOF
 
4641
 
 
4642
fi
 
4643
 
 
4644
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4645
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
4646
if test "${ac_cv_c_const+set}" = set; then
 
4647
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4648
else
 
4649
  cat >conftest.$ac_ext <<_ACEOF
 
4650
/* confdefs.h.  */
 
4651
_ACEOF
 
4652
cat confdefs.h >>conftest.$ac_ext
 
4653
cat >>conftest.$ac_ext <<_ACEOF
 
4654
/* end confdefs.h.  */
 
4655
 
 
4656
int
 
4657
main ()
 
4658
{
 
4659
/* FIXME: Include the comments suggested by Paul. */
 
4660
#ifndef __cplusplus
 
4661
  /* Ultrix mips cc rejects this.  */
 
4662
  typedef int charset[2];
 
4663
  const charset x;
 
4664
  /* SunOS 4.1.1 cc rejects this.  */
 
4665
  char const *const *ccp;
 
4666
  char **p;
 
4667
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4668
  struct point {int x, y;};
 
4669
  static struct point const zero = {0,0};
 
4670
  /* AIX XL C 1.02.0.0 rejects this.
 
4671
     It does not let you subtract one const X* pointer from another in
 
4672
     an arm of an if-expression whose if-part is not a constant
 
4673
     expression */
 
4674
  const char *g = "string";
 
4675
  ccp = &g + (g ? g-g : 0);
 
4676
  /* HPUX 7.0 cc rejects these. */
 
4677
  ++ccp;
 
4678
  p = (char**) ccp;
 
4679
  ccp = (char const *const *) p;
 
4680
  { /* SCO 3.2v4 cc rejects this.  */
 
4681
    char *t;
 
4682
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4683
 
 
4684
    *t++ = 0;
 
4685
  }
 
4686
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4687
    int x[] = {25, 17};
 
4688
    const int *foo = &x[0];
 
4689
    ++foo;
 
4690
  }
 
4691
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4692
    typedef const int *iptr;
 
4693
    iptr p = 0;
 
4694
    ++p;
 
4695
  }
 
4696
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4697
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4698
    struct s { int j; const int *ap[3]; };
 
4699
    struct s *b; b->j = 5;
 
4700
  }
 
4701
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4702
    const int foo = 10;
 
4703
  }
 
4704
#endif
 
4705
 
 
4706
  ;
 
4707
  return 0;
 
4708
}
 
4709
_ACEOF
 
4710
rm -f conftest.$ac_objext
 
4711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4712
  (eval $ac_compile) 2>conftest.er1
 
4713
  ac_status=$?
 
4714
  grep -v '^ *+' conftest.er1 >conftest.err
 
4715
  rm -f conftest.er1
 
4716
  cat conftest.err >&5
 
4717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4718
  (exit $ac_status); } &&
 
4719
         { ac_try='test -z "$ac_c_werror_flag"
 
4720
                         || test ! -s conftest.err'
 
4721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4722
  (eval $ac_try) 2>&5
 
4723
  ac_status=$?
 
4724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4725
  (exit $ac_status); }; } &&
 
4726
         { ac_try='test -s conftest.$ac_objext'
 
4727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4728
  (eval $ac_try) 2>&5
 
4729
  ac_status=$?
 
4730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4731
  (exit $ac_status); }; }; then
 
4732
  ac_cv_c_const=yes
 
4733
else
 
4734
  echo "$as_me: failed program was:" >&5
 
4735
sed 's/^/| /' conftest.$ac_ext >&5
 
4736
 
 
4737
ac_cv_c_const=no
 
4738
fi
 
4739
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4740
fi
 
4741
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4742
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4743
if test $ac_cv_c_const = no; then
 
4744
 
 
4745
cat >>confdefs.h <<\_ACEOF
 
4746
#define const
 
4747
_ACEOF
 
4748
 
 
4749
fi
 
4750
 
 
4751
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
4752
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
 
4753
if test "${ac_cv_struct_tm+set}" = set; then
 
4754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4755
else
 
4756
  cat >conftest.$ac_ext <<_ACEOF
 
4757
/* confdefs.h.  */
 
4758
_ACEOF
 
4759
cat confdefs.h >>conftest.$ac_ext
 
4760
cat >>conftest.$ac_ext <<_ACEOF
 
4761
/* end confdefs.h.  */
 
4762
#include <sys/types.h>
 
4763
#include <time.h>
 
4764
 
 
4765
int
 
4766
main ()
 
4767
{
 
4768
struct tm *tp; tp->tm_sec;
 
4769
  ;
 
4770
  return 0;
 
4771
}
 
4772
_ACEOF
 
4773
rm -f conftest.$ac_objext
 
4774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4775
  (eval $ac_compile) 2>conftest.er1
 
4776
  ac_status=$?
 
4777
  grep -v '^ *+' conftest.er1 >conftest.err
 
4778
  rm -f conftest.er1
 
4779
  cat conftest.err >&5
 
4780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4781
  (exit $ac_status); } &&
 
4782
         { ac_try='test -z "$ac_c_werror_flag"
 
4783
                         || test ! -s conftest.err'
 
4784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4785
  (eval $ac_try) 2>&5
 
4786
  ac_status=$?
 
4787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4788
  (exit $ac_status); }; } &&
 
4789
         { ac_try='test -s conftest.$ac_objext'
 
4790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4791
  (eval $ac_try) 2>&5
 
4792
  ac_status=$?
 
4793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4794
  (exit $ac_status); }; }; then
 
4795
  ac_cv_struct_tm=time.h
 
4796
else
 
4797
  echo "$as_me: failed program was:" >&5
 
4798
sed 's/^/| /' conftest.$ac_ext >&5
 
4799
 
 
4800
ac_cv_struct_tm=sys/time.h
 
4801
fi
 
4802
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4803
fi
 
4804
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
4805
echo "${ECHO_T}$ac_cv_struct_tm" >&6
 
4806
if test $ac_cv_struct_tm = sys/time.h; then
 
4807
 
 
4808
cat >>confdefs.h <<\_ACEOF
 
4809
#define TM_IN_SYS_TIME 1
 
4810
_ACEOF
 
4811
 
 
4812
fi
 
4813
 
 
4814
 
 
4815
 
 
4816
for ac_func in vprintf
 
4817
do
 
4818
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4819
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
4820
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
4821
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
4822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4823
else
 
4824
  cat >conftest.$ac_ext <<_ACEOF
 
4825
/* confdefs.h.  */
 
4826
_ACEOF
 
4827
cat confdefs.h >>conftest.$ac_ext
 
4828
cat >>conftest.$ac_ext <<_ACEOF
 
4829
/* end confdefs.h.  */
 
4830
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
4831
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4832
#define $ac_func innocuous_$ac_func
 
4833
 
 
4834
/* System header to define __stub macros and hopefully few prototypes,
 
4835
    which can conflict with char $ac_func (); below.
 
4836
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4837
    <limits.h> exists even on freestanding compilers.  */
 
4838
 
 
4839
#ifdef __STDC__
 
4840
# include <limits.h>
 
4841
#else
 
4842
# include <assert.h>
 
4843
#endif
 
4844
 
 
4845
#undef $ac_func
 
4846
 
 
4847
/* Override any gcc2 internal prototype to avoid an error.  */
 
4848
#ifdef __cplusplus
 
4849
extern "C"
 
4850
{
 
4851
#endif
 
4852
/* We use char because int might match the return type of a gcc2
 
4853
   builtin and then its argument prototype would still apply.  */
 
4854
char $ac_func ();
 
4855
/* The GNU C library defines this for functions which it implements
 
4856
    to always fail with ENOSYS.  Some functions are actually named
 
4857
    something starting with __ and the normal name is an alias.  */
 
4858
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
4859
choke me
 
4860
#else
 
4861
char (*f) () = $ac_func;
 
4862
#endif
 
4863
#ifdef __cplusplus
 
4864
}
 
4865
#endif
 
4866
 
 
4867
int
 
4868
main ()
 
4869
{
 
4870
return f != $ac_func;
 
4871
  ;
 
4872
  return 0;
 
4873
}
 
4874
_ACEOF
 
4875
rm -f conftest.$ac_objext conftest$ac_exeext
 
4876
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4877
  (eval $ac_link) 2>conftest.er1
 
4878
  ac_status=$?
 
4879
  grep -v '^ *+' conftest.er1 >conftest.err
 
4880
  rm -f conftest.er1
 
4881
  cat conftest.err >&5
 
4882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4883
  (exit $ac_status); } &&
 
4884
         { ac_try='test -z "$ac_c_werror_flag"
 
4885
                         || test ! -s conftest.err'
 
4886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4887
  (eval $ac_try) 2>&5
 
4888
  ac_status=$?
 
4889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4890
  (exit $ac_status); }; } &&
 
4891
         { ac_try='test -s conftest$ac_exeext'
 
4892
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4893
  (eval $ac_try) 2>&5
 
4894
  ac_status=$?
 
4895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4896
  (exit $ac_status); }; }; then
 
4897
  eval "$as_ac_var=yes"
 
4898
else
 
4899
  echo "$as_me: failed program was:" >&5
 
4900
sed 's/^/| /' conftest.$ac_ext >&5
 
4901
 
 
4902
eval "$as_ac_var=no"
 
4903
fi
 
4904
rm -f conftest.err conftest.$ac_objext \
 
4905
      conftest$ac_exeext conftest.$ac_ext
 
4906
fi
 
4907
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
4908
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
4909
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
4910
  cat >>confdefs.h <<_ACEOF
 
4911
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4912
_ACEOF
 
4913
 
 
4914
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
4915
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
4916
if test "${ac_cv_func__doprnt+set}" = set; then
 
4917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4918
else
 
4919
  cat >conftest.$ac_ext <<_ACEOF
 
4920
/* confdefs.h.  */
 
4921
_ACEOF
 
4922
cat confdefs.h >>conftest.$ac_ext
 
4923
cat >>conftest.$ac_ext <<_ACEOF
 
4924
/* end confdefs.h.  */
 
4925
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
4926
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4927
#define _doprnt innocuous__doprnt
 
4928
 
 
4929
/* System header to define __stub macros and hopefully few prototypes,
 
4930
    which can conflict with char _doprnt (); below.
 
4931
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4932
    <limits.h> exists even on freestanding compilers.  */
 
4933
 
 
4934
#ifdef __STDC__
 
4935
# include <limits.h>
 
4936
#else
 
4937
# include <assert.h>
 
4938
#endif
 
4939
 
 
4940
#undef _doprnt
 
4941
 
 
4942
/* Override any gcc2 internal prototype to avoid an error.  */
 
4943
#ifdef __cplusplus
 
4944
extern "C"
 
4945
{
 
4946
#endif
 
4947
/* We use char because int might match the return type of a gcc2
 
4948
   builtin and then its argument prototype would still apply.  */
 
4949
char _doprnt ();
 
4950
/* The GNU C library defines this for functions which it implements
 
4951
    to always fail with ENOSYS.  Some functions are actually named
 
4952
    something starting with __ and the normal name is an alias.  */
 
4953
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
4954
choke me
 
4955
#else
 
4956
char (*f) () = _doprnt;
 
4957
#endif
 
4958
#ifdef __cplusplus
 
4959
}
 
4960
#endif
 
4961
 
 
4962
int
 
4963
main ()
 
4964
{
 
4965
return f != _doprnt;
 
4966
  ;
 
4967
  return 0;
 
4968
}
 
4969
_ACEOF
 
4970
rm -f conftest.$ac_objext conftest$ac_exeext
 
4971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4972
  (eval $ac_link) 2>conftest.er1
 
4973
  ac_status=$?
 
4974
  grep -v '^ *+' conftest.er1 >conftest.err
 
4975
  rm -f conftest.er1
 
4976
  cat conftest.err >&5
 
4977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4978
  (exit $ac_status); } &&
 
4979
         { ac_try='test -z "$ac_c_werror_flag"
 
4980
                         || test ! -s conftest.err'
 
4981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4982
  (eval $ac_try) 2>&5
 
4983
  ac_status=$?
 
4984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4985
  (exit $ac_status); }; } &&
 
4986
         { ac_try='test -s conftest$ac_exeext'
 
4987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4988
  (eval $ac_try) 2>&5
 
4989
  ac_status=$?
 
4990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4991
  (exit $ac_status); }; }; then
 
4992
  ac_cv_func__doprnt=yes
 
4993
else
 
4994
  echo "$as_me: failed program was:" >&5
 
4995
sed 's/^/| /' conftest.$ac_ext >&5
 
4996
 
 
4997
ac_cv_func__doprnt=no
 
4998
fi
 
4999
rm -f conftest.err conftest.$ac_objext \
 
5000
      conftest$ac_exeext conftest.$ac_ext
 
5001
fi
 
5002
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
5003
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
5004
if test $ac_cv_func__doprnt = yes; then
 
5005
 
 
5006
cat >>confdefs.h <<\_ACEOF
 
5007
#define HAVE_DOPRNT 1
 
5008
_ACEOF
 
5009
 
 
5010
fi
 
5011
 
 
5012
fi
 
5013
done
 
5014
 
 
5015
 
 
5016
 
 
5017
 
 
5018
 
 
5019
 
 
5020
for ac_func in memset mkdir rmdir strchr
 
5021
do
 
5022
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5023
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5024
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5025
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5027
else
 
5028
  cat >conftest.$ac_ext <<_ACEOF
 
5029
/* confdefs.h.  */
 
5030
_ACEOF
 
5031
cat confdefs.h >>conftest.$ac_ext
 
5032
cat >>conftest.$ac_ext <<_ACEOF
 
5033
/* end confdefs.h.  */
 
5034
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5035
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5036
#define $ac_func innocuous_$ac_func
 
5037
 
 
5038
/* System header to define __stub macros and hopefully few prototypes,
 
5039
    which can conflict with char $ac_func (); below.
 
5040
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5041
    <limits.h> exists even on freestanding compilers.  */
 
5042
 
 
5043
#ifdef __STDC__
 
5044
# include <limits.h>
 
5045
#else
 
5046
# include <assert.h>
 
5047
#endif
 
5048
 
 
5049
#undef $ac_func
 
5050
 
 
5051
/* Override any gcc2 internal prototype to avoid an error.  */
 
5052
#ifdef __cplusplus
 
5053
extern "C"
 
5054
{
 
5055
#endif
 
5056
/* We use char because int might match the return type of a gcc2
 
5057
   builtin and then its argument prototype would still apply.  */
 
5058
char $ac_func ();
 
5059
/* The GNU C library defines this for functions which it implements
 
5060
    to always fail with ENOSYS.  Some functions are actually named
 
5061
    something starting with __ and the normal name is an alias.  */
 
5062
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5063
choke me
 
5064
#else
 
5065
char (*f) () = $ac_func;
 
5066
#endif
 
5067
#ifdef __cplusplus
 
5068
}
 
5069
#endif
 
5070
 
 
5071
int
 
5072
main ()
 
5073
{
 
5074
return f != $ac_func;
 
5075
  ;
 
5076
  return 0;
 
5077
}
 
5078
_ACEOF
 
5079
rm -f conftest.$ac_objext conftest$ac_exeext
 
5080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5081
  (eval $ac_link) 2>conftest.er1
 
5082
  ac_status=$?
 
5083
  grep -v '^ *+' conftest.er1 >conftest.err
 
5084
  rm -f conftest.er1
 
5085
  cat conftest.err >&5
 
5086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5087
  (exit $ac_status); } &&
 
5088
         { ac_try='test -z "$ac_c_werror_flag"
 
5089
                         || test ! -s conftest.err'
 
5090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5091
  (eval $ac_try) 2>&5
 
5092
  ac_status=$?
 
5093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5094
  (exit $ac_status); }; } &&
 
5095
         { ac_try='test -s conftest$ac_exeext'
 
5096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5097
  (eval $ac_try) 2>&5
 
5098
  ac_status=$?
 
5099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5100
  (exit $ac_status); }; }; then
 
5101
  eval "$as_ac_var=yes"
 
5102
else
 
5103
  echo "$as_me: failed program was:" >&5
 
5104
sed 's/^/| /' conftest.$ac_ext >&5
 
5105
 
 
5106
eval "$as_ac_var=no"
 
5107
fi
 
5108
rm -f conftest.err conftest.$ac_objext \
 
5109
      conftest$ac_exeext conftest.$ac_ext
 
5110
fi
 
5111
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5112
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5113
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5114
  cat >>confdefs.h <<_ACEOF
 
5115
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5116
_ACEOF
 
5117
 
 
5118
fi
 
5119
done
 
5120
 
 
5121
 
 
5122
                                        ac_config_files="$ac_config_files Makefile bookmarkbridge/Makefile bookmarkbridge/docs/Makefile bookmarkbridge/docs/en/Makefile"
 
5123
 
23478
5124
 
23479
5125
cat >confcache <<\_ACEOF
23480
5126
# This file is a shell script that caches the results of configure
23504
5150
      # `set' does not quote correctly, so add quotes (double-quote
23505
5151
      # substitution turns \\\\ into \\, and sed turns \\ into \).
23506
5152
      sed -n \
23507
 
        "s/'/'\\\\''/g;
23508
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
5153
        "s/'/'\\\\''/g;
 
5154
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23509
5155
      ;;
23510
5156
    *)
23511
5157
      # `set' quotes correctly as required by POSIX, so do not add quotes.
23512
5158
      sed -n \
23513
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
5159
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23514
5160
      ;;
23515
5161
    esac;
23516
5162
} |
23540
5186
# trailing colons and then remove the whole line if VPATH becomes empty
23541
5187
# (actually we leave an empty line to preserve line numbers).
23542
5188
if test "x$srcdir" = x.; then
23543
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
5189
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
23544
5190
s/:*\$(srcdir):*/:/;
23545
5191
s/:*\${srcdir}:*/:/;
23546
5192
s/:*@srcdir@:*/:/;
23547
 
s/^\([^=]*=[    ]*\):*/\1/;
 
5193
s/^\([^=]*=[     ]*\):*/\1/;
23548
5194
s/:*$//;
23549
 
s/^[^=]*=[      ]*$//;
 
5195
s/^[^=]*=[       ]*$//;
23550
5196
}'
23551
5197
fi
23552
5198
 
23553
 
DEFS=-DHAVE_CONFIG_H
 
5199
# Transform confdefs.h into DEFS.
 
5200
# Protect against shell expansion while executing Makefile rules.
 
5201
# Protect against Makefile macro expansion.
 
5202
#
 
5203
# If the first sed substitution is executed (which looks for macros that
 
5204
# take arguments), then we branch to the quote section.  Otherwise,
 
5205
# look for a macro that doesn't take arguments.
 
5206
cat >confdef2opt.sed <<\_ACEOF
 
5207
t clear
 
5208
: clear
 
5209
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
5210
t quote
 
5211
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
5212
t quote
 
5213
d
 
5214
: quote
 
5215
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
 
5216
s,\[,\\&,g
 
5217
s,\],\\&,g
 
5218
s,\$,$$,g
 
5219
p
 
5220
_ACEOF
 
5221
# We use echo to avoid assuming a particular line-breaking character.
 
5222
# The extra dot is to prevent the shell from consuming trailing
 
5223
# line-breaks from the sub-command output.  A line-break within
 
5224
# single-quotes doesn't work because, if this script is created in a
 
5225
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
5226
# would break.
 
5227
ac_LF_and_DOT=`echo; echo .`
 
5228
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
5229
rm -f confdef2opt.sed
 
5230
 
23554
5231
 
23555
5232
ac_libobjs=
23556
5233
ac_ltlibobjs=
23557
5234
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23558
5235
  # 1. Remove the extension, and $U if already installed.
23559
5236
  ac_i=`echo "$ac_i" |
23560
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
5237
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23561
5238
  # 2. Add them.
23562
5239
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23563
5240
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23574
5251
Usually this means the macro was only invoked conditionally." >&2;}
23575
5252
   { (exit 1); exit 1; }; }
23576
5253
fi
 
5254
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
5255
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
5256
Usually this means the macro was only invoked conditionally." >&5
 
5257
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
5258
Usually this means the macro was only invoked conditionally." >&2;}
 
5259
   { (exit 1); exit 1; }; }
 
5260
fi
23577
5261
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23578
5262
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23579
5263
Usually this means the macro was only invoked conditionally." >&5
23581
5265
Usually this means the macro was only invoked conditionally." >&2;}
23582
5266
   { (exit 1); exit 1; }; }
23583
5267
fi
23584
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23585
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23586
 
Usually this means the macro was only invoked conditionally." >&5
23587
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23588
 
Usually this means the macro was only invoked conditionally." >&2;}
23589
 
   { (exit 1); exit 1; }; }
23590
 
fi
23591
5268
 
23592
5269
: ${CONFIG_STATUS=./config.status}
23593
5270
ac_clean_files_save=$ac_clean_files
23622
5299
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23623
5300
  set -o posix
23624
5301
fi
 
5302
DUALCASE=1; export DUALCASE # for MKS sh
23625
5303
 
23626
5304
# Support unset when possible.
23627
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
5305
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23628
5306
  as_unset=unset
23629
5307
else
23630
5308
  as_unset=false
23643
5321
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23644
5322
  LC_TELEPHONE LC_TIME
23645
5323
do
23646
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
5324
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23647
5325
    eval $as_var=C; export $as_var
23648
5326
  else
23649
5327
    $as_unset $as_var
23822
5500
if mkdir -p . 2>/dev/null; then
23823
5501
  as_mkdir_p=:
23824
5502
else
 
5503
  test -d ./-p && rmdir ./-p
23825
5504
  as_mkdir_p=false
23826
5505
fi
23827
5506
 
23828
5507
as_executable_p="test -f"
23829
5508
 
23830
5509
# Sed expression to map a string onto a valid CPP name.
23831
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
5510
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23832
5511
 
23833
5512
# Sed expression to map a string onto a valid variable name.
23834
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
5513
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23835
5514
 
23836
5515
 
23837
5516
# IFS
23858
5537
cat >&5 <<_CSEOF
23859
5538
 
23860
5539
This file was extended by $as_me, which was
23861
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
5540
generated by GNU Autoconf 2.59.  Invocation command line was
23862
5541
 
23863
5542
  CONFIG_FILES    = $CONFIG_FILES
23864
5543
  CONFIG_HEADERS  = $CONFIG_HEADERS
23902
5581
  -d, --debug      don't remove temporary files
23903
5582
      --recheck    update $as_me by reconfiguring in the same conditions
23904
5583
  --file=FILE[:TEMPLATE]
23905
 
                   instantiate the configuration file FILE
23906
 
  --header=FILE[:TEMPLATE]
23907
 
                   instantiate the configuration header FILE
 
5584
                   instantiate the configuration file FILE
23908
5585
 
23909
5586
Configuration files:
23910
5587
$config_files
23911
5588
 
23912
 
Configuration headers:
23913
 
$config_headers
23914
 
 
23915
5589
Configuration commands:
23916
5590
$config_commands
23917
5591
 
23921
5595
cat >>$CONFIG_STATUS <<_ACEOF
23922
5596
ac_cs_version="\\
23923
5597
config.status
23924
 
configured by $0, generated by GNU Autoconf 2.57,
 
5598
configured by $0, generated by GNU Autoconf 2.59,
23925
5599
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23926
5600
 
23927
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23928
 
Free Software Foundation, Inc.
 
5601
Copyright (C) 2003 Free Software Foundation, Inc.
23929
5602
This config.status script is free software; the Free Software Foundation
23930
5603
gives unlimited permission to copy, distribute and modify it."
23931
5604
srcdir=$srcdir
24036
5709
  "bookmarkbridge/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES bookmarkbridge/docs/Makefile" ;;
24037
5710
  "bookmarkbridge/docs/en/Makefile" ) CONFIG_FILES="$CONFIG_FILES bookmarkbridge/docs/en/Makefile" ;;
24038
5711
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24039
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24040
5712
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24041
5713
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24042
5714
   { (exit 1); exit 1; }; };;
24049
5721
# bizarre bug on SunOS 4.1.3.
24050
5722
if $ac_need_defaults; then
24051
5723
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24052
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24053
5724
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24054
5725
fi
24055
5726
 
24122
5793
s,@ECHO_N@,$ECHO_N,;t t
24123
5794
s,@ECHO_T@,$ECHO_T,;t t
24124
5795
s,@LIBS@,$LIBS,;t t
24125
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
24126
 
s,@CC@,$CC,;t t
24127
 
s,@CFLAGS@,$CFLAGS,;t t
24128
 
s,@LDFLAGS@,$LDFLAGS,;t t
24129
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
24130
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
24131
 
s,@EXEEXT@,$EXEEXT,;t t
24132
 
s,@OBJEXT@,$OBJEXT,;t t
24133
 
s,@build@,$build,;t t
24134
 
s,@build_cpu@,$build_cpu,;t t
24135
 
s,@build_vendor@,$build_vendor,;t t
24136
 
s,@build_os@,$build_os,;t t
24137
 
s,@host@,$host,;t t
24138
 
s,@host_cpu@,$host_cpu,;t t
24139
 
s,@host_vendor@,$host_vendor,;t t
24140
 
s,@host_os@,$host_os,;t t
24141
 
s,@target@,$target,;t t
24142
 
s,@target_cpu@,$target_cpu,;t t
24143
 
s,@target_vendor@,$target_vendor,;t t
24144
 
s,@target_os@,$target_os,;t t
24145
5796
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24146
5797
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24147
5798
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24153
5804
s,@AUTOMAKE@,$AUTOMAKE,;t t
24154
5805
s,@AUTOHEADER@,$AUTOHEADER,;t t
24155
5806
s,@MAKEINFO@,$MAKEINFO,;t t
24156
 
s,@AMTAR@,$AMTAR,;t t
24157
5807
s,@install_sh@,$install_sh,;t t
24158
5808
s,@STRIP@,$STRIP,;t t
24159
5809
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24160
5810
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
5811
s,@mkdir_p@,$mkdir_p,;t t
24161
5812
s,@AWK@,$AWK,;t t
24162
5813
s,@SET_MAKE@,$SET_MAKE,;t t
24163
5814
s,@am__leading_dot@,$am__leading_dot,;t t
 
5815
s,@AMTAR@,$AMTAR,;t t
 
5816
s,@am__tar@,$am__tar,;t t
 
5817
s,@am__untar@,$am__untar,;t t
 
5818
s,@CXX@,$CXX,;t t
 
5819
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
5820
s,@LDFLAGS@,$LDFLAGS,;t t
 
5821
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
5822
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
5823
s,@EXEEXT@,$EXEEXT,;t t
 
5824
s,@OBJEXT@,$OBJEXT,;t t
24164
5825
s,@DEPDIR@,$DEPDIR,;t t
24165
5826
s,@am__include@,$am__include,;t t
24166
5827
s,@am__quote@,$am__quote,;t t
24167
5828
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24168
5829
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24169
5830
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
5831
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
5832
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
5833
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
5834
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
5835
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
 
5836
s,@QT_CFLAGS@,$QT_CFLAGS,;t t
 
5837
s,@QT_LIBS@,$QT_LIBS,;t t
 
5838
s,@MOC@,$MOC,;t t
 
5839
s,@UIC@,$UIC,;t t
 
5840
s,@RCC@,$RCC,;t t
 
5841
s,@PERL@,$PERL,;t t
 
5842
s,@CC@,$CC,;t t
 
5843
s,@CFLAGS@,$CFLAGS,;t t
 
5844
s,@ac_ct_CC@,$ac_ct_CC,;t t
24170
5845
s,@CCDEPMODE@,$CCDEPMODE,;t t
24171
5846
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24172
5847
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24173
5848
s,@CPP@,$CPP,;t t
24174
 
s,@CXX@,$CXX,;t t
24175
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24176
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24177
 
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24178
 
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24179
 
s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
24180
 
s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
24181
 
s,@USE_RTTI@,$USE_RTTI,;t t
24182
 
s,@CXXCPP@,$CXXCPP,;t t
24183
 
s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
24184
 
s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
24185
 
s,@REPO@,$REPO,;t t
24186
 
s,@NOREPO@,$NOREPO,;t t
24187
 
s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
24188
 
s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
24189
 
s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
24190
 
s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
24191
 
s,@LN_S@,$LN_S,;t t
24192
 
s,@ECHO@,$ECHO,;t t
24193
 
s,@RANLIB@,$RANLIB,;t t
24194
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24195
5849
s,@EGREP@,$EGREP,;t t
24196
 
s,@LIBTOOL@,$LIBTOOL,;t t
24197
 
s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
24198
 
s,@all_includes@,$all_includes,;t t
24199
 
s,@all_libraries@,$all_libraries,;t t
24200
 
s,@MSGFMT@,$MSGFMT,;t t
24201
 
s,@GMSGFMT@,$GMSGFMT,;t t
24202
 
s,@XGETTEXT@,$XGETTEXT,;t t
24203
 
s,@LIBUTIL@,$LIBUTIL,;t t
24204
 
s,@LIBCOMPAT@,$LIBCOMPAT,;t t
24205
 
s,@LIBCRYPT@,$LIBCRYPT,;t t
24206
 
s,@LIB_POLL@,$LIB_POLL,;t t
24207
 
s,@FRAMEWORK_COREAUDIO@,$FRAMEWORK_COREAUDIO,;t t
24208
 
s,@LIBSOCKET@,$LIBSOCKET,;t t
24209
 
s,@LIBRESOLV@,$LIBRESOLV,;t t
24210
 
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24211
 
s,@LIBUCB@,$LIBUCB,;t t
24212
 
s,@LIBDL@,$LIBDL,;t t
24213
 
s,@X_INCLUDES@,$X_INCLUDES,;t t
24214
 
s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24215
 
s,@x_libraries@,$x_libraries,;t t
24216
 
s,@x_includes@,$x_includes,;t t
24217
 
s,@LIBSM@,$LIBSM,;t t
24218
 
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24219
 
s,@LIB_X11@,$LIB_X11,;t t
24220
 
s,@LIBXINERAMA@,$LIBXINERAMA,;t t
24221
 
s,@QTE_NORTTI@,$QTE_NORTTI,;t t
24222
 
s,@LIB_XEXT@,$LIB_XEXT,;t t
24223
 
s,@LIBPTHREAD@,$LIBPTHREAD,;t t
24224
 
s,@USE_THREADS@,$USE_THREADS,;t t
24225
 
s,@KDE_MT_LDFLAGS@,$KDE_MT_LDFLAGS,;t t
24226
 
s,@KDE_MT_LIBS@,$KDE_MT_LIBS,;t t
24227
 
s,@USER_INCLUDES@,$USER_INCLUDES,;t t
24228
 
s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
24229
 
s,@LIBZ@,$LIBZ,;t t
24230
 
s,@LIBPNG@,$LIBPNG,;t t
24231
 
s,@LIBJPEG@,$LIBJPEG,;t t
24232
 
s,@qt_libraries@,$qt_libraries,;t t
24233
 
s,@qt_includes@,$qt_includes,;t t
24234
 
s,@QT_INCLUDES@,$QT_INCLUDES,;t t
24235
 
s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
24236
 
s,@MOC@,$MOC,;t t
24237
 
s,@UIC@,$UIC,;t t
24238
 
s,@UIC_TR@,$UIC_TR,;t t
24239
 
s,@LIB_QT@,$LIB_QT,;t t
24240
 
s,@LIB_QPE@,$LIB_QPE,;t t
24241
 
s,@kde_qtver@,$kde_qtver,;t t
24242
 
s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
24243
5850
s,@LIBOBJS@,$LIBOBJS,;t t
24244
5851
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24245
5852
CEOF
24271
5878
      (echo ':t
24272
5879
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24273
5880
      if test -z "$ac_sed_cmds"; then
24274
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
5881
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24275
5882
      else
24276
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
5883
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24277
5884
      fi
24278
5885
      ac_sed_frag=`expr $ac_sed_frag + 1`
24279
5886
      ac_beg=$ac_end
24291
5898
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24292
5899
  case $ac_file in
24293
5900
  - | *:- | *:-:* ) # input from stdin
24294
 
        cat >$tmp/stdin
24295
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24296
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
5901
        cat >$tmp/stdin
 
5902
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
5903
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24297
5904
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24298
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
5905
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24299
5906
  * )   ac_file_in=$ac_file.in ;;
24300
5907
  esac
24301
5908
 
24302
5909
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24303
5910
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24304
5911
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24305
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
24306
 
         X"$ac_file" : 'X\(//\)$' \| \
24307
 
         X"$ac_file" : 'X\(/\)' \| \
24308
 
         .     : '\(.\)' 2>/dev/null ||
 
5912
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
5913
         X"$ac_file" : 'X\(//\)$' \| \
 
5914
         X"$ac_file" : 'X\(/\)' \| \
 
5915
         .     : '\(.\)' 2>/dev/null ||
24309
5916
echo X"$ac_file" |
24310
5917
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24311
5918
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24321
5928
      as_dirs="$as_dir $as_dirs"
24322
5929
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24323
5930
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24324
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
24325
 
         X"$as_dir" : 'X\(//\)$' \| \
24326
 
         X"$as_dir" : 'X\(/\)' \| \
24327
 
         .     : '\(.\)' 2>/dev/null ||
 
5931
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
5932
         X"$as_dir" : 'X\(//\)$' \| \
 
5933
         X"$as_dir" : 'X\(/\)' \| \
 
5934
         .     : '\(.\)' 2>/dev/null ||
24328
5935
echo X"$as_dir" |
24329
5936
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24330
5937
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24362
5969
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24363
5970
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24364
5971
esac
24365
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24366
 
# absolute.
24367
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24368
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24369
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24370
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
5972
 
 
5973
# Do not use `cd foo && pwd` to compute absolute paths, because
 
5974
# the directories may not exist.
 
5975
case `pwd` in
 
5976
.) ac_abs_builddir="$ac_dir";;
 
5977
*)
 
5978
  case "$ac_dir" in
 
5979
  .) ac_abs_builddir=`pwd`;;
 
5980
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
5981
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
5982
  esac;;
 
5983
esac
 
5984
case $ac_abs_builddir in
 
5985
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
5986
*)
 
5987
  case ${ac_top_builddir}. in
 
5988
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
5989
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
5990
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
5991
  esac;;
 
5992
esac
 
5993
case $ac_abs_builddir in
 
5994
.) ac_abs_srcdir=$ac_srcdir;;
 
5995
*)
 
5996
  case $ac_srcdir in
 
5997
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
5998
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
5999
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
6000
  esac;;
 
6001
esac
 
6002
case $ac_abs_builddir in
 
6003
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
6004
*)
 
6005
  case $ac_top_srcdir in
 
6006
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
6007
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
6008
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
6009
  esac;;
 
6010
esac
24371
6011
 
24372
6012
 
24373
6013
  case $INSTALL in
24389
6029
    configure_input="$ac_file.  "
24390
6030
  fi
24391
6031
  configure_input=$configure_input"Generated from `echo $ac_file_in |
24392
 
                                     sed 's,.*/,,'` by configure."
 
6032
                                     sed 's,.*/,,'` by configure."
24393
6033
 
24394
6034
  # First look for the input files in the build tree, otherwise in the
24395
6035
  # src tree.
24398
6038
      case $f in
24399
6039
      -) echo $tmp/stdin ;;
24400
6040
      [\\/$]*)
24401
 
         # Absolute (can't be DOS-style, as IFS=:)
24402
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
6041
         # Absolute (can't be DOS-style, as IFS=:)
 
6042
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24403
6043
echo "$as_me: error: cannot find input file: $f" >&2;}
24404
6044
   { (exit 1); exit 1; }; }
24405
 
         echo $f;;
 
6045
         echo "$f";;
24406
6046
      *) # Relative
24407
 
         if test -f "$f"; then
24408
 
           # Build tree
24409
 
           echo $f
24410
 
         elif test -f "$srcdir/$f"; then
24411
 
           # Source tree
24412
 
           echo $srcdir/$f
24413
 
         else
24414
 
           # /dev/null tree
24415
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
6047
         if test -f "$f"; then
 
6048
           # Build tree
 
6049
           echo "$f"
 
6050
         elif test -f "$srcdir/$f"; then
 
6051
           # Source tree
 
6052
           echo "$srcdir/$f"
 
6053
         else
 
6054
           # /dev/null tree
 
6055
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24416
6056
echo "$as_me: error: cannot find input file: $f" >&2;}
24417
6057
   { (exit 1); exit 1; }; }
24418
 
         fi;;
 
6058
         fi;;
24419
6059
      esac
24420
6060
    done` || { (exit 1); exit 1; }
24421
6061
_ACEOF
24450
6090
cat >>$CONFIG_STATUS <<\_ACEOF
24451
6091
 
24452
6092
#
24453
 
# CONFIG_HEADER section.
24454
 
#
24455
 
 
24456
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24457
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
24458
 
#
24459
 
# ac_d sets the value in "#define NAME VALUE" lines.
24460
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24461
 
ac_dB='[        ].*$,\1#\2'
24462
 
ac_dC=' '
24463
 
ac_dD=',;t'
24464
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24465
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24466
 
ac_uB='$,\1#\2define\3'
24467
 
ac_uC=' '
24468
 
ac_uD=',;t'
24469
 
 
24470
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24471
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24472
 
  case $ac_file in
24473
 
  - | *:- | *:-:* ) # input from stdin
24474
 
        cat >$tmp/stdin
24475
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24476
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24477
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24478
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24479
 
  * )   ac_file_in=$ac_file.in ;;
24480
 
  esac
24481
 
 
24482
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24483
 
echo "$as_me: creating $ac_file" >&6;}
24484
 
 
24485
 
  # First look for the input files in the build tree, otherwise in the
24486
 
  # src tree.
24487
 
  ac_file_inputs=`IFS=:
24488
 
    for f in $ac_file_in; do
24489
 
      case $f in
24490
 
      -) echo $tmp/stdin ;;
24491
 
      [\\/$]*)
24492
 
         # Absolute (can't be DOS-style, as IFS=:)
24493
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24494
 
echo "$as_me: error: cannot find input file: $f" >&2;}
24495
 
   { (exit 1); exit 1; }; }
24496
 
         echo $f;;
24497
 
      *) # Relative
24498
 
         if test -f "$f"; then
24499
 
           # Build tree
24500
 
           echo $f
24501
 
         elif test -f "$srcdir/$f"; then
24502
 
           # Source tree
24503
 
           echo $srcdir/$f
24504
 
         else
24505
 
           # /dev/null tree
24506
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24507
 
echo "$as_me: error: cannot find input file: $f" >&2;}
24508
 
   { (exit 1); exit 1; }; }
24509
 
         fi;;
24510
 
      esac
24511
 
    done` || { (exit 1); exit 1; }
24512
 
  # Remove the trailing spaces.
24513
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24514
 
 
24515
 
_ACEOF
24516
 
 
24517
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
24518
 
# `conftest.undefs', that substitutes the proper values into
24519
 
# config.h.in to produce config.h.  The first handles `#define'
24520
 
# templates, and the second `#undef' templates.
24521
 
# And first: Protect against being on the right side of a sed subst in
24522
 
# config.status.  Protect against being in an unquoted here document
24523
 
# in config.status.
24524
 
rm -f conftest.defines conftest.undefs
24525
 
# Using a here document instead of a string reduces the quoting nightmare.
24526
 
# Putting comments in sed scripts is not portable.
24527
 
#
24528
 
# `end' is used to avoid that the second main sed command (meant for
24529
 
# 0-ary CPP macros) applies to n-ary macro definitions.
24530
 
# See the Autoconf documentation for `clear'.
24531
 
cat >confdef2sed.sed <<\_ACEOF
24532
 
s/[\\&,]/\\&/g
24533
 
s,[\\$`],\\&,g
24534
 
t clear
24535
 
: clear
24536
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24537
 
t end
24538
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24539
 
: end
24540
 
_ACEOF
24541
 
# If some macros were called several times there might be several times
24542
 
# the same #defines, which is useless.  Nevertheless, we may not want to
24543
 
# sort them, since we want the *last* AC-DEFINE to be honored.
24544
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24545
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24546
 
rm -f confdef2sed.sed
24547
 
 
24548
 
# This sed command replaces #undef with comments.  This is necessary, for
24549
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
24550
 
# on some systems where configure will not decide to define it.
24551
 
cat >>conftest.undefs <<\_ACEOF
24552
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24553
 
_ACEOF
24554
 
 
24555
 
# Break up conftest.defines because some shells have a limit on the size
24556
 
# of here documents, and old seds have small limits too (100 cmds).
24557
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24558
 
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24559
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24560
 
echo '  :' >>$CONFIG_STATUS
24561
 
rm -f conftest.tail
24562
 
while grep . conftest.defines >/dev/null
24563
 
do
24564
 
  # Write a limited-size here document to $tmp/defines.sed.
24565
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24566
 
  # Speed up: don't consider the non `#define' lines.
24567
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24568
 
  # Work around the forget-to-reset-the-flag bug.
24569
 
  echo 't clr' >>$CONFIG_STATUS
24570
 
  echo ': clr' >>$CONFIG_STATUS
24571
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24572
 
  echo 'CEOF
24573
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24574
 
  rm -f $tmp/in
24575
 
  mv $tmp/out $tmp/in
24576
 
' >>$CONFIG_STATUS
24577
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24578
 
  rm -f conftest.defines
24579
 
  mv conftest.tail conftest.defines
24580
 
done
24581
 
rm -f conftest.defines
24582
 
echo '  fi # grep' >>$CONFIG_STATUS
24583
 
echo >>$CONFIG_STATUS
24584
 
 
24585
 
# Break up conftest.undefs because some shells have a limit on the size
24586
 
# of here documents, and old seds have small limits too (100 cmds).
24587
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24588
 
rm -f conftest.tail
24589
 
while grep . conftest.undefs >/dev/null
24590
 
do
24591
 
  # Write a limited-size here document to $tmp/undefs.sed.
24592
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24593
 
  # Speed up: don't consider the non `#undef'
24594
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24595
 
  # Work around the forget-to-reset-the-flag bug.
24596
 
  echo 't clr' >>$CONFIG_STATUS
24597
 
  echo ': clr' >>$CONFIG_STATUS
24598
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24599
 
  echo 'CEOF
24600
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24601
 
  rm -f $tmp/in
24602
 
  mv $tmp/out $tmp/in
24603
 
' >>$CONFIG_STATUS
24604
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24605
 
  rm -f conftest.undefs
24606
 
  mv conftest.tail conftest.undefs
24607
 
done
24608
 
rm -f conftest.undefs
24609
 
 
24610
 
cat >>$CONFIG_STATUS <<\_ACEOF
24611
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
24612
 
  # use $as_me), people would be surprised to read:
24613
 
  #    /* config.h.  Generated by config.status.  */
24614
 
  if test x"$ac_file" = x-; then
24615
 
    echo "/* Generated by configure.  */" >$tmp/config.h
24616
 
  else
24617
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24618
 
  fi
24619
 
  cat $tmp/in >>$tmp/config.h
24620
 
  rm -f $tmp/in
24621
 
  if test x"$ac_file" != x-; then
24622
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24623
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24624
 
echo "$as_me: $ac_file is unchanged" >&6;}
24625
 
    else
24626
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24627
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24628
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
24629
 
         X"$ac_file" : 'X\(//\)$' \| \
24630
 
         X"$ac_file" : 'X\(/\)' \| \
24631
 
         .     : '\(.\)' 2>/dev/null ||
24632
 
echo X"$ac_file" |
24633
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24634
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24635
 
          /^X\(\/\/\)$/{ s//\1/; q; }
24636
 
          /^X\(\/\).*/{ s//\1/; q; }
24637
 
          s/.*/./; q'`
24638
 
      { if $as_mkdir_p; then
24639
 
    mkdir -p "$ac_dir"
24640
 
  else
24641
 
    as_dir="$ac_dir"
24642
 
    as_dirs=
24643
 
    while test ! -d "$as_dir"; do
24644
 
      as_dirs="$as_dir $as_dirs"
24645
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24646
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24647
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
24648
 
         X"$as_dir" : 'X\(//\)$' \| \
24649
 
         X"$as_dir" : 'X\(/\)' \| \
24650
 
         .     : '\(.\)' 2>/dev/null ||
24651
 
echo X"$as_dir" |
24652
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24653
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24654
 
          /^X\(\/\/\)$/{ s//\1/; q; }
24655
 
          /^X\(\/\).*/{ s//\1/; q; }
24656
 
          s/.*/./; q'`
24657
 
    done
24658
 
    test ! -n "$as_dirs" || mkdir $as_dirs
24659
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24660
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24661
 
   { (exit 1); exit 1; }; }; }
24662
 
 
24663
 
      rm -f $ac_file
24664
 
      mv $tmp/config.h $ac_file
24665
 
    fi
24666
 
  else
24667
 
    cat $tmp/config.h
24668
 
    rm -f $tmp/config.h
24669
 
  fi
24670
 
# Compute $ac_file's index in $config_headers.
24671
 
_am_stamp_count=1
24672
 
for _am_header in $config_headers :; do
24673
 
  case $_am_header in
24674
 
    $ac_file | $ac_file:* )
24675
 
      break ;;
24676
 
    * )
24677
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24678
 
  esac
24679
 
done
24680
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24681
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24682
 
         X$ac_file : 'X\(//\)[^/]' \| \
24683
 
         X$ac_file : 'X\(//\)$' \| \
24684
 
         X$ac_file : 'X\(/\)' \| \
24685
 
         .     : '\(.\)' 2>/dev/null ||
24686
 
echo X$ac_file |
24687
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24688
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24689
 
          /^X\(\/\/\)$/{ s//\1/; q; }
24690
 
          /^X\(\/\).*/{ s//\1/; q; }
24691
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
24692
 
done
24693
 
_ACEOF
24694
 
cat >>$CONFIG_STATUS <<\_ACEOF
24695
 
 
24696
 
#
24697
6093
# CONFIG_COMMANDS section.
24698
6094
#
24699
6095
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24701
6097
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24702
6098
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24703
6099
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24704
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
24705
 
         X"$ac_dest" : 'X\(//\)$' \| \
24706
 
         X"$ac_dest" : 'X\(/\)' \| \
24707
 
         .     : '\(.\)' 2>/dev/null ||
 
6100
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
6101
         X"$ac_dest" : 'X\(//\)$' \| \
 
6102
         X"$ac_dest" : 'X\(/\)' \| \
 
6103
         .     : '\(.\)' 2>/dev/null ||
24708
6104
echo X"$ac_dest" |
24709
6105
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24710
6106
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24711
6107
          /^X\(\/\/\)$/{ s//\1/; q; }
24712
6108
          /^X\(\/\).*/{ s//\1/; q; }
24713
6109
          s/.*/./; q'`
 
6110
  { if $as_mkdir_p; then
 
6111
    mkdir -p "$ac_dir"
 
6112
  else
 
6113
    as_dir="$ac_dir"
 
6114
    as_dirs=
 
6115
    while test ! -d "$as_dir"; do
 
6116
      as_dirs="$as_dir $as_dirs"
 
6117
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
6118
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6119
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
6120
         X"$as_dir" : 'X\(//\)$' \| \
 
6121
         X"$as_dir" : 'X\(/\)' \| \
 
6122
         .     : '\(.\)' 2>/dev/null ||
 
6123
echo X"$as_dir" |
 
6124
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
6125
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
6126
          /^X\(\/\/\)$/{ s//\1/; q; }
 
6127
          /^X\(\/\).*/{ s//\1/; q; }
 
6128
          s/.*/./; q'`
 
6129
    done
 
6130
    test ! -n "$as_dirs" || mkdir $as_dirs
 
6131
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
6132
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
6133
   { (exit 1); exit 1; }; }; }
 
6134
 
24714
6135
  ac_builddir=.
24715
6136
 
24716
6137
if test "$ac_dir" != .; then
24736
6157
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24737
6158
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24738
6159
esac
24739
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24740
 
# absolute.
24741
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24742
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24743
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24744
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
6160
 
 
6161
# Do not use `cd foo && pwd` to compute absolute paths, because
 
6162
# the directories may not exist.
 
6163
case `pwd` in
 
6164
.) ac_abs_builddir="$ac_dir";;
 
6165
*)
 
6166
  case "$ac_dir" in
 
6167
  .) ac_abs_builddir=`pwd`;;
 
6168
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
6169
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
6170
  esac;;
 
6171
esac
 
6172
case $ac_abs_builddir in
 
6173
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
6174
*)
 
6175
  case ${ac_top_builddir}. in
 
6176
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
6177
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
6178
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
6179
  esac;;
 
6180
esac
 
6181
case $ac_abs_builddir in
 
6182
.) ac_abs_srcdir=$ac_srcdir;;
 
6183
*)
 
6184
  case $ac_srcdir in
 
6185
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
6186
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
6187
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
6188
  esac;;
 
6189
esac
 
6190
case $ac_abs_builddir in
 
6191
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
6192
*)
 
6193
  case $ac_top_srcdir in
 
6194
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
6195
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
6196
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
6197
  esac;;
 
6198
esac
24745
6199
 
24746
6200
 
24747
6201
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24759
6213
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24760
6214
    dirpart=`(dirname "$mf") 2>/dev/null ||
24761
6215
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24762
 
         X"$mf" : 'X\(//\)[^/]' \| \
24763
 
         X"$mf" : 'X\(//\)$' \| \
24764
 
         X"$mf" : 'X\(/\)' \| \
24765
 
         .     : '\(.\)' 2>/dev/null ||
 
6216
         X"$mf" : 'X\(//\)[^/]' \| \
 
6217
         X"$mf" : 'X\(//\)$' \| \
 
6218
         X"$mf" : 'X\(/\)' \| \
 
6219
         .     : '\(.\)' 2>/dev/null ||
24766
6220
echo X"$mf" |
24767
6221
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24768
6222
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24772
6226
  else
24773
6227
    continue
24774
6228
  fi
24775
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24776
 
  # Extract the definition of DEP_FILES from the Makefile without
24777
 
  # running `make'.
24778
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
6229
  # Extract the definition of DEPDIR, am__include, and am__quote
 
6230
  # from the Makefile without running `make'.
 
6231
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24779
6232
  test -z "$DEPDIR" && continue
 
6233
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
6234
  test -z "am__include" && continue
 
6235
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24780
6236
  # When using ansi2knr, U may be empty or an underscore; expand it
24781
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
24782
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24783
 
  # We invoke sed twice because it is the simplest approach to
24784
 
  # changing $(DEPDIR) to its actual value in the expansion.
24785
 
  for file in `sed -n -e '
24786
 
    /^DEP_FILES = .*\\\\$/ {
24787
 
      s/^DEP_FILES = //
24788
 
      :loop
24789
 
        s/\\\\$//
24790
 
        p
24791
 
        n
24792
 
        /\\\\$/ b loop
24793
 
      p
24794
 
    }
24795
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
6237
  U=`sed -n 's/^U = //p' < "$mf"`
 
6238
  # Find all dependency output files, they are included files with
 
6239
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
6240
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
6241
  # expansion.
 
6242
  for file in `sed -n "
 
6243
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24796
6244
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24797
6245
    # Make sure the directory exists.
24798
6246
    test -f "$dirpart/$file" && continue
24799
6247
    fdir=`(dirname "$file") 2>/dev/null ||
24800
6248
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24801
 
         X"$file" : 'X\(//\)[^/]' \| \
24802
 
         X"$file" : 'X\(//\)$' \| \
24803
 
         X"$file" : 'X\(/\)' \| \
24804
 
         .     : '\(.\)' 2>/dev/null ||
 
6249
         X"$file" : 'X\(//\)[^/]' \| \
 
6250
         X"$file" : 'X\(//\)$' \| \
 
6251
         X"$file" : 'X\(/\)' \| \
 
6252
         .     : '\(.\)' 2>/dev/null ||
24805
6253
echo X"$file" |
24806
6254
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24807
6255
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24817
6265
      as_dirs="$as_dir $as_dirs"
24818
6266
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24819
6267
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24820
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
24821
 
         X"$as_dir" : 'X\(//\)$' \| \
24822
 
         X"$as_dir" : 'X\(/\)' \| \
24823
 
         .     : '\(.\)' 2>/dev/null ||
 
6268
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
6269
         X"$as_dir" : 'X\(//\)$' \| \
 
6270
         X"$as_dir" : 'X\(/\)' \| \
 
6271
         .     : '\(.\)' 2>/dev/null ||
24824
6272
echo X"$as_dir" |
24825
6273
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24826
6274
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }