~ubuntu-branches/ubuntu/precise/libfs/precise-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Stone
  • Date: 2005-12-20 17:45:53 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051220174553-rpppdpvfs8wmxdyh
Tags: 2:1.0.0-0ubuntu1
New upstream release.

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.59 for libFS 3.0.0.
 
3
# Generated by GNU Autoconf 2.59 for libFS 1.0.0.
4
4
#
5
 
# Report bugs to <keithp@keithp.com>.
 
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
7
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
8
# This configure script is free software; the Free Software Foundation
423
423
# Identity of this package.
424
424
PACKAGE_NAME='libFS'
425
425
PACKAGE_TARNAME='libFS'
426
 
PACKAGE_VERSION='3.0.0'
427
 
PACKAGE_STRING='libFS 3.0.0'
428
 
PACKAGE_BUGREPORT='keithp@keithp.com'
 
426
PACKAGE_VERSION='1.0.0'
 
427
PACKAGE_STRING='libFS 1.0.0'
 
428
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
429
 
430
430
# Factoring default headers for most tests.
431
431
ac_includes_default="\
464
464
# include <unistd.h>
465
465
#endif"
466
466
 
467
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG DEP_CFLAGS DEP_LIBS XTRANS_CFLAGS XTRANS_LIBS LIBOBJS LTLIBOBJS'
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG FS_CFLAGS FS_LIBS XTRANS_CFLAGS XTRANS_LIBS MALLOC_ZERO_CFLAGS XMALLOC_ZERO_CFLAGS XTMALLOC_ZERO_CFLAGS LIBOBJS LTLIBOBJS'
468
468
ac_subst_files=''
469
469
 
470
470
# Initialize some variables set by options.
949
949
ac_env_PKG_CONFIG_value=$PKG_CONFIG
950
950
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951
951
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952
 
ac_env_DEP_CFLAGS_set=${DEP_CFLAGS+set}
953
 
ac_env_DEP_CFLAGS_value=$DEP_CFLAGS
954
 
ac_cv_env_DEP_CFLAGS_set=${DEP_CFLAGS+set}
955
 
ac_cv_env_DEP_CFLAGS_value=$DEP_CFLAGS
956
 
ac_env_DEP_LIBS_set=${DEP_LIBS+set}
957
 
ac_env_DEP_LIBS_value=$DEP_LIBS
958
 
ac_cv_env_DEP_LIBS_set=${DEP_LIBS+set}
959
 
ac_cv_env_DEP_LIBS_value=$DEP_LIBS
 
952
ac_env_FS_CFLAGS_set=${FS_CFLAGS+set}
 
953
ac_env_FS_CFLAGS_value=$FS_CFLAGS
 
954
ac_cv_env_FS_CFLAGS_set=${FS_CFLAGS+set}
 
955
ac_cv_env_FS_CFLAGS_value=$FS_CFLAGS
 
956
ac_env_FS_LIBS_set=${FS_LIBS+set}
 
957
ac_env_FS_LIBS_value=$FS_LIBS
 
958
ac_cv_env_FS_LIBS_set=${FS_LIBS+set}
 
959
ac_cv_env_FS_LIBS_value=$FS_LIBS
960
960
ac_env_XTRANS_CFLAGS_set=${XTRANS_CFLAGS+set}
961
961
ac_env_XTRANS_CFLAGS_value=$XTRANS_CFLAGS
962
962
ac_cv_env_XTRANS_CFLAGS_set=${XTRANS_CFLAGS+set}
973
973
  # Omit some internal or obsolete options to make the list less imposing.
974
974
  # This message is too long to be a string in the A/UX 3.1 sh.
975
975
  cat <<_ACEOF
976
 
\`configure' configures libFS 3.0.0 to adapt to many kinds of systems.
 
976
\`configure' configures libFS 1.0.0 to adapt to many kinds of systems.
977
977
 
978
978
Usage: $0 [OPTION]... [VAR=VALUE]...
979
979
 
1039
1039
 
1040
1040
if test -n "$ac_init_help"; then
1041
1041
  case $ac_init_help in
1042
 
     short | recursive ) echo "Configuration of libFS 3.0.0:";;
 
1042
     short | recursive ) echo "Configuration of libFS 1.0.0:";;
1043
1043
   esac
1044
1044
  cat <<\_ACEOF
1045
1045
 
1046
1046
Optional Features:
1047
1047
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1048
1048
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1049
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1050
 
                          (and sometimes confusing) to the casual installer
1051
 
  --disable-dependency-tracking  speeds up one-time build
1052
 
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1049
  --enable-maintainer-mode enable make rules and dependencies not useful
 
1050
                          (and sometimes confusing) to the casual installer
 
1051
  --disable-dependency-tracking Speeds up one-time builds
 
1052
  --enable-dependency-tracking  Do not reject slow dependency extractors
1053
1053
  --enable-shared[=PKGS]
1054
1054
                          build shared libraries [default=yes]
1055
1055
  --enable-static[=PKGS]
1057
1057
  --enable-fast-install[=PKGS]
1058
1058
                          optimize for fast installation [default=yes]
1059
1059
  --disable-libtool-lock  avoid locking (might break parallel builds)
1060
 
  --disable-unix-transport
1061
 
  --disable-tcp-transport
1062
 
  --disable-ipv6
 
1060
  --enable-unix-transport Enable UNIX domain socket transport
 
1061
  --enable-tcp-transport  Enable TCP socket transport
 
1062
  --enable-IPv6           Enable IPv6 support
 
1063
  --enable-malloc0returnsnull
 
1064
                          malloc(0) returns NULL (default: auto)
1063
1065
 
1064
1066
Optional Packages:
1065
1067
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1069
1071
                          both]
1070
1072
  --with-tags[=TAGS]
1071
1073
                          include additional configurations [automatic]
 
1074
  --with-release-version=STRING
 
1075
                          Use release version string in package name
1072
1076
 
1073
1077
Some influential environment variables:
1074
1078
  CC          C compiler command
1084
1088
  F77         Fortran 77 compiler command
1085
1089
  FFLAGS      Fortran 77 compiler flags
1086
1090
  PKG_CONFIG  path to pkg-config utility
1087
 
  DEP_CFLAGS  C compiler flags for DEP, overriding pkg-config
1088
 
  DEP_LIBS    linker flags for DEP, overriding pkg-config
 
1091
  FS_CFLAGS   C compiler flags for FS, overriding pkg-config
 
1092
  FS_LIBS     linker flags for FS, overriding pkg-config
1089
1093
  XTRANS_CFLAGS
1090
1094
              C compiler flags for XTRANS, overriding pkg-config
1091
1095
  XTRANS_LIBS linker flags for XTRANS, overriding pkg-config
1093
1097
Use these variables to override the choices made by `configure' or to help
1094
1098
it to find libraries and programs with nonstandard names/locations.
1095
1099
 
1096
 
Report bugs to <keithp@keithp.com>.
 
1100
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1097
1101
_ACEOF
1098
1102
fi
1099
1103
 
1182
1186
    else
1183
1187
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1184
1188
    fi
1185
 
    cd "$ac_popdir"
 
1189
    cd $ac_popdir
1186
1190
  done
1187
1191
fi
1188
1192
 
1189
1193
test -n "$ac_init_help" && exit 0
1190
1194
if $ac_init_version; then
1191
1195
  cat <<\_ACEOF
1192
 
libFS configure 3.0.0
 
1196
libFS configure 1.0.0
1193
1197
generated by GNU Autoconf 2.59
1194
1198
 
1195
1199
Copyright (C) 2003 Free Software Foundation, Inc.
1203
1207
This file contains any messages produced by compilers while
1204
1208
running configure, to aid debugging if configure makes a mistake.
1205
1209
 
1206
 
It was created by libFS $as_me 3.0.0, which was
 
1210
It was created by libFS $as_me 1.0.0, which was
1207
1211
generated by GNU Autoconf 2.59.  Invocation command line was
1208
1212
 
1209
1213
  $ $0 $@
1539
1543
 
1540
1544
 
1541
1545
 
1542
 
am__api_version="1.9"
 
1546
am__api_version="1.7"
1543
1547
ac_aux_dir=
1544
1548
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545
1549
  if test -f $ac_dir/install-sh; then
1702
1706
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1703
1707
rm conftest.sed
1704
1708
 
 
1709
 
1705
1710
# expand $ac_aux_dir to an absolute path
1706
1711
am_aux_dir=`cd $ac_aux_dir && pwd`
1707
1712
 
1715
1720
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1716
1721
fi
1717
1722
 
1718
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1719
 
  # We used to keeping the `.' as first argument, in order to
1720
 
  # allow $(mkdir_p) to be used without argument.  As in
1721
 
  #   $(mkdir_p) $(somedir)
1722
 
  # where $(somedir) is conditionally defined.  However this is wrong
1723
 
  # for two reasons:
1724
 
  #  1. if the package is installed by a user who cannot write `.'
1725
 
  #     make install will fail,
1726
 
  #  2. the above comment should most certainly read
1727
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1728
 
  #     so it does not work when $(somedir) is undefined and
1729
 
  #     $(DESTDIR) is not.
1730
 
  #  To support the latter case, we have to write
1731
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1732
 
  #  so the `.' trick is pointless.
1733
 
  mkdir_p='mkdir -p --'
1734
 
else
1735
 
  # On NextStep and OpenStep, the `mkdir' command does not
1736
 
  # recognize any option.  It will interpret all options as
1737
 
  # directories to create, and then abort because `.' already
1738
 
  # exists.
1739
 
  for d in ./-p ./--version;
1740
 
  do
1741
 
    test -d $d && rmdir $d
1742
 
  done
1743
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1744
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1745
 
    mkdir_p='$(mkinstalldirs)'
1746
 
  else
1747
 
    mkdir_p='$(install_sh) -d'
1748
 
  fi
1749
 
fi
1750
 
 
1751
1723
for ac_prog in gawk mawk nawk awk
1752
1724
do
1753
1725
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1826
1798
fi
1827
1799
rmdir .tst 2>/dev/null
1828
1800
 
1829
 
# test to see if srcdir already configured
 
1801
 # test to see if srcdir already configured
1830
1802
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1831
1803
   test -f $srcdir/config.status; then
1832
1804
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1846
1818
 
1847
1819
# Define the identity of the package.
1848
1820
 PACKAGE='libFS'
1849
 
 VERSION='3.0.0'
 
1821
 VERSION='1.0.0'
1850
1822
 
1851
1823
 
1852
1824
cat >>confdefs.h <<_ACEOF
1874
1846
 
1875
1847
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1876
1848
 
 
1849
 
 
1850
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1851
 
1877
1852
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1878
1853
 
1879
1854
# Installed binaries are usually stripped using `strip' when the user
1966
1941
 
1967
1942
# We need awk for the "check" target.  The system "awk" is bad on
1968
1943
# some platforms.
1969
 
# Always define AMTAR for backward compatibility.
1970
 
 
1971
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1972
 
 
1973
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1974
 
 
1975
 
 
1976
1944
 
1977
1945
 
1978
1946
 
2573
2541
  cat conftest.err >&5
2574
2542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575
2543
  (exit $ac_status); } &&
2576
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2544
         { ac_try='test -z "$ac_c_werror_flag"
 
2545
                         || test ! -s conftest.err'
2577
2546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578
2547
  (eval $ac_try) 2>&5
2579
2548
  ac_status=$?
2631
2600
  cat conftest.err >&5
2632
2601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633
2602
  (exit $ac_status); } &&
2634
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2603
         { ac_try='test -z "$ac_c_werror_flag"
 
2604
                         || test ! -s conftest.err'
2635
2605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636
2606
  (eval $ac_try) 2>&5
2637
2607
  ac_status=$?
2747
2717
  cat conftest.err >&5
2748
2718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749
2719
  (exit $ac_status); } &&
2750
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2720
         { ac_try='test -z "$ac_c_werror_flag"
 
2721
                         || test ! -s conftest.err'
2751
2722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752
2723
  (eval $ac_try) 2>&5
2753
2724
  ac_status=$?
2801
2772
  cat conftest.err >&5
2802
2773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
2774
  (exit $ac_status); } &&
2804
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2775
         { ac_try='test -z "$ac_c_werror_flag"
 
2776
                         || test ! -s conftest.err'
2805
2777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806
2778
  (eval $ac_try) 2>&5
2807
2779
  ac_status=$?
2846
2818
  cat conftest.err >&5
2847
2819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
2820
  (exit $ac_status); } &&
2849
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2821
         { ac_try='test -z "$ac_c_werror_flag"
 
2822
                         || test ! -s conftest.err'
2850
2823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851
2824
  (eval $ac_try) 2>&5
2852
2825
  ac_status=$?
2890
2863
  cat conftest.err >&5
2891
2864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892
2865
  (exit $ac_status); } &&
2893
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2866
         { ac_try='test -z "$ac_c_werror_flag"
 
2867
                         || test ! -s conftest.err'
2894
2868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895
2869
  (eval $ac_try) 2>&5
2896
2870
  ac_status=$?
3035
3009
    : > sub/conftest.c
3036
3010
    for i in 1 2 3 4 5 6; do
3037
3011
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3038
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3039
 
      # Solaris 8's {/usr,}/bin/sh.
3040
 
      touch sub/conftst$i.h
 
3012
      : > sub/conftst$i.h
3041
3013
    done
3042
3014
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3043
3015
 
3065
3037
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3066
3038
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3067
3039
      # icc doesn't choke on unknown options, it will just issue warnings
3068
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3069
 
      # that says an option was ignored or not supported.
3070
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3071
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3072
 
      # The diagnosis changed in icc 8.0:
3073
 
      #   icc: Command line remark: option '-MP' not supported
3074
 
      if (grep 'ignoring option' conftest.err ||
3075
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3040
      # (even with -Werror).  So we grep stderr for any message
 
3041
      # that says an option was ignored.
 
3042
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3076
3043
        am_cv_CC_dependencies_compiler_type=$depmode
3077
3044
        break
3078
3045
      fi
3516
3483
  ;;
3517
3484
 
3518
3485
cygwin*)
3519
 
  # func_win32_libid is a shell function defined in ltmain.sh
 
3486
  # win32_libid is a shell function defined in ltmain.sh
3520
3487
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3521
 
  lt_cv_file_magic_cmd='func_win32_libid'
 
3488
  lt_cv_file_magic_cmd='win32_libid'
3522
3489
  ;;
3523
3490
 
3524
3491
mingw* | pw32*)
3525
3492
  # Base MSYS/MinGW do not provide the 'file' command needed by
3526
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3493
  # win32_libid shell function, so use a weaker test based on 'objdump'.
3527
3494
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3528
3495
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3529
3496
  ;;
3582
3549
 
3583
3550
# This must be Linux ELF.
3584
3551
linux*)
 
3552
  case $host_cpu in
 
3553
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
 
3554
    lt_cv_deplibs_check_method=pass_all ;;
 
3555
  *)
 
3556
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
3557
    # this will be overridden with pass_all, but let us keep it just in case
 
3558
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
3559
  esac
 
3560
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3585
3561
  lt_cv_deplibs_check_method=pass_all
3586
3562
  ;;
3587
3563
 
3588
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3564
netbsd*)
3589
3565
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3590
3566
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3591
3567
  else
3702
3678
  ;;
3703
3679
*-*-irix6*)
3704
3680
  # Find out which ABI we are using.
3705
 
  echo '#line 3705 "configure"' > conftest.$ac_ext
 
3681
  echo '#line 3681 "configure"' > conftest.$ac_ext
3706
3682
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707
3683
  (eval $ac_compile) 2>&5
3708
3684
  ac_status=$?
3783
3759
  rm -rf conftest*
3784
3760
  ;;
3785
3761
 
 
3762
*-*-linux*)
 
3763
  # Test if the compiler is 64bit
 
3764
  echo 'int i;' > conftest.$ac_ext
 
3765
  lt_cv_cc_64bit_output=no
 
3766
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3767
  (eval $ac_compile) 2>&5
 
3768
  ac_status=$?
 
3769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3770
  (exit $ac_status); }; then
 
3771
    case `/usr/bin/file conftest.$ac_objext` in
 
3772
    *"ELF 64"*)
 
3773
      lt_cv_cc_64bit_output=yes
 
3774
      ;;
 
3775
    esac
 
3776
  fi
 
3777
  rm -rf conftest*
 
3778
  ;;
 
3779
 
3786
3780
*-*-sco3.2v5*)
3787
3781
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3788
3782
  SAVE_CFLAGS="$CFLAGS"
3822
3816
  cat conftest.err >&5
3823
3817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824
3818
  (exit $ac_status); } &&
3825
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3819
         { ac_try='test -z "$ac_c_werror_flag"
 
3820
                         || test ! -s conftest.err'
3826
3821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827
3822
  (eval $ac_try) 2>&5
3828
3823
  ac_status=$?
4131
4126
  cat conftest.err >&5
4132
4127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133
4128
  (exit $ac_status); } &&
4134
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4129
         { ac_try='test -z "$ac_c_werror_flag"
 
4130
                         || test ! -s conftest.err'
4135
4131
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136
4132
  (eval $ac_try) 2>&5
4137
4133
  ac_status=$?
4301
4297
  cat conftest.err >&5
4302
4298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303
4299
  (exit $ac_status); } &&
4304
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4300
         { ac_try='test -z "$ac_c_werror_flag"
 
4301
                         || test ! -s conftest.err'
4305
4302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306
4303
  (eval $ac_try) 2>&5
4307
4304
  ac_status=$?
4368
4365
  cat conftest.err >&5
4369
4366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370
4367
  (exit $ac_status); } &&
4371
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4368
         { ac_try='test -z "$ac_c_werror_flag"
 
4369
                         || test ! -s conftest.err'
4372
4370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373
4371
  (eval $ac_try) 2>&5
4374
4372
  ac_status=$?
4455
4453
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4456
4454
    (
4457
4455
      cat <<\_ASBOX
4458
 
## -------------------------------- ##
4459
 
## Report this to keithp@keithp.com ##
4460
 
## -------------------------------- ##
 
4456
## ---------------------------------------------------------------------- ##
 
4457
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
 
4458
## ---------------------------------------------------------------------- ##
4461
4459
_ASBOX
4462
4460
    ) |
4463
4461
      sed "s/^/$as_me: WARNING:     /" >&2
4628
4626
  cat conftest.err >&5
4629
4627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630
4628
  (exit $ac_status); } &&
4631
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4629
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4630
                         || test ! -s conftest.err'
4632
4631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633
4632
  (eval $ac_try) 2>&5
4634
4633
  ac_status=$?
4686
4685
  cat conftest.err >&5
4687
4686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
4687
  (exit $ac_status); } &&
4689
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4688
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4689
                         || test ! -s conftest.err'
4690
4690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691
4691
  (eval $ac_try) 2>&5
4692
4692
  ac_status=$?
4757
4757
  cat conftest.err >&5
4758
4758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759
4759
  (exit $ac_status); } &&
4760
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4760
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4761
                         || test ! -s conftest.err'
4761
4762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762
4763
  (eval $ac_try) 2>&5
4763
4764
  ac_status=$?
4801
4802
  cat conftest.err >&5
4802
4803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803
4804
  (exit $ac_status); } &&
4804
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4805
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4806
                         || test ! -s conftest.err'
4805
4807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806
4808
  (eval $ac_try) 2>&5
4807
4809
  ac_status=$?
4875
4877
    : > sub/conftest.c
4876
4878
    for i in 1 2 3 4 5 6; do
4877
4879
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4878
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4879
 
      # Solaris 8's {/usr,}/bin/sh.
4880
 
      touch sub/conftst$i.h
 
4880
      : > sub/conftst$i.h
4881
4881
    done
4882
4882
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4883
4883
 
4905
4905
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4906
4906
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4907
4907
      # icc doesn't choke on unknown options, it will just issue warnings
4908
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4909
 
      # that says an option was ignored or not supported.
4910
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4911
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4912
 
      # The diagnosis changed in icc 8.0:
4913
 
      #   icc: Command line remark: option '-MP' not supported
4914
 
      if (grep 'ignoring option' conftest.err ||
4915
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4908
      # (even with -Werror).  So we grep stderr for any message
 
4909
      # that says an option was ignored.
 
4910
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4916
4911
        am_cv_CXX_dependencies_compiler_type=$depmode
4917
4912
        break
4918
4913
      fi
5266
5261
 
5267
5262
 
5268
5263
# Provide some information about the compiler.
5269
 
echo "$as_me:5269:" \
 
5264
echo "$as_me:5264:" \
5270
5265
     "checking for Fortran 77 compiler version" >&5
5271
5266
ac_compiler=`set X $ac_compile; echo $2`
5272
5267
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5312
5307
  cat conftest.err >&5
5313
5308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314
5309
  (exit $ac_status); } &&
5315
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5310
         { ac_try='test -z "$ac_f77_werror_flag"
 
5311
                         || test ! -s conftest.err'
5316
5312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317
5313
  (eval $ac_try) 2>&5
5318
5314
  ac_status=$?
5361
5357
  cat conftest.err >&5
5362
5358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363
5359
  (exit $ac_status); } &&
5364
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5360
         { ac_try='test -z "$ac_f77_werror_flag"
 
5361
                         || test ! -s conftest.err'
5365
5362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366
5363
  (eval $ac_try) 2>&5
5367
5364
  ac_status=$?
5419
5416
  echo $ECHO_N "(cached) $ECHO_C" >&6
5420
5417
else
5421
5418
    i=0
5422
 
  teststring="ABCD"
 
5419
  testring="ABCD"
5423
5420
 
5424
5421
  case $build_os in
5425
5422
  msdosdjgpp*)
5458
5455
    # If test is not a shell built-in, we'll probably end up computing a
5459
5456
    # maximum length that is only half of the actual maximum length, but
5460
5457
    # we can't tell.
5461
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5462
 
               = "XX$teststring") >/dev/null 2>&1 &&
5463
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5458
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
5459
               = "XX$testring") >/dev/null 2>&1 &&
 
5460
            new_result=`expr "X$testring" : ".*" 2>&1` &&
5464
5461
            lt_cv_sys_max_cmd_len=$new_result &&
5465
5462
            test $i != 17 # 1/2 MB should be enough
5466
5463
    do
5467
5464
      i=`expr $i + 1`
5468
 
      teststring=$teststring$teststring
 
5465
      testring=$testring$testring
5469
5466
    done
5470
 
    teststring=
 
5467
    testring=
5471
5468
    # Add a significant safety factor because C++ compilers can tack on massive
5472
5469
    # amounts of additional arguments before passing them to the linker.
5473
5470
    # It appears as though 1/2 is a usable value.
6298
6295
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6299
6296
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6300
6297
   -e 's:$: $lt_compiler_flag:'`
6301
 
   (eval echo "\"\$as_me:6301: $lt_compile\"" >&5)
 
6298
   (eval echo "\"\$as_me:6298: $lt_compile\"" >&5)
6302
6299
   (eval "$lt_compile" 2>conftest.err)
6303
6300
   ac_status=$?
6304
6301
   cat conftest.err >&5
6305
 
   echo "$as_me:6305: \$? = $ac_status" >&5
 
6302
   echo "$as_me:6302: \$? = $ac_status" >&5
6306
6303
   if (exit $ac_status) && test -s "$ac_outfile"; then
6307
6304
     # The compiler can only warn and ignore the option if not recognized
6308
6305
     # So say no if there are warnings
6531
6528
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6532
6529
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6533
6530
   -e 's:$: $lt_compiler_flag:'`
6534
 
   (eval echo "\"\$as_me:6534: $lt_compile\"" >&5)
 
6531
   (eval echo "\"\$as_me:6531: $lt_compile\"" >&5)
6535
6532
   (eval "$lt_compile" 2>conftest.err)
6536
6533
   ac_status=$?
6537
6534
   cat conftest.err >&5
6538
 
   echo "$as_me:6538: \$? = $ac_status" >&5
 
6535
   echo "$as_me:6535: \$? = $ac_status" >&5
6539
6536
   if (exit $ac_status) && test -s "$ac_outfile"; then
6540
6537
     # The compiler can only warn and ignore the option if not recognized
6541
6538
     # So say no if there are warnings
6591
6588
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6592
6589
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6593
6590
   -e 's:$: $lt_compiler_flag:'`
6594
 
   (eval echo "\"\$as_me:6594: $lt_compile\"" >&5)
 
6591
   (eval echo "\"\$as_me:6591: $lt_compile\"" >&5)
6595
6592
   (eval "$lt_compile" 2>out/conftest.err)
6596
6593
   ac_status=$?
6597
6594
   cat out/conftest.err >&5
6598
 
   echo "$as_me:6598: \$? = $ac_status" >&5
 
6595
   echo "$as_me:6595: \$? = $ac_status" >&5
6599
6596
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6600
6597
   then
6601
6598
     # The compiler can only warn and ignore the option if not recognized
6768
6765
      fi
6769
6766
      ;;
6770
6767
 
6771
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6768
    netbsd*)
6772
6769
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6773
6770
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6774
6771
        wlarc=
6807
6804
      ;;
6808
6805
 
6809
6806
  linux*)
6810
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6807
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6811
6808
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812
6809
        archive_cmds="$tmp_archive_cmds"
6813
6810
      supports_anon_versioning=no
6826
6823
      else
6827
6824
        archive_expsym_cmds="$tmp_archive_cmds"
6828
6825
      fi
6829
 
      link_all_deplibs=no
6830
6826
    else
6831
6827
      ld_shlibs=no
6832
6828
    fi
6983
6979
  cat conftest.err >&5
6984
6980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985
6981
  (exit $ac_status); } &&
6986
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6982
         { ac_try='test -z "$ac_c_werror_flag"
 
6983
                         || test ! -s conftest.err'
6987
6984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988
6985
  (eval $ac_try) 2>&5
6989
6986
  ac_status=$?
7043
7040
  cat conftest.err >&5
7044
7041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045
7042
  (exit $ac_status); } &&
7046
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7043
         { ac_try='test -z "$ac_c_werror_flag"
 
7044
                         || test ! -s conftest.err'
7047
7045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048
7046
  (eval $ac_try) 2>&5
7049
7047
  ac_status=$?
7108
7106
      # Tell ltmain to make .lib files, not .a files.
7109
7107
      libext=lib
7110
7108
      # Tell ltmain to make .dll files, not .so files.
7111
 
      shrext_cmds=".dll"
 
7109
      shrext=".dll"
7112
7110
      # FIXME: Setting linknames here is a bad hack.
7113
7111
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7114
7112
      # The linker will automatically build a .lib file if we build a DLL.
7286
7284
      link_all_deplibs=yes
7287
7285
      ;;
7288
7286
 
7289
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7287
    netbsd*)
7290
7288
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7291
7289
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7292
7290
      else
7564
7562
library_names_spec=
7565
7563
libname_spec='lib$name'
7566
7564
soname_spec=
7567
 
shrext_cmds=".so"
 
7565
shrext=".so"
7568
7566
postinstall_cmds=
7569
7567
postuninstall_cmds=
7570
7568
finish_cmds=
7677
7675
 
7678
7676
cygwin* | mingw* | pw32*)
7679
7677
  version_type=windows
7680
 
  shrext_cmds=".dll"
 
7678
  shrext=".dll"
7681
7679
  need_version=no
7682
7680
  need_lib_prefix=no
7683
7681
 
7724
7722
    esac
7725
7723
    ;;
7726
7724
 
 
7725
  linux*)
 
7726
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
7727
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7728
      supports_anon_versioning=no
 
7729
      case `$LD -v 2>/dev/null` in
 
7730
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7731
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7732
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7733
        *\ 2.11.*) ;; # other 2.11 versions
 
7734
        *) supports_anon_versioning=yes ;;
 
7735
      esac
 
7736
      if test $supports_anon_versioning = yes; then
 
7737
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7738
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7739
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
7740
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7741
      else
 
7742
        $archive_expsym_cmds="$archive_cmds"
 
7743
      fi
 
7744
    else
 
7745
      ld_shlibs=no
 
7746
    fi
 
7747
    ;;
 
7748
 
7727
7749
  *)
7728
7750
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7729
7751
    ;;
7742
7764
  soname_spec='${libname}${release}${major}$shared_ext'
7743
7765
  shlibpath_overrides_runpath=yes
7744
7766
  shlibpath_var=DYLD_LIBRARY_PATH
7745
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7767
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7746
7768
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7747
7769
  if test "$GCC" = yes; then
7748
7770
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7825
7847
  need_version=no
7826
7848
  case "$host_cpu" in
7827
7849
  ia64*)
7828
 
    shrext_cmds='.so'
 
7850
    shrext='.so'
7829
7851
    hardcode_into_libs=yes
7830
7852
    dynamic_linker="$host_os dld.so"
7831
7853
    shlibpath_var=LD_LIBRARY_PATH
7840
7862
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7841
7863
    ;;
7842
7864
   hppa*64*)
7843
 
     shrext_cmds='.sl'
 
7865
     shrext='.sl'
7844
7866
     hardcode_into_libs=yes
7845
7867
     dynamic_linker="$host_os dld.sl"
7846
7868
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7851
7873
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7852
7874
     ;;
7853
7875
   *)
7854
 
    shrext_cmds='.sl'
 
7876
    shrext='.sl'
7855
7877
    dynamic_linker="$host_os dld.sl"
7856
7878
    shlibpath_var=SHLIB_PATH
7857
7879
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7922
7944
 
7923
7945
  # Append ld.so.conf contents to the search path
7924
7946
  if test -f /etc/ld.so.conf; then
7925
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7926
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7947
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
7948
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7927
7949
  fi
7928
7950
 
 
7951
  case $host_cpu:$lt_cv_cc_64bit_output in
 
7952
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
 
7953
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
 
7954
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
 
7955
    ;;
 
7956
  esac
 
7957
 
7929
7958
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7930
7959
  # powerpc, because MkLinux only supported shared libraries with the
7931
7960
  # GNU dynamic linker.  Since this was broken with cross compilers,
7933
7962
  # people can always --disable-shared, the test was removed, and we
7934
7963
  # assume the GNU/Linux dynamic linker is in use.
7935
7964
  dynamic_linker='GNU/Linux ld.so'
7936
 
  ;;
7937
7965
 
7938
 
netbsdelf*-gnu)
7939
 
  version_type=linux
7940
 
  need_lib_prefix=no
7941
 
  need_version=no
7942
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7943
 
  soname_spec='${libname}${release}${shared_ext}$major'
7944
 
  shlibpath_var=LD_LIBRARY_PATH
7945
 
  shlibpath_overrides_runpath=no
7946
 
  hardcode_into_libs=yes
7947
 
  dynamic_linker='NetBSD ld.elf_so'
 
7966
  # Find out which ABI we are using (multilib Linux x86_64 hack).
 
7967
  libsuff=
 
7968
  case "$host_cpu" in
 
7969
  x86_64*)
 
7970
    echo '#line 7970 "configure"' > conftest.$ac_ext
 
7971
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7972
  (eval $ac_compile) 2>&5
 
7973
  ac_status=$?
 
7974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7975
  (exit $ac_status); }; then
 
7976
      case `/usr/bin/file conftest.$ac_objext` in
 
7977
      *64-bit*)
 
7978
        libsuff=64
 
7979
        ;;
 
7980
      esac
 
7981
    fi
 
7982
    rm -rf conftest*
 
7983
    ;;
 
7984
  *)
 
7985
    ;;
 
7986
  esac
 
7987
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
7988
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7948
7989
  ;;
7949
7990
 
7950
7991
knetbsd*-gnu)
8017
8058
 
8018
8059
os2*)
8019
8060
  libname_spec='$name'
8020
 
  shrext_cmds=".dll"
 
8061
  shrext=".dll"
8021
8062
  need_lib_prefix=no
8022
8063
  library_names_spec='$libname${shared_ext} $libname.a'
8023
8064
  dynamic_linker='OS/2 ld.exe'
8246
8287
  cat conftest.err >&5
8247
8288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248
8289
  (exit $ac_status); } &&
8249
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8290
         { ac_try='test -z "$ac_c_werror_flag"
 
8291
                         || test ! -s conftest.err'
8250
8292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251
8293
  (eval $ac_try) 2>&5
8252
8294
  ac_status=$?
8349
8391
  cat conftest.err >&5
8350
8392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351
8393
  (exit $ac_status); } &&
8352
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8394
         { ac_try='test -z "$ac_c_werror_flag"
 
8395
                         || test ! -s conftest.err'
8353
8396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354
8397
  (eval $ac_try) 2>&5
8355
8398
  ac_status=$?
8414
8457
  cat conftest.err >&5
8415
8458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416
8459
  (exit $ac_status); } &&
8417
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8460
         { ac_try='test -z "$ac_c_werror_flag"
 
8461
                         || test ! -s conftest.err'
8418
8462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419
8463
  (eval $ac_try) 2>&5
8420
8464
  ac_status=$?
8507
8551
  cat conftest.err >&5
8508
8552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509
8553
  (exit $ac_status); } &&
8510
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8554
         { ac_try='test -z "$ac_c_werror_flag"
 
8555
                         || test ! -s conftest.err'
8511
8556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512
8557
  (eval $ac_try) 2>&5
8513
8558
  ac_status=$?
8572
8617
  cat conftest.err >&5
8573
8618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574
8619
  (exit $ac_status); } &&
8575
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8620
         { ac_try='test -z "$ac_c_werror_flag"
 
8621
                         || test ! -s conftest.err'
8576
8622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577
8623
  (eval $ac_try) 2>&5
8578
8624
  ac_status=$?
8638
8684
  cat conftest.err >&5
8639
8685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640
8686
  (exit $ac_status); } &&
8641
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8687
         { ac_try='test -z "$ac_c_werror_flag"
 
8688
                         || test ! -s conftest.err'
8642
8689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643
8690
  (eval $ac_try) 2>&5
8644
8691
  ac_status=$?
8704
8751
  cat conftest.err >&5
8705
8752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706
8753
  (exit $ac_status); } &&
8707
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8754
         { ac_try='test -z "$ac_c_werror_flag"
 
8755
                         || test ! -s conftest.err'
8708
8756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709
8757
  (eval $ac_try) 2>&5
8710
8758
  ac_status=$?
8779
8827
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8780
8828
  lt_status=$lt_dlunknown
8781
8829
  cat > conftest.$ac_ext <<EOF
8782
 
#line 8782 "configure"
 
8830
#line 8830 "configure"
8783
8831
#include "confdefs.h"
8784
8832
 
8785
8833
#if HAVE_DLFCN_H
8877
8925
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8878
8926
  lt_status=$lt_dlunknown
8879
8927
  cat > conftest.$ac_ext <<EOF
8880
 
#line 8880 "configure"
 
8928
#line 8928 "configure"
8881
8929
#include "confdefs.h"
8882
8930
 
8883
8931
#if HAVE_DLFCN_H
9002
9050
  fi
9003
9051
  ;;
9004
9052
 
9005
 
aix4* | aix5*)
 
9053
aix4*)
9006
9054
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9007
9055
    test "$enable_shared" = yes && enable_static=no
9008
9056
  fi
9278
9326
libext="$libext"
9279
9327
 
9280
9328
# Shared library suffix (normally ".so").
9281
 
shrext_cmds='$shrext_cmds'
 
9329
shrext='$shrext'
9282
9330
 
9283
9331
# Executable file suffix (normally "").
9284
9332
exeext="$exeext"
9949
9997
  cat conftest.err >&5
9950
9998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951
9999
  (exit $ac_status); } &&
9952
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10000
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10001
                         || test ! -s conftest.err'
9953
10002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954
10003
  (eval $ac_try) 2>&5
9955
10004
  ac_status=$?
10010
10059
  cat conftest.err >&5
10011
10060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012
10061
  (exit $ac_status); } &&
10013
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10062
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10063
                         || test ! -s conftest.err'
10014
10064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015
10065
  (eval $ac_try) 2>&5
10016
10066
  ac_status=$?
10191
10241
      # explicitly linking system object files so we need to strip them
10192
10242
      # from the output so that they don't get included in the library
10193
10243
      # dependencies.
10194
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10244
      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'
10195
10245
      ;;
10196
10246
    *)
10197
10247
      if test "$GXX" = yes; then
10388
10438
        ;;
10389
10439
    esac
10390
10440
    ;;
10391
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10441
  netbsd*)
10392
10442
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10393
10443
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10394
10444
      wlarc=
10943
10993
            ;;
10944
10994
        esac
10945
10995
        ;;
10946
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10996
      netbsd*)
10947
10997
        ;;
10948
10998
      osf3* | osf4* | osf5*)
10949
10999
        case $cc_basename in
11054
11104
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11055
11105
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11056
11106
   -e 's:$: $lt_compiler_flag:'`
11057
 
   (eval echo "\"\$as_me:11057: $lt_compile\"" >&5)
 
11107
   (eval echo "\"\$as_me:11107: $lt_compile\"" >&5)
11058
11108
   (eval "$lt_compile" 2>conftest.err)
11059
11109
   ac_status=$?
11060
11110
   cat conftest.err >&5
11061
 
   echo "$as_me:11061: \$? = $ac_status" >&5
 
11111
   echo "$as_me:11111: \$? = $ac_status" >&5
11062
11112
   if (exit $ac_status) && test -s "$ac_outfile"; then
11063
11113
     # The compiler can only warn and ignore the option if not recognized
11064
11114
     # So say no if there are warnings
11114
11164
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11115
11165
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11116
11166
   -e 's:$: $lt_compiler_flag:'`
11117
 
   (eval echo "\"\$as_me:11117: $lt_compile\"" >&5)
 
11167
   (eval echo "\"\$as_me:11167: $lt_compile\"" >&5)
11118
11168
   (eval "$lt_compile" 2>out/conftest.err)
11119
11169
   ac_status=$?
11120
11170
   cat out/conftest.err >&5
11121
 
   echo "$as_me:11121: \$? = $ac_status" >&5
 
11171
   echo "$as_me:11171: \$? = $ac_status" >&5
11122
11172
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11123
11173
   then
11124
11174
     # The compiler can only warn and ignore the option if not recognized
11184
11234
  cygwin* | mingw*)
11185
11235
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11186
11236
  ;;
11187
 
  linux*)
11188
 
    link_all_deplibs_CXX=no
11189
 
  ;;
11190
11237
  *)
11191
11238
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11192
11239
  ;;
11268
11315
library_names_spec=
11269
11316
libname_spec='lib$name'
11270
11317
soname_spec=
11271
 
shrext_cmds=".so"
 
11318
shrext=".so"
11272
11319
postinstall_cmds=
11273
11320
postuninstall_cmds=
11274
11321
finish_cmds=
11381
11428
 
11382
11429
cygwin* | mingw* | pw32*)
11383
11430
  version_type=windows
11384
 
  shrext_cmds=".dll"
 
11431
  shrext=".dll"
11385
11432
  need_version=no
11386
11433
  need_lib_prefix=no
11387
11434
 
11428
11475
    esac
11429
11476
    ;;
11430
11477
 
 
11478
  linux*)
 
11479
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
11480
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11481
      supports_anon_versioning=no
 
11482
      case `$LD -v 2>/dev/null` in
 
11483
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
11484
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
11485
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
11486
        *\ 2.11.*) ;; # other 2.11 versions
 
11487
        *) supports_anon_versioning=yes ;;
 
11488
      esac
 
11489
      if test $supports_anon_versioning = yes; then
 
11490
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
11491
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
11492
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
11493
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
11494
      else
 
11495
        $archive_expsym_cmds="$archive_cmds"
 
11496
      fi
 
11497
    else
 
11498
      ld_shlibs=no
 
11499
    fi
 
11500
    ;;
 
11501
 
11431
11502
  *)
11432
11503
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11433
11504
    ;;
11446
11517
  soname_spec='${libname}${release}${major}$shared_ext'
11447
11518
  shlibpath_overrides_runpath=yes
11448
11519
  shlibpath_var=DYLD_LIBRARY_PATH
11449
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11520
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11450
11521
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11451
11522
  if test "$GCC" = yes; then
11452
11523
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11529
11600
  need_version=no
11530
11601
  case "$host_cpu" in
11531
11602
  ia64*)
11532
 
    shrext_cmds='.so'
 
11603
    shrext='.so'
11533
11604
    hardcode_into_libs=yes
11534
11605
    dynamic_linker="$host_os dld.so"
11535
11606
    shlibpath_var=LD_LIBRARY_PATH
11544
11615
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11545
11616
    ;;
11546
11617
   hppa*64*)
11547
 
     shrext_cmds='.sl'
 
11618
     shrext='.sl'
11548
11619
     hardcode_into_libs=yes
11549
11620
     dynamic_linker="$host_os dld.sl"
11550
11621
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11555
11626
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11556
11627
     ;;
11557
11628
   *)
11558
 
    shrext_cmds='.sl'
 
11629
    shrext='.sl'
11559
11630
    dynamic_linker="$host_os dld.sl"
11560
11631
    shlibpath_var=SHLIB_PATH
11561
11632
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11626
11697
 
11627
11698
  # Append ld.so.conf contents to the search path
11628
11699
  if test -f /etc/ld.so.conf; then
11629
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11630
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11700
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
11701
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11631
11702
  fi
11632
11703
 
 
11704
  case $host_cpu:$lt_cv_cc_64bit_output in
 
11705
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
 
11706
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
 
11707
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
 
11708
    ;;
 
11709
  esac
 
11710
 
11633
11711
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11634
11712
  # powerpc, because MkLinux only supported shared libraries with the
11635
11713
  # GNU dynamic linker.  Since this was broken with cross compilers,
11637
11715
  # people can always --disable-shared, the test was removed, and we
11638
11716
  # assume the GNU/Linux dynamic linker is in use.
11639
11717
  dynamic_linker='GNU/Linux ld.so'
11640
 
  ;;
11641
11718
 
11642
 
netbsdelf*-gnu)
11643
 
  version_type=linux
11644
 
  need_lib_prefix=no
11645
 
  need_version=no
11646
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11647
 
  soname_spec='${libname}${release}${shared_ext}$major'
11648
 
  shlibpath_var=LD_LIBRARY_PATH
11649
 
  shlibpath_overrides_runpath=no
11650
 
  hardcode_into_libs=yes
11651
 
  dynamic_linker='NetBSD ld.elf_so'
 
11719
  # Find out which ABI we are using (multilib Linux x86_64 hack).
 
11720
  libsuff=
 
11721
  case "$host_cpu" in
 
11722
  x86_64*)
 
11723
    echo '#line 11723 "configure"' > conftest.$ac_ext
 
11724
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11725
  (eval $ac_compile) 2>&5
 
11726
  ac_status=$?
 
11727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11728
  (exit $ac_status); }; then
 
11729
      case `/usr/bin/file conftest.$ac_objext` in
 
11730
      *64-bit*)
 
11731
        libsuff=64
 
11732
        ;;
 
11733
      esac
 
11734
    fi
 
11735
    rm -rf conftest*
 
11736
    ;;
 
11737
  *)
 
11738
    ;;
 
11739
  esac
 
11740
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
11741
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11652
11742
  ;;
11653
11743
 
11654
11744
knetbsd*-gnu)
11721
11811
 
11722
11812
os2*)
11723
11813
  libname_spec='$name'
11724
 
  shrext_cmds=".dll"
 
11814
  shrext=".dll"
11725
11815
  need_lib_prefix=no
11726
11816
  library_names_spec='$libname${shared_ext} $libname.a'
11727
11817
  dynamic_linker='OS/2 ld.exe'
11950
12040
  cat conftest.err >&5
11951
12041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952
12042
  (exit $ac_status); } &&
11953
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12043
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12044
                         || test ! -s conftest.err'
11954
12045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955
12046
  (eval $ac_try) 2>&5
11956
12047
  ac_status=$?
12053
12144
  cat conftest.err >&5
12054
12145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055
12146
  (exit $ac_status); } &&
12056
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12147
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12148
                         || test ! -s conftest.err'
12057
12149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058
12150
  (eval $ac_try) 2>&5
12059
12151
  ac_status=$?
12118
12210
  cat conftest.err >&5
12119
12211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120
12212
  (exit $ac_status); } &&
12121
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12213
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12214
                         || test ! -s conftest.err'
12122
12215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123
12216
  (eval $ac_try) 2>&5
12124
12217
  ac_status=$?
12211
12304
  cat conftest.err >&5
12212
12305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213
12306
  (exit $ac_status); } &&
12214
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12307
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12308
                         || test ! -s conftest.err'
12215
12309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216
12310
  (eval $ac_try) 2>&5
12217
12311
  ac_status=$?
12276
12370
  cat conftest.err >&5
12277
12371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278
12372
  (exit $ac_status); } &&
12279
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12373
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12374
                         || test ! -s conftest.err'
12280
12375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281
12376
  (eval $ac_try) 2>&5
12282
12377
  ac_status=$?
12342
12437
  cat conftest.err >&5
12343
12438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344
12439
  (exit $ac_status); } &&
12345
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12440
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12441
                         || test ! -s conftest.err'
12346
12442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347
12443
  (eval $ac_try) 2>&5
12348
12444
  ac_status=$?
12408
12504
  cat conftest.err >&5
12409
12505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410
12506
  (exit $ac_status); } &&
12411
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12507
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12508
                         || test ! -s conftest.err'
12412
12509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413
12510
  (eval $ac_try) 2>&5
12414
12511
  ac_status=$?
12483
12580
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12484
12581
  lt_status=$lt_dlunknown
12485
12582
  cat > conftest.$ac_ext <<EOF
12486
 
#line 12486 "configure"
 
12583
#line 12583 "configure"
12487
12584
#include "confdefs.h"
12488
12585
 
12489
12586
#if HAVE_DLFCN_H
12581
12678
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12582
12679
  lt_status=$lt_dlunknown
12583
12680
  cat > conftest.$ac_ext <<EOF
12584
 
#line 12584 "configure"
 
12681
#line 12681 "configure"
12585
12682
#include "confdefs.h"
12586
12683
 
12587
12684
#if HAVE_DLFCN_H
12860
12957
libext="$libext"
12861
12958
 
12862
12959
# Shared library suffix (normally ".so").
12863
 
shrext_cmds='$shrext_cmds'
 
12960
shrext='$shrext'
12864
12961
 
12865
12962
# Executable file suffix (normally "").
12866
12963
exeext="$exeext"
13182
13279
    postinstall_cmds='$RANLIB $lib'
13183
13280
  fi
13184
13281
  ;;
13185
 
aix4* | aix5*)
 
13282
aix4*)
13186
13283
  test "$enable_shared" = yes && enable_static=no
13187
13284
  ;;
13188
13285
esac
13408
13505
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13409
13506
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13410
13507
   -e 's:$: $lt_compiler_flag:'`
13411
 
   (eval echo "\"\$as_me:13411: $lt_compile\"" >&5)
 
13508
   (eval echo "\"\$as_me:13508: $lt_compile\"" >&5)
13412
13509
   (eval "$lt_compile" 2>conftest.err)
13413
13510
   ac_status=$?
13414
13511
   cat conftest.err >&5
13415
 
   echo "$as_me:13415: \$? = $ac_status" >&5
 
13512
   echo "$as_me:13512: \$? = $ac_status" >&5
13416
13513
   if (exit $ac_status) && test -s "$ac_outfile"; then
13417
13514
     # The compiler can only warn and ignore the option if not recognized
13418
13515
     # So say no if there are warnings
13468
13565
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13469
13566
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13470
13567
   -e 's:$: $lt_compiler_flag:'`
13471
 
   (eval echo "\"\$as_me:13471: $lt_compile\"" >&5)
 
13568
   (eval echo "\"\$as_me:13568: $lt_compile\"" >&5)
13472
13569
   (eval "$lt_compile" 2>out/conftest.err)
13473
13570
   ac_status=$?
13474
13571
   cat out/conftest.err >&5
13475
 
   echo "$as_me:13475: \$? = $ac_status" >&5
 
13572
   echo "$as_me:13572: \$? = $ac_status" >&5
13476
13573
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13477
13574
   then
13478
13575
     # The compiler can only warn and ignore the option if not recognized
13645
13742
      fi
13646
13743
      ;;
13647
13744
 
13648
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13745
    netbsd*)
13649
13746
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13650
13747
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13651
13748
        wlarc=
13684
13781
      ;;
13685
13782
 
13686
13783
  linux*)
13687
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13784
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13688
13785
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13689
13786
        archive_cmds_F77="$tmp_archive_cmds"
13690
13787
      supports_anon_versioning=no
13703
13800
      else
13704
13801
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13705
13802
      fi
13706
 
      link_all_deplibs_F77=no
13707
13803
    else
13708
13804
      ld_shlibs_F77=no
13709
13805
    fi
13850
13946
  cat conftest.err >&5
13851
13947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852
13948
  (exit $ac_status); } &&
13853
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13949
         { ac_try='test -z "$ac_f77_werror_flag"
 
13950
                         || test ! -s conftest.err'
13854
13951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855
13952
  (eval $ac_try) 2>&5
13856
13953
  ac_status=$?
13900
13997
  cat conftest.err >&5
13901
13998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902
13999
  (exit $ac_status); } &&
13903
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14000
         { ac_try='test -z "$ac_f77_werror_flag"
 
14001
                         || test ! -s conftest.err'
13904
14002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905
14003
  (eval $ac_try) 2>&5
13906
14004
  ac_status=$?
13965
14063
      # Tell ltmain to make .lib files, not .a files.
13966
14064
      libext=lib
13967
14065
      # Tell ltmain to make .dll files, not .so files.
13968
 
      shrext_cmds=".dll"
 
14066
      shrext=".dll"
13969
14067
      # FIXME: Setting linknames here is a bad hack.
13970
14068
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13971
14069
      # The linker will automatically build a .lib file if we build a DLL.
14143
14241
      link_all_deplibs_F77=yes
14144
14242
      ;;
14145
14243
 
14146
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14244
    netbsd*)
14147
14245
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14148
14246
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14149
14247
      else
14421
14519
library_names_spec=
14422
14520
libname_spec='lib$name'
14423
14521
soname_spec=
14424
 
shrext_cmds=".so"
 
14522
shrext=".so"
14425
14523
postinstall_cmds=
14426
14524
postuninstall_cmds=
14427
14525
finish_cmds=
14534
14632
 
14535
14633
cygwin* | mingw* | pw32*)
14536
14634
  version_type=windows
14537
 
  shrext_cmds=".dll"
 
14635
  shrext=".dll"
14538
14636
  need_version=no
14539
14637
  need_lib_prefix=no
14540
14638
 
14581
14679
    esac
14582
14680
    ;;
14583
14681
 
 
14682
  linux*)
 
14683
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
14684
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14685
      supports_anon_versioning=no
 
14686
      case `$LD -v 2>/dev/null` in
 
14687
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14688
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14689
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14690
        *\ 2.11.*) ;; # other 2.11 versions
 
14691
        *) supports_anon_versioning=yes ;;
 
14692
      esac
 
14693
      if test $supports_anon_versioning = yes; then
 
14694
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
14695
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14696
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14697
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14698
      else
 
14699
        $archive_expsym_cmds="$archive_cmds"
 
14700
      fi
 
14701
    else
 
14702
      ld_shlibs=no
 
14703
    fi
 
14704
    ;;
 
14705
 
14584
14706
  *)
14585
14707
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14586
14708
    ;;
14599
14721
  soname_spec='${libname}${release}${major}$shared_ext'
14600
14722
  shlibpath_overrides_runpath=yes
14601
14723
  shlibpath_var=DYLD_LIBRARY_PATH
14602
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14724
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14603
14725
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14604
14726
  if test "$GCC" = yes; then
14605
14727
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14682
14804
  need_version=no
14683
14805
  case "$host_cpu" in
14684
14806
  ia64*)
14685
 
    shrext_cmds='.so'
 
14807
    shrext='.so'
14686
14808
    hardcode_into_libs=yes
14687
14809
    dynamic_linker="$host_os dld.so"
14688
14810
    shlibpath_var=LD_LIBRARY_PATH
14697
14819
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14698
14820
    ;;
14699
14821
   hppa*64*)
14700
 
     shrext_cmds='.sl'
 
14822
     shrext='.sl'
14701
14823
     hardcode_into_libs=yes
14702
14824
     dynamic_linker="$host_os dld.sl"
14703
14825
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14708
14830
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14709
14831
     ;;
14710
14832
   *)
14711
 
    shrext_cmds='.sl'
 
14833
    shrext='.sl'
14712
14834
    dynamic_linker="$host_os dld.sl"
14713
14835
    shlibpath_var=SHLIB_PATH
14714
14836
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14779
14901
 
14780
14902
  # Append ld.so.conf contents to the search path
14781
14903
  if test -f /etc/ld.so.conf; then
14782
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14783
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14904
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
14905
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14784
14906
  fi
14785
14907
 
 
14908
  case $host_cpu:$lt_cv_cc_64bit_output in
 
14909
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
 
14910
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
 
14911
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
 
14912
    ;;
 
14913
  esac
 
14914
 
14786
14915
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14787
14916
  # powerpc, because MkLinux only supported shared libraries with the
14788
14917
  # GNU dynamic linker.  Since this was broken with cross compilers,
14790
14919
  # people can always --disable-shared, the test was removed, and we
14791
14920
  # assume the GNU/Linux dynamic linker is in use.
14792
14921
  dynamic_linker='GNU/Linux ld.so'
14793
 
  ;;
14794
14922
 
14795
 
netbsdelf*-gnu)
14796
 
  version_type=linux
14797
 
  need_lib_prefix=no
14798
 
  need_version=no
14799
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14800
 
  soname_spec='${libname}${release}${shared_ext}$major'
14801
 
  shlibpath_var=LD_LIBRARY_PATH
14802
 
  shlibpath_overrides_runpath=no
14803
 
  hardcode_into_libs=yes
14804
 
  dynamic_linker='NetBSD ld.elf_so'
 
14923
  # Find out which ABI we are using (multilib Linux x86_64 hack).
 
14924
  libsuff=
 
14925
  case "$host_cpu" in
 
14926
  x86_64*)
 
14927
    echo '#line 14927 "configure"' > conftest.$ac_ext
 
14928
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14929
  (eval $ac_compile) 2>&5
 
14930
  ac_status=$?
 
14931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14932
  (exit $ac_status); }; then
 
14933
      case `/usr/bin/file conftest.$ac_objext` in
 
14934
      *64-bit*)
 
14935
        libsuff=64
 
14936
        ;;
 
14937
      esac
 
14938
    fi
 
14939
    rm -rf conftest*
 
14940
    ;;
 
14941
  *)
 
14942
    ;;
 
14943
  esac
 
14944
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
14945
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14805
14946
  ;;
14806
14947
 
14807
14948
knetbsd*-gnu)
14874
15015
 
14875
15016
os2*)
14876
15017
  libname_spec='$name'
14877
 
  shrext_cmds=".dll"
 
15018
  shrext=".dll"
14878
15019
  need_lib_prefix=no
14879
15020
  library_names_spec='$libname${shared_ext} $libname.a'
14880
15021
  dynamic_linker='OS/2 ld.exe'
15215
15356
libext="$libext"
15216
15357
 
15217
15358
# Shared library suffix (normally ".so").
15218
 
shrext_cmds='$shrext_cmds'
 
15359
shrext='$shrext'
15219
15360
 
15220
15361
# Executable file suffix (normally "").
15221
15362
exeext="$exeext"
15513
15654
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15514
15655
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15515
15656
   -e 's:$: $lt_compiler_flag:'`
15516
 
   (eval echo "\"\$as_me:15516: $lt_compile\"" >&5)
 
15657
   (eval echo "\"\$as_me:15657: $lt_compile\"" >&5)
15517
15658
   (eval "$lt_compile" 2>conftest.err)
15518
15659
   ac_status=$?
15519
15660
   cat conftest.err >&5
15520
 
   echo "$as_me:15520: \$? = $ac_status" >&5
 
15661
   echo "$as_me:15661: \$? = $ac_status" >&5
15521
15662
   if (exit $ac_status) && test -s "$ac_outfile"; then
15522
15663
     # The compiler can only warn and ignore the option if not recognized
15523
15664
     # So say no if there are warnings
15746
15887
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15747
15888
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15748
15889
   -e 's:$: $lt_compiler_flag:'`
15749
 
   (eval echo "\"\$as_me:15749: $lt_compile\"" >&5)
 
15890
   (eval echo "\"\$as_me:15890: $lt_compile\"" >&5)
15750
15891
   (eval "$lt_compile" 2>conftest.err)
15751
15892
   ac_status=$?
15752
15893
   cat conftest.err >&5
15753
 
   echo "$as_me:15753: \$? = $ac_status" >&5
 
15894
   echo "$as_me:15894: \$? = $ac_status" >&5
15754
15895
   if (exit $ac_status) && test -s "$ac_outfile"; then
15755
15896
     # The compiler can only warn and ignore the option if not recognized
15756
15897
     # So say no if there are warnings
15806
15947
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15807
15948
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15808
15949
   -e 's:$: $lt_compiler_flag:'`
15809
 
   (eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
 
15950
   (eval echo "\"\$as_me:15950: $lt_compile\"" >&5)
15810
15951
   (eval "$lt_compile" 2>out/conftest.err)
15811
15952
   ac_status=$?
15812
15953
   cat out/conftest.err >&5
15813
 
   echo "$as_me:15813: \$? = $ac_status" >&5
 
15954
   echo "$as_me:15954: \$? = $ac_status" >&5
15814
15955
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15815
15956
   then
15816
15957
     # The compiler can only warn and ignore the option if not recognized
15983
16124
      fi
15984
16125
      ;;
15985
16126
 
15986
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16127
    netbsd*)
15987
16128
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15988
16129
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15989
16130
        wlarc=
16022
16163
      ;;
16023
16164
 
16024
16165
  linux*)
16025
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16166
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16026
16167
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16027
16168
        archive_cmds_GCJ="$tmp_archive_cmds"
16028
16169
      supports_anon_versioning=no
16041
16182
      else
16042
16183
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16043
16184
      fi
16044
 
      link_all_deplibs_GCJ=no
16045
16185
    else
16046
16186
      ld_shlibs_GCJ=no
16047
16187
    fi
16198
16338
  cat conftest.err >&5
16199
16339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200
16340
  (exit $ac_status); } &&
16201
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16341
         { ac_try='test -z "$ac_c_werror_flag"
 
16342
                         || test ! -s conftest.err'
16202
16343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203
16344
  (eval $ac_try) 2>&5
16204
16345
  ac_status=$?
16258
16399
  cat conftest.err >&5
16259
16400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260
16401
  (exit $ac_status); } &&
16261
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16402
         { ac_try='test -z "$ac_c_werror_flag"
 
16403
                         || test ! -s conftest.err'
16262
16404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263
16405
  (eval $ac_try) 2>&5
16264
16406
  ac_status=$?
16323
16465
      # Tell ltmain to make .lib files, not .a files.
16324
16466
      libext=lib
16325
16467
      # Tell ltmain to make .dll files, not .so files.
16326
 
      shrext_cmds=".dll"
 
16468
      shrext=".dll"
16327
16469
      # FIXME: Setting linknames here is a bad hack.
16328
16470
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16329
16471
      # The linker will automatically build a .lib file if we build a DLL.
16501
16643
      link_all_deplibs_GCJ=yes
16502
16644
      ;;
16503
16645
 
16504
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16646
    netbsd*)
16505
16647
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16506
16648
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16507
16649
      else
16779
16921
library_names_spec=
16780
16922
libname_spec='lib$name'
16781
16923
soname_spec=
16782
 
shrext_cmds=".so"
 
16924
shrext=".so"
16783
16925
postinstall_cmds=
16784
16926
postuninstall_cmds=
16785
16927
finish_cmds=
16892
17034
 
16893
17035
cygwin* | mingw* | pw32*)
16894
17036
  version_type=windows
16895
 
  shrext_cmds=".dll"
 
17037
  shrext=".dll"
16896
17038
  need_version=no
16897
17039
  need_lib_prefix=no
16898
17040
 
16939
17081
    esac
16940
17082
    ;;
16941
17083
 
 
17084
  linux*)
 
17085
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
17086
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17087
      supports_anon_versioning=no
 
17088
      case `$LD -v 2>/dev/null` in
 
17089
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17090
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17091
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17092
        *\ 2.11.*) ;; # other 2.11 versions
 
17093
        *) supports_anon_versioning=yes ;;
 
17094
      esac
 
17095
      if test $supports_anon_versioning = yes; then
 
17096
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
17097
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17098
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
17099
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17100
      else
 
17101
        $archive_expsym_cmds="$archive_cmds"
 
17102
      fi
 
17103
    else
 
17104
      ld_shlibs=no
 
17105
    fi
 
17106
    ;;
 
17107
 
16942
17108
  *)
16943
17109
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16944
17110
    ;;
16957
17123
  soname_spec='${libname}${release}${major}$shared_ext'
16958
17124
  shlibpath_overrides_runpath=yes
16959
17125
  shlibpath_var=DYLD_LIBRARY_PATH
16960
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17126
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16961
17127
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16962
17128
  if test "$GCC" = yes; then
16963
17129
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17040
17206
  need_version=no
17041
17207
  case "$host_cpu" in
17042
17208
  ia64*)
17043
 
    shrext_cmds='.so'
 
17209
    shrext='.so'
17044
17210
    hardcode_into_libs=yes
17045
17211
    dynamic_linker="$host_os dld.so"
17046
17212
    shlibpath_var=LD_LIBRARY_PATH
17055
17221
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17056
17222
    ;;
17057
17223
   hppa*64*)
17058
 
     shrext_cmds='.sl'
 
17224
     shrext='.sl'
17059
17225
     hardcode_into_libs=yes
17060
17226
     dynamic_linker="$host_os dld.sl"
17061
17227
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17066
17232
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17067
17233
     ;;
17068
17234
   *)
17069
 
    shrext_cmds='.sl'
 
17235
    shrext='.sl'
17070
17236
    dynamic_linker="$host_os dld.sl"
17071
17237
    shlibpath_var=SHLIB_PATH
17072
17238
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17137
17303
 
17138
17304
  # Append ld.so.conf contents to the search path
17139
17305
  if test -f /etc/ld.so.conf; then
17140
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17141
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17306
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
17307
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17142
17308
  fi
17143
17309
 
 
17310
  case $host_cpu:$lt_cv_cc_64bit_output in
 
17311
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
 
17312
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
 
17313
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
 
17314
    ;;
 
17315
  esac
 
17316
 
17144
17317
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17145
17318
  # powerpc, because MkLinux only supported shared libraries with the
17146
17319
  # GNU dynamic linker.  Since this was broken with cross compilers,
17148
17321
  # people can always --disable-shared, the test was removed, and we
17149
17322
  # assume the GNU/Linux dynamic linker is in use.
17150
17323
  dynamic_linker='GNU/Linux ld.so'
17151
 
  ;;
17152
17324
 
17153
 
netbsdelf*-gnu)
17154
 
  version_type=linux
17155
 
  need_lib_prefix=no
17156
 
  need_version=no
17157
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17158
 
  soname_spec='${libname}${release}${shared_ext}$major'
17159
 
  shlibpath_var=LD_LIBRARY_PATH
17160
 
  shlibpath_overrides_runpath=no
17161
 
  hardcode_into_libs=yes
17162
 
  dynamic_linker='NetBSD ld.elf_so'
 
17325
  # Find out which ABI we are using (multilib Linux x86_64 hack).
 
17326
  libsuff=
 
17327
  case "$host_cpu" in
 
17328
  x86_64*)
 
17329
    echo '#line 17329 "configure"' > conftest.$ac_ext
 
17330
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17331
  (eval $ac_compile) 2>&5
 
17332
  ac_status=$?
 
17333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17334
  (exit $ac_status); }; then
 
17335
      case `/usr/bin/file conftest.$ac_objext` in
 
17336
      *64-bit*)
 
17337
        libsuff=64
 
17338
        ;;
 
17339
      esac
 
17340
    fi
 
17341
    rm -rf conftest*
 
17342
    ;;
 
17343
  *)
 
17344
    ;;
 
17345
  esac
 
17346
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
17347
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17163
17348
  ;;
17164
17349
 
17165
17350
knetbsd*-gnu)
17232
17417
 
17233
17418
os2*)
17234
17419
  libname_spec='$name'
17235
 
  shrext_cmds=".dll"
 
17420
  shrext=".dll"
17236
17421
  need_lib_prefix=no
17237
17422
  library_names_spec='$libname${shared_ext} $libname.a'
17238
17423
  dynamic_linker='OS/2 ld.exe'
17461
17646
  cat conftest.err >&5
17462
17647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463
17648
  (exit $ac_status); } &&
17464
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17649
         { ac_try='test -z "$ac_c_werror_flag"
 
17650
                         || test ! -s conftest.err'
17465
17651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466
17652
  (eval $ac_try) 2>&5
17467
17653
  ac_status=$?
17564
17750
  cat conftest.err >&5
17565
17751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566
17752
  (exit $ac_status); } &&
17567
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17753
         { ac_try='test -z "$ac_c_werror_flag"
 
17754
                         || test ! -s conftest.err'
17568
17755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569
17756
  (eval $ac_try) 2>&5
17570
17757
  ac_status=$?
17629
17816
  cat conftest.err >&5
17630
17817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631
17818
  (exit $ac_status); } &&
17632
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17819
         { ac_try='test -z "$ac_c_werror_flag"
 
17820
                         || test ! -s conftest.err'
17633
17821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634
17822
  (eval $ac_try) 2>&5
17635
17823
  ac_status=$?
17722
17910
  cat conftest.err >&5
17723
17911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724
17912
  (exit $ac_status); } &&
17725
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17913
         { ac_try='test -z "$ac_c_werror_flag"
 
17914
                         || test ! -s conftest.err'
17726
17915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727
17916
  (eval $ac_try) 2>&5
17728
17917
  ac_status=$?
17787
17976
  cat conftest.err >&5
17788
17977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789
17978
  (exit $ac_status); } &&
17790
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17979
         { ac_try='test -z "$ac_c_werror_flag"
 
17980
                         || test ! -s conftest.err'
17791
17981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792
17982
  (eval $ac_try) 2>&5
17793
17983
  ac_status=$?
17853
18043
  cat conftest.err >&5
17854
18044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855
18045
  (exit $ac_status); } &&
17856
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18046
         { ac_try='test -z "$ac_c_werror_flag"
 
18047
                         || test ! -s conftest.err'
17857
18048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858
18049
  (eval $ac_try) 2>&5
17859
18050
  ac_status=$?
17919
18110
  cat conftest.err >&5
17920
18111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921
18112
  (exit $ac_status); } &&
17922
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18113
         { ac_try='test -z "$ac_c_werror_flag"
 
18114
                         || test ! -s conftest.err'
17923
18115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924
18116
  (eval $ac_try) 2>&5
17925
18117
  ac_status=$?
17994
18186
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17995
18187
  lt_status=$lt_dlunknown
17996
18188
  cat > conftest.$ac_ext <<EOF
17997
 
#line 17997 "configure"
 
18189
#line 18189 "configure"
17998
18190
#include "confdefs.h"
17999
18191
 
18000
18192
#if HAVE_DLFCN_H
18092
18284
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18093
18285
  lt_status=$lt_dlunknown
18094
18286
  cat > conftest.$ac_ext <<EOF
18095
 
#line 18095 "configure"
 
18287
#line 18287 "configure"
18096
18288
#include "confdefs.h"
18097
18289
 
18098
18290
#if HAVE_DLFCN_H
18371
18563
libext="$libext"
18372
18564
 
18373
18565
# Shared library suffix (normally ".so").
18374
 
shrext_cmds='$shrext_cmds'
 
18566
shrext='$shrext'
18375
18567
 
18376
18568
# Executable file suffix (normally "").
18377
18569
exeext="$exeext"
18816
19008
libext="$libext"
18817
19009
 
18818
19010
# Shared library suffix (normally ".so").
18819
 
shrext_cmds='$shrext_cmds'
 
19011
shrext='$shrext'
18820
19012
 
18821
19013
# Executable file suffix (normally "").
18822
19014
exeext="$exeext"
19078
19270
fi
19079
19271
 
19080
19272
 
 
19273
  if test ! -f "${ofile}"; then
 
19274
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
19275
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
19276
  fi
 
19277
  if test -z `grep -e 'shared_ext.*shrext' $ofile`; then
 
19278
    # Make sure $shared_ext gets set to $shrext
 
19279
    if sed -e 's/shared_ext/shrext/g' "$ofile" > "${ofile}T"; then
 
19280
      mv "${ofile}T" "$ofile"
 
19281
      chmod +x "$ofile"
 
19282
    else
 
19283
      rm -f "${ofile}T"
 
19284
      { { echo "$as_me:$LINENO: error: unable to update shared_ext." >&5
 
19285
echo "$as_me: error: unable to update shared_ext." >&2;}
 
19286
   { (exit 1); exit 1; }; }
 
19287
    fi
 
19288
  fi
 
19289
 
 
19290
 
19081
19291
 
19082
19292
# This can be used to rebuild libtool when needed
19083
19293
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19215
19425
fi
19216
19426
 
19217
19427
pkg_failed=no
19218
 
echo "$as_me:$LINENO: checking for DEP" >&5
19219
 
echo $ECHO_N "checking for DEP... $ECHO_C" >&6
 
19428
echo "$as_me:$LINENO: checking for FS" >&5
 
19429
echo $ECHO_N "checking for FS... $ECHO_C" >&6
19220
19430
 
19221
19431
if test -n "$PKG_CONFIG"; then
19222
19432
        if test -n "$PKG_CONFIG" && \
19225
19435
  ac_status=$?
19226
19436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227
19437
  (exit $ac_status); }; then
19228
 
  pkg_cv_DEP_CFLAGS=`$PKG_CONFIG --cflags "xproto fontsproto" 2>/dev/null`
 
19438
  pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto fontsproto" 2>/dev/null`
19229
19439
else
19230
19440
  pkg_failed=yes
19231
19441
fi
19239
19449
  ac_status=$?
19240
19450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241
19451
  (exit $ac_status); }; then
19242
 
  pkg_cv_DEP_LIBS=`$PKG_CONFIG --libs "xproto fontsproto" 2>/dev/null`
 
19452
  pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto fontsproto" 2>/dev/null`
19243
19453
else
19244
19454
  pkg_failed=yes
19245
19455
fi
19248
19458
fi
19249
19459
 
19250
19460
if test $pkg_failed = yes; then
19251
 
        DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto fontsproto"`
 
19461
        FS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto fontsproto"`
19252
19462
        # Put the nasty error message in config.log where it belongs
19253
 
        echo "$DEP_PKG_ERRORS" 1>&5
 
19463
        echo "$FS_PKG_ERRORS" 1>&5
19254
19464
 
19255
19465
        { { echo "$as_me:$LINENO: error: Package requirements (xproto fontsproto) were not met.
19256
19466
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19257
19467
installed software in a non-standard prefix.
19258
19468
 
19259
 
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19469
Alternatively you may set the FS_CFLAGS and FS_LIBS environment variables
19260
19470
to avoid the need to call pkg-config.  See the pkg-config man page for
19261
19471
more details." >&5
19262
19472
echo "$as_me: error: Package requirements (xproto fontsproto) were not met.
19263
19473
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19264
19474
installed software in a non-standard prefix.
19265
19475
 
19266
 
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19476
Alternatively you may set the FS_CFLAGS and FS_LIBS environment variables
19267
19477
to avoid the need to call pkg-config.  See the pkg-config man page for
19268
19478
more details." >&2;}
19269
19479
   { (exit 1); exit 1; }; }
19272
19482
is in your PATH or set the PKG_CONFIG environment variable to the full
19273
19483
path to pkg-config.
19274
19484
 
19275
 
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19485
Alternatively you may set the FS_CFLAGS and FS_LIBS environment variables
19276
19486
to avoid the need to call pkg-config.  See the pkg-config man page for
19277
19487
more details.
19278
19488
 
19282
19492
is in your PATH or set the PKG_CONFIG environment variable to the full
19283
19493
path to pkg-config.
19284
19494
 
19285
 
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19495
Alternatively you may set the FS_CFLAGS and FS_LIBS environment variables
19286
19496
to avoid the need to call pkg-config.  See the pkg-config man page for
19287
19497
more details.
19288
19498
 
19290
19500
See \`config.log' for more details." >&2;}
19291
19501
   { (exit 1); exit 1; }; }
19292
19502
else
19293
 
        DEP_CFLAGS=$pkg_cv_DEP_CFLAGS
19294
 
        DEP_LIBS=$pkg_cv_DEP_LIBS
 
19503
        FS_CFLAGS=$pkg_cv_FS_CFLAGS
 
19504
        FS_LIBS=$pkg_cv_FS_LIBS
 
19505
        echo "$as_me:$LINENO: result: yes" >&5
 
19506
echo "${ECHO_T}yes" >&6
19295
19507
        :
19296
19508
fi
19297
19509
 
19378
19590
else
19379
19591
        XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
19380
19592
        XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
 
19593
        echo "$as_me:$LINENO: result: yes" >&5
 
19594
echo "${ECHO_T}yes" >&6
19381
19595
        :
19382
19596
fi
19383
19597
 
19384
19598
 
19385
19599
 
19386
 
# Check whether --enable-unix-transport or --disable-unix-transport was given.
 
19600
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
19601
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
19602
if test "${ac_cv_type_signal+set}" = set; then
 
19603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19604
else
 
19605
  cat >conftest.$ac_ext <<_ACEOF
 
19606
/* confdefs.h.  */
 
19607
_ACEOF
 
19608
cat confdefs.h >>conftest.$ac_ext
 
19609
cat >>conftest.$ac_ext <<_ACEOF
 
19610
/* end confdefs.h.  */
 
19611
#include <sys/types.h>
 
19612
#include <signal.h>
 
19613
#ifdef signal
 
19614
# undef signal
 
19615
#endif
 
19616
#ifdef __cplusplus
 
19617
extern "C" void (*signal (int, void (*)(int)))(int);
 
19618
#else
 
19619
void (*signal ()) ();
 
19620
#endif
 
19621
 
 
19622
int
 
19623
main ()
 
19624
{
 
19625
int i;
 
19626
  ;
 
19627
  return 0;
 
19628
}
 
19629
_ACEOF
 
19630
rm -f conftest.$ac_objext
 
19631
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19632
  (eval $ac_compile) 2>conftest.er1
 
19633
  ac_status=$?
 
19634
  grep -v '^ *+' conftest.er1 >conftest.err
 
19635
  rm -f conftest.er1
 
19636
  cat conftest.err >&5
 
19637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19638
  (exit $ac_status); } &&
 
19639
         { ac_try='test -z "$ac_c_werror_flag"
 
19640
                         || test ! -s conftest.err'
 
19641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19642
  (eval $ac_try) 2>&5
 
19643
  ac_status=$?
 
19644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19645
  (exit $ac_status); }; } &&
 
19646
         { ac_try='test -s conftest.$ac_objext'
 
19647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19648
  (eval $ac_try) 2>&5
 
19649
  ac_status=$?
 
19650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19651
  (exit $ac_status); }; }; then
 
19652
  ac_cv_type_signal=void
 
19653
else
 
19654
  echo "$as_me: failed program was:" >&5
 
19655
sed 's/^/| /' conftest.$ac_ext >&5
 
19656
 
 
19657
ac_cv_type_signal=int
 
19658
fi
 
19659
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19660
fi
 
19661
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
19662
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
19663
 
 
19664
cat >>confdefs.h <<_ACEOF
 
19665
#define RETSIGTYPE $ac_cv_type_signal
 
19666
_ACEOF
 
19667
 
 
19668
 
 
19669
 
 
19670
 # Check whether --enable-unix-transport or --disable-unix-transport was given.
19387
19671
if test "${enable_unix_transport+set}" = set; then
19388
19672
  enableval="$enable_unix_transport"
19389
19673
  UNIXCONN=$enableval
19397
19681
else
19398
19682
  TCPCONN=yes
19399
19683
fi;
 
19684
 echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
 
19685
echo $ECHO_N "checking if Xtrans should support UNIX socket connections... $ECHO_C" >&6
19400
19686
 if test "$UNIXCONN" = "yes"; then
19401
19687
 
19402
19688
cat >>confdefs.h <<\_ACEOF
19404
19690
_ACEOF
19405
19691
 
19406
19692
 fi
 
19693
 echo "$as_me:$LINENO: result: $UNIXCONN" >&5
 
19694
echo "${ECHO_T}$UNIXCONN" >&6
 
19695
 echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
 
19696
echo $ECHO_N "checking if Xtrans should support TCP socket connections... $ECHO_C" >&6
 
19697
 echo "$as_me:$LINENO: result: $TCPCONN" >&5
 
19698
echo "${ECHO_T}$TCPCONN" >&6
19407
19699
 if test "$TCPCONN" = "yes"; then
19408
19700
 
19409
19701
cat >>confdefs.h <<\_ACEOF
19410
19702
#define TCPCONN 1
19411
19703
_ACEOF
19412
19704
 
19413
 
        # SVR4 hides these in libraries other than libc
19414
 
        echo "$as_me:$LINENO: checking for library containing socket" >&5
 
19705
 
 
19706
 # SVR4 hides these in libraries other than libc
 
19707
 echo "$as_me:$LINENO: checking for library containing socket" >&5
19415
19708
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
19416
19709
if test "${ac_cv_search_socket+set}" = set; then
19417
19710
  echo $ECHO_N "(cached) $ECHO_C" >&6
19449
19742
  cat conftest.err >&5
19450
19743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451
19744
  (exit $ac_status); } &&
19452
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19745
         { ac_try='test -z "$ac_c_werror_flag"
 
19746
                         || test ! -s conftest.err'
19453
19747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454
19748
  (eval $ac_try) 2>&5
19455
19749
  ac_status=$?
19503
19797
  cat conftest.err >&5
19504
19798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505
19799
  (exit $ac_status); } &&
19506
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19800
         { ac_try='test -z "$ac_c_werror_flag"
 
19801
                         || test ! -s conftest.err'
19507
19802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508
19803
  (eval $ac_try) 2>&5
19509
19804
  ac_status=$?
19535
19830
 
19536
19831
fi
19537
19832
 
19538
 
        echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
19833
 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19539
19834
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
19540
19835
if test "${ac_cv_search_gethostbyname+set}" = set; then
19541
19836
  echo $ECHO_N "(cached) $ECHO_C" >&6
19573
19868
  cat conftest.err >&5
19574
19869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575
19870
  (exit $ac_status); } &&
19576
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19871
         { ac_try='test -z "$ac_c_werror_flag"
 
19872
                         || test ! -s conftest.err'
19577
19873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578
19874
  (eval $ac_try) 2>&5
19579
19875
  ac_status=$?
19627
19923
  cat conftest.err >&5
19628
19924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629
19925
  (exit $ac_status); } &&
19630
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19926
         { ac_try='test -z "$ac_c_werror_flag"
 
19927
                         || test ! -s conftest.err'
19631
19928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632
19929
  (eval $ac_try) 2>&5
19633
19930
  ac_status=$?
19659
19956
 
19660
19957
fi
19661
19958
 
19662
 
 fi
 
19959
 
19663
19960
 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19664
19961
 # Check whether --enable-ipv6 or --disable-ipv6 was given.
19665
19962
if test "${enable_ipv6+set}" = set; then
19731
20028
  cat conftest.err >&5
19732
20029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733
20030
  (exit $ac_status); } &&
19734
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20031
         { ac_try='test -z "$ac_c_werror_flag"
 
20032
                         || test ! -s conftest.err'
19735
20033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736
20034
  (eval $ac_try) 2>&5
19737
20035
  ac_status=$?
19762
20060
fi
19763
20061
 
19764
20062
fi;
 
20063
 echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
 
20064
echo $ECHO_N "checking if IPv6 support should be built... $ECHO_C" >&6
19765
20065
 if test "$IPV6CONN" = "yes"; then
19766
20066
 
19767
20067
cat >>confdefs.h <<\_ACEOF
19769
20069
_ACEOF
19770
20070
 
19771
20071
 fi
 
20072
 echo "$as_me:$LINENO: result: $IPV6CONN" >&5
 
20073
echo "${ECHO_T}$IPV6CONN" >&6
 
20074
 
 
20075
 # 4.3BSD-Reno added a new member to struct sockaddr_in
 
20076
 echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
 
20077
echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6
 
20078
if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
 
20079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20080
else
 
20081
  cat >conftest.$ac_ext <<_ACEOF
 
20082
/* confdefs.h.  */
 
20083
_ACEOF
 
20084
cat confdefs.h >>conftest.$ac_ext
 
20085
cat >>conftest.$ac_ext <<_ACEOF
 
20086
/* end confdefs.h.  */
 
20087
 
 
20088
#include <sys/types.h>
 
20089
#include <sys/socket.h>
 
20090
#include <netinet/in.h>
 
20091
 
 
20092
 
 
20093
int
 
20094
main ()
 
20095
{
 
20096
static struct sockaddr_in ac_aggr;
 
20097
if (ac_aggr.sin_len)
 
20098
return 0;
 
20099
  ;
 
20100
  return 0;
 
20101
}
 
20102
_ACEOF
 
20103
rm -f conftest.$ac_objext
 
20104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20105
  (eval $ac_compile) 2>conftest.er1
 
20106
  ac_status=$?
 
20107
  grep -v '^ *+' conftest.er1 >conftest.err
 
20108
  rm -f conftest.er1
 
20109
  cat conftest.err >&5
 
20110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20111
  (exit $ac_status); } &&
 
20112
         { ac_try='test -z "$ac_c_werror_flag"
 
20113
                         || test ! -s conftest.err'
 
20114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20115
  (eval $ac_try) 2>&5
 
20116
  ac_status=$?
 
20117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20118
  (exit $ac_status); }; } &&
 
20119
         { ac_try='test -s conftest.$ac_objext'
 
20120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20121
  (eval $ac_try) 2>&5
 
20122
  ac_status=$?
 
20123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20124
  (exit $ac_status); }; }; then
 
20125
  ac_cv_member_struct_sockaddr_in_sin_len=yes
 
20126
else
 
20127
  echo "$as_me: failed program was:" >&5
 
20128
sed 's/^/| /' conftest.$ac_ext >&5
 
20129
 
 
20130
cat >conftest.$ac_ext <<_ACEOF
 
20131
/* confdefs.h.  */
 
20132
_ACEOF
 
20133
cat confdefs.h >>conftest.$ac_ext
 
20134
cat >>conftest.$ac_ext <<_ACEOF
 
20135
/* end confdefs.h.  */
 
20136
 
 
20137
#include <sys/types.h>
 
20138
#include <sys/socket.h>
 
20139
#include <netinet/in.h>
 
20140
 
 
20141
 
 
20142
int
 
20143
main ()
 
20144
{
 
20145
static struct sockaddr_in ac_aggr;
 
20146
if (sizeof ac_aggr.sin_len)
 
20147
return 0;
 
20148
  ;
 
20149
  return 0;
 
20150
}
 
20151
_ACEOF
 
20152
rm -f conftest.$ac_objext
 
20153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20154
  (eval $ac_compile) 2>conftest.er1
 
20155
  ac_status=$?
 
20156
  grep -v '^ *+' conftest.er1 >conftest.err
 
20157
  rm -f conftest.er1
 
20158
  cat conftest.err >&5
 
20159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20160
  (exit $ac_status); } &&
 
20161
         { ac_try='test -z "$ac_c_werror_flag"
 
20162
                         || test ! -s conftest.err'
 
20163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20164
  (eval $ac_try) 2>&5
 
20165
  ac_status=$?
 
20166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20167
  (exit $ac_status); }; } &&
 
20168
         { ac_try='test -s conftest.$ac_objext'
 
20169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20170
  (eval $ac_try) 2>&5
 
20171
  ac_status=$?
 
20172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20173
  (exit $ac_status); }; }; then
 
20174
  ac_cv_member_struct_sockaddr_in_sin_len=yes
 
20175
else
 
20176
  echo "$as_me: failed program was:" >&5
 
20177
sed 's/^/| /' conftest.$ac_ext >&5
 
20178
 
 
20179
ac_cv_member_struct_sockaddr_in_sin_len=no
 
20180
fi
 
20181
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20182
fi
 
20183
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20184
fi
 
20185
echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
 
20186
echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6
 
20187
if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
 
20188
 
 
20189
cat >>confdefs.h <<\_ACEOF
 
20190
#define BSD44SOCKETS 1
 
20191
_ACEOF
 
20192
 
 
20193
fi
 
20194
 
 
20195
 
 
20196
 fi
 
20197
 
 
20198
 
 
20199
 
 
20200
# Check whether --enable-malloc0returnsnull or --disable-malloc0returnsnull was given.
 
20201
if test "${enable_malloc0returnsnull+set}" = set; then
 
20202
  enableval="$enable_malloc0returnsnull"
 
20203
  MALLOC_ZERO_RETURNS_NULL=$enableval
 
20204
else
 
20205
  MALLOC_ZERO_RETURNS_NULL=auto
 
20206
fi;
 
20207
 
 
20208
echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
 
20209
echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6
 
20210
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
 
20211
        if test "$cross_compiling" = yes; then
 
20212
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
20213
See \`config.log' for more details." >&5
 
20214
echo "$as_me: error: cannot run test program while cross compiling
 
20215
See \`config.log' for more details." >&2;}
 
20216
   { (exit 1); exit 1; }; }
 
20217
else
 
20218
  cat >conftest.$ac_ext <<_ACEOF
 
20219
 
 
20220
char *malloc();
 
20221
char *realloc();
 
20222
char *calloc();
 
20223
main() {
 
20224
    char *m0, *r0, *c0, *p;
 
20225
    m0 = malloc(0);
 
20226
    p = malloc(10);
 
20227
    r0 = realloc(p,0);
 
20228
    c0 = calloc(0);
 
20229
    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
 
20230
}
 
20231
_ACEOF
 
20232
rm -f conftest$ac_exeext
 
20233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20234
  (eval $ac_link) 2>&5
 
20235
  ac_status=$?
 
20236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20237
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20239
  (eval $ac_try) 2>&5
 
20240
  ac_status=$?
 
20241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20242
  (exit $ac_status); }; }; then
 
20243
  MALLOC_ZERO_RETURNS_NULL=yes
 
20244
else
 
20245
  echo "$as_me: program exited with status $ac_status" >&5
 
20246
echo "$as_me: failed program was:" >&5
 
20247
sed 's/^/| /' conftest.$ac_ext >&5
 
20248
 
 
20249
( exit $ac_status )
 
20250
MALLOC_ZERO_RETURNS_NULL=no
 
20251
fi
 
20252
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20253
fi
 
20254
fi
 
20255
echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
 
20256
echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6
 
20257
 
 
20258
if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
 
20259
        MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
 
20260
        XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
 
20261
        XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
 
20262
else
 
20263
        MALLOC_ZERO_CFLAGS=""
 
20264
        XMALLOC_ZERO_CFLAGS=""
 
20265
        XTMALLOC_ZERO_CFLAGS=""
 
20266
fi
 
20267
 
 
20268
 
 
20269
 
19772
20270
 
19773
20271
 
19774
20272
 
19775
20273
# Check fixesext configuration, strip extra digits from package version to
19776
20274
# find the required protocol version
19777
20275
 
 
20276
 
 
20277
 
 
20278
# Check whether --with-release-version or --without-release-version was given.
 
20279
if test "${with_release_version+set}" = set; then
 
20280
  withval="$with_release_version"
 
20281
  RELEASE_VERSION="$withval"
 
20282
else
 
20283
  RELEASE_VERSION=""
 
20284
fi;
 
20285
        if test "x$RELEASE_VERSION" != "x"; then
 
20286
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
20287
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
20288
                { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
 
20289
echo "$as_me: Building with package name set to $PACKAGE" >&6;}
 
20290
        fi
 
20291
 
 
20292
 
19778
20293
                              ac_config_files="$ac_config_files Makefile src/Makefile libfs.pc"
19779
20294
cat >confcache <<\_ACEOF
19780
20295
# This file is a shell script that caches the results of configure
20166
20681
} >&5
20167
20682
cat >&5 <<_CSEOF
20168
20683
 
20169
 
This file was extended by libFS $as_me 3.0.0, which was
 
20684
This file was extended by libFS $as_me 1.0.0, which was
20170
20685
generated by GNU Autoconf 2.59.  Invocation command line was
20171
20686
 
20172
20687
  CONFIG_FILES    = $CONFIG_FILES
20229
20744
 
20230
20745
cat >>$CONFIG_STATUS <<_ACEOF
20231
20746
ac_cs_version="\\
20232
 
libFS config.status 3.0.0
 
20747
libFS config.status 1.0.0
20233
20748
configured by $0, generated by GNU Autoconf 2.59,
20234
20749
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20235
20750
 
20440
20955
s,@AUTOMAKE@,$AUTOMAKE,;t t
20441
20956
s,@AUTOHEADER@,$AUTOHEADER,;t t
20442
20957
s,@MAKEINFO@,$MAKEINFO,;t t
 
20958
s,@AMTAR@,$AMTAR,;t t
20443
20959
s,@install_sh@,$install_sh,;t t
20444
20960
s,@STRIP@,$STRIP,;t t
20445
20961
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20446
20962
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20447
 
s,@mkdir_p@,$mkdir_p,;t t
20448
20963
s,@AWK@,$AWK,;t t
20449
20964
s,@SET_MAKE@,$SET_MAKE,;t t
20450
20965
s,@am__leading_dot@,$am__leading_dot,;t t
20451
 
s,@AMTAR@,$AMTAR,;t t
20452
 
s,@am__tar@,$am__tar,;t t
20453
 
s,@am__untar@,$am__untar,;t t
20454
20966
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20455
20967
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20456
20968
s,@MAINT@,$MAINT,;t t
20499
21011
s,@LIBTOOL@,$LIBTOOL,;t t
20500
21012
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20501
21013
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20502
 
s,@DEP_CFLAGS@,$DEP_CFLAGS,;t t
20503
 
s,@DEP_LIBS@,$DEP_LIBS,;t t
 
21014
s,@FS_CFLAGS@,$FS_CFLAGS,;t t
 
21015
s,@FS_LIBS@,$FS_LIBS,;t t
20504
21016
s,@XTRANS_CFLAGS@,$XTRANS_CFLAGS,;t t
20505
21017
s,@XTRANS_LIBS@,$XTRANS_LIBS,;t t
 
21018
s,@MALLOC_ZERO_CFLAGS@,$MALLOC_ZERO_CFLAGS,;t t
 
21019
s,@XMALLOC_ZERO_CFLAGS@,$XMALLOC_ZERO_CFLAGS,;t t
 
21020
s,@XTMALLOC_ZERO_CFLAGS@,$XTMALLOC_ZERO_CFLAGS,;t t
20506
21021
s,@LIBOBJS@,$LIBOBJS,;t t
20507
21022
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20508
21023
CEOF
20671
21186
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20672
21187
  esac
20673
21188
 
 
21189
  if test x"$ac_file" != x-; then
 
21190
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21191
echo "$as_me: creating $ac_file" >&6;}
 
21192
    rm -f "$ac_file"
 
21193
  fi
20674
21194
  # Let's still pretend it is `configure' which instantiates (i.e., don't
20675
21195
  # use $as_me), people would be surprised to read:
20676
21196
  #    /* config.h.  Generated by config.status.  */
20709
21229
         fi;;
20710
21230
      esac
20711
21231
    done` || { (exit 1); exit 1; }
20712
 
 
20713
 
  if test x"$ac_file" != x-; then
20714
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
20715
 
echo "$as_me: creating $ac_file" >&6;}
20716
 
    rm -f "$ac_file"
20717
 
  fi
20718
21232
_ACEOF
20719
21233
cat >>$CONFIG_STATUS <<_ACEOF
20720
21234
  sed "$ac_vpsub
21128
21642
  else
21129
21643
    continue
21130
21644
  fi
21131
 
  # Extract the definition of DEPDIR, am__include, and am__quote
21132
 
  # from the Makefile without running `make'.
21133
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21645
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
21646
  # Extract the definition of DEP_FILES from the Makefile without
 
21647
  # running `make'.
 
21648
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21134
21649
  test -z "$DEPDIR" && continue
21135
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21136
 
  test -z "am__include" && continue
21137
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21138
21650
  # When using ansi2knr, U may be empty or an underscore; expand it
21139
 
  U=`sed -n 's/^U = //p' < "$mf"`
21140
 
  # Find all dependency output files, they are included files with
21141
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21142
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
21143
 
  # expansion.
21144
 
  for file in `sed -n "
21145
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
21651
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
21652
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
21653
  # We invoke sed twice because it is the simplest approach to
 
21654
  # changing $(DEPDIR) to its actual value in the expansion.
 
21655
  for file in `sed -n -e '
 
21656
    /^DEP_FILES = .*\\\\$/ {
 
21657
      s/^DEP_FILES = //
 
21658
      :loop
 
21659
        s/\\\\$//
 
21660
        p
 
21661
        n
 
21662
        /\\\\$/ b loop
 
21663
      p
 
21664
    }
 
21665
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21146
21666
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21147
21667
    # Make sure the directory exists.
21148
21668
    test -f "$dirpart/$file" && continue