~ubuntu-branches/ubuntu/precise/ultrastar-ng/precise

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Miriam Ruiz, Miriam Ruiz, Mario Bonino, Jon Dowland, Ansgar Burchardt
  • Date: 2008-06-07 16:43:18 UTC
  • mfrom: (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080607164318-4cnzizck1tp8mrwp
Tags: 0.2.1-1
[ Miriam Ruiz ]
* New Upstream Release (Closes: #453132)
* Removed unneeded patches
* Added packages to build deps:
  + libtool
  + portaudio19-dev | portaudio-dev
  + libboost-dev, libboost-thread-dev, libboost-serialization-dev
  + libboost-program-options-dev, libboost-regex-dev
* Moved shared objects to private directory: /usr/lib/ultraster-ng
* Added rpath to binaries to search for shared objects in the private dir
* Uses ultrastar-ng-gstreamer as default, instead of ultrastar-ng-xine,
  since there are significantly less issues with GStreamer.
* Added patch to fix upstream desktop file
* Added -Wl,-as-needed to LDFLAGS
* Replaced fftw3-dev by libfftw3-dev in build dependencies.
* Standards-Version upgraded to 3.7.3

[ Mario Bonino ]
* Fixed data/Makefile.am to install .desktop file and icon

[ Jon Dowland ]
* add Homepage: control field to source stanza
* fix a bashism in debian/rules (Closes: #478634)

[ Ansgar Burchardt ]
* debian/control: Change XS-Vcs-* to Vcs-*
* Remove Homepage semi-field from description

Show diffs side-by-side

added added

removed removed

Lines of Context:
549
549
 
550
550
 
551
551
 
 
552
 
 
553
# Check that we are running under the correct shell.
 
554
SHELL=${CONFIG_SHELL-/bin/sh}
 
555
 
 
556
case X$ECHO in
 
557
X*--fallback-echo)
 
558
  # Remove one level of quotation (which was required for Make).
 
559
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
560
  ;;
 
561
esac
 
562
 
 
563
echo=${ECHO-echo}
 
564
if test "X$1" = X--no-reexec; then
 
565
  # Discard the --no-reexec flag, and continue.
 
566
  shift
 
567
elif test "X$1" = X--fallback-echo; then
 
568
  # Avoid inline document here, it may be left over
 
569
  :
 
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
571
  # Yippee, $echo works!
 
572
  :
 
573
else
 
574
  # Restart under the correct shell.
 
575
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
576
fi
 
577
 
 
578
if test "X$1" = X--fallback-echo; then
 
579
  # used as fallback echo
 
580
  shift
 
581
  cat <<EOF
 
582
$*
 
583
EOF
 
584
  exit 0
 
585
fi
 
586
 
 
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
588
# if CDPATH is set.
 
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
590
 
 
591
if test -z "$ECHO"; then
 
592
if test "X${echo_test_string+set}" != Xset; then
 
593
# find a string as large as possible, as long as the shell can cope with it
 
594
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
595
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
596
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
597
       echo_test_string=`eval $cmd` &&
 
598
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
599
    then
 
600
      break
 
601
    fi
 
602
  done
 
603
fi
 
604
 
 
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
606
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
607
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
608
  :
 
609
else
 
610
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
611
  # backslashes.  This makes it impossible to quote backslashes using
 
612
  #   echo "$something" | sed 's/\\/\\\\/g'
 
613
  #
 
614
  # So, first we look for a working echo in the user's PATH.
 
615
 
 
616
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
617
  for dir in $PATH /usr/ucb; do
 
618
    IFS="$lt_save_ifs"
 
619
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
620
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
621
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
622
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
623
      echo="$dir/echo"
 
624
      break
 
625
    fi
 
626
  done
 
627
  IFS="$lt_save_ifs"
 
628
 
 
629
  if test "X$echo" = Xecho; then
 
630
    # We didn't find a better echo, so look for alternatives.
 
631
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
632
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
633
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
634
      # This shell has a builtin print -r that does the trick.
 
635
      echo='print -r'
 
636
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
637
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
638
      # If we have ksh, try running configure again with it.
 
639
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
640
      export ORIGINAL_CONFIG_SHELL
 
641
      CONFIG_SHELL=/bin/ksh
 
642
      export CONFIG_SHELL
 
643
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
644
    else
 
645
      # Try using printf.
 
646
      echo='printf %s\n'
 
647
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
648
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
649
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
650
        # Cool, printf works
 
651
        :
 
652
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
653
           test "X$echo_testing_string" = 'X\t' &&
 
654
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
656
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
657
        export CONFIG_SHELL
 
658
        SHELL="$CONFIG_SHELL"
 
659
        export SHELL
 
660
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
661
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
662
           test "X$echo_testing_string" = 'X\t' &&
 
663
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
665
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
666
      else
 
667
        # maybe with a smaller string...
 
668
        prev=:
 
669
 
 
670
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
671
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
672
          then
 
673
            break
 
674
          fi
 
675
          prev="$cmd"
 
676
        done
 
677
 
 
678
        if test "$prev" != 'sed 50q "$0"'; then
 
679
          echo_test_string=`eval $prev`
 
680
          export echo_test_string
 
681
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
682
        else
 
683
          # Oops.  We lost completely, so just stick with echo.
 
684
          echo=echo
 
685
        fi
 
686
      fi
 
687
    fi
 
688
  fi
 
689
fi
 
690
fi
 
691
 
 
692
# Copy echo and quote the copy suitably for passing to libtool from
 
693
# the Makefile, instead of quoting the original, which is used later.
 
694
ECHO=$echo
 
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
696
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
697
fi
 
698
 
 
699
 
 
700
 
 
701
 
 
702
tagnames=${tagnames+${tagnames},}CXX
 
703
 
 
704
tagnames=${tagnames+${tagnames},}F77
 
705
 
552
706
exec 7<&0 </dev/null 6>&1
553
707
 
554
708
# Name of the host.
673
827
AMTAR
674
828
am__tar
675
829
am__untar
676
 
CC
677
 
CFLAGS
 
830
CXX
 
831
CXXFLAGS
678
832
LDFLAGS
679
833
CPPFLAGS
680
 
ac_ct_CC
 
834
ac_ct_CXX
681
835
EXEEXT
682
836
OBJEXT
683
837
DEPDIR
686
840
AMDEP_TRUE
687
841
AMDEP_FALSE
688
842
AMDEPBACKSLASH
 
843
CXXDEPMODE
 
844
am__fastdepCXX_TRUE
 
845
am__fastdepCXX_FALSE
 
846
build
 
847
build_cpu
 
848
build_vendor
 
849
build_os
 
850
host
 
851
host_cpu
 
852
host_vendor
 
853
host_os
 
854
CC
 
855
CFLAGS
 
856
ac_ct_CC
689
857
CCDEPMODE
690
858
am__fastdepCC_TRUE
691
859
am__fastdepCC_FALSE
692
 
CXX
693
 
CXXFLAGS
694
 
ac_ct_CXX
695
 
CXXDEPMODE
696
 
am__fastdepCXX_TRUE
697
 
am__fastdepCXX_FALSE
 
860
SED
 
861
GREP
 
862
EGREP
 
863
LN_S
 
864
ECHO
 
865
AR
698
866
RANLIB
699
 
HELP2MAN
 
867
CPP
 
868
CXXCPP
 
869
F77
 
870
FFLAGS
 
871
ac_ct_F77
 
872
LIBTOOL
700
873
THEMES_DIR
701
874
DATA_DIR
702
 
CPP
703
 
GREP
704
 
EGREP
705
 
CXXCPP
706
875
PKG_CONFIG
707
876
cairo_CFLAGS
708
877
cairo_LIBS
709
878
libxml_CFLAGS
710
879
libxml_LIBS
711
 
fftw3f_CFLAGS
712
 
fftw3f_LIBS
713
 
alsa_CFLAGS
714
 
alsa_LIBS
 
880
pangocairo_CFLAGS
 
881
pangocairo_LIBS
715
882
librsvg_CFLAGS
716
883
librsvg_LIBS
717
884
cairosvg_CFLAGS
721
888
gstreamer_CFLAGS
722
889
gstreamer_LIBS
723
890
SDLCONFIG
 
891
alsa_CFLAGS
 
892
alsa_LIBS
 
893
portAudioV19_CFLAGS
 
894
portAudioV19_LIBS
724
895
CAIRO_FLAGS
725
896
CAIRO_LIBS
726
897
XML_FLAGS
727
898
XML_LIBS
728
899
SDL_FLAGS
729
900
SDL_LIBS
730
 
FFT_FLAGS
731
 
FFT_LIBS
732
 
ALSA_FLAGS
733
 
ALSA_LIBS
 
901
PANGOCAIRO_FLAGS
 
902
PANGOCAIRO_LIBS
 
903
RECORD_ALSA_TRUE
 
904
RECORD_ALSA_FALSE
 
905
RECORD_ALSA_FLAGS
 
906
RECORD_ALSA_LIBS
 
907
RECORD_PA18_TRUE
 
908
RECORD_PA18_FALSE
 
909
RECORD_PA18_FLAGS
 
910
RECORD_PA18_LIBS
 
911
RECORD_PA19_TRUE
 
912
RECORD_PA19_FALSE
 
913
RECORD_PA19_FLAGS
 
914
RECORD_PA19_LIBS
 
915
RECORD_GST_TRUE
 
916
RECORD_GST_FALSE
 
917
RECORD_GST_FLAGS
 
918
RECORD_GST_LIBS
734
919
VIDEO_FLAGS
735
920
VIDEO_LIBS
736
921
AUDIO_FLAGS
744
929
      ac_precious_vars='build_alias
745
930
host_alias
746
931
target_alias
747
 
CC
748
 
CFLAGS
 
932
CXX
 
933
CXXFLAGS
749
934
LDFLAGS
750
935
LIBS
751
936
CPPFLAGS
752
 
CXX
753
 
CXXFLAGS
754
937
CCC
 
938
CC
 
939
CFLAGS
755
940
CPP
756
941
CXXCPP
 
942
F77
 
943
FFLAGS
757
944
PKG_CONFIG
758
945
cairo_CFLAGS
759
946
cairo_LIBS
760
947
libxml_CFLAGS
761
948
libxml_LIBS
762
 
fftw3f_CFLAGS
763
 
fftw3f_LIBS
764
 
alsa_CFLAGS
765
 
alsa_LIBS
 
949
pangocairo_CFLAGS
 
950
pangocairo_LIBS
766
951
librsvg_CFLAGS
767
952
librsvg_LIBS
768
953
cairosvg_CFLAGS
770
955
xine_CFLAGS
771
956
xine_LIBS
772
957
gstreamer_CFLAGS
773
 
gstreamer_LIBS'
 
958
gstreamer_LIBS
 
959
alsa_CFLAGS
 
960
alsa_LIBS
 
961
portAudioV19_CFLAGS
 
962
portAudioV19_LIBS'
774
963
 
775
964
 
776
965
# Initialize some variables set by options.
1334
1523
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1335
1524
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1336
1525
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1526
 
 
1527
System types:
 
1528
  --build=BUILD     configure for building on BUILD [guessed]
 
1529
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1337
1530
_ACEOF
1338
1531
fi
1339
1532
 
1346
1539
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1347
1540
  --disable-dependency-tracking  speeds up one-time build
1348
1541
  --enable-dependency-tracking   do not reject slow dependency extractors
1349
 
  --enable-debug          Enable debugging support
 
1542
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1543
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1544
  --enable-fast-install[=PKGS]
 
1545
                          optimize for fast installation [default=yes]
 
1546
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1547
  --enable-debug          Enable debugging support [default=no]
 
1548
  --enable-record-alsa    Enable alsa record backend [default=autodetect]
 
1549
  --enable-record-pa18    Enable PortAudioV18 record backend
 
1550
                          [default=autodetect]
 
1551
  --enable-record-pa19    Enable PortAudioV19 record backend
 
1552
                          [default=autodetect]
 
1553
  --enable-record-portaudio
 
1554
                          Enable at least one PortAudio record backend
 
1555
                          (override pa18 and pa19) [default=autodetect]
 
1556
  --enable-record-gst     Enable GStreamer record backend
 
1557
                          [default=autodetect]
1350
1558
 
1351
1559
Optional Packages:
1352
1560
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1353
1561
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1562
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1563
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1564
                          both]
 
1565
  --with-tags[=TAGS]      include additional configurations [automatic]
1354
1566
  --with-audio={xine|gstreamer}
1355
 
                          implementation of the audio layer (default:
1356
 
                          autodetect)
 
1567
                          implementation of the audio layer
 
1568
                          [default=autodetect]
1357
1569
  --with-svg={cairo|librsvg}
1358
 
                          implementation of the svg rendering layer (default:
1359
 
                          librsvg)
 
1570
                          implementation of the svg rendering layer
 
1571
                          [default=librsvg]
1360
1572
  --with-video={gstreamer|xine|smpeg|disable}
1361
1573
                          implementation of the video rendering layer
1362
 
                          (default: autodetect)
 
1574
                          [default=autodetect]
1363
1575
  --with-graphic-driver={sdl|opengl}
1364
 
                          graphic driver selection (default: sdl)
 
1576
                          graphic driver selection [default=sdl]
1365
1577
 
1366
1578
Some influential environment variables:
1367
 
  CC          C compiler command
1368
 
  CFLAGS      C compiler flags
 
1579
  CXX         C++ compiler command
 
1580
  CXXFLAGS    C++ compiler flags
1369
1581
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1370
1582
              nonstandard directory <lib dir>
1371
1583
  LIBS        libraries to pass to the linker, e.g. -l<library>
1372
1584
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373
1585
              you have headers in a nonstandard directory <include dir>
1374
 
  CXX         C++ compiler command
1375
 
  CXXFLAGS    C++ compiler flags
 
1586
  CC          C compiler command
 
1587
  CFLAGS      C compiler flags
1376
1588
  CPP         C preprocessor
1377
1589
  CXXCPP      C++ preprocessor
 
1590
  F77         Fortran 77 compiler command
 
1591
  FFLAGS      Fortran 77 compiler flags
1378
1592
  PKG_CONFIG  path to pkg-config utility
1379
1593
  cairo_CFLAGS
1380
1594
              C compiler flags for cairo, overriding pkg-config
1382
1596
  libxml_CFLAGS
1383
1597
              C compiler flags for libxml, overriding pkg-config
1384
1598
  libxml_LIBS linker flags for libxml, overriding pkg-config
1385
 
  fftw3f_CFLAGS
1386
 
              C compiler flags for fftw3f, overriding pkg-config
1387
 
  fftw3f_LIBS linker flags for fftw3f, overriding pkg-config
1388
 
  alsa_CFLAGS C compiler flags for alsa, overriding pkg-config
1389
 
  alsa_LIBS   linker flags for alsa, overriding pkg-config
 
1599
  pangocairo_CFLAGS
 
1600
              C compiler flags for pangocairo, overriding pkg-config
 
1601
  pangocairo_LIBS
 
1602
              linker flags for pangocairo, overriding pkg-config
1390
1603
  librsvg_CFLAGS
1391
1604
              C compiler flags for librsvg, overriding pkg-config
1392
1605
  librsvg_LIBS
1401
1614
              C compiler flags for gstreamer, overriding pkg-config
1402
1615
  gstreamer_LIBS
1403
1616
              linker flags for gstreamer, overriding pkg-config
 
1617
  alsa_CFLAGS C compiler flags for alsa, overriding pkg-config
 
1618
  alsa_LIBS   linker flags for alsa, overriding pkg-config
 
1619
  portAudioV19_CFLAGS
 
1620
              C compiler flags for portAudioV19, overriding pkg-config
 
1621
  portAudioV19_LIBS
 
1622
              linker flags for portAudioV19, overriding pkg-config
1404
1623
 
1405
1624
Use these variables to override the choices made by `configure' or to help
1406
1625
it to find libraries and programs with nonstandard names/locations.
2163
2382
 
2164
2383
# Define the identity of the package.
2165
2384
 PACKAGE=UltraStar-ng
2166
 
 VERSION=0.1.4
 
2385
 VERSION=0.2.1
2167
2386
 
2168
2387
 
2169
2388
cat >>confdefs.h <<_ACEOF
2319
2538
CXXFLAGS="-W -Wall $CXXFLAGS"
2320
2539
 
2321
2540
# standard programs
2322
 
ac_ext=c
2323
 
ac_cpp='$CPP $CPPFLAGS'
2324
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327
 
if test -n "$ac_tool_prefix"; then
2328
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2329
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2330
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2331
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2332
 
if test "${ac_cv_prog_CC+set}" = set; then
2333
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2334
 
else
2335
 
  if test -n "$CC"; then
2336
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2337
 
else
2338
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339
 
for as_dir in $PATH
2340
 
do
2341
 
  IFS=$as_save_IFS
2342
 
  test -z "$as_dir" && as_dir=.
2343
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2344
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2345
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2346
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347
 
    break 2
2348
 
  fi
2349
 
done
2350
 
done
2351
 
IFS=$as_save_IFS
2352
 
 
2353
 
fi
2354
 
fi
2355
 
CC=$ac_cv_prog_CC
2356
 
if test -n "$CC"; then
2357
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2358
 
echo "${ECHO_T}$CC" >&6; }
2359
 
else
2360
 
  { echo "$as_me:$LINENO: result: no" >&5
2361
 
echo "${ECHO_T}no" >&6; }
2362
 
fi
2363
 
 
2364
 
 
2365
 
fi
2366
 
if test -z "$ac_cv_prog_CC"; then
2367
 
  ac_ct_CC=$CC
2368
 
  # Extract the first word of "gcc", so it can be a program name with args.
2369
 
set dummy gcc; ac_word=$2
2370
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2371
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2372
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2373
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2374
 
else
2375
 
  if test -n "$ac_ct_CC"; then
2376
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2377
 
else
2378
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379
 
for as_dir in $PATH
2380
 
do
2381
 
  IFS=$as_save_IFS
2382
 
  test -z "$as_dir" && as_dir=.
2383
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2384
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385
 
    ac_cv_prog_ac_ct_CC="gcc"
2386
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387
 
    break 2
2388
 
  fi
2389
 
done
2390
 
done
2391
 
IFS=$as_save_IFS
2392
 
 
2393
 
fi
2394
 
fi
2395
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2396
 
if test -n "$ac_ct_CC"; then
2397
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2398
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
2399
 
else
2400
 
  { echo "$as_me:$LINENO: result: no" >&5
2401
 
echo "${ECHO_T}no" >&6; }
2402
 
fi
2403
 
 
2404
 
  if test "x$ac_ct_CC" = x; then
2405
 
    CC=""
 
2541
ac_ext=cpp
 
2542
ac_cpp='$CXXCPP $CPPFLAGS'
 
2543
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2544
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2545
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2546
if test -z "$CXX"; then
 
2547
  if test -n "$CCC"; then
 
2548
    CXX=$CCC
2406
2549
  else
2407
 
    case $cross_compiling:$ac_tool_warned in
2408
 
yes:)
2409
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2410
 
whose name does not start with the host triplet.  If you think this
2411
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2412
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2413
 
whose name does not start with the host triplet.  If you think this
2414
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2415
 
ac_tool_warned=yes ;;
2416
 
esac
2417
 
    CC=$ac_ct_CC
2418
 
  fi
2419
 
else
2420
 
  CC="$ac_cv_prog_CC"
2421
 
fi
2422
 
 
2423
 
if test -z "$CC"; then
2424
 
          if test -n "$ac_tool_prefix"; then
2425
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2426
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2427
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2428
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429
 
if test "${ac_cv_prog_CC+set}" = set; then
2430
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2431
 
else
2432
 
  if test -n "$CC"; then
2433
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2434
 
else
2435
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436
 
for as_dir in $PATH
2437
 
do
2438
 
  IFS=$as_save_IFS
2439
 
  test -z "$as_dir" && as_dir=.
2440
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2441
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2443
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444
 
    break 2
2445
 
  fi
2446
 
done
2447
 
done
2448
 
IFS=$as_save_IFS
2449
 
 
2450
 
fi
2451
 
fi
2452
 
CC=$ac_cv_prog_CC
2453
 
if test -n "$CC"; then
2454
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2455
 
echo "${ECHO_T}$CC" >&6; }
2456
 
else
2457
 
  { echo "$as_me:$LINENO: result: no" >&5
2458
 
echo "${ECHO_T}no" >&6; }
2459
 
fi
2460
 
 
2461
 
 
2462
 
  fi
2463
 
fi
2464
 
if test -z "$CC"; then
2465
 
  # Extract the first word of "cc", so it can be a program name with args.
2466
 
set dummy cc; ac_word=$2
2467
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2468
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2469
 
if test "${ac_cv_prog_CC+set}" = set; then
2470
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2471
 
else
2472
 
  if test -n "$CC"; then
2473
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2474
 
else
2475
 
  ac_prog_rejected=no
2476
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477
 
for as_dir in $PATH
2478
 
do
2479
 
  IFS=$as_save_IFS
2480
 
  test -z "$as_dir" && as_dir=.
2481
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2482
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2484
 
       ac_prog_rejected=yes
2485
 
       continue
2486
 
     fi
2487
 
    ac_cv_prog_CC="cc"
2488
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489
 
    break 2
2490
 
  fi
2491
 
done
2492
 
done
2493
 
IFS=$as_save_IFS
2494
 
 
2495
 
if test $ac_prog_rejected = yes; then
2496
 
  # We found a bogon in the path, so make sure we never use it.
2497
 
  set dummy $ac_cv_prog_CC
2498
 
  shift
2499
 
  if test $# != 0; then
2500
 
    # We chose a different compiler from the bogus one.
2501
 
    # However, it has the same basename, so the bogon will be chosen
2502
 
    # first if we set CC to just the basename; use the full file name.
2503
 
    shift
2504
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2505
 
  fi
2506
 
fi
2507
 
fi
2508
 
fi
2509
 
CC=$ac_cv_prog_CC
2510
 
if test -n "$CC"; then
2511
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2512
 
echo "${ECHO_T}$CC" >&6; }
2513
 
else
2514
 
  { echo "$as_me:$LINENO: result: no" >&5
2515
 
echo "${ECHO_T}no" >&6; }
2516
 
fi
2517
 
 
2518
 
 
2519
 
fi
2520
 
if test -z "$CC"; then
2521
 
  if test -n "$ac_tool_prefix"; then
2522
 
  for ac_prog in cl.exe
 
2550
    if test -n "$ac_tool_prefix"; then
 
2551
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2523
2552
  do
2524
2553
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2525
2554
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2526
2555
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2527
2556
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528
 
if test "${ac_cv_prog_CC+set}" = set; then
 
2557
if test "${ac_cv_prog_CXX+set}" = set; then
2529
2558
  echo $ECHO_N "(cached) $ECHO_C" >&6
2530
2559
else
2531
 
  if test -n "$CC"; then
2532
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2560
  if test -n "$CXX"; then
 
2561
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2533
2562
else
2534
2563
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535
2564
for as_dir in $PATH
2538
2567
  test -z "$as_dir" && as_dir=.
2539
2568
  for ac_exec_ext in '' $ac_executable_extensions; do
2540
2569
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2570
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2542
2571
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543
2572
    break 2
2544
2573
  fi
2548
2577
 
2549
2578
fi
2550
2579
fi
2551
 
CC=$ac_cv_prog_CC
2552
 
if test -n "$CC"; then
2553
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2554
 
echo "${ECHO_T}$CC" >&6; }
 
2580
CXX=$ac_cv_prog_CXX
 
2581
if test -n "$CXX"; then
 
2582
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
2583
echo "${ECHO_T}$CXX" >&6; }
2555
2584
else
2556
2585
  { echo "$as_me:$LINENO: result: no" >&5
2557
2586
echo "${ECHO_T}no" >&6; }
2558
2587
fi
2559
2588
 
2560
2589
 
2561
 
    test -n "$CC" && break
 
2590
    test -n "$CXX" && break
2562
2591
  done
2563
2592
fi
2564
 
if test -z "$CC"; then
2565
 
  ac_ct_CC=$CC
2566
 
  for ac_prog in cl.exe
 
2593
if test -z "$CXX"; then
 
2594
  ac_ct_CXX=$CXX
 
2595
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2567
2596
do
2568
2597
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2569
2598
set dummy $ac_prog; ac_word=$2
2570
2599
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2571
2600
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2601
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2573
2602
  echo $ECHO_N "(cached) $ECHO_C" >&6
2574
2603
else
2575
 
  if test -n "$ac_ct_CC"; then
2576
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2604
  if test -n "$ac_ct_CXX"; then
 
2605
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2577
2606
else
2578
2607
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579
2608
for as_dir in $PATH
2582
2611
  test -z "$as_dir" && as_dir=.
2583
2612
  for ac_exec_ext in '' $ac_executable_extensions; do
2584
2613
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2614
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2586
2615
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587
2616
    break 2
2588
2617
  fi
2592
2621
 
2593
2622
fi
2594
2623
fi
2595
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2596
 
if test -n "$ac_ct_CC"; then
2597
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2598
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2624
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2625
if test -n "$ac_ct_CXX"; then
 
2626
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2627
echo "${ECHO_T}$ac_ct_CXX" >&6; }
2599
2628
else
2600
2629
  { echo "$as_me:$LINENO: result: no" >&5
2601
2630
echo "${ECHO_T}no" >&6; }
2602
2631
fi
2603
2632
 
2604
2633
 
2605
 
  test -n "$ac_ct_CC" && break
 
2634
  test -n "$ac_ct_CXX" && break
2606
2635
done
2607
2636
 
2608
 
  if test "x$ac_ct_CC" = x; then
2609
 
    CC=""
 
2637
  if test "x$ac_ct_CXX" = x; then
 
2638
    CXX="g++"
2610
2639
  else
2611
2640
    case $cross_compiling:$ac_tool_warned in
2612
2641
yes:)
2618
2647
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2619
2648
ac_tool_warned=yes ;;
2620
2649
esac
2621
 
    CC=$ac_ct_CC
2622
 
  fi
2623
 
fi
2624
 
 
2625
 
fi
2626
 
 
2627
 
 
2628
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2629
 
See \`config.log' for more details." >&5
2630
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2631
 
See \`config.log' for more details." >&2;}
2632
 
   { (exit 1); exit 1; }; }
2633
 
 
 
2650
    CXX=$ac_ct_CXX
 
2651
  fi
 
2652
fi
 
2653
 
 
2654
  fi
 
2655
fi
2634
2656
# Provide some information about the compiler.
2635
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2657
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2636
2658
ac_compiler=`set X $ac_compile; echo $2`
2637
2659
{ (ac_try="$ac_compiler --version >&5"
2638
2660
case "(($ac_try" in
2685
2707
# Try to create an executable without -o first, disregard a.out.
2686
2708
# It will help us diagnose broken compilers, and finding out an intuition
2687
2709
# of exeext.
2688
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2689
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2710
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
 
2711
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2690
2712
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2691
2713
#
2692
2714
# List of possible output files, starting from the most likely.
2759
2781
  echo "$as_me: failed program was:" >&5
2760
2782
sed 's/^/| /' conftest.$ac_ext >&5
2761
2783
 
2762
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2784
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2763
2785
See \`config.log' for more details." >&5
2764
 
echo "$as_me: error: C compiler cannot create executables
 
2786
echo "$as_me: error: C++ compiler cannot create executables
2765
2787
See \`config.log' for more details." >&2;}
2766
2788
   { (exit 77); exit 77; }; }
2767
2789
fi
2770
2792
 
2771
2793
# Check that the compiler produces executables we can run.  If not, either
2772
2794
# the compiler is broken, or we cross compile.
2773
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2774
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2795
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
 
2796
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2775
2797
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2776
2798
# If not cross compiling, check that we can run a simple program.
2777
2799
if test "$cross_compiling" != yes; then
2790
2812
    if test "$cross_compiling" = maybe; then
2791
2813
        cross_compiling=yes
2792
2814
    else
2793
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2815
        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2794
2816
If you meant to cross compile, use \`--host'.
2795
2817
See \`config.log' for more details." >&5
2796
 
echo "$as_me: error: cannot run C compiled programs.
 
2818
echo "$as_me: error: cannot run C++ compiled programs.
2797
2819
If you meant to cross compile, use \`--host'.
2798
2820
See \`config.log' for more details." >&2;}
2799
2821
   { (exit 1); exit 1; }; }
2908
2930
echo "${ECHO_T}$ac_cv_objext" >&6; }
2909
2931
OBJEXT=$ac_cv_objext
2910
2932
ac_objext=$OBJEXT
 
2933
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2934
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
2935
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2937
else
 
2938
  cat >conftest.$ac_ext <<_ACEOF
 
2939
/* confdefs.h.  */
 
2940
_ACEOF
 
2941
cat confdefs.h >>conftest.$ac_ext
 
2942
cat >>conftest.$ac_ext <<_ACEOF
 
2943
/* end confdefs.h.  */
 
2944
 
 
2945
int
 
2946
main ()
 
2947
{
 
2948
#ifndef __GNUC__
 
2949
       choke me
 
2950
#endif
 
2951
 
 
2952
  ;
 
2953
  return 0;
 
2954
}
 
2955
_ACEOF
 
2956
rm -f conftest.$ac_objext
 
2957
if { (ac_try="$ac_compile"
 
2958
case "(($ac_try" in
 
2959
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2960
  *) ac_try_echo=$ac_try;;
 
2961
esac
 
2962
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2963
  (eval "$ac_compile") 2>conftest.er1
 
2964
  ac_status=$?
 
2965
  grep -v '^ *+' conftest.er1 >conftest.err
 
2966
  rm -f conftest.er1
 
2967
  cat conftest.err >&5
 
2968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2969
  (exit $ac_status); } && {
 
2970
         test -z "$ac_cxx_werror_flag" ||
 
2971
         test ! -s conftest.err
 
2972
       } && test -s conftest.$ac_objext; then
 
2973
  ac_compiler_gnu=yes
 
2974
else
 
2975
  echo "$as_me: failed program was:" >&5
 
2976
sed 's/^/| /' conftest.$ac_ext >&5
 
2977
 
 
2978
        ac_compiler_gnu=no
 
2979
fi
 
2980
 
 
2981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2982
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2983
 
 
2984
fi
 
2985
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2986
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
2987
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
2988
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
2989
ac_save_CXXFLAGS=$CXXFLAGS
 
2990
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
2991
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
2992
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
2993
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2994
else
 
2995
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
2996
   ac_cxx_werror_flag=yes
 
2997
   ac_cv_prog_cxx_g=no
 
2998
   CXXFLAGS="-g"
 
2999
   cat >conftest.$ac_ext <<_ACEOF
 
3000
/* confdefs.h.  */
 
3001
_ACEOF
 
3002
cat confdefs.h >>conftest.$ac_ext
 
3003
cat >>conftest.$ac_ext <<_ACEOF
 
3004
/* end confdefs.h.  */
 
3005
 
 
3006
int
 
3007
main ()
 
3008
{
 
3009
 
 
3010
  ;
 
3011
  return 0;
 
3012
}
 
3013
_ACEOF
 
3014
rm -f conftest.$ac_objext
 
3015
if { (ac_try="$ac_compile"
 
3016
case "(($ac_try" in
 
3017
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3018
  *) ac_try_echo=$ac_try;;
 
3019
esac
 
3020
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3021
  (eval "$ac_compile") 2>conftest.er1
 
3022
  ac_status=$?
 
3023
  grep -v '^ *+' conftest.er1 >conftest.err
 
3024
  rm -f conftest.er1
 
3025
  cat conftest.err >&5
 
3026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3027
  (exit $ac_status); } && {
 
3028
         test -z "$ac_cxx_werror_flag" ||
 
3029
         test ! -s conftest.err
 
3030
       } && test -s conftest.$ac_objext; then
 
3031
  ac_cv_prog_cxx_g=yes
 
3032
else
 
3033
  echo "$as_me: failed program was:" >&5
 
3034
sed 's/^/| /' conftest.$ac_ext >&5
 
3035
 
 
3036
        CXXFLAGS=""
 
3037
      cat >conftest.$ac_ext <<_ACEOF
 
3038
/* confdefs.h.  */
 
3039
_ACEOF
 
3040
cat confdefs.h >>conftest.$ac_ext
 
3041
cat >>conftest.$ac_ext <<_ACEOF
 
3042
/* end confdefs.h.  */
 
3043
 
 
3044
int
 
3045
main ()
 
3046
{
 
3047
 
 
3048
  ;
 
3049
  return 0;
 
3050
}
 
3051
_ACEOF
 
3052
rm -f conftest.$ac_objext
 
3053
if { (ac_try="$ac_compile"
 
3054
case "(($ac_try" in
 
3055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3056
  *) ac_try_echo=$ac_try;;
 
3057
esac
 
3058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3059
  (eval "$ac_compile") 2>conftest.er1
 
3060
  ac_status=$?
 
3061
  grep -v '^ *+' conftest.er1 >conftest.err
 
3062
  rm -f conftest.er1
 
3063
  cat conftest.err >&5
 
3064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3065
  (exit $ac_status); } && {
 
3066
         test -z "$ac_cxx_werror_flag" ||
 
3067
         test ! -s conftest.err
 
3068
       } && test -s conftest.$ac_objext; then
 
3069
  :
 
3070
else
 
3071
  echo "$as_me: failed program was:" >&5
 
3072
sed 's/^/| /' conftest.$ac_ext >&5
 
3073
 
 
3074
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3075
         CXXFLAGS="-g"
 
3076
         cat >conftest.$ac_ext <<_ACEOF
 
3077
/* confdefs.h.  */
 
3078
_ACEOF
 
3079
cat confdefs.h >>conftest.$ac_ext
 
3080
cat >>conftest.$ac_ext <<_ACEOF
 
3081
/* end confdefs.h.  */
 
3082
 
 
3083
int
 
3084
main ()
 
3085
{
 
3086
 
 
3087
  ;
 
3088
  return 0;
 
3089
}
 
3090
_ACEOF
 
3091
rm -f conftest.$ac_objext
 
3092
if { (ac_try="$ac_compile"
 
3093
case "(($ac_try" in
 
3094
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3095
  *) ac_try_echo=$ac_try;;
 
3096
esac
 
3097
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3098
  (eval "$ac_compile") 2>conftest.er1
 
3099
  ac_status=$?
 
3100
  grep -v '^ *+' conftest.er1 >conftest.err
 
3101
  rm -f conftest.er1
 
3102
  cat conftest.err >&5
 
3103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3104
  (exit $ac_status); } && {
 
3105
         test -z "$ac_cxx_werror_flag" ||
 
3106
         test ! -s conftest.err
 
3107
       } && test -s conftest.$ac_objext; then
 
3108
  ac_cv_prog_cxx_g=yes
 
3109
else
 
3110
  echo "$as_me: failed program was:" >&5
 
3111
sed 's/^/| /' conftest.$ac_ext >&5
 
3112
 
 
3113
 
 
3114
fi
 
3115
 
 
3116
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3117
fi
 
3118
 
 
3119
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3120
fi
 
3121
 
 
3122
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3123
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3124
fi
 
3125
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3126
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
3127
if test "$ac_test_CXXFLAGS" = set; then
 
3128
  CXXFLAGS=$ac_save_CXXFLAGS
 
3129
elif test $ac_cv_prog_cxx_g = yes; then
 
3130
  if test "$GXX" = yes; then
 
3131
    CXXFLAGS="-g -O2"
 
3132
  else
 
3133
    CXXFLAGS="-g"
 
3134
  fi
 
3135
else
 
3136
  if test "$GXX" = yes; then
 
3137
    CXXFLAGS="-O2"
 
3138
  else
 
3139
    CXXFLAGS=
 
3140
  fi
 
3141
fi
 
3142
ac_ext=c
 
3143
ac_cpp='$CPP $CPPFLAGS'
 
3144
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3145
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3146
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3147
DEPDIR="${am__leading_dot}deps"
 
3148
 
 
3149
ac_config_commands="$ac_config_commands depfiles"
 
3150
 
 
3151
 
 
3152
am_make=${MAKE-make}
 
3153
cat > confinc << 'END'
 
3154
am__doit:
 
3155
        @echo done
 
3156
.PHONY: am__doit
 
3157
END
 
3158
# If we don't find an include directive, just comment out the code.
 
3159
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3160
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3161
am__include="#"
 
3162
am__quote=
 
3163
_am_result=none
 
3164
# First try GNU make style include.
 
3165
echo "include confinc" > confmf
 
3166
# We grep out `Entering directory' and `Leaving directory'
 
3167
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3168
# In particular we don't look at `^make:' because GNU make might
 
3169
# be invoked under some other name (usually "gmake"), in which
 
3170
# case it prints its new name instead of `make'.
 
3171
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3172
   am__include=include
 
3173
   am__quote=
 
3174
   _am_result=GNU
 
3175
fi
 
3176
# Now try BSD make style include.
 
3177
if test "$am__include" = "#"; then
 
3178
   echo '.include "confinc"' > confmf
 
3179
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3180
      am__include=.include
 
3181
      am__quote="\""
 
3182
      _am_result=BSD
 
3183
   fi
 
3184
fi
 
3185
 
 
3186
 
 
3187
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3188
echo "${ECHO_T}$_am_result" >&6; }
 
3189
rm -f confinc confmf
 
3190
 
 
3191
# Check whether --enable-dependency-tracking was given.
 
3192
if test "${enable_dependency_tracking+set}" = set; then
 
3193
  enableval=$enable_dependency_tracking;
 
3194
fi
 
3195
 
 
3196
if test "x$enable_dependency_tracking" != xno; then
 
3197
  am_depcomp="$ac_aux_dir/depcomp"
 
3198
  AMDEPBACKSLASH='\'
 
3199
fi
 
3200
 if test "x$enable_dependency_tracking" != xno; then
 
3201
  AMDEP_TRUE=
 
3202
  AMDEP_FALSE='#'
 
3203
else
 
3204
  AMDEP_TRUE='#'
 
3205
  AMDEP_FALSE=
 
3206
fi
 
3207
 
 
3208
 
 
3209
 
 
3210
depcc="$CXX"  am_compiler_list=
 
3211
 
 
3212
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3213
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3214
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3216
else
 
3217
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3218
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3219
  # making bogus files that we don't know about and never remove.  For
 
3220
  # instance it was reported that on HP-UX the gcc test will end up
 
3221
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3222
  # in D'.
 
3223
  mkdir conftest.dir
 
3224
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3225
  # using a relative directory.
 
3226
  cp "$am_depcomp" conftest.dir
 
3227
  cd conftest.dir
 
3228
  # We will build objects and dependencies in a subdirectory because
 
3229
  # it helps to detect inapplicable dependency modes.  For instance
 
3230
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3231
  # side effect of compilation, but ICC will put the dependencies in
 
3232
  # the current directory while Tru64 will put them in the object
 
3233
  # directory.
 
3234
  mkdir sub
 
3235
 
 
3236
  am_cv_CXX_dependencies_compiler_type=none
 
3237
  if test "$am_compiler_list" = ""; then
 
3238
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3239
  fi
 
3240
  for depmode in $am_compiler_list; do
 
3241
    # Setup a source with many dependencies, because some compilers
 
3242
    # like to wrap large dependency lists on column 80 (with \), and
 
3243
    # we should not choose a depcomp mode which is confused by this.
 
3244
    #
 
3245
    # We need to recreate these files for each test, as the compiler may
 
3246
    # overwrite some of them when testing with obscure command lines.
 
3247
    # This happens at least with the AIX C compiler.
 
3248
    : > sub/conftest.c
 
3249
    for i in 1 2 3 4 5 6; do
 
3250
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3251
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3252
      # Solaris 8's {/usr,}/bin/sh.
 
3253
      touch sub/conftst$i.h
 
3254
    done
 
3255
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3256
 
 
3257
    case $depmode in
 
3258
    nosideeffect)
 
3259
      # after this tag, mechanisms are not by side-effect, so they'll
 
3260
      # only be used when explicitly requested
 
3261
      if test "x$enable_dependency_tracking" = xyes; then
 
3262
        continue
 
3263
      else
 
3264
        break
 
3265
      fi
 
3266
      ;;
 
3267
    none) break ;;
 
3268
    esac
 
3269
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3270
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3271
    # handle `-M -o', and we need to detect this.
 
3272
    if depmode=$depmode \
 
3273
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3274
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3275
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3276
         >/dev/null 2>conftest.err &&
 
3277
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3278
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3279
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3280
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3281
      # icc doesn't choke on unknown options, it will just issue warnings
 
3282
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3283
      # that says an option was ignored or not supported.
 
3284
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3285
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3286
      # The diagnosis changed in icc 8.0:
 
3287
      #   icc: Command line remark: option '-MP' not supported
 
3288
      if (grep 'ignoring option' conftest.err ||
 
3289
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3290
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3291
        break
 
3292
      fi
 
3293
    fi
 
3294
  done
 
3295
 
 
3296
  cd ..
 
3297
  rm -rf conftest.dir
 
3298
else
 
3299
  am_cv_CXX_dependencies_compiler_type=none
 
3300
fi
 
3301
 
 
3302
fi
 
3303
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3304
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3305
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3306
 
 
3307
 if
 
3308
  test "x$enable_dependency_tracking" != xno \
 
3309
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3310
  am__fastdepCXX_TRUE=
 
3311
  am__fastdepCXX_FALSE='#'
 
3312
else
 
3313
  am__fastdepCXX_TRUE='#'
 
3314
  am__fastdepCXX_FALSE=
 
3315
fi
 
3316
 
 
3317
 
 
3318
# Find a good install program.  We prefer a C program (faster),
 
3319
# so one script is as good as another.  But avoid the broken or
 
3320
# incompatible versions:
 
3321
# SysV /etc/install, /usr/sbin/install
 
3322
# SunOS /usr/etc/install
 
3323
# IRIX /sbin/install
 
3324
# AIX /bin/install
 
3325
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3326
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3327
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3328
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3329
# OS/2's system install, which has a completely different semantic
 
3330
# ./install, which can be erroneously created by make from ./install.sh.
 
3331
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3332
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
3333
if test -z "$INSTALL"; then
 
3334
if test "${ac_cv_path_install+set}" = set; then
 
3335
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3336
else
 
3337
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3338
for as_dir in $PATH
 
3339
do
 
3340
  IFS=$as_save_IFS
 
3341
  test -z "$as_dir" && as_dir=.
 
3342
  # Account for people who put trailing slashes in PATH elements.
 
3343
case $as_dir/ in
 
3344
  ./ | .// | /cC/* | \
 
3345
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3346
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3347
  /usr/ucb/* ) ;;
 
3348
  *)
 
3349
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3350
    # Don't use installbsd from OSF since it installs stuff as root
 
3351
    # by default.
 
3352
    for ac_prog in ginstall scoinst install; do
 
3353
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3354
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3355
          if test $ac_prog = install &&
 
3356
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3357
            # AIX install.  It has an incompatible calling convention.
 
3358
            :
 
3359
          elif test $ac_prog = install &&
 
3360
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3361
            # program-specific install script used by HP pwplus--don't use.
 
3362
            :
 
3363
          else
 
3364
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3365
            break 3
 
3366
          fi
 
3367
        fi
 
3368
      done
 
3369
    done
 
3370
    ;;
 
3371
esac
 
3372
done
 
3373
IFS=$as_save_IFS
 
3374
 
 
3375
 
 
3376
fi
 
3377
  if test "${ac_cv_path_install+set}" = set; then
 
3378
    INSTALL=$ac_cv_path_install
 
3379
  else
 
3380
    # As a last resort, use the slow shell script.  Don't cache a
 
3381
    # value for INSTALL within a source directory, because that will
 
3382
    # break other packages using the cache if that directory is
 
3383
    # removed, or if the value is a relative name.
 
3384
    INSTALL=$ac_install_sh
 
3385
  fi
 
3386
fi
 
3387
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3388
echo "${ECHO_T}$INSTALL" >&6; }
 
3389
 
 
3390
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3391
# It thinks the first close brace ends the variable substitution.
 
3392
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3393
 
 
3394
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3395
 
 
3396
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3397
 
 
3398
# Check whether --enable-shared was given.
 
3399
if test "${enable_shared+set}" = set; then
 
3400
  enableval=$enable_shared; p=${PACKAGE-default}
 
3401
    case $enableval in
 
3402
    yes) enable_shared=yes ;;
 
3403
    no) enable_shared=no ;;
 
3404
    *)
 
3405
      enable_shared=no
 
3406
      # Look at the argument we got.  We use all the common list separators.
 
3407
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3408
      for pkg in $enableval; do
 
3409
        IFS="$lt_save_ifs"
 
3410
        if test "X$pkg" = "X$p"; then
 
3411
          enable_shared=yes
 
3412
        fi
 
3413
      done
 
3414
      IFS="$lt_save_ifs"
 
3415
      ;;
 
3416
    esac
 
3417
else
 
3418
  enable_shared=yes
 
3419
fi
 
3420
 
 
3421
 
 
3422
# Check whether --enable-static was given.
 
3423
if test "${enable_static+set}" = set; then
 
3424
  enableval=$enable_static; p=${PACKAGE-default}
 
3425
    case $enableval in
 
3426
    yes) enable_static=yes ;;
 
3427
    no) enable_static=no ;;
 
3428
    *)
 
3429
     enable_static=no
 
3430
      # Look at the argument we got.  We use all the common list separators.
 
3431
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3432
      for pkg in $enableval; do
 
3433
        IFS="$lt_save_ifs"
 
3434
        if test "X$pkg" = "X$p"; then
 
3435
          enable_static=yes
 
3436
        fi
 
3437
      done
 
3438
      IFS="$lt_save_ifs"
 
3439
      ;;
 
3440
    esac
 
3441
else
 
3442
  enable_static=yes
 
3443
fi
 
3444
 
 
3445
 
 
3446
# Check whether --enable-fast-install was given.
 
3447
if test "${enable_fast_install+set}" = set; then
 
3448
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
3449
    case $enableval in
 
3450
    yes) enable_fast_install=yes ;;
 
3451
    no) enable_fast_install=no ;;
 
3452
    *)
 
3453
      enable_fast_install=no
 
3454
      # Look at the argument we got.  We use all the common list separators.
 
3455
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3456
      for pkg in $enableval; do
 
3457
        IFS="$lt_save_ifs"
 
3458
        if test "X$pkg" = "X$p"; then
 
3459
          enable_fast_install=yes
 
3460
        fi
 
3461
      done
 
3462
      IFS="$lt_save_ifs"
 
3463
      ;;
 
3464
    esac
 
3465
else
 
3466
  enable_fast_install=yes
 
3467
fi
 
3468
 
 
3469
 
 
3470
# Make sure we can run config.sub.
 
3471
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3472
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3473
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3474
   { (exit 1); exit 1; }; }
 
3475
 
 
3476
{ echo "$as_me:$LINENO: checking build system type" >&5
 
3477
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
3478
if test "${ac_cv_build+set}" = set; then
 
3479
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3480
else
 
3481
  ac_build_alias=$build_alias
 
3482
test "x$ac_build_alias" = x &&
 
3483
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3484
test "x$ac_build_alias" = x &&
 
3485
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3486
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3487
   { (exit 1); exit 1; }; }
 
3488
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3489
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3490
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3491
   { (exit 1); exit 1; }; }
 
3492
 
 
3493
fi
 
3494
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3495
echo "${ECHO_T}$ac_cv_build" >&6; }
 
3496
case $ac_cv_build in
 
3497
*-*-*) ;;
 
3498
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3499
echo "$as_me: error: invalid value of canonical build" >&2;}
 
3500
   { (exit 1); exit 1; }; };;
 
3501
esac
 
3502
build=$ac_cv_build
 
3503
ac_save_IFS=$IFS; IFS='-'
 
3504
set x $ac_cv_build
 
3505
shift
 
3506
build_cpu=$1
 
3507
build_vendor=$2
 
3508
shift; shift
 
3509
# Remember, the first character of IFS is used to create $*,
 
3510
# except with old shells:
 
3511
build_os=$*
 
3512
IFS=$ac_save_IFS
 
3513
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3514
 
 
3515
 
 
3516
{ echo "$as_me:$LINENO: checking host system type" >&5
 
3517
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
3518
if test "${ac_cv_host+set}" = set; then
 
3519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3520
else
 
3521
  if test "x$host_alias" = x; then
 
3522
  ac_cv_host=$ac_cv_build
 
3523
else
 
3524
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3525
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3526
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3527
   { (exit 1); exit 1; }; }
 
3528
fi
 
3529
 
 
3530
fi
 
3531
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3532
echo "${ECHO_T}$ac_cv_host" >&6; }
 
3533
case $ac_cv_host in
 
3534
*-*-*) ;;
 
3535
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3536
echo "$as_me: error: invalid value of canonical host" >&2;}
 
3537
   { (exit 1); exit 1; }; };;
 
3538
esac
 
3539
host=$ac_cv_host
 
3540
ac_save_IFS=$IFS; IFS='-'
 
3541
set x $ac_cv_host
 
3542
shift
 
3543
host_cpu=$1
 
3544
host_vendor=$2
 
3545
shift; shift
 
3546
# Remember, the first character of IFS is used to create $*,
 
3547
# except with old shells:
 
3548
host_os=$*
 
3549
IFS=$ac_save_IFS
 
3550
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3551
 
 
3552
 
 
3553
ac_ext=c
 
3554
ac_cpp='$CPP $CPPFLAGS'
 
3555
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3556
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3557
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3558
if test -n "$ac_tool_prefix"; then
 
3559
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3560
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3561
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3562
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3563
if test "${ac_cv_prog_CC+set}" = set; then
 
3564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3565
else
 
3566
  if test -n "$CC"; then
 
3567
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3568
else
 
3569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3570
for as_dir in $PATH
 
3571
do
 
3572
  IFS=$as_save_IFS
 
3573
  test -z "$as_dir" && as_dir=.
 
3574
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3575
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3576
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3577
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3578
    break 2
 
3579
  fi
 
3580
done
 
3581
done
 
3582
IFS=$as_save_IFS
 
3583
 
 
3584
fi
 
3585
fi
 
3586
CC=$ac_cv_prog_CC
 
3587
if test -n "$CC"; then
 
3588
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3589
echo "${ECHO_T}$CC" >&6; }
 
3590
else
 
3591
  { echo "$as_me:$LINENO: result: no" >&5
 
3592
echo "${ECHO_T}no" >&6; }
 
3593
fi
 
3594
 
 
3595
 
 
3596
fi
 
3597
if test -z "$ac_cv_prog_CC"; then
 
3598
  ac_ct_CC=$CC
 
3599
  # Extract the first word of "gcc", so it can be a program name with args.
 
3600
set dummy gcc; ac_word=$2
 
3601
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3602
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3603
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3605
else
 
3606
  if test -n "$ac_ct_CC"; then
 
3607
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3608
else
 
3609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3610
for as_dir in $PATH
 
3611
do
 
3612
  IFS=$as_save_IFS
 
3613
  test -z "$as_dir" && as_dir=.
 
3614
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3615
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3616
    ac_cv_prog_ac_ct_CC="gcc"
 
3617
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3618
    break 2
 
3619
  fi
 
3620
done
 
3621
done
 
3622
IFS=$as_save_IFS
 
3623
 
 
3624
fi
 
3625
fi
 
3626
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3627
if test -n "$ac_ct_CC"; then
 
3628
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3629
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3630
else
 
3631
  { echo "$as_me:$LINENO: result: no" >&5
 
3632
echo "${ECHO_T}no" >&6; }
 
3633
fi
 
3634
 
 
3635
  if test "x$ac_ct_CC" = x; then
 
3636
    CC=""
 
3637
  else
 
3638
    case $cross_compiling:$ac_tool_warned in
 
3639
yes:)
 
3640
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3641
whose name does not start with the host triplet.  If you think this
 
3642
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3643
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3644
whose name does not start with the host triplet.  If you think this
 
3645
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3646
ac_tool_warned=yes ;;
 
3647
esac
 
3648
    CC=$ac_ct_CC
 
3649
  fi
 
3650
else
 
3651
  CC="$ac_cv_prog_CC"
 
3652
fi
 
3653
 
 
3654
if test -z "$CC"; then
 
3655
          if test -n "$ac_tool_prefix"; then
 
3656
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3657
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3658
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3659
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3660
if test "${ac_cv_prog_CC+set}" = set; then
 
3661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3662
else
 
3663
  if test -n "$CC"; then
 
3664
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3665
else
 
3666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3667
for as_dir in $PATH
 
3668
do
 
3669
  IFS=$as_save_IFS
 
3670
  test -z "$as_dir" && as_dir=.
 
3671
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3672
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3673
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3674
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3675
    break 2
 
3676
  fi
 
3677
done
 
3678
done
 
3679
IFS=$as_save_IFS
 
3680
 
 
3681
fi
 
3682
fi
 
3683
CC=$ac_cv_prog_CC
 
3684
if test -n "$CC"; then
 
3685
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3686
echo "${ECHO_T}$CC" >&6; }
 
3687
else
 
3688
  { echo "$as_me:$LINENO: result: no" >&5
 
3689
echo "${ECHO_T}no" >&6; }
 
3690
fi
 
3691
 
 
3692
 
 
3693
  fi
 
3694
fi
 
3695
if test -z "$CC"; then
 
3696
  # Extract the first word of "cc", so it can be a program name with args.
 
3697
set dummy cc; ac_word=$2
 
3698
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3700
if test "${ac_cv_prog_CC+set}" = set; then
 
3701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3702
else
 
3703
  if test -n "$CC"; then
 
3704
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3705
else
 
3706
  ac_prog_rejected=no
 
3707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3708
for as_dir in $PATH
 
3709
do
 
3710
  IFS=$as_save_IFS
 
3711
  test -z "$as_dir" && as_dir=.
 
3712
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3713
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3714
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3715
       ac_prog_rejected=yes
 
3716
       continue
 
3717
     fi
 
3718
    ac_cv_prog_CC="cc"
 
3719
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3720
    break 2
 
3721
  fi
 
3722
done
 
3723
done
 
3724
IFS=$as_save_IFS
 
3725
 
 
3726
if test $ac_prog_rejected = yes; then
 
3727
  # We found a bogon in the path, so make sure we never use it.
 
3728
  set dummy $ac_cv_prog_CC
 
3729
  shift
 
3730
  if test $# != 0; then
 
3731
    # We chose a different compiler from the bogus one.
 
3732
    # However, it has the same basename, so the bogon will be chosen
 
3733
    # first if we set CC to just the basename; use the full file name.
 
3734
    shift
 
3735
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3736
  fi
 
3737
fi
 
3738
fi
 
3739
fi
 
3740
CC=$ac_cv_prog_CC
 
3741
if test -n "$CC"; then
 
3742
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3743
echo "${ECHO_T}$CC" >&6; }
 
3744
else
 
3745
  { echo "$as_me:$LINENO: result: no" >&5
 
3746
echo "${ECHO_T}no" >&6; }
 
3747
fi
 
3748
 
 
3749
 
 
3750
fi
 
3751
if test -z "$CC"; then
 
3752
  if test -n "$ac_tool_prefix"; then
 
3753
  for ac_prog in cl.exe
 
3754
  do
 
3755
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3756
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3757
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3759
if test "${ac_cv_prog_CC+set}" = set; then
 
3760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3761
else
 
3762
  if test -n "$CC"; then
 
3763
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3764
else
 
3765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3766
for as_dir in $PATH
 
3767
do
 
3768
  IFS=$as_save_IFS
 
3769
  test -z "$as_dir" && as_dir=.
 
3770
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3771
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3772
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3773
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3774
    break 2
 
3775
  fi
 
3776
done
 
3777
done
 
3778
IFS=$as_save_IFS
 
3779
 
 
3780
fi
 
3781
fi
 
3782
CC=$ac_cv_prog_CC
 
3783
if test -n "$CC"; then
 
3784
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3785
echo "${ECHO_T}$CC" >&6; }
 
3786
else
 
3787
  { echo "$as_me:$LINENO: result: no" >&5
 
3788
echo "${ECHO_T}no" >&6; }
 
3789
fi
 
3790
 
 
3791
 
 
3792
    test -n "$CC" && break
 
3793
  done
 
3794
fi
 
3795
if test -z "$CC"; then
 
3796
  ac_ct_CC=$CC
 
3797
  for ac_prog in cl.exe
 
3798
do
 
3799
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3800
set dummy $ac_prog; ac_word=$2
 
3801
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3802
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3803
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3805
else
 
3806
  if test -n "$ac_ct_CC"; then
 
3807
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3808
else
 
3809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3810
for as_dir in $PATH
 
3811
do
 
3812
  IFS=$as_save_IFS
 
3813
  test -z "$as_dir" && as_dir=.
 
3814
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3815
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3816
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3817
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3818
    break 2
 
3819
  fi
 
3820
done
 
3821
done
 
3822
IFS=$as_save_IFS
 
3823
 
 
3824
fi
 
3825
fi
 
3826
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3827
if test -n "$ac_ct_CC"; then
 
3828
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3829
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3830
else
 
3831
  { echo "$as_me:$LINENO: result: no" >&5
 
3832
echo "${ECHO_T}no" >&6; }
 
3833
fi
 
3834
 
 
3835
 
 
3836
  test -n "$ac_ct_CC" && break
 
3837
done
 
3838
 
 
3839
  if test "x$ac_ct_CC" = x; then
 
3840
    CC=""
 
3841
  else
 
3842
    case $cross_compiling:$ac_tool_warned in
 
3843
yes:)
 
3844
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3845
whose name does not start with the host triplet.  If you think this
 
3846
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3847
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3848
whose name does not start with the host triplet.  If you think this
 
3849
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3850
ac_tool_warned=yes ;;
 
3851
esac
 
3852
    CC=$ac_ct_CC
 
3853
  fi
 
3854
fi
 
3855
 
 
3856
fi
 
3857
 
 
3858
 
 
3859
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3860
See \`config.log' for more details." >&5
 
3861
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3862
See \`config.log' for more details." >&2;}
 
3863
   { (exit 1); exit 1; }; }
 
3864
 
 
3865
# Provide some information about the compiler.
 
3866
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3867
ac_compiler=`set X $ac_compile; echo $2`
 
3868
{ (ac_try="$ac_compiler --version >&5"
 
3869
case "(($ac_try" in
 
3870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3871
  *) ac_try_echo=$ac_try;;
 
3872
esac
 
3873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3874
  (eval "$ac_compiler --version >&5") 2>&5
 
3875
  ac_status=$?
 
3876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3877
  (exit $ac_status); }
 
3878
{ (ac_try="$ac_compiler -v >&5"
 
3879
case "(($ac_try" in
 
3880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3881
  *) ac_try_echo=$ac_try;;
 
3882
esac
 
3883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3884
  (eval "$ac_compiler -v >&5") 2>&5
 
3885
  ac_status=$?
 
3886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3887
  (exit $ac_status); }
 
3888
{ (ac_try="$ac_compiler -V >&5"
 
3889
case "(($ac_try" in
 
3890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3891
  *) ac_try_echo=$ac_try;;
 
3892
esac
 
3893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3894
  (eval "$ac_compiler -V >&5") 2>&5
 
3895
  ac_status=$?
 
3896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3897
  (exit $ac_status); }
 
3898
 
2911
3899
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2912
3900
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2913
3901
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3237
4225
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238
4226
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239
4227
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240
 
DEPDIR="${am__leading_dot}deps"
3241
 
 
3242
 
ac_config_commands="$ac_config_commands depfiles"
3243
 
 
3244
 
 
3245
 
am_make=${MAKE-make}
3246
 
cat > confinc << 'END'
3247
 
am__doit:
3248
 
        @echo done
3249
 
.PHONY: am__doit
3250
 
END
3251
 
# If we don't find an include directive, just comment out the code.
3252
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3253
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3254
 
am__include="#"
3255
 
am__quote=
3256
 
_am_result=none
3257
 
# First try GNU make style include.
3258
 
echo "include confinc" > confmf
3259
 
# We grep out `Entering directory' and `Leaving directory'
3260
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3261
 
# In particular we don't look at `^make:' because GNU make might
3262
 
# be invoked under some other name (usually "gmake"), in which
3263
 
# case it prints its new name instead of `make'.
3264
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3265
 
   am__include=include
3266
 
   am__quote=
3267
 
   _am_result=GNU
3268
 
fi
3269
 
# Now try BSD make style include.
3270
 
if test "$am__include" = "#"; then
3271
 
   echo '.include "confinc"' > confmf
3272
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3273
 
      am__include=.include
3274
 
      am__quote="\""
3275
 
      _am_result=BSD
3276
 
   fi
3277
 
fi
3278
 
 
3279
 
 
3280
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3281
 
echo "${ECHO_T}$_am_result" >&6; }
3282
 
rm -f confinc confmf
3283
 
 
3284
 
# Check whether --enable-dependency-tracking was given.
3285
 
if test "${enable_dependency_tracking+set}" = set; then
3286
 
  enableval=$enable_dependency_tracking;
3287
 
fi
3288
 
 
3289
 
if test "x$enable_dependency_tracking" != xno; then
3290
 
  am_depcomp="$ac_aux_dir/depcomp"
3291
 
  AMDEPBACKSLASH='\'
3292
 
fi
3293
 
 if test "x$enable_dependency_tracking" != xno; then
3294
 
  AMDEP_TRUE=
3295
 
  AMDEP_FALSE='#'
3296
 
else
3297
 
  AMDEP_TRUE='#'
3298
 
  AMDEP_FALSE=
3299
 
fi
3300
 
 
3301
 
 
3302
4228
 
3303
4229
depcc="$CC"   am_compiler_list=
3304
4230
 
3408
4334
fi
3409
4335
 
3410
4336
 
 
4337
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4338
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
4339
if test "${lt_cv_path_SED+set}" = set; then
 
4340
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4341
else
 
4342
  # Loop through the user's path and test for sed and gsed.
 
4343
# Then use that list of sed's as ones to test for truncation.
 
4344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4345
for as_dir in $PATH
 
4346
do
 
4347
  IFS=$as_save_IFS
 
4348
  test -z "$as_dir" && as_dir=.
 
4349
  for lt_ac_prog in sed gsed; do
 
4350
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4351
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
4352
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4353
      fi
 
4354
    done
 
4355
  done
 
4356
done
 
4357
IFS=$as_save_IFS
 
4358
lt_ac_max=0
 
4359
lt_ac_count=0
 
4360
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4361
# along with /bin/sed that truncates output.
 
4362
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4363
  test ! -f $lt_ac_sed && continue
 
4364
  cat /dev/null > conftest.in
 
4365
  lt_ac_count=0
 
4366
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4367
  # Check for GNU sed and select it if it is found.
 
4368
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4369
    lt_cv_path_SED=$lt_ac_sed
 
4370
    break
 
4371
  fi
 
4372
  while true; do
 
4373
    cat conftest.in conftest.in >conftest.tmp
 
4374
    mv conftest.tmp conftest.in
 
4375
    cp conftest.in conftest.nl
 
4376
    echo >>conftest.nl
 
4377
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4378
    cmp -s conftest.out conftest.nl || break
 
4379
    # 10000 chars as input seems more than enough
 
4380
    test $lt_ac_count -gt 10 && break
 
4381
    lt_ac_count=`expr $lt_ac_count + 1`
 
4382
    if test $lt_ac_count -gt $lt_ac_max; then
 
4383
      lt_ac_max=$lt_ac_count
 
4384
      lt_cv_path_SED=$lt_ac_sed
 
4385
    fi
 
4386
  done
 
4387
done
 
4388
 
 
4389
fi
 
4390
 
 
4391
SED=$lt_cv_path_SED
 
4392
 
 
4393
{ echo "$as_me:$LINENO: result: $SED" >&5
 
4394
echo "${ECHO_T}$SED" >&6; }
 
4395
 
 
4396
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4397
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4398
if test "${ac_cv_path_GREP+set}" = set; then
 
4399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4400
else
 
4401
  # Extract the first word of "grep ggrep" to use in msg output
 
4402
if test -z "$GREP"; then
 
4403
set dummy grep ggrep; ac_prog_name=$2
 
4404
if test "${ac_cv_path_GREP+set}" = set; then
 
4405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4406
else
 
4407
  ac_path_GREP_found=false
 
4408
# Loop through the user's path and test for each of PROGNAME-LIST
 
4409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4410
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4411
do
 
4412
  IFS=$as_save_IFS
 
4413
  test -z "$as_dir" && as_dir=.
 
4414
  for ac_prog in grep ggrep; do
 
4415
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4416
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4417
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4418
    # Check for GNU ac_path_GREP and select it if it is found.
 
4419
  # Check for GNU $ac_path_GREP
 
4420
case `"$ac_path_GREP" --version 2>&1` in
 
4421
*GNU*)
 
4422
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4423
*)
 
4424
  ac_count=0
 
4425
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4426
  while :
 
4427
  do
 
4428
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4429
    mv "conftest.tmp" "conftest.in"
 
4430
    cp "conftest.in" "conftest.nl"
 
4431
    echo 'GREP' >> "conftest.nl"
 
4432
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4433
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4434
    ac_count=`expr $ac_count + 1`
 
4435
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4436
      # Best one so far, save it but keep looking for a better one
 
4437
      ac_cv_path_GREP="$ac_path_GREP"
 
4438
      ac_path_GREP_max=$ac_count
 
4439
    fi
 
4440
    # 10*(2^10) chars as input seems more than enough
 
4441
    test $ac_count -gt 10 && break
 
4442
  done
 
4443
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4444
esac
 
4445
 
 
4446
 
 
4447
    $ac_path_GREP_found && break 3
 
4448
  done
 
4449
done
 
4450
 
 
4451
done
 
4452
IFS=$as_save_IFS
 
4453
 
 
4454
 
 
4455
fi
 
4456
 
 
4457
GREP="$ac_cv_path_GREP"
 
4458
if test -z "$GREP"; then
 
4459
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4460
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4461
   { (exit 1); exit 1; }; }
 
4462
fi
 
4463
 
 
4464
else
 
4465
  ac_cv_path_GREP=$GREP
 
4466
fi
 
4467
 
 
4468
 
 
4469
fi
 
4470
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4471
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4472
 GREP="$ac_cv_path_GREP"
 
4473
 
 
4474
 
 
4475
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4476
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4477
if test "${ac_cv_path_EGREP+set}" = set; then
 
4478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4479
else
 
4480
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4481
   then ac_cv_path_EGREP="$GREP -E"
 
4482
   else
 
4483
     # Extract the first word of "egrep" to use in msg output
 
4484
if test -z "$EGREP"; then
 
4485
set dummy egrep; ac_prog_name=$2
 
4486
if test "${ac_cv_path_EGREP+set}" = set; then
 
4487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4488
else
 
4489
  ac_path_EGREP_found=false
 
4490
# Loop through the user's path and test for each of PROGNAME-LIST
 
4491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4492
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4493
do
 
4494
  IFS=$as_save_IFS
 
4495
  test -z "$as_dir" && as_dir=.
 
4496
  for ac_prog in egrep; do
 
4497
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4498
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4499
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4500
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4501
  # Check for GNU $ac_path_EGREP
 
4502
case `"$ac_path_EGREP" --version 2>&1` in
 
4503
*GNU*)
 
4504
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4505
*)
 
4506
  ac_count=0
 
4507
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4508
  while :
 
4509
  do
 
4510
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4511
    mv "conftest.tmp" "conftest.in"
 
4512
    cp "conftest.in" "conftest.nl"
 
4513
    echo 'EGREP' >> "conftest.nl"
 
4514
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4515
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4516
    ac_count=`expr $ac_count + 1`
 
4517
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4518
      # Best one so far, save it but keep looking for a better one
 
4519
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4520
      ac_path_EGREP_max=$ac_count
 
4521
    fi
 
4522
    # 10*(2^10) chars as input seems more than enough
 
4523
    test $ac_count -gt 10 && break
 
4524
  done
 
4525
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4526
esac
 
4527
 
 
4528
 
 
4529
    $ac_path_EGREP_found && break 3
 
4530
  done
 
4531
done
 
4532
 
 
4533
done
 
4534
IFS=$as_save_IFS
 
4535
 
 
4536
 
 
4537
fi
 
4538
 
 
4539
EGREP="$ac_cv_path_EGREP"
 
4540
if test -z "$EGREP"; then
 
4541
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4542
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4543
   { (exit 1); exit 1; }; }
 
4544
fi
 
4545
 
 
4546
else
 
4547
  ac_cv_path_EGREP=$EGREP
 
4548
fi
 
4549
 
 
4550
 
 
4551
   fi
 
4552
fi
 
4553
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4554
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4555
 EGREP="$ac_cv_path_EGREP"
 
4556
 
 
4557
 
 
4558
 
 
4559
# Check whether --with-gnu-ld was given.
 
4560
if test "${with_gnu_ld+set}" = set; then
 
4561
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4562
else
 
4563
  with_gnu_ld=no
 
4564
fi
 
4565
 
 
4566
ac_prog=ld
 
4567
if test "$GCC" = yes; then
 
4568
  # Check if gcc -print-prog-name=ld gives a path.
 
4569
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4570
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4571
  case $host in
 
4572
  *-*-mingw*)
 
4573
    # gcc leaves a trailing carriage return which upsets mingw
 
4574
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4575
  *)
 
4576
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4577
  esac
 
4578
  case $ac_prog in
 
4579
    # Accept absolute paths.
 
4580
    [\\/]* | ?:[\\/]*)
 
4581
      re_direlt='/[^/][^/]*/\.\./'
 
4582
      # Canonicalize the pathname of ld
 
4583
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4584
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4585
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4586
      done
 
4587
      test -z "$LD" && LD="$ac_prog"
 
4588
      ;;
 
4589
  "")
 
4590
    # If it fails, then pretend we aren't using GCC.
 
4591
    ac_prog=ld
 
4592
    ;;
 
4593
  *)
 
4594
    # If it is relative, then search for the first ld in PATH.
 
4595
    with_gnu_ld=unknown
 
4596
    ;;
 
4597
  esac
 
4598
elif test "$with_gnu_ld" = yes; then
 
4599
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4600
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4601
else
 
4602
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4603
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4604
fi
 
4605
if test "${lt_cv_path_LD+set}" = set; then
 
4606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4607
else
 
4608
  if test -z "$LD"; then
 
4609
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4610
  for ac_dir in $PATH; do
 
4611
    IFS="$lt_save_ifs"
 
4612
    test -z "$ac_dir" && ac_dir=.
 
4613
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4614
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4615
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4616
      # but apparently some variants of GNU ld only accept -v.
 
4617
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4618
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4619
      *GNU* | *'with BFD'*)
 
4620
        test "$with_gnu_ld" != no && break
 
4621
        ;;
 
4622
      *)
 
4623
        test "$with_gnu_ld" != yes && break
 
4624
        ;;
 
4625
      esac
 
4626
    fi
 
4627
  done
 
4628
  IFS="$lt_save_ifs"
 
4629
else
 
4630
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4631
fi
 
4632
fi
 
4633
 
 
4634
LD="$lt_cv_path_LD"
 
4635
if test -n "$LD"; then
 
4636
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4637
echo "${ECHO_T}$LD" >&6; }
 
4638
else
 
4639
  { echo "$as_me:$LINENO: result: no" >&5
 
4640
echo "${ECHO_T}no" >&6; }
 
4641
fi
 
4642
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4643
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4644
   { (exit 1); exit 1; }; }
 
4645
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4646
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4647
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4649
else
 
4650
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4651
case `$LD -v 2>&1 </dev/null` in
 
4652
*GNU* | *'with BFD'*)
 
4653
  lt_cv_prog_gnu_ld=yes
 
4654
  ;;
 
4655
*)
 
4656
  lt_cv_prog_gnu_ld=no
 
4657
  ;;
 
4658
esac
 
4659
fi
 
4660
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4661
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4662
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4663
 
 
4664
 
 
4665
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4666
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4667
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4668
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4669
else
 
4670
  lt_cv_ld_reload_flag='-r'
 
4671
fi
 
4672
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4673
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4674
reload_flag=$lt_cv_ld_reload_flag
 
4675
case $reload_flag in
 
4676
"" | " "*) ;;
 
4677
*) reload_flag=" $reload_flag" ;;
 
4678
esac
 
4679
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4680
case $host_os in
 
4681
  darwin*)
 
4682
    if test "$GCC" = yes; then
 
4683
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4684
    else
 
4685
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4686
    fi
 
4687
    ;;
 
4688
esac
 
4689
 
 
4690
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4691
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4692
if test "${lt_cv_path_NM+set}" = set; then
 
4693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4694
else
 
4695
  if test -n "$NM"; then
 
4696
  # Let the user override the test.
 
4697
  lt_cv_path_NM="$NM"
 
4698
else
 
4699
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4700
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4701
    lt_nm_to_check="$lt_nm_to_check nm"
 
4702
  fi
 
4703
  for lt_tmp_nm in $lt_nm_to_check; do
 
4704
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4705
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4706
      IFS="$lt_save_ifs"
 
4707
      test -z "$ac_dir" && ac_dir=.
 
4708
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4709
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4710
        # Check to see if the nm accepts a BSD-compat flag.
 
4711
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4712
        #   nm: unknown option "B" ignored
 
4713
        # Tru64's nm complains that /dev/null is an invalid object file
 
4714
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4715
        */dev/null* | *'Invalid file or object type'*)
 
4716
          lt_cv_path_NM="$tmp_nm -B"
 
4717
          break
 
4718
          ;;
 
4719
        *)
 
4720
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4721
          */dev/null*)
 
4722
            lt_cv_path_NM="$tmp_nm -p"
 
4723
            break
 
4724
            ;;
 
4725
          *)
 
4726
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4727
            continue # so that we can try to find one that supports BSD flags
 
4728
            ;;
 
4729
          esac
 
4730
          ;;
 
4731
        esac
 
4732
      fi
 
4733
    done
 
4734
    IFS="$lt_save_ifs"
 
4735
  done
 
4736
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4737
fi
 
4738
fi
 
4739
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4740
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4741
NM="$lt_cv_path_NM"
 
4742
 
 
4743
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4744
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4745
LN_S=$as_ln_s
 
4746
if test "$LN_S" = "ln -s"; then
 
4747
  { echo "$as_me:$LINENO: result: yes" >&5
 
4748
echo "${ECHO_T}yes" >&6; }
 
4749
else
 
4750
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4751
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4752
fi
 
4753
 
 
4754
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4755
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
4756
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4758
else
 
4759
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4760
lt_cv_file_magic_test_file=
 
4761
lt_cv_deplibs_check_method='unknown'
 
4762
# Need to set the preceding variable on all platforms that support
 
4763
# interlibrary dependencies.
 
4764
# 'none' -- dependencies not supported.
 
4765
# `unknown' -- same as none, but documents that we really don't know.
 
4766
# 'pass_all' -- all dependencies passed with no checks.
 
4767
# 'test_compile' -- check by making test program.
 
4768
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4769
# which responds to the $file_magic_cmd with a given extended regex.
 
4770
# If you have `file' or equivalent on your system and you're not sure
 
4771
# whether `pass_all' will *always* work, you probably want this one.
 
4772
 
 
4773
case $host_os in
 
4774
aix4* | aix5*)
 
4775
  lt_cv_deplibs_check_method=pass_all
 
4776
  ;;
 
4777
 
 
4778
beos*)
 
4779
  lt_cv_deplibs_check_method=pass_all
 
4780
  ;;
 
4781
 
 
4782
bsdi[45]*)
 
4783
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4784
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4785
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4786
  ;;
 
4787
 
 
4788
cygwin*)
 
4789
  # func_win32_libid is a shell function defined in ltmain.sh
 
4790
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4791
  lt_cv_file_magic_cmd='func_win32_libid'
 
4792
  ;;
 
4793
 
 
4794
mingw* | pw32*)
 
4795
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4796
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4797
  # unless we find 'file', for example because we are cross-compiling.
 
4798
  if ( file / ) >/dev/null 2>&1; then
 
4799
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4800
    lt_cv_file_magic_cmd='func_win32_libid'
 
4801
  else
 
4802
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4803
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4804
  fi
 
4805
  ;;
 
4806
 
 
4807
darwin* | rhapsody*)
 
4808
  lt_cv_deplibs_check_method=pass_all
 
4809
  ;;
 
4810
 
 
4811
freebsd* | dragonfly*)
 
4812
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4813
    case $host_cpu in
 
4814
    i*86 )
 
4815
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4816
      # Let's accept both of them until this is cleared up.
 
4817
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4818
      lt_cv_file_magic_cmd=/usr/bin/file
 
4819
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4820
      ;;
 
4821
    esac
 
4822
  else
 
4823
    lt_cv_deplibs_check_method=pass_all
 
4824
  fi
 
4825
  ;;
 
4826
 
 
4827
gnu*)
 
4828
  lt_cv_deplibs_check_method=pass_all
 
4829
  ;;
 
4830
 
 
4831
hpux10.20* | hpux11*)
 
4832
  lt_cv_file_magic_cmd=/usr/bin/file
 
4833
  case $host_cpu in
 
4834
  ia64*)
 
4835
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4836
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4837
    ;;
 
4838
  hppa*64*)
 
4839
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
4840
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4841
    ;;
 
4842
  *)
 
4843
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4844
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4845
    ;;
 
4846
  esac
 
4847
  ;;
 
4848
 
 
4849
interix[3-9]*)
 
4850
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4851
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4852
  ;;
 
4853
 
 
4854
irix5* | irix6* | nonstopux*)
 
4855
  case $LD in
 
4856
  *-32|*"-32 ") libmagic=32-bit;;
 
4857
  *-n32|*"-n32 ") libmagic=N32;;
 
4858
  *-64|*"-64 ") libmagic=64-bit;;
 
4859
  *) libmagic=never-match;;
 
4860
  esac
 
4861
  lt_cv_deplibs_check_method=pass_all
 
4862
  ;;
 
4863
 
 
4864
# This must be Linux ELF.
 
4865
linux* | k*bsd*-gnu)
 
4866
  lt_cv_deplibs_check_method=pass_all
 
4867
  ;;
 
4868
 
 
4869
netbsd*)
 
4870
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4871
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4872
  else
 
4873
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4874
  fi
 
4875
  ;;
 
4876
 
 
4877
newos6*)
 
4878
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4879
  lt_cv_file_magic_cmd=/usr/bin/file
 
4880
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4881
  ;;
 
4882
 
 
4883
nto-qnx*)
 
4884
  lt_cv_deplibs_check_method=unknown
 
4885
  ;;
 
4886
 
 
4887
openbsd*)
 
4888
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4889
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4890
  else
 
4891
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4892
  fi
 
4893
  ;;
 
4894
 
 
4895
osf3* | osf4* | osf5*)
 
4896
  lt_cv_deplibs_check_method=pass_all
 
4897
  ;;
 
4898
 
 
4899
rdos*)
 
4900
  lt_cv_deplibs_check_method=pass_all
 
4901
  ;;
 
4902
 
 
4903
solaris*)
 
4904
  lt_cv_deplibs_check_method=pass_all
 
4905
  ;;
 
4906
 
 
4907
sysv4 | sysv4.3*)
 
4908
  case $host_vendor in
 
4909
  motorola)
 
4910
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
4911
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4912
    ;;
 
4913
  ncr)
 
4914
    lt_cv_deplibs_check_method=pass_all
 
4915
    ;;
 
4916
  sequent)
 
4917
    lt_cv_file_magic_cmd='/bin/file'
 
4918
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4919
    ;;
 
4920
  sni)
 
4921
    lt_cv_file_magic_cmd='/bin/file'
 
4922
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4923
    lt_cv_file_magic_test_file=/lib/libc.so
 
4924
    ;;
 
4925
  siemens)
 
4926
    lt_cv_deplibs_check_method=pass_all
 
4927
    ;;
 
4928
  pc)
 
4929
    lt_cv_deplibs_check_method=pass_all
 
4930
    ;;
 
4931
  esac
 
4932
  ;;
 
4933
 
 
4934
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4935
  lt_cv_deplibs_check_method=pass_all
 
4936
  ;;
 
4937
esac
 
4938
 
 
4939
fi
 
4940
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4941
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4942
file_magic_cmd=$lt_cv_file_magic_cmd
 
4943
deplibs_check_method=$lt_cv_deplibs_check_method
 
4944
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4945
 
 
4946
 
 
4947
 
 
4948
 
 
4949
# If no C compiler was specified, use CC.
 
4950
LTCC=${LTCC-"$CC"}
 
4951
 
 
4952
# If no C compiler flags were specified, use CFLAGS.
 
4953
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4954
 
 
4955
# Allow CC to be a program name with arguments.
 
4956
compiler=$CC
 
4957
 
 
4958
 
 
4959
# Check whether --enable-libtool-lock was given.
 
4960
if test "${enable_libtool_lock+set}" = set; then
 
4961
  enableval=$enable_libtool_lock;
 
4962
fi
 
4963
 
 
4964
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4965
 
 
4966
# Some flags need to be propagated to the compiler or linker for good
 
4967
# libtool support.
 
4968
case $host in
 
4969
ia64-*-hpux*)
 
4970
  # Find out which ABI we are using.
 
4971
  echo 'int i;' > conftest.$ac_ext
 
4972
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4973
  (eval $ac_compile) 2>&5
 
4974
  ac_status=$?
 
4975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4976
  (exit $ac_status); }; then
 
4977
    case `/usr/bin/file conftest.$ac_objext` in
 
4978
    *ELF-32*)
 
4979
      HPUX_IA64_MODE="32"
 
4980
      ;;
 
4981
    *ELF-64*)
 
4982
      HPUX_IA64_MODE="64"
 
4983
      ;;
 
4984
    esac
 
4985
  fi
 
4986
  rm -rf conftest*
 
4987
  ;;
 
4988
*-*-irix6*)
 
4989
  # Find out which ABI we are using.
 
4990
  echo '#line 4990 "configure"' > conftest.$ac_ext
 
4991
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4992
  (eval $ac_compile) 2>&5
 
4993
  ac_status=$?
 
4994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4995
  (exit $ac_status); }; then
 
4996
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4997
    case `/usr/bin/file conftest.$ac_objext` in
 
4998
    *32-bit*)
 
4999
      LD="${LD-ld} -melf32bsmip"
 
5000
      ;;
 
5001
    *N32*)
 
5002
      LD="${LD-ld} -melf32bmipn32"
 
5003
      ;;
 
5004
    *64-bit*)
 
5005
      LD="${LD-ld} -melf64bmip"
 
5006
      ;;
 
5007
    esac
 
5008
   else
 
5009
    case `/usr/bin/file conftest.$ac_objext` in
 
5010
    *32-bit*)
 
5011
      LD="${LD-ld} -32"
 
5012
      ;;
 
5013
    *N32*)
 
5014
      LD="${LD-ld} -n32"
 
5015
      ;;
 
5016
    *64-bit*)
 
5017
      LD="${LD-ld} -64"
 
5018
      ;;
 
5019
    esac
 
5020
   fi
 
5021
  fi
 
5022
  rm -rf conftest*
 
5023
  ;;
 
5024
 
 
5025
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5026
s390*-*linux*|sparc*-*linux*)
 
5027
  # Find out which ABI we are using.
 
5028
  echo 'int i;' > conftest.$ac_ext
 
5029
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5030
  (eval $ac_compile) 2>&5
 
5031
  ac_status=$?
 
5032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5033
  (exit $ac_status); }; then
 
5034
    case `/usr/bin/file conftest.o` in
 
5035
    *32-bit*)
 
5036
      case $host in
 
5037
        x86_64-*kfreebsd*-gnu)
 
5038
          LD="${LD-ld} -m elf_i386_fbsd"
 
5039
          ;;
 
5040
        x86_64-*linux*)
 
5041
          LD="${LD-ld} -m elf_i386"
 
5042
          ;;
 
5043
        ppc64-*linux*|powerpc64-*linux*)
 
5044
          LD="${LD-ld} -m elf32ppclinux"
 
5045
          ;;
 
5046
        s390x-*linux*)
 
5047
          LD="${LD-ld} -m elf_s390"
 
5048
          ;;
 
5049
        sparc64-*linux*)
 
5050
          LD="${LD-ld} -m elf32_sparc"
 
5051
          ;;
 
5052
      esac
 
5053
      ;;
 
5054
    *64-bit*)
 
5055
      case $host in
 
5056
        x86_64-*kfreebsd*-gnu)
 
5057
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
5058
          ;;
 
5059
        x86_64-*linux*)
 
5060
          LD="${LD-ld} -m elf_x86_64"
 
5061
          ;;
 
5062
        ppc*-*linux*|powerpc*-*linux*)
 
5063
          LD="${LD-ld} -m elf64ppc"
 
5064
          ;;
 
5065
        s390*-*linux*)
 
5066
          LD="${LD-ld} -m elf64_s390"
 
5067
          ;;
 
5068
        sparc*-*linux*)
 
5069
          LD="${LD-ld} -m elf64_sparc"
 
5070
          ;;
 
5071
      esac
 
5072
      ;;
 
5073
    esac
 
5074
  fi
 
5075
  rm -rf conftest*
 
5076
  ;;
 
5077
 
 
5078
*-*-sco3.2v5*)
 
5079
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5080
  SAVE_CFLAGS="$CFLAGS"
 
5081
  CFLAGS="$CFLAGS -belf"
 
5082
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5083
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
5084
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5086
else
 
5087
  ac_ext=c
 
5088
ac_cpp='$CPP $CPPFLAGS'
 
5089
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5090
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5091
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5092
 
 
5093
     cat >conftest.$ac_ext <<_ACEOF
 
5094
/* confdefs.h.  */
 
5095
_ACEOF
 
5096
cat confdefs.h >>conftest.$ac_ext
 
5097
cat >>conftest.$ac_ext <<_ACEOF
 
5098
/* end confdefs.h.  */
 
5099
 
 
5100
int
 
5101
main ()
 
5102
{
 
5103
 
 
5104
  ;
 
5105
  return 0;
 
5106
}
 
5107
_ACEOF
 
5108
rm -f conftest.$ac_objext conftest$ac_exeext
 
5109
if { (ac_try="$ac_link"
 
5110
case "(($ac_try" in
 
5111
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5112
  *) ac_try_echo=$ac_try;;
 
5113
esac
 
5114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5115
  (eval "$ac_link") 2>conftest.er1
 
5116
  ac_status=$?
 
5117
  grep -v '^ *+' conftest.er1 >conftest.err
 
5118
  rm -f conftest.er1
 
5119
  cat conftest.err >&5
 
5120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5121
  (exit $ac_status); } && {
 
5122
         test -z "$ac_c_werror_flag" ||
 
5123
         test ! -s conftest.err
 
5124
       } && test -s conftest$ac_exeext &&
 
5125
       $as_test_x conftest$ac_exeext; then
 
5126
  lt_cv_cc_needs_belf=yes
 
5127
else
 
5128
  echo "$as_me: failed program was:" >&5
 
5129
sed 's/^/| /' conftest.$ac_ext >&5
 
5130
 
 
5131
        lt_cv_cc_needs_belf=no
 
5132
fi
 
5133
 
 
5134
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5135
      conftest$ac_exeext conftest.$ac_ext
 
5136
     ac_ext=c
 
5137
ac_cpp='$CPP $CPPFLAGS'
 
5138
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5139
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5140
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5141
 
 
5142
fi
 
5143
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5144
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
5145
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5146
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5147
    CFLAGS="$SAVE_CFLAGS"
 
5148
  fi
 
5149
  ;;
 
5150
sparc*-*solaris*)
 
5151
  # Find out which ABI we are using.
 
5152
  echo 'int i;' > conftest.$ac_ext
 
5153
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5154
  (eval $ac_compile) 2>&5
 
5155
  ac_status=$?
 
5156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5157
  (exit $ac_status); }; then
 
5158
    case `/usr/bin/file conftest.o` in
 
5159
    *64-bit*)
 
5160
      case $lt_cv_prog_gnu_ld in
 
5161
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5162
      *)    LD="${LD-ld} -64" ;;
 
5163
      esac
 
5164
      ;;
 
5165
    esac
 
5166
  fi
 
5167
  rm -rf conftest*
 
5168
  ;;
 
5169
 
 
5170
 
 
5171
esac
 
5172
 
 
5173
need_locks="$enable_libtool_lock"
 
5174
 
 
5175
 
 
5176
ac_ext=c
 
5177
ac_cpp='$CPP $CPPFLAGS'
 
5178
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5179
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5180
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5181
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
5182
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
5183
# On Suns, sometimes $CPP names a directory.
 
5184
if test -n "$CPP" && test -d "$CPP"; then
 
5185
  CPP=
 
5186
fi
 
5187
if test -z "$CPP"; then
 
5188
  if test "${ac_cv_prog_CPP+set}" = set; then
 
5189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5190
else
 
5191
      # Double quotes because CPP needs to be expanded
 
5192
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5193
    do
 
5194
      ac_preproc_ok=false
 
5195
for ac_c_preproc_warn_flag in '' yes
 
5196
do
 
5197
  # Use a header file that comes with gcc, so configuring glibc
 
5198
  # with a fresh cross-compiler works.
 
5199
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5200
  # <limits.h> exists even on freestanding compilers.
 
5201
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5202
  # not just through cpp. "Syntax error" is here to catch this case.
 
5203
  cat >conftest.$ac_ext <<_ACEOF
 
5204
/* confdefs.h.  */
 
5205
_ACEOF
 
5206
cat confdefs.h >>conftest.$ac_ext
 
5207
cat >>conftest.$ac_ext <<_ACEOF
 
5208
/* end confdefs.h.  */
 
5209
#ifdef __STDC__
 
5210
# include <limits.h>
 
5211
#else
 
5212
# include <assert.h>
 
5213
#endif
 
5214
                     Syntax error
 
5215
_ACEOF
 
5216
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5217
case "(($ac_try" in
 
5218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5219
  *) ac_try_echo=$ac_try;;
 
5220
esac
 
5221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5222
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5223
  ac_status=$?
 
5224
  grep -v '^ *+' conftest.er1 >conftest.err
 
5225
  rm -f conftest.er1
 
5226
  cat conftest.err >&5
 
5227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5228
  (exit $ac_status); } >/dev/null && {
 
5229
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5230
         test ! -s conftest.err
 
5231
       }; then
 
5232
  :
 
5233
else
 
5234
  echo "$as_me: failed program was:" >&5
 
5235
sed 's/^/| /' conftest.$ac_ext >&5
 
5236
 
 
5237
  # Broken: fails on valid input.
 
5238
continue
 
5239
fi
 
5240
 
 
5241
rm -f conftest.err conftest.$ac_ext
 
5242
 
 
5243
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5244
  # can be detected and how.
 
5245
  cat >conftest.$ac_ext <<_ACEOF
 
5246
/* confdefs.h.  */
 
5247
_ACEOF
 
5248
cat confdefs.h >>conftest.$ac_ext
 
5249
cat >>conftest.$ac_ext <<_ACEOF
 
5250
/* end confdefs.h.  */
 
5251
#include <ac_nonexistent.h>
 
5252
_ACEOF
 
5253
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5254
case "(($ac_try" in
 
5255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5256
  *) ac_try_echo=$ac_try;;
 
5257
esac
 
5258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5259
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5260
  ac_status=$?
 
5261
  grep -v '^ *+' conftest.er1 >conftest.err
 
5262
  rm -f conftest.er1
 
5263
  cat conftest.err >&5
 
5264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5265
  (exit $ac_status); } >/dev/null && {
 
5266
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5267
         test ! -s conftest.err
 
5268
       }; then
 
5269
  # Broken: success on invalid input.
 
5270
continue
 
5271
else
 
5272
  echo "$as_me: failed program was:" >&5
 
5273
sed 's/^/| /' conftest.$ac_ext >&5
 
5274
 
 
5275
  # Passes both tests.
 
5276
ac_preproc_ok=:
 
5277
break
 
5278
fi
 
5279
 
 
5280
rm -f conftest.err conftest.$ac_ext
 
5281
 
 
5282
done
 
5283
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5284
rm -f conftest.err conftest.$ac_ext
 
5285
if $ac_preproc_ok; then
 
5286
  break
 
5287
fi
 
5288
 
 
5289
    done
 
5290
    ac_cv_prog_CPP=$CPP
 
5291
 
 
5292
fi
 
5293
  CPP=$ac_cv_prog_CPP
 
5294
else
 
5295
  ac_cv_prog_CPP=$CPP
 
5296
fi
 
5297
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
5298
echo "${ECHO_T}$CPP" >&6; }
 
5299
ac_preproc_ok=false
 
5300
for ac_c_preproc_warn_flag in '' yes
 
5301
do
 
5302
  # Use a header file that comes with gcc, so configuring glibc
 
5303
  # with a fresh cross-compiler works.
 
5304
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5305
  # <limits.h> exists even on freestanding compilers.
 
5306
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5307
  # not just through cpp. "Syntax error" is here to catch this case.
 
5308
  cat >conftest.$ac_ext <<_ACEOF
 
5309
/* confdefs.h.  */
 
5310
_ACEOF
 
5311
cat confdefs.h >>conftest.$ac_ext
 
5312
cat >>conftest.$ac_ext <<_ACEOF
 
5313
/* end confdefs.h.  */
 
5314
#ifdef __STDC__
 
5315
# include <limits.h>
 
5316
#else
 
5317
# include <assert.h>
 
5318
#endif
 
5319
                     Syntax error
 
5320
_ACEOF
 
5321
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5322
case "(($ac_try" in
 
5323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5324
  *) ac_try_echo=$ac_try;;
 
5325
esac
 
5326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5327
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5328
  ac_status=$?
 
5329
  grep -v '^ *+' conftest.er1 >conftest.err
 
5330
  rm -f conftest.er1
 
5331
  cat conftest.err >&5
 
5332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5333
  (exit $ac_status); } >/dev/null && {
 
5334
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5335
         test ! -s conftest.err
 
5336
       }; then
 
5337
  :
 
5338
else
 
5339
  echo "$as_me: failed program was:" >&5
 
5340
sed 's/^/| /' conftest.$ac_ext >&5
 
5341
 
 
5342
  # Broken: fails on valid input.
 
5343
continue
 
5344
fi
 
5345
 
 
5346
rm -f conftest.err conftest.$ac_ext
 
5347
 
 
5348
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5349
  # can be detected and how.
 
5350
  cat >conftest.$ac_ext <<_ACEOF
 
5351
/* confdefs.h.  */
 
5352
_ACEOF
 
5353
cat confdefs.h >>conftest.$ac_ext
 
5354
cat >>conftest.$ac_ext <<_ACEOF
 
5355
/* end confdefs.h.  */
 
5356
#include <ac_nonexistent.h>
 
5357
_ACEOF
 
5358
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5359
case "(($ac_try" in
 
5360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5361
  *) ac_try_echo=$ac_try;;
 
5362
esac
 
5363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5364
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5365
  ac_status=$?
 
5366
  grep -v '^ *+' conftest.er1 >conftest.err
 
5367
  rm -f conftest.er1
 
5368
  cat conftest.err >&5
 
5369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5370
  (exit $ac_status); } >/dev/null && {
 
5371
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5372
         test ! -s conftest.err
 
5373
       }; then
 
5374
  # Broken: success on invalid input.
 
5375
continue
 
5376
else
 
5377
  echo "$as_me: failed program was:" >&5
 
5378
sed 's/^/| /' conftest.$ac_ext >&5
 
5379
 
 
5380
  # Passes both tests.
 
5381
ac_preproc_ok=:
 
5382
break
 
5383
fi
 
5384
 
 
5385
rm -f conftest.err conftest.$ac_ext
 
5386
 
 
5387
done
 
5388
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5389
rm -f conftest.err conftest.$ac_ext
 
5390
if $ac_preproc_ok; then
 
5391
  :
 
5392
else
 
5393
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5394
See \`config.log' for more details." >&5
 
5395
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5396
See \`config.log' for more details." >&2;}
 
5397
   { (exit 1); exit 1; }; }
 
5398
fi
 
5399
 
 
5400
ac_ext=c
 
5401
ac_cpp='$CPP $CPPFLAGS'
 
5402
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5403
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5404
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5405
 
 
5406
 
 
5407
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5408
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
5409
if test "${ac_cv_header_stdc+set}" = set; then
 
5410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5411
else
 
5412
  cat >conftest.$ac_ext <<_ACEOF
 
5413
/* confdefs.h.  */
 
5414
_ACEOF
 
5415
cat confdefs.h >>conftest.$ac_ext
 
5416
cat >>conftest.$ac_ext <<_ACEOF
 
5417
/* end confdefs.h.  */
 
5418
#include <stdlib.h>
 
5419
#include <stdarg.h>
 
5420
#include <string.h>
 
5421
#include <float.h>
 
5422
 
 
5423
int
 
5424
main ()
 
5425
{
 
5426
 
 
5427
  ;
 
5428
  return 0;
 
5429
}
 
5430
_ACEOF
 
5431
rm -f conftest.$ac_objext
 
5432
if { (ac_try="$ac_compile"
 
5433
case "(($ac_try" in
 
5434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5435
  *) ac_try_echo=$ac_try;;
 
5436
esac
 
5437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5438
  (eval "$ac_compile") 2>conftest.er1
 
5439
  ac_status=$?
 
5440
  grep -v '^ *+' conftest.er1 >conftest.err
 
5441
  rm -f conftest.er1
 
5442
  cat conftest.err >&5
 
5443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5444
  (exit $ac_status); } && {
 
5445
         test -z "$ac_c_werror_flag" ||
 
5446
         test ! -s conftest.err
 
5447
       } && test -s conftest.$ac_objext; then
 
5448
  ac_cv_header_stdc=yes
 
5449
else
 
5450
  echo "$as_me: failed program was:" >&5
 
5451
sed 's/^/| /' conftest.$ac_ext >&5
 
5452
 
 
5453
        ac_cv_header_stdc=no
 
5454
fi
 
5455
 
 
5456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5457
 
 
5458
if test $ac_cv_header_stdc = yes; then
 
5459
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5460
  cat >conftest.$ac_ext <<_ACEOF
 
5461
/* confdefs.h.  */
 
5462
_ACEOF
 
5463
cat confdefs.h >>conftest.$ac_ext
 
5464
cat >>conftest.$ac_ext <<_ACEOF
 
5465
/* end confdefs.h.  */
 
5466
#include <string.h>
 
5467
 
 
5468
_ACEOF
 
5469
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5470
  $EGREP "memchr" >/dev/null 2>&1; then
 
5471
  :
 
5472
else
 
5473
  ac_cv_header_stdc=no
 
5474
fi
 
5475
rm -f conftest*
 
5476
 
 
5477
fi
 
5478
 
 
5479
if test $ac_cv_header_stdc = yes; then
 
5480
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5481
  cat >conftest.$ac_ext <<_ACEOF
 
5482
/* confdefs.h.  */
 
5483
_ACEOF
 
5484
cat confdefs.h >>conftest.$ac_ext
 
5485
cat >>conftest.$ac_ext <<_ACEOF
 
5486
/* end confdefs.h.  */
 
5487
#include <stdlib.h>
 
5488
 
 
5489
_ACEOF
 
5490
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5491
  $EGREP "free" >/dev/null 2>&1; then
 
5492
  :
 
5493
else
 
5494
  ac_cv_header_stdc=no
 
5495
fi
 
5496
rm -f conftest*
 
5497
 
 
5498
fi
 
5499
 
 
5500
if test $ac_cv_header_stdc = yes; then
 
5501
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5502
  if test "$cross_compiling" = yes; then
 
5503
  :
 
5504
else
 
5505
  cat >conftest.$ac_ext <<_ACEOF
 
5506
/* confdefs.h.  */
 
5507
_ACEOF
 
5508
cat confdefs.h >>conftest.$ac_ext
 
5509
cat >>conftest.$ac_ext <<_ACEOF
 
5510
/* end confdefs.h.  */
 
5511
#include <ctype.h>
 
5512
#include <stdlib.h>
 
5513
#if ((' ' & 0x0FF) == 0x020)
 
5514
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5515
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5516
#else
 
5517
# define ISLOWER(c) \
 
5518
                   (('a' <= (c) && (c) <= 'i') \
 
5519
                     || ('j' <= (c) && (c) <= 'r') \
 
5520
                     || ('s' <= (c) && (c) <= 'z'))
 
5521
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5522
#endif
 
5523
 
 
5524
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5525
int
 
5526
main ()
 
5527
{
 
5528
  int i;
 
5529
  for (i = 0; i < 256; i++)
 
5530
    if (XOR (islower (i), ISLOWER (i))
 
5531
        || toupper (i) != TOUPPER (i))
 
5532
      return 2;
 
5533
  return 0;
 
5534
}
 
5535
_ACEOF
 
5536
rm -f conftest$ac_exeext
 
5537
if { (ac_try="$ac_link"
 
5538
case "(($ac_try" in
 
5539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5540
  *) ac_try_echo=$ac_try;;
 
5541
esac
 
5542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5543
  (eval "$ac_link") 2>&5
 
5544
  ac_status=$?
 
5545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5546
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5547
  { (case "(($ac_try" in
 
5548
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5549
  *) ac_try_echo=$ac_try;;
 
5550
esac
 
5551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5552
  (eval "$ac_try") 2>&5
 
5553
  ac_status=$?
 
5554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5555
  (exit $ac_status); }; }; then
 
5556
  :
 
5557
else
 
5558
  echo "$as_me: program exited with status $ac_status" >&5
 
5559
echo "$as_me: failed program was:" >&5
 
5560
sed 's/^/| /' conftest.$ac_ext >&5
 
5561
 
 
5562
( exit $ac_status )
 
5563
ac_cv_header_stdc=no
 
5564
fi
 
5565
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5566
fi
 
5567
 
 
5568
 
 
5569
fi
 
5570
fi
 
5571
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5572
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5573
if test $ac_cv_header_stdc = yes; then
 
5574
 
 
5575
cat >>confdefs.h <<\_ACEOF
 
5576
#define STDC_HEADERS 1
 
5577
_ACEOF
 
5578
 
 
5579
fi
 
5580
 
 
5581
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5582
 
 
5583
 
 
5584
 
 
5585
 
 
5586
 
 
5587
 
 
5588
 
 
5589
 
 
5590
 
 
5591
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5592
                  inttypes.h stdint.h unistd.h
 
5593
do
 
5594
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5595
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5596
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5597
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5598
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5599
else
 
5600
  cat >conftest.$ac_ext <<_ACEOF
 
5601
/* confdefs.h.  */
 
5602
_ACEOF
 
5603
cat confdefs.h >>conftest.$ac_ext
 
5604
cat >>conftest.$ac_ext <<_ACEOF
 
5605
/* end confdefs.h.  */
 
5606
$ac_includes_default
 
5607
 
 
5608
#include <$ac_header>
 
5609
_ACEOF
 
5610
rm -f conftest.$ac_objext
 
5611
if { (ac_try="$ac_compile"
 
5612
case "(($ac_try" in
 
5613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5614
  *) ac_try_echo=$ac_try;;
 
5615
esac
 
5616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5617
  (eval "$ac_compile") 2>conftest.er1
 
5618
  ac_status=$?
 
5619
  grep -v '^ *+' conftest.er1 >conftest.err
 
5620
  rm -f conftest.er1
 
5621
  cat conftest.err >&5
 
5622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5623
  (exit $ac_status); } && {
 
5624
         test -z "$ac_c_werror_flag" ||
 
5625
         test ! -s conftest.err
 
5626
       } && test -s conftest.$ac_objext; then
 
5627
  eval "$as_ac_Header=yes"
 
5628
else
 
5629
  echo "$as_me: failed program was:" >&5
 
5630
sed 's/^/| /' conftest.$ac_ext >&5
 
5631
 
 
5632
        eval "$as_ac_Header=no"
 
5633
fi
 
5634
 
 
5635
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5636
fi
 
5637
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5638
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5639
echo "${ECHO_T}$ac_res" >&6; }
 
5640
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5641
  cat >>confdefs.h <<_ACEOF
 
5642
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5643
_ACEOF
 
5644
 
 
5645
fi
 
5646
 
 
5647
done
 
5648
 
 
5649
 
 
5650
 
 
5651
for ac_header in dlfcn.h
 
5652
do
 
5653
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5654
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5655
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5656
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5657
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5659
fi
 
5660
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5661
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5662
echo "${ECHO_T}$ac_res" >&6; }
 
5663
else
 
5664
  # Is the header compilable?
 
5665
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5666
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5667
cat >conftest.$ac_ext <<_ACEOF
 
5668
/* confdefs.h.  */
 
5669
_ACEOF
 
5670
cat confdefs.h >>conftest.$ac_ext
 
5671
cat >>conftest.$ac_ext <<_ACEOF
 
5672
/* end confdefs.h.  */
 
5673
$ac_includes_default
 
5674
#include <$ac_header>
 
5675
_ACEOF
 
5676
rm -f conftest.$ac_objext
 
5677
if { (ac_try="$ac_compile"
 
5678
case "(($ac_try" in
 
5679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5680
  *) ac_try_echo=$ac_try;;
 
5681
esac
 
5682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5683
  (eval "$ac_compile") 2>conftest.er1
 
5684
  ac_status=$?
 
5685
  grep -v '^ *+' conftest.er1 >conftest.err
 
5686
  rm -f conftest.er1
 
5687
  cat conftest.err >&5
 
5688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5689
  (exit $ac_status); } && {
 
5690
         test -z "$ac_c_werror_flag" ||
 
5691
         test ! -s conftest.err
 
5692
       } && test -s conftest.$ac_objext; then
 
5693
  ac_header_compiler=yes
 
5694
else
 
5695
  echo "$as_me: failed program was:" >&5
 
5696
sed 's/^/| /' conftest.$ac_ext >&5
 
5697
 
 
5698
        ac_header_compiler=no
 
5699
fi
 
5700
 
 
5701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5702
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5703
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5704
 
 
5705
# Is the header present?
 
5706
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5707
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5708
cat >conftest.$ac_ext <<_ACEOF
 
5709
/* confdefs.h.  */
 
5710
_ACEOF
 
5711
cat confdefs.h >>conftest.$ac_ext
 
5712
cat >>conftest.$ac_ext <<_ACEOF
 
5713
/* end confdefs.h.  */
 
5714
#include <$ac_header>
 
5715
_ACEOF
 
5716
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5717
case "(($ac_try" in
 
5718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5719
  *) ac_try_echo=$ac_try;;
 
5720
esac
 
5721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5722
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5723
  ac_status=$?
 
5724
  grep -v '^ *+' conftest.er1 >conftest.err
 
5725
  rm -f conftest.er1
 
5726
  cat conftest.err >&5
 
5727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5728
  (exit $ac_status); } >/dev/null && {
 
5729
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5730
         test ! -s conftest.err
 
5731
       }; then
 
5732
  ac_header_preproc=yes
 
5733
else
 
5734
  echo "$as_me: failed program was:" >&5
 
5735
sed 's/^/| /' conftest.$ac_ext >&5
 
5736
 
 
5737
  ac_header_preproc=no
 
5738
fi
 
5739
 
 
5740
rm -f conftest.err conftest.$ac_ext
 
5741
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5742
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5743
 
 
5744
# So?  What about this header?
 
5745
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5746
  yes:no: )
 
5747
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5748
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5749
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5750
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5751
    ac_header_preproc=yes
 
5752
    ;;
 
5753
  no:yes:* )
 
5754
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5755
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5756
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5757
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5758
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5759
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5760
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5761
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5762
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5763
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5764
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5765
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5766
 
 
5767
    ;;
 
5768
esac
 
5769
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5770
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5771
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5773
else
 
5774
  eval "$as_ac_Header=\$ac_header_preproc"
 
5775
fi
 
5776
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5777
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5778
echo "${ECHO_T}$ac_res" >&6; }
 
5779
 
 
5780
fi
 
5781
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5782
  cat >>confdefs.h <<_ACEOF
 
5783
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5784
_ACEOF
 
5785
 
 
5786
fi
 
5787
 
 
5788
done
 
5789
 
 
5790
 
 
5791
 
 
5792
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5793
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5794
    (test "X$CXX" != "Xg++"))) ; then
 
5795
  ac_ext=cpp
 
5796
ac_cpp='$CXXCPP $CPPFLAGS'
 
5797
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5798
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5799
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5800
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5801
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5802
if test -z "$CXXCPP"; then
 
5803
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5805
else
 
5806
      # Double quotes because CXXCPP needs to be expanded
 
5807
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5808
    do
 
5809
      ac_preproc_ok=false
 
5810
for ac_cxx_preproc_warn_flag in '' yes
 
5811
do
 
5812
  # Use a header file that comes with gcc, so configuring glibc
 
5813
  # with a fresh cross-compiler works.
 
5814
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5815
  # <limits.h> exists even on freestanding compilers.
 
5816
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5817
  # not just through cpp. "Syntax error" is here to catch this case.
 
5818
  cat >conftest.$ac_ext <<_ACEOF
 
5819
/* confdefs.h.  */
 
5820
_ACEOF
 
5821
cat confdefs.h >>conftest.$ac_ext
 
5822
cat >>conftest.$ac_ext <<_ACEOF
 
5823
/* end confdefs.h.  */
 
5824
#ifdef __STDC__
 
5825
# include <limits.h>
 
5826
#else
 
5827
# include <assert.h>
 
5828
#endif
 
5829
                     Syntax error
 
5830
_ACEOF
 
5831
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5832
case "(($ac_try" in
 
5833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5834
  *) ac_try_echo=$ac_try;;
 
5835
esac
 
5836
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5837
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5838
  ac_status=$?
 
5839
  grep -v '^ *+' conftest.er1 >conftest.err
 
5840
  rm -f conftest.er1
 
5841
  cat conftest.err >&5
 
5842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5843
  (exit $ac_status); } >/dev/null && {
 
5844
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5845
         test ! -s conftest.err
 
5846
       }; then
 
5847
  :
 
5848
else
 
5849
  echo "$as_me: failed program was:" >&5
 
5850
sed 's/^/| /' conftest.$ac_ext >&5
 
5851
 
 
5852
  # Broken: fails on valid input.
 
5853
continue
 
5854
fi
 
5855
 
 
5856
rm -f conftest.err conftest.$ac_ext
 
5857
 
 
5858
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5859
  # can be detected and how.
 
5860
  cat >conftest.$ac_ext <<_ACEOF
 
5861
/* confdefs.h.  */
 
5862
_ACEOF
 
5863
cat confdefs.h >>conftest.$ac_ext
 
5864
cat >>conftest.$ac_ext <<_ACEOF
 
5865
/* end confdefs.h.  */
 
5866
#include <ac_nonexistent.h>
 
5867
_ACEOF
 
5868
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5869
case "(($ac_try" in
 
5870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5871
  *) ac_try_echo=$ac_try;;
 
5872
esac
 
5873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5874
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5875
  ac_status=$?
 
5876
  grep -v '^ *+' conftest.er1 >conftest.err
 
5877
  rm -f conftest.er1
 
5878
  cat conftest.err >&5
 
5879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5880
  (exit $ac_status); } >/dev/null && {
 
5881
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5882
         test ! -s conftest.err
 
5883
       }; then
 
5884
  # Broken: success on invalid input.
 
5885
continue
 
5886
else
 
5887
  echo "$as_me: failed program was:" >&5
 
5888
sed 's/^/| /' conftest.$ac_ext >&5
 
5889
 
 
5890
  # Passes both tests.
 
5891
ac_preproc_ok=:
 
5892
break
 
5893
fi
 
5894
 
 
5895
rm -f conftest.err conftest.$ac_ext
 
5896
 
 
5897
done
 
5898
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5899
rm -f conftest.err conftest.$ac_ext
 
5900
if $ac_preproc_ok; then
 
5901
  break
 
5902
fi
 
5903
 
 
5904
    done
 
5905
    ac_cv_prog_CXXCPP=$CXXCPP
 
5906
 
 
5907
fi
 
5908
  CXXCPP=$ac_cv_prog_CXXCPP
 
5909
else
 
5910
  ac_cv_prog_CXXCPP=$CXXCPP
 
5911
fi
 
5912
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5913
echo "${ECHO_T}$CXXCPP" >&6; }
 
5914
ac_preproc_ok=false
 
5915
for ac_cxx_preproc_warn_flag in '' yes
 
5916
do
 
5917
  # Use a header file that comes with gcc, so configuring glibc
 
5918
  # with a fresh cross-compiler works.
 
5919
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5920
  # <limits.h> exists even on freestanding compilers.
 
5921
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5922
  # not just through cpp. "Syntax error" is here to catch this case.
 
5923
  cat >conftest.$ac_ext <<_ACEOF
 
5924
/* confdefs.h.  */
 
5925
_ACEOF
 
5926
cat confdefs.h >>conftest.$ac_ext
 
5927
cat >>conftest.$ac_ext <<_ACEOF
 
5928
/* end confdefs.h.  */
 
5929
#ifdef __STDC__
 
5930
# include <limits.h>
 
5931
#else
 
5932
# include <assert.h>
 
5933
#endif
 
5934
                     Syntax error
 
5935
_ACEOF
 
5936
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5937
case "(($ac_try" in
 
5938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5939
  *) ac_try_echo=$ac_try;;
 
5940
esac
 
5941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5942
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5943
  ac_status=$?
 
5944
  grep -v '^ *+' conftest.er1 >conftest.err
 
5945
  rm -f conftest.er1
 
5946
  cat conftest.err >&5
 
5947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5948
  (exit $ac_status); } >/dev/null && {
 
5949
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5950
         test ! -s conftest.err
 
5951
       }; then
 
5952
  :
 
5953
else
 
5954
  echo "$as_me: failed program was:" >&5
 
5955
sed 's/^/| /' conftest.$ac_ext >&5
 
5956
 
 
5957
  # Broken: fails on valid input.
 
5958
continue
 
5959
fi
 
5960
 
 
5961
rm -f conftest.err conftest.$ac_ext
 
5962
 
 
5963
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5964
  # can be detected and how.
 
5965
  cat >conftest.$ac_ext <<_ACEOF
 
5966
/* confdefs.h.  */
 
5967
_ACEOF
 
5968
cat confdefs.h >>conftest.$ac_ext
 
5969
cat >>conftest.$ac_ext <<_ACEOF
 
5970
/* end confdefs.h.  */
 
5971
#include <ac_nonexistent.h>
 
5972
_ACEOF
 
5973
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5974
case "(($ac_try" in
 
5975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5976
  *) ac_try_echo=$ac_try;;
 
5977
esac
 
5978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5979
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5980
  ac_status=$?
 
5981
  grep -v '^ *+' conftest.er1 >conftest.err
 
5982
  rm -f conftest.er1
 
5983
  cat conftest.err >&5
 
5984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5985
  (exit $ac_status); } >/dev/null && {
 
5986
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5987
         test ! -s conftest.err
 
5988
       }; then
 
5989
  # Broken: success on invalid input.
 
5990
continue
 
5991
else
 
5992
  echo "$as_me: failed program was:" >&5
 
5993
sed 's/^/| /' conftest.$ac_ext >&5
 
5994
 
 
5995
  # Passes both tests.
 
5996
ac_preproc_ok=:
 
5997
break
 
5998
fi
 
5999
 
 
6000
rm -f conftest.err conftest.$ac_ext
 
6001
 
 
6002
done
 
6003
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6004
rm -f conftest.err conftest.$ac_ext
 
6005
if $ac_preproc_ok; then
 
6006
  :
 
6007
else
 
6008
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6009
See \`config.log' for more details." >&5
 
6010
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6011
See \`config.log' for more details." >&2;}
 
6012
   { (exit 1); exit 1; }; }
 
6013
fi
 
6014
 
3411
6015
ac_ext=cpp
3412
6016
ac_cpp='$CXXCPP $CPPFLAGS'
3413
6017
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414
6018
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415
6019
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3416
 
if test -z "$CXX"; then
3417
 
  if test -n "$CCC"; then
3418
 
    CXX=$CCC
3419
 
  else
3420
 
    if test -n "$ac_tool_prefix"; then
3421
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6020
 
 
6021
fi
 
6022
 
 
6023
 
 
6024
ac_ext=f
 
6025
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6026
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6027
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6028
if test -n "$ac_tool_prefix"; then
 
6029
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
3422
6030
  do
3423
6031
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3424
6032
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3425
6033
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3426
6034
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3427
 
if test "${ac_cv_prog_CXX+set}" = set; then
 
6035
if test "${ac_cv_prog_F77+set}" = set; then
3428
6036
  echo $ECHO_N "(cached) $ECHO_C" >&6
3429
6037
else
3430
 
  if test -n "$CXX"; then
3431
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
6038
  if test -n "$F77"; then
 
6039
  ac_cv_prog_F77="$F77" # Let the user override the test.
3432
6040
else
3433
6041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434
6042
for as_dir in $PATH
3437
6045
  test -z "$as_dir" && as_dir=.
3438
6046
  for ac_exec_ext in '' $ac_executable_extensions; do
3439
6047
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
6048
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3441
6049
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442
6050
    break 2
3443
6051
  fi
3447
6055
 
3448
6056
fi
3449
6057
fi
3450
 
CXX=$ac_cv_prog_CXX
3451
 
if test -n "$CXX"; then
3452
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
3453
 
echo "${ECHO_T}$CXX" >&6; }
 
6058
F77=$ac_cv_prog_F77
 
6059
if test -n "$F77"; then
 
6060
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6061
echo "${ECHO_T}$F77" >&6; }
3454
6062
else
3455
6063
  { echo "$as_me:$LINENO: result: no" >&5
3456
6064
echo "${ECHO_T}no" >&6; }
3457
6065
fi
3458
6066
 
3459
6067
 
3460
 
    test -n "$CXX" && break
 
6068
    test -n "$F77" && break
3461
6069
  done
3462
6070
fi
3463
 
if test -z "$CXX"; then
3464
 
  ac_ct_CXX=$CXX
3465
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6071
if test -z "$F77"; then
 
6072
  ac_ct_F77=$F77
 
6073
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
3466
6074
do
3467
6075
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3468
6076
set dummy $ac_prog; ac_word=$2
3469
6077
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3470
6078
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3471
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
6079
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3472
6080
  echo $ECHO_N "(cached) $ECHO_C" >&6
3473
6081
else
3474
 
  if test -n "$ac_ct_CXX"; then
3475
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
6082
  if test -n "$ac_ct_F77"; then
 
6083
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3476
6084
else
3477
6085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478
6086
for as_dir in $PATH
3481
6089
  test -z "$as_dir" && as_dir=.
3482
6090
  for ac_exec_ext in '' $ac_executable_extensions; do
3483
6091
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
6092
    ac_cv_prog_ac_ct_F77="$ac_prog"
3485
6093
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486
6094
    break 2
3487
6095
  fi
3491
6099
 
3492
6100
fi
3493
6101
fi
3494
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3495
 
if test -n "$ac_ct_CXX"; then
3496
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3497
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
6102
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6103
if test -n "$ac_ct_F77"; then
 
6104
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6105
echo "${ECHO_T}$ac_ct_F77" >&6; }
3498
6106
else
3499
6107
  { echo "$as_me:$LINENO: result: no" >&5
3500
6108
echo "${ECHO_T}no" >&6; }
3501
6109
fi
3502
6110
 
3503
6111
 
3504
 
  test -n "$ac_ct_CXX" && break
 
6112
  test -n "$ac_ct_F77" && break
3505
6113
done
3506
6114
 
3507
 
  if test "x$ac_ct_CXX" = x; then
3508
 
    CXX="g++"
 
6115
  if test "x$ac_ct_F77" = x; then
 
6116
    F77=""
3509
6117
  else
3510
6118
    case $cross_compiling:$ac_tool_warned in
3511
6119
yes:)
3517
6125
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3518
6126
ac_tool_warned=yes ;;
3519
6127
esac
3520
 
    CXX=$ac_ct_CXX
3521
 
  fi
3522
 
fi
3523
 
 
3524
 
  fi
3525
 
fi
 
6128
    F77=$ac_ct_F77
 
6129
  fi
 
6130
fi
 
6131
 
 
6132
 
3526
6133
# Provide some information about the compiler.
3527
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
6134
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
3528
6135
ac_compiler=`set X $ac_compile; echo $2`
3529
6136
{ (ac_try="$ac_compiler --version >&5"
3530
6137
case "(($ac_try" in
3556
6163
  ac_status=$?
3557
6164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558
6165
  (exit $ac_status); }
 
6166
rm -f a.out
3559
6167
 
3560
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3561
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3562
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
6168
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6169
# input file.  (Note that this only needs to work for GNU compilers.)
 
6170
ac_save_ext=$ac_ext
 
6171
ac_ext=F
 
6172
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6173
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6174
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3563
6175
  echo $ECHO_N "(cached) $ECHO_C" >&6
3564
6176
else
3565
6177
  cat >conftest.$ac_ext <<_ACEOF
3566
 
/* confdefs.h.  */
3567
 
_ACEOF
3568
 
cat confdefs.h >>conftest.$ac_ext
3569
 
cat >>conftest.$ac_ext <<_ACEOF
3570
 
/* end confdefs.h.  */
3571
 
 
3572
 
int
3573
 
main ()
3574
 
{
 
6178
      program main
3575
6179
#ifndef __GNUC__
3576
6180
       choke me
3577
6181
#endif
3578
6182
 
3579
 
  ;
3580
 
  return 0;
3581
 
}
 
6183
      end
3582
6184
_ACEOF
3583
6185
rm -f conftest.$ac_objext
3584
6186
if { (ac_try="$ac_compile"
3594
6196
  cat conftest.err >&5
3595
6197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596
6198
  (exit $ac_status); } && {
3597
 
         test -z "$ac_cxx_werror_flag" ||
 
6199
         test -z "$ac_f77_werror_flag" ||
3598
6200
         test ! -s conftest.err
3599
6201
       } && test -s conftest.$ac_objext; then
3600
6202
  ac_compiler_gnu=yes
3606
6208
fi
3607
6209
 
3608
6210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
6211
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3610
6212
 
3611
6213
fi
3612
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3613
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3614
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
3615
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
3616
 
ac_save_CXXFLAGS=$CXXFLAGS
3617
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3618
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3619
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
6214
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6215
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6216
ac_ext=$ac_save_ext
 
6217
ac_test_FFLAGS=${FFLAGS+set}
 
6218
ac_save_FFLAGS=$FFLAGS
 
6219
FFLAGS=
 
6220
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6221
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6222
if test "${ac_cv_prog_f77_g+set}" = set; then
3620
6223
  echo $ECHO_N "(cached) $ECHO_C" >&6
3621
6224
else
3622
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3623
 
   ac_cxx_werror_flag=yes
3624
 
   ac_cv_prog_cxx_g=no
3625
 
   CXXFLAGS="-g"
3626
 
   cat >conftest.$ac_ext <<_ACEOF
3627
 
/* confdefs.h.  */
3628
 
_ACEOF
3629
 
cat confdefs.h >>conftest.$ac_ext
3630
 
cat >>conftest.$ac_ext <<_ACEOF
3631
 
/* end confdefs.h.  */
3632
 
 
3633
 
int
3634
 
main ()
3635
 
{
3636
 
 
3637
 
  ;
3638
 
  return 0;
3639
 
}
3640
 
_ACEOF
3641
 
rm -f conftest.$ac_objext
3642
 
if { (ac_try="$ac_compile"
3643
 
case "(($ac_try" in
3644
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645
 
  *) ac_try_echo=$ac_try;;
3646
 
esac
3647
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648
 
  (eval "$ac_compile") 2>conftest.er1
3649
 
  ac_status=$?
3650
 
  grep -v '^ *+' conftest.er1 >conftest.err
3651
 
  rm -f conftest.er1
3652
 
  cat conftest.err >&5
3653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654
 
  (exit $ac_status); } && {
3655
 
         test -z "$ac_cxx_werror_flag" ||
3656
 
         test ! -s conftest.err
3657
 
       } && test -s conftest.$ac_objext; then
3658
 
  ac_cv_prog_cxx_g=yes
3659
 
else
3660
 
  echo "$as_me: failed program was:" >&5
3661
 
sed 's/^/| /' conftest.$ac_ext >&5
3662
 
 
3663
 
        CXXFLAGS=""
3664
 
      cat >conftest.$ac_ext <<_ACEOF
3665
 
/* confdefs.h.  */
3666
 
_ACEOF
3667
 
cat confdefs.h >>conftest.$ac_ext
3668
 
cat >>conftest.$ac_ext <<_ACEOF
3669
 
/* end confdefs.h.  */
3670
 
 
3671
 
int
3672
 
main ()
3673
 
{
3674
 
 
3675
 
  ;
3676
 
  return 0;
3677
 
}
3678
 
_ACEOF
3679
 
rm -f conftest.$ac_objext
3680
 
if { (ac_try="$ac_compile"
3681
 
case "(($ac_try" in
3682
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683
 
  *) ac_try_echo=$ac_try;;
3684
 
esac
3685
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686
 
  (eval "$ac_compile") 2>conftest.er1
3687
 
  ac_status=$?
3688
 
  grep -v '^ *+' conftest.er1 >conftest.err
3689
 
  rm -f conftest.er1
3690
 
  cat conftest.err >&5
3691
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692
 
  (exit $ac_status); } && {
3693
 
         test -z "$ac_cxx_werror_flag" ||
3694
 
         test ! -s conftest.err
3695
 
       } && test -s conftest.$ac_objext; then
3696
 
  :
3697
 
else
3698
 
  echo "$as_me: failed program was:" >&5
3699
 
sed 's/^/| /' conftest.$ac_ext >&5
3700
 
 
3701
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3702
 
         CXXFLAGS="-g"
3703
 
         cat >conftest.$ac_ext <<_ACEOF
3704
 
/* confdefs.h.  */
3705
 
_ACEOF
3706
 
cat confdefs.h >>conftest.$ac_ext
3707
 
cat >>conftest.$ac_ext <<_ACEOF
3708
 
/* end confdefs.h.  */
3709
 
 
3710
 
int
3711
 
main ()
3712
 
{
3713
 
 
3714
 
  ;
3715
 
  return 0;
3716
 
}
3717
 
_ACEOF
3718
 
rm -f conftest.$ac_objext
3719
 
if { (ac_try="$ac_compile"
3720
 
case "(($ac_try" in
3721
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722
 
  *) ac_try_echo=$ac_try;;
3723
 
esac
3724
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725
 
  (eval "$ac_compile") 2>conftest.er1
3726
 
  ac_status=$?
3727
 
  grep -v '^ *+' conftest.er1 >conftest.err
3728
 
  rm -f conftest.er1
3729
 
  cat conftest.err >&5
3730
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731
 
  (exit $ac_status); } && {
3732
 
         test -z "$ac_cxx_werror_flag" ||
3733
 
         test ! -s conftest.err
3734
 
       } && test -s conftest.$ac_objext; then
3735
 
  ac_cv_prog_cxx_g=yes
3736
 
else
3737
 
  echo "$as_me: failed program was:" >&5
3738
 
sed 's/^/| /' conftest.$ac_ext >&5
3739
 
 
3740
 
 
3741
 
fi
3742
 
 
3743
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744
 
fi
3745
 
 
3746
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747
 
fi
3748
 
 
3749
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3751
 
fi
3752
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3753
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3754
 
if test "$ac_test_CXXFLAGS" = set; then
3755
 
  CXXFLAGS=$ac_save_CXXFLAGS
3756
 
elif test $ac_cv_prog_cxx_g = yes; then
3757
 
  if test "$GXX" = yes; then
3758
 
    CXXFLAGS="-g -O2"
3759
 
  else
3760
 
    CXXFLAGS="-g"
3761
 
  fi
3762
 
else
3763
 
  if test "$GXX" = yes; then
3764
 
    CXXFLAGS="-O2"
3765
 
  else
3766
 
    CXXFLAGS=
3767
 
  fi
3768
 
fi
 
6225
  FFLAGS=-g
 
6226
cat >conftest.$ac_ext <<_ACEOF
 
6227
      program main
 
6228
 
 
6229
      end
 
6230
_ACEOF
 
6231
rm -f conftest.$ac_objext
 
6232
if { (ac_try="$ac_compile"
 
6233
case "(($ac_try" in
 
6234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6235
  *) ac_try_echo=$ac_try;;
 
6236
esac
 
6237
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6238
  (eval "$ac_compile") 2>conftest.er1
 
6239
  ac_status=$?
 
6240
  grep -v '^ *+' conftest.er1 >conftest.err
 
6241
  rm -f conftest.er1
 
6242
  cat conftest.err >&5
 
6243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6244
  (exit $ac_status); } && {
 
6245
         test -z "$ac_f77_werror_flag" ||
 
6246
         test ! -s conftest.err
 
6247
       } && test -s conftest.$ac_objext; then
 
6248
  ac_cv_prog_f77_g=yes
 
6249
else
 
6250
  echo "$as_me: failed program was:" >&5
 
6251
sed 's/^/| /' conftest.$ac_ext >&5
 
6252
 
 
6253
        ac_cv_prog_f77_g=no
 
6254
fi
 
6255
 
 
6256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6257
 
 
6258
fi
 
6259
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6260
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6261
if test "$ac_test_FFLAGS" = set; then
 
6262
  FFLAGS=$ac_save_FFLAGS
 
6263
elif test $ac_cv_prog_f77_g = yes; then
 
6264
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6265
    FFLAGS="-g -O2"
 
6266
  else
 
6267
    FFLAGS="-g"
 
6268
  fi
 
6269
else
 
6270
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6271
    FFLAGS="-O2"
 
6272
  else
 
6273
    FFLAGS=
 
6274
  fi
 
6275
fi
 
6276
 
 
6277
G77=`test $ac_compiler_gnu = yes && echo yes`
3769
6278
ac_ext=c
3770
6279
ac_cpp='$CPP $CPPFLAGS'
3771
6280
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772
6281
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773
6282
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774
6283
 
3775
 
depcc="$CXX"  am_compiler_list=
3776
 
 
3777
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3778
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3779
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6284
 
 
6285
 
 
6286
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6287
 
 
6288
# find the maximum length of command line arguments
 
6289
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6290
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6291
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3780
6292
  echo $ECHO_N "(cached) $ECHO_C" >&6
3781
6293
else
3782
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3783
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3784
 
  # making bogus files that we don't know about and never remove.  For
3785
 
  # instance it was reported that on HP-UX the gcc test will end up
3786
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3787
 
  # in D'.
3788
 
  mkdir conftest.dir
3789
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3790
 
  # using a relative directory.
3791
 
  cp "$am_depcomp" conftest.dir
3792
 
  cd conftest.dir
3793
 
  # We will build objects and dependencies in a subdirectory because
3794
 
  # it helps to detect inapplicable dependency modes.  For instance
3795
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3796
 
  # side effect of compilation, but ICC will put the dependencies in
3797
 
  # the current directory while Tru64 will put them in the object
3798
 
  # directory.
3799
 
  mkdir sub
3800
 
 
3801
 
  am_cv_CXX_dependencies_compiler_type=none
3802
 
  if test "$am_compiler_list" = ""; then
3803
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804
 
  fi
3805
 
  for depmode in $am_compiler_list; do
3806
 
    # Setup a source with many dependencies, because some compilers
3807
 
    # like to wrap large dependency lists on column 80 (with \), and
3808
 
    # we should not choose a depcomp mode which is confused by this.
 
6294
    i=0
 
6295
  teststring="ABCD"
 
6296
 
 
6297
  case $build_os in
 
6298
  msdosdjgpp*)
 
6299
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6300
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6301
    # during glob expansion).  Even if it were fixed, the result of this
 
6302
    # check would be larger than it should be.
 
6303
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6304
    ;;
 
6305
 
 
6306
  gnu*)
 
6307
    # Under GNU Hurd, this test is not required because there is
 
6308
    # no limit to the length of command line arguments.
 
6309
    # Libtool will interpret -1 as no limit whatsoever
 
6310
    lt_cv_sys_max_cmd_len=-1;
 
6311
    ;;
 
6312
 
 
6313
  cygwin* | mingw*)
 
6314
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6315
    # about 5 minutes as the teststring grows exponentially.
 
6316
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6317
    # you end up with a "frozen" computer, even though with patience
 
6318
    # the test eventually succeeds (with a max line length of 256k).
 
6319
    # Instead, let's just punt: use the minimum linelength reported by
 
6320
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6321
    lt_cv_sys_max_cmd_len=8192;
 
6322
    ;;
 
6323
 
 
6324
  amigaos*)
 
6325
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6326
    # So we just punt and use a minimum line length of 8192.
 
6327
    lt_cv_sys_max_cmd_len=8192;
 
6328
    ;;
 
6329
 
 
6330
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6331
    # This has been around since 386BSD, at least.  Likely further.
 
6332
    if test -x /sbin/sysctl; then
 
6333
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6334
    elif test -x /usr/sbin/sysctl; then
 
6335
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6336
    else
 
6337
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6338
    fi
 
6339
    # And add a safety zone
 
6340
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6341
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6342
    ;;
 
6343
 
 
6344
  interix*)
 
6345
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6346
    lt_cv_sys_max_cmd_len=196608
 
6347
    ;;
 
6348
 
 
6349
  osf*)
 
6350
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6351
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6352
    # nice to cause kernel panics so lets avoid the loop below.
 
6353
    # First set a reasonable default.
 
6354
    lt_cv_sys_max_cmd_len=16384
3809
6355
    #
3810
 
    # We need to recreate these files for each test, as the compiler may
3811
 
    # overwrite some of them when testing with obscure command lines.
3812
 
    # This happens at least with the AIX C compiler.
3813
 
    : > sub/conftest.c
3814
 
    for i in 1 2 3 4 5 6; do
3815
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3817
 
      # Solaris 8's {/usr,}/bin/sh.
3818
 
      touch sub/conftst$i.h
3819
 
    done
3820
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
 
 
3822
 
    case $depmode in
3823
 
    nosideeffect)
3824
 
      # after this tag, mechanisms are not by side-effect, so they'll
3825
 
      # only be used when explicitly requested
3826
 
      if test "x$enable_dependency_tracking" = xyes; then
3827
 
        continue
3828
 
      else
3829
 
        break
3830
 
      fi
3831
 
      ;;
3832
 
    none) break ;;
3833
 
    esac
3834
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3835
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3836
 
    # handle `-M -o', and we need to detect this.
3837
 
    if depmode=$depmode \
3838
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3839
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3840
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3841
 
         >/dev/null 2>conftest.err &&
3842
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3843
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3844
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3845
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3846
 
      # icc doesn't choke on unknown options, it will just issue warnings
3847
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3848
 
      # that says an option was ignored or not supported.
3849
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3850
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3851
 
      # The diagnosis changed in icc 8.0:
3852
 
      #   icc: Command line remark: option '-MP' not supported
3853
 
      if (grep 'ignoring option' conftest.err ||
3854
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3855
 
        am_cv_CXX_dependencies_compiler_type=$depmode
3856
 
        break
3857
 
      fi
3858
 
    fi
3859
 
  done
3860
 
 
3861
 
  cd ..
3862
 
  rm -rf conftest.dir
3863
 
else
3864
 
  am_cv_CXX_dependencies_compiler_type=none
3865
 
fi
3866
 
 
3867
 
fi
3868
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3869
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3870
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3871
 
 
3872
 
 if
3873
 
  test "x$enable_dependency_tracking" != xno \
3874
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3875
 
  am__fastdepCXX_TRUE=
3876
 
  am__fastdepCXX_FALSE='#'
3877
 
else
3878
 
  am__fastdepCXX_TRUE='#'
3879
 
  am__fastdepCXX_FALSE=
3880
 
fi
3881
 
 
 
6356
    if test -x /sbin/sysconfig; then
 
6357
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6358
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6359
      esac
 
6360
    fi
 
6361
    ;;
 
6362
  sco3.2v5*)
 
6363
    lt_cv_sys_max_cmd_len=102400
 
6364
    ;;
 
6365
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6366
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6367
    if test -n "$kargmax"; then
 
6368
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6369
    else
 
6370
      lt_cv_sys_max_cmd_len=32768
 
6371
    fi
 
6372
    ;;
 
6373
  *)
 
6374
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6375
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6376
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6377
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6378
    else
 
6379
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6380
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6381
               = "XX$teststring") >/dev/null 2>&1 &&
 
6382
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6383
              lt_cv_sys_max_cmd_len=$new_result &&
 
6384
              test $i != 17 # 1/2 MB should be enough
 
6385
      do
 
6386
        i=`expr $i + 1`
 
6387
        teststring=$teststring$teststring
 
6388
      done
 
6389
      teststring=
 
6390
      # Add a significant safety factor because C++ compilers can tack on massive
 
6391
      # amounts of additional arguments before passing them to the linker.
 
6392
      # It appears as though 1/2 is a usable value.
 
6393
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6394
    fi
 
6395
    ;;
 
6396
  esac
 
6397
 
 
6398
fi
 
6399
 
 
6400
if test -n $lt_cv_sys_max_cmd_len ; then
 
6401
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6402
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6403
else
 
6404
  { echo "$as_me:$LINENO: result: none" >&5
 
6405
echo "${ECHO_T}none" >&6; }
 
6406
fi
 
6407
 
 
6408
 
 
6409
 
 
6410
 
 
6411
 
 
6412
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6413
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6414
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6415
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6417
else
 
6418
 
 
6419
# These are sane defaults that work on at least a few old systems.
 
6420
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6421
 
 
6422
# Character class describing NM global symbol codes.
 
6423
symcode='[BCDEGRST]'
 
6424
 
 
6425
# Regexp to match symbols that can be accessed directly from C.
 
6426
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6427
 
 
6428
# Transform an extracted symbol line into a proper C declaration
 
6429
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6430
 
 
6431
# Transform an extracted symbol line into symbol name and symbol address
 
6432
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6433
 
 
6434
# Define system-specific variables.
 
6435
case $host_os in
 
6436
aix*)
 
6437
  symcode='[BCDT]'
 
6438
  ;;
 
6439
cygwin* | mingw* | pw32*)
 
6440
  symcode='[ABCDGISTW]'
 
6441
  ;;
 
6442
hpux*) # Its linker distinguishes data from code symbols
 
6443
  if test "$host_cpu" = ia64; then
 
6444
    symcode='[ABCDEGRST]'
 
6445
  fi
 
6446
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6447
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6448
  ;;
 
6449
linux* | k*bsd*-gnu)
 
6450
  if test "$host_cpu" = ia64; then
 
6451
    symcode='[ABCDGIRSTW]'
 
6452
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6453
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6454
  fi
 
6455
  ;;
 
6456
irix* | nonstopux*)
 
6457
  symcode='[BCDEGRST]'
 
6458
  ;;
 
6459
osf*)
 
6460
  symcode='[BCDEGQRST]'
 
6461
  ;;
 
6462
solaris*)
 
6463
  symcode='[BDRT]'
 
6464
  ;;
 
6465
sco3.2v5*)
 
6466
  symcode='[DT]'
 
6467
  ;;
 
6468
sysv4.2uw2*)
 
6469
  symcode='[DT]'
 
6470
  ;;
 
6471
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6472
  symcode='[ABDT]'
 
6473
  ;;
 
6474
sysv4)
 
6475
  symcode='[DFNSTU]'
 
6476
  ;;
 
6477
esac
 
6478
 
 
6479
# Handle CRLF in mingw tool chain
 
6480
opt_cr=
 
6481
case $build_os in
 
6482
mingw*)
 
6483
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6484
  ;;
 
6485
esac
 
6486
 
 
6487
# If we're using GNU nm, then use its standard symbol codes.
 
6488
case `$NM -V 2>&1` in
 
6489
*GNU* | *'with BFD'*)
 
6490
  symcode='[ABCDGIRSTW]' ;;
 
6491
esac
 
6492
 
 
6493
# Try without a prefix undercore, then with it.
 
6494
for ac_symprfx in "" "_"; do
 
6495
 
 
6496
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6497
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6498
 
 
6499
  # Write the raw and C identifiers.
 
6500
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6501
 
 
6502
  # Check to see that the pipe works correctly.
 
6503
  pipe_works=no
 
6504
 
 
6505
  rm -f conftest*
 
6506
  cat > conftest.$ac_ext <<EOF
 
6507
#ifdef __cplusplus
 
6508
extern "C" {
 
6509
#endif
 
6510
char nm_test_var;
 
6511
void nm_test_func(){}
 
6512
#ifdef __cplusplus
 
6513
}
 
6514
#endif
 
6515
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6516
EOF
 
6517
 
 
6518
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6519
  (eval $ac_compile) 2>&5
 
6520
  ac_status=$?
 
6521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6522
  (exit $ac_status); }; then
 
6523
    # Now try to grab the symbols.
 
6524
    nlist=conftest.nm
 
6525
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6526
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6527
  ac_status=$?
 
6528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6529
  (exit $ac_status); } && test -s "$nlist"; then
 
6530
      # Try sorting and uniquifying the output.
 
6531
      if sort "$nlist" | uniq > "$nlist"T; then
 
6532
        mv -f "$nlist"T "$nlist"
 
6533
      else
 
6534
        rm -f "$nlist"T
 
6535
      fi
 
6536
 
 
6537
      # Make sure that we snagged all the symbols we need.
 
6538
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6539
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6540
          cat <<EOF > conftest.$ac_ext
 
6541
#ifdef __cplusplus
 
6542
extern "C" {
 
6543
#endif
 
6544
 
 
6545
EOF
 
6546
          # Now generate the symbol file.
 
6547
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6548
 
 
6549
          cat <<EOF >> conftest.$ac_ext
 
6550
#if defined (__STDC__) && __STDC__
 
6551
# define lt_ptr_t void *
 
6552
#else
 
6553
# define lt_ptr_t char *
 
6554
# define const
 
6555
#endif
 
6556
 
 
6557
/* The mapping between symbol names and symbols. */
 
6558
const struct {
 
6559
  const char *name;
 
6560
  lt_ptr_t address;
 
6561
}
 
6562
lt_preloaded_symbols[] =
 
6563
{
 
6564
EOF
 
6565
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6566
          cat <<\EOF >> conftest.$ac_ext
 
6567
  {0, (lt_ptr_t) 0}
 
6568
};
 
6569
 
 
6570
#ifdef __cplusplus
 
6571
}
 
6572
#endif
 
6573
EOF
 
6574
          # Now try linking the two files.
 
6575
          mv conftest.$ac_objext conftstm.$ac_objext
 
6576
          lt_save_LIBS="$LIBS"
 
6577
          lt_save_CFLAGS="$CFLAGS"
 
6578
          LIBS="conftstm.$ac_objext"
 
6579
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6580
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6581
  (eval $ac_link) 2>&5
 
6582
  ac_status=$?
 
6583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6584
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6585
            pipe_works=yes
 
6586
          fi
 
6587
          LIBS="$lt_save_LIBS"
 
6588
          CFLAGS="$lt_save_CFLAGS"
 
6589
        else
 
6590
          echo "cannot find nm_test_func in $nlist" >&5
 
6591
        fi
 
6592
      else
 
6593
        echo "cannot find nm_test_var in $nlist" >&5
 
6594
      fi
 
6595
    else
 
6596
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6597
    fi
 
6598
  else
 
6599
    echo "$progname: failed program was:" >&5
 
6600
    cat conftest.$ac_ext >&5
 
6601
  fi
 
6602
  rm -f conftest* conftst*
 
6603
 
 
6604
  # Do not use the global_symbol_pipe unless it works.
 
6605
  if test "$pipe_works" = yes; then
 
6606
    break
 
6607
  else
 
6608
    lt_cv_sys_global_symbol_pipe=
 
6609
  fi
 
6610
done
 
6611
 
 
6612
fi
 
6613
 
 
6614
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6615
  lt_cv_sys_global_symbol_to_cdecl=
 
6616
fi
 
6617
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6618
  { echo "$as_me:$LINENO: result: failed" >&5
 
6619
echo "${ECHO_T}failed" >&6; }
 
6620
else
 
6621
  { echo "$as_me:$LINENO: result: ok" >&5
 
6622
echo "${ECHO_T}ok" >&6; }
 
6623
fi
 
6624
 
 
6625
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6626
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6627
if test "${lt_cv_objdir+set}" = set; then
 
6628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6629
else
 
6630
  rm -f .libs 2>/dev/null
 
6631
mkdir .libs 2>/dev/null
 
6632
if test -d .libs; then
 
6633
  lt_cv_objdir=.libs
 
6634
else
 
6635
  # MS-DOS does not allow filenames that begin with a dot.
 
6636
  lt_cv_objdir=_libs
 
6637
fi
 
6638
rmdir .libs 2>/dev/null
 
6639
fi
 
6640
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6641
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6642
objdir=$lt_cv_objdir
 
6643
 
 
6644
 
 
6645
 
 
6646
 
 
6647
 
 
6648
case $host_os in
 
6649
aix3*)
 
6650
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6651
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6652
  # vanish in a puff of smoke.
 
6653
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6654
    COLLECT_NAMES=
 
6655
    export COLLECT_NAMES
 
6656
  fi
 
6657
  ;;
 
6658
esac
 
6659
 
 
6660
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6661
# metacharacters that are still active within double-quoted strings.
 
6662
Xsed='sed -e 1s/^X//'
 
6663
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6664
 
 
6665
# Same as above, but do not quote variable references.
 
6666
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6667
 
 
6668
# Sed substitution to delay expansion of an escaped shell variable in a
 
6669
# double_quote_subst'ed string.
 
6670
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6671
 
 
6672
# Sed substitution to avoid accidental globbing in evaled expressions
 
6673
no_glob_subst='s/\*/\\\*/g'
 
6674
 
 
6675
# Constants:
 
6676
rm="rm -f"
 
6677
 
 
6678
# Global variables:
 
6679
default_ofile=libtool
 
6680
can_build_shared=yes
 
6681
 
 
6682
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6683
# which needs '.lib').
 
6684
libext=a
 
6685
ltmain="$ac_aux_dir/ltmain.sh"
 
6686
ofile="$default_ofile"
 
6687
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6688
 
 
6689
if test -n "$ac_tool_prefix"; then
 
6690
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6691
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6692
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6693
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6694
if test "${ac_cv_prog_AR+set}" = set; then
 
6695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6696
else
 
6697
  if test -n "$AR"; then
 
6698
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6699
else
 
6700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6701
for as_dir in $PATH
 
6702
do
 
6703
  IFS=$as_save_IFS
 
6704
  test -z "$as_dir" && as_dir=.
 
6705
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6706
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6707
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6708
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6709
    break 2
 
6710
  fi
 
6711
done
 
6712
done
 
6713
IFS=$as_save_IFS
 
6714
 
 
6715
fi
 
6716
fi
 
6717
AR=$ac_cv_prog_AR
 
6718
if test -n "$AR"; then
 
6719
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6720
echo "${ECHO_T}$AR" >&6; }
 
6721
else
 
6722
  { echo "$as_me:$LINENO: result: no" >&5
 
6723
echo "${ECHO_T}no" >&6; }
 
6724
fi
 
6725
 
 
6726
 
 
6727
fi
 
6728
if test -z "$ac_cv_prog_AR"; then
 
6729
  ac_ct_AR=$AR
 
6730
  # Extract the first word of "ar", so it can be a program name with args.
 
6731
set dummy ar; ac_word=$2
 
6732
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6733
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6734
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6736
else
 
6737
  if test -n "$ac_ct_AR"; then
 
6738
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6739
else
 
6740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6741
for as_dir in $PATH
 
6742
do
 
6743
  IFS=$as_save_IFS
 
6744
  test -z "$as_dir" && as_dir=.
 
6745
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6746
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6747
    ac_cv_prog_ac_ct_AR="ar"
 
6748
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6749
    break 2
 
6750
  fi
 
6751
done
 
6752
done
 
6753
IFS=$as_save_IFS
 
6754
 
 
6755
fi
 
6756
fi
 
6757
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6758
if test -n "$ac_ct_AR"; then
 
6759
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6760
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6761
else
 
6762
  { echo "$as_me:$LINENO: result: no" >&5
 
6763
echo "${ECHO_T}no" >&6; }
 
6764
fi
 
6765
 
 
6766
  if test "x$ac_ct_AR" = x; then
 
6767
    AR="false"
 
6768
  else
 
6769
    case $cross_compiling:$ac_tool_warned in
 
6770
yes:)
 
6771
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6772
whose name does not start with the host triplet.  If you think this
 
6773
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6774
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6775
whose name does not start with the host triplet.  If you think this
 
6776
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6777
ac_tool_warned=yes ;;
 
6778
esac
 
6779
    AR=$ac_ct_AR
 
6780
  fi
 
6781
else
 
6782
  AR="$ac_cv_prog_AR"
 
6783
fi
3882
6784
 
3883
6785
if test -n "$ac_tool_prefix"; then
3884
6786
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3976
6878
  RANLIB="$ac_cv_prog_RANLIB"
3977
6879
fi
3978
6880
 
3979
 
# Find a good install program.  We prefer a C program (faster),
3980
 
# so one script is as good as another.  But avoid the broken or
3981
 
# incompatible versions:
3982
 
# SysV /etc/install, /usr/sbin/install
3983
 
# SunOS /usr/etc/install
3984
 
# IRIX /sbin/install
3985
 
# AIX /bin/install
3986
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
3987
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3988
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3989
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3990
 
# OS/2's system install, which has a completely different semantic
3991
 
# ./install, which can be erroneously created by make from ./install.sh.
3992
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3993
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3994
 
if test -z "$INSTALL"; then
3995
 
if test "${ac_cv_path_install+set}" = set; then
3996
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3997
 
else
3998
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999
 
for as_dir in $PATH
4000
 
do
4001
 
  IFS=$as_save_IFS
4002
 
  test -z "$as_dir" && as_dir=.
4003
 
  # Account for people who put trailing slashes in PATH elements.
4004
 
case $as_dir/ in
4005
 
  ./ | .// | /cC/* | \
4006
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4007
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4008
 
  /usr/ucb/* ) ;;
4009
 
  *)
4010
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
4011
 
    # Don't use installbsd from OSF since it installs stuff as root
4012
 
    # by default.
4013
 
    for ac_prog in ginstall scoinst install; do
4014
 
      for ac_exec_ext in '' $ac_executable_extensions; do
4015
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4016
 
          if test $ac_prog = install &&
4017
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4018
 
            # AIX install.  It has an incompatible calling convention.
4019
 
            :
4020
 
          elif test $ac_prog = install &&
4021
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4022
 
            # program-specific install script used by HP pwplus--don't use.
4023
 
            :
4024
 
          else
4025
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4026
 
            break 3
4027
 
          fi
4028
 
        fi
 
6881
if test -n "$ac_tool_prefix"; then
 
6882
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6883
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6884
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6885
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6886
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6888
else
 
6889
  if test -n "$STRIP"; then
 
6890
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6891
else
 
6892
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6893
for as_dir in $PATH
 
6894
do
 
6895
  IFS=$as_save_IFS
 
6896
  test -z "$as_dir" && as_dir=.
 
6897
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6898
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6899
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6900
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6901
    break 2
 
6902
  fi
 
6903
done
 
6904
done
 
6905
IFS=$as_save_IFS
 
6906
 
 
6907
fi
 
6908
fi
 
6909
STRIP=$ac_cv_prog_STRIP
 
6910
if test -n "$STRIP"; then
 
6911
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6912
echo "${ECHO_T}$STRIP" >&6; }
 
6913
else
 
6914
  { echo "$as_me:$LINENO: result: no" >&5
 
6915
echo "${ECHO_T}no" >&6; }
 
6916
fi
 
6917
 
 
6918
 
 
6919
fi
 
6920
if test -z "$ac_cv_prog_STRIP"; then
 
6921
  ac_ct_STRIP=$STRIP
 
6922
  # Extract the first word of "strip", so it can be a program name with args.
 
6923
set dummy strip; ac_word=$2
 
6924
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6925
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6926
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6928
else
 
6929
  if test -n "$ac_ct_STRIP"; then
 
6930
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6931
else
 
6932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6933
for as_dir in $PATH
 
6934
do
 
6935
  IFS=$as_save_IFS
 
6936
  test -z "$as_dir" && as_dir=.
 
6937
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6938
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6939
    ac_cv_prog_ac_ct_STRIP="strip"
 
6940
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6941
    break 2
 
6942
  fi
 
6943
done
 
6944
done
 
6945
IFS=$as_save_IFS
 
6946
 
 
6947
fi
 
6948
fi
 
6949
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6950
if test -n "$ac_ct_STRIP"; then
 
6951
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6952
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6953
else
 
6954
  { echo "$as_me:$LINENO: result: no" >&5
 
6955
echo "${ECHO_T}no" >&6; }
 
6956
fi
 
6957
 
 
6958
  if test "x$ac_ct_STRIP" = x; then
 
6959
    STRIP=":"
 
6960
  else
 
6961
    case $cross_compiling:$ac_tool_warned in
 
6962
yes:)
 
6963
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6964
whose name does not start with the host triplet.  If you think this
 
6965
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6966
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6967
whose name does not start with the host triplet.  If you think this
 
6968
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6969
ac_tool_warned=yes ;;
 
6970
esac
 
6971
    STRIP=$ac_ct_STRIP
 
6972
  fi
 
6973
else
 
6974
  STRIP="$ac_cv_prog_STRIP"
 
6975
fi
 
6976
 
 
6977
 
 
6978
old_CC="$CC"
 
6979
old_CFLAGS="$CFLAGS"
 
6980
 
 
6981
# Set sane defaults for various variables
 
6982
test -z "$AR" && AR=ar
 
6983
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6984
test -z "$AS" && AS=as
 
6985
test -z "$CC" && CC=cc
 
6986
test -z "$LTCC" && LTCC=$CC
 
6987
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6988
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6989
test -z "$LD" && LD=ld
 
6990
test -z "$LN_S" && LN_S="ln -s"
 
6991
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6992
test -z "$NM" && NM=nm
 
6993
test -z "$SED" && SED=sed
 
6994
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6995
test -z "$RANLIB" && RANLIB=:
 
6996
test -z "$STRIP" && STRIP=:
 
6997
test -z "$ac_objext" && ac_objext=o
 
6998
 
 
6999
# Determine commands to create old-style static archives.
 
7000
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7001
old_postinstall_cmds='chmod 644 $oldlib'
 
7002
old_postuninstall_cmds=
 
7003
 
 
7004
if test -n "$RANLIB"; then
 
7005
  case $host_os in
 
7006
  openbsd*)
 
7007
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7008
    ;;
 
7009
  *)
 
7010
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7011
    ;;
 
7012
  esac
 
7013
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7014
fi
 
7015
 
 
7016
for cc_temp in $compiler""; do
 
7017
  case $cc_temp in
 
7018
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7019
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7020
    \-*) ;;
 
7021
    *) break;;
 
7022
  esac
 
7023
done
 
7024
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7025
 
 
7026
 
 
7027
# Only perform the check for file, if the check method requires it
 
7028
case $deplibs_check_method in
 
7029
file_magic*)
 
7030
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7031
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7032
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
7033
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7035
else
 
7036
  case $MAGIC_CMD in
 
7037
[\\/*] |  ?:[\\/]*)
 
7038
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7039
  ;;
 
7040
*)
 
7041
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7042
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7043
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7044
  for ac_dir in $ac_dummy; do
 
7045
    IFS="$lt_save_ifs"
 
7046
    test -z "$ac_dir" && ac_dir=.
 
7047
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7048
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7049
      if test -n "$file_magic_test_file"; then
 
7050
        case $deplibs_check_method in
 
7051
        "file_magic "*)
 
7052
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7053
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7054
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7055
            $EGREP "$file_magic_regex" > /dev/null; then
 
7056
            :
 
7057
          else
 
7058
            cat <<EOF 1>&2
 
7059
 
 
7060
*** Warning: the command libtool uses to detect shared libraries,
 
7061
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7062
*** The result is that libtool may fail to recognize shared libraries
 
7063
*** as such.  This will affect the creation of libtool libraries that
 
7064
*** depend on shared libraries, but programs linked with such libtool
 
7065
*** libraries will work regardless of this problem.  Nevertheless, you
 
7066
*** may want to report the problem to your system manager and/or to
 
7067
*** bug-libtool@gnu.org
 
7068
 
 
7069
EOF
 
7070
          fi ;;
 
7071
        esac
 
7072
      fi
 
7073
      break
 
7074
    fi
 
7075
  done
 
7076
  IFS="$lt_save_ifs"
 
7077
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7078
  ;;
 
7079
esac
 
7080
fi
 
7081
 
 
7082
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7083
if test -n "$MAGIC_CMD"; then
 
7084
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7085
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7086
else
 
7087
  { echo "$as_me:$LINENO: result: no" >&5
 
7088
echo "${ECHO_T}no" >&6; }
 
7089
fi
 
7090
 
 
7091
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7092
  if test -n "$ac_tool_prefix"; then
 
7093
    { echo "$as_me:$LINENO: checking for file" >&5
 
7094
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7095
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7096
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7097
else
 
7098
  case $MAGIC_CMD in
 
7099
[\\/*] |  ?:[\\/]*)
 
7100
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7101
  ;;
 
7102
*)
 
7103
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7104
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7105
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7106
  for ac_dir in $ac_dummy; do
 
7107
    IFS="$lt_save_ifs"
 
7108
    test -z "$ac_dir" && ac_dir=.
 
7109
    if test -f $ac_dir/file; then
 
7110
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7111
      if test -n "$file_magic_test_file"; then
 
7112
        case $deplibs_check_method in
 
7113
        "file_magic "*)
 
7114
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7115
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7116
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7117
            $EGREP "$file_magic_regex" > /dev/null; then
 
7118
            :
 
7119
          else
 
7120
            cat <<EOF 1>&2
 
7121
 
 
7122
*** Warning: the command libtool uses to detect shared libraries,
 
7123
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7124
*** The result is that libtool may fail to recognize shared libraries
 
7125
*** as such.  This will affect the creation of libtool libraries that
 
7126
*** depend on shared libraries, but programs linked with such libtool
 
7127
*** libraries will work regardless of this problem.  Nevertheless, you
 
7128
*** may want to report the problem to your system manager and/or to
 
7129
*** bug-libtool@gnu.org
 
7130
 
 
7131
EOF
 
7132
          fi ;;
 
7133
        esac
 
7134
      fi
 
7135
      break
 
7136
    fi
 
7137
  done
 
7138
  IFS="$lt_save_ifs"
 
7139
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7140
  ;;
 
7141
esac
 
7142
fi
 
7143
 
 
7144
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7145
if test -n "$MAGIC_CMD"; then
 
7146
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7147
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7148
else
 
7149
  { echo "$as_me:$LINENO: result: no" >&5
 
7150
echo "${ECHO_T}no" >&6; }
 
7151
fi
 
7152
 
 
7153
  else
 
7154
    MAGIC_CMD=:
 
7155
  fi
 
7156
fi
 
7157
 
 
7158
  fi
 
7159
  ;;
 
7160
esac
 
7161
 
 
7162
enable_dlopen=no
 
7163
enable_win32_dll=no
 
7164
 
 
7165
# Check whether --enable-libtool-lock was given.
 
7166
if test "${enable_libtool_lock+set}" = set; then
 
7167
  enableval=$enable_libtool_lock;
 
7168
fi
 
7169
 
 
7170
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7171
 
 
7172
 
 
7173
# Check whether --with-pic was given.
 
7174
if test "${with_pic+set}" = set; then
 
7175
  withval=$with_pic; pic_mode="$withval"
 
7176
else
 
7177
  pic_mode=default
 
7178
fi
 
7179
 
 
7180
test -z "$pic_mode" && pic_mode=default
 
7181
 
 
7182
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
 
7183
#
 
7184
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
 
7185
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
 
7186
#        calls AC_LIBTOOL_CONFIG and creates libtool.
 
7187
#
 
7188
{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
 
7189
echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
 
7190
if test "x$ltmain" = "x" ; then
 
7191
  { echo "$as_me:$LINENO: result: no" >&5
 
7192
echo "${ECHO_T}no" >&6; }
 
7193
  { { echo "$as_me:$LINENO: error:
 
7194
 
 
7195
*** [Gentoo] sanity check failed! ***
 
7196
*** \$ltmain is not defined, please check the patch for consistency! ***
 
7197
" >&5
 
7198
echo "$as_me: error:
 
7199
 
 
7200
*** [Gentoo] sanity check failed! ***
 
7201
*** \$ltmain is not defined, please check the patch for consistency! ***
 
7202
" >&2;}
 
7203
   { (exit 1); exit 1; }; }
 
7204
fi
 
7205
gentoo_lt_version="1.5.24"
 
7206
gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
 
7207
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
 
7208
  { echo "$as_me:$LINENO: result: no" >&5
 
7209
echo "${ECHO_T}no" >&6; }
 
7210
  { { echo "$as_me:$LINENO: error:
 
7211
 
 
7212
*** [Gentoo] sanity check failed! ***
 
7213
*** libtool.m4 and ltmain.sh have a version mismatch! ***
 
7214
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
 
7215
 
 
7216
Please run:
 
7217
 
 
7218
  libtoolize --copy --force
 
7219
 
 
7220
if appropriate, please contact the maintainer of this
 
7221
package (or your distribution) for help.
 
7222
" >&5
 
7223
echo "$as_me: error:
 
7224
 
 
7225
*** [Gentoo] sanity check failed! ***
 
7226
*** libtool.m4 and ltmain.sh have a version mismatch! ***
 
7227
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
 
7228
 
 
7229
Please run:
 
7230
 
 
7231
  libtoolize --copy --force
 
7232
 
 
7233
if appropriate, please contact the maintainer of this
 
7234
package (or your distribution) for help.
 
7235
" >&2;}
 
7236
   { (exit 1); exit 1; }; }
 
7237
else
 
7238
  { echo "$as_me:$LINENO: result: yes" >&5
 
7239
echo "${ECHO_T}yes" >&6; }
 
7240
fi
 
7241
 
 
7242
 
 
7243
# Use C for the default configuration in the libtool script
 
7244
tagname=
 
7245
lt_save_CC="$CC"
 
7246
ac_ext=c
 
7247
ac_cpp='$CPP $CPPFLAGS'
 
7248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7251
 
 
7252
 
 
7253
# Source file extension for C test sources.
 
7254
ac_ext=c
 
7255
 
 
7256
# Object file extension for compiled C test sources.
 
7257
objext=o
 
7258
objext=$objext
 
7259
 
 
7260
# Code to be used in simple compile tests
 
7261
lt_simple_compile_test_code="int some_variable = 0;"
 
7262
 
 
7263
# Code to be used in simple link tests
 
7264
lt_simple_link_test_code='int main(){return(0);}'
 
7265
 
 
7266
 
 
7267
# If no C compiler was specified, use CC.
 
7268
LTCC=${LTCC-"$CC"}
 
7269
 
 
7270
# If no C compiler flags were specified, use CFLAGS.
 
7271
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7272
 
 
7273
# Allow CC to be a program name with arguments.
 
7274
compiler=$CC
 
7275
 
 
7276
 
 
7277
# save warnings/boilerplate of simple test code
 
7278
ac_outfile=conftest.$ac_objext
 
7279
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7280
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7281
_lt_compiler_boilerplate=`cat conftest.err`
 
7282
$rm conftest*
 
7283
 
 
7284
ac_outfile=conftest.$ac_objext
 
7285
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7286
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7287
_lt_linker_boilerplate=`cat conftest.err`
 
7288
$rm conftest*
 
7289
 
 
7290
 
 
7291
 
 
7292
lt_prog_compiler_no_builtin_flag=
 
7293
 
 
7294
if test "$GCC" = yes; then
 
7295
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7296
 
 
7297
 
 
7298
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7299
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7300
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7301
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7302
else
 
7303
  lt_cv_prog_compiler_rtti_exceptions=no
 
7304
  ac_outfile=conftest.$ac_objext
 
7305
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7306
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7307
   # Insert the option either (1) after the last *FLAGS variable, or
 
7308
   # (2) before a word containing "conftest.", or (3) at the end.
 
7309
   # Note that $ac_compile itself does not contain backslashes and begins
 
7310
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7311
   # The option is referenced via a variable to avoid confusing sed.
 
7312
   lt_compile=`echo "$ac_compile" | $SED \
 
7313
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7314
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7315
   -e 's:$: $lt_compiler_flag:'`
 
7316
   (eval echo "\"\$as_me:7316: $lt_compile\"" >&5)
 
7317
   (eval "$lt_compile" 2>conftest.err)
 
7318
   ac_status=$?
 
7319
   cat conftest.err >&5
 
7320
   echo "$as_me:7320: \$? = $ac_status" >&5
 
7321
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7322
     # The compiler can only warn and ignore the option if not recognized
 
7323
     # So say no if there are warnings other than the usual output.
 
7324
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7325
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7326
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7327
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7328
     fi
 
7329
   fi
 
7330
   $rm conftest*
 
7331
 
 
7332
fi
 
7333
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7334
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7335
 
 
7336
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7337
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7338
else
 
7339
    :
 
7340
fi
 
7341
 
 
7342
fi
 
7343
 
 
7344
lt_prog_compiler_wl=
 
7345
lt_prog_compiler_pic=
 
7346
lt_prog_compiler_static=
 
7347
 
 
7348
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7349
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7350
 
 
7351
  if test "$GCC" = yes; then
 
7352
    lt_prog_compiler_wl='-Wl,'
 
7353
    lt_prog_compiler_static='-static'
 
7354
 
 
7355
    case $host_os in
 
7356
      aix*)
 
7357
      # All AIX code is PIC.
 
7358
      if test "$host_cpu" = ia64; then
 
7359
        # AIX 5 now supports IA64 processor
 
7360
        lt_prog_compiler_static='-Bstatic'
 
7361
      fi
 
7362
      ;;
 
7363
 
 
7364
    amigaos*)
 
7365
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7366
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7367
      # like `-m68040'.
 
7368
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7369
      ;;
 
7370
 
 
7371
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7372
      # PIC is the default for these OSes.
 
7373
      ;;
 
7374
 
 
7375
    mingw* | cygwin* | pw32* | os2*)
 
7376
      # This hack is so that the source file can tell whether it is being
 
7377
      # built for inclusion in a dll (and should export symbols for example).
 
7378
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7379
      # (--disable-auto-import) libraries
 
7380
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7381
      ;;
 
7382
 
 
7383
    darwin* | rhapsody*)
 
7384
      # PIC is the default on this platform
 
7385
      # Common symbols not allowed in MH_DYLIB files
 
7386
      lt_prog_compiler_pic='-fno-common'
 
7387
      ;;
 
7388
 
 
7389
    interix[3-9]*)
 
7390
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7391
      # Instead, we relocate shared libraries at runtime.
 
7392
      ;;
 
7393
 
 
7394
    msdosdjgpp*)
 
7395
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7396
      # on systems that don't support them.
 
7397
      lt_prog_compiler_can_build_shared=no
 
7398
      enable_shared=no
 
7399
      ;;
 
7400
 
 
7401
    sysv4*MP*)
 
7402
      if test -d /usr/nec; then
 
7403
        lt_prog_compiler_pic=-Kconform_pic
 
7404
      fi
 
7405
      ;;
 
7406
 
 
7407
    hpux*)
 
7408
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7409
      # not for PA HP-UX.
 
7410
      case $host_cpu in
 
7411
      hppa*64*|ia64*)
 
7412
        # +Z the default
 
7413
        ;;
 
7414
      *)
 
7415
        lt_prog_compiler_pic='-fPIC'
 
7416
        ;;
 
7417
      esac
 
7418
      ;;
 
7419
 
 
7420
    *)
 
7421
      lt_prog_compiler_pic='-fPIC'
 
7422
      ;;
 
7423
    esac
 
7424
  else
 
7425
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7426
    case $host_os in
 
7427
    aix*)
 
7428
      lt_prog_compiler_wl='-Wl,'
 
7429
      if test "$host_cpu" = ia64; then
 
7430
        # AIX 5 now supports IA64 processor
 
7431
        lt_prog_compiler_static='-Bstatic'
 
7432
      else
 
7433
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7434
      fi
 
7435
      ;;
 
7436
      darwin*)
 
7437
        # PIC is the default on this platform
 
7438
        # Common symbols not allowed in MH_DYLIB files
 
7439
       case $cc_basename in
 
7440
         xlc*)
 
7441
         lt_prog_compiler_pic='-qnocommon'
 
7442
         lt_prog_compiler_wl='-Wl,'
 
7443
         ;;
 
7444
       esac
 
7445
       ;;
 
7446
 
 
7447
    mingw* | cygwin* | pw32* | os2*)
 
7448
      # This hack is so that the source file can tell whether it is being
 
7449
      # built for inclusion in a dll (and should export symbols for example).
 
7450
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7451
      ;;
 
7452
 
 
7453
    hpux9* | hpux10* | hpux11*)
 
7454
      lt_prog_compiler_wl='-Wl,'
 
7455
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7456
      # not for PA HP-UX.
 
7457
      case $host_cpu in
 
7458
      hppa*64*|ia64*)
 
7459
        # +Z the default
 
7460
        ;;
 
7461
      *)
 
7462
        lt_prog_compiler_pic='+Z'
 
7463
        ;;
 
7464
      esac
 
7465
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7466
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7467
      ;;
 
7468
 
 
7469
    irix5* | irix6* | nonstopux*)
 
7470
      lt_prog_compiler_wl='-Wl,'
 
7471
      # PIC (with -KPIC) is the default.
 
7472
      lt_prog_compiler_static='-non_shared'
 
7473
      ;;
 
7474
 
 
7475
    newsos6)
 
7476
      lt_prog_compiler_pic='-KPIC'
 
7477
      lt_prog_compiler_static='-Bstatic'
 
7478
      ;;
 
7479
 
 
7480
    linux* | k*bsd*-gnu)
 
7481
      case $cc_basename in
 
7482
      icc* | ecc*)
 
7483
        lt_prog_compiler_wl='-Wl,'
 
7484
        lt_prog_compiler_pic='-KPIC'
 
7485
        lt_prog_compiler_static='-static'
 
7486
        ;;
 
7487
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7488
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7489
        # which looks to be a dead project)
 
7490
        lt_prog_compiler_wl='-Wl,'
 
7491
        lt_prog_compiler_pic='-fpic'
 
7492
        lt_prog_compiler_static='-Bstatic'
 
7493
        ;;
 
7494
      ccc*)
 
7495
        lt_prog_compiler_wl='-Wl,'
 
7496
        # All Alpha code is PIC.
 
7497
        lt_prog_compiler_static='-non_shared'
 
7498
        ;;
 
7499
      *)
 
7500
        case `$CC -V 2>&1 | sed 5q` in
 
7501
        *Sun\ C*)
 
7502
          # Sun C 5.9
 
7503
          lt_prog_compiler_pic='-KPIC'
 
7504
          lt_prog_compiler_static='-Bstatic'
 
7505
          lt_prog_compiler_wl='-Wl,'
 
7506
          ;;
 
7507
        *Sun\ F*)
 
7508
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7509
          lt_prog_compiler_pic='-KPIC'
 
7510
          lt_prog_compiler_static='-Bstatic'
 
7511
          lt_prog_compiler_wl=''
 
7512
          ;;
 
7513
        esac
 
7514
        ;;
 
7515
      esac
 
7516
      ;;
 
7517
 
 
7518
    osf3* | osf4* | osf5*)
 
7519
      lt_prog_compiler_wl='-Wl,'
 
7520
      # All OSF/1 code is PIC.
 
7521
      lt_prog_compiler_static='-non_shared'
 
7522
      ;;
 
7523
 
 
7524
    rdos*)
 
7525
      lt_prog_compiler_static='-non_shared'
 
7526
      ;;
 
7527
 
 
7528
    solaris*)
 
7529
      lt_prog_compiler_pic='-KPIC'
 
7530
      lt_prog_compiler_static='-Bstatic'
 
7531
      case $cc_basename in
 
7532
      f77* | f90* | f95*)
 
7533
        lt_prog_compiler_wl='-Qoption ld ';;
 
7534
      *)
 
7535
        lt_prog_compiler_wl='-Wl,';;
 
7536
      esac
 
7537
      ;;
 
7538
 
 
7539
    sunos4*)
 
7540
      lt_prog_compiler_wl='-Qoption ld '
 
7541
      lt_prog_compiler_pic='-PIC'
 
7542
      lt_prog_compiler_static='-Bstatic'
 
7543
      ;;
 
7544
 
 
7545
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7546
      lt_prog_compiler_wl='-Wl,'
 
7547
      lt_prog_compiler_pic='-KPIC'
 
7548
      lt_prog_compiler_static='-Bstatic'
 
7549
      ;;
 
7550
 
 
7551
    sysv4*MP*)
 
7552
      if test -d /usr/nec ;then
 
7553
        lt_prog_compiler_pic='-Kconform_pic'
 
7554
        lt_prog_compiler_static='-Bstatic'
 
7555
      fi
 
7556
      ;;
 
7557
 
 
7558
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7559
      lt_prog_compiler_wl='-Wl,'
 
7560
      lt_prog_compiler_pic='-KPIC'
 
7561
      lt_prog_compiler_static='-Bstatic'
 
7562
      ;;
 
7563
 
 
7564
    unicos*)
 
7565
      lt_prog_compiler_wl='-Wl,'
 
7566
      lt_prog_compiler_can_build_shared=no
 
7567
      ;;
 
7568
 
 
7569
    uts4*)
 
7570
      lt_prog_compiler_pic='-pic'
 
7571
      lt_prog_compiler_static='-Bstatic'
 
7572
      ;;
 
7573
 
 
7574
    *)
 
7575
      lt_prog_compiler_can_build_shared=no
 
7576
      ;;
 
7577
    esac
 
7578
  fi
 
7579
 
 
7580
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7581
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7582
 
 
7583
#
 
7584
# Check to make sure the PIC flag actually works.
 
7585
#
 
7586
if test -n "$lt_prog_compiler_pic"; then
 
7587
 
 
7588
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7589
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7590
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7592
else
 
7593
  lt_prog_compiler_pic_works=no
 
7594
  ac_outfile=conftest.$ac_objext
 
7595
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7596
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7597
   # Insert the option either (1) after the last *FLAGS variable, or
 
7598
   # (2) before a word containing "conftest.", or (3) at the end.
 
7599
   # Note that $ac_compile itself does not contain backslashes and begins
 
7600
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7601
   # The option is referenced via a variable to avoid confusing sed.
 
7602
   lt_compile=`echo "$ac_compile" | $SED \
 
7603
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7604
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7605
   -e 's:$: $lt_compiler_flag:'`
 
7606
   (eval echo "\"\$as_me:7606: $lt_compile\"" >&5)
 
7607
   (eval "$lt_compile" 2>conftest.err)
 
7608
   ac_status=$?
 
7609
   cat conftest.err >&5
 
7610
   echo "$as_me:7610: \$? = $ac_status" >&5
 
7611
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7612
     # The compiler can only warn and ignore the option if not recognized
 
7613
     # So say no if there are warnings other than the usual output.
 
7614
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7615
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7616
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7617
       lt_prog_compiler_pic_works=yes
 
7618
     fi
 
7619
   fi
 
7620
   $rm conftest*
 
7621
 
 
7622
fi
 
7623
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7624
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7625
 
 
7626
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7627
    case $lt_prog_compiler_pic in
 
7628
     "" | " "*) ;;
 
7629
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7630
     esac
 
7631
else
 
7632
    lt_prog_compiler_pic=
 
7633
     lt_prog_compiler_can_build_shared=no
 
7634
fi
 
7635
 
 
7636
fi
 
7637
case $host_os in
 
7638
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7639
  *djgpp*)
 
7640
    lt_prog_compiler_pic=
 
7641
    ;;
 
7642
  *)
 
7643
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7644
    ;;
 
7645
esac
 
7646
 
 
7647
#
 
7648
# Check to make sure the static flag actually works.
 
7649
#
 
7650
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7651
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7652
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7653
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7654
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7655
else
 
7656
  lt_prog_compiler_static_works=no
 
7657
   save_LDFLAGS="$LDFLAGS"
 
7658
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7659
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7660
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7661
     # The linker can only warn and ignore the option if not recognized
 
7662
     # So say no if there are warnings
 
7663
     if test -s conftest.err; then
 
7664
       # Append any errors to the config.log.
 
7665
       cat conftest.err 1>&5
 
7666
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7667
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7668
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7669
         lt_prog_compiler_static_works=yes
 
7670
       fi
 
7671
     else
 
7672
       lt_prog_compiler_static_works=yes
 
7673
     fi
 
7674
   fi
 
7675
   $rm conftest*
 
7676
   LDFLAGS="$save_LDFLAGS"
 
7677
 
 
7678
fi
 
7679
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7680
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7681
 
 
7682
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7683
    :
 
7684
else
 
7685
    lt_prog_compiler_static=
 
7686
fi
 
7687
 
 
7688
 
 
7689
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7690
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7691
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7693
else
 
7694
  lt_cv_prog_compiler_c_o=no
 
7695
   $rm -r conftest 2>/dev/null
 
7696
   mkdir conftest
 
7697
   cd conftest
 
7698
   mkdir out
 
7699
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7700
 
 
7701
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7702
   # Insert the option either (1) after the last *FLAGS variable, or
 
7703
   # (2) before a word containing "conftest.", or (3) at the end.
 
7704
   # Note that $ac_compile itself does not contain backslashes and begins
 
7705
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7706
   lt_compile=`echo "$ac_compile" | $SED \
 
7707
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7708
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7709
   -e 's:$: $lt_compiler_flag:'`
 
7710
   (eval echo "\"\$as_me:7710: $lt_compile\"" >&5)
 
7711
   (eval "$lt_compile" 2>out/conftest.err)
 
7712
   ac_status=$?
 
7713
   cat out/conftest.err >&5
 
7714
   echo "$as_me:7714: \$? = $ac_status" >&5
 
7715
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7716
   then
 
7717
     # The compiler can only warn and ignore the option if not recognized
 
7718
     # So say no if there are warnings
 
7719
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7720
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7721
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7722
       lt_cv_prog_compiler_c_o=yes
 
7723
     fi
 
7724
   fi
 
7725
   chmod u+w . 2>&5
 
7726
   $rm conftest*
 
7727
   # SGI C++ compiler will create directory out/ii_files/ for
 
7728
   # template instantiation
 
7729
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7730
   $rm out/* && rmdir out
 
7731
   cd ..
 
7732
   rmdir conftest
 
7733
   $rm conftest*
 
7734
 
 
7735
fi
 
7736
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7737
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
7738
 
 
7739
 
 
7740
hard_links="nottested"
 
7741
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7742
  # do not overwrite the value of need_locks provided by the user
 
7743
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7744
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
7745
  hard_links=yes
 
7746
  $rm conftest*
 
7747
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7748
  touch conftest.a
 
7749
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7750
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7751
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7752
echo "${ECHO_T}$hard_links" >&6; }
 
7753
  if test "$hard_links" = no; then
 
7754
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7755
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7756
    need_locks=warn
 
7757
  fi
 
7758
else
 
7759
  need_locks=no
 
7760
fi
 
7761
 
 
7762
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7763
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
7764
 
 
7765
  runpath_var=
 
7766
  allow_undefined_flag=
 
7767
  enable_shared_with_static_runtimes=no
 
7768
  archive_cmds=
 
7769
  archive_expsym_cmds=
 
7770
  old_archive_From_new_cmds=
 
7771
  old_archive_from_expsyms_cmds=
 
7772
  export_dynamic_flag_spec=
 
7773
  whole_archive_flag_spec=
 
7774
  thread_safe_flag_spec=
 
7775
  hardcode_libdir_flag_spec=
 
7776
  hardcode_libdir_flag_spec_ld=
 
7777
  hardcode_libdir_separator=
 
7778
  hardcode_direct=no
 
7779
  hardcode_minus_L=no
 
7780
  hardcode_shlibpath_var=unsupported
 
7781
  link_all_deplibs=unknown
 
7782
  hardcode_automatic=no
 
7783
  module_cmds=
 
7784
  module_expsym_cmds=
 
7785
  always_export_symbols=no
 
7786
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7787
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7788
  # included in the symbol list
 
7789
  include_expsyms=
 
7790
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7791
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7792
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7793
  # as well as any symbol that contains `d'.
 
7794
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7795
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7796
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7797
  # the symbol is explicitly referenced.  Since portable code cannot
 
7798
  # rely on this symbol name, it's probably fine to never include it in
 
7799
  # preloaded symbol tables.
 
7800
  extract_expsyms_cmds=
 
7801
  # Just being paranoid about ensuring that cc_basename is set.
 
7802
  for cc_temp in $compiler""; do
 
7803
  case $cc_temp in
 
7804
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7805
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7806
    \-*) ;;
 
7807
    *) break;;
 
7808
  esac
 
7809
done
 
7810
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7811
 
 
7812
  case $host_os in
 
7813
  cygwin* | mingw* | pw32*)
 
7814
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7815
    # When not using gcc, we currently assume that we are using
 
7816
    # Microsoft Visual C++.
 
7817
    if test "$GCC" != yes; then
 
7818
      with_gnu_ld=no
 
7819
    fi
 
7820
    ;;
 
7821
  interix*)
 
7822
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7823
    with_gnu_ld=yes
 
7824
    ;;
 
7825
  openbsd*)
 
7826
    with_gnu_ld=no
 
7827
    ;;
 
7828
  esac
 
7829
 
 
7830
  ld_shlibs=yes
 
7831
  if test "$with_gnu_ld" = yes; then
 
7832
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7833
    wlarc='${wl}'
 
7834
 
 
7835
    # Set some defaults for GNU ld with shared library support. These
 
7836
    # are reset later if shared libraries are not supported. Putting them
 
7837
    # here allows them to be overridden if necessary.
 
7838
    runpath_var=LD_RUN_PATH
 
7839
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7840
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7841
    # ancient GNU ld didn't support --whole-archive et. al.
 
7842
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7843
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7844
      else
 
7845
        whole_archive_flag_spec=
 
7846
    fi
 
7847
    supports_anon_versioning=no
 
7848
    case `$LD -v 2>/dev/null` in
 
7849
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7850
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7851
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7852
      *\ 2.11.*) ;; # other 2.11 versions
 
7853
      *) supports_anon_versioning=yes ;;
 
7854
    esac
 
7855
 
 
7856
    # See if GNU ld supports shared libraries.
 
7857
    case $host_os in
 
7858
    aix3* | aix4* | aix5*)
 
7859
      # On AIX/PPC, the GNU linker is very broken
 
7860
      if test "$host_cpu" != ia64; then
 
7861
        ld_shlibs=no
 
7862
        cat <<EOF 1>&2
 
7863
 
 
7864
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7865
*** to be unable to reliably create shared libraries on AIX.
 
7866
*** Therefore, libtool is disabling shared libraries support.  If you
 
7867
*** really care for shared libraries, you may want to modify your PATH
 
7868
*** so that a non-GNU linker is found, and then restart.
 
7869
 
 
7870
EOF
 
7871
      fi
 
7872
      ;;
 
7873
 
 
7874
    amigaos*)
 
7875
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
7876
      hardcode_libdir_flag_spec='-L$libdir'
 
7877
      hardcode_minus_L=yes
 
7878
 
 
7879
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7880
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7881
      # to version 4, is to share data among multiple programs linked
 
7882
      # with the same dynamic library.  Since this doesn't match the
 
7883
      # behavior of shared libraries on other platforms, we can't use
 
7884
      # them.
 
7885
      ld_shlibs=no
 
7886
      ;;
 
7887
 
 
7888
    beos*)
 
7889
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7890
        allow_undefined_flag=unsupported
 
7891
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7892
        # support --undefined.  This deserves some investigation.  FIXME
 
7893
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7894
      else
 
7895
        ld_shlibs=no
 
7896
      fi
 
7897
      ;;
 
7898
 
 
7899
    cygwin* | mingw* | pw32*)
 
7900
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7901
      # as there is no search path for DLLs.
 
7902
      hardcode_libdir_flag_spec='-L$libdir'
 
7903
      allow_undefined_flag=unsupported
 
7904
      always_export_symbols=no
 
7905
      enable_shared_with_static_runtimes=yes
 
7906
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
7907
 
 
7908
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7909
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7910
        # If the export-symbols file already is a .def file (1st line
 
7911
        # is EXPORTS), use it as is; otherwise, prepend...
 
7912
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7913
          cp $export_symbols $output_objdir/$soname.def;
 
7914
        else
 
7915
          echo EXPORTS > $output_objdir/$soname.def;
 
7916
          cat $export_symbols >> $output_objdir/$soname.def;
 
7917
        fi~
 
7918
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7919
      else
 
7920
        ld_shlibs=no
 
7921
      fi
 
7922
      ;;
 
7923
 
 
7924
    interix[3-9]*)
 
7925
      hardcode_direct=no
 
7926
      hardcode_shlibpath_var=no
 
7927
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7928
      export_dynamic_flag_spec='${wl}-E'
 
7929
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7930
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7931
      # default) and relocated if they conflict, which is a slow very memory
 
7932
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7933
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7934
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7935
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7936
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7937
      ;;
 
7938
 
 
7939
    gnu* | linux* | k*bsd*-gnu)
 
7940
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7941
        tmp_addflag=
 
7942
        case $cc_basename,$host_cpu in
 
7943
        pgcc*)                          # Portland Group C compiler
 
7944
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7945
          tmp_addflag=' $pic_flag'
 
7946
          ;;
 
7947
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7948
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7949
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7950
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7951
          tmp_addflag=' -i_dynamic' ;;
 
7952
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7953
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7954
        ifc* | ifort*)                  # Intel Fortran compiler
 
7955
          tmp_addflag=' -nofor_main' ;;
 
7956
        esac
 
7957
        case `$CC -V 2>&1 | sed 5q` in
 
7958
        *Sun\ C*)                       # Sun C 5.9
 
7959
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7960
          tmp_sharedflag='-G' ;;
 
7961
        *Sun\ F*)                       # Sun Fortran 8.3
 
7962
          tmp_sharedflag='-G' ;;
 
7963
        *)
 
7964
          tmp_sharedflag='-shared' ;;
 
7965
        esac
 
7966
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7967
 
 
7968
        if test $supports_anon_versioning = yes; then
 
7969
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7970
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7971
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7972
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7973
        fi
 
7974
      else
 
7975
        ld_shlibs=no
 
7976
      fi
 
7977
      ;;
 
7978
 
 
7979
    netbsd*)
 
7980
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7981
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7982
        wlarc=
 
7983
      else
 
7984
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7985
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7986
      fi
 
7987
      ;;
 
7988
 
 
7989
    solaris*)
 
7990
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7991
        ld_shlibs=no
 
7992
        cat <<EOF 1>&2
 
7993
 
 
7994
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7995
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7996
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7997
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7998
*** your PATH or compiler configuration so that the native linker is
 
7999
*** used, and then restart.
 
8000
 
 
8001
EOF
 
8002
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8003
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8004
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8005
      else
 
8006
        ld_shlibs=no
 
8007
      fi
 
8008
      ;;
 
8009
 
 
8010
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8011
      case `$LD -v 2>&1` in
 
8012
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8013
        ld_shlibs=no
 
8014
        cat <<_LT_EOF 1>&2
 
8015
 
 
8016
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8017
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8018
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8019
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8020
*** your PATH or compiler configuration so that the native linker is
 
8021
*** used, and then restart.
 
8022
 
 
8023
_LT_EOF
 
8024
        ;;
 
8025
        *)
 
8026
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8027
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8028
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8029
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8030
          else
 
8031
            ld_shlibs=no
 
8032
          fi
 
8033
        ;;
 
8034
      esac
 
8035
      ;;
 
8036
 
 
8037
    sunos4*)
 
8038
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8039
      wlarc=
 
8040
      hardcode_direct=yes
 
8041
      hardcode_shlibpath_var=no
 
8042
      ;;
 
8043
 
 
8044
    *)
 
8045
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8046
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8047
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8048
      else
 
8049
        ld_shlibs=no
 
8050
      fi
 
8051
      ;;
 
8052
    esac
 
8053
 
 
8054
    if test "$ld_shlibs" = no; then
 
8055
      runpath_var=
 
8056
      hardcode_libdir_flag_spec=
 
8057
      export_dynamic_flag_spec=
 
8058
      whole_archive_flag_spec=
 
8059
    fi
 
8060
  else
 
8061
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8062
    case $host_os in
 
8063
    aix3*)
 
8064
      allow_undefined_flag=unsupported
 
8065
      always_export_symbols=yes
 
8066
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
8067
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8068
      # are no directories specified by -L.
 
8069
      hardcode_minus_L=yes
 
8070
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8071
        # Neither direct hardcoding nor static linking is supported with a
 
8072
        # broken collect2.
 
8073
        hardcode_direct=unsupported
 
8074
      fi
 
8075
      ;;
 
8076
 
 
8077
    aix4* | aix5*)
 
8078
      if test "$host_cpu" = ia64; then
 
8079
        # On IA64, the linker does run time linking by default, so we don't
 
8080
        # have to do anything special.
 
8081
        aix_use_runtimelinking=no
 
8082
        exp_sym_flag='-Bexport'
 
8083
        no_entry_flag=""
 
8084
      else
 
8085
        # If we're using GNU nm, then we don't want the "-C" option.
 
8086
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8087
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8088
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
8089
        else
 
8090
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
8091
        fi
 
8092
        aix_use_runtimelinking=no
 
8093
 
 
8094
        # Test if we are trying to use run time linking or normal
 
8095
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8096
        # need to do runtime linking.
 
8097
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8098
          for ld_flag in $LDFLAGS; do
 
8099
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8100
            aix_use_runtimelinking=yes
 
8101
            break
 
8102
          fi
 
8103
          done
 
8104
          ;;
 
8105
        esac
 
8106
 
 
8107
        exp_sym_flag='-bexport'
 
8108
        no_entry_flag='-bnoentry'
 
8109
      fi
 
8110
 
 
8111
      # When large executables or shared objects are built, AIX ld can
 
8112
      # have problems creating the table of contents.  If linking a library
 
8113
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8114
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8115
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8116
 
 
8117
      archive_cmds=''
 
8118
      hardcode_direct=yes
 
8119
      hardcode_libdir_separator=':'
 
8120
      link_all_deplibs=yes
 
8121
 
 
8122
      if test "$GCC" = yes; then
 
8123
        case $host_os in aix4.[012]|aix4.[012].*)
 
8124
        # We only want to do this on AIX 4.2 and lower, the check
 
8125
        # below for broken collect2 doesn't work under 4.3+
 
8126
          collect2name=`${CC} -print-prog-name=collect2`
 
8127
          if test -f "$collect2name" && \
 
8128
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8129
          then
 
8130
          # We have reworked collect2
 
8131
          :
 
8132
          else
 
8133
          # We have old collect2
 
8134
          hardcode_direct=unsupported
 
8135
          # It fails to find uninstalled libraries when the uninstalled
 
8136
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8137
          # to unsupported forces relinking
 
8138
          hardcode_minus_L=yes
 
8139
          hardcode_libdir_flag_spec='-L$libdir'
 
8140
          hardcode_libdir_separator=
 
8141
          fi
 
8142
          ;;
 
8143
        esac
 
8144
        shared_flag='-shared'
 
8145
        if test "$aix_use_runtimelinking" = yes; then
 
8146
          shared_flag="$shared_flag "'${wl}-G'
 
8147
        fi
 
8148
      else
 
8149
        # not using gcc
 
8150
        if test "$host_cpu" = ia64; then
 
8151
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8152
        # chokes on -Wl,-G. The following line is correct:
 
8153
          shared_flag='-G'
 
8154
        else
 
8155
          if test "$aix_use_runtimelinking" = yes; then
 
8156
            shared_flag='${wl}-G'
 
8157
          else
 
8158
            shared_flag='${wl}-bM:SRE'
 
8159
          fi
 
8160
        fi
 
8161
      fi
 
8162
 
 
8163
      # It seems that -bexpall does not export symbols beginning with
 
8164
      # underscore (_), so it is better to generate a list of symbols to export.
 
8165
      always_export_symbols=yes
 
8166
      if test "$aix_use_runtimelinking" = yes; then
 
8167
        # Warning - without using the other runtime loading flags (-brtl),
 
8168
        # -berok will link without error, but may produce a broken library.
 
8169
        allow_undefined_flag='-berok'
 
8170
       # Determine the default libpath from the value encoded in an empty executable.
 
8171
       cat >conftest.$ac_ext <<_ACEOF
 
8172
/* confdefs.h.  */
 
8173
_ACEOF
 
8174
cat confdefs.h >>conftest.$ac_ext
 
8175
cat >>conftest.$ac_ext <<_ACEOF
 
8176
/* end confdefs.h.  */
 
8177
 
 
8178
int
 
8179
main ()
 
8180
{
 
8181
 
 
8182
  ;
 
8183
  return 0;
 
8184
}
 
8185
_ACEOF
 
8186
rm -f conftest.$ac_objext conftest$ac_exeext
 
8187
if { (ac_try="$ac_link"
 
8188
case "(($ac_try" in
 
8189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8190
  *) ac_try_echo=$ac_try;;
 
8191
esac
 
8192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8193
  (eval "$ac_link") 2>conftest.er1
 
8194
  ac_status=$?
 
8195
  grep -v '^ *+' conftest.er1 >conftest.err
 
8196
  rm -f conftest.er1
 
8197
  cat conftest.err >&5
 
8198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8199
  (exit $ac_status); } && {
 
8200
         test -z "$ac_c_werror_flag" ||
 
8201
         test ! -s conftest.err
 
8202
       } && test -s conftest$ac_exeext &&
 
8203
       $as_test_x conftest$ac_exeext; then
 
8204
 
 
8205
lt_aix_libpath_sed='
 
8206
    /Import File Strings/,/^$/ {
 
8207
        /^0/ {
 
8208
            s/^0  *\(.*\)$/\1/
 
8209
            p
 
8210
        }
 
8211
    }'
 
8212
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8213
# Check for a 64-bit object if we didn't find anything.
 
8214
if test -z "$aix_libpath"; then
 
8215
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8216
fi
 
8217
else
 
8218
  echo "$as_me: failed program was:" >&5
 
8219
sed 's/^/| /' conftest.$ac_ext >&5
 
8220
 
 
8221
 
 
8222
fi
 
8223
 
 
8224
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8225
      conftest$ac_exeext conftest.$ac_ext
 
8226
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8227
 
 
8228
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8229
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8230
       else
 
8231
        if test "$host_cpu" = ia64; then
 
8232
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8233
          allow_undefined_flag="-z nodefs"
 
8234
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
8235
        else
 
8236
         # Determine the default libpath from the value encoded in an empty executable.
 
8237
         cat >conftest.$ac_ext <<_ACEOF
 
8238
/* confdefs.h.  */
 
8239
_ACEOF
 
8240
cat confdefs.h >>conftest.$ac_ext
 
8241
cat >>conftest.$ac_ext <<_ACEOF
 
8242
/* end confdefs.h.  */
 
8243
 
 
8244
int
 
8245
main ()
 
8246
{
 
8247
 
 
8248
  ;
 
8249
  return 0;
 
8250
}
 
8251
_ACEOF
 
8252
rm -f conftest.$ac_objext conftest$ac_exeext
 
8253
if { (ac_try="$ac_link"
 
8254
case "(($ac_try" in
 
8255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8256
  *) ac_try_echo=$ac_try;;
 
8257
esac
 
8258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8259
  (eval "$ac_link") 2>conftest.er1
 
8260
  ac_status=$?
 
8261
  grep -v '^ *+' conftest.er1 >conftest.err
 
8262
  rm -f conftest.er1
 
8263
  cat conftest.err >&5
 
8264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8265
  (exit $ac_status); } && {
 
8266
         test -z "$ac_c_werror_flag" ||
 
8267
         test ! -s conftest.err
 
8268
       } && test -s conftest$ac_exeext &&
 
8269
       $as_test_x conftest$ac_exeext; then
 
8270
 
 
8271
lt_aix_libpath_sed='
 
8272
    /Import File Strings/,/^$/ {
 
8273
        /^0/ {
 
8274
            s/^0  *\(.*\)$/\1/
 
8275
            p
 
8276
        }
 
8277
    }'
 
8278
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8279
# Check for a 64-bit object if we didn't find anything.
 
8280
if test -z "$aix_libpath"; then
 
8281
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8282
fi
 
8283
else
 
8284
  echo "$as_me: failed program was:" >&5
 
8285
sed 's/^/| /' conftest.$ac_ext >&5
 
8286
 
 
8287
 
 
8288
fi
 
8289
 
 
8290
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8291
      conftest$ac_exeext conftest.$ac_ext
 
8292
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8293
 
 
8294
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8295
          # Warning - without using the other run time loading flags,
 
8296
          # -berok will link without error, but may produce a broken library.
 
8297
          no_undefined_flag=' ${wl}-bernotok'
 
8298
          allow_undefined_flag=' ${wl}-berok'
 
8299
          # Exported symbols can be pulled into shared objects from archives
 
8300
          whole_archive_flag_spec='$convenience'
 
8301
          archive_cmds_need_lc=yes
 
8302
          # This is similar to how AIX traditionally builds its shared libraries.
 
8303
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8304
        fi
 
8305
      fi
 
8306
      ;;
 
8307
 
 
8308
    amigaos*)
 
8309
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
8310
      hardcode_libdir_flag_spec='-L$libdir'
 
8311
      hardcode_minus_L=yes
 
8312
      # see comment about different semantics on the GNU ld section
 
8313
      ld_shlibs=no
 
8314
      ;;
 
8315
 
 
8316
    bsdi[45]*)
 
8317
      export_dynamic_flag_spec=-rdynamic
 
8318
      ;;
 
8319
 
 
8320
    cygwin* | mingw* | pw32*)
 
8321
      # When not using gcc, we currently assume that we are using
 
8322
      # Microsoft Visual C++.
 
8323
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8324
      # no search path for DLLs.
 
8325
      hardcode_libdir_flag_spec=' '
 
8326
      allow_undefined_flag=unsupported
 
8327
      # Tell ltmain to make .lib files, not .a files.
 
8328
      libext=lib
 
8329
      # Tell ltmain to make .dll files, not .so files.
 
8330
      shrext_cmds=".dll"
 
8331
      # FIXME: Setting linknames here is a bad hack.
 
8332
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8333
      # The linker will automatically build a .lib file if we build a DLL.
 
8334
      old_archive_From_new_cmds='true'
 
8335
      # FIXME: Should let the user specify the lib program.
 
8336
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8337
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8338
      enable_shared_with_static_runtimes=yes
 
8339
      ;;
 
8340
 
 
8341
    darwin* | rhapsody*)
 
8342
      case $host_os in
 
8343
        rhapsody* | darwin1.[012])
 
8344
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8345
         ;;
 
8346
       *) # Darwin 1.3 on
 
8347
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8348
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8349
         else
 
8350
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8351
             10.[012])
 
8352
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8353
               ;;
 
8354
             10.*)
 
8355
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8356
               ;;
 
8357
           esac
 
8358
         fi
 
8359
         ;;
 
8360
      esac
 
8361
      archive_cmds_need_lc=no
 
8362
      hardcode_direct=no
 
8363
      hardcode_automatic=yes
 
8364
      hardcode_shlibpath_var=unsupported
 
8365
      whole_archive_flag_spec=''
 
8366
      link_all_deplibs=yes
 
8367
    if test "$GCC" = yes ; then
 
8368
        output_verbose_link_cmd='echo'
 
8369
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8370
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8371
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8372
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8373
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8374
    else
 
8375
      case $cc_basename in
 
8376
        xlc*)
 
8377
         output_verbose_link_cmd='echo'
 
8378
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8379
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8380
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8381
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8382
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8383
          ;;
 
8384
       *)
 
8385
         ld_shlibs=no
 
8386
          ;;
 
8387
      esac
 
8388
    fi
 
8389
      ;;
 
8390
 
 
8391
    dgux*)
 
8392
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8393
      hardcode_libdir_flag_spec='-L$libdir'
 
8394
      hardcode_shlibpath_var=no
 
8395
      ;;
 
8396
 
 
8397
    freebsd1*)
 
8398
      ld_shlibs=no
 
8399
      ;;
 
8400
 
 
8401
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8402
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8403
    # does not break anything, and helps significantly (at the cost of a little
 
8404
    # extra space).
 
8405
    freebsd2.2*)
 
8406
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8407
      hardcode_libdir_flag_spec='-R$libdir'
 
8408
      hardcode_direct=yes
 
8409
      hardcode_shlibpath_var=no
 
8410
      ;;
 
8411
 
 
8412
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8413
    freebsd2*)
 
8414
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8415
      hardcode_direct=yes
 
8416
      hardcode_minus_L=yes
 
8417
      hardcode_shlibpath_var=no
 
8418
      ;;
 
8419
 
 
8420
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8421
    freebsd* | dragonfly*)
 
8422
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8423
      hardcode_libdir_flag_spec='-R$libdir'
 
8424
      hardcode_direct=yes
 
8425
      hardcode_shlibpath_var=no
 
8426
      ;;
 
8427
 
 
8428
    hpux9*)
 
8429
      if test "$GCC" = yes; then
 
8430
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8431
      else
 
8432
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8433
      fi
 
8434
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8435
      hardcode_libdir_separator=:
 
8436
      hardcode_direct=yes
 
8437
 
 
8438
      # hardcode_minus_L: Not really in the search PATH,
 
8439
      # but as the default location of the library.
 
8440
      hardcode_minus_L=yes
 
8441
      export_dynamic_flag_spec='${wl}-E'
 
8442
      ;;
 
8443
 
 
8444
    hpux10*)
 
8445
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8446
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8447
      else
 
8448
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8449
      fi
 
8450
      if test "$with_gnu_ld" = no; then
 
8451
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8452
        hardcode_libdir_separator=:
 
8453
 
 
8454
        hardcode_direct=yes
 
8455
        export_dynamic_flag_spec='${wl}-E'
 
8456
 
 
8457
        # hardcode_minus_L: Not really in the search PATH,
 
8458
        # but as the default location of the library.
 
8459
        hardcode_minus_L=yes
 
8460
      fi
 
8461
      ;;
 
8462
 
 
8463
    hpux11*)
 
8464
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8465
        case $host_cpu in
 
8466
        hppa*64*)
 
8467
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8468
          ;;
 
8469
        ia64*)
 
8470
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8471
          ;;
 
8472
        *)
 
8473
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8474
          ;;
 
8475
        esac
 
8476
      else
 
8477
        case $host_cpu in
 
8478
        hppa*64*)
 
8479
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8480
          ;;
 
8481
        ia64*)
 
8482
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8483
          ;;
 
8484
        *)
 
8485
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8486
          ;;
 
8487
        esac
 
8488
      fi
 
8489
      if test "$with_gnu_ld" = no; then
 
8490
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8491
        hardcode_libdir_separator=:
 
8492
 
 
8493
        case $host_cpu in
 
8494
        hppa*64*|ia64*)
 
8495
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8496
          hardcode_direct=no
 
8497
          hardcode_shlibpath_var=no
 
8498
          ;;
 
8499
        *)
 
8500
          hardcode_direct=yes
 
8501
          export_dynamic_flag_spec='${wl}-E'
 
8502
 
 
8503
          # hardcode_minus_L: Not really in the search PATH,
 
8504
          # but as the default location of the library.
 
8505
          hardcode_minus_L=yes
 
8506
          ;;
 
8507
        esac
 
8508
      fi
 
8509
      ;;
 
8510
 
 
8511
    irix5* | irix6* | nonstopux*)
 
8512
      if test "$GCC" = yes; then
 
8513
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8514
      else
 
8515
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8516
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8517
      fi
 
8518
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8519
      hardcode_libdir_separator=:
 
8520
      link_all_deplibs=yes
 
8521
      ;;
 
8522
 
 
8523
    netbsd*)
 
8524
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8525
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8526
      else
 
8527
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8528
      fi
 
8529
      hardcode_libdir_flag_spec='-R$libdir'
 
8530
      hardcode_direct=yes
 
8531
      hardcode_shlibpath_var=no
 
8532
      ;;
 
8533
 
 
8534
    newsos6)
 
8535
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8536
      hardcode_direct=yes
 
8537
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8538
      hardcode_libdir_separator=:
 
8539
      hardcode_shlibpath_var=no
 
8540
      ;;
 
8541
 
 
8542
    openbsd*)
 
8543
      if test -f /usr/libexec/ld.so; then
 
8544
        hardcode_direct=yes
 
8545
        hardcode_shlibpath_var=no
 
8546
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8547
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8548
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8549
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8550
          export_dynamic_flag_spec='${wl}-E'
 
8551
        else
 
8552
          case $host_os in
 
8553
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8554
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8555
             hardcode_libdir_flag_spec='-R$libdir'
 
8556
             ;;
 
8557
           *)
 
8558
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8559
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8560
             ;;
 
8561
          esac
 
8562
        fi
 
8563
      else
 
8564
        ld_shlibs=no
 
8565
      fi
 
8566
      ;;
 
8567
 
 
8568
    os2*)
 
8569
      hardcode_libdir_flag_spec='-L$libdir'
 
8570
      hardcode_minus_L=yes
 
8571
      allow_undefined_flag=unsupported
 
8572
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
8573
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8574
      ;;
 
8575
 
 
8576
    osf3*)
 
8577
      if test "$GCC" = yes; then
 
8578
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8579
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8580
      else
 
8581
        allow_undefined_flag=' -expect_unresolved \*'
 
8582
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8583
      fi
 
8584
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8585
      hardcode_libdir_separator=:
 
8586
      ;;
 
8587
 
 
8588
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8589
      if test "$GCC" = yes; then
 
8590
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8591
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8592
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8593
      else
 
8594
        allow_undefined_flag=' -expect_unresolved \*'
 
8595
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8596
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8597
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
8598
 
 
8599
        # Both c and cxx compiler support -rpath directly
 
8600
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8601
      fi
 
8602
      hardcode_libdir_separator=:
 
8603
      ;;
 
8604
 
 
8605
    solaris*)
 
8606
      no_undefined_flag=' -z text'
 
8607
      if test "$GCC" = yes; then
 
8608
        wlarc='${wl}'
 
8609
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8610
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8611
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8612
      else
 
8613
        wlarc=''
 
8614
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8615
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8616
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8617
      fi
 
8618
      hardcode_libdir_flag_spec='-R$libdir'
 
8619
      hardcode_shlibpath_var=no
 
8620
      case $host_os in
 
8621
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8622
      *)
 
8623
        # The compiler driver will combine and reorder linker options,
 
8624
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8625
        # but is careful enough not to reorder.
 
8626
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8627
        if test "$GCC" = yes; then
 
8628
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8629
        else
 
8630
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8631
        fi
 
8632
        ;;
 
8633
      esac
 
8634
      link_all_deplibs=yes
 
8635
      ;;
 
8636
 
 
8637
    sunos4*)
 
8638
      if test "x$host_vendor" = xsequent; then
 
8639
        # Use $CC to link under sequent, because it throws in some extra .o
 
8640
        # files that make .init and .fini sections work.
 
8641
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8642
      else
 
8643
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8644
      fi
 
8645
      hardcode_libdir_flag_spec='-L$libdir'
 
8646
      hardcode_direct=yes
 
8647
      hardcode_minus_L=yes
 
8648
      hardcode_shlibpath_var=no
 
8649
      ;;
 
8650
 
 
8651
    sysv4)
 
8652
      case $host_vendor in
 
8653
        sni)
 
8654
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8655
          hardcode_direct=yes # is this really true???
 
8656
        ;;
 
8657
        siemens)
 
8658
          ## LD is ld it makes a PLAMLIB
 
8659
          ## CC just makes a GrossModule.
 
8660
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8661
          reload_cmds='$CC -r -o $output$reload_objs'
 
8662
          hardcode_direct=no
 
8663
        ;;
 
8664
        motorola)
 
8665
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8666
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8667
        ;;
 
8668
      esac
 
8669
      runpath_var='LD_RUN_PATH'
 
8670
      hardcode_shlibpath_var=no
 
8671
      ;;
 
8672
 
 
8673
    sysv4.3*)
 
8674
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8675
      hardcode_shlibpath_var=no
 
8676
      export_dynamic_flag_spec='-Bexport'
 
8677
      ;;
 
8678
 
 
8679
    sysv4*MP*)
 
8680
      if test -d /usr/nec; then
 
8681
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8682
        hardcode_shlibpath_var=no
 
8683
        runpath_var=LD_RUN_PATH
 
8684
        hardcode_runpath_var=yes
 
8685
        ld_shlibs=yes
 
8686
      fi
 
8687
      ;;
 
8688
 
 
8689
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8690
      no_undefined_flag='${wl}-z,text'
 
8691
      archive_cmds_need_lc=no
 
8692
      hardcode_shlibpath_var=no
 
8693
      runpath_var='LD_RUN_PATH'
 
8694
 
 
8695
      if test "$GCC" = yes; then
 
8696
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8697
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8698
      else
 
8699
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8700
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8701
      fi
 
8702
      ;;
 
8703
 
 
8704
    sysv5* | sco3.2v5* | sco5v6*)
 
8705
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8706
      # link with -lc, and that would cause any symbols used from libc to
 
8707
      # always be unresolved, which means just about no library would
 
8708
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8709
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8710
      # as -z defs.
 
8711
      no_undefined_flag='${wl}-z,text'
 
8712
      allow_undefined_flag='${wl}-z,nodefs'
 
8713
      archive_cmds_need_lc=no
 
8714
      hardcode_shlibpath_var=no
 
8715
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8716
      hardcode_libdir_separator=':'
 
8717
      link_all_deplibs=yes
 
8718
      export_dynamic_flag_spec='${wl}-Bexport'
 
8719
      runpath_var='LD_RUN_PATH'
 
8720
 
 
8721
      if test "$GCC" = yes; then
 
8722
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8723
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8724
      else
 
8725
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8726
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8727
      fi
 
8728
      ;;
 
8729
 
 
8730
    uts4*)
 
8731
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8732
      hardcode_libdir_flag_spec='-L$libdir'
 
8733
      hardcode_shlibpath_var=no
 
8734
      ;;
 
8735
 
 
8736
    *)
 
8737
      ld_shlibs=no
 
8738
      ;;
 
8739
    esac
 
8740
  fi
 
8741
 
 
8742
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8743
echo "${ECHO_T}$ld_shlibs" >&6; }
 
8744
test "$ld_shlibs" = no && can_build_shared=no
 
8745
 
 
8746
#
 
8747
# Do we need to explicitly link libc?
 
8748
#
 
8749
case "x$archive_cmds_need_lc" in
 
8750
x|xyes)
 
8751
  # Assume -lc should be added
 
8752
  archive_cmds_need_lc=yes
 
8753
 
 
8754
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8755
    case $archive_cmds in
 
8756
    *'~'*)
 
8757
      # FIXME: we may have to deal with multi-command sequences.
 
8758
      ;;
 
8759
    '$CC '*)
 
8760
      # Test whether the compiler implicitly links with -lc since on some
 
8761
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8762
      # to ld, don't add -lc before -lgcc.
 
8763
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8764
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
8765
      $rm conftest*
 
8766
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8767
 
 
8768
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8769
  (eval $ac_compile) 2>&5
 
8770
  ac_status=$?
 
8771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8772
  (exit $ac_status); } 2>conftest.err; then
 
8773
        soname=conftest
 
8774
        lib=conftest
 
8775
        libobjs=conftest.$ac_objext
 
8776
        deplibs=
 
8777
        wl=$lt_prog_compiler_wl
 
8778
        pic_flag=$lt_prog_compiler_pic
 
8779
        compiler_flags=-v
 
8780
        linker_flags=-v
 
8781
        verstring=
 
8782
        output_objdir=.
 
8783
        libname=conftest
 
8784
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8785
        allow_undefined_flag=
 
8786
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8787
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8788
  ac_status=$?
 
8789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8790
  (exit $ac_status); }
 
8791
        then
 
8792
          archive_cmds_need_lc=no
 
8793
        else
 
8794
          archive_cmds_need_lc=yes
 
8795
        fi
 
8796
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8797
      else
 
8798
        cat conftest.err 1>&5
 
8799
      fi
 
8800
      $rm conftest*
 
8801
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8802
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
8803
      ;;
 
8804
    esac
 
8805
  fi
 
8806
  ;;
 
8807
esac
 
8808
 
 
8809
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8810
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
8811
library_names_spec=
 
8812
libname_spec='lib$name'
 
8813
soname_spec=
 
8814
shrext_cmds=".so"
 
8815
postinstall_cmds=
 
8816
postuninstall_cmds=
 
8817
finish_cmds=
 
8818
finish_eval=
 
8819
shlibpath_var=
 
8820
shlibpath_overrides_runpath=unknown
 
8821
version_type=none
 
8822
dynamic_linker="$host_os ld.so"
 
8823
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8824
 
 
8825
if test "$GCC" = yes; then
 
8826
  case $host_os in
 
8827
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
8828
    *) lt_awk_arg="/^libraries:/" ;;
 
8829
  esac
 
8830
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8831
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
8832
    # if the path contains ";" then we assume it to be the separator
 
8833
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8834
    # assumed that no part of a normal pathname contains ";" but that should
 
8835
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8836
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
8837
  else
 
8838
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8839
  fi
 
8840
  # Ok, now we have the path, separated by spaces, we can step through it
 
8841
  # and add multilib dir if necessary.
 
8842
  lt_tmp_lt_search_path_spec=
 
8843
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
8844
  for lt_sys_path in $lt_search_path_spec; do
 
8845
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
8846
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
8847
    else
 
8848
      test -d "$lt_sys_path" && \
 
8849
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
8850
    fi
 
8851
  done
 
8852
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
8853
BEGIN {RS=" "; FS="/|\n";} {
 
8854
  lt_foo="";
 
8855
  lt_count=0;
 
8856
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
8857
    if ($lt_i != "" && $lt_i != ".") {
 
8858
      if ($lt_i == "..") {
 
8859
        lt_count++;
 
8860
      } else {
 
8861
        if (lt_count == 0) {
 
8862
          lt_foo="/" $lt_i lt_foo;
 
8863
        } else {
 
8864
          lt_count--;
 
8865
        }
 
8866
      }
 
8867
    }
 
8868
  }
 
8869
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
8870
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
8871
}'`
 
8872
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
8873
else
 
8874
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8875
fi
 
8876
need_lib_prefix=unknown
 
8877
hardcode_into_libs=no
 
8878
 
 
8879
# when you set need_version to no, make sure it does not cause -set_version
 
8880
# flags to be left without arguments
 
8881
need_version=unknown
 
8882
 
 
8883
case $host_os in
 
8884
aix3*)
 
8885
  version_type=linux
 
8886
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8887
  shlibpath_var=LIBPATH
 
8888
 
 
8889
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8890
  soname_spec='${libname}${release}${shared_ext}$major'
 
8891
  ;;
 
8892
 
 
8893
aix4* | aix5*)
 
8894
  version_type=linux
 
8895
  need_lib_prefix=no
 
8896
  need_version=no
 
8897
  hardcode_into_libs=yes
 
8898
  if test "$host_cpu" = ia64; then
 
8899
    # AIX 5 supports IA64
 
8900
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8901
    shlibpath_var=LD_LIBRARY_PATH
 
8902
  else
 
8903
    # With GCC up to 2.95.x, collect2 would create an import file
 
8904
    # for dependence libraries.  The import file would start with
 
8905
    # the line `#! .'.  This would cause the generated library to
 
8906
    # depend on `.', always an invalid library.  This was fixed in
 
8907
    # development snapshots of GCC prior to 3.0.
 
8908
    case $host_os in
 
8909
      aix4 | aix4.[01] | aix4.[01].*)
 
8910
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8911
           echo ' yes '
 
8912
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8913
        :
 
8914
      else
 
8915
        can_build_shared=no
 
8916
      fi
 
8917
      ;;
 
8918
    esac
 
8919
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8920
    # soname into executable. Probably we can add versioning support to
 
8921
    # collect2, so additional links can be useful in future.
 
8922
    if test "$aix_use_runtimelinking" = yes; then
 
8923
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8924
      # instead of lib<name>.a to let people know that these are not
 
8925
      # typical AIX shared libraries.
 
8926
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8927
    else
 
8928
      # We preserve .a as extension for shared libraries through AIX4.2
 
8929
      # and later when we are not doing run time linking.
 
8930
      library_names_spec='${libname}${release}.a $libname.a'
 
8931
      soname_spec='${libname}${release}${shared_ext}$major'
 
8932
    fi
 
8933
    shlibpath_var=LIBPATH
 
8934
  fi
 
8935
  ;;
 
8936
 
 
8937
amigaos*)
 
8938
  library_names_spec='$libname.ixlibrary $libname.a'
 
8939
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8940
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
8941
  ;;
 
8942
 
 
8943
beos*)
 
8944
  library_names_spec='${libname}${shared_ext}'
 
8945
  dynamic_linker="$host_os ld.so"
 
8946
  shlibpath_var=LIBRARY_PATH
 
8947
  ;;
 
8948
 
 
8949
bsdi[45]*)
 
8950
  version_type=linux
 
8951
  need_version=no
 
8952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8953
  soname_spec='${libname}${release}${shared_ext}$major'
 
8954
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8955
  shlibpath_var=LD_LIBRARY_PATH
 
8956
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8957
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8958
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8959
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8960
  # libtool to hard-code these into programs
 
8961
  ;;
 
8962
 
 
8963
cygwin* | mingw* | pw32*)
 
8964
  version_type=windows
 
8965
  shrext_cmds=".dll"
 
8966
  need_version=no
 
8967
  need_lib_prefix=no
 
8968
 
 
8969
  case $GCC,$host_os in
 
8970
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8971
    library_names_spec='$libname.dll.a'
 
8972
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8973
    postinstall_cmds='base_file=`basename \${file}`~
 
8974
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8975
      dldir=$destdir/`dirname \$dlpath`~
 
8976
      test -d \$dldir || mkdir -p \$dldir~
 
8977
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8978
      chmod a+x \$dldir/$dlname'
 
8979
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8980
      dlpath=$dir/\$dldll~
 
8981
       $rm \$dlpath'
 
8982
    shlibpath_overrides_runpath=yes
 
8983
 
 
8984
    case $host_os in
 
8985
    cygwin*)
 
8986
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8987
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8988
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8989
      ;;
 
8990
    mingw*)
 
8991
      # MinGW DLLs use traditional 'lib' prefix
 
8992
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8993
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8994
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8995
        # It is most probably a Windows format PATH printed by
 
8996
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8997
        # path with ; separators, and with drive letters. We can handle the
 
8998
        # drive letters (cygwin fileutils understands them), so leave them,
 
8999
        # especially as we might pass files found there to a mingw objdump,
 
9000
        # which wouldn't understand a cygwinified path. Ahh.
 
9001
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9002
      else
 
9003
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9004
      fi
 
9005
      ;;
 
9006
    pw32*)
 
9007
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9008
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9009
      ;;
 
9010
    esac
 
9011
    ;;
 
9012
 
 
9013
  *)
 
9014
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9015
    ;;
 
9016
  esac
 
9017
  dynamic_linker='Win32 ld.exe'
 
9018
  # FIXME: first we should search . and the directory the executable is in
 
9019
  shlibpath_var=PATH
 
9020
  ;;
 
9021
 
 
9022
darwin* | rhapsody*)
 
9023
  dynamic_linker="$host_os dyld"
 
9024
  version_type=darwin
 
9025
  need_lib_prefix=no
 
9026
  need_version=no
 
9027
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9028
  soname_spec='${libname}${release}${major}$shared_ext'
 
9029
  shlibpath_overrides_runpath=yes
 
9030
  shlibpath_var=DYLD_LIBRARY_PATH
 
9031
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9032
 
 
9033
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9034
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9035
  ;;
 
9036
 
 
9037
dgux*)
 
9038
  version_type=linux
 
9039
  need_lib_prefix=no
 
9040
  need_version=no
 
9041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9042
  soname_spec='${libname}${release}${shared_ext}$major'
 
9043
  shlibpath_var=LD_LIBRARY_PATH
 
9044
  ;;
 
9045
 
 
9046
freebsd1*)
 
9047
  dynamic_linker=no
 
9048
  ;;
 
9049
 
 
9050
freebsd* | dragonfly*)
 
9051
  # DragonFly does not have aout.  When/if they implement a new
 
9052
  # versioning mechanism, adjust this.
 
9053
  if test -x /usr/bin/objformat; then
 
9054
    objformat=`/usr/bin/objformat`
 
9055
  else
 
9056
    case $host_os in
 
9057
    freebsd[123]*) objformat=aout ;;
 
9058
    *) objformat=elf ;;
 
9059
    esac
 
9060
  fi
 
9061
  # Handle Gentoo/FreeBSD as it was Linux
 
9062
  case $host_vendor in
 
9063
    gentoo)
 
9064
      version_type=linux ;;
 
9065
    *)
 
9066
      version_type=freebsd-$objformat ;;
 
9067
  esac
 
9068
 
 
9069
  case $version_type in
 
9070
    freebsd-elf*)
 
9071
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9072
      need_version=no
 
9073
      need_lib_prefix=no
 
9074
      ;;
 
9075
    freebsd-*)
 
9076
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9077
      need_version=yes
 
9078
      ;;
 
9079
    linux)
 
9080
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9081
      soname_spec='${libname}${release}${shared_ext}$major'
 
9082
      need_lib_prefix=no
 
9083
      need_version=no
 
9084
      ;;
 
9085
  esac
 
9086
  shlibpath_var=LD_LIBRARY_PATH
 
9087
  case $host_os in
 
9088
  freebsd2*)
 
9089
    shlibpath_overrides_runpath=yes
 
9090
    ;;
 
9091
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9092
    shlibpath_overrides_runpath=yes
 
9093
    hardcode_into_libs=yes
 
9094
    ;;
 
9095
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9096
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9097
    shlibpath_overrides_runpath=no
 
9098
    hardcode_into_libs=yes
 
9099
    ;;
 
9100
  *) # from 4.6 on, and DragonFly
 
9101
    shlibpath_overrides_runpath=yes
 
9102
    hardcode_into_libs=yes
 
9103
    ;;
 
9104
  esac
 
9105
  ;;
 
9106
 
 
9107
gnu*)
 
9108
  version_type=linux
 
9109
  need_lib_prefix=no
 
9110
  need_version=no
 
9111
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9112
  soname_spec='${libname}${release}${shared_ext}$major'
 
9113
  shlibpath_var=LD_LIBRARY_PATH
 
9114
  hardcode_into_libs=yes
 
9115
  ;;
 
9116
 
 
9117
hpux9* | hpux10* | hpux11*)
 
9118
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9119
  # link against other versions.
 
9120
  version_type=sunos
 
9121
  need_lib_prefix=no
 
9122
  need_version=no
 
9123
  case $host_cpu in
 
9124
  ia64*)
 
9125
    shrext_cmds='.so'
 
9126
    hardcode_into_libs=yes
 
9127
    dynamic_linker="$host_os dld.so"
 
9128
    shlibpath_var=LD_LIBRARY_PATH
 
9129
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9130
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9131
    soname_spec='${libname}${release}${shared_ext}$major'
 
9132
    if test "X$HPUX_IA64_MODE" = X32; then
 
9133
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9134
    else
 
9135
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9136
    fi
 
9137
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9138
    ;;
 
9139
   hppa*64*)
 
9140
     shrext_cmds='.sl'
 
9141
     hardcode_into_libs=yes
 
9142
     dynamic_linker="$host_os dld.sl"
 
9143
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9144
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9145
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9146
     soname_spec='${libname}${release}${shared_ext}$major'
 
9147
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9148
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9149
     ;;
 
9150
   *)
 
9151
    shrext_cmds='.sl'
 
9152
    dynamic_linker="$host_os dld.sl"
 
9153
    shlibpath_var=SHLIB_PATH
 
9154
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9155
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9156
    soname_spec='${libname}${release}${shared_ext}$major'
 
9157
    ;;
 
9158
  esac
 
9159
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9160
  postinstall_cmds='chmod 555 $lib'
 
9161
  ;;
 
9162
 
 
9163
interix[3-9]*)
 
9164
  version_type=linux
 
9165
  need_lib_prefix=no
 
9166
  need_version=no
 
9167
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9168
  soname_spec='${libname}${release}${shared_ext}$major'
 
9169
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9170
  shlibpath_var=LD_LIBRARY_PATH
 
9171
  shlibpath_overrides_runpath=no
 
9172
  hardcode_into_libs=yes
 
9173
  ;;
 
9174
 
 
9175
irix5* | irix6* | nonstopux*)
 
9176
  case $host_os in
 
9177
    nonstopux*) version_type=nonstopux ;;
 
9178
    *)
 
9179
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9180
                version_type=linux
 
9181
        else
 
9182
                version_type=irix
 
9183
        fi ;;
 
9184
  esac
 
9185
  need_lib_prefix=no
 
9186
  need_version=no
 
9187
  soname_spec='${libname}${release}${shared_ext}$major'
 
9188
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9189
  case $host_os in
 
9190
  irix5* | nonstopux*)
 
9191
    libsuff= shlibsuff=
 
9192
    ;;
 
9193
  *)
 
9194
    case $LD in # libtool.m4 will add one of these switches to LD
 
9195
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9196
      libsuff= shlibsuff= libmagic=32-bit;;
 
9197
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9198
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9199
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9200
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9201
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9202
    esac
 
9203
    ;;
 
9204
  esac
 
9205
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9206
  shlibpath_overrides_runpath=no
 
9207
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9208
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9209
  hardcode_into_libs=yes
 
9210
  ;;
 
9211
 
 
9212
# No shared lib support for Linux oldld, aout, or coff.
 
9213
linux*oldld* | linux*aout* | linux*coff*)
 
9214
  dynamic_linker=no
 
9215
  ;;
 
9216
 
 
9217
# This must be Linux ELF.
 
9218
linux* | k*bsd*-gnu)
 
9219
  version_type=linux
 
9220
  need_lib_prefix=no
 
9221
  need_version=no
 
9222
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9223
  soname_spec='${libname}${release}${shared_ext}$major'
 
9224
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9225
  shlibpath_var=LD_LIBRARY_PATH
 
9226
  shlibpath_overrides_runpath=no
 
9227
  # This implies no fast_install, which is unacceptable.
 
9228
  # Some rework will be needed to allow for fast_install
 
9229
  # before this can be enabled.
 
9230
  hardcode_into_libs=yes
 
9231
 
 
9232
  # Append ld.so.conf contents to the search path
 
9233
  if test -f /etc/ld.so.conf; then
 
9234
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9235
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9236
  fi
 
9237
 
 
9238
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9239
  # powerpc, because MkLinux only supported shared libraries with the
 
9240
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9241
  # most powerpc-linux boxes support dynamic linking these days and
 
9242
  # people can always --disable-shared, the test was removed, and we
 
9243
  # assume the GNU/Linux dynamic linker is in use.
 
9244
  dynamic_linker='GNU/Linux ld.so'
 
9245
  ;;
 
9246
 
 
9247
netbsd*)
 
9248
  version_type=sunos
 
9249
  need_lib_prefix=no
 
9250
  need_version=no
 
9251
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9252
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9253
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9254
    dynamic_linker='NetBSD (a.out) ld.so'
 
9255
  else
 
9256
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9257
    soname_spec='${libname}${release}${shared_ext}$major'
 
9258
    dynamic_linker='NetBSD ld.elf_so'
 
9259
  fi
 
9260
  shlibpath_var=LD_LIBRARY_PATH
 
9261
  shlibpath_overrides_runpath=yes
 
9262
  hardcode_into_libs=yes
 
9263
  ;;
 
9264
 
 
9265
newsos6)
 
9266
  version_type=linux
 
9267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9268
  shlibpath_var=LD_LIBRARY_PATH
 
9269
  shlibpath_overrides_runpath=yes
 
9270
  ;;
 
9271
 
 
9272
nto-qnx*)
 
9273
  version_type=linux
 
9274
  need_lib_prefix=no
 
9275
  need_version=no
 
9276
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9277
  soname_spec='${libname}${release}${shared_ext}$major'
 
9278
  shlibpath_var=LD_LIBRARY_PATH
 
9279
  shlibpath_overrides_runpath=yes
 
9280
  ;;
 
9281
 
 
9282
openbsd*)
 
9283
  version_type=sunos
 
9284
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9285
  need_lib_prefix=no
 
9286
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9287
  case $host_os in
 
9288
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9289
    *)                         need_version=no  ;;
 
9290
  esac
 
9291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9292
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9293
  shlibpath_var=LD_LIBRARY_PATH
 
9294
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9295
    case $host_os in
 
9296
      openbsd2.[89] | openbsd2.[89].*)
 
9297
        shlibpath_overrides_runpath=no
 
9298
        ;;
 
9299
      *)
 
9300
        shlibpath_overrides_runpath=yes
 
9301
        ;;
 
9302
      esac
 
9303
  else
 
9304
    shlibpath_overrides_runpath=yes
 
9305
  fi
 
9306
  ;;
 
9307
 
 
9308
os2*)
 
9309
  libname_spec='$name'
 
9310
  shrext_cmds=".dll"
 
9311
  need_lib_prefix=no
 
9312
  library_names_spec='$libname${shared_ext} $libname.a'
 
9313
  dynamic_linker='OS/2 ld.exe'
 
9314
  shlibpath_var=LIBPATH
 
9315
  ;;
 
9316
 
 
9317
osf3* | osf4* | osf5*)
 
9318
  version_type=osf
 
9319
  need_lib_prefix=no
 
9320
  need_version=no
 
9321
  soname_spec='${libname}${release}${shared_ext}$major'
 
9322
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9323
  shlibpath_var=LD_LIBRARY_PATH
 
9324
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9325
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9326
  ;;
 
9327
 
 
9328
rdos*)
 
9329
  dynamic_linker=no
 
9330
  ;;
 
9331
 
 
9332
solaris*)
 
9333
  version_type=linux
 
9334
  need_lib_prefix=no
 
9335
  need_version=no
 
9336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9337
  soname_spec='${libname}${release}${shared_ext}$major'
 
9338
  shlibpath_var=LD_LIBRARY_PATH
 
9339
  shlibpath_overrides_runpath=yes
 
9340
  hardcode_into_libs=yes
 
9341
  # ldd complains unless libraries are executable
 
9342
  postinstall_cmds='chmod +x $lib'
 
9343
  ;;
 
9344
 
 
9345
sunos4*)
 
9346
  version_type=sunos
 
9347
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9348
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9349
  shlibpath_var=LD_LIBRARY_PATH
 
9350
  shlibpath_overrides_runpath=yes
 
9351
  if test "$with_gnu_ld" = yes; then
 
9352
    need_lib_prefix=no
 
9353
  fi
 
9354
  need_version=yes
 
9355
  ;;
 
9356
 
 
9357
sysv4 | sysv4.3*)
 
9358
  version_type=linux
 
9359
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9360
  soname_spec='${libname}${release}${shared_ext}$major'
 
9361
  shlibpath_var=LD_LIBRARY_PATH
 
9362
  case $host_vendor in
 
9363
    sni)
 
9364
      shlibpath_overrides_runpath=no
 
9365
      need_lib_prefix=no
 
9366
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9367
      runpath_var=LD_RUN_PATH
 
9368
      ;;
 
9369
    siemens)
 
9370
      need_lib_prefix=no
 
9371
      ;;
 
9372
    motorola)
 
9373
      need_lib_prefix=no
 
9374
      need_version=no
 
9375
      shlibpath_overrides_runpath=no
 
9376
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9377
      ;;
 
9378
  esac
 
9379
  ;;
 
9380
 
 
9381
sysv4*MP*)
 
9382
  if test -d /usr/nec ;then
 
9383
    version_type=linux
 
9384
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9385
    soname_spec='$libname${shared_ext}.$major'
 
9386
    shlibpath_var=LD_LIBRARY_PATH
 
9387
  fi
 
9388
  ;;
 
9389
 
 
9390
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9391
  version_type=freebsd-elf
 
9392
  need_lib_prefix=no
 
9393
  need_version=no
 
9394
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9395
  soname_spec='${libname}${release}${shared_ext}$major'
 
9396
  shlibpath_var=LD_LIBRARY_PATH
 
9397
  hardcode_into_libs=yes
 
9398
  if test "$with_gnu_ld" = yes; then
 
9399
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9400
    shlibpath_overrides_runpath=no
 
9401
  else
 
9402
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9403
    shlibpath_overrides_runpath=yes
 
9404
    case $host_os in
 
9405
      sco3.2v5*)
 
9406
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9407
        ;;
 
9408
    esac
 
9409
  fi
 
9410
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9411
  ;;
 
9412
 
 
9413
uts4*)
 
9414
  version_type=linux
 
9415
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9416
  soname_spec='${libname}${release}${shared_ext}$major'
 
9417
  shlibpath_var=LD_LIBRARY_PATH
 
9418
  ;;
 
9419
 
 
9420
*)
 
9421
  dynamic_linker=no
 
9422
  ;;
 
9423
esac
 
9424
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9425
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9426
test "$dynamic_linker" = no && can_build_shared=no
 
9427
 
 
9428
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9429
if test "$GCC" = yes; then
 
9430
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9431
fi
 
9432
 
 
9433
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9434
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9435
hardcode_action=
 
9436
if test -n "$hardcode_libdir_flag_spec" || \
 
9437
   test -n "$runpath_var" || \
 
9438
   test "X$hardcode_automatic" = "Xyes" ; then
 
9439
 
 
9440
  # We can hardcode non-existant directories.
 
9441
  if test "$hardcode_direct" != no &&
 
9442
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9443
     # have to relink, otherwise we might link with an installed library
 
9444
     # when we should be linking with a yet-to-be-installed one
 
9445
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9446
     test "$hardcode_minus_L" != no; then
 
9447
    # Linking always hardcodes the temporary library directory.
 
9448
    hardcode_action=relink
 
9449
  else
 
9450
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9451
    hardcode_action=immediate
 
9452
  fi
 
9453
else
 
9454
  # We cannot hardcode anything, or else we can only hardcode existing
 
9455
  # directories.
 
9456
  hardcode_action=unsupported
 
9457
fi
 
9458
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9459
echo "${ECHO_T}$hardcode_action" >&6; }
 
9460
 
 
9461
if test "$hardcode_action" = relink; then
 
9462
  # Fast installation is not supported
 
9463
  enable_fast_install=no
 
9464
elif test "$shlibpath_overrides_runpath" = yes ||
 
9465
     test "$enable_shared" = no; then
 
9466
  # Fast installation is not necessary
 
9467
  enable_fast_install=needless
 
9468
fi
 
9469
 
 
9470
striplib=
 
9471
old_striplib=
 
9472
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9473
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9474
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9475
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9476
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9477
  { echo "$as_me:$LINENO: result: yes" >&5
 
9478
echo "${ECHO_T}yes" >&6; }
 
9479
else
 
9480
# FIXME - insert some real tests, host_os isn't really good enough
 
9481
  case $host_os in
 
9482
   darwin*)
 
9483
       if test -n "$STRIP" ; then
 
9484
         striplib="$STRIP -x"
 
9485
         old_striplib="$STRIP -S"
 
9486
         { echo "$as_me:$LINENO: result: yes" >&5
 
9487
echo "${ECHO_T}yes" >&6; }
 
9488
       else
 
9489
  { echo "$as_me:$LINENO: result: no" >&5
 
9490
echo "${ECHO_T}no" >&6; }
 
9491
fi
 
9492
       ;;
 
9493
   *)
 
9494
  { echo "$as_me:$LINENO: result: no" >&5
 
9495
echo "${ECHO_T}no" >&6; }
 
9496
    ;;
 
9497
  esac
 
9498
fi
 
9499
 
 
9500
if test "x$enable_dlopen" != xyes; then
 
9501
  enable_dlopen=unknown
 
9502
  enable_dlopen_self=unknown
 
9503
  enable_dlopen_self_static=unknown
 
9504
else
 
9505
  lt_cv_dlopen=no
 
9506
  lt_cv_dlopen_libs=
 
9507
 
 
9508
  case $host_os in
 
9509
  beos*)
 
9510
    lt_cv_dlopen="load_add_on"
 
9511
    lt_cv_dlopen_libs=
 
9512
    lt_cv_dlopen_self=yes
 
9513
    ;;
 
9514
 
 
9515
  mingw* | pw32*)
 
9516
    lt_cv_dlopen="LoadLibrary"
 
9517
    lt_cv_dlopen_libs=
 
9518
   ;;
 
9519
 
 
9520
  cygwin*)
 
9521
    lt_cv_dlopen="dlopen"
 
9522
    lt_cv_dlopen_libs=
 
9523
   ;;
 
9524
 
 
9525
  darwin*)
 
9526
  # if libdl is installed we need to link against it
 
9527
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9528
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9529
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9530
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9531
else
 
9532
  ac_check_lib_save_LIBS=$LIBS
 
9533
LIBS="-ldl  $LIBS"
 
9534
cat >conftest.$ac_ext <<_ACEOF
 
9535
/* confdefs.h.  */
 
9536
_ACEOF
 
9537
cat confdefs.h >>conftest.$ac_ext
 
9538
cat >>conftest.$ac_ext <<_ACEOF
 
9539
/* end confdefs.h.  */
 
9540
 
 
9541
/* Override any GCC internal prototype to avoid an error.
 
9542
   Use char because int might match the return type of a GCC
 
9543
   builtin and then its argument prototype would still apply.  */
 
9544
#ifdef __cplusplus
 
9545
extern "C"
 
9546
#endif
 
9547
char dlopen ();
 
9548
int
 
9549
main ()
 
9550
{
 
9551
return dlopen ();
 
9552
  ;
 
9553
  return 0;
 
9554
}
 
9555
_ACEOF
 
9556
rm -f conftest.$ac_objext conftest$ac_exeext
 
9557
if { (ac_try="$ac_link"
 
9558
case "(($ac_try" in
 
9559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9560
  *) ac_try_echo=$ac_try;;
 
9561
esac
 
9562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9563
  (eval "$ac_link") 2>conftest.er1
 
9564
  ac_status=$?
 
9565
  grep -v '^ *+' conftest.er1 >conftest.err
 
9566
  rm -f conftest.er1
 
9567
  cat conftest.err >&5
 
9568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9569
  (exit $ac_status); } && {
 
9570
         test -z "$ac_c_werror_flag" ||
 
9571
         test ! -s conftest.err
 
9572
       } && test -s conftest$ac_exeext &&
 
9573
       $as_test_x conftest$ac_exeext; then
 
9574
  ac_cv_lib_dl_dlopen=yes
 
9575
else
 
9576
  echo "$as_me: failed program was:" >&5
 
9577
sed 's/^/| /' conftest.$ac_ext >&5
 
9578
 
 
9579
        ac_cv_lib_dl_dlopen=no
 
9580
fi
 
9581
 
 
9582
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9583
      conftest$ac_exeext conftest.$ac_ext
 
9584
LIBS=$ac_check_lib_save_LIBS
 
9585
fi
 
9586
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9587
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9588
if test $ac_cv_lib_dl_dlopen = yes; then
 
9589
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9590
else
 
9591
 
 
9592
    lt_cv_dlopen="dyld"
 
9593
    lt_cv_dlopen_libs=
 
9594
    lt_cv_dlopen_self=yes
 
9595
 
 
9596
fi
 
9597
 
 
9598
   ;;
 
9599
 
 
9600
  *)
 
9601
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9602
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9603
if test "${ac_cv_func_shl_load+set}" = set; then
 
9604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9605
else
 
9606
  cat >conftest.$ac_ext <<_ACEOF
 
9607
/* confdefs.h.  */
 
9608
_ACEOF
 
9609
cat confdefs.h >>conftest.$ac_ext
 
9610
cat >>conftest.$ac_ext <<_ACEOF
 
9611
/* end confdefs.h.  */
 
9612
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9613
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9614
#define shl_load innocuous_shl_load
 
9615
 
 
9616
/* System header to define __stub macros and hopefully few prototypes,
 
9617
    which can conflict with char shl_load (); below.
 
9618
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9619
    <limits.h> exists even on freestanding compilers.  */
 
9620
 
 
9621
#ifdef __STDC__
 
9622
# include <limits.h>
 
9623
#else
 
9624
# include <assert.h>
 
9625
#endif
 
9626
 
 
9627
#undef shl_load
 
9628
 
 
9629
/* Override any GCC internal prototype to avoid an error.
 
9630
   Use char because int might match the return type of a GCC
 
9631
   builtin and then its argument prototype would still apply.  */
 
9632
#ifdef __cplusplus
 
9633
extern "C"
 
9634
#endif
 
9635
char shl_load ();
 
9636
/* The GNU C library defines this for functions which it implements
 
9637
    to always fail with ENOSYS.  Some functions are actually named
 
9638
    something starting with __ and the normal name is an alias.  */
 
9639
#if defined __stub_shl_load || defined __stub___shl_load
 
9640
choke me
 
9641
#endif
 
9642
 
 
9643
int
 
9644
main ()
 
9645
{
 
9646
return shl_load ();
 
9647
  ;
 
9648
  return 0;
 
9649
}
 
9650
_ACEOF
 
9651
rm -f conftest.$ac_objext conftest$ac_exeext
 
9652
if { (ac_try="$ac_link"
 
9653
case "(($ac_try" in
 
9654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9655
  *) ac_try_echo=$ac_try;;
 
9656
esac
 
9657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9658
  (eval "$ac_link") 2>conftest.er1
 
9659
  ac_status=$?
 
9660
  grep -v '^ *+' conftest.er1 >conftest.err
 
9661
  rm -f conftest.er1
 
9662
  cat conftest.err >&5
 
9663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9664
  (exit $ac_status); } && {
 
9665
         test -z "$ac_c_werror_flag" ||
 
9666
         test ! -s conftest.err
 
9667
       } && test -s conftest$ac_exeext &&
 
9668
       $as_test_x conftest$ac_exeext; then
 
9669
  ac_cv_func_shl_load=yes
 
9670
else
 
9671
  echo "$as_me: failed program was:" >&5
 
9672
sed 's/^/| /' conftest.$ac_ext >&5
 
9673
 
 
9674
        ac_cv_func_shl_load=no
 
9675
fi
 
9676
 
 
9677
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9678
      conftest$ac_exeext conftest.$ac_ext
 
9679
fi
 
9680
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9681
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9682
if test $ac_cv_func_shl_load = yes; then
 
9683
  lt_cv_dlopen="shl_load"
 
9684
else
 
9685
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9686
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9687
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9689
else
 
9690
  ac_check_lib_save_LIBS=$LIBS
 
9691
LIBS="-ldld  $LIBS"
 
9692
cat >conftest.$ac_ext <<_ACEOF
 
9693
/* confdefs.h.  */
 
9694
_ACEOF
 
9695
cat confdefs.h >>conftest.$ac_ext
 
9696
cat >>conftest.$ac_ext <<_ACEOF
 
9697
/* end confdefs.h.  */
 
9698
 
 
9699
/* Override any GCC internal prototype to avoid an error.
 
9700
   Use char because int might match the return type of a GCC
 
9701
   builtin and then its argument prototype would still apply.  */
 
9702
#ifdef __cplusplus
 
9703
extern "C"
 
9704
#endif
 
9705
char shl_load ();
 
9706
int
 
9707
main ()
 
9708
{
 
9709
return shl_load ();
 
9710
  ;
 
9711
  return 0;
 
9712
}
 
9713
_ACEOF
 
9714
rm -f conftest.$ac_objext conftest$ac_exeext
 
9715
if { (ac_try="$ac_link"
 
9716
case "(($ac_try" in
 
9717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9718
  *) ac_try_echo=$ac_try;;
 
9719
esac
 
9720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9721
  (eval "$ac_link") 2>conftest.er1
 
9722
  ac_status=$?
 
9723
  grep -v '^ *+' conftest.er1 >conftest.err
 
9724
  rm -f conftest.er1
 
9725
  cat conftest.err >&5
 
9726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9727
  (exit $ac_status); } && {
 
9728
         test -z "$ac_c_werror_flag" ||
 
9729
         test ! -s conftest.err
 
9730
       } && test -s conftest$ac_exeext &&
 
9731
       $as_test_x conftest$ac_exeext; then
 
9732
  ac_cv_lib_dld_shl_load=yes
 
9733
else
 
9734
  echo "$as_me: failed program was:" >&5
 
9735
sed 's/^/| /' conftest.$ac_ext >&5
 
9736
 
 
9737
        ac_cv_lib_dld_shl_load=no
 
9738
fi
 
9739
 
 
9740
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9741
      conftest$ac_exeext conftest.$ac_ext
 
9742
LIBS=$ac_check_lib_save_LIBS
 
9743
fi
 
9744
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9745
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
9746
if test $ac_cv_lib_dld_shl_load = yes; then
 
9747
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9748
else
 
9749
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9750
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
9751
if test "${ac_cv_func_dlopen+set}" = set; then
 
9752
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9753
else
 
9754
  cat >conftest.$ac_ext <<_ACEOF
 
9755
/* confdefs.h.  */
 
9756
_ACEOF
 
9757
cat confdefs.h >>conftest.$ac_ext
 
9758
cat >>conftest.$ac_ext <<_ACEOF
 
9759
/* end confdefs.h.  */
 
9760
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9761
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9762
#define dlopen innocuous_dlopen
 
9763
 
 
9764
/* System header to define __stub macros and hopefully few prototypes,
 
9765
    which can conflict with char dlopen (); below.
 
9766
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9767
    <limits.h> exists even on freestanding compilers.  */
 
9768
 
 
9769
#ifdef __STDC__
 
9770
# include <limits.h>
 
9771
#else
 
9772
# include <assert.h>
 
9773
#endif
 
9774
 
 
9775
#undef dlopen
 
9776
 
 
9777
/* Override any GCC internal prototype to avoid an error.
 
9778
   Use char because int might match the return type of a GCC
 
9779
   builtin and then its argument prototype would still apply.  */
 
9780
#ifdef __cplusplus
 
9781
extern "C"
 
9782
#endif
 
9783
char dlopen ();
 
9784
/* The GNU C library defines this for functions which it implements
 
9785
    to always fail with ENOSYS.  Some functions are actually named
 
9786
    something starting with __ and the normal name is an alias.  */
 
9787
#if defined __stub_dlopen || defined __stub___dlopen
 
9788
choke me
 
9789
#endif
 
9790
 
 
9791
int
 
9792
main ()
 
9793
{
 
9794
return dlopen ();
 
9795
  ;
 
9796
  return 0;
 
9797
}
 
9798
_ACEOF
 
9799
rm -f conftest.$ac_objext conftest$ac_exeext
 
9800
if { (ac_try="$ac_link"
 
9801
case "(($ac_try" in
 
9802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9803
  *) ac_try_echo=$ac_try;;
 
9804
esac
 
9805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9806
  (eval "$ac_link") 2>conftest.er1
 
9807
  ac_status=$?
 
9808
  grep -v '^ *+' conftest.er1 >conftest.err
 
9809
  rm -f conftest.er1
 
9810
  cat conftest.err >&5
 
9811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9812
  (exit $ac_status); } && {
 
9813
         test -z "$ac_c_werror_flag" ||
 
9814
         test ! -s conftest.err
 
9815
       } && test -s conftest$ac_exeext &&
 
9816
       $as_test_x conftest$ac_exeext; then
 
9817
  ac_cv_func_dlopen=yes
 
9818
else
 
9819
  echo "$as_me: failed program was:" >&5
 
9820
sed 's/^/| /' conftest.$ac_ext >&5
 
9821
 
 
9822
        ac_cv_func_dlopen=no
 
9823
fi
 
9824
 
 
9825
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9826
      conftest$ac_exeext conftest.$ac_ext
 
9827
fi
 
9828
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9829
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
9830
if test $ac_cv_func_dlopen = yes; then
 
9831
  lt_cv_dlopen="dlopen"
 
9832
else
 
9833
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9834
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9835
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9837
else
 
9838
  ac_check_lib_save_LIBS=$LIBS
 
9839
LIBS="-ldl  $LIBS"
 
9840
cat >conftest.$ac_ext <<_ACEOF
 
9841
/* confdefs.h.  */
 
9842
_ACEOF
 
9843
cat confdefs.h >>conftest.$ac_ext
 
9844
cat >>conftest.$ac_ext <<_ACEOF
 
9845
/* end confdefs.h.  */
 
9846
 
 
9847
/* Override any GCC internal prototype to avoid an error.
 
9848
   Use char because int might match the return type of a GCC
 
9849
   builtin and then its argument prototype would still apply.  */
 
9850
#ifdef __cplusplus
 
9851
extern "C"
 
9852
#endif
 
9853
char dlopen ();
 
9854
int
 
9855
main ()
 
9856
{
 
9857
return dlopen ();
 
9858
  ;
 
9859
  return 0;
 
9860
}
 
9861
_ACEOF
 
9862
rm -f conftest.$ac_objext conftest$ac_exeext
 
9863
if { (ac_try="$ac_link"
 
9864
case "(($ac_try" in
 
9865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9866
  *) ac_try_echo=$ac_try;;
 
9867
esac
 
9868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9869
  (eval "$ac_link") 2>conftest.er1
 
9870
  ac_status=$?
 
9871
  grep -v '^ *+' conftest.er1 >conftest.err
 
9872
  rm -f conftest.er1
 
9873
  cat conftest.err >&5
 
9874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9875
  (exit $ac_status); } && {
 
9876
         test -z "$ac_c_werror_flag" ||
 
9877
         test ! -s conftest.err
 
9878
       } && test -s conftest$ac_exeext &&
 
9879
       $as_test_x conftest$ac_exeext; then
 
9880
  ac_cv_lib_dl_dlopen=yes
 
9881
else
 
9882
  echo "$as_me: failed program was:" >&5
 
9883
sed 's/^/| /' conftest.$ac_ext >&5
 
9884
 
 
9885
        ac_cv_lib_dl_dlopen=no
 
9886
fi
 
9887
 
 
9888
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9889
      conftest$ac_exeext conftest.$ac_ext
 
9890
LIBS=$ac_check_lib_save_LIBS
 
9891
fi
 
9892
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9893
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9894
if test $ac_cv_lib_dl_dlopen = yes; then
 
9895
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9896
else
 
9897
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9898
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
9899
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9900
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9901
else
 
9902
  ac_check_lib_save_LIBS=$LIBS
 
9903
LIBS="-lsvld  $LIBS"
 
9904
cat >conftest.$ac_ext <<_ACEOF
 
9905
/* confdefs.h.  */
 
9906
_ACEOF
 
9907
cat confdefs.h >>conftest.$ac_ext
 
9908
cat >>conftest.$ac_ext <<_ACEOF
 
9909
/* end confdefs.h.  */
 
9910
 
 
9911
/* Override any GCC internal prototype to avoid an error.
 
9912
   Use char because int might match the return type of a GCC
 
9913
   builtin and then its argument prototype would still apply.  */
 
9914
#ifdef __cplusplus
 
9915
extern "C"
 
9916
#endif
 
9917
char dlopen ();
 
9918
int
 
9919
main ()
 
9920
{
 
9921
return dlopen ();
 
9922
  ;
 
9923
  return 0;
 
9924
}
 
9925
_ACEOF
 
9926
rm -f conftest.$ac_objext conftest$ac_exeext
 
9927
if { (ac_try="$ac_link"
 
9928
case "(($ac_try" in
 
9929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9930
  *) ac_try_echo=$ac_try;;
 
9931
esac
 
9932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9933
  (eval "$ac_link") 2>conftest.er1
 
9934
  ac_status=$?
 
9935
  grep -v '^ *+' conftest.er1 >conftest.err
 
9936
  rm -f conftest.er1
 
9937
  cat conftest.err >&5
 
9938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9939
  (exit $ac_status); } && {
 
9940
         test -z "$ac_c_werror_flag" ||
 
9941
         test ! -s conftest.err
 
9942
       } && test -s conftest$ac_exeext &&
 
9943
       $as_test_x conftest$ac_exeext; then
 
9944
  ac_cv_lib_svld_dlopen=yes
 
9945
else
 
9946
  echo "$as_me: failed program was:" >&5
 
9947
sed 's/^/| /' conftest.$ac_ext >&5
 
9948
 
 
9949
        ac_cv_lib_svld_dlopen=no
 
9950
fi
 
9951
 
 
9952
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9953
      conftest$ac_exeext conftest.$ac_ext
 
9954
LIBS=$ac_check_lib_save_LIBS
 
9955
fi
 
9956
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9957
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
9958
if test $ac_cv_lib_svld_dlopen = yes; then
 
9959
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9960
else
 
9961
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9962
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
9963
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9964
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9965
else
 
9966
  ac_check_lib_save_LIBS=$LIBS
 
9967
LIBS="-ldld  $LIBS"
 
9968
cat >conftest.$ac_ext <<_ACEOF
 
9969
/* confdefs.h.  */
 
9970
_ACEOF
 
9971
cat confdefs.h >>conftest.$ac_ext
 
9972
cat >>conftest.$ac_ext <<_ACEOF
 
9973
/* end confdefs.h.  */
 
9974
 
 
9975
/* Override any GCC internal prototype to avoid an error.
 
9976
   Use char because int might match the return type of a GCC
 
9977
   builtin and then its argument prototype would still apply.  */
 
9978
#ifdef __cplusplus
 
9979
extern "C"
 
9980
#endif
 
9981
char dld_link ();
 
9982
int
 
9983
main ()
 
9984
{
 
9985
return dld_link ();
 
9986
  ;
 
9987
  return 0;
 
9988
}
 
9989
_ACEOF
 
9990
rm -f conftest.$ac_objext conftest$ac_exeext
 
9991
if { (ac_try="$ac_link"
 
9992
case "(($ac_try" in
 
9993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9994
  *) ac_try_echo=$ac_try;;
 
9995
esac
 
9996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9997
  (eval "$ac_link") 2>conftest.er1
 
9998
  ac_status=$?
 
9999
  grep -v '^ *+' conftest.er1 >conftest.err
 
10000
  rm -f conftest.er1
 
10001
  cat conftest.err >&5
 
10002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10003
  (exit $ac_status); } && {
 
10004
         test -z "$ac_c_werror_flag" ||
 
10005
         test ! -s conftest.err
 
10006
       } && test -s conftest$ac_exeext &&
 
10007
       $as_test_x conftest$ac_exeext; then
 
10008
  ac_cv_lib_dld_dld_link=yes
 
10009
else
 
10010
  echo "$as_me: failed program was:" >&5
 
10011
sed 's/^/| /' conftest.$ac_ext >&5
 
10012
 
 
10013
        ac_cv_lib_dld_dld_link=no
 
10014
fi
 
10015
 
 
10016
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10017
      conftest$ac_exeext conftest.$ac_ext
 
10018
LIBS=$ac_check_lib_save_LIBS
 
10019
fi
 
10020
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10021
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
10022
if test $ac_cv_lib_dld_dld_link = yes; then
 
10023
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10024
fi
 
10025
 
 
10026
 
 
10027
fi
 
10028
 
 
10029
 
 
10030
fi
 
10031
 
 
10032
 
 
10033
fi
 
10034
 
 
10035
 
 
10036
fi
 
10037
 
 
10038
 
 
10039
fi
 
10040
 
 
10041
    ;;
 
10042
  esac
 
10043
 
 
10044
  if test "x$lt_cv_dlopen" != xno; then
 
10045
    enable_dlopen=yes
 
10046
  else
 
10047
    enable_dlopen=no
 
10048
  fi
 
10049
 
 
10050
  case $lt_cv_dlopen in
 
10051
  dlopen)
 
10052
    save_CPPFLAGS="$CPPFLAGS"
 
10053
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10054
 
 
10055
    save_LDFLAGS="$LDFLAGS"
 
10056
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10057
 
 
10058
    save_LIBS="$LIBS"
 
10059
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10060
 
 
10061
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10062
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
10063
if test "${lt_cv_dlopen_self+set}" = set; then
 
10064
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10065
else
 
10066
          if test "$cross_compiling" = yes; then :
 
10067
  lt_cv_dlopen_self=cross
 
10068
else
 
10069
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10070
  lt_status=$lt_dlunknown
 
10071
  cat > conftest.$ac_ext <<EOF
 
10072
#line 10072 "configure"
 
10073
#include "confdefs.h"
 
10074
 
 
10075
#if HAVE_DLFCN_H
 
10076
#include <dlfcn.h>
 
10077
#endif
 
10078
 
 
10079
#include <stdio.h>
 
10080
 
 
10081
#ifdef RTLD_GLOBAL
 
10082
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10083
#else
 
10084
#  ifdef DL_GLOBAL
 
10085
#    define LT_DLGLOBAL         DL_GLOBAL
 
10086
#  else
 
10087
#    define LT_DLGLOBAL         0
 
10088
#  endif
 
10089
#endif
 
10090
 
 
10091
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10092
   find out it does not work in some platform. */
 
10093
#ifndef LT_DLLAZY_OR_NOW
 
10094
#  ifdef RTLD_LAZY
 
10095
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10096
#  else
 
10097
#    ifdef DL_LAZY
 
10098
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10099
#    else
 
10100
#      ifdef RTLD_NOW
 
10101
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10102
#      else
 
10103
#        ifdef DL_NOW
 
10104
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10105
#        else
 
10106
#          define LT_DLLAZY_OR_NOW      0
 
10107
#        endif
 
10108
#      endif
 
10109
#    endif
 
10110
#  endif
 
10111
#endif
 
10112
 
 
10113
#ifdef __cplusplus
 
10114
extern "C" void exit (int);
 
10115
#endif
 
10116
 
 
10117
void fnord() { int i=42;}
 
10118
int main ()
 
10119
{
 
10120
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10121
  int status = $lt_dlunknown;
 
10122
 
 
10123
  if (self)
 
10124
    {
 
10125
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10126
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10127
      /* dlclose (self); */
 
10128
    }
 
10129
  else
 
10130
    puts (dlerror ());
 
10131
 
 
10132
    exit (status);
 
10133
}
 
10134
EOF
 
10135
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10136
  (eval $ac_link) 2>&5
 
10137
  ac_status=$?
 
10138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10139
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10140
    (./conftest; exit; ) >&5 2>/dev/null
 
10141
    lt_status=$?
 
10142
    case x$lt_status in
 
10143
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10144
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10145
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10146
    esac
 
10147
  else :
 
10148
    # compilation failed
 
10149
    lt_cv_dlopen_self=no
 
10150
  fi
 
10151
fi
 
10152
rm -fr conftest*
 
10153
 
 
10154
 
 
10155
fi
 
10156
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10157
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10158
 
 
10159
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10160
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10161
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10162
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10163
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10164
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10165
else
 
10166
          if test "$cross_compiling" = yes; then :
 
10167
  lt_cv_dlopen_self_static=cross
 
10168
else
 
10169
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10170
  lt_status=$lt_dlunknown
 
10171
  cat > conftest.$ac_ext <<EOF
 
10172
#line 10172 "configure"
 
10173
#include "confdefs.h"
 
10174
 
 
10175
#if HAVE_DLFCN_H
 
10176
#include <dlfcn.h>
 
10177
#endif
 
10178
 
 
10179
#include <stdio.h>
 
10180
 
 
10181
#ifdef RTLD_GLOBAL
 
10182
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10183
#else
 
10184
#  ifdef DL_GLOBAL
 
10185
#    define LT_DLGLOBAL         DL_GLOBAL
 
10186
#  else
 
10187
#    define LT_DLGLOBAL         0
 
10188
#  endif
 
10189
#endif
 
10190
 
 
10191
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10192
   find out it does not work in some platform. */
 
10193
#ifndef LT_DLLAZY_OR_NOW
 
10194
#  ifdef RTLD_LAZY
 
10195
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10196
#  else
 
10197
#    ifdef DL_LAZY
 
10198
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10199
#    else
 
10200
#      ifdef RTLD_NOW
 
10201
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10202
#      else
 
10203
#        ifdef DL_NOW
 
10204
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10205
#        else
 
10206
#          define LT_DLLAZY_OR_NOW      0
 
10207
#        endif
 
10208
#      endif
 
10209
#    endif
 
10210
#  endif
 
10211
#endif
 
10212
 
 
10213
#ifdef __cplusplus
 
10214
extern "C" void exit (int);
 
10215
#endif
 
10216
 
 
10217
void fnord() { int i=42;}
 
10218
int main ()
 
10219
{
 
10220
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10221
  int status = $lt_dlunknown;
 
10222
 
 
10223
  if (self)
 
10224
    {
 
10225
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10226
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10227
      /* dlclose (self); */
 
10228
    }
 
10229
  else
 
10230
    puts (dlerror ());
 
10231
 
 
10232
    exit (status);
 
10233
}
 
10234
EOF
 
10235
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10236
  (eval $ac_link) 2>&5
 
10237
  ac_status=$?
 
10238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10239
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10240
    (./conftest; exit; ) >&5 2>/dev/null
 
10241
    lt_status=$?
 
10242
    case x$lt_status in
 
10243
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10244
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10245
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10246
    esac
 
10247
  else :
 
10248
    # compilation failed
 
10249
    lt_cv_dlopen_self_static=no
 
10250
  fi
 
10251
fi
 
10252
rm -fr conftest*
 
10253
 
 
10254
 
 
10255
fi
 
10256
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10257
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10258
    fi
 
10259
 
 
10260
    CPPFLAGS="$save_CPPFLAGS"
 
10261
    LDFLAGS="$save_LDFLAGS"
 
10262
    LIBS="$save_LIBS"
 
10263
    ;;
 
10264
  esac
 
10265
 
 
10266
  case $lt_cv_dlopen_self in
 
10267
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10268
  *) enable_dlopen_self=unknown ;;
 
10269
  esac
 
10270
 
 
10271
  case $lt_cv_dlopen_self_static in
 
10272
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10273
  *) enable_dlopen_self_static=unknown ;;
 
10274
  esac
 
10275
fi
 
10276
 
 
10277
 
 
10278
# Report which library types will actually be built
 
10279
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10280
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10281
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10282
echo "${ECHO_T}$can_build_shared" >&6; }
 
10283
 
 
10284
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10285
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10286
test "$can_build_shared" = "no" && enable_shared=no
 
10287
 
 
10288
# On AIX, shared libraries and static libraries use the same namespace, and
 
10289
# are all built from PIC.
 
10290
case $host_os in
 
10291
aix3*)
 
10292
  test "$enable_shared" = yes && enable_static=no
 
10293
  if test -n "$RANLIB"; then
 
10294
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10295
    postinstall_cmds='$RANLIB $lib'
 
10296
  fi
 
10297
  ;;
 
10298
 
 
10299
aix4* | aix5*)
 
10300
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10301
    test "$enable_shared" = yes && enable_static=no
 
10302
  fi
 
10303
    ;;
 
10304
esac
 
10305
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10306
echo "${ECHO_T}$enable_shared" >&6; }
 
10307
 
 
10308
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10309
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10310
# Make sure either enable_shared or enable_static is yes.
 
10311
test "$enable_shared" = yes || enable_static=yes
 
10312
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10313
echo "${ECHO_T}$enable_static" >&6; }
 
10314
 
 
10315
# The else clause should only fire when bootstrapping the
 
10316
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10317
# with your package, and you will get complaints that there are
 
10318
# no rules to generate ltmain.sh.
 
10319
if test -f "$ltmain"; then
 
10320
  # See if we are running on zsh, and set the options which allow our commands through
 
10321
  # without removal of \ escapes.
 
10322
  if test -n "${ZSH_VERSION+set}" ; then
 
10323
    setopt NO_GLOB_SUBST
 
10324
  fi
 
10325
  # Now quote all the things that may contain metacharacters while being
 
10326
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10327
  # variables and quote the copies for generation of the libtool script.
 
10328
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10329
    SED SHELL STRIP \
 
10330
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10331
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10332
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10333
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10334
    lt_cv_sys_global_symbol_to_c_name_address \
 
10335
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10336
    old_postinstall_cmds old_postuninstall_cmds \
 
10337
    compiler \
 
10338
    CC \
 
10339
    LD \
 
10340
    lt_prog_compiler_wl \
 
10341
    lt_prog_compiler_pic \
 
10342
    lt_prog_compiler_static \
 
10343
    lt_prog_compiler_no_builtin_flag \
 
10344
    export_dynamic_flag_spec \
 
10345
    thread_safe_flag_spec \
 
10346
    whole_archive_flag_spec \
 
10347
    enable_shared_with_static_runtimes \
 
10348
    old_archive_cmds \
 
10349
    old_archive_from_new_cmds \
 
10350
    predep_objects \
 
10351
    postdep_objects \
 
10352
    predeps \
 
10353
    postdeps \
 
10354
    compiler_lib_search_path \
 
10355
    archive_cmds \
 
10356
    archive_expsym_cmds \
 
10357
    postinstall_cmds \
 
10358
    postuninstall_cmds \
 
10359
    old_archive_from_expsyms_cmds \
 
10360
    allow_undefined_flag \
 
10361
    no_undefined_flag \
 
10362
    export_symbols_cmds \
 
10363
    hardcode_libdir_flag_spec \
 
10364
    hardcode_libdir_flag_spec_ld \
 
10365
    hardcode_libdir_separator \
 
10366
    hardcode_automatic \
 
10367
    module_cmds \
 
10368
    module_expsym_cmds \
 
10369
    lt_cv_prog_compiler_c_o \
 
10370
    fix_srcfile_path \
 
10371
    exclude_expsyms \
 
10372
    include_expsyms; do
 
10373
 
 
10374
    case $var in
 
10375
    old_archive_cmds | \
 
10376
    old_archive_from_new_cmds | \
 
10377
    archive_cmds | \
 
10378
    archive_expsym_cmds | \
 
10379
    module_cmds | \
 
10380
    module_expsym_cmds | \
 
10381
    old_archive_from_expsyms_cmds | \
 
10382
    export_symbols_cmds | \
 
10383
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10384
    postinstall_cmds | postuninstall_cmds | \
 
10385
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10386
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10387
      # Double-quote double-evaled strings.
 
10388
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10389
      ;;
 
10390
    *)
 
10391
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10392
      ;;
 
10393
    esac
 
10394
  done
 
10395
 
 
10396
  case $lt_echo in
 
10397
  *'\$0 --fallback-echo"')
 
10398
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10399
    ;;
 
10400
  esac
 
10401
 
 
10402
cfgfile="${ofile}T"
 
10403
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10404
  $rm -f "$cfgfile"
 
10405
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10406
echo "$as_me: creating $ofile" >&6;}
 
10407
 
 
10408
  cat <<__EOF__ >> "$cfgfile"
 
10409
#! $SHELL
 
10410
 
 
10411
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10412
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10413
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10414
#
 
10415
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
10416
# Free Software Foundation, Inc.
 
10417
#
 
10418
# This file is part of GNU Libtool:
 
10419
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10420
#
 
10421
# This program is free software; you can redistribute it and/or modify
 
10422
# it under the terms of the GNU General Public License as published by
 
10423
# the Free Software Foundation; either version 2 of the License, or
 
10424
# (at your option) any later version.
 
10425
#
 
10426
# This program is distributed in the hope that it will be useful, but
 
10427
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10428
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10429
# General Public License for more details.
 
10430
#
 
10431
# You should have received a copy of the GNU General Public License
 
10432
# along with this program; if not, write to the Free Software
 
10433
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10434
#
 
10435
# As a special exception to the GNU General Public License, if you
 
10436
# distribute this file as part of a program that contains a
 
10437
# configuration script generated by Autoconf, you may include it under
 
10438
# the same distribution terms that you use for the rest of that program.
 
10439
 
 
10440
# A sed program that does not truncate output.
 
10441
SED=$lt_SED
 
10442
 
 
10443
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10444
Xsed="$SED -e 1s/^X//"
 
10445
 
 
10446
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10447
# if CDPATH is set.
 
10448
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10449
 
 
10450
# The names of the tagged configurations supported by this script.
 
10451
available_tags=
 
10452
 
 
10453
# ### BEGIN LIBTOOL CONFIG
 
10454
 
 
10455
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10456
 
 
10457
# Shell to use when invoking shell scripts.
 
10458
SHELL=$lt_SHELL
 
10459
 
 
10460
# Whether or not to build shared libraries.
 
10461
build_libtool_libs=$enable_shared
 
10462
 
 
10463
# Whether or not to build static libraries.
 
10464
build_old_libs=$enable_static
 
10465
 
 
10466
# Whether or not to add -lc for building shared libraries.
 
10467
build_libtool_need_lc=$archive_cmds_need_lc
 
10468
 
 
10469
# Whether or not to disallow shared libs when runtime libs are static
 
10470
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10471
 
 
10472
# Whether or not to optimize for fast installation.
 
10473
fast_install=$enable_fast_install
 
10474
 
 
10475
# The host system.
 
10476
host_alias=$host_alias
 
10477
host=$host
 
10478
host_os=$host_os
 
10479
 
 
10480
# The build system.
 
10481
build_alias=$build_alias
 
10482
build=$build
 
10483
build_os=$build_os
 
10484
 
 
10485
# An echo program that does not interpret backslashes.
 
10486
echo=$lt_echo
 
10487
 
 
10488
# The archiver.
 
10489
AR=$lt_AR
 
10490
AR_FLAGS=$lt_AR_FLAGS
 
10491
 
 
10492
# A C compiler.
 
10493
LTCC=$lt_LTCC
 
10494
 
 
10495
# LTCC compiler flags.
 
10496
LTCFLAGS=$lt_LTCFLAGS
 
10497
 
 
10498
# A language-specific compiler.
 
10499
CC=$lt_compiler
 
10500
 
 
10501
# Is the compiler the GNU C compiler?
 
10502
with_gcc=$GCC
 
10503
 
 
10504
# An ERE matcher.
 
10505
EGREP=$lt_EGREP
 
10506
 
 
10507
# The linker used to build libraries.
 
10508
LD=$lt_LD
 
10509
 
 
10510
# Whether we need hard or soft links.
 
10511
LN_S=$lt_LN_S
 
10512
 
 
10513
# A BSD-compatible nm program.
 
10514
NM=$lt_NM
 
10515
 
 
10516
# A symbol stripping program
 
10517
STRIP=$lt_STRIP
 
10518
 
 
10519
# Used to examine libraries when file_magic_cmd begins "file"
 
10520
MAGIC_CMD=$MAGIC_CMD
 
10521
 
 
10522
# Used on cygwin: DLL creation program.
 
10523
DLLTOOL="$DLLTOOL"
 
10524
 
 
10525
# Used on cygwin: object dumper.
 
10526
OBJDUMP="$OBJDUMP"
 
10527
 
 
10528
# Used on cygwin: assembler.
 
10529
AS="$AS"
 
10530
 
 
10531
# The name of the directory that contains temporary libtool files.
 
10532
objdir=$objdir
 
10533
 
 
10534
# How to create reloadable object files.
 
10535
reload_flag=$lt_reload_flag
 
10536
reload_cmds=$lt_reload_cmds
 
10537
 
 
10538
# How to pass a linker flag through the compiler.
 
10539
wl=$lt_lt_prog_compiler_wl
 
10540
 
 
10541
# Object file suffix (normally "o").
 
10542
objext="$ac_objext"
 
10543
 
 
10544
# Old archive suffix (normally "a").
 
10545
libext="$libext"
 
10546
 
 
10547
# Shared library suffix (normally ".so").
 
10548
shrext_cmds='$shrext_cmds'
 
10549
 
 
10550
# Executable file suffix (normally "").
 
10551
exeext="$exeext"
 
10552
 
 
10553
# Additional compiler flags for building library objects.
 
10554
pic_flag=$lt_lt_prog_compiler_pic
 
10555
pic_mode=$pic_mode
 
10556
 
 
10557
# What is the maximum length of a command?
 
10558
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10559
 
 
10560
# Does compiler simultaneously support -c and -o options?
 
10561
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10562
 
 
10563
# Must we lock files when doing compilation?
 
10564
need_locks=$lt_need_locks
 
10565
 
 
10566
# Do we need the lib prefix for modules?
 
10567
need_lib_prefix=$need_lib_prefix
 
10568
 
 
10569
# Do we need a version for libraries?
 
10570
need_version=$need_version
 
10571
 
 
10572
# Whether dlopen is supported.
 
10573
dlopen_support=$enable_dlopen
 
10574
 
 
10575
# Whether dlopen of programs is supported.
 
10576
dlopen_self=$enable_dlopen_self
 
10577
 
 
10578
# Whether dlopen of statically linked programs is supported.
 
10579
dlopen_self_static=$enable_dlopen_self_static
 
10580
 
 
10581
# Compiler flag to prevent dynamic linking.
 
10582
link_static_flag=$lt_lt_prog_compiler_static
 
10583
 
 
10584
# Compiler flag to turn off builtin functions.
 
10585
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10586
 
 
10587
# Compiler flag to allow reflexive dlopens.
 
10588
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10589
 
 
10590
# Compiler flag to generate shared objects directly from archives.
 
10591
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10592
 
 
10593
# Compiler flag to generate thread-safe objects.
 
10594
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10595
 
 
10596
# Library versioning type.
 
10597
version_type=$version_type
 
10598
 
 
10599
# Format of library name prefix.
 
10600
libname_spec=$lt_libname_spec
 
10601
 
 
10602
# List of archive names.  First name is the real one, the rest are links.
 
10603
# The last name is the one that the linker finds with -lNAME.
 
10604
library_names_spec=$lt_library_names_spec
 
10605
 
 
10606
# The coded name of the library, if different from the real name.
 
10607
soname_spec=$lt_soname_spec
 
10608
 
 
10609
# Commands used to build and install an old-style archive.
 
10610
RANLIB=$lt_RANLIB
 
10611
old_archive_cmds=$lt_old_archive_cmds
 
10612
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10613
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10614
 
 
10615
# Create an old-style archive from a shared archive.
 
10616
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10617
 
 
10618
# Create a temporary old-style archive to link instead of a shared archive.
 
10619
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10620
 
 
10621
# Commands used to build and install a shared archive.
 
10622
archive_cmds=$lt_archive_cmds
 
10623
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10624
postinstall_cmds=$lt_postinstall_cmds
 
10625
postuninstall_cmds=$lt_postuninstall_cmds
 
10626
 
 
10627
# Commands used to build a loadable module (assumed same as above if empty)
 
10628
module_cmds=$lt_module_cmds
 
10629
module_expsym_cmds=$lt_module_expsym_cmds
 
10630
 
 
10631
# Commands to strip libraries.
 
10632
old_striplib=$lt_old_striplib
 
10633
striplib=$lt_striplib
 
10634
 
 
10635
# Dependencies to place before the objects being linked to create a
 
10636
# shared library.
 
10637
predep_objects=$lt_predep_objects
 
10638
 
 
10639
# Dependencies to place after the objects being linked to create a
 
10640
# shared library.
 
10641
postdep_objects=$lt_postdep_objects
 
10642
 
 
10643
# Dependencies to place before the objects being linked to create a
 
10644
# shared library.
 
10645
predeps=$lt_predeps
 
10646
 
 
10647
# Dependencies to place after the objects being linked to create a
 
10648
# shared library.
 
10649
postdeps=$lt_postdeps
 
10650
 
 
10651
# The library search path used internally by the compiler when linking
 
10652
# a shared library.
 
10653
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10654
 
 
10655
# Method to check whether dependent libraries are shared objects.
 
10656
deplibs_check_method=$lt_deplibs_check_method
 
10657
 
 
10658
# Command to use when deplibs_check_method == file_magic.
 
10659
file_magic_cmd=$lt_file_magic_cmd
 
10660
 
 
10661
# Flag that allows shared libraries with undefined symbols to be built.
 
10662
allow_undefined_flag=$lt_allow_undefined_flag
 
10663
 
 
10664
# Flag that forces no undefined symbols.
 
10665
no_undefined_flag=$lt_no_undefined_flag
 
10666
 
 
10667
# Commands used to finish a libtool library installation in a directory.
 
10668
finish_cmds=$lt_finish_cmds
 
10669
 
 
10670
# Same as above, but a single script fragment to be evaled but not shown.
 
10671
finish_eval=$lt_finish_eval
 
10672
 
 
10673
# Take the output of nm and produce a listing of raw symbols and C names.
 
10674
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10675
 
 
10676
# Transform the output of nm in a proper C declaration
 
10677
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10678
 
 
10679
# Transform the output of nm in a C name address pair
 
10680
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10681
 
 
10682
# This is the shared library runtime path variable.
 
10683
runpath_var=$runpath_var
 
10684
 
 
10685
# This is the shared library path variable.
 
10686
shlibpath_var=$shlibpath_var
 
10687
 
 
10688
# Is shlibpath searched before the hard-coded library search path?
 
10689
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10690
 
 
10691
# How to hardcode a shared library path into an executable.
 
10692
hardcode_action=$hardcode_action
 
10693
 
 
10694
# Whether we should hardcode library paths into libraries.
 
10695
hardcode_into_libs=$hardcode_into_libs
 
10696
 
 
10697
# Flag to hardcode \$libdir into a binary during linking.
 
10698
# This must work even if \$libdir does not exist.
 
10699
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10700
 
 
10701
# If ld is used when linking, flag to hardcode \$libdir into
 
10702
# a binary during linking. This must work even if \$libdir does
 
10703
# not exist.
 
10704
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10705
 
 
10706
# Whether we need a single -rpath flag with a separated argument.
 
10707
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10708
 
 
10709
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10710
# resulting binary.
 
10711
hardcode_direct=$hardcode_direct
 
10712
 
 
10713
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10714
# resulting binary.
 
10715
hardcode_minus_L=$hardcode_minus_L
 
10716
 
 
10717
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10718
# the resulting binary.
 
10719
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10720
 
 
10721
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10722
# and all subsequent libraries and executables linked against it.
 
10723
hardcode_automatic=$hardcode_automatic
 
10724
 
 
10725
# Variables whose values should be saved in libtool wrapper scripts and
 
10726
# restored at relink time.
 
10727
variables_saved_for_relink="$variables_saved_for_relink"
 
10728
 
 
10729
# Whether libtool must link a program against all its dependency libraries.
 
10730
link_all_deplibs=$link_all_deplibs
 
10731
 
 
10732
# Compile-time system search path for libraries
 
10733
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10734
 
 
10735
# Run-time system search path for libraries
 
10736
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10737
 
 
10738
# Fix the shell variable \$srcfile for the compiler.
 
10739
fix_srcfile_path=$lt_fix_srcfile_path
 
10740
 
 
10741
# Set to yes if exported symbols are required.
 
10742
always_export_symbols=$always_export_symbols
 
10743
 
 
10744
# The commands to list exported symbols.
 
10745
export_symbols_cmds=$lt_export_symbols_cmds
 
10746
 
 
10747
# The commands to extract the exported symbol list from a shared archive.
 
10748
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10749
 
 
10750
# Symbols that should not be listed in the preloaded symbols.
 
10751
exclude_expsyms=$lt_exclude_expsyms
 
10752
 
 
10753
# Symbols that must always be exported.
 
10754
include_expsyms=$lt_include_expsyms
 
10755
 
 
10756
# ### END LIBTOOL CONFIG
 
10757
 
 
10758
__EOF__
 
10759
 
 
10760
 
 
10761
  case $host_os in
 
10762
  aix3*)
 
10763
    cat <<\EOF >> "$cfgfile"
 
10764
 
 
10765
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10766
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10767
# vanish in a puff of smoke.
 
10768
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10769
  COLLECT_NAMES=
 
10770
  export COLLECT_NAMES
 
10771
fi
 
10772
EOF
 
10773
    ;;
 
10774
  esac
 
10775
 
 
10776
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10777
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10778
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10779
  # is reportedly fixed, but why not run on old versions too?
 
10780
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10781
 
 
10782
  mv -f "$cfgfile" "$ofile" || \
 
10783
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10784
  chmod +x "$ofile"
 
10785
 
 
10786
else
 
10787
  # If there is no Makefile yet, we rely on a make rule to execute
 
10788
  # `config.status --recheck' to rerun these tests and create the
 
10789
  # libtool script then.
 
10790
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10791
  if test -f "$ltmain_in"; then
 
10792
    test -f Makefile && make "$ltmain"
 
10793
  fi
 
10794
fi
 
10795
 
 
10796
 
 
10797
ac_ext=c
 
10798
ac_cpp='$CPP $CPPFLAGS'
 
10799
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10800
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10801
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10802
 
 
10803
CC="$lt_save_CC"
 
10804
 
 
10805
 
 
10806
# Check whether --with-tags was given.
 
10807
if test "${with_tags+set}" = set; then
 
10808
  withval=$with_tags; tagnames="$withval"
 
10809
fi
 
10810
 
 
10811
 
 
10812
if test -f "$ltmain" && test -n "$tagnames"; then
 
10813
  if test ! -f "${ofile}"; then
 
10814
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10815
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10816
  fi
 
10817
 
 
10818
  if test -z "$LTCC"; then
 
10819
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10820
    if test -z "$LTCC"; then
 
10821
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10822
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10823
    else
 
10824
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10825
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10826
    fi
 
10827
  fi
 
10828
  if test -z "$LTCFLAGS"; then
 
10829
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10830
  fi
 
10831
 
 
10832
  # Extract list of available tagged configurations in $ofile.
 
10833
  # Note that this assumes the entire list is on one line.
 
10834
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10835
 
 
10836
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10837
  for tagname in $tagnames; do
 
10838
    IFS="$lt_save_ifs"
 
10839
    # Check whether tagname contains only valid characters
 
10840
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10841
    "") ;;
 
10842
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10843
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10844
   { (exit 1); exit 1; }; }
 
10845
        ;;
 
10846
    esac
 
10847
 
 
10848
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10849
    then
 
10850
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10851
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10852
   { (exit 1); exit 1; }; }
 
10853
    fi
 
10854
 
 
10855
    # Update the list of available tags.
 
10856
    if test -n "$tagname"; then
 
10857
      echo appending configuration tag \"$tagname\" to $ofile
 
10858
 
 
10859
      case $tagname in
 
10860
      CXX)
 
10861
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10862
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10863
            (test "X$CXX" != "Xg++"))) ; then
 
10864
          ac_ext=cpp
 
10865
ac_cpp='$CXXCPP $CPPFLAGS'
 
10866
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10867
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10868
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10869
 
 
10870
 
 
10871
 
 
10872
 
 
10873
archive_cmds_need_lc_CXX=no
 
10874
allow_undefined_flag_CXX=
 
10875
always_export_symbols_CXX=no
 
10876
archive_expsym_cmds_CXX=
 
10877
export_dynamic_flag_spec_CXX=
 
10878
hardcode_direct_CXX=no
 
10879
hardcode_libdir_flag_spec_CXX=
 
10880
hardcode_libdir_flag_spec_ld_CXX=
 
10881
hardcode_libdir_separator_CXX=
 
10882
hardcode_minus_L_CXX=no
 
10883
hardcode_shlibpath_var_CXX=unsupported
 
10884
hardcode_automatic_CXX=no
 
10885
module_cmds_CXX=
 
10886
module_expsym_cmds_CXX=
 
10887
link_all_deplibs_CXX=unknown
 
10888
old_archive_cmds_CXX=$old_archive_cmds
 
10889
no_undefined_flag_CXX=
 
10890
whole_archive_flag_spec_CXX=
 
10891
enable_shared_with_static_runtimes_CXX=no
 
10892
 
 
10893
# Dependencies to place before and after the object being linked:
 
10894
predep_objects_CXX=
 
10895
postdep_objects_CXX=
 
10896
predeps_CXX=
 
10897
postdeps_CXX=
 
10898
compiler_lib_search_path_CXX=
 
10899
 
 
10900
# Source file extension for C++ test sources.
 
10901
ac_ext=cpp
 
10902
 
 
10903
# Object file extension for compiled C++ test sources.
 
10904
objext=o
 
10905
objext_CXX=$objext
 
10906
 
 
10907
# Code to be used in simple compile tests
 
10908
lt_simple_compile_test_code="int some_variable = 0;"
 
10909
 
 
10910
# Code to be used in simple link tests
 
10911
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
10912
 
 
10913
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10914
 
 
10915
# If no C compiler was specified, use CC.
 
10916
LTCC=${LTCC-"$CC"}
 
10917
 
 
10918
# If no C compiler flags were specified, use CFLAGS.
 
10919
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10920
 
 
10921
# Allow CC to be a program name with arguments.
 
10922
compiler=$CC
 
10923
 
 
10924
 
 
10925
# save warnings/boilerplate of simple test code
 
10926
ac_outfile=conftest.$ac_objext
 
10927
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10928
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10929
_lt_compiler_boilerplate=`cat conftest.err`
 
10930
$rm conftest*
 
10931
 
 
10932
ac_outfile=conftest.$ac_objext
 
10933
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
10934
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10935
_lt_linker_boilerplate=`cat conftest.err`
 
10936
$rm conftest*
 
10937
 
 
10938
 
 
10939
# Allow CC to be a program name with arguments.
 
10940
lt_save_CC=$CC
 
10941
lt_save_LD=$LD
 
10942
lt_save_GCC=$GCC
 
10943
GCC=$GXX
 
10944
lt_save_with_gnu_ld=$with_gnu_ld
 
10945
lt_save_path_LD=$lt_cv_path_LD
 
10946
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10947
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10948
else
 
10949
  $as_unset lt_cv_prog_gnu_ld
 
10950
fi
 
10951
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10952
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10953
else
 
10954
  $as_unset lt_cv_path_LD
 
10955
fi
 
10956
test -z "${LDCXX+set}" || LD=$LDCXX
 
10957
CC=${CXX-"c++"}
 
10958
compiler=$CC
 
10959
compiler_CXX=$CC
 
10960
for cc_temp in $compiler""; do
 
10961
  case $cc_temp in
 
10962
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10963
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10964
    \-*) ;;
 
10965
    *) break;;
 
10966
  esac
 
10967
done
 
10968
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10969
 
 
10970
 
 
10971
# We don't want -fno-exception wen compiling C++ code, so set the
 
10972
# no_builtin_flag separately
 
10973
if test "$GXX" = yes; then
 
10974
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10975
else
 
10976
  lt_prog_compiler_no_builtin_flag_CXX=
 
10977
fi
 
10978
 
 
10979
if test "$GXX" = yes; then
 
10980
  # Set up default GNU C++ configuration
 
10981
 
 
10982
 
 
10983
# Check whether --with-gnu-ld was given.
 
10984
if test "${with_gnu_ld+set}" = set; then
 
10985
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
10986
else
 
10987
  with_gnu_ld=no
 
10988
fi
 
10989
 
 
10990
ac_prog=ld
 
10991
if test "$GCC" = yes; then
 
10992
  # Check if gcc -print-prog-name=ld gives a path.
 
10993
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10994
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
10995
  case $host in
 
10996
  *-*-mingw*)
 
10997
    # gcc leaves a trailing carriage return which upsets mingw
 
10998
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10999
  *)
 
11000
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11001
  esac
 
11002
  case $ac_prog in
 
11003
    # Accept absolute paths.
 
11004
    [\\/]* | ?:[\\/]*)
 
11005
      re_direlt='/[^/][^/]*/\.\./'
 
11006
      # Canonicalize the pathname of ld
 
11007
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11008
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11009
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4029
11010
      done
4030
 
    done
4031
 
    ;;
4032
 
esac
4033
 
done
4034
 
IFS=$as_save_IFS
4035
 
 
4036
 
 
4037
 
fi
4038
 
  if test "${ac_cv_path_install+set}" = set; then
4039
 
    INSTALL=$ac_cv_path_install
4040
 
  else
4041
 
    # As a last resort, use the slow shell script.  Don't cache a
4042
 
    # value for INSTALL within a source directory, because that will
4043
 
    # break other packages using the cache if that directory is
4044
 
    # removed, or if the value is a relative name.
4045
 
    INSTALL=$ac_install_sh
4046
 
  fi
4047
 
fi
4048
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4049
 
echo "${ECHO_T}$INSTALL" >&6; }
4050
 
 
4051
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4052
 
# It thinks the first close brace ends the variable substitution.
4053
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4054
 
 
4055
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4056
 
 
4057
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4058
 
 
4059
 
# Extract the first word of "help2man", so it can be a program name with args.
4060
 
set dummy help2man; ac_word=$2
4061
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4062
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4063
 
if test "${ac_cv_path_HELP2MAN+set}" = set; then
 
11011
      test -z "$LD" && LD="$ac_prog"
 
11012
      ;;
 
11013
  "")
 
11014
    # If it fails, then pretend we aren't using GCC.
 
11015
    ac_prog=ld
 
11016
    ;;
 
11017
  *)
 
11018
    # If it is relative, then search for the first ld in PATH.
 
11019
    with_gnu_ld=unknown
 
11020
    ;;
 
11021
  esac
 
11022
elif test "$with_gnu_ld" = yes; then
 
11023
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11024
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11025
else
 
11026
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11027
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11028
fi
 
11029
if test "${lt_cv_path_LD+set}" = set; then
4064
11030
  echo $ECHO_N "(cached) $ECHO_C" >&6
4065
11031
else
4066
 
  case $HELP2MAN in
4067
 
  [\\/]* | ?:[\\/]*)
4068
 
  ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
4069
 
  ;;
4070
 
  *)
4071
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072
 
for as_dir in $PATH
4073
 
do
4074
 
  IFS=$as_save_IFS
4075
 
  test -z "$as_dir" && as_dir=.
4076
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4077
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078
 
    ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
4079
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080
 
    break 2
4081
 
  fi
4082
 
done
4083
 
done
4084
 
IFS=$as_save_IFS
 
11032
  if test -z "$LD"; then
 
11033
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11034
  for ac_dir in $PATH; do
 
11035
    IFS="$lt_save_ifs"
 
11036
    test -z "$ac_dir" && ac_dir=.
 
11037
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11038
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11039
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11040
      # but apparently some variants of GNU ld only accept -v.
 
11041
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11042
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11043
      *GNU* | *'with BFD'*)
 
11044
        test "$with_gnu_ld" != no && break
 
11045
        ;;
 
11046
      *)
 
11047
        test "$with_gnu_ld" != yes && break
 
11048
        ;;
 
11049
      esac
 
11050
    fi
 
11051
  done
 
11052
  IFS="$lt_save_ifs"
 
11053
else
 
11054
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11055
fi
 
11056
fi
4085
11057
 
4086
 
  test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="{ { echo "$as_me:$LINENO: error: Cannot find help2man" >&5
4087
 
echo "$as_me: error: Cannot find help2man" >&2;}
4088
 
   { (exit 1); exit 1; }; }"
4089
 
  ;;
4090
 
esac
4091
 
fi
4092
 
HELP2MAN=$ac_cv_path_HELP2MAN
4093
 
if test -n "$HELP2MAN"; then
4094
 
  { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
4095
 
echo "${ECHO_T}$HELP2MAN" >&6; }
 
11058
LD="$lt_cv_path_LD"
 
11059
if test -n "$LD"; then
 
11060
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11061
echo "${ECHO_T}$LD" >&6; }
4096
11062
else
4097
11063
  { echo "$as_me:$LINENO: result: no" >&5
4098
11064
echo "${ECHO_T}no" >&6; }
4099
11065
fi
 
11066
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11067
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11068
   { (exit 1); exit 1; }; }
 
11069
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11070
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
11071
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11073
else
 
11074
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11075
case `$LD -v 2>&1 </dev/null` in
 
11076
*GNU* | *'with BFD'*)
 
11077
  lt_cv_prog_gnu_ld=yes
 
11078
  ;;
 
11079
*)
 
11080
  lt_cv_prog_gnu_ld=no
 
11081
  ;;
 
11082
esac
 
11083
fi
 
11084
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11085
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
11086
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11087
 
 
11088
 
 
11089
 
 
11090
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11091
  # archiving commands below assume that GNU ld is being used.
 
11092
  if test "$with_gnu_ld" = yes; then
 
11093
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11094
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11095
 
 
11096
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11097
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11098
 
 
11099
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11100
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11101
    #     investigate it a little bit more. (MM)
 
11102
    wlarc='${wl}'
 
11103
 
 
11104
    # ancient GNU ld didn't support --whole-archive et. al.
 
11105
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11106
        grep 'no-whole-archive' > /dev/null; then
 
11107
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11108
    else
 
11109
      whole_archive_flag_spec_CXX=
 
11110
    fi
 
11111
  else
 
11112
    with_gnu_ld=no
 
11113
    wlarc=
 
11114
 
 
11115
    # A generic and very simple default shared library creation
 
11116
    # command for GNU C++ for the case where it uses the native
 
11117
    # linker, instead of GNU ld.  If possible, this setting should
 
11118
    # overridden to take advantage of the native linker features on
 
11119
    # the platform it is being used on.
 
11120
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11121
  fi
 
11122
 
 
11123
  # Commands to make compiler produce verbose output that lists
 
11124
  # what "hidden" libraries, object files and flags are used when
 
11125
  # linking a shared library.
 
11126
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11127
 
 
11128
else
 
11129
  GXX=no
 
11130
  with_gnu_ld=no
 
11131
  wlarc=
 
11132
fi
 
11133
 
 
11134
# PORTME: fill in a description of your system's C++ link characteristics
 
11135
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11136
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11137
ld_shlibs_CXX=yes
 
11138
case $host_os in
 
11139
  aix3*)
 
11140
    # FIXME: insert proper C++ library support
 
11141
    ld_shlibs_CXX=no
 
11142
    ;;
 
11143
  aix4* | aix5*)
 
11144
    if test "$host_cpu" = ia64; then
 
11145
      # On IA64, the linker does run time linking by default, so we don't
 
11146
      # have to do anything special.
 
11147
      aix_use_runtimelinking=no
 
11148
      exp_sym_flag='-Bexport'
 
11149
      no_entry_flag=""
 
11150
    else
 
11151
      aix_use_runtimelinking=no
 
11152
 
 
11153
      # Test if we are trying to use run time linking or normal
 
11154
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11155
      # need to do runtime linking.
 
11156
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11157
        for ld_flag in $LDFLAGS; do
 
11158
          case $ld_flag in
 
11159
          *-brtl*)
 
11160
            aix_use_runtimelinking=yes
 
11161
            break
 
11162
            ;;
 
11163
          esac
 
11164
        done
 
11165
        ;;
 
11166
      esac
 
11167
 
 
11168
      exp_sym_flag='-bexport'
 
11169
      no_entry_flag='-bnoentry'
 
11170
    fi
 
11171
 
 
11172
    # When large executables or shared objects are built, AIX ld can
 
11173
    # have problems creating the table of contents.  If linking a library
 
11174
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11175
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11176
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11177
 
 
11178
    archive_cmds_CXX=''
 
11179
    hardcode_direct_CXX=yes
 
11180
    hardcode_libdir_separator_CXX=':'
 
11181
    link_all_deplibs_CXX=yes
 
11182
 
 
11183
    if test "$GXX" = yes; then
 
11184
      case $host_os in aix4.[012]|aix4.[012].*)
 
11185
      # We only want to do this on AIX 4.2 and lower, the check
 
11186
      # below for broken collect2 doesn't work under 4.3+
 
11187
        collect2name=`${CC} -print-prog-name=collect2`
 
11188
        if test -f "$collect2name" && \
 
11189
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11190
        then
 
11191
          # We have reworked collect2
 
11192
          :
 
11193
        else
 
11194
          # We have old collect2
 
11195
          hardcode_direct_CXX=unsupported
 
11196
          # It fails to find uninstalled libraries when the uninstalled
 
11197
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11198
          # to unsupported forces relinking
 
11199
          hardcode_minus_L_CXX=yes
 
11200
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11201
          hardcode_libdir_separator_CXX=
 
11202
        fi
 
11203
        ;;
 
11204
      esac
 
11205
      shared_flag='-shared'
 
11206
      if test "$aix_use_runtimelinking" = yes; then
 
11207
        shared_flag="$shared_flag "'${wl}-G'
 
11208
      fi
 
11209
    else
 
11210
      # not using gcc
 
11211
      if test "$host_cpu" = ia64; then
 
11212
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11213
        # chokes on -Wl,-G. The following line is correct:
 
11214
        shared_flag='-G'
 
11215
      else
 
11216
        if test "$aix_use_runtimelinking" = yes; then
 
11217
          shared_flag='${wl}-G'
 
11218
        else
 
11219
          shared_flag='${wl}-bM:SRE'
 
11220
        fi
 
11221
      fi
 
11222
    fi
 
11223
 
 
11224
    # It seems that -bexpall does not export symbols beginning with
 
11225
    # underscore (_), so it is better to generate a list of symbols to export.
 
11226
    always_export_symbols_CXX=yes
 
11227
    if test "$aix_use_runtimelinking" = yes; then
 
11228
      # Warning - without using the other runtime loading flags (-brtl),
 
11229
      # -berok will link without error, but may produce a broken library.
 
11230
      allow_undefined_flag_CXX='-berok'
 
11231
      # Determine the default libpath from the value encoded in an empty executable.
 
11232
      cat >conftest.$ac_ext <<_ACEOF
 
11233
/* confdefs.h.  */
 
11234
_ACEOF
 
11235
cat confdefs.h >>conftest.$ac_ext
 
11236
cat >>conftest.$ac_ext <<_ACEOF
 
11237
/* end confdefs.h.  */
 
11238
 
 
11239
int
 
11240
main ()
 
11241
{
 
11242
 
 
11243
  ;
 
11244
  return 0;
 
11245
}
 
11246
_ACEOF
 
11247
rm -f conftest.$ac_objext conftest$ac_exeext
 
11248
if { (ac_try="$ac_link"
 
11249
case "(($ac_try" in
 
11250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11251
  *) ac_try_echo=$ac_try;;
 
11252
esac
 
11253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11254
  (eval "$ac_link") 2>conftest.er1
 
11255
  ac_status=$?
 
11256
  grep -v '^ *+' conftest.er1 >conftest.err
 
11257
  rm -f conftest.er1
 
11258
  cat conftest.err >&5
 
11259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11260
  (exit $ac_status); } && {
 
11261
         test -z "$ac_cxx_werror_flag" ||
 
11262
         test ! -s conftest.err
 
11263
       } && test -s conftest$ac_exeext &&
 
11264
       $as_test_x conftest$ac_exeext; then
 
11265
 
 
11266
lt_aix_libpath_sed='
 
11267
    /Import File Strings/,/^$/ {
 
11268
        /^0/ {
 
11269
            s/^0  *\(.*\)$/\1/
 
11270
            p
 
11271
        }
 
11272
    }'
 
11273
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11274
# Check for a 64-bit object if we didn't find anything.
 
11275
if test -z "$aix_libpath"; then
 
11276
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11277
fi
 
11278
else
 
11279
  echo "$as_me: failed program was:" >&5
 
11280
sed 's/^/| /' conftest.$ac_ext >&5
 
11281
 
 
11282
 
 
11283
fi
 
11284
 
 
11285
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11286
      conftest$ac_exeext conftest.$ac_ext
 
11287
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11288
 
 
11289
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11290
 
 
11291
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11292
     else
 
11293
      if test "$host_cpu" = ia64; then
 
11294
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11295
        allow_undefined_flag_CXX="-z nodefs"
 
11296
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
11297
      else
 
11298
        # Determine the default libpath from the value encoded in an empty executable.
 
11299
        cat >conftest.$ac_ext <<_ACEOF
 
11300
/* confdefs.h.  */
 
11301
_ACEOF
 
11302
cat confdefs.h >>conftest.$ac_ext
 
11303
cat >>conftest.$ac_ext <<_ACEOF
 
11304
/* end confdefs.h.  */
 
11305
 
 
11306
int
 
11307
main ()
 
11308
{
 
11309
 
 
11310
  ;
 
11311
  return 0;
 
11312
}
 
11313
_ACEOF
 
11314
rm -f conftest.$ac_objext conftest$ac_exeext
 
11315
if { (ac_try="$ac_link"
 
11316
case "(($ac_try" in
 
11317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11318
  *) ac_try_echo=$ac_try;;
 
11319
esac
 
11320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11321
  (eval "$ac_link") 2>conftest.er1
 
11322
  ac_status=$?
 
11323
  grep -v '^ *+' conftest.er1 >conftest.err
 
11324
  rm -f conftest.er1
 
11325
  cat conftest.err >&5
 
11326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11327
  (exit $ac_status); } && {
 
11328
         test -z "$ac_cxx_werror_flag" ||
 
11329
         test ! -s conftest.err
 
11330
       } && test -s conftest$ac_exeext &&
 
11331
       $as_test_x conftest$ac_exeext; then
 
11332
 
 
11333
lt_aix_libpath_sed='
 
11334
    /Import File Strings/,/^$/ {
 
11335
        /^0/ {
 
11336
            s/^0  *\(.*\)$/\1/
 
11337
            p
 
11338
        }
 
11339
    }'
 
11340
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11341
# Check for a 64-bit object if we didn't find anything.
 
11342
if test -z "$aix_libpath"; then
 
11343
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11344
fi
 
11345
else
 
11346
  echo "$as_me: failed program was:" >&5
 
11347
sed 's/^/| /' conftest.$ac_ext >&5
 
11348
 
 
11349
 
 
11350
fi
 
11351
 
 
11352
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11353
      conftest$ac_exeext conftest.$ac_ext
 
11354
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11355
 
 
11356
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11357
        # Warning - without using the other run time loading flags,
 
11358
        # -berok will link without error, but may produce a broken library.
 
11359
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11360
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11361
        # Exported symbols can be pulled into shared objects from archives
 
11362
        whole_archive_flag_spec_CXX='$convenience'
 
11363
        archive_cmds_need_lc_CXX=yes
 
11364
        # This is similar to how AIX traditionally builds its shared libraries.
 
11365
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11366
      fi
 
11367
    fi
 
11368
    ;;
 
11369
 
 
11370
  beos*)
 
11371
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11372
      allow_undefined_flag_CXX=unsupported
 
11373
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11374
      # support --undefined.  This deserves some investigation.  FIXME
 
11375
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11376
    else
 
11377
      ld_shlibs_CXX=no
 
11378
    fi
 
11379
    ;;
 
11380
 
 
11381
  chorus*)
 
11382
    case $cc_basename in
 
11383
      *)
 
11384
        # FIXME: insert proper C++ library support
 
11385
        ld_shlibs_CXX=no
 
11386
        ;;
 
11387
    esac
 
11388
    ;;
 
11389
 
 
11390
  cygwin* | mingw* | pw32*)
 
11391
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11392
    # as there is no search path for DLLs.
 
11393
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11394
    allow_undefined_flag_CXX=unsupported
 
11395
    always_export_symbols_CXX=no
 
11396
    enable_shared_with_static_runtimes_CXX=yes
 
11397
 
 
11398
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11399
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11400
      # If the export-symbols file already is a .def file (1st line
 
11401
      # is EXPORTS), use it as is; otherwise, prepend...
 
11402
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11403
        cp $export_symbols $output_objdir/$soname.def;
 
11404
      else
 
11405
        echo EXPORTS > $output_objdir/$soname.def;
 
11406
        cat $export_symbols >> $output_objdir/$soname.def;
 
11407
      fi~
 
11408
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11409
    else
 
11410
      ld_shlibs_CXX=no
 
11411
    fi
 
11412
  ;;
 
11413
      darwin* | rhapsody*)
 
11414
        case $host_os in
 
11415
        rhapsody* | darwin1.[012])
 
11416
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11417
         ;;
 
11418
       *) # Darwin 1.3 on
 
11419
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11420
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11421
         else
 
11422
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11423
             10.[012])
 
11424
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11425
               ;;
 
11426
             10.*)
 
11427
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11428
               ;;
 
11429
           esac
 
11430
         fi
 
11431
         ;;
 
11432
        esac
 
11433
      archive_cmds_need_lc_CXX=no
 
11434
      hardcode_direct_CXX=no
 
11435
      hardcode_automatic_CXX=yes
 
11436
      hardcode_shlibpath_var_CXX=unsupported
 
11437
      whole_archive_flag_spec_CXX=''
 
11438
      link_all_deplibs_CXX=yes
 
11439
 
 
11440
    if test "$GXX" = yes ; then
 
11441
      lt_int_apple_cc_single_mod=no
 
11442
      output_verbose_link_cmd='echo'
 
11443
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11444
       lt_int_apple_cc_single_mod=yes
 
11445
      fi
 
11446
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11447
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11448
      else
 
11449
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11450
        fi
 
11451
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11452
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11453
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11454
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11455
          else
 
11456
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11457
          fi
 
11458
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11459
      else
 
11460
      case $cc_basename in
 
11461
        xlc*)
 
11462
         output_verbose_link_cmd='echo'
 
11463
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
11464
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11465
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11466
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11467
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11468
          ;;
 
11469
       *)
 
11470
         ld_shlibs_CXX=no
 
11471
          ;;
 
11472
      esac
 
11473
      fi
 
11474
        ;;
 
11475
 
 
11476
  dgux*)
 
11477
    case $cc_basename in
 
11478
      ec++*)
 
11479
        # FIXME: insert proper C++ library support
 
11480
        ld_shlibs_CXX=no
 
11481
        ;;
 
11482
      ghcx*)
 
11483
        # Green Hills C++ Compiler
 
11484
        # FIXME: insert proper C++ library support
 
11485
        ld_shlibs_CXX=no
 
11486
        ;;
 
11487
      *)
 
11488
        # FIXME: insert proper C++ library support
 
11489
        ld_shlibs_CXX=no
 
11490
        ;;
 
11491
    esac
 
11492
    ;;
 
11493
  freebsd[12]*)
 
11494
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11495
    ld_shlibs_CXX=no
 
11496
    ;;
 
11497
  freebsd-elf*)
 
11498
    archive_cmds_need_lc_CXX=no
 
11499
    ;;
 
11500
  freebsd* | dragonfly*)
 
11501
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11502
    # conventions
 
11503
    ld_shlibs_CXX=yes
 
11504
    ;;
 
11505
  gnu*)
 
11506
    ;;
 
11507
  hpux9*)
 
11508
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11509
    hardcode_libdir_separator_CXX=:
 
11510
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11511
    hardcode_direct_CXX=yes
 
11512
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11513
                                # but as the default
 
11514
                                # location of the library.
 
11515
 
 
11516
    case $cc_basename in
 
11517
    CC*)
 
11518
      # FIXME: insert proper C++ library support
 
11519
      ld_shlibs_CXX=no
 
11520
      ;;
 
11521
    aCC*)
 
11522
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11523
      # Commands to make compiler produce verbose output that lists
 
11524
      # what "hidden" libraries, object files and flags are used when
 
11525
      # linking a shared library.
 
11526
      #
 
11527
      # There doesn't appear to be a way to prevent this compiler from
 
11528
      # explicitly linking system object files so we need to strip them
 
11529
      # from the output so that they don't get included in the library
 
11530
      # dependencies.
 
11531
      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'
 
11532
      ;;
 
11533
    *)
 
11534
      if test "$GXX" = yes; then
 
11535
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11536
      else
 
11537
        # FIXME: insert proper C++ library support
 
11538
        ld_shlibs_CXX=no
 
11539
      fi
 
11540
      ;;
 
11541
    esac
 
11542
    ;;
 
11543
  hpux10*|hpux11*)
 
11544
    if test $with_gnu_ld = no; then
 
11545
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11546
      hardcode_libdir_separator_CXX=:
 
11547
 
 
11548
      case $host_cpu in
 
11549
      hppa*64*|ia64*) ;;
 
11550
      *)
 
11551
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11552
        ;;
 
11553
      esac
 
11554
    fi
 
11555
    case $host_cpu in
 
11556
    hppa*64*|ia64*)
 
11557
      hardcode_direct_CXX=no
 
11558
      hardcode_shlibpath_var_CXX=no
 
11559
      ;;
 
11560
    *)
 
11561
      hardcode_direct_CXX=yes
 
11562
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11563
                                              # but as the default
 
11564
                                              # location of the library.
 
11565
      ;;
 
11566
    esac
 
11567
 
 
11568
    case $cc_basename in
 
11569
      CC*)
 
11570
        # FIXME: insert proper C++ library support
 
11571
        ld_shlibs_CXX=no
 
11572
        ;;
 
11573
      aCC*)
 
11574
        case $host_cpu in
 
11575
        hppa*64*)
 
11576
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11577
          ;;
 
11578
        ia64*)
 
11579
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11580
          ;;
 
11581
        *)
 
11582
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11583
          ;;
 
11584
        esac
 
11585
        # Commands to make compiler produce verbose output that lists
 
11586
        # what "hidden" libraries, object files and flags are used when
 
11587
        # linking a shared library.
 
11588
        #
 
11589
        # There doesn't appear to be a way to prevent this compiler from
 
11590
        # explicitly linking system object files so we need to strip them
 
11591
        # from the output so that they don't get included in the library
 
11592
        # dependencies.
 
11593
        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'
 
11594
        ;;
 
11595
      *)
 
11596
        if test "$GXX" = yes; then
 
11597
          if test $with_gnu_ld = no; then
 
11598
            case $host_cpu in
 
11599
            hppa*64*)
 
11600
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11601
              ;;
 
11602
            ia64*)
 
11603
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11604
              ;;
 
11605
            *)
 
11606
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11607
              ;;
 
11608
            esac
 
11609
          fi
 
11610
        else
 
11611
          # FIXME: insert proper C++ library support
 
11612
          ld_shlibs_CXX=no
 
11613
        fi
 
11614
        ;;
 
11615
    esac
 
11616
    ;;
 
11617
  interix[3-9]*)
 
11618
    hardcode_direct_CXX=no
 
11619
    hardcode_shlibpath_var_CXX=no
 
11620
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11621
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11622
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11623
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11624
    # default) and relocated if they conflict, which is a slow very memory
 
11625
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11626
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11627
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11628
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
11629
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
11630
    ;;
 
11631
  irix5* | irix6*)
 
11632
    case $cc_basename in
 
11633
      CC*)
 
11634
        # SGI C++
 
11635
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11636
 
 
11637
        # Archives containing C++ object files must be created using
 
11638
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11639
        # necessary to make sure instantiated templates are included
 
11640
        # in the archive.
 
11641
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11642
        ;;
 
11643
      *)
 
11644
        if test "$GXX" = yes; then
 
11645
          if test "$with_gnu_ld" = no; then
 
11646
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11647
          else
 
11648
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
11649
          fi
 
11650
        fi
 
11651
        link_all_deplibs_CXX=yes
 
11652
        ;;
 
11653
    esac
 
11654
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11655
    hardcode_libdir_separator_CXX=:
 
11656
    ;;
 
11657
  linux* | k*bsd*-gnu)
 
11658
    case $cc_basename in
 
11659
      KCC*)
 
11660
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11661
 
 
11662
        # KCC will only create a shared library if the output file
 
11663
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11664
        # to its proper name (with version) after linking.
 
11665
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11666
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
11667
        # Commands to make compiler produce verbose output that lists
 
11668
        # what "hidden" libraries, object files and flags are used when
 
11669
        # linking a shared library.
 
11670
        #
 
11671
        # There doesn't appear to be a way to prevent this compiler from
 
11672
        # explicitly linking system object files so we need to strip them
 
11673
        # from the output so that they don't get included in the library
 
11674
        # dependencies.
 
11675
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11676
 
 
11677
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11678
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11679
 
 
11680
        # Archives containing C++ object files must be created using
 
11681
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11682
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11683
        ;;
 
11684
      icpc*)
 
11685
        # Intel C++
 
11686
        with_gnu_ld=yes
 
11687
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11688
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11689
        # earlier do not add the objects themselves.
 
11690
        case `$CC -V 2>&1` in
 
11691
        *"Version 7."*)
 
11692
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11693
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11694
          ;;
 
11695
        *)  # Version 8.0 or newer
 
11696
          tmp_idyn=
 
11697
          case $host_cpu in
 
11698
            ia64*) tmp_idyn=' -i_dynamic';;
 
11699
          esac
 
11700
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11701
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11702
          ;;
 
11703
        esac
 
11704
        archive_cmds_need_lc_CXX=no
 
11705
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11706
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11707
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11708
        ;;
 
11709
      pgCC*)
 
11710
        # Portland Group C++ compiler
 
11711
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11712
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
11713
 
 
11714
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11715
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11716
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11717
        ;;
 
11718
      cxx*)
 
11719
        # Compaq C++
 
11720
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11721
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
11722
 
 
11723
        runpath_var=LD_RUN_PATH
 
11724
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11725
        hardcode_libdir_separator_CXX=:
 
11726
 
 
11727
        # Commands to make compiler produce verbose output that lists
 
11728
        # what "hidden" libraries, object files and flags are used when
 
11729
        # linking a shared library.
 
11730
        #
 
11731
        # There doesn't appear to be a way to prevent this compiler from
 
11732
        # explicitly linking system object files so we need to strip them
 
11733
        # from the output so that they don't get included in the library
 
11734
        # dependencies.
 
11735
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11736
        ;;
 
11737
      *)
 
11738
        case `$CC -V 2>&1 | sed 5q` in
 
11739
        *Sun\ C*)
 
11740
          # Sun C++ 5.9
 
11741
          no_undefined_flag_CXX=' -zdefs'
 
11742
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11743
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
11744
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11745
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11746
 
 
11747
          # Not sure whether something based on
 
11748
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
11749
          # would be better.
 
11750
          output_verbose_link_cmd='echo'
 
11751
 
 
11752
          # Archives containing C++ object files must be created using
 
11753
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11754
          # necessary to make sure instantiated templates are included
 
11755
          # in the archive.
 
11756
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11757
          ;;
 
11758
        esac
 
11759
        ;;
 
11760
    esac
 
11761
    ;;
 
11762
  lynxos*)
 
11763
    # FIXME: insert proper C++ library support
 
11764
    ld_shlibs_CXX=no
 
11765
    ;;
 
11766
  m88k*)
 
11767
    # FIXME: insert proper C++ library support
 
11768
    ld_shlibs_CXX=no
 
11769
    ;;
 
11770
  mvs*)
 
11771
    case $cc_basename in
 
11772
      cxx*)
 
11773
        # FIXME: insert proper C++ library support
 
11774
        ld_shlibs_CXX=no
 
11775
        ;;
 
11776
      *)
 
11777
        # FIXME: insert proper C++ library support
 
11778
        ld_shlibs_CXX=no
 
11779
        ;;
 
11780
    esac
 
11781
    ;;
 
11782
  netbsd*)
 
11783
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11784
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11785
      wlarc=
 
11786
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11787
      hardcode_direct_CXX=yes
 
11788
      hardcode_shlibpath_var_CXX=no
 
11789
    fi
 
11790
    # Workaround some broken pre-1.5 toolchains
 
11791
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11792
    ;;
 
11793
  openbsd2*)
 
11794
    # C++ shared libraries are fairly broken
 
11795
    ld_shlibs_CXX=no
 
11796
    ;;
 
11797
  openbsd*)
 
11798
    if test -f /usr/libexec/ld.so; then
 
11799
      hardcode_direct_CXX=yes
 
11800
      hardcode_shlibpath_var_CXX=no
 
11801
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11802
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11803
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11804
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11805
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11806
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11807
      fi
 
11808
      output_verbose_link_cmd='echo'
 
11809
    else
 
11810
      ld_shlibs_CXX=no
 
11811
    fi
 
11812
    ;;
 
11813
  osf3*)
 
11814
    case $cc_basename in
 
11815
      KCC*)
 
11816
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11817
 
 
11818
        # KCC will only create a shared library if the output file
 
11819
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11820
        # to its proper name (with version) after linking.
 
11821
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11822
 
 
11823
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11824
        hardcode_libdir_separator_CXX=:
 
11825
 
 
11826
        # Archives containing C++ object files must be created using
 
11827
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11828
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11829
 
 
11830
        ;;
 
11831
      RCC*)
 
11832
        # Rational C++ 2.4.1
 
11833
        # FIXME: insert proper C++ library support
 
11834
        ld_shlibs_CXX=no
 
11835
        ;;
 
11836
      cxx*)
 
11837
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11838
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11839
 
 
11840
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11841
        hardcode_libdir_separator_CXX=:
 
11842
 
 
11843
        # Commands to make compiler produce verbose output that lists
 
11844
        # what "hidden" libraries, object files and flags are used when
 
11845
        # linking a shared library.
 
11846
        #
 
11847
        # There doesn't appear to be a way to prevent this compiler from
 
11848
        # explicitly linking system object files so we need to strip them
 
11849
        # from the output so that they don't get included in the library
 
11850
        # dependencies.
 
11851
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11852
        ;;
 
11853
      *)
 
11854
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11855
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11856
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11857
 
 
11858
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11859
          hardcode_libdir_separator_CXX=:
 
11860
 
 
11861
          # Commands to make compiler produce verbose output that lists
 
11862
          # what "hidden" libraries, object files and flags are used when
 
11863
          # linking a shared library.
 
11864
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11865
 
 
11866
        else
 
11867
          # FIXME: insert proper C++ library support
 
11868
          ld_shlibs_CXX=no
 
11869
        fi
 
11870
        ;;
 
11871
    esac
 
11872
    ;;
 
11873
  osf4* | osf5*)
 
11874
    case $cc_basename in
 
11875
      KCC*)
 
11876
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11877
 
 
11878
        # KCC will only create a shared library if the output file
 
11879
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11880
        # to its proper name (with version) after linking.
 
11881
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11882
 
 
11883
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11884
        hardcode_libdir_separator_CXX=:
 
11885
 
 
11886
        # Archives containing C++ object files must be created using
 
11887
        # the KAI C++ compiler.
 
11888
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11889
        ;;
 
11890
      RCC*)
 
11891
        # Rational C++ 2.4.1
 
11892
        # FIXME: insert proper C++ library support
 
11893
        ld_shlibs_CXX=no
 
11894
        ;;
 
11895
      cxx*)
 
11896
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11897
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11898
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11899
          echo "-hidden">> $lib.exp~
 
11900
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
11901
          $rm $lib.exp'
 
11902
 
 
11903
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11904
        hardcode_libdir_separator_CXX=:
 
11905
 
 
11906
        # Commands to make compiler produce verbose output that lists
 
11907
        # what "hidden" libraries, object files and flags are used when
 
11908
        # linking a shared library.
 
11909
        #
 
11910
        # There doesn't appear to be a way to prevent this compiler from
 
11911
        # explicitly linking system object files so we need to strip them
 
11912
        # from the output so that they don't get included in the library
 
11913
        # dependencies.
 
11914
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11915
        ;;
 
11916
      *)
 
11917
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11918
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11919
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11920
 
 
11921
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11922
          hardcode_libdir_separator_CXX=:
 
11923
 
 
11924
          # Commands to make compiler produce verbose output that lists
 
11925
          # what "hidden" libraries, object files and flags are used when
 
11926
          # linking a shared library.
 
11927
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11928
 
 
11929
        else
 
11930
          # FIXME: insert proper C++ library support
 
11931
          ld_shlibs_CXX=no
 
11932
        fi
 
11933
        ;;
 
11934
    esac
 
11935
    ;;
 
11936
  psos*)
 
11937
    # FIXME: insert proper C++ library support
 
11938
    ld_shlibs_CXX=no
 
11939
    ;;
 
11940
  sunos4*)
 
11941
    case $cc_basename in
 
11942
      CC*)
 
11943
        # Sun C++ 4.x
 
11944
        # FIXME: insert proper C++ library support
 
11945
        ld_shlibs_CXX=no
 
11946
        ;;
 
11947
      lcc*)
 
11948
        # Lucid
 
11949
        # FIXME: insert proper C++ library support
 
11950
        ld_shlibs_CXX=no
 
11951
        ;;
 
11952
      *)
 
11953
        # FIXME: insert proper C++ library support
 
11954
        ld_shlibs_CXX=no
 
11955
        ;;
 
11956
    esac
 
11957
    ;;
 
11958
  solaris*)
 
11959
    case $cc_basename in
 
11960
      CC*)
 
11961
        # Sun C++ 4.2, 5.x and Centerline C++
 
11962
        archive_cmds_need_lc_CXX=yes
 
11963
        no_undefined_flag_CXX=' -zdefs'
 
11964
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11965
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11966
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11967
 
 
11968
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11969
        hardcode_shlibpath_var_CXX=no
 
11970
        case $host_os in
 
11971
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11972
          *)
 
11973
            # The compiler driver will combine and reorder linker options,
 
11974
            # but understands `-z linker_flag'.
 
11975
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11976
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
11977
            ;;
 
11978
        esac
 
11979
        link_all_deplibs_CXX=yes
 
11980
 
 
11981
        output_verbose_link_cmd='echo'
 
11982
 
 
11983
        # Archives containing C++ object files must be created using
 
11984
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11985
        # necessary to make sure instantiated templates are included
 
11986
        # in the archive.
 
11987
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11988
        ;;
 
11989
      gcx*)
 
11990
        # Green Hills C++ Compiler
 
11991
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11992
 
 
11993
        # The C++ compiler must be used to create the archive.
 
11994
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11995
        ;;
 
11996
      *)
 
11997
        # GNU C++ compiler with Solaris linker
 
11998
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11999
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12000
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12001
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12002
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12003
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12004
 
 
12005
            # Commands to make compiler produce verbose output that lists
 
12006
            # what "hidden" libraries, object files and flags are used when
 
12007
            # linking a shared library.
 
12008
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12009
          else
 
12010
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12011
            # platform.
 
12012
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12013
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12014
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12015
 
 
12016
            # Commands to make compiler produce verbose output that lists
 
12017
            # what "hidden" libraries, object files and flags are used when
 
12018
            # linking a shared library.
 
12019
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12020
          fi
 
12021
 
 
12022
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12023
          case $host_os in
 
12024
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12025
          *)
 
12026
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12027
            ;;
 
12028
          esac
 
12029
        fi
 
12030
        ;;
 
12031
    esac
 
12032
    ;;
 
12033
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12034
    no_undefined_flag_CXX='${wl}-z,text'
 
12035
    archive_cmds_need_lc_CXX=no
 
12036
    hardcode_shlibpath_var_CXX=no
 
12037
    runpath_var='LD_RUN_PATH'
 
12038
 
 
12039
    case $cc_basename in
 
12040
      CC*)
 
12041
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12042
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12043
        ;;
 
12044
      *)
 
12045
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12046
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12047
        ;;
 
12048
    esac
 
12049
    ;;
 
12050
  sysv5* | sco3.2v5* | sco5v6*)
 
12051
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12052
    # link with -lc, and that would cause any symbols used from libc to
 
12053
    # always be unresolved, which means just about no library would
 
12054
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12055
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12056
    # as -z defs.
 
12057
    # For security reasons, it is highly recommended that you always
 
12058
    # use absolute paths for naming shared libraries, and exclude the
 
12059
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12060
    # requires that you compile everything twice, which is a pain.
 
12061
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12062
    # non-empty value in the environment.  Most likely only useful for
 
12063
    # creating official distributions of packages.
 
12064
    # This is a hack until libtool officially supports absolute path
 
12065
    # names for shared libraries.
 
12066
    no_undefined_flag_CXX='${wl}-z,text'
 
12067
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12068
    archive_cmds_need_lc_CXX=no
 
12069
    hardcode_shlibpath_var_CXX=no
 
12070
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12071
    hardcode_libdir_separator_CXX=':'
 
12072
    link_all_deplibs_CXX=yes
 
12073
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12074
    runpath_var='LD_RUN_PATH'
 
12075
 
 
12076
    case $cc_basename in
 
12077
      CC*)
 
12078
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12079
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12080
        ;;
 
12081
      *)
 
12082
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12083
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12084
        ;;
 
12085
    esac
 
12086
    ;;
 
12087
  tandem*)
 
12088
    case $cc_basename in
 
12089
      NCC*)
 
12090
        # NonStop-UX NCC 3.20
 
12091
        # FIXME: insert proper C++ library support
 
12092
        ld_shlibs_CXX=no
 
12093
        ;;
 
12094
      *)
 
12095
        # FIXME: insert proper C++ library support
 
12096
        ld_shlibs_CXX=no
 
12097
        ;;
 
12098
    esac
 
12099
    ;;
 
12100
  vxworks*)
 
12101
    # FIXME: insert proper C++ library support
 
12102
    ld_shlibs_CXX=no
 
12103
    ;;
 
12104
  *)
 
12105
    # FIXME: insert proper C++ library support
 
12106
    ld_shlibs_CXX=no
 
12107
    ;;
 
12108
esac
 
12109
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12110
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12111
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12112
 
 
12113
GCC_CXX="$GXX"
 
12114
LD_CXX="$LD"
 
12115
 
 
12116
 
 
12117
cat > conftest.$ac_ext <<EOF
 
12118
class Foo
 
12119
{
 
12120
public:
 
12121
  Foo (void) { a = 0; }
 
12122
private:
 
12123
  int a;
 
12124
};
 
12125
EOF
 
12126
 
 
12127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12128
  (eval $ac_compile) 2>&5
 
12129
  ac_status=$?
 
12130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12131
  (exit $ac_status); }; then
 
12132
  # Parse the compiler output and extract the necessary
 
12133
  # objects, libraries and library flags.
 
12134
 
 
12135
  # Sentinel used to keep track of whether or not we are before
 
12136
  # the conftest object file.
 
12137
  pre_test_object_deps_done=no
 
12138
 
 
12139
  # The `*' in the case matches for architectures that use `case' in
 
12140
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12141
  # eval without this substitution.
 
12142
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12143
 
 
12144
  for p in `eval $output_verbose_link_cmd`; do
 
12145
    case $p in
 
12146
 
 
12147
    -L* | -R* | -l*)
 
12148
       # Some compilers place space between "-{L,R}" and the path.
 
12149
       # Remove the space.
 
12150
       if test $p = "-L" \
 
12151
          || test $p = "-R"; then
 
12152
         prev=$p
 
12153
         continue
 
12154
       else
 
12155
         prev=
 
12156
       fi
 
12157
 
 
12158
       if test "$pre_test_object_deps_done" = no; then
 
12159
         case $p in
 
12160
         -L* | -R*)
 
12161
           # Internal compiler library paths should come after those
 
12162
           # provided the user.  The postdeps already come after the
 
12163
           # user supplied libs so there is no need to process them.
 
12164
           if test -z "$compiler_lib_search_path_CXX"; then
 
12165
             compiler_lib_search_path_CXX="${prev}${p}"
 
12166
           else
 
12167
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12168
           fi
 
12169
           ;;
 
12170
         # The "-l" case would never come before the object being
 
12171
         # linked, so don't bother handling this case.
 
12172
         esac
 
12173
       else
 
12174
         if test -z "$postdeps_CXX"; then
 
12175
           postdeps_CXX="${prev}${p}"
 
12176
         else
 
12177
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12178
         fi
 
12179
       fi
 
12180
       ;;
 
12181
 
 
12182
    *.$objext)
 
12183
       # This assumes that the test object file only shows up
 
12184
       # once in the compiler output.
 
12185
       if test "$p" = "conftest.$objext"; then
 
12186
         pre_test_object_deps_done=yes
 
12187
         continue
 
12188
       fi
 
12189
 
 
12190
       if test "$pre_test_object_deps_done" = no; then
 
12191
         if test -z "$predep_objects_CXX"; then
 
12192
           predep_objects_CXX="$p"
 
12193
         else
 
12194
           predep_objects_CXX="$predep_objects_CXX $p"
 
12195
         fi
 
12196
       else
 
12197
         if test -z "$postdep_objects_CXX"; then
 
12198
           postdep_objects_CXX="$p"
 
12199
         else
 
12200
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12201
         fi
 
12202
       fi
 
12203
       ;;
 
12204
 
 
12205
    *) ;; # Ignore the rest.
 
12206
 
 
12207
    esac
 
12208
  done
 
12209
 
 
12210
  # Clean up.
 
12211
  rm -f a.out a.exe
 
12212
else
 
12213
  echo "libtool.m4: error: problem compiling CXX test program"
 
12214
fi
 
12215
 
 
12216
$rm -f confest.$objext
 
12217
 
 
12218
# PORTME: override above test on systems where it is broken
 
12219
case $host_os in
 
12220
interix[3-9]*)
 
12221
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12222
  # hack all around it, let's just trust "g++" to DTRT.
 
12223
  predep_objects_CXX=
 
12224
  postdep_objects_CXX=
 
12225
  postdeps_CXX=
 
12226
  ;;
 
12227
 
 
12228
linux*)
 
12229
  case `$CC -V 2>&1 | sed 5q` in
 
12230
  *Sun\ C*)
 
12231
    # Sun C++ 5.9
 
12232
    #
 
12233
    # The more standards-conforming stlport4 library is
 
12234
    # incompatible with the Cstd library. Avoid specifying
 
12235
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12236
    # -library=stlport4 depends on it.
 
12237
    case " $CXX $CXXFLAGS " in
 
12238
    *" -library=stlport4 "*)
 
12239
      solaris_use_stlport4=yes
 
12240
      ;;
 
12241
    esac
 
12242
    if test "$solaris_use_stlport4" != yes; then
 
12243
      postdeps_CXX='-library=Cstd -library=Crun'
 
12244
    fi
 
12245
    ;;
 
12246
  esac
 
12247
  ;;
 
12248
 
 
12249
solaris*)
 
12250
  case $cc_basename in
 
12251
  CC*)
 
12252
    # The more standards-conforming stlport4 library is
 
12253
    # incompatible with the Cstd library. Avoid specifying
 
12254
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12255
    # -library=stlport4 depends on it.
 
12256
    case " $CXX $CXXFLAGS " in
 
12257
    *" -library=stlport4 "*)
 
12258
      solaris_use_stlport4=yes
 
12259
      ;;
 
12260
    esac
 
12261
 
 
12262
    # Adding this requires a known-good setup of shared libraries for
 
12263
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12264
    # archive will be linked into the output, leading to subtle bugs.
 
12265
    if test "$solaris_use_stlport4" != yes; then
 
12266
      postdeps_CXX='-library=Cstd -library=Crun'
 
12267
    fi
 
12268
    ;;
 
12269
  esac
 
12270
  ;;
 
12271
esac
 
12272
 
 
12273
 
 
12274
case " $postdeps_CXX " in
 
12275
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12276
esac
 
12277
 
 
12278
lt_prog_compiler_wl_CXX=
 
12279
lt_prog_compiler_pic_CXX=
 
12280
lt_prog_compiler_static_CXX=
 
12281
 
 
12282
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12283
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12284
 
 
12285
  # C++ specific cases for pic, static, wl, etc.
 
12286
  if test "$GXX" = yes; then
 
12287
    lt_prog_compiler_wl_CXX='-Wl,'
 
12288
    lt_prog_compiler_static_CXX='-static'
 
12289
 
 
12290
    case $host_os in
 
12291
    aix*)
 
12292
      # All AIX code is PIC.
 
12293
      if test "$host_cpu" = ia64; then
 
12294
        # AIX 5 now supports IA64 processor
 
12295
        lt_prog_compiler_static_CXX='-Bstatic'
 
12296
      fi
 
12297
      ;;
 
12298
    amigaos*)
 
12299
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12300
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12301
      # like `-m68040'.
 
12302
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12303
      ;;
 
12304
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12305
      # PIC is the default for these OSes.
 
12306
      ;;
 
12307
    mingw* | cygwin* | os2* | pw32*)
 
12308
      # This hack is so that the source file can tell whether it is being
 
12309
      # built for inclusion in a dll (and should export symbols for example).
 
12310
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12311
      # (--disable-auto-import) libraries
 
12312
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12313
      ;;
 
12314
    darwin* | rhapsody*)
 
12315
      # PIC is the default on this platform
 
12316
      # Common symbols not allowed in MH_DYLIB files
 
12317
      lt_prog_compiler_pic_CXX='-fno-common'
 
12318
      ;;
 
12319
    *djgpp*)
 
12320
      # DJGPP does not support shared libraries at all
 
12321
      lt_prog_compiler_pic_CXX=
 
12322
      ;;
 
12323
    interix[3-9]*)
 
12324
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12325
      # Instead, we relocate shared libraries at runtime.
 
12326
      ;;
 
12327
    sysv4*MP*)
 
12328
      if test -d /usr/nec; then
 
12329
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12330
      fi
 
12331
      ;;
 
12332
    hpux*)
 
12333
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12334
      # not for PA HP-UX.
 
12335
      case $host_cpu in
 
12336
      hppa*64*|ia64*)
 
12337
        ;;
 
12338
      *)
 
12339
        lt_prog_compiler_pic_CXX='-fPIC'
 
12340
        ;;
 
12341
      esac
 
12342
      ;;
 
12343
    *)
 
12344
      lt_prog_compiler_pic_CXX='-fPIC'
 
12345
      ;;
 
12346
    esac
 
12347
  else
 
12348
    case $host_os in
 
12349
      aix4* | aix5*)
 
12350
        # All AIX code is PIC.
 
12351
        if test "$host_cpu" = ia64; then
 
12352
          # AIX 5 now supports IA64 processor
 
12353
          lt_prog_compiler_static_CXX='-Bstatic'
 
12354
        else
 
12355
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12356
        fi
 
12357
        ;;
 
12358
      chorus*)
 
12359
        case $cc_basename in
 
12360
        cxch68*)
 
12361
          # Green Hills C++ Compiler
 
12362
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
12363
          ;;
 
12364
        esac
 
12365
        ;;
 
12366
       darwin*)
 
12367
         # PIC is the default on this platform
 
12368
         # Common symbols not allowed in MH_DYLIB files
 
12369
         case $cc_basename in
 
12370
           xlc*)
 
12371
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12372
           lt_prog_compiler_wl_CXX='-Wl,'
 
12373
           ;;
 
12374
         esac
 
12375
       ;;
 
12376
      dgux*)
 
12377
        case $cc_basename in
 
12378
          ec++*)
 
12379
            lt_prog_compiler_pic_CXX='-KPIC'
 
12380
            ;;
 
12381
          ghcx*)
 
12382
            # Green Hills C++ Compiler
 
12383
            lt_prog_compiler_pic_CXX='-pic'
 
12384
            ;;
 
12385
          *)
 
12386
            ;;
 
12387
        esac
 
12388
        ;;
 
12389
      freebsd* | dragonfly*)
 
12390
        # FreeBSD uses GNU C++
 
12391
        ;;
 
12392
      hpux9* | hpux10* | hpux11*)
 
12393
        case $cc_basename in
 
12394
          CC*)
 
12395
            lt_prog_compiler_wl_CXX='-Wl,'
 
12396
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12397
            if test "$host_cpu" != ia64; then
 
12398
              lt_prog_compiler_pic_CXX='+Z'
 
12399
            fi
 
12400
            ;;
 
12401
          aCC*)
 
12402
            lt_prog_compiler_wl_CXX='-Wl,'
 
12403
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12404
            case $host_cpu in
 
12405
            hppa*64*|ia64*)
 
12406
              # +Z the default
 
12407
              ;;
 
12408
            *)
 
12409
              lt_prog_compiler_pic_CXX='+Z'
 
12410
              ;;
 
12411
            esac
 
12412
            ;;
 
12413
          *)
 
12414
            ;;
 
12415
        esac
 
12416
        ;;
 
12417
      interix*)
 
12418
        # This is c89, which is MS Visual C++ (no shared libs)
 
12419
        # Anyone wants to do a port?
 
12420
        ;;
 
12421
      irix5* | irix6* | nonstopux*)
 
12422
        case $cc_basename in
 
12423
          CC*)
 
12424
            lt_prog_compiler_wl_CXX='-Wl,'
 
12425
            lt_prog_compiler_static_CXX='-non_shared'
 
12426
            # CC pic flag -KPIC is the default.
 
12427
            ;;
 
12428
          *)
 
12429
            ;;
 
12430
        esac
 
12431
        ;;
 
12432
      linux* | k*bsd*-gnu)
 
12433
        case $cc_basename in
 
12434
          KCC*)
 
12435
            # KAI C++ Compiler
 
12436
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12437
            lt_prog_compiler_pic_CXX='-fPIC'
 
12438
            ;;
 
12439
          icpc* | ecpc*)
 
12440
            # Intel C++
 
12441
            lt_prog_compiler_wl_CXX='-Wl,'
 
12442
            lt_prog_compiler_pic_CXX='-KPIC'
 
12443
            lt_prog_compiler_static_CXX='-static'
 
12444
            ;;
 
12445
          pgCC*)
 
12446
            # Portland Group C++ compiler.
 
12447
            lt_prog_compiler_wl_CXX='-Wl,'
 
12448
            lt_prog_compiler_pic_CXX='-fpic'
 
12449
            lt_prog_compiler_static_CXX='-Bstatic'
 
12450
            ;;
 
12451
          cxx*)
 
12452
            # Compaq C++
 
12453
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12454
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12455
            lt_prog_compiler_pic_CXX=
 
12456
            lt_prog_compiler_static_CXX='-non_shared'
 
12457
            ;;
 
12458
          *)
 
12459
            case `$CC -V 2>&1 | sed 5q` in
 
12460
            *Sun\ C*)
 
12461
              # Sun C++ 5.9
 
12462
              lt_prog_compiler_pic_CXX='-KPIC'
 
12463
              lt_prog_compiler_static_CXX='-Bstatic'
 
12464
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12465
              ;;
 
12466
            esac
 
12467
            ;;
 
12468
        esac
 
12469
        ;;
 
12470
      lynxos*)
 
12471
        ;;
 
12472
      m88k*)
 
12473
        ;;
 
12474
      mvs*)
 
12475
        case $cc_basename in
 
12476
          cxx*)
 
12477
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12478
            ;;
 
12479
          *)
 
12480
            ;;
 
12481
        esac
 
12482
        ;;
 
12483
      netbsd*)
 
12484
        ;;
 
12485
      osf3* | osf4* | osf5*)
 
12486
        case $cc_basename in
 
12487
          KCC*)
 
12488
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12489
            ;;
 
12490
          RCC*)
 
12491
            # Rational C++ 2.4.1
 
12492
            lt_prog_compiler_pic_CXX='-pic'
 
12493
            ;;
 
12494
          cxx*)
 
12495
            # Digital/Compaq C++
 
12496
            lt_prog_compiler_wl_CXX='-Wl,'
 
12497
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12498
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12499
            lt_prog_compiler_pic_CXX=
 
12500
            lt_prog_compiler_static_CXX='-non_shared'
 
12501
            ;;
 
12502
          *)
 
12503
            ;;
 
12504
        esac
 
12505
        ;;
 
12506
      psos*)
 
12507
        ;;
 
12508
      solaris*)
 
12509
        case $cc_basename in
 
12510
          CC*)
 
12511
            # Sun C++ 4.2, 5.x and Centerline C++
 
12512
            lt_prog_compiler_pic_CXX='-KPIC'
 
12513
            lt_prog_compiler_static_CXX='-Bstatic'
 
12514
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12515
            ;;
 
12516
          gcx*)
 
12517
            # Green Hills C++ Compiler
 
12518
            lt_prog_compiler_pic_CXX='-PIC'
 
12519
            ;;
 
12520
          *)
 
12521
            ;;
 
12522
        esac
 
12523
        ;;
 
12524
      sunos4*)
 
12525
        case $cc_basename in
 
12526
          CC*)
 
12527
            # Sun C++ 4.x
 
12528
            lt_prog_compiler_pic_CXX='-pic'
 
12529
            lt_prog_compiler_static_CXX='-Bstatic'
 
12530
            ;;
 
12531
          lcc*)
 
12532
            # Lucid
 
12533
            lt_prog_compiler_pic_CXX='-pic'
 
12534
            ;;
 
12535
          *)
 
12536
            ;;
 
12537
        esac
 
12538
        ;;
 
12539
      tandem*)
 
12540
        case $cc_basename in
 
12541
          NCC*)
 
12542
            # NonStop-UX NCC 3.20
 
12543
            lt_prog_compiler_pic_CXX='-KPIC'
 
12544
            ;;
 
12545
          *)
 
12546
            ;;
 
12547
        esac
 
12548
        ;;
 
12549
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12550
        case $cc_basename in
 
12551
          CC*)
 
12552
            lt_prog_compiler_wl_CXX='-Wl,'
 
12553
            lt_prog_compiler_pic_CXX='-KPIC'
 
12554
            lt_prog_compiler_static_CXX='-Bstatic'
 
12555
            ;;
 
12556
        esac
 
12557
        ;;
 
12558
      vxworks*)
 
12559
        ;;
 
12560
      *)
 
12561
        lt_prog_compiler_can_build_shared_CXX=no
 
12562
        ;;
 
12563
    esac
 
12564
  fi
 
12565
 
 
12566
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12567
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12568
 
 
12569
#
 
12570
# Check to make sure the PIC flag actually works.
 
12571
#
 
12572
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12573
 
 
12574
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12575
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12576
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12578
else
 
12579
  lt_prog_compiler_pic_works_CXX=no
 
12580
  ac_outfile=conftest.$ac_objext
 
12581
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12582
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12583
   # Insert the option either (1) after the last *FLAGS variable, or
 
12584
   # (2) before a word containing "conftest.", or (3) at the end.
 
12585
   # Note that $ac_compile itself does not contain backslashes and begins
 
12586
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12587
   # The option is referenced via a variable to avoid confusing sed.
 
12588
   lt_compile=`echo "$ac_compile" | $SED \
 
12589
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12590
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12591
   -e 's:$: $lt_compiler_flag:'`
 
12592
   (eval echo "\"\$as_me:12592: $lt_compile\"" >&5)
 
12593
   (eval "$lt_compile" 2>conftest.err)
 
12594
   ac_status=$?
 
12595
   cat conftest.err >&5
 
12596
   echo "$as_me:12596: \$? = $ac_status" >&5
 
12597
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12598
     # The compiler can only warn and ignore the option if not recognized
 
12599
     # So say no if there are warnings other than the usual output.
 
12600
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12601
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12602
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12603
       lt_prog_compiler_pic_works_CXX=yes
 
12604
     fi
 
12605
   fi
 
12606
   $rm conftest*
 
12607
 
 
12608
fi
 
12609
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12610
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12611
 
 
12612
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12613
    case $lt_prog_compiler_pic_CXX in
 
12614
     "" | " "*) ;;
 
12615
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12616
     esac
 
12617
else
 
12618
    lt_prog_compiler_pic_CXX=
 
12619
     lt_prog_compiler_can_build_shared_CXX=no
 
12620
fi
 
12621
 
 
12622
fi
 
12623
case $host_os in
 
12624
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12625
  *djgpp*)
 
12626
    lt_prog_compiler_pic_CXX=
 
12627
    ;;
 
12628
  *)
 
12629
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12630
    ;;
 
12631
esac
 
12632
 
 
12633
#
 
12634
# Check to make sure the static flag actually works.
 
12635
#
 
12636
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12637
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12638
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12639
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12640
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12641
else
 
12642
  lt_prog_compiler_static_works_CXX=no
 
12643
   save_LDFLAGS="$LDFLAGS"
 
12644
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12645
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
12646
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12647
     # The linker can only warn and ignore the option if not recognized
 
12648
     # So say no if there are warnings
 
12649
     if test -s conftest.err; then
 
12650
       # Append any errors to the config.log.
 
12651
       cat conftest.err 1>&5
 
12652
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12653
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12654
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12655
         lt_prog_compiler_static_works_CXX=yes
 
12656
       fi
 
12657
     else
 
12658
       lt_prog_compiler_static_works_CXX=yes
 
12659
     fi
 
12660
   fi
 
12661
   $rm conftest*
 
12662
   LDFLAGS="$save_LDFLAGS"
 
12663
 
 
12664
fi
 
12665
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12666
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12667
 
 
12668
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12669
    :
 
12670
else
 
12671
    lt_prog_compiler_static_CXX=
 
12672
fi
 
12673
 
 
12674
 
 
12675
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12676
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12677
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12679
else
 
12680
  lt_cv_prog_compiler_c_o_CXX=no
 
12681
   $rm -r conftest 2>/dev/null
 
12682
   mkdir conftest
 
12683
   cd conftest
 
12684
   mkdir out
 
12685
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12686
 
 
12687
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12688
   # Insert the option either (1) after the last *FLAGS variable, or
 
12689
   # (2) before a word containing "conftest.", or (3) at the end.
 
12690
   # Note that $ac_compile itself does not contain backslashes and begins
 
12691
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12692
   lt_compile=`echo "$ac_compile" | $SED \
 
12693
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12694
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12695
   -e 's:$: $lt_compiler_flag:'`
 
12696
   (eval echo "\"\$as_me:12696: $lt_compile\"" >&5)
 
12697
   (eval "$lt_compile" 2>out/conftest.err)
 
12698
   ac_status=$?
 
12699
   cat out/conftest.err >&5
 
12700
   echo "$as_me:12700: \$? = $ac_status" >&5
 
12701
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12702
   then
 
12703
     # The compiler can only warn and ignore the option if not recognized
 
12704
     # So say no if there are warnings
 
12705
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12706
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12707
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12708
       lt_cv_prog_compiler_c_o_CXX=yes
 
12709
     fi
 
12710
   fi
 
12711
   chmod u+w . 2>&5
 
12712
   $rm conftest*
 
12713
   # SGI C++ compiler will create directory out/ii_files/ for
 
12714
   # template instantiation
 
12715
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12716
   $rm out/* && rmdir out
 
12717
   cd ..
 
12718
   rmdir conftest
 
12719
   $rm conftest*
 
12720
 
 
12721
fi
 
12722
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12723
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12724
 
 
12725
 
 
12726
hard_links="nottested"
 
12727
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12728
  # do not overwrite the value of need_locks provided by the user
 
12729
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12730
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
12731
  hard_links=yes
 
12732
  $rm conftest*
 
12733
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12734
  touch conftest.a
 
12735
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12736
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12737
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12738
echo "${ECHO_T}$hard_links" >&6; }
 
12739
  if test "$hard_links" = no; then
 
12740
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12741
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12742
    need_locks=warn
 
12743
  fi
 
12744
else
 
12745
  need_locks=no
 
12746
fi
 
12747
 
 
12748
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12749
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12750
 
 
12751
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12752
  case $host_os in
 
12753
  aix4* | aix5*)
 
12754
    # If we're using GNU nm, then we don't want the "-C" option.
 
12755
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12756
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12757
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12758
    else
 
12759
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12760
    fi
 
12761
    ;;
 
12762
  pw32*)
 
12763
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12764
  ;;
 
12765
  cygwin* | mingw*)
 
12766
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
12767
  ;;
 
12768
  *)
 
12769
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12770
  ;;
 
12771
  esac
 
12772
 
 
12773
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12774
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12775
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12776
 
 
12777
#
 
12778
# Do we need to explicitly link libc?
 
12779
#
 
12780
case "x$archive_cmds_need_lc_CXX" in
 
12781
x|xyes)
 
12782
  # Assume -lc should be added
 
12783
  archive_cmds_need_lc_CXX=yes
 
12784
 
 
12785
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12786
    case $archive_cmds_CXX in
 
12787
    *'~'*)
 
12788
      # FIXME: we may have to deal with multi-command sequences.
 
12789
      ;;
 
12790
    '$CC '*)
 
12791
      # Test whether the compiler implicitly links with -lc since on some
 
12792
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12793
      # to ld, don't add -lc before -lgcc.
 
12794
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12795
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
12796
      $rm conftest*
 
12797
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12798
 
 
12799
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12800
  (eval $ac_compile) 2>&5
 
12801
  ac_status=$?
 
12802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12803
  (exit $ac_status); } 2>conftest.err; then
 
12804
        soname=conftest
 
12805
        lib=conftest
 
12806
        libobjs=conftest.$ac_objext
 
12807
        deplibs=
 
12808
        wl=$lt_prog_compiler_wl_CXX
 
12809
        pic_flag=$lt_prog_compiler_pic_CXX
 
12810
        compiler_flags=-v
 
12811
        linker_flags=-v
 
12812
        verstring=
 
12813
        output_objdir=.
 
12814
        libname=conftest
 
12815
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12816
        allow_undefined_flag_CXX=
 
12817
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12818
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12819
  ac_status=$?
 
12820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12821
  (exit $ac_status); }
 
12822
        then
 
12823
          archive_cmds_need_lc_CXX=no
 
12824
        else
 
12825
          archive_cmds_need_lc_CXX=yes
 
12826
        fi
 
12827
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12828
      else
 
12829
        cat conftest.err 1>&5
 
12830
      fi
 
12831
      $rm conftest*
 
12832
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12833
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
12834
      ;;
 
12835
    esac
 
12836
  fi
 
12837
  ;;
 
12838
esac
 
12839
 
 
12840
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12841
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
12842
library_names_spec=
 
12843
libname_spec='lib$name'
 
12844
soname_spec=
 
12845
shrext_cmds=".so"
 
12846
postinstall_cmds=
 
12847
postuninstall_cmds=
 
12848
finish_cmds=
 
12849
finish_eval=
 
12850
shlibpath_var=
 
12851
shlibpath_overrides_runpath=unknown
 
12852
version_type=none
 
12853
dynamic_linker="$host_os ld.so"
 
12854
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12855
 
 
12856
need_lib_prefix=unknown
 
12857
hardcode_into_libs=no
 
12858
 
 
12859
# when you set need_version to no, make sure it does not cause -set_version
 
12860
# flags to be left without arguments
 
12861
need_version=unknown
 
12862
 
 
12863
case $host_os in
 
12864
aix3*)
 
12865
  version_type=linux
 
12866
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12867
  shlibpath_var=LIBPATH
 
12868
 
 
12869
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12870
  soname_spec='${libname}${release}${shared_ext}$major'
 
12871
  ;;
 
12872
 
 
12873
aix4* | aix5*)
 
12874
  version_type=linux
 
12875
  need_lib_prefix=no
 
12876
  need_version=no
 
12877
  hardcode_into_libs=yes
 
12878
  if test "$host_cpu" = ia64; then
 
12879
    # AIX 5 supports IA64
 
12880
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12881
    shlibpath_var=LD_LIBRARY_PATH
 
12882
  else
 
12883
    # With GCC up to 2.95.x, collect2 would create an import file
 
12884
    # for dependence libraries.  The import file would start with
 
12885
    # the line `#! .'.  This would cause the generated library to
 
12886
    # depend on `.', always an invalid library.  This was fixed in
 
12887
    # development snapshots of GCC prior to 3.0.
 
12888
    case $host_os in
 
12889
      aix4 | aix4.[01] | aix4.[01].*)
 
12890
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12891
           echo ' yes '
 
12892
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12893
        :
 
12894
      else
 
12895
        can_build_shared=no
 
12896
      fi
 
12897
      ;;
 
12898
    esac
 
12899
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12900
    # soname into executable. Probably we can add versioning support to
 
12901
    # collect2, so additional links can be useful in future.
 
12902
    if test "$aix_use_runtimelinking" = yes; then
 
12903
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12904
      # instead of lib<name>.a to let people know that these are not
 
12905
      # typical AIX shared libraries.
 
12906
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12907
    else
 
12908
      # We preserve .a as extension for shared libraries through AIX4.2
 
12909
      # and later when we are not doing run time linking.
 
12910
      library_names_spec='${libname}${release}.a $libname.a'
 
12911
      soname_spec='${libname}${release}${shared_ext}$major'
 
12912
    fi
 
12913
    shlibpath_var=LIBPATH
 
12914
  fi
 
12915
  ;;
 
12916
 
 
12917
amigaos*)
 
12918
  library_names_spec='$libname.ixlibrary $libname.a'
 
12919
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12920
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
12921
  ;;
 
12922
 
 
12923
beos*)
 
12924
  library_names_spec='${libname}${shared_ext}'
 
12925
  dynamic_linker="$host_os ld.so"
 
12926
  shlibpath_var=LIBRARY_PATH
 
12927
  ;;
 
12928
 
 
12929
bsdi[45]*)
 
12930
  version_type=linux
 
12931
  need_version=no
 
12932
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12933
  soname_spec='${libname}${release}${shared_ext}$major'
 
12934
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12935
  shlibpath_var=LD_LIBRARY_PATH
 
12936
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12937
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12938
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12939
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12940
  # libtool to hard-code these into programs
 
12941
  ;;
 
12942
 
 
12943
cygwin* | mingw* | pw32*)
 
12944
  version_type=windows
 
12945
  shrext_cmds=".dll"
 
12946
  need_version=no
 
12947
  need_lib_prefix=no
 
12948
 
 
12949
  case $GCC,$host_os in
 
12950
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12951
    library_names_spec='$libname.dll.a'
 
12952
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12953
    postinstall_cmds='base_file=`basename \${file}`~
 
12954
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12955
      dldir=$destdir/`dirname \$dlpath`~
 
12956
      test -d \$dldir || mkdir -p \$dldir~
 
12957
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12958
      chmod a+x \$dldir/$dlname'
 
12959
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12960
      dlpath=$dir/\$dldll~
 
12961
       $rm \$dlpath'
 
12962
    shlibpath_overrides_runpath=yes
 
12963
 
 
12964
    case $host_os in
 
12965
    cygwin*)
 
12966
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12967
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12968
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12969
      ;;
 
12970
    mingw*)
 
12971
      # MinGW DLLs use traditional 'lib' prefix
 
12972
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12973
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12974
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12975
        # It is most probably a Windows format PATH printed by
 
12976
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12977
        # path with ; separators, and with drive letters. We can handle the
 
12978
        # drive letters (cygwin fileutils understands them), so leave them,
 
12979
        # especially as we might pass files found there to a mingw objdump,
 
12980
        # which wouldn't understand a cygwinified path. Ahh.
 
12981
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12982
      else
 
12983
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12984
      fi
 
12985
      ;;
 
12986
    pw32*)
 
12987
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12988
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12989
      ;;
 
12990
    esac
 
12991
    ;;
 
12992
 
 
12993
  *)
 
12994
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12995
    ;;
 
12996
  esac
 
12997
  dynamic_linker='Win32 ld.exe'
 
12998
  # FIXME: first we should search . and the directory the executable is in
 
12999
  shlibpath_var=PATH
 
13000
  ;;
 
13001
 
 
13002
darwin* | rhapsody*)
 
13003
  dynamic_linker="$host_os dyld"
 
13004
  version_type=darwin
 
13005
  need_lib_prefix=no
 
13006
  need_version=no
 
13007
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13008
  soname_spec='${libname}${release}${major}$shared_ext'
 
13009
  shlibpath_overrides_runpath=yes
 
13010
  shlibpath_var=DYLD_LIBRARY_PATH
 
13011
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13012
 
 
13013
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13014
  ;;
 
13015
 
 
13016
dgux*)
 
13017
  version_type=linux
 
13018
  need_lib_prefix=no
 
13019
  need_version=no
 
13020
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13021
  soname_spec='${libname}${release}${shared_ext}$major'
 
13022
  shlibpath_var=LD_LIBRARY_PATH
 
13023
  ;;
 
13024
 
 
13025
freebsd1*)
 
13026
  dynamic_linker=no
 
13027
  ;;
 
13028
 
 
13029
freebsd* | dragonfly*)
 
13030
  # DragonFly does not have aout.  When/if they implement a new
 
13031
  # versioning mechanism, adjust this.
 
13032
  if test -x /usr/bin/objformat; then
 
13033
    objformat=`/usr/bin/objformat`
 
13034
  else
 
13035
    case $host_os in
 
13036
    freebsd[123]*) objformat=aout ;;
 
13037
    *) objformat=elf ;;
 
13038
    esac
 
13039
  fi
 
13040
  # Handle Gentoo/FreeBSD as it was Linux
 
13041
  case $host_vendor in
 
13042
    gentoo)
 
13043
      version_type=linux ;;
 
13044
    *)
 
13045
      version_type=freebsd-$objformat ;;
 
13046
  esac
 
13047
 
 
13048
  case $version_type in
 
13049
    freebsd-elf*)
 
13050
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13051
      need_version=no
 
13052
      need_lib_prefix=no
 
13053
      ;;
 
13054
    freebsd-*)
 
13055
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13056
      need_version=yes
 
13057
      ;;
 
13058
    linux)
 
13059
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13060
      soname_spec='${libname}${release}${shared_ext}$major'
 
13061
      need_lib_prefix=no
 
13062
      need_version=no
 
13063
      ;;
 
13064
  esac
 
13065
  shlibpath_var=LD_LIBRARY_PATH
 
13066
  case $host_os in
 
13067
  freebsd2*)
 
13068
    shlibpath_overrides_runpath=yes
 
13069
    ;;
 
13070
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13071
    shlibpath_overrides_runpath=yes
 
13072
    hardcode_into_libs=yes
 
13073
    ;;
 
13074
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13075
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13076
    shlibpath_overrides_runpath=no
 
13077
    hardcode_into_libs=yes
 
13078
    ;;
 
13079
  *) # from 4.6 on, and DragonFly
 
13080
    shlibpath_overrides_runpath=yes
 
13081
    hardcode_into_libs=yes
 
13082
    ;;
 
13083
  esac
 
13084
  ;;
 
13085
 
 
13086
gnu*)
 
13087
  version_type=linux
 
13088
  need_lib_prefix=no
 
13089
  need_version=no
 
13090
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13091
  soname_spec='${libname}${release}${shared_ext}$major'
 
13092
  shlibpath_var=LD_LIBRARY_PATH
 
13093
  hardcode_into_libs=yes
 
13094
  ;;
 
13095
 
 
13096
hpux9* | hpux10* | hpux11*)
 
13097
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13098
  # link against other versions.
 
13099
  version_type=sunos
 
13100
  need_lib_prefix=no
 
13101
  need_version=no
 
13102
  case $host_cpu in
 
13103
  ia64*)
 
13104
    shrext_cmds='.so'
 
13105
    hardcode_into_libs=yes
 
13106
    dynamic_linker="$host_os dld.so"
 
13107
    shlibpath_var=LD_LIBRARY_PATH
 
13108
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13109
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13110
    soname_spec='${libname}${release}${shared_ext}$major'
 
13111
    if test "X$HPUX_IA64_MODE" = X32; then
 
13112
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13113
    else
 
13114
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13115
    fi
 
13116
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13117
    ;;
 
13118
   hppa*64*)
 
13119
     shrext_cmds='.sl'
 
13120
     hardcode_into_libs=yes
 
13121
     dynamic_linker="$host_os dld.sl"
 
13122
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13123
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13124
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13125
     soname_spec='${libname}${release}${shared_ext}$major'
 
13126
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13127
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13128
     ;;
 
13129
   *)
 
13130
    shrext_cmds='.sl'
 
13131
    dynamic_linker="$host_os dld.sl"
 
13132
    shlibpath_var=SHLIB_PATH
 
13133
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13134
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13135
    soname_spec='${libname}${release}${shared_ext}$major'
 
13136
    ;;
 
13137
  esac
 
13138
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13139
  postinstall_cmds='chmod 555 $lib'
 
13140
  ;;
 
13141
 
 
13142
interix[3-9]*)
 
13143
  version_type=linux
 
13144
  need_lib_prefix=no
 
13145
  need_version=no
 
13146
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13147
  soname_spec='${libname}${release}${shared_ext}$major'
 
13148
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13149
  shlibpath_var=LD_LIBRARY_PATH
 
13150
  shlibpath_overrides_runpath=no
 
13151
  hardcode_into_libs=yes
 
13152
  ;;
 
13153
 
 
13154
irix5* | irix6* | nonstopux*)
 
13155
  case $host_os in
 
13156
    nonstopux*) version_type=nonstopux ;;
 
13157
    *)
 
13158
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13159
                version_type=linux
 
13160
        else
 
13161
                version_type=irix
 
13162
        fi ;;
 
13163
  esac
 
13164
  need_lib_prefix=no
 
13165
  need_version=no
 
13166
  soname_spec='${libname}${release}${shared_ext}$major'
 
13167
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13168
  case $host_os in
 
13169
  irix5* | nonstopux*)
 
13170
    libsuff= shlibsuff=
 
13171
    ;;
 
13172
  *)
 
13173
    case $LD in # libtool.m4 will add one of these switches to LD
 
13174
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13175
      libsuff= shlibsuff= libmagic=32-bit;;
 
13176
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13177
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13178
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13179
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13180
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13181
    esac
 
13182
    ;;
 
13183
  esac
 
13184
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13185
  shlibpath_overrides_runpath=no
 
13186
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13187
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13188
  hardcode_into_libs=yes
 
13189
  ;;
 
13190
 
 
13191
# No shared lib support for Linux oldld, aout, or coff.
 
13192
linux*oldld* | linux*aout* | linux*coff*)
 
13193
  dynamic_linker=no
 
13194
  ;;
 
13195
 
 
13196
# This must be Linux ELF.
 
13197
linux* | k*bsd*-gnu)
 
13198
  version_type=linux
 
13199
  need_lib_prefix=no
 
13200
  need_version=no
 
13201
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13202
  soname_spec='${libname}${release}${shared_ext}$major'
 
13203
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13204
  shlibpath_var=LD_LIBRARY_PATH
 
13205
  shlibpath_overrides_runpath=no
 
13206
  # This implies no fast_install, which is unacceptable.
 
13207
  # Some rework will be needed to allow for fast_install
 
13208
  # before this can be enabled.
 
13209
  hardcode_into_libs=yes
 
13210
 
 
13211
  # Append ld.so.conf contents to the search path
 
13212
  if test -f /etc/ld.so.conf; then
 
13213
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13214
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13215
  fi
 
13216
 
 
13217
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13218
  # powerpc, because MkLinux only supported shared libraries with the
 
13219
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13220
  # most powerpc-linux boxes support dynamic linking these days and
 
13221
  # people can always --disable-shared, the test was removed, and we
 
13222
  # assume the GNU/Linux dynamic linker is in use.
 
13223
  dynamic_linker='GNU/Linux ld.so'
 
13224
  ;;
 
13225
 
 
13226
netbsd*)
 
13227
  version_type=sunos
 
13228
  need_lib_prefix=no
 
13229
  need_version=no
 
13230
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13231
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13232
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13233
    dynamic_linker='NetBSD (a.out) ld.so'
 
13234
  else
 
13235
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13236
    soname_spec='${libname}${release}${shared_ext}$major'
 
13237
    dynamic_linker='NetBSD ld.elf_so'
 
13238
  fi
 
13239
  shlibpath_var=LD_LIBRARY_PATH
 
13240
  shlibpath_overrides_runpath=yes
 
13241
  hardcode_into_libs=yes
 
13242
  ;;
 
13243
 
 
13244
newsos6)
 
13245
  version_type=linux
 
13246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13247
  shlibpath_var=LD_LIBRARY_PATH
 
13248
  shlibpath_overrides_runpath=yes
 
13249
  ;;
 
13250
 
 
13251
nto-qnx*)
 
13252
  version_type=linux
 
13253
  need_lib_prefix=no
 
13254
  need_version=no
 
13255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13256
  soname_spec='${libname}${release}${shared_ext}$major'
 
13257
  shlibpath_var=LD_LIBRARY_PATH
 
13258
  shlibpath_overrides_runpath=yes
 
13259
  ;;
 
13260
 
 
13261
openbsd*)
 
13262
  version_type=sunos
 
13263
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13264
  need_lib_prefix=no
 
13265
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13266
  case $host_os in
 
13267
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13268
    *)                         need_version=no  ;;
 
13269
  esac
 
13270
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13271
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13272
  shlibpath_var=LD_LIBRARY_PATH
 
13273
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13274
    case $host_os in
 
13275
      openbsd2.[89] | openbsd2.[89].*)
 
13276
        shlibpath_overrides_runpath=no
 
13277
        ;;
 
13278
      *)
 
13279
        shlibpath_overrides_runpath=yes
 
13280
        ;;
 
13281
      esac
 
13282
  else
 
13283
    shlibpath_overrides_runpath=yes
 
13284
  fi
 
13285
  ;;
 
13286
 
 
13287
os2*)
 
13288
  libname_spec='$name'
 
13289
  shrext_cmds=".dll"
 
13290
  need_lib_prefix=no
 
13291
  library_names_spec='$libname${shared_ext} $libname.a'
 
13292
  dynamic_linker='OS/2 ld.exe'
 
13293
  shlibpath_var=LIBPATH
 
13294
  ;;
 
13295
 
 
13296
osf3* | osf4* | osf5*)
 
13297
  version_type=osf
 
13298
  need_lib_prefix=no
 
13299
  need_version=no
 
13300
  soname_spec='${libname}${release}${shared_ext}$major'
 
13301
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13302
  shlibpath_var=LD_LIBRARY_PATH
 
13303
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13304
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13305
  ;;
 
13306
 
 
13307
rdos*)
 
13308
  dynamic_linker=no
 
13309
  ;;
 
13310
 
 
13311
solaris*)
 
13312
  version_type=linux
 
13313
  need_lib_prefix=no
 
13314
  need_version=no
 
13315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13316
  soname_spec='${libname}${release}${shared_ext}$major'
 
13317
  shlibpath_var=LD_LIBRARY_PATH
 
13318
  shlibpath_overrides_runpath=yes
 
13319
  hardcode_into_libs=yes
 
13320
  # ldd complains unless libraries are executable
 
13321
  postinstall_cmds='chmod +x $lib'
 
13322
  ;;
 
13323
 
 
13324
sunos4*)
 
13325
  version_type=sunos
 
13326
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13327
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13328
  shlibpath_var=LD_LIBRARY_PATH
 
13329
  shlibpath_overrides_runpath=yes
 
13330
  if test "$with_gnu_ld" = yes; then
 
13331
    need_lib_prefix=no
 
13332
  fi
 
13333
  need_version=yes
 
13334
  ;;
 
13335
 
 
13336
sysv4 | sysv4.3*)
 
13337
  version_type=linux
 
13338
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13339
  soname_spec='${libname}${release}${shared_ext}$major'
 
13340
  shlibpath_var=LD_LIBRARY_PATH
 
13341
  case $host_vendor in
 
13342
    sni)
 
13343
      shlibpath_overrides_runpath=no
 
13344
      need_lib_prefix=no
 
13345
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13346
      runpath_var=LD_RUN_PATH
 
13347
      ;;
 
13348
    siemens)
 
13349
      need_lib_prefix=no
 
13350
      ;;
 
13351
    motorola)
 
13352
      need_lib_prefix=no
 
13353
      need_version=no
 
13354
      shlibpath_overrides_runpath=no
 
13355
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13356
      ;;
 
13357
  esac
 
13358
  ;;
 
13359
 
 
13360
sysv4*MP*)
 
13361
  if test -d /usr/nec ;then
 
13362
    version_type=linux
 
13363
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13364
    soname_spec='$libname${shared_ext}.$major'
 
13365
    shlibpath_var=LD_LIBRARY_PATH
 
13366
  fi
 
13367
  ;;
 
13368
 
 
13369
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13370
  version_type=freebsd-elf
 
13371
  need_lib_prefix=no
 
13372
  need_version=no
 
13373
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13374
  soname_spec='${libname}${release}${shared_ext}$major'
 
13375
  shlibpath_var=LD_LIBRARY_PATH
 
13376
  hardcode_into_libs=yes
 
13377
  if test "$with_gnu_ld" = yes; then
 
13378
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13379
    shlibpath_overrides_runpath=no
 
13380
  else
 
13381
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13382
    shlibpath_overrides_runpath=yes
 
13383
    case $host_os in
 
13384
      sco3.2v5*)
 
13385
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13386
        ;;
 
13387
    esac
 
13388
  fi
 
13389
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13390
  ;;
 
13391
 
 
13392
uts4*)
 
13393
  version_type=linux
 
13394
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13395
  soname_spec='${libname}${release}${shared_ext}$major'
 
13396
  shlibpath_var=LD_LIBRARY_PATH
 
13397
  ;;
 
13398
 
 
13399
*)
 
13400
  dynamic_linker=no
 
13401
  ;;
 
13402
esac
 
13403
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13404
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13405
test "$dynamic_linker" = no && can_build_shared=no
 
13406
 
 
13407
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13408
if test "$GCC" = yes; then
 
13409
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13410
fi
 
13411
 
 
13412
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13413
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13414
hardcode_action_CXX=
 
13415
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13416
   test -n "$runpath_var_CXX" || \
 
13417
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13418
 
 
13419
  # We can hardcode non-existant directories.
 
13420
  if test "$hardcode_direct_CXX" != no &&
 
13421
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13422
     # have to relink, otherwise we might link with an installed library
 
13423
     # when we should be linking with a yet-to-be-installed one
 
13424
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13425
     test "$hardcode_minus_L_CXX" != no; then
 
13426
    # Linking always hardcodes the temporary library directory.
 
13427
    hardcode_action_CXX=relink
 
13428
  else
 
13429
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13430
    hardcode_action_CXX=immediate
 
13431
  fi
 
13432
else
 
13433
  # We cannot hardcode anything, or else we can only hardcode existing
 
13434
  # directories.
 
13435
  hardcode_action_CXX=unsupported
 
13436
fi
 
13437
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13438
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13439
 
 
13440
if test "$hardcode_action_CXX" = relink; then
 
13441
  # Fast installation is not supported
 
13442
  enable_fast_install=no
 
13443
elif test "$shlibpath_overrides_runpath" = yes ||
 
13444
     test "$enable_shared" = no; then
 
13445
  # Fast installation is not necessary
 
13446
  enable_fast_install=needless
 
13447
fi
 
13448
 
 
13449
 
 
13450
# The else clause should only fire when bootstrapping the
 
13451
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13452
# with your package, and you will get complaints that there are
 
13453
# no rules to generate ltmain.sh.
 
13454
if test -f "$ltmain"; then
 
13455
  # See if we are running on zsh, and set the options which allow our commands through
 
13456
  # without removal of \ escapes.
 
13457
  if test -n "${ZSH_VERSION+set}" ; then
 
13458
    setopt NO_GLOB_SUBST
 
13459
  fi
 
13460
  # Now quote all the things that may contain metacharacters while being
 
13461
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13462
  # variables and quote the copies for generation of the libtool script.
 
13463
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13464
    SED SHELL STRIP \
 
13465
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13466
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13467
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13468
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13469
    lt_cv_sys_global_symbol_to_c_name_address \
 
13470
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13471
    old_postinstall_cmds old_postuninstall_cmds \
 
13472
    compiler_CXX \
 
13473
    CC_CXX \
 
13474
    LD_CXX \
 
13475
    lt_prog_compiler_wl_CXX \
 
13476
    lt_prog_compiler_pic_CXX \
 
13477
    lt_prog_compiler_static_CXX \
 
13478
    lt_prog_compiler_no_builtin_flag_CXX \
 
13479
    export_dynamic_flag_spec_CXX \
 
13480
    thread_safe_flag_spec_CXX \
 
13481
    whole_archive_flag_spec_CXX \
 
13482
    enable_shared_with_static_runtimes_CXX \
 
13483
    old_archive_cmds_CXX \
 
13484
    old_archive_from_new_cmds_CXX \
 
13485
    predep_objects_CXX \
 
13486
    postdep_objects_CXX \
 
13487
    predeps_CXX \
 
13488
    postdeps_CXX \
 
13489
    compiler_lib_search_path_CXX \
 
13490
    archive_cmds_CXX \
 
13491
    archive_expsym_cmds_CXX \
 
13492
    postinstall_cmds_CXX \
 
13493
    postuninstall_cmds_CXX \
 
13494
    old_archive_from_expsyms_cmds_CXX \
 
13495
    allow_undefined_flag_CXX \
 
13496
    no_undefined_flag_CXX \
 
13497
    export_symbols_cmds_CXX \
 
13498
    hardcode_libdir_flag_spec_CXX \
 
13499
    hardcode_libdir_flag_spec_ld_CXX \
 
13500
    hardcode_libdir_separator_CXX \
 
13501
    hardcode_automatic_CXX \
 
13502
    module_cmds_CXX \
 
13503
    module_expsym_cmds_CXX \
 
13504
    lt_cv_prog_compiler_c_o_CXX \
 
13505
    fix_srcfile_path_CXX \
 
13506
    exclude_expsyms_CXX \
 
13507
    include_expsyms_CXX; do
 
13508
 
 
13509
    case $var in
 
13510
    old_archive_cmds_CXX | \
 
13511
    old_archive_from_new_cmds_CXX | \
 
13512
    archive_cmds_CXX | \
 
13513
    archive_expsym_cmds_CXX | \
 
13514
    module_cmds_CXX | \
 
13515
    module_expsym_cmds_CXX | \
 
13516
    old_archive_from_expsyms_cmds_CXX | \
 
13517
    export_symbols_cmds_CXX | \
 
13518
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13519
    postinstall_cmds | postuninstall_cmds | \
 
13520
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13521
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13522
      # Double-quote double-evaled strings.
 
13523
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13524
      ;;
 
13525
    *)
 
13526
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13527
      ;;
 
13528
    esac
 
13529
  done
 
13530
 
 
13531
  case $lt_echo in
 
13532
  *'\$0 --fallback-echo"')
 
13533
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13534
    ;;
 
13535
  esac
 
13536
 
 
13537
cfgfile="$ofile"
 
13538
 
 
13539
  cat <<__EOF__ >> "$cfgfile"
 
13540
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13541
 
 
13542
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13543
 
 
13544
# Shell to use when invoking shell scripts.
 
13545
SHELL=$lt_SHELL
 
13546
 
 
13547
# Whether or not to build shared libraries.
 
13548
build_libtool_libs=$enable_shared
 
13549
 
 
13550
# Whether or not to build static libraries.
 
13551
build_old_libs=$enable_static
 
13552
 
 
13553
# Whether or not to add -lc for building shared libraries.
 
13554
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13555
 
 
13556
# Whether or not to disallow shared libs when runtime libs are static
 
13557
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13558
 
 
13559
# Whether or not to optimize for fast installation.
 
13560
fast_install=$enable_fast_install
 
13561
 
 
13562
# The host system.
 
13563
host_alias=$host_alias
 
13564
host=$host
 
13565
host_os=$host_os
 
13566
 
 
13567
# The build system.
 
13568
build_alias=$build_alias
 
13569
build=$build
 
13570
build_os=$build_os
 
13571
 
 
13572
# An echo program that does not interpret backslashes.
 
13573
echo=$lt_echo
 
13574
 
 
13575
# The archiver.
 
13576
AR=$lt_AR
 
13577
AR_FLAGS=$lt_AR_FLAGS
 
13578
 
 
13579
# A C compiler.
 
13580
LTCC=$lt_LTCC
 
13581
 
 
13582
# LTCC compiler flags.
 
13583
LTCFLAGS=$lt_LTCFLAGS
 
13584
 
 
13585
# A language-specific compiler.
 
13586
CC=$lt_compiler_CXX
 
13587
 
 
13588
# Is the compiler the GNU C compiler?
 
13589
with_gcc=$GCC_CXX
 
13590
 
 
13591
# An ERE matcher.
 
13592
EGREP=$lt_EGREP
 
13593
 
 
13594
# The linker used to build libraries.
 
13595
LD=$lt_LD_CXX
 
13596
 
 
13597
# Whether we need hard or soft links.
 
13598
LN_S=$lt_LN_S
 
13599
 
 
13600
# A BSD-compatible nm program.
 
13601
NM=$lt_NM
 
13602
 
 
13603
# A symbol stripping program
 
13604
STRIP=$lt_STRIP
 
13605
 
 
13606
# Used to examine libraries when file_magic_cmd begins "file"
 
13607
MAGIC_CMD=$MAGIC_CMD
 
13608
 
 
13609
# Used on cygwin: DLL creation program.
 
13610
DLLTOOL="$DLLTOOL"
 
13611
 
 
13612
# Used on cygwin: object dumper.
 
13613
OBJDUMP="$OBJDUMP"
 
13614
 
 
13615
# Used on cygwin: assembler.
 
13616
AS="$AS"
 
13617
 
 
13618
# The name of the directory that contains temporary libtool files.
 
13619
objdir=$objdir
 
13620
 
 
13621
# How to create reloadable object files.
 
13622
reload_flag=$lt_reload_flag
 
13623
reload_cmds=$lt_reload_cmds
 
13624
 
 
13625
# How to pass a linker flag through the compiler.
 
13626
wl=$lt_lt_prog_compiler_wl_CXX
 
13627
 
 
13628
# Object file suffix (normally "o").
 
13629
objext="$ac_objext"
 
13630
 
 
13631
# Old archive suffix (normally "a").
 
13632
libext="$libext"
 
13633
 
 
13634
# Shared library suffix (normally ".so").
 
13635
shrext_cmds='$shrext_cmds'
 
13636
 
 
13637
# Executable file suffix (normally "").
 
13638
exeext="$exeext"
 
13639
 
 
13640
# Additional compiler flags for building library objects.
 
13641
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13642
pic_mode=$pic_mode
 
13643
 
 
13644
# What is the maximum length of a command?
 
13645
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13646
 
 
13647
# Does compiler simultaneously support -c and -o options?
 
13648
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13649
 
 
13650
# Must we lock files when doing compilation?
 
13651
need_locks=$lt_need_locks
 
13652
 
 
13653
# Do we need the lib prefix for modules?
 
13654
need_lib_prefix=$need_lib_prefix
 
13655
 
 
13656
# Do we need a version for libraries?
 
13657
need_version=$need_version
 
13658
 
 
13659
# Whether dlopen is supported.
 
13660
dlopen_support=$enable_dlopen
 
13661
 
 
13662
# Whether dlopen of programs is supported.
 
13663
dlopen_self=$enable_dlopen_self
 
13664
 
 
13665
# Whether dlopen of statically linked programs is supported.
 
13666
dlopen_self_static=$enable_dlopen_self_static
 
13667
 
 
13668
# Compiler flag to prevent dynamic linking.
 
13669
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13670
 
 
13671
# Compiler flag to turn off builtin functions.
 
13672
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13673
 
 
13674
# Compiler flag to allow reflexive dlopens.
 
13675
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13676
 
 
13677
# Compiler flag to generate shared objects directly from archives.
 
13678
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13679
 
 
13680
# Compiler flag to generate thread-safe objects.
 
13681
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13682
 
 
13683
# Library versioning type.
 
13684
version_type=$version_type
 
13685
 
 
13686
# Format of library name prefix.
 
13687
libname_spec=$lt_libname_spec
 
13688
 
 
13689
# List of archive names.  First name is the real one, the rest are links.
 
13690
# The last name is the one that the linker finds with -lNAME.
 
13691
library_names_spec=$lt_library_names_spec
 
13692
 
 
13693
# The coded name of the library, if different from the real name.
 
13694
soname_spec=$lt_soname_spec
 
13695
 
 
13696
# Commands used to build and install an old-style archive.
 
13697
RANLIB=$lt_RANLIB
 
13698
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13699
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13700
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13701
 
 
13702
# Create an old-style archive from a shared archive.
 
13703
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13704
 
 
13705
# Create a temporary old-style archive to link instead of a shared archive.
 
13706
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13707
 
 
13708
# Commands used to build and install a shared archive.
 
13709
archive_cmds=$lt_archive_cmds_CXX
 
13710
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13711
postinstall_cmds=$lt_postinstall_cmds
 
13712
postuninstall_cmds=$lt_postuninstall_cmds
 
13713
 
 
13714
# Commands used to build a loadable module (assumed same as above if empty)
 
13715
module_cmds=$lt_module_cmds_CXX
 
13716
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13717
 
 
13718
# Commands to strip libraries.
 
13719
old_striplib=$lt_old_striplib
 
13720
striplib=$lt_striplib
 
13721
 
 
13722
# Dependencies to place before the objects being linked to create a
 
13723
# shared library.
 
13724
predep_objects=$lt_predep_objects_CXX
 
13725
 
 
13726
# Dependencies to place after the objects being linked to create a
 
13727
# shared library.
 
13728
postdep_objects=$lt_postdep_objects_CXX
 
13729
 
 
13730
# Dependencies to place before the objects being linked to create a
 
13731
# shared library.
 
13732
predeps=$lt_predeps_CXX
 
13733
 
 
13734
# Dependencies to place after the objects being linked to create a
 
13735
# shared library.
 
13736
postdeps=$lt_postdeps_CXX
 
13737
 
 
13738
# The library search path used internally by the compiler when linking
 
13739
# a shared library.
 
13740
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13741
 
 
13742
# Method to check whether dependent libraries are shared objects.
 
13743
deplibs_check_method=$lt_deplibs_check_method
 
13744
 
 
13745
# Command to use when deplibs_check_method == file_magic.
 
13746
file_magic_cmd=$lt_file_magic_cmd
 
13747
 
 
13748
# Flag that allows shared libraries with undefined symbols to be built.
 
13749
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13750
 
 
13751
# Flag that forces no undefined symbols.
 
13752
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13753
 
 
13754
# Commands used to finish a libtool library installation in a directory.
 
13755
finish_cmds=$lt_finish_cmds
 
13756
 
 
13757
# Same as above, but a single script fragment to be evaled but not shown.
 
13758
finish_eval=$lt_finish_eval
 
13759
 
 
13760
# Take the output of nm and produce a listing of raw symbols and C names.
 
13761
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13762
 
 
13763
# Transform the output of nm in a proper C declaration
 
13764
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13765
 
 
13766
# Transform the output of nm in a C name address pair
 
13767
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13768
 
 
13769
# This is the shared library runtime path variable.
 
13770
runpath_var=$runpath_var
 
13771
 
 
13772
# This is the shared library path variable.
 
13773
shlibpath_var=$shlibpath_var
 
13774
 
 
13775
# Is shlibpath searched before the hard-coded library search path?
 
13776
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13777
 
 
13778
# How to hardcode a shared library path into an executable.
 
13779
hardcode_action=$hardcode_action_CXX
 
13780
 
 
13781
# Whether we should hardcode library paths into libraries.
 
13782
hardcode_into_libs=$hardcode_into_libs
 
13783
 
 
13784
# Flag to hardcode \$libdir into a binary during linking.
 
13785
# This must work even if \$libdir does not exist.
 
13786
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13787
 
 
13788
# If ld is used when linking, flag to hardcode \$libdir into
 
13789
# a binary during linking. This must work even if \$libdir does
 
13790
# not exist.
 
13791
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13792
 
 
13793
# Whether we need a single -rpath flag with a separated argument.
 
13794
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13795
 
 
13796
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13797
# resulting binary.
 
13798
hardcode_direct=$hardcode_direct_CXX
 
13799
 
 
13800
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13801
# resulting binary.
 
13802
hardcode_minus_L=$hardcode_minus_L_CXX
 
13803
 
 
13804
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13805
# the resulting binary.
 
13806
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13807
 
 
13808
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13809
# and all subsequent libraries and executables linked against it.
 
13810
hardcode_automatic=$hardcode_automatic_CXX
 
13811
 
 
13812
# Variables whose values should be saved in libtool wrapper scripts and
 
13813
# restored at relink time.
 
13814
variables_saved_for_relink="$variables_saved_for_relink"
 
13815
 
 
13816
# Whether libtool must link a program against all its dependency libraries.
 
13817
link_all_deplibs=$link_all_deplibs_CXX
 
13818
 
 
13819
# Compile-time system search path for libraries
 
13820
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13821
 
 
13822
# Run-time system search path for libraries
 
13823
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13824
 
 
13825
# Fix the shell variable \$srcfile for the compiler.
 
13826
fix_srcfile_path=$lt_fix_srcfile_path
 
13827
 
 
13828
# Set to yes if exported symbols are required.
 
13829
always_export_symbols=$always_export_symbols_CXX
 
13830
 
 
13831
# The commands to list exported symbols.
 
13832
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13833
 
 
13834
# The commands to extract the exported symbol list from a shared archive.
 
13835
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13836
 
 
13837
# Symbols that should not be listed in the preloaded symbols.
 
13838
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13839
 
 
13840
# Symbols that must always be exported.
 
13841
include_expsyms=$lt_include_expsyms_CXX
 
13842
 
 
13843
# ### END LIBTOOL TAG CONFIG: $tagname
 
13844
 
 
13845
__EOF__
 
13846
 
 
13847
 
 
13848
else
 
13849
  # If there is no Makefile yet, we rely on a make rule to execute
 
13850
  # `config.status --recheck' to rerun these tests and create the
 
13851
  # libtool script then.
 
13852
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13853
  if test -f "$ltmain_in"; then
 
13854
    test -f Makefile && make "$ltmain"
 
13855
  fi
 
13856
fi
 
13857
 
 
13858
 
 
13859
ac_ext=c
 
13860
ac_cpp='$CPP $CPPFLAGS'
 
13861
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13862
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13863
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13864
 
 
13865
CC=$lt_save_CC
 
13866
LDCXX=$LD
 
13867
LD=$lt_save_LD
 
13868
GCC=$lt_save_GCC
 
13869
with_gnu_ldcxx=$with_gnu_ld
 
13870
with_gnu_ld=$lt_save_with_gnu_ld
 
13871
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13872
lt_cv_path_LD=$lt_save_path_LD
 
13873
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13874
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13875
 
 
13876
        else
 
13877
          tagname=""
 
13878
        fi
 
13879
        ;;
 
13880
 
 
13881
      F77)
 
13882
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13883
 
 
13884
ac_ext=f
 
13885
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13886
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13887
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13888
 
 
13889
 
 
13890
archive_cmds_need_lc_F77=no
 
13891
allow_undefined_flag_F77=
 
13892
always_export_symbols_F77=no
 
13893
archive_expsym_cmds_F77=
 
13894
export_dynamic_flag_spec_F77=
 
13895
hardcode_direct_F77=no
 
13896
hardcode_libdir_flag_spec_F77=
 
13897
hardcode_libdir_flag_spec_ld_F77=
 
13898
hardcode_libdir_separator_F77=
 
13899
hardcode_minus_L_F77=no
 
13900
hardcode_automatic_F77=no
 
13901
module_cmds_F77=
 
13902
module_expsym_cmds_F77=
 
13903
link_all_deplibs_F77=unknown
 
13904
old_archive_cmds_F77=$old_archive_cmds
 
13905
no_undefined_flag_F77=
 
13906
whole_archive_flag_spec_F77=
 
13907
enable_shared_with_static_runtimes_F77=no
 
13908
 
 
13909
# Source file extension for f77 test sources.
 
13910
ac_ext=f
 
13911
 
 
13912
# Object file extension for compiled f77 test sources.
 
13913
objext=o
 
13914
objext_F77=$objext
 
13915
 
 
13916
# Code to be used in simple compile tests
 
13917
lt_simple_compile_test_code="\
 
13918
      subroutine t
 
13919
      return
 
13920
      end
 
13921
"
 
13922
 
 
13923
# Code to be used in simple link tests
 
13924
lt_simple_link_test_code="\
 
13925
      program t
 
13926
      end
 
13927
"
 
13928
 
 
13929
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13930
 
 
13931
# If no C compiler was specified, use CC.
 
13932
LTCC=${LTCC-"$CC"}
 
13933
 
 
13934
# If no C compiler flags were specified, use CFLAGS.
 
13935
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13936
 
 
13937
# Allow CC to be a program name with arguments.
 
13938
compiler=$CC
 
13939
 
 
13940
 
 
13941
# save warnings/boilerplate of simple test code
 
13942
ac_outfile=conftest.$ac_objext
 
13943
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13944
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13945
_lt_compiler_boilerplate=`cat conftest.err`
 
13946
$rm conftest*
 
13947
 
 
13948
ac_outfile=conftest.$ac_objext
 
13949
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
13950
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13951
_lt_linker_boilerplate=`cat conftest.err`
 
13952
$rm conftest*
 
13953
 
 
13954
 
 
13955
# Allow CC to be a program name with arguments.
 
13956
lt_save_CC="$CC"
 
13957
CC=${F77-"f77"}
 
13958
compiler=$CC
 
13959
compiler_F77=$CC
 
13960
for cc_temp in $compiler""; do
 
13961
  case $cc_temp in
 
13962
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13963
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13964
    \-*) ;;
 
13965
    *) break;;
 
13966
  esac
 
13967
done
 
13968
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13969
 
 
13970
 
 
13971
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13972
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
13973
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13974
echo "${ECHO_T}$can_build_shared" >&6; }
 
13975
 
 
13976
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13977
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
13978
test "$can_build_shared" = "no" && enable_shared=no
 
13979
 
 
13980
# On AIX, shared libraries and static libraries use the same namespace, and
 
13981
# are all built from PIC.
 
13982
case $host_os in
 
13983
aix3*)
 
13984
  test "$enable_shared" = yes && enable_static=no
 
13985
  if test -n "$RANLIB"; then
 
13986
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13987
    postinstall_cmds='$RANLIB $lib'
 
13988
  fi
 
13989
  ;;
 
13990
aix4* | aix5*)
 
13991
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13992
    test "$enable_shared" = yes && enable_static=no
 
13993
  fi
 
13994
  ;;
 
13995
esac
 
13996
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13997
echo "${ECHO_T}$enable_shared" >&6; }
 
13998
 
 
13999
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14000
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
14001
# Make sure either enable_shared or enable_static is yes.
 
14002
test "$enable_shared" = yes || enable_static=yes
 
14003
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14004
echo "${ECHO_T}$enable_static" >&6; }
 
14005
 
 
14006
GCC_F77="$G77"
 
14007
LD_F77="$LD"
 
14008
 
 
14009
lt_prog_compiler_wl_F77=
 
14010
lt_prog_compiler_pic_F77=
 
14011
lt_prog_compiler_static_F77=
 
14012
 
 
14013
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14014
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14015
 
 
14016
  if test "$GCC" = yes; then
 
14017
    lt_prog_compiler_wl_F77='-Wl,'
 
14018
    lt_prog_compiler_static_F77='-static'
 
14019
 
 
14020
    case $host_os in
 
14021
      aix*)
 
14022
      # All AIX code is PIC.
 
14023
      if test "$host_cpu" = ia64; then
 
14024
        # AIX 5 now supports IA64 processor
 
14025
        lt_prog_compiler_static_F77='-Bstatic'
 
14026
      fi
 
14027
      ;;
 
14028
 
 
14029
    amigaos*)
 
14030
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14031
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14032
      # like `-m68040'.
 
14033
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14034
      ;;
 
14035
 
 
14036
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14037
      # PIC is the default for these OSes.
 
14038
      ;;
 
14039
 
 
14040
    mingw* | cygwin* | pw32* | os2*)
 
14041
      # This hack is so that the source file can tell whether it is being
 
14042
      # built for inclusion in a dll (and should export symbols for example).
 
14043
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14044
      # (--disable-auto-import) libraries
 
14045
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14046
      ;;
 
14047
 
 
14048
    darwin* | rhapsody*)
 
14049
      # PIC is the default on this platform
 
14050
      # Common symbols not allowed in MH_DYLIB files
 
14051
      lt_prog_compiler_pic_F77='-fno-common'
 
14052
      ;;
 
14053
 
 
14054
    interix[3-9]*)
 
14055
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14056
      # Instead, we relocate shared libraries at runtime.
 
14057
      ;;
 
14058
 
 
14059
    msdosdjgpp*)
 
14060
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14061
      # on systems that don't support them.
 
14062
      lt_prog_compiler_can_build_shared_F77=no
 
14063
      enable_shared=no
 
14064
      ;;
 
14065
 
 
14066
    sysv4*MP*)
 
14067
      if test -d /usr/nec; then
 
14068
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14069
      fi
 
14070
      ;;
 
14071
 
 
14072
    hpux*)
 
14073
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14074
      # not for PA HP-UX.
 
14075
      case $host_cpu in
 
14076
      hppa*64*|ia64*)
 
14077
        # +Z the default
 
14078
        ;;
 
14079
      *)
 
14080
        lt_prog_compiler_pic_F77='-fPIC'
 
14081
        ;;
 
14082
      esac
 
14083
      ;;
 
14084
 
 
14085
    *)
 
14086
      lt_prog_compiler_pic_F77='-fPIC'
 
14087
      ;;
 
14088
    esac
 
14089
  else
 
14090
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14091
    case $host_os in
 
14092
    aix*)
 
14093
      lt_prog_compiler_wl_F77='-Wl,'
 
14094
      if test "$host_cpu" = ia64; then
 
14095
        # AIX 5 now supports IA64 processor
 
14096
        lt_prog_compiler_static_F77='-Bstatic'
 
14097
      else
 
14098
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14099
      fi
 
14100
      ;;
 
14101
      darwin*)
 
14102
        # PIC is the default on this platform
 
14103
        # Common symbols not allowed in MH_DYLIB files
 
14104
       case $cc_basename in
 
14105
         xlc*)
 
14106
         lt_prog_compiler_pic_F77='-qnocommon'
 
14107
         lt_prog_compiler_wl_F77='-Wl,'
 
14108
         ;;
 
14109
       esac
 
14110
       ;;
 
14111
 
 
14112
    mingw* | cygwin* | pw32* | os2*)
 
14113
      # This hack is so that the source file can tell whether it is being
 
14114
      # built for inclusion in a dll (and should export symbols for example).
 
14115
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14116
      ;;
 
14117
 
 
14118
    hpux9* | hpux10* | hpux11*)
 
14119
      lt_prog_compiler_wl_F77='-Wl,'
 
14120
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14121
      # not for PA HP-UX.
 
14122
      case $host_cpu in
 
14123
      hppa*64*|ia64*)
 
14124
        # +Z the default
 
14125
        ;;
 
14126
      *)
 
14127
        lt_prog_compiler_pic_F77='+Z'
 
14128
        ;;
 
14129
      esac
 
14130
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14131
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14132
      ;;
 
14133
 
 
14134
    irix5* | irix6* | nonstopux*)
 
14135
      lt_prog_compiler_wl_F77='-Wl,'
 
14136
      # PIC (with -KPIC) is the default.
 
14137
      lt_prog_compiler_static_F77='-non_shared'
 
14138
      ;;
 
14139
 
 
14140
    newsos6)
 
14141
      lt_prog_compiler_pic_F77='-KPIC'
 
14142
      lt_prog_compiler_static_F77='-Bstatic'
 
14143
      ;;
 
14144
 
 
14145
    linux* | k*bsd*-gnu)
 
14146
      case $cc_basename in
 
14147
      icc* | ecc*)
 
14148
        lt_prog_compiler_wl_F77='-Wl,'
 
14149
        lt_prog_compiler_pic_F77='-KPIC'
 
14150
        lt_prog_compiler_static_F77='-static'
 
14151
        ;;
 
14152
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14153
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14154
        # which looks to be a dead project)
 
14155
        lt_prog_compiler_wl_F77='-Wl,'
 
14156
        lt_prog_compiler_pic_F77='-fpic'
 
14157
        lt_prog_compiler_static_F77='-Bstatic'
 
14158
        ;;
 
14159
      ccc*)
 
14160
        lt_prog_compiler_wl_F77='-Wl,'
 
14161
        # All Alpha code is PIC.
 
14162
        lt_prog_compiler_static_F77='-non_shared'
 
14163
        ;;
 
14164
      *)
 
14165
        case `$CC -V 2>&1 | sed 5q` in
 
14166
        *Sun\ C*)
 
14167
          # Sun C 5.9
 
14168
          lt_prog_compiler_pic_F77='-KPIC'
 
14169
          lt_prog_compiler_static_F77='-Bstatic'
 
14170
          lt_prog_compiler_wl_F77='-Wl,'
 
14171
          ;;
 
14172
        *Sun\ F*)
 
14173
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14174
          lt_prog_compiler_pic_F77='-KPIC'
 
14175
          lt_prog_compiler_static_F77='-Bstatic'
 
14176
          lt_prog_compiler_wl_F77=''
 
14177
          ;;
 
14178
        esac
 
14179
        ;;
 
14180
      esac
 
14181
      ;;
 
14182
 
 
14183
    osf3* | osf4* | osf5*)
 
14184
      lt_prog_compiler_wl_F77='-Wl,'
 
14185
      # All OSF/1 code is PIC.
 
14186
      lt_prog_compiler_static_F77='-non_shared'
 
14187
      ;;
 
14188
 
 
14189
    rdos*)
 
14190
      lt_prog_compiler_static_F77='-non_shared'
 
14191
      ;;
 
14192
 
 
14193
    solaris*)
 
14194
      lt_prog_compiler_pic_F77='-KPIC'
 
14195
      lt_prog_compiler_static_F77='-Bstatic'
 
14196
      case $cc_basename in
 
14197
      f77* | f90* | f95*)
 
14198
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14199
      *)
 
14200
        lt_prog_compiler_wl_F77='-Wl,';;
 
14201
      esac
 
14202
      ;;
 
14203
 
 
14204
    sunos4*)
 
14205
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14206
      lt_prog_compiler_pic_F77='-PIC'
 
14207
      lt_prog_compiler_static_F77='-Bstatic'
 
14208
      ;;
 
14209
 
 
14210
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14211
      lt_prog_compiler_wl_F77='-Wl,'
 
14212
      lt_prog_compiler_pic_F77='-KPIC'
 
14213
      lt_prog_compiler_static_F77='-Bstatic'
 
14214
      ;;
 
14215
 
 
14216
    sysv4*MP*)
 
14217
      if test -d /usr/nec ;then
 
14218
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14219
        lt_prog_compiler_static_F77='-Bstatic'
 
14220
      fi
 
14221
      ;;
 
14222
 
 
14223
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14224
      lt_prog_compiler_wl_F77='-Wl,'
 
14225
      lt_prog_compiler_pic_F77='-KPIC'
 
14226
      lt_prog_compiler_static_F77='-Bstatic'
 
14227
      ;;
 
14228
 
 
14229
    unicos*)
 
14230
      lt_prog_compiler_wl_F77='-Wl,'
 
14231
      lt_prog_compiler_can_build_shared_F77=no
 
14232
      ;;
 
14233
 
 
14234
    uts4*)
 
14235
      lt_prog_compiler_pic_F77='-pic'
 
14236
      lt_prog_compiler_static_F77='-Bstatic'
 
14237
      ;;
 
14238
 
 
14239
    *)
 
14240
      lt_prog_compiler_can_build_shared_F77=no
 
14241
      ;;
 
14242
    esac
 
14243
  fi
 
14244
 
 
14245
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14246
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14247
 
 
14248
#
 
14249
# Check to make sure the PIC flag actually works.
 
14250
#
 
14251
if test -n "$lt_prog_compiler_pic_F77"; then
 
14252
 
 
14253
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14254
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14255
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14256
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14257
else
 
14258
  lt_prog_compiler_pic_works_F77=no
 
14259
  ac_outfile=conftest.$ac_objext
 
14260
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14261
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14262
   # Insert the option either (1) after the last *FLAGS variable, or
 
14263
   # (2) before a word containing "conftest.", or (3) at the end.
 
14264
   # Note that $ac_compile itself does not contain backslashes and begins
 
14265
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14266
   # The option is referenced via a variable to avoid confusing sed.
 
14267
   lt_compile=`echo "$ac_compile" | $SED \
 
14268
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14269
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14270
   -e 's:$: $lt_compiler_flag:'`
 
14271
   (eval echo "\"\$as_me:14271: $lt_compile\"" >&5)
 
14272
   (eval "$lt_compile" 2>conftest.err)
 
14273
   ac_status=$?
 
14274
   cat conftest.err >&5
 
14275
   echo "$as_me:14275: \$? = $ac_status" >&5
 
14276
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14277
     # The compiler can only warn and ignore the option if not recognized
 
14278
     # So say no if there are warnings other than the usual output.
 
14279
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14280
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14281
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14282
       lt_prog_compiler_pic_works_F77=yes
 
14283
     fi
 
14284
   fi
 
14285
   $rm conftest*
 
14286
 
 
14287
fi
 
14288
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14289
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
14290
 
 
14291
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14292
    case $lt_prog_compiler_pic_F77 in
 
14293
     "" | " "*) ;;
 
14294
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14295
     esac
 
14296
else
 
14297
    lt_prog_compiler_pic_F77=
 
14298
     lt_prog_compiler_can_build_shared_F77=no
 
14299
fi
 
14300
 
 
14301
fi
 
14302
case $host_os in
 
14303
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14304
  *djgpp*)
 
14305
    lt_prog_compiler_pic_F77=
 
14306
    ;;
 
14307
  *)
 
14308
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14309
    ;;
 
14310
esac
 
14311
 
 
14312
#
 
14313
# Check to make sure the static flag actually works.
 
14314
#
 
14315
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14316
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14317
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14318
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14319
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14320
else
 
14321
  lt_prog_compiler_static_works_F77=no
 
14322
   save_LDFLAGS="$LDFLAGS"
 
14323
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14324
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14325
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14326
     # The linker can only warn and ignore the option if not recognized
 
14327
     # So say no if there are warnings
 
14328
     if test -s conftest.err; then
 
14329
       # Append any errors to the config.log.
 
14330
       cat conftest.err 1>&5
 
14331
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14332
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14333
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14334
         lt_prog_compiler_static_works_F77=yes
 
14335
       fi
 
14336
     else
 
14337
       lt_prog_compiler_static_works_F77=yes
 
14338
     fi
 
14339
   fi
 
14340
   $rm conftest*
 
14341
   LDFLAGS="$save_LDFLAGS"
 
14342
 
 
14343
fi
 
14344
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14345
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14346
 
 
14347
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14348
    :
 
14349
else
 
14350
    lt_prog_compiler_static_F77=
 
14351
fi
 
14352
 
 
14353
 
 
14354
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14355
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14356
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14358
else
 
14359
  lt_cv_prog_compiler_c_o_F77=no
 
14360
   $rm -r conftest 2>/dev/null
 
14361
   mkdir conftest
 
14362
   cd conftest
 
14363
   mkdir out
 
14364
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14365
 
 
14366
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14367
   # Insert the option either (1) after the last *FLAGS variable, or
 
14368
   # (2) before a word containing "conftest.", or (3) at the end.
 
14369
   # Note that $ac_compile itself does not contain backslashes and begins
 
14370
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14371
   lt_compile=`echo "$ac_compile" | $SED \
 
14372
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14373
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14374
   -e 's:$: $lt_compiler_flag:'`
 
14375
   (eval echo "\"\$as_me:14375: $lt_compile\"" >&5)
 
14376
   (eval "$lt_compile" 2>out/conftest.err)
 
14377
   ac_status=$?
 
14378
   cat out/conftest.err >&5
 
14379
   echo "$as_me:14379: \$? = $ac_status" >&5
 
14380
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14381
   then
 
14382
     # The compiler can only warn and ignore the option if not recognized
 
14383
     # So say no if there are warnings
 
14384
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14385
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14386
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14387
       lt_cv_prog_compiler_c_o_F77=yes
 
14388
     fi
 
14389
   fi
 
14390
   chmod u+w . 2>&5
 
14391
   $rm conftest*
 
14392
   # SGI C++ compiler will create directory out/ii_files/ for
 
14393
   # template instantiation
 
14394
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14395
   $rm out/* && rmdir out
 
14396
   cd ..
 
14397
   rmdir conftest
 
14398
   $rm conftest*
 
14399
 
 
14400
fi
 
14401
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14402
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14403
 
 
14404
 
 
14405
hard_links="nottested"
 
14406
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14407
  # do not overwrite the value of need_locks provided by the user
 
14408
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14409
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14410
  hard_links=yes
 
14411
  $rm conftest*
 
14412
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14413
  touch conftest.a
 
14414
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14415
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14416
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14417
echo "${ECHO_T}$hard_links" >&6; }
 
14418
  if test "$hard_links" = no; then
 
14419
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14420
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14421
    need_locks=warn
 
14422
  fi
 
14423
else
 
14424
  need_locks=no
 
14425
fi
 
14426
 
 
14427
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14428
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14429
 
 
14430
  runpath_var=
 
14431
  allow_undefined_flag_F77=
 
14432
  enable_shared_with_static_runtimes_F77=no
 
14433
  archive_cmds_F77=
 
14434
  archive_expsym_cmds_F77=
 
14435
  old_archive_From_new_cmds_F77=
 
14436
  old_archive_from_expsyms_cmds_F77=
 
14437
  export_dynamic_flag_spec_F77=
 
14438
  whole_archive_flag_spec_F77=
 
14439
  thread_safe_flag_spec_F77=
 
14440
  hardcode_libdir_flag_spec_F77=
 
14441
  hardcode_libdir_flag_spec_ld_F77=
 
14442
  hardcode_libdir_separator_F77=
 
14443
  hardcode_direct_F77=no
 
14444
  hardcode_minus_L_F77=no
 
14445
  hardcode_shlibpath_var_F77=unsupported
 
14446
  link_all_deplibs_F77=unknown
 
14447
  hardcode_automatic_F77=no
 
14448
  module_cmds_F77=
 
14449
  module_expsym_cmds_F77=
 
14450
  always_export_symbols_F77=no
 
14451
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14452
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14453
  # included in the symbol list
 
14454
  include_expsyms_F77=
 
14455
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14456
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14457
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14458
  # as well as any symbol that contains `d'.
 
14459
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14460
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14461
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14462
  # the symbol is explicitly referenced.  Since portable code cannot
 
14463
  # rely on this symbol name, it's probably fine to never include it in
 
14464
  # preloaded symbol tables.
 
14465
  extract_expsyms_cmds=
 
14466
  # Just being paranoid about ensuring that cc_basename is set.
 
14467
  for cc_temp in $compiler""; do
 
14468
  case $cc_temp in
 
14469
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14470
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14471
    \-*) ;;
 
14472
    *) break;;
 
14473
  esac
 
14474
done
 
14475
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14476
 
 
14477
  case $host_os in
 
14478
  cygwin* | mingw* | pw32*)
 
14479
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14480
    # When not using gcc, we currently assume that we are using
 
14481
    # Microsoft Visual C++.
 
14482
    if test "$GCC" != yes; then
 
14483
      with_gnu_ld=no
 
14484
    fi
 
14485
    ;;
 
14486
  interix*)
 
14487
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14488
    with_gnu_ld=yes
 
14489
    ;;
 
14490
  openbsd*)
 
14491
    with_gnu_ld=no
 
14492
    ;;
 
14493
  esac
 
14494
 
 
14495
  ld_shlibs_F77=yes
 
14496
  if test "$with_gnu_ld" = yes; then
 
14497
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14498
    wlarc='${wl}'
 
14499
 
 
14500
    # Set some defaults for GNU ld with shared library support. These
 
14501
    # are reset later if shared libraries are not supported. Putting them
 
14502
    # here allows them to be overridden if necessary.
 
14503
    runpath_var=LD_RUN_PATH
 
14504
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14505
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14506
    # ancient GNU ld didn't support --whole-archive et. al.
 
14507
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14508
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14509
      else
 
14510
        whole_archive_flag_spec_F77=
 
14511
    fi
 
14512
    supports_anon_versioning=no
 
14513
    case `$LD -v 2>/dev/null` in
 
14514
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14515
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14516
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14517
      *\ 2.11.*) ;; # other 2.11 versions
 
14518
      *) supports_anon_versioning=yes ;;
 
14519
    esac
 
14520
 
 
14521
    # See if GNU ld supports shared libraries.
 
14522
    case $host_os in
 
14523
    aix3* | aix4* | aix5*)
 
14524
      # On AIX/PPC, the GNU linker is very broken
 
14525
      if test "$host_cpu" != ia64; then
 
14526
        ld_shlibs_F77=no
 
14527
        cat <<EOF 1>&2
 
14528
 
 
14529
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14530
*** to be unable to reliably create shared libraries on AIX.
 
14531
*** Therefore, libtool is disabling shared libraries support.  If you
 
14532
*** really care for shared libraries, you may want to modify your PATH
 
14533
*** so that a non-GNU linker is found, and then restart.
 
14534
 
 
14535
EOF
 
14536
      fi
 
14537
      ;;
 
14538
 
 
14539
    amigaos*)
 
14540
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
14541
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14542
      hardcode_minus_L_F77=yes
 
14543
 
 
14544
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14545
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14546
      # to version 4, is to share data among multiple programs linked
 
14547
      # with the same dynamic library.  Since this doesn't match the
 
14548
      # behavior of shared libraries on other platforms, we can't use
 
14549
      # them.
 
14550
      ld_shlibs_F77=no
 
14551
      ;;
 
14552
 
 
14553
    beos*)
 
14554
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14555
        allow_undefined_flag_F77=unsupported
 
14556
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14557
        # support --undefined.  This deserves some investigation.  FIXME
 
14558
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14559
      else
 
14560
        ld_shlibs_F77=no
 
14561
      fi
 
14562
      ;;
 
14563
 
 
14564
    cygwin* | mingw* | pw32*)
 
14565
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14566
      # as there is no search path for DLLs.
 
14567
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14568
      allow_undefined_flag_F77=unsupported
 
14569
      always_export_symbols_F77=no
 
14570
      enable_shared_with_static_runtimes_F77=yes
 
14571
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14572
 
 
14573
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14574
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14575
        # If the export-symbols file already is a .def file (1st line
 
14576
        # is EXPORTS), use it as is; otherwise, prepend...
 
14577
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14578
          cp $export_symbols $output_objdir/$soname.def;
 
14579
        else
 
14580
          echo EXPORTS > $output_objdir/$soname.def;
 
14581
          cat $export_symbols >> $output_objdir/$soname.def;
 
14582
        fi~
 
14583
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14584
      else
 
14585
        ld_shlibs_F77=no
 
14586
      fi
 
14587
      ;;
 
14588
 
 
14589
    interix[3-9]*)
 
14590
      hardcode_direct_F77=no
 
14591
      hardcode_shlibpath_var_F77=no
 
14592
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14593
      export_dynamic_flag_spec_F77='${wl}-E'
 
14594
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14595
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14596
      # default) and relocated if they conflict, which is a slow very memory
 
14597
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14598
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14599
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14600
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14601
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14602
      ;;
 
14603
 
 
14604
    gnu* | linux* | k*bsd*-gnu)
 
14605
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14606
        tmp_addflag=
 
14607
        case $cc_basename,$host_cpu in
 
14608
        pgcc*)                          # Portland Group C compiler
 
14609
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14610
          tmp_addflag=' $pic_flag'
 
14611
          ;;
 
14612
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14613
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14614
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14615
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14616
          tmp_addflag=' -i_dynamic' ;;
 
14617
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14618
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14619
        ifc* | ifort*)                  # Intel Fortran compiler
 
14620
          tmp_addflag=' -nofor_main' ;;
 
14621
        esac
 
14622
        case `$CC -V 2>&1 | sed 5q` in
 
14623
        *Sun\ C*)                       # Sun C 5.9
 
14624
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14625
          tmp_sharedflag='-G' ;;
 
14626
        *Sun\ F*)                       # Sun Fortran 8.3
 
14627
          tmp_sharedflag='-G' ;;
 
14628
        *)
 
14629
          tmp_sharedflag='-shared' ;;
 
14630
        esac
 
14631
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14632
 
 
14633
        if test $supports_anon_versioning = yes; then
 
14634
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14635
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14636
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14637
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14638
        fi
 
14639
      else
 
14640
        ld_shlibs_F77=no
 
14641
      fi
 
14642
      ;;
 
14643
 
 
14644
    netbsd*)
 
14645
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14646
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14647
        wlarc=
 
14648
      else
 
14649
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14650
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14651
      fi
 
14652
      ;;
 
14653
 
 
14654
    solaris*)
 
14655
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14656
        ld_shlibs_F77=no
 
14657
        cat <<EOF 1>&2
 
14658
 
 
14659
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14660
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14661
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14662
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14663
*** your PATH or compiler configuration so that the native linker is
 
14664
*** used, and then restart.
 
14665
 
 
14666
EOF
 
14667
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14668
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14669
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14670
      else
 
14671
        ld_shlibs_F77=no
 
14672
      fi
 
14673
      ;;
 
14674
 
 
14675
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14676
      case `$LD -v 2>&1` in
 
14677
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14678
        ld_shlibs_F77=no
 
14679
        cat <<_LT_EOF 1>&2
 
14680
 
 
14681
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14682
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14683
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14684
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14685
*** your PATH or compiler configuration so that the native linker is
 
14686
*** used, and then restart.
 
14687
 
 
14688
_LT_EOF
 
14689
        ;;
 
14690
        *)
 
14691
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14692
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14693
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14694
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14695
          else
 
14696
            ld_shlibs_F77=no
 
14697
          fi
 
14698
        ;;
 
14699
      esac
 
14700
      ;;
 
14701
 
 
14702
    sunos4*)
 
14703
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14704
      wlarc=
 
14705
      hardcode_direct_F77=yes
 
14706
      hardcode_shlibpath_var_F77=no
 
14707
      ;;
 
14708
 
 
14709
    *)
 
14710
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14711
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14712
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14713
      else
 
14714
        ld_shlibs_F77=no
 
14715
      fi
 
14716
      ;;
 
14717
    esac
 
14718
 
 
14719
    if test "$ld_shlibs_F77" = no; then
 
14720
      runpath_var=
 
14721
      hardcode_libdir_flag_spec_F77=
 
14722
      export_dynamic_flag_spec_F77=
 
14723
      whole_archive_flag_spec_F77=
 
14724
    fi
 
14725
  else
 
14726
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14727
    case $host_os in
 
14728
    aix3*)
 
14729
      allow_undefined_flag_F77=unsupported
 
14730
      always_export_symbols_F77=yes
 
14731
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
14732
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14733
      # are no directories specified by -L.
 
14734
      hardcode_minus_L_F77=yes
 
14735
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14736
        # Neither direct hardcoding nor static linking is supported with a
 
14737
        # broken collect2.
 
14738
        hardcode_direct_F77=unsupported
 
14739
      fi
 
14740
      ;;
 
14741
 
 
14742
    aix4* | aix5*)
 
14743
      if test "$host_cpu" = ia64; then
 
14744
        # On IA64, the linker does run time linking by default, so we don't
 
14745
        # have to do anything special.
 
14746
        aix_use_runtimelinking=no
 
14747
        exp_sym_flag='-Bexport'
 
14748
        no_entry_flag=""
 
14749
      else
 
14750
        # If we're using GNU nm, then we don't want the "-C" option.
 
14751
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14752
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14753
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14754
        else
 
14755
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14756
        fi
 
14757
        aix_use_runtimelinking=no
 
14758
 
 
14759
        # Test if we are trying to use run time linking or normal
 
14760
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14761
        # need to do runtime linking.
 
14762
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14763
          for ld_flag in $LDFLAGS; do
 
14764
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14765
            aix_use_runtimelinking=yes
 
14766
            break
 
14767
          fi
 
14768
          done
 
14769
          ;;
 
14770
        esac
 
14771
 
 
14772
        exp_sym_flag='-bexport'
 
14773
        no_entry_flag='-bnoentry'
 
14774
      fi
 
14775
 
 
14776
      # When large executables or shared objects are built, AIX ld can
 
14777
      # have problems creating the table of contents.  If linking a library
 
14778
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14779
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14780
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14781
 
 
14782
      archive_cmds_F77=''
 
14783
      hardcode_direct_F77=yes
 
14784
      hardcode_libdir_separator_F77=':'
 
14785
      link_all_deplibs_F77=yes
 
14786
 
 
14787
      if test "$GCC" = yes; then
 
14788
        case $host_os in aix4.[012]|aix4.[012].*)
 
14789
        # We only want to do this on AIX 4.2 and lower, the check
 
14790
        # below for broken collect2 doesn't work under 4.3+
 
14791
          collect2name=`${CC} -print-prog-name=collect2`
 
14792
          if test -f "$collect2name" && \
 
14793
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14794
          then
 
14795
          # We have reworked collect2
 
14796
          :
 
14797
          else
 
14798
          # We have old collect2
 
14799
          hardcode_direct_F77=unsupported
 
14800
          # It fails to find uninstalled libraries when the uninstalled
 
14801
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14802
          # to unsupported forces relinking
 
14803
          hardcode_minus_L_F77=yes
 
14804
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14805
          hardcode_libdir_separator_F77=
 
14806
          fi
 
14807
          ;;
 
14808
        esac
 
14809
        shared_flag='-shared'
 
14810
        if test "$aix_use_runtimelinking" = yes; then
 
14811
          shared_flag="$shared_flag "'${wl}-G'
 
14812
        fi
 
14813
      else
 
14814
        # not using gcc
 
14815
        if test "$host_cpu" = ia64; then
 
14816
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14817
        # chokes on -Wl,-G. The following line is correct:
 
14818
          shared_flag='-G'
 
14819
        else
 
14820
          if test "$aix_use_runtimelinking" = yes; then
 
14821
            shared_flag='${wl}-G'
 
14822
          else
 
14823
            shared_flag='${wl}-bM:SRE'
 
14824
          fi
 
14825
        fi
 
14826
      fi
 
14827
 
 
14828
      # It seems that -bexpall does not export symbols beginning with
 
14829
      # underscore (_), so it is better to generate a list of symbols to export.
 
14830
      always_export_symbols_F77=yes
 
14831
      if test "$aix_use_runtimelinking" = yes; then
 
14832
        # Warning - without using the other runtime loading flags (-brtl),
 
14833
        # -berok will link without error, but may produce a broken library.
 
14834
        allow_undefined_flag_F77='-berok'
 
14835
       # Determine the default libpath from the value encoded in an empty executable.
 
14836
       cat >conftest.$ac_ext <<_ACEOF
 
14837
      program main
 
14838
 
 
14839
      end
 
14840
_ACEOF
 
14841
rm -f conftest.$ac_objext conftest$ac_exeext
 
14842
if { (ac_try="$ac_link"
 
14843
case "(($ac_try" in
 
14844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14845
  *) ac_try_echo=$ac_try;;
 
14846
esac
 
14847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14848
  (eval "$ac_link") 2>conftest.er1
 
14849
  ac_status=$?
 
14850
  grep -v '^ *+' conftest.er1 >conftest.err
 
14851
  rm -f conftest.er1
 
14852
  cat conftest.err >&5
 
14853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14854
  (exit $ac_status); } && {
 
14855
         test -z "$ac_f77_werror_flag" ||
 
14856
         test ! -s conftest.err
 
14857
       } && test -s conftest$ac_exeext &&
 
14858
       $as_test_x conftest$ac_exeext; then
 
14859
 
 
14860
lt_aix_libpath_sed='
 
14861
    /Import File Strings/,/^$/ {
 
14862
        /^0/ {
 
14863
            s/^0  *\(.*\)$/\1/
 
14864
            p
 
14865
        }
 
14866
    }'
 
14867
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14868
# Check for a 64-bit object if we didn't find anything.
 
14869
if test -z "$aix_libpath"; then
 
14870
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14871
fi
 
14872
else
 
14873
  echo "$as_me: failed program was:" >&5
 
14874
sed 's/^/| /' conftest.$ac_ext >&5
 
14875
 
 
14876
 
 
14877
fi
 
14878
 
 
14879
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14880
      conftest$ac_exeext conftest.$ac_ext
 
14881
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14882
 
 
14883
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14884
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14885
       else
 
14886
        if test "$host_cpu" = ia64; then
 
14887
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14888
          allow_undefined_flag_F77="-z nodefs"
 
14889
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
14890
        else
 
14891
         # Determine the default libpath from the value encoded in an empty executable.
 
14892
         cat >conftest.$ac_ext <<_ACEOF
 
14893
      program main
 
14894
 
 
14895
      end
 
14896
_ACEOF
 
14897
rm -f conftest.$ac_objext conftest$ac_exeext
 
14898
if { (ac_try="$ac_link"
 
14899
case "(($ac_try" in
 
14900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14901
  *) ac_try_echo=$ac_try;;
 
14902
esac
 
14903
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14904
  (eval "$ac_link") 2>conftest.er1
 
14905
  ac_status=$?
 
14906
  grep -v '^ *+' conftest.er1 >conftest.err
 
14907
  rm -f conftest.er1
 
14908
  cat conftest.err >&5
 
14909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14910
  (exit $ac_status); } && {
 
14911
         test -z "$ac_f77_werror_flag" ||
 
14912
         test ! -s conftest.err
 
14913
       } && test -s conftest$ac_exeext &&
 
14914
       $as_test_x conftest$ac_exeext; then
 
14915
 
 
14916
lt_aix_libpath_sed='
 
14917
    /Import File Strings/,/^$/ {
 
14918
        /^0/ {
 
14919
            s/^0  *\(.*\)$/\1/
 
14920
            p
 
14921
        }
 
14922
    }'
 
14923
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14924
# Check for a 64-bit object if we didn't find anything.
 
14925
if test -z "$aix_libpath"; then
 
14926
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14927
fi
 
14928
else
 
14929
  echo "$as_me: failed program was:" >&5
 
14930
sed 's/^/| /' conftest.$ac_ext >&5
 
14931
 
 
14932
 
 
14933
fi
 
14934
 
 
14935
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14936
      conftest$ac_exeext conftest.$ac_ext
 
14937
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14938
 
 
14939
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14940
          # Warning - without using the other run time loading flags,
 
14941
          # -berok will link without error, but may produce a broken library.
 
14942
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14943
          allow_undefined_flag_F77=' ${wl}-berok'
 
14944
          # Exported symbols can be pulled into shared objects from archives
 
14945
          whole_archive_flag_spec_F77='$convenience'
 
14946
          archive_cmds_need_lc_F77=yes
 
14947
          # This is similar to how AIX traditionally builds its shared libraries.
 
14948
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
14949
        fi
 
14950
      fi
 
14951
      ;;
 
14952
 
 
14953
    amigaos*)
 
14954
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
14955
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14956
      hardcode_minus_L_F77=yes
 
14957
      # see comment about different semantics on the GNU ld section
 
14958
      ld_shlibs_F77=no
 
14959
      ;;
 
14960
 
 
14961
    bsdi[45]*)
 
14962
      export_dynamic_flag_spec_F77=-rdynamic
 
14963
      ;;
 
14964
 
 
14965
    cygwin* | mingw* | pw32*)
 
14966
      # When not using gcc, we currently assume that we are using
 
14967
      # Microsoft Visual C++.
 
14968
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14969
      # no search path for DLLs.
 
14970
      hardcode_libdir_flag_spec_F77=' '
 
14971
      allow_undefined_flag_F77=unsupported
 
14972
      # Tell ltmain to make .lib files, not .a files.
 
14973
      libext=lib
 
14974
      # Tell ltmain to make .dll files, not .so files.
 
14975
      shrext_cmds=".dll"
 
14976
      # FIXME: Setting linknames here is a bad hack.
 
14977
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14978
      # The linker will automatically build a .lib file if we build a DLL.
 
14979
      old_archive_From_new_cmds_F77='true'
 
14980
      # FIXME: Should let the user specify the lib program.
 
14981
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
14982
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14983
      enable_shared_with_static_runtimes_F77=yes
 
14984
      ;;
 
14985
 
 
14986
    darwin* | rhapsody*)
 
14987
      case $host_os in
 
14988
        rhapsody* | darwin1.[012])
 
14989
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14990
         ;;
 
14991
       *) # Darwin 1.3 on
 
14992
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14993
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14994
         else
 
14995
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14996
             10.[012])
 
14997
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14998
               ;;
 
14999
             10.*)
 
15000
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15001
               ;;
 
15002
           esac
 
15003
         fi
 
15004
         ;;
 
15005
      esac
 
15006
      archive_cmds_need_lc_F77=no
 
15007
      hardcode_direct_F77=no
 
15008
      hardcode_automatic_F77=yes
 
15009
      hardcode_shlibpath_var_F77=unsupported
 
15010
      whole_archive_flag_spec_F77=''
 
15011
      link_all_deplibs_F77=yes
 
15012
    if test "$GCC" = yes ; then
 
15013
        output_verbose_link_cmd='echo'
 
15014
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15015
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15016
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15017
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15018
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15019
    else
 
15020
      case $cc_basename in
 
15021
        xlc*)
 
15022
         output_verbose_link_cmd='echo'
 
15023
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15024
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15025
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15026
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15027
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15028
          ;;
 
15029
       *)
 
15030
         ld_shlibs_F77=no
 
15031
          ;;
 
15032
      esac
 
15033
    fi
 
15034
      ;;
 
15035
 
 
15036
    dgux*)
 
15037
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15038
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15039
      hardcode_shlibpath_var_F77=no
 
15040
      ;;
 
15041
 
 
15042
    freebsd1*)
 
15043
      ld_shlibs_F77=no
 
15044
      ;;
 
15045
 
 
15046
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15047
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15048
    # does not break anything, and helps significantly (at the cost of a little
 
15049
    # extra space).
 
15050
    freebsd2.2*)
 
15051
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15052
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15053
      hardcode_direct_F77=yes
 
15054
      hardcode_shlibpath_var_F77=no
 
15055
      ;;
 
15056
 
 
15057
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15058
    freebsd2*)
 
15059
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15060
      hardcode_direct_F77=yes
 
15061
      hardcode_minus_L_F77=yes
 
15062
      hardcode_shlibpath_var_F77=no
 
15063
      ;;
 
15064
 
 
15065
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15066
    freebsd* | dragonfly*)
 
15067
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15068
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15069
      hardcode_direct_F77=yes
 
15070
      hardcode_shlibpath_var_F77=no
 
15071
      ;;
 
15072
 
 
15073
    hpux9*)
 
15074
      if test "$GCC" = yes; then
 
15075
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
15076
      else
 
15077
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
15078
      fi
 
15079
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15080
      hardcode_libdir_separator_F77=:
 
15081
      hardcode_direct_F77=yes
 
15082
 
 
15083
      # hardcode_minus_L: Not really in the search PATH,
 
15084
      # but as the default location of the library.
 
15085
      hardcode_minus_L_F77=yes
 
15086
      export_dynamic_flag_spec_F77='${wl}-E'
 
15087
      ;;
 
15088
 
 
15089
    hpux10*)
 
15090
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15091
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15092
      else
 
15093
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15094
      fi
 
15095
      if test "$with_gnu_ld" = no; then
 
15096
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15097
        hardcode_libdir_separator_F77=:
 
15098
 
 
15099
        hardcode_direct_F77=yes
 
15100
        export_dynamic_flag_spec_F77='${wl}-E'
 
15101
 
 
15102
        # hardcode_minus_L: Not really in the search PATH,
 
15103
        # but as the default location of the library.
 
15104
        hardcode_minus_L_F77=yes
 
15105
      fi
 
15106
      ;;
 
15107
 
 
15108
    hpux11*)
 
15109
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15110
        case $host_cpu in
 
15111
        hppa*64*)
 
15112
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15113
          ;;
 
15114
        ia64*)
 
15115
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15116
          ;;
 
15117
        *)
 
15118
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15119
          ;;
 
15120
        esac
 
15121
      else
 
15122
        case $host_cpu in
 
15123
        hppa*64*)
 
15124
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15125
          ;;
 
15126
        ia64*)
 
15127
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15128
          ;;
 
15129
        *)
 
15130
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15131
          ;;
 
15132
        esac
 
15133
      fi
 
15134
      if test "$with_gnu_ld" = no; then
 
15135
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15136
        hardcode_libdir_separator_F77=:
 
15137
 
 
15138
        case $host_cpu in
 
15139
        hppa*64*|ia64*)
 
15140
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15141
          hardcode_direct_F77=no
 
15142
          hardcode_shlibpath_var_F77=no
 
15143
          ;;
 
15144
        *)
 
15145
          hardcode_direct_F77=yes
 
15146
          export_dynamic_flag_spec_F77='${wl}-E'
 
15147
 
 
15148
          # hardcode_minus_L: Not really in the search PATH,
 
15149
          # but as the default location of the library.
 
15150
          hardcode_minus_L_F77=yes
 
15151
          ;;
 
15152
        esac
 
15153
      fi
 
15154
      ;;
 
15155
 
 
15156
    irix5* | irix6* | nonstopux*)
 
15157
      if test "$GCC" = yes; then
 
15158
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15159
      else
 
15160
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15161
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15162
      fi
 
15163
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15164
      hardcode_libdir_separator_F77=:
 
15165
      link_all_deplibs_F77=yes
 
15166
      ;;
 
15167
 
 
15168
    netbsd*)
 
15169
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15170
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15171
      else
 
15172
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15173
      fi
 
15174
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15175
      hardcode_direct_F77=yes
 
15176
      hardcode_shlibpath_var_F77=no
 
15177
      ;;
 
15178
 
 
15179
    newsos6)
 
15180
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15181
      hardcode_direct_F77=yes
 
15182
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15183
      hardcode_libdir_separator_F77=:
 
15184
      hardcode_shlibpath_var_F77=no
 
15185
      ;;
 
15186
 
 
15187
    openbsd*)
 
15188
      if test -f /usr/libexec/ld.so; then
 
15189
        hardcode_direct_F77=yes
 
15190
        hardcode_shlibpath_var_F77=no
 
15191
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15192
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15193
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15194
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15195
          export_dynamic_flag_spec_F77='${wl}-E'
 
15196
        else
 
15197
          case $host_os in
 
15198
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15199
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15200
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15201
             ;;
 
15202
           *)
 
15203
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15204
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15205
             ;;
 
15206
          esac
 
15207
        fi
 
15208
      else
 
15209
        ld_shlibs_F77=no
 
15210
      fi
 
15211
      ;;
 
15212
 
 
15213
    os2*)
 
15214
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15215
      hardcode_minus_L_F77=yes
 
15216
      allow_undefined_flag_F77=unsupported
 
15217
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
15218
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15219
      ;;
 
15220
 
 
15221
    osf3*)
 
15222
      if test "$GCC" = yes; then
 
15223
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15224
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15225
      else
 
15226
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15227
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15228
      fi
 
15229
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15230
      hardcode_libdir_separator_F77=:
 
15231
      ;;
 
15232
 
 
15233
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15234
      if test "$GCC" = yes; then
 
15235
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15236
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15237
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15238
      else
 
15239
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15240
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15241
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
15242
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
15243
 
 
15244
        # Both c and cxx compiler support -rpath directly
 
15245
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15246
      fi
 
15247
      hardcode_libdir_separator_F77=:
 
15248
      ;;
 
15249
 
 
15250
    solaris*)
 
15251
      no_undefined_flag_F77=' -z text'
 
15252
      if test "$GCC" = yes; then
 
15253
        wlarc='${wl}'
 
15254
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15255
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15256
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15257
      else
 
15258
        wlarc=''
 
15259
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15260
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15261
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15262
      fi
 
15263
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15264
      hardcode_shlibpath_var_F77=no
 
15265
      case $host_os in
 
15266
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15267
      *)
 
15268
        # The compiler driver will combine and reorder linker options,
 
15269
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15270
        # but is careful enough not to reorder.
 
15271
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15272
        if test "$GCC" = yes; then
 
15273
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15274
        else
 
15275
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15276
        fi
 
15277
        ;;
 
15278
      esac
 
15279
      link_all_deplibs_F77=yes
 
15280
      ;;
 
15281
 
 
15282
    sunos4*)
 
15283
      if test "x$host_vendor" = xsequent; then
 
15284
        # Use $CC to link under sequent, because it throws in some extra .o
 
15285
        # files that make .init and .fini sections work.
 
15286
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15287
      else
 
15288
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15289
      fi
 
15290
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15291
      hardcode_direct_F77=yes
 
15292
      hardcode_minus_L_F77=yes
 
15293
      hardcode_shlibpath_var_F77=no
 
15294
      ;;
 
15295
 
 
15296
    sysv4)
 
15297
      case $host_vendor in
 
15298
        sni)
 
15299
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15300
          hardcode_direct_F77=yes # is this really true???
 
15301
        ;;
 
15302
        siemens)
 
15303
          ## LD is ld it makes a PLAMLIB
 
15304
          ## CC just makes a GrossModule.
 
15305
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15306
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15307
          hardcode_direct_F77=no
 
15308
        ;;
 
15309
        motorola)
 
15310
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15311
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15312
        ;;
 
15313
      esac
 
15314
      runpath_var='LD_RUN_PATH'
 
15315
      hardcode_shlibpath_var_F77=no
 
15316
      ;;
 
15317
 
 
15318
    sysv4.3*)
 
15319
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15320
      hardcode_shlibpath_var_F77=no
 
15321
      export_dynamic_flag_spec_F77='-Bexport'
 
15322
      ;;
 
15323
 
 
15324
    sysv4*MP*)
 
15325
      if test -d /usr/nec; then
 
15326
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15327
        hardcode_shlibpath_var_F77=no
 
15328
        runpath_var=LD_RUN_PATH
 
15329
        hardcode_runpath_var=yes
 
15330
        ld_shlibs_F77=yes
 
15331
      fi
 
15332
      ;;
 
15333
 
 
15334
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15335
      no_undefined_flag_F77='${wl}-z,text'
 
15336
      archive_cmds_need_lc_F77=no
 
15337
      hardcode_shlibpath_var_F77=no
 
15338
      runpath_var='LD_RUN_PATH'
 
15339
 
 
15340
      if test "$GCC" = yes; then
 
15341
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15342
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15343
      else
 
15344
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15345
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15346
      fi
 
15347
      ;;
 
15348
 
 
15349
    sysv5* | sco3.2v5* | sco5v6*)
 
15350
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15351
      # link with -lc, and that would cause any symbols used from libc to
 
15352
      # always be unresolved, which means just about no library would
 
15353
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15354
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15355
      # as -z defs.
 
15356
      no_undefined_flag_F77='${wl}-z,text'
 
15357
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15358
      archive_cmds_need_lc_F77=no
 
15359
      hardcode_shlibpath_var_F77=no
 
15360
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15361
      hardcode_libdir_separator_F77=':'
 
15362
      link_all_deplibs_F77=yes
 
15363
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15364
      runpath_var='LD_RUN_PATH'
 
15365
 
 
15366
      if test "$GCC" = yes; then
 
15367
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15368
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15369
      else
 
15370
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15371
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15372
      fi
 
15373
      ;;
 
15374
 
 
15375
    uts4*)
 
15376
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15377
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15378
      hardcode_shlibpath_var_F77=no
 
15379
      ;;
 
15380
 
 
15381
    *)
 
15382
      ld_shlibs_F77=no
 
15383
      ;;
 
15384
    esac
 
15385
  fi
 
15386
 
 
15387
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15388
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15389
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15390
 
 
15391
#
 
15392
# Do we need to explicitly link libc?
 
15393
#
 
15394
case "x$archive_cmds_need_lc_F77" in
 
15395
x|xyes)
 
15396
  # Assume -lc should be added
 
15397
  archive_cmds_need_lc_F77=yes
 
15398
 
 
15399
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15400
    case $archive_cmds_F77 in
 
15401
    *'~'*)
 
15402
      # FIXME: we may have to deal with multi-command sequences.
 
15403
      ;;
 
15404
    '$CC '*)
 
15405
      # Test whether the compiler implicitly links with -lc since on some
 
15406
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15407
      # to ld, don't add -lc before -lgcc.
 
15408
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15409
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15410
      $rm conftest*
 
15411
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15412
 
 
15413
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15414
  (eval $ac_compile) 2>&5
 
15415
  ac_status=$?
 
15416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15417
  (exit $ac_status); } 2>conftest.err; then
 
15418
        soname=conftest
 
15419
        lib=conftest
 
15420
        libobjs=conftest.$ac_objext
 
15421
        deplibs=
 
15422
        wl=$lt_prog_compiler_wl_F77
 
15423
        pic_flag=$lt_prog_compiler_pic_F77
 
15424
        compiler_flags=-v
 
15425
        linker_flags=-v
 
15426
        verstring=
 
15427
        output_objdir=.
 
15428
        libname=conftest
 
15429
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15430
        allow_undefined_flag_F77=
 
15431
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15432
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15433
  ac_status=$?
 
15434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15435
  (exit $ac_status); }
 
15436
        then
 
15437
          archive_cmds_need_lc_F77=no
 
15438
        else
 
15439
          archive_cmds_need_lc_F77=yes
 
15440
        fi
 
15441
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15442
      else
 
15443
        cat conftest.err 1>&5
 
15444
      fi
 
15445
      $rm conftest*
 
15446
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15447
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15448
      ;;
 
15449
    esac
 
15450
  fi
 
15451
  ;;
 
15452
esac
 
15453
 
 
15454
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15455
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15456
library_names_spec=
 
15457
libname_spec='lib$name'
 
15458
soname_spec=
 
15459
shrext_cmds=".so"
 
15460
postinstall_cmds=
 
15461
postuninstall_cmds=
 
15462
finish_cmds=
 
15463
finish_eval=
 
15464
shlibpath_var=
 
15465
shlibpath_overrides_runpath=unknown
 
15466
version_type=none
 
15467
dynamic_linker="$host_os ld.so"
 
15468
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15469
 
 
15470
need_lib_prefix=unknown
 
15471
hardcode_into_libs=no
 
15472
 
 
15473
# when you set need_version to no, make sure it does not cause -set_version
 
15474
# flags to be left without arguments
 
15475
need_version=unknown
 
15476
 
 
15477
case $host_os in
 
15478
aix3*)
 
15479
  version_type=linux
 
15480
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15481
  shlibpath_var=LIBPATH
 
15482
 
 
15483
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15484
  soname_spec='${libname}${release}${shared_ext}$major'
 
15485
  ;;
 
15486
 
 
15487
aix4* | aix5*)
 
15488
  version_type=linux
 
15489
  need_lib_prefix=no
 
15490
  need_version=no
 
15491
  hardcode_into_libs=yes
 
15492
  if test "$host_cpu" = ia64; then
 
15493
    # AIX 5 supports IA64
 
15494
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15495
    shlibpath_var=LD_LIBRARY_PATH
 
15496
  else
 
15497
    # With GCC up to 2.95.x, collect2 would create an import file
 
15498
    # for dependence libraries.  The import file would start with
 
15499
    # the line `#! .'.  This would cause the generated library to
 
15500
    # depend on `.', always an invalid library.  This was fixed in
 
15501
    # development snapshots of GCC prior to 3.0.
 
15502
    case $host_os in
 
15503
      aix4 | aix4.[01] | aix4.[01].*)
 
15504
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15505
           echo ' yes '
 
15506
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15507
        :
 
15508
      else
 
15509
        can_build_shared=no
 
15510
      fi
 
15511
      ;;
 
15512
    esac
 
15513
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15514
    # soname into executable. Probably we can add versioning support to
 
15515
    # collect2, so additional links can be useful in future.
 
15516
    if test "$aix_use_runtimelinking" = yes; then
 
15517
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15518
      # instead of lib<name>.a to let people know that these are not
 
15519
      # typical AIX shared libraries.
 
15520
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15521
    else
 
15522
      # We preserve .a as extension for shared libraries through AIX4.2
 
15523
      # and later when we are not doing run time linking.
 
15524
      library_names_spec='${libname}${release}.a $libname.a'
 
15525
      soname_spec='${libname}${release}${shared_ext}$major'
 
15526
    fi
 
15527
    shlibpath_var=LIBPATH
 
15528
  fi
 
15529
  ;;
 
15530
 
 
15531
amigaos*)
 
15532
  library_names_spec='$libname.ixlibrary $libname.a'
 
15533
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15534
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
15535
  ;;
 
15536
 
 
15537
beos*)
 
15538
  library_names_spec='${libname}${shared_ext}'
 
15539
  dynamic_linker="$host_os ld.so"
 
15540
  shlibpath_var=LIBRARY_PATH
 
15541
  ;;
 
15542
 
 
15543
bsdi[45]*)
 
15544
  version_type=linux
 
15545
  need_version=no
 
15546
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15547
  soname_spec='${libname}${release}${shared_ext}$major'
 
15548
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15549
  shlibpath_var=LD_LIBRARY_PATH
 
15550
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15551
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15552
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15553
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15554
  # libtool to hard-code these into programs
 
15555
  ;;
 
15556
 
 
15557
cygwin* | mingw* | pw32*)
 
15558
  version_type=windows
 
15559
  shrext_cmds=".dll"
 
15560
  need_version=no
 
15561
  need_lib_prefix=no
 
15562
 
 
15563
  case $GCC,$host_os in
 
15564
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15565
    library_names_spec='$libname.dll.a'
 
15566
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15567
    postinstall_cmds='base_file=`basename \${file}`~
 
15568
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15569
      dldir=$destdir/`dirname \$dlpath`~
 
15570
      test -d \$dldir || mkdir -p \$dldir~
 
15571
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15572
      chmod a+x \$dldir/$dlname'
 
15573
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15574
      dlpath=$dir/\$dldll~
 
15575
       $rm \$dlpath'
 
15576
    shlibpath_overrides_runpath=yes
 
15577
 
 
15578
    case $host_os in
 
15579
    cygwin*)
 
15580
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15581
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15582
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15583
      ;;
 
15584
    mingw*)
 
15585
      # MinGW DLLs use traditional 'lib' prefix
 
15586
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15587
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15588
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15589
        # It is most probably a Windows format PATH printed by
 
15590
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15591
        # path with ; separators, and with drive letters. We can handle the
 
15592
        # drive letters (cygwin fileutils understands them), so leave them,
 
15593
        # especially as we might pass files found there to a mingw objdump,
 
15594
        # which wouldn't understand a cygwinified path. Ahh.
 
15595
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15596
      else
 
15597
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15598
      fi
 
15599
      ;;
 
15600
    pw32*)
 
15601
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15602
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15603
      ;;
 
15604
    esac
 
15605
    ;;
 
15606
 
 
15607
  *)
 
15608
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15609
    ;;
 
15610
  esac
 
15611
  dynamic_linker='Win32 ld.exe'
 
15612
  # FIXME: first we should search . and the directory the executable is in
 
15613
  shlibpath_var=PATH
 
15614
  ;;
 
15615
 
 
15616
darwin* | rhapsody*)
 
15617
  dynamic_linker="$host_os dyld"
 
15618
  version_type=darwin
 
15619
  need_lib_prefix=no
 
15620
  need_version=no
 
15621
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15622
  soname_spec='${libname}${release}${major}$shared_ext'
 
15623
  shlibpath_overrides_runpath=yes
 
15624
  shlibpath_var=DYLD_LIBRARY_PATH
 
15625
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15626
 
 
15627
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15628
  ;;
 
15629
 
 
15630
dgux*)
 
15631
  version_type=linux
 
15632
  need_lib_prefix=no
 
15633
  need_version=no
 
15634
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15635
  soname_spec='${libname}${release}${shared_ext}$major'
 
15636
  shlibpath_var=LD_LIBRARY_PATH
 
15637
  ;;
 
15638
 
 
15639
freebsd1*)
 
15640
  dynamic_linker=no
 
15641
  ;;
 
15642
 
 
15643
freebsd* | dragonfly*)
 
15644
  # DragonFly does not have aout.  When/if they implement a new
 
15645
  # versioning mechanism, adjust this.
 
15646
  if test -x /usr/bin/objformat; then
 
15647
    objformat=`/usr/bin/objformat`
 
15648
  else
 
15649
    case $host_os in
 
15650
    freebsd[123]*) objformat=aout ;;
 
15651
    *) objformat=elf ;;
 
15652
    esac
 
15653
  fi
 
15654
  # Handle Gentoo/FreeBSD as it was Linux
 
15655
  case $host_vendor in
 
15656
    gentoo)
 
15657
      version_type=linux ;;
 
15658
    *)
 
15659
      version_type=freebsd-$objformat ;;
 
15660
  esac
 
15661
 
 
15662
  case $version_type in
 
15663
    freebsd-elf*)
 
15664
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15665
      need_version=no
 
15666
      need_lib_prefix=no
 
15667
      ;;
 
15668
    freebsd-*)
 
15669
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15670
      need_version=yes
 
15671
      ;;
 
15672
    linux)
 
15673
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15674
      soname_spec='${libname}${release}${shared_ext}$major'
 
15675
      need_lib_prefix=no
 
15676
      need_version=no
 
15677
      ;;
 
15678
  esac
 
15679
  shlibpath_var=LD_LIBRARY_PATH
 
15680
  case $host_os in
 
15681
  freebsd2*)
 
15682
    shlibpath_overrides_runpath=yes
 
15683
    ;;
 
15684
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15685
    shlibpath_overrides_runpath=yes
 
15686
    hardcode_into_libs=yes
 
15687
    ;;
 
15688
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15689
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15690
    shlibpath_overrides_runpath=no
 
15691
    hardcode_into_libs=yes
 
15692
    ;;
 
15693
  *) # from 4.6 on, and DragonFly
 
15694
    shlibpath_overrides_runpath=yes
 
15695
    hardcode_into_libs=yes
 
15696
    ;;
 
15697
  esac
 
15698
  ;;
 
15699
 
 
15700
gnu*)
 
15701
  version_type=linux
 
15702
  need_lib_prefix=no
 
15703
  need_version=no
 
15704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15705
  soname_spec='${libname}${release}${shared_ext}$major'
 
15706
  shlibpath_var=LD_LIBRARY_PATH
 
15707
  hardcode_into_libs=yes
 
15708
  ;;
 
15709
 
 
15710
hpux9* | hpux10* | hpux11*)
 
15711
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15712
  # link against other versions.
 
15713
  version_type=sunos
 
15714
  need_lib_prefix=no
 
15715
  need_version=no
 
15716
  case $host_cpu in
 
15717
  ia64*)
 
15718
    shrext_cmds='.so'
 
15719
    hardcode_into_libs=yes
 
15720
    dynamic_linker="$host_os dld.so"
 
15721
    shlibpath_var=LD_LIBRARY_PATH
 
15722
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15723
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15724
    soname_spec='${libname}${release}${shared_ext}$major'
 
15725
    if test "X$HPUX_IA64_MODE" = X32; then
 
15726
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15727
    else
 
15728
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15729
    fi
 
15730
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15731
    ;;
 
15732
   hppa*64*)
 
15733
     shrext_cmds='.sl'
 
15734
     hardcode_into_libs=yes
 
15735
     dynamic_linker="$host_os dld.sl"
 
15736
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15737
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15738
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15739
     soname_spec='${libname}${release}${shared_ext}$major'
 
15740
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15741
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15742
     ;;
 
15743
   *)
 
15744
    shrext_cmds='.sl'
 
15745
    dynamic_linker="$host_os dld.sl"
 
15746
    shlibpath_var=SHLIB_PATH
 
15747
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15748
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15749
    soname_spec='${libname}${release}${shared_ext}$major'
 
15750
    ;;
 
15751
  esac
 
15752
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15753
  postinstall_cmds='chmod 555 $lib'
 
15754
  ;;
 
15755
 
 
15756
interix[3-9]*)
 
15757
  version_type=linux
 
15758
  need_lib_prefix=no
 
15759
  need_version=no
 
15760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15761
  soname_spec='${libname}${release}${shared_ext}$major'
 
15762
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15763
  shlibpath_var=LD_LIBRARY_PATH
 
15764
  shlibpath_overrides_runpath=no
 
15765
  hardcode_into_libs=yes
 
15766
  ;;
 
15767
 
 
15768
irix5* | irix6* | nonstopux*)
 
15769
  case $host_os in
 
15770
    nonstopux*) version_type=nonstopux ;;
 
15771
    *)
 
15772
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15773
                version_type=linux
 
15774
        else
 
15775
                version_type=irix
 
15776
        fi ;;
 
15777
  esac
 
15778
  need_lib_prefix=no
 
15779
  need_version=no
 
15780
  soname_spec='${libname}${release}${shared_ext}$major'
 
15781
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15782
  case $host_os in
 
15783
  irix5* | nonstopux*)
 
15784
    libsuff= shlibsuff=
 
15785
    ;;
 
15786
  *)
 
15787
    case $LD in # libtool.m4 will add one of these switches to LD
 
15788
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15789
      libsuff= shlibsuff= libmagic=32-bit;;
 
15790
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15791
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15792
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15793
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15794
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15795
    esac
 
15796
    ;;
 
15797
  esac
 
15798
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15799
  shlibpath_overrides_runpath=no
 
15800
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15801
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15802
  hardcode_into_libs=yes
 
15803
  ;;
 
15804
 
 
15805
# No shared lib support for Linux oldld, aout, or coff.
 
15806
linux*oldld* | linux*aout* | linux*coff*)
 
15807
  dynamic_linker=no
 
15808
  ;;
 
15809
 
 
15810
# This must be Linux ELF.
 
15811
linux* | k*bsd*-gnu)
 
15812
  version_type=linux
 
15813
  need_lib_prefix=no
 
15814
  need_version=no
 
15815
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15816
  soname_spec='${libname}${release}${shared_ext}$major'
 
15817
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15818
  shlibpath_var=LD_LIBRARY_PATH
 
15819
  shlibpath_overrides_runpath=no
 
15820
  # This implies no fast_install, which is unacceptable.
 
15821
  # Some rework will be needed to allow for fast_install
 
15822
  # before this can be enabled.
 
15823
  hardcode_into_libs=yes
 
15824
 
 
15825
  # Append ld.so.conf contents to the search path
 
15826
  if test -f /etc/ld.so.conf; then
 
15827
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15828
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15829
  fi
 
15830
 
 
15831
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15832
  # powerpc, because MkLinux only supported shared libraries with the
 
15833
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15834
  # most powerpc-linux boxes support dynamic linking these days and
 
15835
  # people can always --disable-shared, the test was removed, and we
 
15836
  # assume the GNU/Linux dynamic linker is in use.
 
15837
  dynamic_linker='GNU/Linux ld.so'
 
15838
  ;;
 
15839
 
 
15840
netbsd*)
 
15841
  version_type=sunos
 
15842
  need_lib_prefix=no
 
15843
  need_version=no
 
15844
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15845
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15846
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15847
    dynamic_linker='NetBSD (a.out) ld.so'
 
15848
  else
 
15849
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15850
    soname_spec='${libname}${release}${shared_ext}$major'
 
15851
    dynamic_linker='NetBSD ld.elf_so'
 
15852
  fi
 
15853
  shlibpath_var=LD_LIBRARY_PATH
 
15854
  shlibpath_overrides_runpath=yes
 
15855
  hardcode_into_libs=yes
 
15856
  ;;
 
15857
 
 
15858
newsos6)
 
15859
  version_type=linux
 
15860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15861
  shlibpath_var=LD_LIBRARY_PATH
 
15862
  shlibpath_overrides_runpath=yes
 
15863
  ;;
 
15864
 
 
15865
nto-qnx*)
 
15866
  version_type=linux
 
15867
  need_lib_prefix=no
 
15868
  need_version=no
 
15869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15870
  soname_spec='${libname}${release}${shared_ext}$major'
 
15871
  shlibpath_var=LD_LIBRARY_PATH
 
15872
  shlibpath_overrides_runpath=yes
 
15873
  ;;
 
15874
 
 
15875
openbsd*)
 
15876
  version_type=sunos
 
15877
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15878
  need_lib_prefix=no
 
15879
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15880
  case $host_os in
 
15881
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15882
    *)                         need_version=no  ;;
 
15883
  esac
 
15884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15885
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15886
  shlibpath_var=LD_LIBRARY_PATH
 
15887
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15888
    case $host_os in
 
15889
      openbsd2.[89] | openbsd2.[89].*)
 
15890
        shlibpath_overrides_runpath=no
 
15891
        ;;
 
15892
      *)
 
15893
        shlibpath_overrides_runpath=yes
 
15894
        ;;
 
15895
      esac
 
15896
  else
 
15897
    shlibpath_overrides_runpath=yes
 
15898
  fi
 
15899
  ;;
 
15900
 
 
15901
os2*)
 
15902
  libname_spec='$name'
 
15903
  shrext_cmds=".dll"
 
15904
  need_lib_prefix=no
 
15905
  library_names_spec='$libname${shared_ext} $libname.a'
 
15906
  dynamic_linker='OS/2 ld.exe'
 
15907
  shlibpath_var=LIBPATH
 
15908
  ;;
 
15909
 
 
15910
osf3* | osf4* | osf5*)
 
15911
  version_type=osf
 
15912
  need_lib_prefix=no
 
15913
  need_version=no
 
15914
  soname_spec='${libname}${release}${shared_ext}$major'
 
15915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15916
  shlibpath_var=LD_LIBRARY_PATH
 
15917
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15918
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15919
  ;;
 
15920
 
 
15921
rdos*)
 
15922
  dynamic_linker=no
 
15923
  ;;
 
15924
 
 
15925
solaris*)
 
15926
  version_type=linux
 
15927
  need_lib_prefix=no
 
15928
  need_version=no
 
15929
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15930
  soname_spec='${libname}${release}${shared_ext}$major'
 
15931
  shlibpath_var=LD_LIBRARY_PATH
 
15932
  shlibpath_overrides_runpath=yes
 
15933
  hardcode_into_libs=yes
 
15934
  # ldd complains unless libraries are executable
 
15935
  postinstall_cmds='chmod +x $lib'
 
15936
  ;;
 
15937
 
 
15938
sunos4*)
 
15939
  version_type=sunos
 
15940
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15941
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15942
  shlibpath_var=LD_LIBRARY_PATH
 
15943
  shlibpath_overrides_runpath=yes
 
15944
  if test "$with_gnu_ld" = yes; then
 
15945
    need_lib_prefix=no
 
15946
  fi
 
15947
  need_version=yes
 
15948
  ;;
 
15949
 
 
15950
sysv4 | sysv4.3*)
 
15951
  version_type=linux
 
15952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15953
  soname_spec='${libname}${release}${shared_ext}$major'
 
15954
  shlibpath_var=LD_LIBRARY_PATH
 
15955
  case $host_vendor in
 
15956
    sni)
 
15957
      shlibpath_overrides_runpath=no
 
15958
      need_lib_prefix=no
 
15959
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15960
      runpath_var=LD_RUN_PATH
 
15961
      ;;
 
15962
    siemens)
 
15963
      need_lib_prefix=no
 
15964
      ;;
 
15965
    motorola)
 
15966
      need_lib_prefix=no
 
15967
      need_version=no
 
15968
      shlibpath_overrides_runpath=no
 
15969
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15970
      ;;
 
15971
  esac
 
15972
  ;;
 
15973
 
 
15974
sysv4*MP*)
 
15975
  if test -d /usr/nec ;then
 
15976
    version_type=linux
 
15977
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15978
    soname_spec='$libname${shared_ext}.$major'
 
15979
    shlibpath_var=LD_LIBRARY_PATH
 
15980
  fi
 
15981
  ;;
 
15982
 
 
15983
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15984
  version_type=freebsd-elf
 
15985
  need_lib_prefix=no
 
15986
  need_version=no
 
15987
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15988
  soname_spec='${libname}${release}${shared_ext}$major'
 
15989
  shlibpath_var=LD_LIBRARY_PATH
 
15990
  hardcode_into_libs=yes
 
15991
  if test "$with_gnu_ld" = yes; then
 
15992
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15993
    shlibpath_overrides_runpath=no
 
15994
  else
 
15995
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15996
    shlibpath_overrides_runpath=yes
 
15997
    case $host_os in
 
15998
      sco3.2v5*)
 
15999
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16000
        ;;
 
16001
    esac
 
16002
  fi
 
16003
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16004
  ;;
 
16005
 
 
16006
uts4*)
 
16007
  version_type=linux
 
16008
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16009
  soname_spec='${libname}${release}${shared_ext}$major'
 
16010
  shlibpath_var=LD_LIBRARY_PATH
 
16011
  ;;
 
16012
 
 
16013
*)
 
16014
  dynamic_linker=no
 
16015
  ;;
 
16016
esac
 
16017
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16018
echo "${ECHO_T}$dynamic_linker" >&6; }
 
16019
test "$dynamic_linker" = no && can_build_shared=no
 
16020
 
 
16021
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16022
if test "$GCC" = yes; then
 
16023
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16024
fi
 
16025
 
 
16026
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16027
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
16028
hardcode_action_F77=
 
16029
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16030
   test -n "$runpath_var_F77" || \
 
16031
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16032
 
 
16033
  # We can hardcode non-existant directories.
 
16034
  if test "$hardcode_direct_F77" != no &&
 
16035
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16036
     # have to relink, otherwise we might link with an installed library
 
16037
     # when we should be linking with a yet-to-be-installed one
 
16038
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16039
     test "$hardcode_minus_L_F77" != no; then
 
16040
    # Linking always hardcodes the temporary library directory.
 
16041
    hardcode_action_F77=relink
 
16042
  else
 
16043
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16044
    hardcode_action_F77=immediate
 
16045
  fi
 
16046
else
 
16047
  # We cannot hardcode anything, or else we can only hardcode existing
 
16048
  # directories.
 
16049
  hardcode_action_F77=unsupported
 
16050
fi
 
16051
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16052
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
16053
 
 
16054
if test "$hardcode_action_F77" = relink; then
 
16055
  # Fast installation is not supported
 
16056
  enable_fast_install=no
 
16057
elif test "$shlibpath_overrides_runpath" = yes ||
 
16058
     test "$enable_shared" = no; then
 
16059
  # Fast installation is not necessary
 
16060
  enable_fast_install=needless
 
16061
fi
 
16062
 
 
16063
 
 
16064
# The else clause should only fire when bootstrapping the
 
16065
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16066
# with your package, and you will get complaints that there are
 
16067
# no rules to generate ltmain.sh.
 
16068
if test -f "$ltmain"; then
 
16069
  # See if we are running on zsh, and set the options which allow our commands through
 
16070
  # without removal of \ escapes.
 
16071
  if test -n "${ZSH_VERSION+set}" ; then
 
16072
    setopt NO_GLOB_SUBST
 
16073
  fi
 
16074
  # Now quote all the things that may contain metacharacters while being
 
16075
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16076
  # variables and quote the copies for generation of the libtool script.
 
16077
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16078
    SED SHELL STRIP \
 
16079
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16080
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16081
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16082
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16083
    lt_cv_sys_global_symbol_to_c_name_address \
 
16084
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16085
    old_postinstall_cmds old_postuninstall_cmds \
 
16086
    compiler_F77 \
 
16087
    CC_F77 \
 
16088
    LD_F77 \
 
16089
    lt_prog_compiler_wl_F77 \
 
16090
    lt_prog_compiler_pic_F77 \
 
16091
    lt_prog_compiler_static_F77 \
 
16092
    lt_prog_compiler_no_builtin_flag_F77 \
 
16093
    export_dynamic_flag_spec_F77 \
 
16094
    thread_safe_flag_spec_F77 \
 
16095
    whole_archive_flag_spec_F77 \
 
16096
    enable_shared_with_static_runtimes_F77 \
 
16097
    old_archive_cmds_F77 \
 
16098
    old_archive_from_new_cmds_F77 \
 
16099
    predep_objects_F77 \
 
16100
    postdep_objects_F77 \
 
16101
    predeps_F77 \
 
16102
    postdeps_F77 \
 
16103
    compiler_lib_search_path_F77 \
 
16104
    archive_cmds_F77 \
 
16105
    archive_expsym_cmds_F77 \
 
16106
    postinstall_cmds_F77 \
 
16107
    postuninstall_cmds_F77 \
 
16108
    old_archive_from_expsyms_cmds_F77 \
 
16109
    allow_undefined_flag_F77 \
 
16110
    no_undefined_flag_F77 \
 
16111
    export_symbols_cmds_F77 \
 
16112
    hardcode_libdir_flag_spec_F77 \
 
16113
    hardcode_libdir_flag_spec_ld_F77 \
 
16114
    hardcode_libdir_separator_F77 \
 
16115
    hardcode_automatic_F77 \
 
16116
    module_cmds_F77 \
 
16117
    module_expsym_cmds_F77 \
 
16118
    lt_cv_prog_compiler_c_o_F77 \
 
16119
    fix_srcfile_path_F77 \
 
16120
    exclude_expsyms_F77 \
 
16121
    include_expsyms_F77; do
 
16122
 
 
16123
    case $var in
 
16124
    old_archive_cmds_F77 | \
 
16125
    old_archive_from_new_cmds_F77 | \
 
16126
    archive_cmds_F77 | \
 
16127
    archive_expsym_cmds_F77 | \
 
16128
    module_cmds_F77 | \
 
16129
    module_expsym_cmds_F77 | \
 
16130
    old_archive_from_expsyms_cmds_F77 | \
 
16131
    export_symbols_cmds_F77 | \
 
16132
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16133
    postinstall_cmds | postuninstall_cmds | \
 
16134
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16135
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16136
      # Double-quote double-evaled strings.
 
16137
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16138
      ;;
 
16139
    *)
 
16140
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16141
      ;;
 
16142
    esac
 
16143
  done
 
16144
 
 
16145
  case $lt_echo in
 
16146
  *'\$0 --fallback-echo"')
 
16147
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16148
    ;;
 
16149
  esac
 
16150
 
 
16151
cfgfile="$ofile"
 
16152
 
 
16153
  cat <<__EOF__ >> "$cfgfile"
 
16154
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16155
 
 
16156
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16157
 
 
16158
# Shell to use when invoking shell scripts.
 
16159
SHELL=$lt_SHELL
 
16160
 
 
16161
# Whether or not to build shared libraries.
 
16162
build_libtool_libs=$enable_shared
 
16163
 
 
16164
# Whether or not to build static libraries.
 
16165
build_old_libs=$enable_static
 
16166
 
 
16167
# Whether or not to add -lc for building shared libraries.
 
16168
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16169
 
 
16170
# Whether or not to disallow shared libs when runtime libs are static
 
16171
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16172
 
 
16173
# Whether or not to optimize for fast installation.
 
16174
fast_install=$enable_fast_install
 
16175
 
 
16176
# The host system.
 
16177
host_alias=$host_alias
 
16178
host=$host
 
16179
host_os=$host_os
 
16180
 
 
16181
# The build system.
 
16182
build_alias=$build_alias
 
16183
build=$build
 
16184
build_os=$build_os
 
16185
 
 
16186
# An echo program that does not interpret backslashes.
 
16187
echo=$lt_echo
 
16188
 
 
16189
# The archiver.
 
16190
AR=$lt_AR
 
16191
AR_FLAGS=$lt_AR_FLAGS
 
16192
 
 
16193
# A C compiler.
 
16194
LTCC=$lt_LTCC
 
16195
 
 
16196
# LTCC compiler flags.
 
16197
LTCFLAGS=$lt_LTCFLAGS
 
16198
 
 
16199
# A language-specific compiler.
 
16200
CC=$lt_compiler_F77
 
16201
 
 
16202
# Is the compiler the GNU C compiler?
 
16203
with_gcc=$GCC_F77
 
16204
 
 
16205
# An ERE matcher.
 
16206
EGREP=$lt_EGREP
 
16207
 
 
16208
# The linker used to build libraries.
 
16209
LD=$lt_LD_F77
 
16210
 
 
16211
# Whether we need hard or soft links.
 
16212
LN_S=$lt_LN_S
 
16213
 
 
16214
# A BSD-compatible nm program.
 
16215
NM=$lt_NM
 
16216
 
 
16217
# A symbol stripping program
 
16218
STRIP=$lt_STRIP
 
16219
 
 
16220
# Used to examine libraries when file_magic_cmd begins "file"
 
16221
MAGIC_CMD=$MAGIC_CMD
 
16222
 
 
16223
# Used on cygwin: DLL creation program.
 
16224
DLLTOOL="$DLLTOOL"
 
16225
 
 
16226
# Used on cygwin: object dumper.
 
16227
OBJDUMP="$OBJDUMP"
 
16228
 
 
16229
# Used on cygwin: assembler.
 
16230
AS="$AS"
 
16231
 
 
16232
# The name of the directory that contains temporary libtool files.
 
16233
objdir=$objdir
 
16234
 
 
16235
# How to create reloadable object files.
 
16236
reload_flag=$lt_reload_flag
 
16237
reload_cmds=$lt_reload_cmds
 
16238
 
 
16239
# How to pass a linker flag through the compiler.
 
16240
wl=$lt_lt_prog_compiler_wl_F77
 
16241
 
 
16242
# Object file suffix (normally "o").
 
16243
objext="$ac_objext"
 
16244
 
 
16245
# Old archive suffix (normally "a").
 
16246
libext="$libext"
 
16247
 
 
16248
# Shared library suffix (normally ".so").
 
16249
shrext_cmds='$shrext_cmds'
 
16250
 
 
16251
# Executable file suffix (normally "").
 
16252
exeext="$exeext"
 
16253
 
 
16254
# Additional compiler flags for building library objects.
 
16255
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16256
pic_mode=$pic_mode
 
16257
 
 
16258
# What is the maximum length of a command?
 
16259
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16260
 
 
16261
# Does compiler simultaneously support -c and -o options?
 
16262
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16263
 
 
16264
# Must we lock files when doing compilation?
 
16265
need_locks=$lt_need_locks
 
16266
 
 
16267
# Do we need the lib prefix for modules?
 
16268
need_lib_prefix=$need_lib_prefix
 
16269
 
 
16270
# Do we need a version for libraries?
 
16271
need_version=$need_version
 
16272
 
 
16273
# Whether dlopen is supported.
 
16274
dlopen_support=$enable_dlopen
 
16275
 
 
16276
# Whether dlopen of programs is supported.
 
16277
dlopen_self=$enable_dlopen_self
 
16278
 
 
16279
# Whether dlopen of statically linked programs is supported.
 
16280
dlopen_self_static=$enable_dlopen_self_static
 
16281
 
 
16282
# Compiler flag to prevent dynamic linking.
 
16283
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16284
 
 
16285
# Compiler flag to turn off builtin functions.
 
16286
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16287
 
 
16288
# Compiler flag to allow reflexive dlopens.
 
16289
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16290
 
 
16291
# Compiler flag to generate shared objects directly from archives.
 
16292
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16293
 
 
16294
# Compiler flag to generate thread-safe objects.
 
16295
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16296
 
 
16297
# Library versioning type.
 
16298
version_type=$version_type
 
16299
 
 
16300
# Format of library name prefix.
 
16301
libname_spec=$lt_libname_spec
 
16302
 
 
16303
# List of archive names.  First name is the real one, the rest are links.
 
16304
# The last name is the one that the linker finds with -lNAME.
 
16305
library_names_spec=$lt_library_names_spec
 
16306
 
 
16307
# The coded name of the library, if different from the real name.
 
16308
soname_spec=$lt_soname_spec
 
16309
 
 
16310
# Commands used to build and install an old-style archive.
 
16311
RANLIB=$lt_RANLIB
 
16312
old_archive_cmds=$lt_old_archive_cmds_F77
 
16313
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16314
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16315
 
 
16316
# Create an old-style archive from a shared archive.
 
16317
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16318
 
 
16319
# Create a temporary old-style archive to link instead of a shared archive.
 
16320
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16321
 
 
16322
# Commands used to build and install a shared archive.
 
16323
archive_cmds=$lt_archive_cmds_F77
 
16324
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16325
postinstall_cmds=$lt_postinstall_cmds
 
16326
postuninstall_cmds=$lt_postuninstall_cmds
 
16327
 
 
16328
# Commands used to build a loadable module (assumed same as above if empty)
 
16329
module_cmds=$lt_module_cmds_F77
 
16330
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16331
 
 
16332
# Commands to strip libraries.
 
16333
old_striplib=$lt_old_striplib
 
16334
striplib=$lt_striplib
 
16335
 
 
16336
# Dependencies to place before the objects being linked to create a
 
16337
# shared library.
 
16338
predep_objects=$lt_predep_objects_F77
 
16339
 
 
16340
# Dependencies to place after the objects being linked to create a
 
16341
# shared library.
 
16342
postdep_objects=$lt_postdep_objects_F77
 
16343
 
 
16344
# Dependencies to place before the objects being linked to create a
 
16345
# shared library.
 
16346
predeps=$lt_predeps_F77
 
16347
 
 
16348
# Dependencies to place after the objects being linked to create a
 
16349
# shared library.
 
16350
postdeps=$lt_postdeps_F77
 
16351
 
 
16352
# The library search path used internally by the compiler when linking
 
16353
# a shared library.
 
16354
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16355
 
 
16356
# Method to check whether dependent libraries are shared objects.
 
16357
deplibs_check_method=$lt_deplibs_check_method
 
16358
 
 
16359
# Command to use when deplibs_check_method == file_magic.
 
16360
file_magic_cmd=$lt_file_magic_cmd
 
16361
 
 
16362
# Flag that allows shared libraries with undefined symbols to be built.
 
16363
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16364
 
 
16365
# Flag that forces no undefined symbols.
 
16366
no_undefined_flag=$lt_no_undefined_flag_F77
 
16367
 
 
16368
# Commands used to finish a libtool library installation in a directory.
 
16369
finish_cmds=$lt_finish_cmds
 
16370
 
 
16371
# Same as above, but a single script fragment to be evaled but not shown.
 
16372
finish_eval=$lt_finish_eval
 
16373
 
 
16374
# Take the output of nm and produce a listing of raw symbols and C names.
 
16375
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16376
 
 
16377
# Transform the output of nm in a proper C declaration
 
16378
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16379
 
 
16380
# Transform the output of nm in a C name address pair
 
16381
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16382
 
 
16383
# This is the shared library runtime path variable.
 
16384
runpath_var=$runpath_var
 
16385
 
 
16386
# This is the shared library path variable.
 
16387
shlibpath_var=$shlibpath_var
 
16388
 
 
16389
# Is shlibpath searched before the hard-coded library search path?
 
16390
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16391
 
 
16392
# How to hardcode a shared library path into an executable.
 
16393
hardcode_action=$hardcode_action_F77
 
16394
 
 
16395
# Whether we should hardcode library paths into libraries.
 
16396
hardcode_into_libs=$hardcode_into_libs
 
16397
 
 
16398
# Flag to hardcode \$libdir into a binary during linking.
 
16399
# This must work even if \$libdir does not exist.
 
16400
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16401
 
 
16402
# If ld is used when linking, flag to hardcode \$libdir into
 
16403
# a binary during linking. This must work even if \$libdir does
 
16404
# not exist.
 
16405
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16406
 
 
16407
# Whether we need a single -rpath flag with a separated argument.
 
16408
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16409
 
 
16410
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16411
# resulting binary.
 
16412
hardcode_direct=$hardcode_direct_F77
 
16413
 
 
16414
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16415
# resulting binary.
 
16416
hardcode_minus_L=$hardcode_minus_L_F77
 
16417
 
 
16418
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16419
# the resulting binary.
 
16420
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16421
 
 
16422
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16423
# and all subsequent libraries and executables linked against it.
 
16424
hardcode_automatic=$hardcode_automatic_F77
 
16425
 
 
16426
# Variables whose values should be saved in libtool wrapper scripts and
 
16427
# restored at relink time.
 
16428
variables_saved_for_relink="$variables_saved_for_relink"
 
16429
 
 
16430
# Whether libtool must link a program against all its dependency libraries.
 
16431
link_all_deplibs=$link_all_deplibs_F77
 
16432
 
 
16433
# Compile-time system search path for libraries
 
16434
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16435
 
 
16436
# Run-time system search path for libraries
 
16437
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16438
 
 
16439
# Fix the shell variable \$srcfile for the compiler.
 
16440
fix_srcfile_path=$lt_fix_srcfile_path
 
16441
 
 
16442
# Set to yes if exported symbols are required.
 
16443
always_export_symbols=$always_export_symbols_F77
 
16444
 
 
16445
# The commands to list exported symbols.
 
16446
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16447
 
 
16448
# The commands to extract the exported symbol list from a shared archive.
 
16449
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16450
 
 
16451
# Symbols that should not be listed in the preloaded symbols.
 
16452
exclude_expsyms=$lt_exclude_expsyms_F77
 
16453
 
 
16454
# Symbols that must always be exported.
 
16455
include_expsyms=$lt_include_expsyms_F77
 
16456
 
 
16457
# ### END LIBTOOL TAG CONFIG: $tagname
 
16458
 
 
16459
__EOF__
 
16460
 
 
16461
 
 
16462
else
 
16463
  # If there is no Makefile yet, we rely on a make rule to execute
 
16464
  # `config.status --recheck' to rerun these tests and create the
 
16465
  # libtool script then.
 
16466
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16467
  if test -f "$ltmain_in"; then
 
16468
    test -f Makefile && make "$ltmain"
 
16469
  fi
 
16470
fi
 
16471
 
 
16472
 
 
16473
ac_ext=c
 
16474
ac_cpp='$CPP $CPPFLAGS'
 
16475
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16476
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16477
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16478
 
 
16479
CC="$lt_save_CC"
 
16480
 
 
16481
        else
 
16482
          tagname=""
 
16483
        fi
 
16484
        ;;
 
16485
 
 
16486
      GCJ)
 
16487
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16488
 
 
16489
 
 
16490
# Source file extension for Java test sources.
 
16491
ac_ext=java
 
16492
 
 
16493
# Object file extension for compiled Java test sources.
 
16494
objext=o
 
16495
objext_GCJ=$objext
 
16496
 
 
16497
# Code to be used in simple compile tests
 
16498
lt_simple_compile_test_code="class foo {}"
 
16499
 
 
16500
# Code to be used in simple link tests
 
16501
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16502
 
 
16503
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16504
 
 
16505
# If no C compiler was specified, use CC.
 
16506
LTCC=${LTCC-"$CC"}
 
16507
 
 
16508
# If no C compiler flags were specified, use CFLAGS.
 
16509
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16510
 
 
16511
# Allow CC to be a program name with arguments.
 
16512
compiler=$CC
 
16513
 
 
16514
 
 
16515
# save warnings/boilerplate of simple test code
 
16516
ac_outfile=conftest.$ac_objext
 
16517
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16518
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16519
_lt_compiler_boilerplate=`cat conftest.err`
 
16520
$rm conftest*
 
16521
 
 
16522
ac_outfile=conftest.$ac_objext
 
16523
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16524
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16525
_lt_linker_boilerplate=`cat conftest.err`
 
16526
$rm conftest*
 
16527
 
 
16528
 
 
16529
# Allow CC to be a program name with arguments.
 
16530
lt_save_CC="$CC"
 
16531
CC=${GCJ-"gcj"}
 
16532
compiler=$CC
 
16533
compiler_GCJ=$CC
 
16534
for cc_temp in $compiler""; do
 
16535
  case $cc_temp in
 
16536
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16537
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16538
    \-*) ;;
 
16539
    *) break;;
 
16540
  esac
 
16541
done
 
16542
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16543
 
 
16544
 
 
16545
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16546
archive_cmds_need_lc_GCJ=no
 
16547
 
 
16548
old_archive_cmds_GCJ=$old_archive_cmds
 
16549
 
 
16550
 
 
16551
lt_prog_compiler_no_builtin_flag_GCJ=
 
16552
 
 
16553
if test "$GCC" = yes; then
 
16554
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16555
 
 
16556
 
 
16557
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16558
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16559
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16561
else
 
16562
  lt_cv_prog_compiler_rtti_exceptions=no
 
16563
  ac_outfile=conftest.$ac_objext
 
16564
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16565
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16566
   # Insert the option either (1) after the last *FLAGS variable, or
 
16567
   # (2) before a word containing "conftest.", or (3) at the end.
 
16568
   # Note that $ac_compile itself does not contain backslashes and begins
 
16569
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16570
   # The option is referenced via a variable to avoid confusing sed.
 
16571
   lt_compile=`echo "$ac_compile" | $SED \
 
16572
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16573
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16574
   -e 's:$: $lt_compiler_flag:'`
 
16575
   (eval echo "\"\$as_me:16575: $lt_compile\"" >&5)
 
16576
   (eval "$lt_compile" 2>conftest.err)
 
16577
   ac_status=$?
 
16578
   cat conftest.err >&5
 
16579
   echo "$as_me:16579: \$? = $ac_status" >&5
 
16580
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16581
     # The compiler can only warn and ignore the option if not recognized
 
16582
     # So say no if there are warnings other than the usual output.
 
16583
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16584
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16585
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16586
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16587
     fi
 
16588
   fi
 
16589
   $rm conftest*
 
16590
 
 
16591
fi
 
16592
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16593
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16594
 
 
16595
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16596
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16597
else
 
16598
    :
 
16599
fi
 
16600
 
 
16601
fi
 
16602
 
 
16603
lt_prog_compiler_wl_GCJ=
 
16604
lt_prog_compiler_pic_GCJ=
 
16605
lt_prog_compiler_static_GCJ=
 
16606
 
 
16607
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16608
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16609
 
 
16610
  if test "$GCC" = yes; then
 
16611
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16612
    lt_prog_compiler_static_GCJ='-static'
 
16613
 
 
16614
    case $host_os in
 
16615
      aix*)
 
16616
      # All AIX code is PIC.
 
16617
      if test "$host_cpu" = ia64; then
 
16618
        # AIX 5 now supports IA64 processor
 
16619
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16620
      fi
 
16621
      ;;
 
16622
 
 
16623
    amigaos*)
 
16624
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16625
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16626
      # like `-m68040'.
 
16627
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16628
      ;;
 
16629
 
 
16630
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16631
      # PIC is the default for these OSes.
 
16632
      ;;
 
16633
 
 
16634
    mingw* | cygwin* | pw32* | os2*)
 
16635
      # This hack is so that the source file can tell whether it is being
 
16636
      # built for inclusion in a dll (and should export symbols for example).
 
16637
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16638
      # (--disable-auto-import) libraries
 
16639
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16640
      ;;
 
16641
 
 
16642
    darwin* | rhapsody*)
 
16643
      # PIC is the default on this platform
 
16644
      # Common symbols not allowed in MH_DYLIB files
 
16645
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16646
      ;;
 
16647
 
 
16648
    interix[3-9]*)
 
16649
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16650
      # Instead, we relocate shared libraries at runtime.
 
16651
      ;;
 
16652
 
 
16653
    msdosdjgpp*)
 
16654
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16655
      # on systems that don't support them.
 
16656
      lt_prog_compiler_can_build_shared_GCJ=no
 
16657
      enable_shared=no
 
16658
      ;;
 
16659
 
 
16660
    sysv4*MP*)
 
16661
      if test -d /usr/nec; then
 
16662
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16663
      fi
 
16664
      ;;
 
16665
 
 
16666
    hpux*)
 
16667
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16668
      # not for PA HP-UX.
 
16669
      case $host_cpu in
 
16670
      hppa*64*|ia64*)
 
16671
        # +Z the default
 
16672
        ;;
 
16673
      *)
 
16674
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16675
        ;;
 
16676
      esac
 
16677
      ;;
 
16678
 
 
16679
    *)
 
16680
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16681
      ;;
 
16682
    esac
 
16683
  else
 
16684
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16685
    case $host_os in
 
16686
    aix*)
 
16687
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16688
      if test "$host_cpu" = ia64; then
 
16689
        # AIX 5 now supports IA64 processor
 
16690
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16691
      else
 
16692
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16693
      fi
 
16694
      ;;
 
16695
      darwin*)
 
16696
        # PIC is the default on this platform
 
16697
        # Common symbols not allowed in MH_DYLIB files
 
16698
       case $cc_basename in
 
16699
         xlc*)
 
16700
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16701
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16702
         ;;
 
16703
       esac
 
16704
       ;;
 
16705
 
 
16706
    mingw* | cygwin* | pw32* | os2*)
 
16707
      # This hack is so that the source file can tell whether it is being
 
16708
      # built for inclusion in a dll (and should export symbols for example).
 
16709
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16710
      ;;
 
16711
 
 
16712
    hpux9* | hpux10* | hpux11*)
 
16713
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16714
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16715
      # not for PA HP-UX.
 
16716
      case $host_cpu in
 
16717
      hppa*64*|ia64*)
 
16718
        # +Z the default
 
16719
        ;;
 
16720
      *)
 
16721
        lt_prog_compiler_pic_GCJ='+Z'
 
16722
        ;;
 
16723
      esac
 
16724
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16725
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16726
      ;;
 
16727
 
 
16728
    irix5* | irix6* | nonstopux*)
 
16729
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16730
      # PIC (with -KPIC) is the default.
 
16731
      lt_prog_compiler_static_GCJ='-non_shared'
 
16732
      ;;
 
16733
 
 
16734
    newsos6)
 
16735
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16736
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16737
      ;;
 
16738
 
 
16739
    linux* | k*bsd*-gnu)
 
16740
      case $cc_basename in
 
16741
      icc* | ecc*)
 
16742
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16743
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16744
        lt_prog_compiler_static_GCJ='-static'
 
16745
        ;;
 
16746
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16747
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16748
        # which looks to be a dead project)
 
16749
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16750
        lt_prog_compiler_pic_GCJ='-fpic'
 
16751
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16752
        ;;
 
16753
      ccc*)
 
16754
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16755
        # All Alpha code is PIC.
 
16756
        lt_prog_compiler_static_GCJ='-non_shared'
 
16757
        ;;
 
16758
      *)
 
16759
        case `$CC -V 2>&1 | sed 5q` in
 
16760
        *Sun\ C*)
 
16761
          # Sun C 5.9
 
16762
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16763
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16764
          lt_prog_compiler_wl_GCJ='-Wl,'
 
16765
          ;;
 
16766
        *Sun\ F*)
 
16767
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
16768
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16769
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16770
          lt_prog_compiler_wl_GCJ=''
 
16771
          ;;
 
16772
        esac
 
16773
        ;;
 
16774
      esac
 
16775
      ;;
 
16776
 
 
16777
    osf3* | osf4* | osf5*)
 
16778
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16779
      # All OSF/1 code is PIC.
 
16780
      lt_prog_compiler_static_GCJ='-non_shared'
 
16781
      ;;
 
16782
 
 
16783
    rdos*)
 
16784
      lt_prog_compiler_static_GCJ='-non_shared'
 
16785
      ;;
 
16786
 
 
16787
    solaris*)
 
16788
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16789
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16790
      case $cc_basename in
 
16791
      f77* | f90* | f95*)
 
16792
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16793
      *)
 
16794
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16795
      esac
 
16796
      ;;
 
16797
 
 
16798
    sunos4*)
 
16799
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16800
      lt_prog_compiler_pic_GCJ='-PIC'
 
16801
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16802
      ;;
 
16803
 
 
16804
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16805
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16806
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16807
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16808
      ;;
 
16809
 
 
16810
    sysv4*MP*)
 
16811
      if test -d /usr/nec ;then
 
16812
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16813
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16814
      fi
 
16815
      ;;
 
16816
 
 
16817
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16818
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16819
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16820
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16821
      ;;
 
16822
 
 
16823
    unicos*)
 
16824
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16825
      lt_prog_compiler_can_build_shared_GCJ=no
 
16826
      ;;
 
16827
 
 
16828
    uts4*)
 
16829
      lt_prog_compiler_pic_GCJ='-pic'
 
16830
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16831
      ;;
 
16832
 
 
16833
    *)
 
16834
      lt_prog_compiler_can_build_shared_GCJ=no
 
16835
      ;;
 
16836
    esac
 
16837
  fi
 
16838
 
 
16839
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16840
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
16841
 
 
16842
#
 
16843
# Check to make sure the PIC flag actually works.
 
16844
#
 
16845
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16846
 
 
16847
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16848
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
16849
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16851
else
 
16852
  lt_prog_compiler_pic_works_GCJ=no
 
16853
  ac_outfile=conftest.$ac_objext
 
16854
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16855
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16856
   # Insert the option either (1) after the last *FLAGS variable, or
 
16857
   # (2) before a word containing "conftest.", or (3) at the end.
 
16858
   # Note that $ac_compile itself does not contain backslashes and begins
 
16859
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16860
   # The option is referenced via a variable to avoid confusing sed.
 
16861
   lt_compile=`echo "$ac_compile" | $SED \
 
16862
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16863
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16864
   -e 's:$: $lt_compiler_flag:'`
 
16865
   (eval echo "\"\$as_me:16865: $lt_compile\"" >&5)
 
16866
   (eval "$lt_compile" 2>conftest.err)
 
16867
   ac_status=$?
 
16868
   cat conftest.err >&5
 
16869
   echo "$as_me:16869: \$? = $ac_status" >&5
 
16870
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16871
     # The compiler can only warn and ignore the option if not recognized
 
16872
     # So say no if there are warnings other than the usual output.
 
16873
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16874
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16875
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16876
       lt_prog_compiler_pic_works_GCJ=yes
 
16877
     fi
 
16878
   fi
 
16879
   $rm conftest*
 
16880
 
 
16881
fi
 
16882
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16883
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
16884
 
 
16885
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16886
    case $lt_prog_compiler_pic_GCJ in
 
16887
     "" | " "*) ;;
 
16888
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16889
     esac
 
16890
else
 
16891
    lt_prog_compiler_pic_GCJ=
 
16892
     lt_prog_compiler_can_build_shared_GCJ=no
 
16893
fi
 
16894
 
 
16895
fi
 
16896
case $host_os in
 
16897
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16898
  *djgpp*)
 
16899
    lt_prog_compiler_pic_GCJ=
 
16900
    ;;
 
16901
  *)
 
16902
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16903
    ;;
 
16904
esac
 
16905
 
 
16906
#
 
16907
# Check to make sure the static flag actually works.
 
16908
#
 
16909
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16910
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16911
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16912
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16914
else
 
16915
  lt_prog_compiler_static_works_GCJ=no
 
16916
   save_LDFLAGS="$LDFLAGS"
 
16917
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16918
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
16919
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16920
     # The linker can only warn and ignore the option if not recognized
 
16921
     # So say no if there are warnings
 
16922
     if test -s conftest.err; then
 
16923
       # Append any errors to the config.log.
 
16924
       cat conftest.err 1>&5
 
16925
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16926
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16927
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16928
         lt_prog_compiler_static_works_GCJ=yes
 
16929
       fi
 
16930
     else
 
16931
       lt_prog_compiler_static_works_GCJ=yes
 
16932
     fi
 
16933
   fi
 
16934
   $rm conftest*
 
16935
   LDFLAGS="$save_LDFLAGS"
 
16936
 
 
16937
fi
 
16938
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16939
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
16940
 
 
16941
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16942
    :
 
16943
else
 
16944
    lt_prog_compiler_static_GCJ=
 
16945
fi
 
16946
 
 
16947
 
 
16948
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16949
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
16950
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16952
else
 
16953
  lt_cv_prog_compiler_c_o_GCJ=no
 
16954
   $rm -r conftest 2>/dev/null
 
16955
   mkdir conftest
 
16956
   cd conftest
 
16957
   mkdir out
 
16958
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16959
 
 
16960
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16961
   # Insert the option either (1) after the last *FLAGS variable, or
 
16962
   # (2) before a word containing "conftest.", or (3) at the end.
 
16963
   # Note that $ac_compile itself does not contain backslashes and begins
 
16964
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16965
   lt_compile=`echo "$ac_compile" | $SED \
 
16966
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16967
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16968
   -e 's:$: $lt_compiler_flag:'`
 
16969
   (eval echo "\"\$as_me:16969: $lt_compile\"" >&5)
 
16970
   (eval "$lt_compile" 2>out/conftest.err)
 
16971
   ac_status=$?
 
16972
   cat out/conftest.err >&5
 
16973
   echo "$as_me:16973: \$? = $ac_status" >&5
 
16974
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16975
   then
 
16976
     # The compiler can only warn and ignore the option if not recognized
 
16977
     # So say no if there are warnings
 
16978
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16979
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16980
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16981
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16982
     fi
 
16983
   fi
 
16984
   chmod u+w . 2>&5
 
16985
   $rm conftest*
 
16986
   # SGI C++ compiler will create directory out/ii_files/ for
 
16987
   # template instantiation
 
16988
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16989
   $rm out/* && rmdir out
 
16990
   cd ..
 
16991
   rmdir conftest
 
16992
   $rm conftest*
 
16993
 
 
16994
fi
 
16995
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16996
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
16997
 
 
16998
 
 
16999
hard_links="nottested"
 
17000
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17001
  # do not overwrite the value of need_locks provided by the user
 
17002
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17003
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
17004
  hard_links=yes
 
17005
  $rm conftest*
 
17006
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17007
  touch conftest.a
 
17008
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17009
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17010
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17011
echo "${ECHO_T}$hard_links" >&6; }
 
17012
  if test "$hard_links" = no; then
 
17013
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17014
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17015
    need_locks=warn
 
17016
  fi
 
17017
else
 
17018
  need_locks=no
 
17019
fi
 
17020
 
 
17021
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17022
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
17023
 
 
17024
  runpath_var=
 
17025
  allow_undefined_flag_GCJ=
 
17026
  enable_shared_with_static_runtimes_GCJ=no
 
17027
  archive_cmds_GCJ=
 
17028
  archive_expsym_cmds_GCJ=
 
17029
  old_archive_From_new_cmds_GCJ=
 
17030
  old_archive_from_expsyms_cmds_GCJ=
 
17031
  export_dynamic_flag_spec_GCJ=
 
17032
  whole_archive_flag_spec_GCJ=
 
17033
  thread_safe_flag_spec_GCJ=
 
17034
  hardcode_libdir_flag_spec_GCJ=
 
17035
  hardcode_libdir_flag_spec_ld_GCJ=
 
17036
  hardcode_libdir_separator_GCJ=
 
17037
  hardcode_direct_GCJ=no
 
17038
  hardcode_minus_L_GCJ=no
 
17039
  hardcode_shlibpath_var_GCJ=unsupported
 
17040
  link_all_deplibs_GCJ=unknown
 
17041
  hardcode_automatic_GCJ=no
 
17042
  module_cmds_GCJ=
 
17043
  module_expsym_cmds_GCJ=
 
17044
  always_export_symbols_GCJ=no
 
17045
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17046
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17047
  # included in the symbol list
 
17048
  include_expsyms_GCJ=
 
17049
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17050
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17051
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17052
  # as well as any symbol that contains `d'.
 
17053
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17054
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17055
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17056
  # the symbol is explicitly referenced.  Since portable code cannot
 
17057
  # rely on this symbol name, it's probably fine to never include it in
 
17058
  # preloaded symbol tables.
 
17059
  extract_expsyms_cmds=
 
17060
  # Just being paranoid about ensuring that cc_basename is set.
 
17061
  for cc_temp in $compiler""; do
 
17062
  case $cc_temp in
 
17063
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17064
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17065
    \-*) ;;
 
17066
    *) break;;
 
17067
  esac
 
17068
done
 
17069
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17070
 
 
17071
  case $host_os in
 
17072
  cygwin* | mingw* | pw32*)
 
17073
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17074
    # When not using gcc, we currently assume that we are using
 
17075
    # Microsoft Visual C++.
 
17076
    if test "$GCC" != yes; then
 
17077
      with_gnu_ld=no
 
17078
    fi
 
17079
    ;;
 
17080
  interix*)
 
17081
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17082
    with_gnu_ld=yes
 
17083
    ;;
 
17084
  openbsd*)
 
17085
    with_gnu_ld=no
 
17086
    ;;
 
17087
  esac
 
17088
 
 
17089
  ld_shlibs_GCJ=yes
 
17090
  if test "$with_gnu_ld" = yes; then
 
17091
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17092
    wlarc='${wl}'
 
17093
 
 
17094
    # Set some defaults for GNU ld with shared library support. These
 
17095
    # are reset later if shared libraries are not supported. Putting them
 
17096
    # here allows them to be overridden if necessary.
 
17097
    runpath_var=LD_RUN_PATH
 
17098
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17099
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17100
    # ancient GNU ld didn't support --whole-archive et. al.
 
17101
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17102
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17103
      else
 
17104
        whole_archive_flag_spec_GCJ=
 
17105
    fi
 
17106
    supports_anon_versioning=no
 
17107
    case `$LD -v 2>/dev/null` in
 
17108
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17109
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17110
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17111
      *\ 2.11.*) ;; # other 2.11 versions
 
17112
      *) supports_anon_versioning=yes ;;
 
17113
    esac
 
17114
 
 
17115
    # See if GNU ld supports shared libraries.
 
17116
    case $host_os in
 
17117
    aix3* | aix4* | aix5*)
 
17118
      # On AIX/PPC, the GNU linker is very broken
 
17119
      if test "$host_cpu" != ia64; then
 
17120
        ld_shlibs_GCJ=no
 
17121
        cat <<EOF 1>&2
 
17122
 
 
17123
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17124
*** to be unable to reliably create shared libraries on AIX.
 
17125
*** Therefore, libtool is disabling shared libraries support.  If you
 
17126
*** really care for shared libraries, you may want to modify your PATH
 
17127
*** so that a non-GNU linker is found, and then restart.
 
17128
 
 
17129
EOF
 
17130
      fi
 
17131
      ;;
 
17132
 
 
17133
    amigaos*)
 
17134
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17135
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17136
      hardcode_minus_L_GCJ=yes
 
17137
 
 
17138
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17139
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17140
      # to version 4, is to share data among multiple programs linked
 
17141
      # with the same dynamic library.  Since this doesn't match the
 
17142
      # behavior of shared libraries on other platforms, we can't use
 
17143
      # them.
 
17144
      ld_shlibs_GCJ=no
 
17145
      ;;
 
17146
 
 
17147
    beos*)
 
17148
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17149
        allow_undefined_flag_GCJ=unsupported
 
17150
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17151
        # support --undefined.  This deserves some investigation.  FIXME
 
17152
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17153
      else
 
17154
        ld_shlibs_GCJ=no
 
17155
      fi
 
17156
      ;;
 
17157
 
 
17158
    cygwin* | mingw* | pw32*)
 
17159
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17160
      # as there is no search path for DLLs.
 
17161
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17162
      allow_undefined_flag_GCJ=unsupported
 
17163
      always_export_symbols_GCJ=no
 
17164
      enable_shared_with_static_runtimes_GCJ=yes
 
17165
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17166
 
 
17167
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17168
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17169
        # If the export-symbols file already is a .def file (1st line
 
17170
        # is EXPORTS), use it as is; otherwise, prepend...
 
17171
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17172
          cp $export_symbols $output_objdir/$soname.def;
 
17173
        else
 
17174
          echo EXPORTS > $output_objdir/$soname.def;
 
17175
          cat $export_symbols >> $output_objdir/$soname.def;
 
17176
        fi~
 
17177
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17178
      else
 
17179
        ld_shlibs_GCJ=no
 
17180
      fi
 
17181
      ;;
 
17182
 
 
17183
    interix[3-9]*)
 
17184
      hardcode_direct_GCJ=no
 
17185
      hardcode_shlibpath_var_GCJ=no
 
17186
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17187
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17188
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17189
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17190
      # default) and relocated if they conflict, which is a slow very memory
 
17191
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17192
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17193
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17194
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17195
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17196
      ;;
 
17197
 
 
17198
    gnu* | linux* | k*bsd*-gnu)
 
17199
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17200
        tmp_addflag=
 
17201
        case $cc_basename,$host_cpu in
 
17202
        pgcc*)                          # Portland Group C compiler
 
17203
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17204
          tmp_addflag=' $pic_flag'
 
17205
          ;;
 
17206
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17207
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17208
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17209
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17210
          tmp_addflag=' -i_dynamic' ;;
 
17211
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17212
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17213
        ifc* | ifort*)                  # Intel Fortran compiler
 
17214
          tmp_addflag=' -nofor_main' ;;
 
17215
        esac
 
17216
        case `$CC -V 2>&1 | sed 5q` in
 
17217
        *Sun\ C*)                       # Sun C 5.9
 
17218
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17219
          tmp_sharedflag='-G' ;;
 
17220
        *Sun\ F*)                       # Sun Fortran 8.3
 
17221
          tmp_sharedflag='-G' ;;
 
17222
        *)
 
17223
          tmp_sharedflag='-shared' ;;
 
17224
        esac
 
17225
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17226
 
 
17227
        if test $supports_anon_versioning = yes; then
 
17228
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17229
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17230
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17231
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17232
        fi
 
17233
      else
 
17234
        ld_shlibs_GCJ=no
 
17235
      fi
 
17236
      ;;
 
17237
 
 
17238
    netbsd*)
 
17239
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17240
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17241
        wlarc=
 
17242
      else
 
17243
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17244
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17245
      fi
 
17246
      ;;
 
17247
 
 
17248
    solaris*)
 
17249
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17250
        ld_shlibs_GCJ=no
 
17251
        cat <<EOF 1>&2
 
17252
 
 
17253
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17254
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17255
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17256
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17257
*** your PATH or compiler configuration so that the native linker is
 
17258
*** used, and then restart.
 
17259
 
 
17260
EOF
 
17261
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17262
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17263
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17264
      else
 
17265
        ld_shlibs_GCJ=no
 
17266
      fi
 
17267
      ;;
 
17268
 
 
17269
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17270
      case `$LD -v 2>&1` in
 
17271
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17272
        ld_shlibs_GCJ=no
 
17273
        cat <<_LT_EOF 1>&2
 
17274
 
 
17275
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17276
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17277
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17278
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17279
*** your PATH or compiler configuration so that the native linker is
 
17280
*** used, and then restart.
 
17281
 
 
17282
_LT_EOF
 
17283
        ;;
 
17284
        *)
 
17285
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17286
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17287
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17288
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17289
          else
 
17290
            ld_shlibs_GCJ=no
 
17291
          fi
 
17292
        ;;
 
17293
      esac
 
17294
      ;;
 
17295
 
 
17296
    sunos4*)
 
17297
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17298
      wlarc=
 
17299
      hardcode_direct_GCJ=yes
 
17300
      hardcode_shlibpath_var_GCJ=no
 
17301
      ;;
 
17302
 
 
17303
    *)
 
17304
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17305
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17306
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17307
      else
 
17308
        ld_shlibs_GCJ=no
 
17309
      fi
 
17310
      ;;
 
17311
    esac
 
17312
 
 
17313
    if test "$ld_shlibs_GCJ" = no; then
 
17314
      runpath_var=
 
17315
      hardcode_libdir_flag_spec_GCJ=
 
17316
      export_dynamic_flag_spec_GCJ=
 
17317
      whole_archive_flag_spec_GCJ=
 
17318
    fi
 
17319
  else
 
17320
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17321
    case $host_os in
 
17322
    aix3*)
 
17323
      allow_undefined_flag_GCJ=unsupported
 
17324
      always_export_symbols_GCJ=yes
 
17325
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
17326
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17327
      # are no directories specified by -L.
 
17328
      hardcode_minus_L_GCJ=yes
 
17329
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17330
        # Neither direct hardcoding nor static linking is supported with a
 
17331
        # broken collect2.
 
17332
        hardcode_direct_GCJ=unsupported
 
17333
      fi
 
17334
      ;;
 
17335
 
 
17336
    aix4* | aix5*)
 
17337
      if test "$host_cpu" = ia64; then
 
17338
        # On IA64, the linker does run time linking by default, so we don't
 
17339
        # have to do anything special.
 
17340
        aix_use_runtimelinking=no
 
17341
        exp_sym_flag='-Bexport'
 
17342
        no_entry_flag=""
 
17343
      else
 
17344
        # If we're using GNU nm, then we don't want the "-C" option.
 
17345
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17346
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17347
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17348
        else
 
17349
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17350
        fi
 
17351
        aix_use_runtimelinking=no
 
17352
 
 
17353
        # Test if we are trying to use run time linking or normal
 
17354
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17355
        # need to do runtime linking.
 
17356
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17357
          for ld_flag in $LDFLAGS; do
 
17358
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17359
            aix_use_runtimelinking=yes
 
17360
            break
 
17361
          fi
 
17362
          done
 
17363
          ;;
 
17364
        esac
 
17365
 
 
17366
        exp_sym_flag='-bexport'
 
17367
        no_entry_flag='-bnoentry'
 
17368
      fi
 
17369
 
 
17370
      # When large executables or shared objects are built, AIX ld can
 
17371
      # have problems creating the table of contents.  If linking a library
 
17372
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17373
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17374
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17375
 
 
17376
      archive_cmds_GCJ=''
 
17377
      hardcode_direct_GCJ=yes
 
17378
      hardcode_libdir_separator_GCJ=':'
 
17379
      link_all_deplibs_GCJ=yes
 
17380
 
 
17381
      if test "$GCC" = yes; then
 
17382
        case $host_os in aix4.[012]|aix4.[012].*)
 
17383
        # We only want to do this on AIX 4.2 and lower, the check
 
17384
        # below for broken collect2 doesn't work under 4.3+
 
17385
          collect2name=`${CC} -print-prog-name=collect2`
 
17386
          if test -f "$collect2name" && \
 
17387
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17388
          then
 
17389
          # We have reworked collect2
 
17390
          :
 
17391
          else
 
17392
          # We have old collect2
 
17393
          hardcode_direct_GCJ=unsupported
 
17394
          # It fails to find uninstalled libraries when the uninstalled
 
17395
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17396
          # to unsupported forces relinking
 
17397
          hardcode_minus_L_GCJ=yes
 
17398
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17399
          hardcode_libdir_separator_GCJ=
 
17400
          fi
 
17401
          ;;
 
17402
        esac
 
17403
        shared_flag='-shared'
 
17404
        if test "$aix_use_runtimelinking" = yes; then
 
17405
          shared_flag="$shared_flag "'${wl}-G'
 
17406
        fi
 
17407
      else
 
17408
        # not using gcc
 
17409
        if test "$host_cpu" = ia64; then
 
17410
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17411
        # chokes on -Wl,-G. The following line is correct:
 
17412
          shared_flag='-G'
 
17413
        else
 
17414
          if test "$aix_use_runtimelinking" = yes; then
 
17415
            shared_flag='${wl}-G'
 
17416
          else
 
17417
            shared_flag='${wl}-bM:SRE'
 
17418
          fi
 
17419
        fi
 
17420
      fi
 
17421
 
 
17422
      # It seems that -bexpall does not export symbols beginning with
 
17423
      # underscore (_), so it is better to generate a list of symbols to export.
 
17424
      always_export_symbols_GCJ=yes
 
17425
      if test "$aix_use_runtimelinking" = yes; then
 
17426
        # Warning - without using the other runtime loading flags (-brtl),
 
17427
        # -berok will link without error, but may produce a broken library.
 
17428
        allow_undefined_flag_GCJ='-berok'
 
17429
       # Determine the default libpath from the value encoded in an empty executable.
 
17430
       cat >conftest.$ac_ext <<_ACEOF
 
17431
/* confdefs.h.  */
 
17432
_ACEOF
 
17433
cat confdefs.h >>conftest.$ac_ext
 
17434
cat >>conftest.$ac_ext <<_ACEOF
 
17435
/* end confdefs.h.  */
 
17436
 
 
17437
int
 
17438
main ()
 
17439
{
 
17440
 
 
17441
  ;
 
17442
  return 0;
 
17443
}
 
17444
_ACEOF
 
17445
rm -f conftest.$ac_objext conftest$ac_exeext
 
17446
if { (ac_try="$ac_link"
 
17447
case "(($ac_try" in
 
17448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17449
  *) ac_try_echo=$ac_try;;
 
17450
esac
 
17451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17452
  (eval "$ac_link") 2>conftest.er1
 
17453
  ac_status=$?
 
17454
  grep -v '^ *+' conftest.er1 >conftest.err
 
17455
  rm -f conftest.er1
 
17456
  cat conftest.err >&5
 
17457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17458
  (exit $ac_status); } && {
 
17459
         test -z "$ac_c_werror_flag" ||
 
17460
         test ! -s conftest.err
 
17461
       } && test -s conftest$ac_exeext &&
 
17462
       $as_test_x conftest$ac_exeext; then
 
17463
 
 
17464
lt_aix_libpath_sed='
 
17465
    /Import File Strings/,/^$/ {
 
17466
        /^0/ {
 
17467
            s/^0  *\(.*\)$/\1/
 
17468
            p
 
17469
        }
 
17470
    }'
 
17471
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17472
# Check for a 64-bit object if we didn't find anything.
 
17473
if test -z "$aix_libpath"; then
 
17474
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17475
fi
 
17476
else
 
17477
  echo "$as_me: failed program was:" >&5
 
17478
sed 's/^/| /' conftest.$ac_ext >&5
 
17479
 
 
17480
 
 
17481
fi
 
17482
 
 
17483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17484
      conftest$ac_exeext conftest.$ac_ext
 
17485
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17486
 
 
17487
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17488
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17489
       else
 
17490
        if test "$host_cpu" = ia64; then
 
17491
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17492
          allow_undefined_flag_GCJ="-z nodefs"
 
17493
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
17494
        else
 
17495
         # Determine the default libpath from the value encoded in an empty executable.
 
17496
         cat >conftest.$ac_ext <<_ACEOF
 
17497
/* confdefs.h.  */
 
17498
_ACEOF
 
17499
cat confdefs.h >>conftest.$ac_ext
 
17500
cat >>conftest.$ac_ext <<_ACEOF
 
17501
/* end confdefs.h.  */
 
17502
 
 
17503
int
 
17504
main ()
 
17505
{
 
17506
 
 
17507
  ;
 
17508
  return 0;
 
17509
}
 
17510
_ACEOF
 
17511
rm -f conftest.$ac_objext conftest$ac_exeext
 
17512
if { (ac_try="$ac_link"
 
17513
case "(($ac_try" in
 
17514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17515
  *) ac_try_echo=$ac_try;;
 
17516
esac
 
17517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17518
  (eval "$ac_link") 2>conftest.er1
 
17519
  ac_status=$?
 
17520
  grep -v '^ *+' conftest.er1 >conftest.err
 
17521
  rm -f conftest.er1
 
17522
  cat conftest.err >&5
 
17523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17524
  (exit $ac_status); } && {
 
17525
         test -z "$ac_c_werror_flag" ||
 
17526
         test ! -s conftest.err
 
17527
       } && test -s conftest$ac_exeext &&
 
17528
       $as_test_x conftest$ac_exeext; then
 
17529
 
 
17530
lt_aix_libpath_sed='
 
17531
    /Import File Strings/,/^$/ {
 
17532
        /^0/ {
 
17533
            s/^0  *\(.*\)$/\1/
 
17534
            p
 
17535
        }
 
17536
    }'
 
17537
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17538
# Check for a 64-bit object if we didn't find anything.
 
17539
if test -z "$aix_libpath"; then
 
17540
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17541
fi
 
17542
else
 
17543
  echo "$as_me: failed program was:" >&5
 
17544
sed 's/^/| /' conftest.$ac_ext >&5
 
17545
 
 
17546
 
 
17547
fi
 
17548
 
 
17549
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17550
      conftest$ac_exeext conftest.$ac_ext
 
17551
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17552
 
 
17553
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17554
          # Warning - without using the other run time loading flags,
 
17555
          # -berok will link without error, but may produce a broken library.
 
17556
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17557
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17558
          # Exported symbols can be pulled into shared objects from archives
 
17559
          whole_archive_flag_spec_GCJ='$convenience'
 
17560
          archive_cmds_need_lc_GCJ=yes
 
17561
          # This is similar to how AIX traditionally builds its shared libraries.
 
17562
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17563
        fi
 
17564
      fi
 
17565
      ;;
 
17566
 
 
17567
    amigaos*)
 
17568
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17569
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17570
      hardcode_minus_L_GCJ=yes
 
17571
      # see comment about different semantics on the GNU ld section
 
17572
      ld_shlibs_GCJ=no
 
17573
      ;;
 
17574
 
 
17575
    bsdi[45]*)
 
17576
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17577
      ;;
 
17578
 
 
17579
    cygwin* | mingw* | pw32*)
 
17580
      # When not using gcc, we currently assume that we are using
 
17581
      # Microsoft Visual C++.
 
17582
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17583
      # no search path for DLLs.
 
17584
      hardcode_libdir_flag_spec_GCJ=' '
 
17585
      allow_undefined_flag_GCJ=unsupported
 
17586
      # Tell ltmain to make .lib files, not .a files.
 
17587
      libext=lib
 
17588
      # Tell ltmain to make .dll files, not .so files.
 
17589
      shrext_cmds=".dll"
 
17590
      # FIXME: Setting linknames here is a bad hack.
 
17591
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17592
      # The linker will automatically build a .lib file if we build a DLL.
 
17593
      old_archive_From_new_cmds_GCJ='true'
 
17594
      # FIXME: Should let the user specify the lib program.
 
17595
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
17596
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17597
      enable_shared_with_static_runtimes_GCJ=yes
 
17598
      ;;
 
17599
 
 
17600
    darwin* | rhapsody*)
 
17601
      case $host_os in
 
17602
        rhapsody* | darwin1.[012])
 
17603
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17604
         ;;
 
17605
       *) # Darwin 1.3 on
 
17606
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17607
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17608
         else
 
17609
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17610
             10.[012])
 
17611
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17612
               ;;
 
17613
             10.*)
 
17614
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17615
               ;;
 
17616
           esac
 
17617
         fi
 
17618
         ;;
 
17619
      esac
 
17620
      archive_cmds_need_lc_GCJ=no
 
17621
      hardcode_direct_GCJ=no
 
17622
      hardcode_automatic_GCJ=yes
 
17623
      hardcode_shlibpath_var_GCJ=unsupported
 
17624
      whole_archive_flag_spec_GCJ=''
 
17625
      link_all_deplibs_GCJ=yes
 
17626
    if test "$GCC" = yes ; then
 
17627
        output_verbose_link_cmd='echo'
 
17628
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17629
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17630
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17631
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17632
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17633
    else
 
17634
      case $cc_basename in
 
17635
        xlc*)
 
17636
         output_verbose_link_cmd='echo'
 
17637
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
17638
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17639
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17640
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17641
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17642
          ;;
 
17643
       *)
 
17644
         ld_shlibs_GCJ=no
 
17645
          ;;
 
17646
      esac
 
17647
    fi
 
17648
      ;;
 
17649
 
 
17650
    dgux*)
 
17651
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17652
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17653
      hardcode_shlibpath_var_GCJ=no
 
17654
      ;;
 
17655
 
 
17656
    freebsd1*)
 
17657
      ld_shlibs_GCJ=no
 
17658
      ;;
 
17659
 
 
17660
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17661
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17662
    # does not break anything, and helps significantly (at the cost of a little
 
17663
    # extra space).
 
17664
    freebsd2.2*)
 
17665
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17666
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17667
      hardcode_direct_GCJ=yes
 
17668
      hardcode_shlibpath_var_GCJ=no
 
17669
      ;;
 
17670
 
 
17671
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17672
    freebsd2*)
 
17673
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17674
      hardcode_direct_GCJ=yes
 
17675
      hardcode_minus_L_GCJ=yes
 
17676
      hardcode_shlibpath_var_GCJ=no
 
17677
      ;;
 
17678
 
 
17679
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17680
    freebsd* | dragonfly*)
 
17681
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17682
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17683
      hardcode_direct_GCJ=yes
 
17684
      hardcode_shlibpath_var_GCJ=no
 
17685
      ;;
 
17686
 
 
17687
    hpux9*)
 
17688
      if test "$GCC" = yes; then
 
17689
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17690
      else
 
17691
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17692
      fi
 
17693
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17694
      hardcode_libdir_separator_GCJ=:
 
17695
      hardcode_direct_GCJ=yes
 
17696
 
 
17697
      # hardcode_minus_L: Not really in the search PATH,
 
17698
      # but as the default location of the library.
 
17699
      hardcode_minus_L_GCJ=yes
 
17700
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17701
      ;;
 
17702
 
 
17703
    hpux10*)
 
17704
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17705
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17706
      else
 
17707
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17708
      fi
 
17709
      if test "$with_gnu_ld" = no; then
 
17710
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17711
        hardcode_libdir_separator_GCJ=:
 
17712
 
 
17713
        hardcode_direct_GCJ=yes
 
17714
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17715
 
 
17716
        # hardcode_minus_L: Not really in the search PATH,
 
17717
        # but as the default location of the library.
 
17718
        hardcode_minus_L_GCJ=yes
 
17719
      fi
 
17720
      ;;
 
17721
 
 
17722
    hpux11*)
 
17723
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17724
        case $host_cpu in
 
17725
        hppa*64*)
 
17726
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17727
          ;;
 
17728
        ia64*)
 
17729
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17730
          ;;
 
17731
        *)
 
17732
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17733
          ;;
 
17734
        esac
 
17735
      else
 
17736
        case $host_cpu in
 
17737
        hppa*64*)
 
17738
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17739
          ;;
 
17740
        ia64*)
 
17741
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17742
          ;;
 
17743
        *)
 
17744
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17745
          ;;
 
17746
        esac
 
17747
      fi
 
17748
      if test "$with_gnu_ld" = no; then
 
17749
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17750
        hardcode_libdir_separator_GCJ=:
 
17751
 
 
17752
        case $host_cpu in
 
17753
        hppa*64*|ia64*)
 
17754
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17755
          hardcode_direct_GCJ=no
 
17756
          hardcode_shlibpath_var_GCJ=no
 
17757
          ;;
 
17758
        *)
 
17759
          hardcode_direct_GCJ=yes
 
17760
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17761
 
 
17762
          # hardcode_minus_L: Not really in the search PATH,
 
17763
          # but as the default location of the library.
 
17764
          hardcode_minus_L_GCJ=yes
 
17765
          ;;
 
17766
        esac
 
17767
      fi
 
17768
      ;;
 
17769
 
 
17770
    irix5* | irix6* | nonstopux*)
 
17771
      if test "$GCC" = yes; then
 
17772
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17773
      else
 
17774
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17775
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17776
      fi
 
17777
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17778
      hardcode_libdir_separator_GCJ=:
 
17779
      link_all_deplibs_GCJ=yes
 
17780
      ;;
 
17781
 
 
17782
    netbsd*)
 
17783
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17784
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17785
      else
 
17786
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17787
      fi
 
17788
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17789
      hardcode_direct_GCJ=yes
 
17790
      hardcode_shlibpath_var_GCJ=no
 
17791
      ;;
 
17792
 
 
17793
    newsos6)
 
17794
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17795
      hardcode_direct_GCJ=yes
 
17796
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17797
      hardcode_libdir_separator_GCJ=:
 
17798
      hardcode_shlibpath_var_GCJ=no
 
17799
      ;;
 
17800
 
 
17801
    openbsd*)
 
17802
      if test -f /usr/libexec/ld.so; then
 
17803
        hardcode_direct_GCJ=yes
 
17804
        hardcode_shlibpath_var_GCJ=no
 
17805
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17806
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17807
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17808
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17809
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17810
        else
 
17811
          case $host_os in
 
17812
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17813
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17814
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17815
             ;;
 
17816
           *)
 
17817
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17818
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17819
             ;;
 
17820
          esac
 
17821
        fi
 
17822
      else
 
17823
        ld_shlibs_GCJ=no
 
17824
      fi
 
17825
      ;;
 
17826
 
 
17827
    os2*)
 
17828
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17829
      hardcode_minus_L_GCJ=yes
 
17830
      allow_undefined_flag_GCJ=unsupported
 
17831
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
17832
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17833
      ;;
 
17834
 
 
17835
    osf3*)
 
17836
      if test "$GCC" = yes; then
 
17837
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17838
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17839
      else
 
17840
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17841
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17842
      fi
 
17843
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17844
      hardcode_libdir_separator_GCJ=:
 
17845
      ;;
 
17846
 
 
17847
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17848
      if test "$GCC" = yes; then
 
17849
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17850
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17851
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17852
      else
 
17853
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17854
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17855
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
17856
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
17857
 
 
17858
        # Both c and cxx compiler support -rpath directly
 
17859
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17860
      fi
 
17861
      hardcode_libdir_separator_GCJ=:
 
17862
      ;;
 
17863
 
 
17864
    solaris*)
 
17865
      no_undefined_flag_GCJ=' -z text'
 
17866
      if test "$GCC" = yes; then
 
17867
        wlarc='${wl}'
 
17868
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17869
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17870
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17871
      else
 
17872
        wlarc=''
 
17873
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17874
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17875
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17876
      fi
 
17877
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17878
      hardcode_shlibpath_var_GCJ=no
 
17879
      case $host_os in
 
17880
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17881
      *)
 
17882
        # The compiler driver will combine and reorder linker options,
 
17883
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
17884
        # but is careful enough not to reorder.
 
17885
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17886
        if test "$GCC" = yes; then
 
17887
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
17888
        else
 
17889
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
17890
        fi
 
17891
        ;;
 
17892
      esac
 
17893
      link_all_deplibs_GCJ=yes
 
17894
      ;;
 
17895
 
 
17896
    sunos4*)
 
17897
      if test "x$host_vendor" = xsequent; then
 
17898
        # Use $CC to link under sequent, because it throws in some extra .o
 
17899
        # files that make .init and .fini sections work.
 
17900
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17901
      else
 
17902
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17903
      fi
 
17904
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17905
      hardcode_direct_GCJ=yes
 
17906
      hardcode_minus_L_GCJ=yes
 
17907
      hardcode_shlibpath_var_GCJ=no
 
17908
      ;;
 
17909
 
 
17910
    sysv4)
 
17911
      case $host_vendor in
 
17912
        sni)
 
17913
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17914
          hardcode_direct_GCJ=yes # is this really true???
 
17915
        ;;
 
17916
        siemens)
 
17917
          ## LD is ld it makes a PLAMLIB
 
17918
          ## CC just makes a GrossModule.
 
17919
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17920
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17921
          hardcode_direct_GCJ=no
 
17922
        ;;
 
17923
        motorola)
 
17924
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17925
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17926
        ;;
 
17927
      esac
 
17928
      runpath_var='LD_RUN_PATH'
 
17929
      hardcode_shlibpath_var_GCJ=no
 
17930
      ;;
 
17931
 
 
17932
    sysv4.3*)
 
17933
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17934
      hardcode_shlibpath_var_GCJ=no
 
17935
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17936
      ;;
 
17937
 
 
17938
    sysv4*MP*)
 
17939
      if test -d /usr/nec; then
 
17940
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17941
        hardcode_shlibpath_var_GCJ=no
 
17942
        runpath_var=LD_RUN_PATH
 
17943
        hardcode_runpath_var=yes
 
17944
        ld_shlibs_GCJ=yes
 
17945
      fi
 
17946
      ;;
 
17947
 
 
17948
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
17949
      no_undefined_flag_GCJ='${wl}-z,text'
 
17950
      archive_cmds_need_lc_GCJ=no
 
17951
      hardcode_shlibpath_var_GCJ=no
 
17952
      runpath_var='LD_RUN_PATH'
 
17953
 
 
17954
      if test "$GCC" = yes; then
 
17955
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17956
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17957
      else
 
17958
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17959
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17960
      fi
 
17961
      ;;
 
17962
 
 
17963
    sysv5* | sco3.2v5* | sco5v6*)
 
17964
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17965
      # link with -lc, and that would cause any symbols used from libc to
 
17966
      # always be unresolved, which means just about no library would
 
17967
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17968
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17969
      # as -z defs.
 
17970
      no_undefined_flag_GCJ='${wl}-z,text'
 
17971
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17972
      archive_cmds_need_lc_GCJ=no
 
17973
      hardcode_shlibpath_var_GCJ=no
 
17974
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17975
      hardcode_libdir_separator_GCJ=':'
 
17976
      link_all_deplibs_GCJ=yes
 
17977
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17978
      runpath_var='LD_RUN_PATH'
 
17979
 
 
17980
      if test "$GCC" = yes; then
 
17981
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17982
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17983
      else
 
17984
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17985
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17986
      fi
 
17987
      ;;
 
17988
 
 
17989
    uts4*)
 
17990
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17991
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17992
      hardcode_shlibpath_var_GCJ=no
 
17993
      ;;
 
17994
 
 
17995
    *)
 
17996
      ld_shlibs_GCJ=no
 
17997
      ;;
 
17998
    esac
 
17999
  fi
 
18000
 
 
18001
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18002
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
18003
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18004
 
 
18005
#
 
18006
# Do we need to explicitly link libc?
 
18007
#
 
18008
case "x$archive_cmds_need_lc_GCJ" in
 
18009
x|xyes)
 
18010
  # Assume -lc should be added
 
18011
  archive_cmds_need_lc_GCJ=yes
 
18012
 
 
18013
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18014
    case $archive_cmds_GCJ in
 
18015
    *'~'*)
 
18016
      # FIXME: we may have to deal with multi-command sequences.
 
18017
      ;;
 
18018
    '$CC '*)
 
18019
      # Test whether the compiler implicitly links with -lc since on some
 
18020
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18021
      # to ld, don't add -lc before -lgcc.
 
18022
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18023
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
18024
      $rm conftest*
 
18025
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18026
 
 
18027
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18028
  (eval $ac_compile) 2>&5
 
18029
  ac_status=$?
 
18030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18031
  (exit $ac_status); } 2>conftest.err; then
 
18032
        soname=conftest
 
18033
        lib=conftest
 
18034
        libobjs=conftest.$ac_objext
 
18035
        deplibs=
 
18036
        wl=$lt_prog_compiler_wl_GCJ
 
18037
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18038
        compiler_flags=-v
 
18039
        linker_flags=-v
 
18040
        verstring=
 
18041
        output_objdir=.
 
18042
        libname=conftest
 
18043
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18044
        allow_undefined_flag_GCJ=
 
18045
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18046
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18047
  ac_status=$?
 
18048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18049
  (exit $ac_status); }
 
18050
        then
 
18051
          archive_cmds_need_lc_GCJ=no
 
18052
        else
 
18053
          archive_cmds_need_lc_GCJ=yes
 
18054
        fi
 
18055
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18056
      else
 
18057
        cat conftest.err 1>&5
 
18058
      fi
 
18059
      $rm conftest*
 
18060
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18061
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
18062
      ;;
 
18063
    esac
 
18064
  fi
 
18065
  ;;
 
18066
esac
 
18067
 
 
18068
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18069
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
18070
library_names_spec=
 
18071
libname_spec='lib$name'
 
18072
soname_spec=
 
18073
shrext_cmds=".so"
 
18074
postinstall_cmds=
 
18075
postuninstall_cmds=
 
18076
finish_cmds=
 
18077
finish_eval=
 
18078
shlibpath_var=
 
18079
shlibpath_overrides_runpath=unknown
 
18080
version_type=none
 
18081
dynamic_linker="$host_os ld.so"
 
18082
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18083
 
 
18084
need_lib_prefix=unknown
 
18085
hardcode_into_libs=no
 
18086
 
 
18087
# when you set need_version to no, make sure it does not cause -set_version
 
18088
# flags to be left without arguments
 
18089
need_version=unknown
 
18090
 
 
18091
case $host_os in
 
18092
aix3*)
 
18093
  version_type=linux
 
18094
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18095
  shlibpath_var=LIBPATH
 
18096
 
 
18097
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18098
  soname_spec='${libname}${release}${shared_ext}$major'
 
18099
  ;;
 
18100
 
 
18101
aix4* | aix5*)
 
18102
  version_type=linux
 
18103
  need_lib_prefix=no
 
18104
  need_version=no
 
18105
  hardcode_into_libs=yes
 
18106
  if test "$host_cpu" = ia64; then
 
18107
    # AIX 5 supports IA64
 
18108
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18109
    shlibpath_var=LD_LIBRARY_PATH
 
18110
  else
 
18111
    # With GCC up to 2.95.x, collect2 would create an import file
 
18112
    # for dependence libraries.  The import file would start with
 
18113
    # the line `#! .'.  This would cause the generated library to
 
18114
    # depend on `.', always an invalid library.  This was fixed in
 
18115
    # development snapshots of GCC prior to 3.0.
 
18116
    case $host_os in
 
18117
      aix4 | aix4.[01] | aix4.[01].*)
 
18118
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18119
           echo ' yes '
 
18120
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18121
        :
 
18122
      else
 
18123
        can_build_shared=no
 
18124
      fi
 
18125
      ;;
 
18126
    esac
 
18127
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18128
    # soname into executable. Probably we can add versioning support to
 
18129
    # collect2, so additional links can be useful in future.
 
18130
    if test "$aix_use_runtimelinking" = yes; then
 
18131
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18132
      # instead of lib<name>.a to let people know that these are not
 
18133
      # typical AIX shared libraries.
 
18134
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18135
    else
 
18136
      # We preserve .a as extension for shared libraries through AIX4.2
 
18137
      # and later when we are not doing run time linking.
 
18138
      library_names_spec='${libname}${release}.a $libname.a'
 
18139
      soname_spec='${libname}${release}${shared_ext}$major'
 
18140
    fi
 
18141
    shlibpath_var=LIBPATH
 
18142
  fi
 
18143
  ;;
 
18144
 
 
18145
amigaos*)
 
18146
  library_names_spec='$libname.ixlibrary $libname.a'
 
18147
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18148
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
18149
  ;;
 
18150
 
 
18151
beos*)
 
18152
  library_names_spec='${libname}${shared_ext}'
 
18153
  dynamic_linker="$host_os ld.so"
 
18154
  shlibpath_var=LIBRARY_PATH
 
18155
  ;;
 
18156
 
 
18157
bsdi[45]*)
 
18158
  version_type=linux
 
18159
  need_version=no
 
18160
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18161
  soname_spec='${libname}${release}${shared_ext}$major'
 
18162
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18163
  shlibpath_var=LD_LIBRARY_PATH
 
18164
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18165
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18166
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18167
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18168
  # libtool to hard-code these into programs
 
18169
  ;;
 
18170
 
 
18171
cygwin* | mingw* | pw32*)
 
18172
  version_type=windows
 
18173
  shrext_cmds=".dll"
 
18174
  need_version=no
 
18175
  need_lib_prefix=no
 
18176
 
 
18177
  case $GCC,$host_os in
 
18178
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18179
    library_names_spec='$libname.dll.a'
 
18180
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18181
    postinstall_cmds='base_file=`basename \${file}`~
 
18182
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18183
      dldir=$destdir/`dirname \$dlpath`~
 
18184
      test -d \$dldir || mkdir -p \$dldir~
 
18185
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18186
      chmod a+x \$dldir/$dlname'
 
18187
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18188
      dlpath=$dir/\$dldll~
 
18189
       $rm \$dlpath'
 
18190
    shlibpath_overrides_runpath=yes
 
18191
 
 
18192
    case $host_os in
 
18193
    cygwin*)
 
18194
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18195
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18196
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18197
      ;;
 
18198
    mingw*)
 
18199
      # MinGW DLLs use traditional 'lib' prefix
 
18200
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18201
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18202
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18203
        # It is most probably a Windows format PATH printed by
 
18204
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18205
        # path with ; separators, and with drive letters. We can handle the
 
18206
        # drive letters (cygwin fileutils understands them), so leave them,
 
18207
        # especially as we might pass files found there to a mingw objdump,
 
18208
        # which wouldn't understand a cygwinified path. Ahh.
 
18209
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18210
      else
 
18211
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18212
      fi
 
18213
      ;;
 
18214
    pw32*)
 
18215
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18216
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18217
      ;;
 
18218
    esac
 
18219
    ;;
 
18220
 
 
18221
  *)
 
18222
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18223
    ;;
 
18224
  esac
 
18225
  dynamic_linker='Win32 ld.exe'
 
18226
  # FIXME: first we should search . and the directory the executable is in
 
18227
  shlibpath_var=PATH
 
18228
  ;;
 
18229
 
 
18230
darwin* | rhapsody*)
 
18231
  dynamic_linker="$host_os dyld"
 
18232
  version_type=darwin
 
18233
  need_lib_prefix=no
 
18234
  need_version=no
 
18235
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18236
  soname_spec='${libname}${release}${major}$shared_ext'
 
18237
  shlibpath_overrides_runpath=yes
 
18238
  shlibpath_var=DYLD_LIBRARY_PATH
 
18239
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18240
 
 
18241
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18242
  ;;
 
18243
 
 
18244
dgux*)
 
18245
  version_type=linux
 
18246
  need_lib_prefix=no
 
18247
  need_version=no
 
18248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18249
  soname_spec='${libname}${release}${shared_ext}$major'
 
18250
  shlibpath_var=LD_LIBRARY_PATH
 
18251
  ;;
 
18252
 
 
18253
freebsd1*)
 
18254
  dynamic_linker=no
 
18255
  ;;
 
18256
 
 
18257
freebsd* | dragonfly*)
 
18258
  # DragonFly does not have aout.  When/if they implement a new
 
18259
  # versioning mechanism, adjust this.
 
18260
  if test -x /usr/bin/objformat; then
 
18261
    objformat=`/usr/bin/objformat`
 
18262
  else
 
18263
    case $host_os in
 
18264
    freebsd[123]*) objformat=aout ;;
 
18265
    *) objformat=elf ;;
 
18266
    esac
 
18267
  fi
 
18268
  # Handle Gentoo/FreeBSD as it was Linux
 
18269
  case $host_vendor in
 
18270
    gentoo)
 
18271
      version_type=linux ;;
 
18272
    *)
 
18273
      version_type=freebsd-$objformat ;;
 
18274
  esac
 
18275
 
 
18276
  case $version_type in
 
18277
    freebsd-elf*)
 
18278
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18279
      need_version=no
 
18280
      need_lib_prefix=no
 
18281
      ;;
 
18282
    freebsd-*)
 
18283
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18284
      need_version=yes
 
18285
      ;;
 
18286
    linux)
 
18287
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18288
      soname_spec='${libname}${release}${shared_ext}$major'
 
18289
      need_lib_prefix=no
 
18290
      need_version=no
 
18291
      ;;
 
18292
  esac
 
18293
  shlibpath_var=LD_LIBRARY_PATH
 
18294
  case $host_os in
 
18295
  freebsd2*)
 
18296
    shlibpath_overrides_runpath=yes
 
18297
    ;;
 
18298
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18299
    shlibpath_overrides_runpath=yes
 
18300
    hardcode_into_libs=yes
 
18301
    ;;
 
18302
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18303
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18304
    shlibpath_overrides_runpath=no
 
18305
    hardcode_into_libs=yes
 
18306
    ;;
 
18307
  *) # from 4.6 on, and DragonFly
 
18308
    shlibpath_overrides_runpath=yes
 
18309
    hardcode_into_libs=yes
 
18310
    ;;
 
18311
  esac
 
18312
  ;;
 
18313
 
 
18314
gnu*)
 
18315
  version_type=linux
 
18316
  need_lib_prefix=no
 
18317
  need_version=no
 
18318
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18319
  soname_spec='${libname}${release}${shared_ext}$major'
 
18320
  shlibpath_var=LD_LIBRARY_PATH
 
18321
  hardcode_into_libs=yes
 
18322
  ;;
 
18323
 
 
18324
hpux9* | hpux10* | hpux11*)
 
18325
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18326
  # link against other versions.
 
18327
  version_type=sunos
 
18328
  need_lib_prefix=no
 
18329
  need_version=no
 
18330
  case $host_cpu in
 
18331
  ia64*)
 
18332
    shrext_cmds='.so'
 
18333
    hardcode_into_libs=yes
 
18334
    dynamic_linker="$host_os dld.so"
 
18335
    shlibpath_var=LD_LIBRARY_PATH
 
18336
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18337
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18338
    soname_spec='${libname}${release}${shared_ext}$major'
 
18339
    if test "X$HPUX_IA64_MODE" = X32; then
 
18340
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18341
    else
 
18342
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18343
    fi
 
18344
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18345
    ;;
 
18346
   hppa*64*)
 
18347
     shrext_cmds='.sl'
 
18348
     hardcode_into_libs=yes
 
18349
     dynamic_linker="$host_os dld.sl"
 
18350
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18351
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18352
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18353
     soname_spec='${libname}${release}${shared_ext}$major'
 
18354
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18355
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18356
     ;;
 
18357
   *)
 
18358
    shrext_cmds='.sl'
 
18359
    dynamic_linker="$host_os dld.sl"
 
18360
    shlibpath_var=SHLIB_PATH
 
18361
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18362
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18363
    soname_spec='${libname}${release}${shared_ext}$major'
 
18364
    ;;
 
18365
  esac
 
18366
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18367
  postinstall_cmds='chmod 555 $lib'
 
18368
  ;;
 
18369
 
 
18370
interix[3-9]*)
 
18371
  version_type=linux
 
18372
  need_lib_prefix=no
 
18373
  need_version=no
 
18374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18375
  soname_spec='${libname}${release}${shared_ext}$major'
 
18376
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18377
  shlibpath_var=LD_LIBRARY_PATH
 
18378
  shlibpath_overrides_runpath=no
 
18379
  hardcode_into_libs=yes
 
18380
  ;;
 
18381
 
 
18382
irix5* | irix6* | nonstopux*)
 
18383
  case $host_os in
 
18384
    nonstopux*) version_type=nonstopux ;;
 
18385
    *)
 
18386
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18387
                version_type=linux
 
18388
        else
 
18389
                version_type=irix
 
18390
        fi ;;
 
18391
  esac
 
18392
  need_lib_prefix=no
 
18393
  need_version=no
 
18394
  soname_spec='${libname}${release}${shared_ext}$major'
 
18395
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18396
  case $host_os in
 
18397
  irix5* | nonstopux*)
 
18398
    libsuff= shlibsuff=
 
18399
    ;;
 
18400
  *)
 
18401
    case $LD in # libtool.m4 will add one of these switches to LD
 
18402
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18403
      libsuff= shlibsuff= libmagic=32-bit;;
 
18404
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18405
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18406
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18407
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18408
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18409
    esac
 
18410
    ;;
 
18411
  esac
 
18412
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18413
  shlibpath_overrides_runpath=no
 
18414
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18415
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18416
  hardcode_into_libs=yes
 
18417
  ;;
 
18418
 
 
18419
# No shared lib support for Linux oldld, aout, or coff.
 
18420
linux*oldld* | linux*aout* | linux*coff*)
 
18421
  dynamic_linker=no
 
18422
  ;;
 
18423
 
 
18424
# This must be Linux ELF.
 
18425
linux* | k*bsd*-gnu)
 
18426
  version_type=linux
 
18427
  need_lib_prefix=no
 
18428
  need_version=no
 
18429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18430
  soname_spec='${libname}${release}${shared_ext}$major'
 
18431
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18432
  shlibpath_var=LD_LIBRARY_PATH
 
18433
  shlibpath_overrides_runpath=no
 
18434
  # This implies no fast_install, which is unacceptable.
 
18435
  # Some rework will be needed to allow for fast_install
 
18436
  # before this can be enabled.
 
18437
  hardcode_into_libs=yes
 
18438
 
 
18439
  # Append ld.so.conf contents to the search path
 
18440
  if test -f /etc/ld.so.conf; then
 
18441
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18442
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18443
  fi
 
18444
 
 
18445
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18446
  # powerpc, because MkLinux only supported shared libraries with the
 
18447
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18448
  # most powerpc-linux boxes support dynamic linking these days and
 
18449
  # people can always --disable-shared, the test was removed, and we
 
18450
  # assume the GNU/Linux dynamic linker is in use.
 
18451
  dynamic_linker='GNU/Linux ld.so'
 
18452
  ;;
 
18453
 
 
18454
netbsd*)
 
18455
  version_type=sunos
 
18456
  need_lib_prefix=no
 
18457
  need_version=no
 
18458
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18459
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18460
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18461
    dynamic_linker='NetBSD (a.out) ld.so'
 
18462
  else
 
18463
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18464
    soname_spec='${libname}${release}${shared_ext}$major'
 
18465
    dynamic_linker='NetBSD ld.elf_so'
 
18466
  fi
 
18467
  shlibpath_var=LD_LIBRARY_PATH
 
18468
  shlibpath_overrides_runpath=yes
 
18469
  hardcode_into_libs=yes
 
18470
  ;;
 
18471
 
 
18472
newsos6)
 
18473
  version_type=linux
 
18474
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18475
  shlibpath_var=LD_LIBRARY_PATH
 
18476
  shlibpath_overrides_runpath=yes
 
18477
  ;;
 
18478
 
 
18479
nto-qnx*)
 
18480
  version_type=linux
 
18481
  need_lib_prefix=no
 
18482
  need_version=no
 
18483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18484
  soname_spec='${libname}${release}${shared_ext}$major'
 
18485
  shlibpath_var=LD_LIBRARY_PATH
 
18486
  shlibpath_overrides_runpath=yes
 
18487
  ;;
 
18488
 
 
18489
openbsd*)
 
18490
  version_type=sunos
 
18491
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18492
  need_lib_prefix=no
 
18493
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18494
  case $host_os in
 
18495
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18496
    *)                         need_version=no  ;;
 
18497
  esac
 
18498
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18499
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18500
  shlibpath_var=LD_LIBRARY_PATH
 
18501
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18502
    case $host_os in
 
18503
      openbsd2.[89] | openbsd2.[89].*)
 
18504
        shlibpath_overrides_runpath=no
 
18505
        ;;
 
18506
      *)
 
18507
        shlibpath_overrides_runpath=yes
 
18508
        ;;
 
18509
      esac
 
18510
  else
 
18511
    shlibpath_overrides_runpath=yes
 
18512
  fi
 
18513
  ;;
 
18514
 
 
18515
os2*)
 
18516
  libname_spec='$name'
 
18517
  shrext_cmds=".dll"
 
18518
  need_lib_prefix=no
 
18519
  library_names_spec='$libname${shared_ext} $libname.a'
 
18520
  dynamic_linker='OS/2 ld.exe'
 
18521
  shlibpath_var=LIBPATH
 
18522
  ;;
 
18523
 
 
18524
osf3* | osf4* | osf5*)
 
18525
  version_type=osf
 
18526
  need_lib_prefix=no
 
18527
  need_version=no
 
18528
  soname_spec='${libname}${release}${shared_ext}$major'
 
18529
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18530
  shlibpath_var=LD_LIBRARY_PATH
 
18531
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18532
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18533
  ;;
 
18534
 
 
18535
rdos*)
 
18536
  dynamic_linker=no
 
18537
  ;;
 
18538
 
 
18539
solaris*)
 
18540
  version_type=linux
 
18541
  need_lib_prefix=no
 
18542
  need_version=no
 
18543
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18544
  soname_spec='${libname}${release}${shared_ext}$major'
 
18545
  shlibpath_var=LD_LIBRARY_PATH
 
18546
  shlibpath_overrides_runpath=yes
 
18547
  hardcode_into_libs=yes
 
18548
  # ldd complains unless libraries are executable
 
18549
  postinstall_cmds='chmod +x $lib'
 
18550
  ;;
 
18551
 
 
18552
sunos4*)
 
18553
  version_type=sunos
 
18554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18555
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18556
  shlibpath_var=LD_LIBRARY_PATH
 
18557
  shlibpath_overrides_runpath=yes
 
18558
  if test "$with_gnu_ld" = yes; then
 
18559
    need_lib_prefix=no
 
18560
  fi
 
18561
  need_version=yes
 
18562
  ;;
 
18563
 
 
18564
sysv4 | sysv4.3*)
 
18565
  version_type=linux
 
18566
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18567
  soname_spec='${libname}${release}${shared_ext}$major'
 
18568
  shlibpath_var=LD_LIBRARY_PATH
 
18569
  case $host_vendor in
 
18570
    sni)
 
18571
      shlibpath_overrides_runpath=no
 
18572
      need_lib_prefix=no
 
18573
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18574
      runpath_var=LD_RUN_PATH
 
18575
      ;;
 
18576
    siemens)
 
18577
      need_lib_prefix=no
 
18578
      ;;
 
18579
    motorola)
 
18580
      need_lib_prefix=no
 
18581
      need_version=no
 
18582
      shlibpath_overrides_runpath=no
 
18583
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18584
      ;;
 
18585
  esac
 
18586
  ;;
 
18587
 
 
18588
sysv4*MP*)
 
18589
  if test -d /usr/nec ;then
 
18590
    version_type=linux
 
18591
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18592
    soname_spec='$libname${shared_ext}.$major'
 
18593
    shlibpath_var=LD_LIBRARY_PATH
 
18594
  fi
 
18595
  ;;
 
18596
 
 
18597
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18598
  version_type=freebsd-elf
 
18599
  need_lib_prefix=no
 
18600
  need_version=no
 
18601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18602
  soname_spec='${libname}${release}${shared_ext}$major'
 
18603
  shlibpath_var=LD_LIBRARY_PATH
 
18604
  hardcode_into_libs=yes
 
18605
  if test "$with_gnu_ld" = yes; then
 
18606
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18607
    shlibpath_overrides_runpath=no
 
18608
  else
 
18609
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18610
    shlibpath_overrides_runpath=yes
 
18611
    case $host_os in
 
18612
      sco3.2v5*)
 
18613
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18614
        ;;
 
18615
    esac
 
18616
  fi
 
18617
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18618
  ;;
 
18619
 
 
18620
uts4*)
 
18621
  version_type=linux
 
18622
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18623
  soname_spec='${libname}${release}${shared_ext}$major'
 
18624
  shlibpath_var=LD_LIBRARY_PATH
 
18625
  ;;
 
18626
 
 
18627
*)
 
18628
  dynamic_linker=no
 
18629
  ;;
 
18630
esac
 
18631
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18632
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18633
test "$dynamic_linker" = no && can_build_shared=no
 
18634
 
 
18635
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18636
if test "$GCC" = yes; then
 
18637
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18638
fi
 
18639
 
 
18640
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18641
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18642
hardcode_action_GCJ=
 
18643
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18644
   test -n "$runpath_var_GCJ" || \
 
18645
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18646
 
 
18647
  # We can hardcode non-existant directories.
 
18648
  if test "$hardcode_direct_GCJ" != no &&
 
18649
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18650
     # have to relink, otherwise we might link with an installed library
 
18651
     # when we should be linking with a yet-to-be-installed one
 
18652
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18653
     test "$hardcode_minus_L_GCJ" != no; then
 
18654
    # Linking always hardcodes the temporary library directory.
 
18655
    hardcode_action_GCJ=relink
 
18656
  else
 
18657
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18658
    hardcode_action_GCJ=immediate
 
18659
  fi
 
18660
else
 
18661
  # We cannot hardcode anything, or else we can only hardcode existing
 
18662
  # directories.
 
18663
  hardcode_action_GCJ=unsupported
 
18664
fi
 
18665
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18666
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18667
 
 
18668
if test "$hardcode_action_GCJ" = relink; then
 
18669
  # Fast installation is not supported
 
18670
  enable_fast_install=no
 
18671
elif test "$shlibpath_overrides_runpath" = yes ||
 
18672
     test "$enable_shared" = no; then
 
18673
  # Fast installation is not necessary
 
18674
  enable_fast_install=needless
 
18675
fi
 
18676
 
 
18677
 
 
18678
# The else clause should only fire when bootstrapping the
 
18679
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18680
# with your package, and you will get complaints that there are
 
18681
# no rules to generate ltmain.sh.
 
18682
if test -f "$ltmain"; then
 
18683
  # See if we are running on zsh, and set the options which allow our commands through
 
18684
  # without removal of \ escapes.
 
18685
  if test -n "${ZSH_VERSION+set}" ; then
 
18686
    setopt NO_GLOB_SUBST
 
18687
  fi
 
18688
  # Now quote all the things that may contain metacharacters while being
 
18689
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18690
  # variables and quote the copies for generation of the libtool script.
 
18691
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18692
    SED SHELL STRIP \
 
18693
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18694
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18695
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18696
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18697
    lt_cv_sys_global_symbol_to_c_name_address \
 
18698
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18699
    old_postinstall_cmds old_postuninstall_cmds \
 
18700
    compiler_GCJ \
 
18701
    CC_GCJ \
 
18702
    LD_GCJ \
 
18703
    lt_prog_compiler_wl_GCJ \
 
18704
    lt_prog_compiler_pic_GCJ \
 
18705
    lt_prog_compiler_static_GCJ \
 
18706
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18707
    export_dynamic_flag_spec_GCJ \
 
18708
    thread_safe_flag_spec_GCJ \
 
18709
    whole_archive_flag_spec_GCJ \
 
18710
    enable_shared_with_static_runtimes_GCJ \
 
18711
    old_archive_cmds_GCJ \
 
18712
    old_archive_from_new_cmds_GCJ \
 
18713
    predep_objects_GCJ \
 
18714
    postdep_objects_GCJ \
 
18715
    predeps_GCJ \
 
18716
    postdeps_GCJ \
 
18717
    compiler_lib_search_path_GCJ \
 
18718
    archive_cmds_GCJ \
 
18719
    archive_expsym_cmds_GCJ \
 
18720
    postinstall_cmds_GCJ \
 
18721
    postuninstall_cmds_GCJ \
 
18722
    old_archive_from_expsyms_cmds_GCJ \
 
18723
    allow_undefined_flag_GCJ \
 
18724
    no_undefined_flag_GCJ \
 
18725
    export_symbols_cmds_GCJ \
 
18726
    hardcode_libdir_flag_spec_GCJ \
 
18727
    hardcode_libdir_flag_spec_ld_GCJ \
 
18728
    hardcode_libdir_separator_GCJ \
 
18729
    hardcode_automatic_GCJ \
 
18730
    module_cmds_GCJ \
 
18731
    module_expsym_cmds_GCJ \
 
18732
    lt_cv_prog_compiler_c_o_GCJ \
 
18733
    fix_srcfile_path_GCJ \
 
18734
    exclude_expsyms_GCJ \
 
18735
    include_expsyms_GCJ; do
 
18736
 
 
18737
    case $var in
 
18738
    old_archive_cmds_GCJ | \
 
18739
    old_archive_from_new_cmds_GCJ | \
 
18740
    archive_cmds_GCJ | \
 
18741
    archive_expsym_cmds_GCJ | \
 
18742
    module_cmds_GCJ | \
 
18743
    module_expsym_cmds_GCJ | \
 
18744
    old_archive_from_expsyms_cmds_GCJ | \
 
18745
    export_symbols_cmds_GCJ | \
 
18746
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18747
    postinstall_cmds | postuninstall_cmds | \
 
18748
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18749
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18750
      # Double-quote double-evaled strings.
 
18751
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18752
      ;;
 
18753
    *)
 
18754
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18755
      ;;
 
18756
    esac
 
18757
  done
 
18758
 
 
18759
  case $lt_echo in
 
18760
  *'\$0 --fallback-echo"')
 
18761
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18762
    ;;
 
18763
  esac
 
18764
 
 
18765
cfgfile="$ofile"
 
18766
 
 
18767
  cat <<__EOF__ >> "$cfgfile"
 
18768
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18769
 
 
18770
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18771
 
 
18772
# Shell to use when invoking shell scripts.
 
18773
SHELL=$lt_SHELL
 
18774
 
 
18775
# Whether or not to build shared libraries.
 
18776
build_libtool_libs=$enable_shared
 
18777
 
 
18778
# Whether or not to build static libraries.
 
18779
build_old_libs=$enable_static
 
18780
 
 
18781
# Whether or not to add -lc for building shared libraries.
 
18782
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18783
 
 
18784
# Whether or not to disallow shared libs when runtime libs are static
 
18785
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18786
 
 
18787
# Whether or not to optimize for fast installation.
 
18788
fast_install=$enable_fast_install
 
18789
 
 
18790
# The host system.
 
18791
host_alias=$host_alias
 
18792
host=$host
 
18793
host_os=$host_os
 
18794
 
 
18795
# The build system.
 
18796
build_alias=$build_alias
 
18797
build=$build
 
18798
build_os=$build_os
 
18799
 
 
18800
# An echo program that does not interpret backslashes.
 
18801
echo=$lt_echo
 
18802
 
 
18803
# The archiver.
 
18804
AR=$lt_AR
 
18805
AR_FLAGS=$lt_AR_FLAGS
 
18806
 
 
18807
# A C compiler.
 
18808
LTCC=$lt_LTCC
 
18809
 
 
18810
# LTCC compiler flags.
 
18811
LTCFLAGS=$lt_LTCFLAGS
 
18812
 
 
18813
# A language-specific compiler.
 
18814
CC=$lt_compiler_GCJ
 
18815
 
 
18816
# Is the compiler the GNU C compiler?
 
18817
with_gcc=$GCC_GCJ
 
18818
 
 
18819
# An ERE matcher.
 
18820
EGREP=$lt_EGREP
 
18821
 
 
18822
# The linker used to build libraries.
 
18823
LD=$lt_LD_GCJ
 
18824
 
 
18825
# Whether we need hard or soft links.
 
18826
LN_S=$lt_LN_S
 
18827
 
 
18828
# A BSD-compatible nm program.
 
18829
NM=$lt_NM
 
18830
 
 
18831
# A symbol stripping program
 
18832
STRIP=$lt_STRIP
 
18833
 
 
18834
# Used to examine libraries when file_magic_cmd begins "file"
 
18835
MAGIC_CMD=$MAGIC_CMD
 
18836
 
 
18837
# Used on cygwin: DLL creation program.
 
18838
DLLTOOL="$DLLTOOL"
 
18839
 
 
18840
# Used on cygwin: object dumper.
 
18841
OBJDUMP="$OBJDUMP"
 
18842
 
 
18843
# Used on cygwin: assembler.
 
18844
AS="$AS"
 
18845
 
 
18846
# The name of the directory that contains temporary libtool files.
 
18847
objdir=$objdir
 
18848
 
 
18849
# How to create reloadable object files.
 
18850
reload_flag=$lt_reload_flag
 
18851
reload_cmds=$lt_reload_cmds
 
18852
 
 
18853
# How to pass a linker flag through the compiler.
 
18854
wl=$lt_lt_prog_compiler_wl_GCJ
 
18855
 
 
18856
# Object file suffix (normally "o").
 
18857
objext="$ac_objext"
 
18858
 
 
18859
# Old archive suffix (normally "a").
 
18860
libext="$libext"
 
18861
 
 
18862
# Shared library suffix (normally ".so").
 
18863
shrext_cmds='$shrext_cmds'
 
18864
 
 
18865
# Executable file suffix (normally "").
 
18866
exeext="$exeext"
 
18867
 
 
18868
# Additional compiler flags for building library objects.
 
18869
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18870
pic_mode=$pic_mode
 
18871
 
 
18872
# What is the maximum length of a command?
 
18873
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18874
 
 
18875
# Does compiler simultaneously support -c and -o options?
 
18876
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18877
 
 
18878
# Must we lock files when doing compilation?
 
18879
need_locks=$lt_need_locks
 
18880
 
 
18881
# Do we need the lib prefix for modules?
 
18882
need_lib_prefix=$need_lib_prefix
 
18883
 
 
18884
# Do we need a version for libraries?
 
18885
need_version=$need_version
 
18886
 
 
18887
# Whether dlopen is supported.
 
18888
dlopen_support=$enable_dlopen
 
18889
 
 
18890
# Whether dlopen of programs is supported.
 
18891
dlopen_self=$enable_dlopen_self
 
18892
 
 
18893
# Whether dlopen of statically linked programs is supported.
 
18894
dlopen_self_static=$enable_dlopen_self_static
 
18895
 
 
18896
# Compiler flag to prevent dynamic linking.
 
18897
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18898
 
 
18899
# Compiler flag to turn off builtin functions.
 
18900
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18901
 
 
18902
# Compiler flag to allow reflexive dlopens.
 
18903
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18904
 
 
18905
# Compiler flag to generate shared objects directly from archives.
 
18906
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18907
 
 
18908
# Compiler flag to generate thread-safe objects.
 
18909
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18910
 
 
18911
# Library versioning type.
 
18912
version_type=$version_type
 
18913
 
 
18914
# Format of library name prefix.
 
18915
libname_spec=$lt_libname_spec
 
18916
 
 
18917
# List of archive names.  First name is the real one, the rest are links.
 
18918
# The last name is the one that the linker finds with -lNAME.
 
18919
library_names_spec=$lt_library_names_spec
 
18920
 
 
18921
# The coded name of the library, if different from the real name.
 
18922
soname_spec=$lt_soname_spec
 
18923
 
 
18924
# Commands used to build and install an old-style archive.
 
18925
RANLIB=$lt_RANLIB
 
18926
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18927
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18928
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18929
 
 
18930
# Create an old-style archive from a shared archive.
 
18931
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18932
 
 
18933
# Create a temporary old-style archive to link instead of a shared archive.
 
18934
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18935
 
 
18936
# Commands used to build and install a shared archive.
 
18937
archive_cmds=$lt_archive_cmds_GCJ
 
18938
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18939
postinstall_cmds=$lt_postinstall_cmds
 
18940
postuninstall_cmds=$lt_postuninstall_cmds
 
18941
 
 
18942
# Commands used to build a loadable module (assumed same as above if empty)
 
18943
module_cmds=$lt_module_cmds_GCJ
 
18944
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18945
 
 
18946
# Commands to strip libraries.
 
18947
old_striplib=$lt_old_striplib
 
18948
striplib=$lt_striplib
 
18949
 
 
18950
# Dependencies to place before the objects being linked to create a
 
18951
# shared library.
 
18952
predep_objects=$lt_predep_objects_GCJ
 
18953
 
 
18954
# Dependencies to place after the objects being linked to create a
 
18955
# shared library.
 
18956
postdep_objects=$lt_postdep_objects_GCJ
 
18957
 
 
18958
# Dependencies to place before the objects being linked to create a
 
18959
# shared library.
 
18960
predeps=$lt_predeps_GCJ
 
18961
 
 
18962
# Dependencies to place after the objects being linked to create a
 
18963
# shared library.
 
18964
postdeps=$lt_postdeps_GCJ
 
18965
 
 
18966
# The library search path used internally by the compiler when linking
 
18967
# a shared library.
 
18968
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18969
 
 
18970
# Method to check whether dependent libraries are shared objects.
 
18971
deplibs_check_method=$lt_deplibs_check_method
 
18972
 
 
18973
# Command to use when deplibs_check_method == file_magic.
 
18974
file_magic_cmd=$lt_file_magic_cmd
 
18975
 
 
18976
# Flag that allows shared libraries with undefined symbols to be built.
 
18977
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18978
 
 
18979
# Flag that forces no undefined symbols.
 
18980
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18981
 
 
18982
# Commands used to finish a libtool library installation in a directory.
 
18983
finish_cmds=$lt_finish_cmds
 
18984
 
 
18985
# Same as above, but a single script fragment to be evaled but not shown.
 
18986
finish_eval=$lt_finish_eval
 
18987
 
 
18988
# Take the output of nm and produce a listing of raw symbols and C names.
 
18989
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18990
 
 
18991
# Transform the output of nm in a proper C declaration
 
18992
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18993
 
 
18994
# Transform the output of nm in a C name address pair
 
18995
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18996
 
 
18997
# This is the shared library runtime path variable.
 
18998
runpath_var=$runpath_var
 
18999
 
 
19000
# This is the shared library path variable.
 
19001
shlibpath_var=$shlibpath_var
 
19002
 
 
19003
# Is shlibpath searched before the hard-coded library search path?
 
19004
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19005
 
 
19006
# How to hardcode a shared library path into an executable.
 
19007
hardcode_action=$hardcode_action_GCJ
 
19008
 
 
19009
# Whether we should hardcode library paths into libraries.
 
19010
hardcode_into_libs=$hardcode_into_libs
 
19011
 
 
19012
# Flag to hardcode \$libdir into a binary during linking.
 
19013
# This must work even if \$libdir does not exist.
 
19014
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19015
 
 
19016
# If ld is used when linking, flag to hardcode \$libdir into
 
19017
# a binary during linking. This must work even if \$libdir does
 
19018
# not exist.
 
19019
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19020
 
 
19021
# Whether we need a single -rpath flag with a separated argument.
 
19022
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19023
 
 
19024
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19025
# resulting binary.
 
19026
hardcode_direct=$hardcode_direct_GCJ
 
19027
 
 
19028
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19029
# resulting binary.
 
19030
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19031
 
 
19032
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19033
# the resulting binary.
 
19034
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19035
 
 
19036
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19037
# and all subsequent libraries and executables linked against it.
 
19038
hardcode_automatic=$hardcode_automatic_GCJ
 
19039
 
 
19040
# Variables whose values should be saved in libtool wrapper scripts and
 
19041
# restored at relink time.
 
19042
variables_saved_for_relink="$variables_saved_for_relink"
 
19043
 
 
19044
# Whether libtool must link a program against all its dependency libraries.
 
19045
link_all_deplibs=$link_all_deplibs_GCJ
 
19046
 
 
19047
# Compile-time system search path for libraries
 
19048
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19049
 
 
19050
# Run-time system search path for libraries
 
19051
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19052
 
 
19053
# Fix the shell variable \$srcfile for the compiler.
 
19054
fix_srcfile_path=$lt_fix_srcfile_path
 
19055
 
 
19056
# Set to yes if exported symbols are required.
 
19057
always_export_symbols=$always_export_symbols_GCJ
 
19058
 
 
19059
# The commands to list exported symbols.
 
19060
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19061
 
 
19062
# The commands to extract the exported symbol list from a shared archive.
 
19063
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19064
 
 
19065
# Symbols that should not be listed in the preloaded symbols.
 
19066
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19067
 
 
19068
# Symbols that must always be exported.
 
19069
include_expsyms=$lt_include_expsyms_GCJ
 
19070
 
 
19071
# ### END LIBTOOL TAG CONFIG: $tagname
 
19072
 
 
19073
__EOF__
 
19074
 
 
19075
 
 
19076
else
 
19077
  # If there is no Makefile yet, we rely on a make rule to execute
 
19078
  # `config.status --recheck' to rerun these tests and create the
 
19079
  # libtool script then.
 
19080
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19081
  if test -f "$ltmain_in"; then
 
19082
    test -f Makefile && make "$ltmain"
 
19083
  fi
 
19084
fi
 
19085
 
 
19086
 
 
19087
ac_ext=c
 
19088
ac_cpp='$CPP $CPPFLAGS'
 
19089
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19090
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19091
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19092
 
 
19093
CC="$lt_save_CC"
 
19094
 
 
19095
        else
 
19096
          tagname=""
 
19097
        fi
 
19098
        ;;
 
19099
 
 
19100
      RC)
 
19101
 
 
19102
 
 
19103
# Source file extension for RC test sources.
 
19104
ac_ext=rc
 
19105
 
 
19106
# Object file extension for compiled RC test sources.
 
19107
objext=o
 
19108
objext_RC=$objext
 
19109
 
 
19110
# Code to be used in simple compile tests
 
19111
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19112
 
 
19113
# Code to be used in simple link tests
 
19114
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19115
 
 
19116
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19117
 
 
19118
# If no C compiler was specified, use CC.
 
19119
LTCC=${LTCC-"$CC"}
 
19120
 
 
19121
# If no C compiler flags were specified, use CFLAGS.
 
19122
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19123
 
 
19124
# Allow CC to be a program name with arguments.
 
19125
compiler=$CC
 
19126
 
 
19127
 
 
19128
# save warnings/boilerplate of simple test code
 
19129
ac_outfile=conftest.$ac_objext
 
19130
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19131
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19132
_lt_compiler_boilerplate=`cat conftest.err`
 
19133
$rm conftest*
 
19134
 
 
19135
ac_outfile=conftest.$ac_objext
 
19136
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19137
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19138
_lt_linker_boilerplate=`cat conftest.err`
 
19139
$rm conftest*
 
19140
 
 
19141
 
 
19142
# Allow CC to be a program name with arguments.
 
19143
lt_save_CC="$CC"
 
19144
CC=${RC-"windres"}
 
19145
compiler=$CC
 
19146
compiler_RC=$CC
 
19147
for cc_temp in $compiler""; do
 
19148
  case $cc_temp in
 
19149
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19150
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19151
    \-*) ;;
 
19152
    *) break;;
 
19153
  esac
 
19154
done
 
19155
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19156
 
 
19157
lt_cv_prog_compiler_c_o_RC=yes
 
19158
 
 
19159
# The else clause should only fire when bootstrapping the
 
19160
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19161
# with your package, and you will get complaints that there are
 
19162
# no rules to generate ltmain.sh.
 
19163
if test -f "$ltmain"; then
 
19164
  # See if we are running on zsh, and set the options which allow our commands through
 
19165
  # without removal of \ escapes.
 
19166
  if test -n "${ZSH_VERSION+set}" ; then
 
19167
    setopt NO_GLOB_SUBST
 
19168
  fi
 
19169
  # Now quote all the things that may contain metacharacters while being
 
19170
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19171
  # variables and quote the copies for generation of the libtool script.
 
19172
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19173
    SED SHELL STRIP \
 
19174
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19175
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19176
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19177
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19178
    lt_cv_sys_global_symbol_to_c_name_address \
 
19179
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19180
    old_postinstall_cmds old_postuninstall_cmds \
 
19181
    compiler_RC \
 
19182
    CC_RC \
 
19183
    LD_RC \
 
19184
    lt_prog_compiler_wl_RC \
 
19185
    lt_prog_compiler_pic_RC \
 
19186
    lt_prog_compiler_static_RC \
 
19187
    lt_prog_compiler_no_builtin_flag_RC \
 
19188
    export_dynamic_flag_spec_RC \
 
19189
    thread_safe_flag_spec_RC \
 
19190
    whole_archive_flag_spec_RC \
 
19191
    enable_shared_with_static_runtimes_RC \
 
19192
    old_archive_cmds_RC \
 
19193
    old_archive_from_new_cmds_RC \
 
19194
    predep_objects_RC \
 
19195
    postdep_objects_RC \
 
19196
    predeps_RC \
 
19197
    postdeps_RC \
 
19198
    compiler_lib_search_path_RC \
 
19199
    archive_cmds_RC \
 
19200
    archive_expsym_cmds_RC \
 
19201
    postinstall_cmds_RC \
 
19202
    postuninstall_cmds_RC \
 
19203
    old_archive_from_expsyms_cmds_RC \
 
19204
    allow_undefined_flag_RC \
 
19205
    no_undefined_flag_RC \
 
19206
    export_symbols_cmds_RC \
 
19207
    hardcode_libdir_flag_spec_RC \
 
19208
    hardcode_libdir_flag_spec_ld_RC \
 
19209
    hardcode_libdir_separator_RC \
 
19210
    hardcode_automatic_RC \
 
19211
    module_cmds_RC \
 
19212
    module_expsym_cmds_RC \
 
19213
    lt_cv_prog_compiler_c_o_RC \
 
19214
    fix_srcfile_path_RC \
 
19215
    exclude_expsyms_RC \
 
19216
    include_expsyms_RC; do
 
19217
 
 
19218
    case $var in
 
19219
    old_archive_cmds_RC | \
 
19220
    old_archive_from_new_cmds_RC | \
 
19221
    archive_cmds_RC | \
 
19222
    archive_expsym_cmds_RC | \
 
19223
    module_cmds_RC | \
 
19224
    module_expsym_cmds_RC | \
 
19225
    old_archive_from_expsyms_cmds_RC | \
 
19226
    export_symbols_cmds_RC | \
 
19227
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19228
    postinstall_cmds | postuninstall_cmds | \
 
19229
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19230
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19231
      # Double-quote double-evaled strings.
 
19232
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19233
      ;;
 
19234
    *)
 
19235
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19236
      ;;
 
19237
    esac
 
19238
  done
 
19239
 
 
19240
  case $lt_echo in
 
19241
  *'\$0 --fallback-echo"')
 
19242
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19243
    ;;
 
19244
  esac
 
19245
 
 
19246
cfgfile="$ofile"
 
19247
 
 
19248
  cat <<__EOF__ >> "$cfgfile"
 
19249
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19250
 
 
19251
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19252
 
 
19253
# Shell to use when invoking shell scripts.
 
19254
SHELL=$lt_SHELL
 
19255
 
 
19256
# Whether or not to build shared libraries.
 
19257
build_libtool_libs=$enable_shared
 
19258
 
 
19259
# Whether or not to build static libraries.
 
19260
build_old_libs=$enable_static
 
19261
 
 
19262
# Whether or not to add -lc for building shared libraries.
 
19263
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19264
 
 
19265
# Whether or not to disallow shared libs when runtime libs are static
 
19266
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19267
 
 
19268
# Whether or not to optimize for fast installation.
 
19269
fast_install=$enable_fast_install
 
19270
 
 
19271
# The host system.
 
19272
host_alias=$host_alias
 
19273
host=$host
 
19274
host_os=$host_os
 
19275
 
 
19276
# The build system.
 
19277
build_alias=$build_alias
 
19278
build=$build
 
19279
build_os=$build_os
 
19280
 
 
19281
# An echo program that does not interpret backslashes.
 
19282
echo=$lt_echo
 
19283
 
 
19284
# The archiver.
 
19285
AR=$lt_AR
 
19286
AR_FLAGS=$lt_AR_FLAGS
 
19287
 
 
19288
# A C compiler.
 
19289
LTCC=$lt_LTCC
 
19290
 
 
19291
# LTCC compiler flags.
 
19292
LTCFLAGS=$lt_LTCFLAGS
 
19293
 
 
19294
# A language-specific compiler.
 
19295
CC=$lt_compiler_RC
 
19296
 
 
19297
# Is the compiler the GNU C compiler?
 
19298
with_gcc=$GCC_RC
 
19299
 
 
19300
# An ERE matcher.
 
19301
EGREP=$lt_EGREP
 
19302
 
 
19303
# The linker used to build libraries.
 
19304
LD=$lt_LD_RC
 
19305
 
 
19306
# Whether we need hard or soft links.
 
19307
LN_S=$lt_LN_S
 
19308
 
 
19309
# A BSD-compatible nm program.
 
19310
NM=$lt_NM
 
19311
 
 
19312
# A symbol stripping program
 
19313
STRIP=$lt_STRIP
 
19314
 
 
19315
# Used to examine libraries when file_magic_cmd begins "file"
 
19316
MAGIC_CMD=$MAGIC_CMD
 
19317
 
 
19318
# Used on cygwin: DLL creation program.
 
19319
DLLTOOL="$DLLTOOL"
 
19320
 
 
19321
# Used on cygwin: object dumper.
 
19322
OBJDUMP="$OBJDUMP"
 
19323
 
 
19324
# Used on cygwin: assembler.
 
19325
AS="$AS"
 
19326
 
 
19327
# The name of the directory that contains temporary libtool files.
 
19328
objdir=$objdir
 
19329
 
 
19330
# How to create reloadable object files.
 
19331
reload_flag=$lt_reload_flag
 
19332
reload_cmds=$lt_reload_cmds
 
19333
 
 
19334
# How to pass a linker flag through the compiler.
 
19335
wl=$lt_lt_prog_compiler_wl_RC
 
19336
 
 
19337
# Object file suffix (normally "o").
 
19338
objext="$ac_objext"
 
19339
 
 
19340
# Old archive suffix (normally "a").
 
19341
libext="$libext"
 
19342
 
 
19343
# Shared library suffix (normally ".so").
 
19344
shrext_cmds='$shrext_cmds'
 
19345
 
 
19346
# Executable file suffix (normally "").
 
19347
exeext="$exeext"
 
19348
 
 
19349
# Additional compiler flags for building library objects.
 
19350
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19351
pic_mode=$pic_mode
 
19352
 
 
19353
# What is the maximum length of a command?
 
19354
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19355
 
 
19356
# Does compiler simultaneously support -c and -o options?
 
19357
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19358
 
 
19359
# Must we lock files when doing compilation?
 
19360
need_locks=$lt_need_locks
 
19361
 
 
19362
# Do we need the lib prefix for modules?
 
19363
need_lib_prefix=$need_lib_prefix
 
19364
 
 
19365
# Do we need a version for libraries?
 
19366
need_version=$need_version
 
19367
 
 
19368
# Whether dlopen is supported.
 
19369
dlopen_support=$enable_dlopen
 
19370
 
 
19371
# Whether dlopen of programs is supported.
 
19372
dlopen_self=$enable_dlopen_self
 
19373
 
 
19374
# Whether dlopen of statically linked programs is supported.
 
19375
dlopen_self_static=$enable_dlopen_self_static
 
19376
 
 
19377
# Compiler flag to prevent dynamic linking.
 
19378
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19379
 
 
19380
# Compiler flag to turn off builtin functions.
 
19381
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19382
 
 
19383
# Compiler flag to allow reflexive dlopens.
 
19384
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19385
 
 
19386
# Compiler flag to generate shared objects directly from archives.
 
19387
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19388
 
 
19389
# Compiler flag to generate thread-safe objects.
 
19390
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19391
 
 
19392
# Library versioning type.
 
19393
version_type=$version_type
 
19394
 
 
19395
# Format of library name prefix.
 
19396
libname_spec=$lt_libname_spec
 
19397
 
 
19398
# List of archive names.  First name is the real one, the rest are links.
 
19399
# The last name is the one that the linker finds with -lNAME.
 
19400
library_names_spec=$lt_library_names_spec
 
19401
 
 
19402
# The coded name of the library, if different from the real name.
 
19403
soname_spec=$lt_soname_spec
 
19404
 
 
19405
# Commands used to build and install an old-style archive.
 
19406
RANLIB=$lt_RANLIB
 
19407
old_archive_cmds=$lt_old_archive_cmds_RC
 
19408
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19409
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19410
 
 
19411
# Create an old-style archive from a shared archive.
 
19412
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19413
 
 
19414
# Create a temporary old-style archive to link instead of a shared archive.
 
19415
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19416
 
 
19417
# Commands used to build and install a shared archive.
 
19418
archive_cmds=$lt_archive_cmds_RC
 
19419
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19420
postinstall_cmds=$lt_postinstall_cmds
 
19421
postuninstall_cmds=$lt_postuninstall_cmds
 
19422
 
 
19423
# Commands used to build a loadable module (assumed same as above if empty)
 
19424
module_cmds=$lt_module_cmds_RC
 
19425
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19426
 
 
19427
# Commands to strip libraries.
 
19428
old_striplib=$lt_old_striplib
 
19429
striplib=$lt_striplib
 
19430
 
 
19431
# Dependencies to place before the objects being linked to create a
 
19432
# shared library.
 
19433
predep_objects=$lt_predep_objects_RC
 
19434
 
 
19435
# Dependencies to place after the objects being linked to create a
 
19436
# shared library.
 
19437
postdep_objects=$lt_postdep_objects_RC
 
19438
 
 
19439
# Dependencies to place before the objects being linked to create a
 
19440
# shared library.
 
19441
predeps=$lt_predeps_RC
 
19442
 
 
19443
# Dependencies to place after the objects being linked to create a
 
19444
# shared library.
 
19445
postdeps=$lt_postdeps_RC
 
19446
 
 
19447
# The library search path used internally by the compiler when linking
 
19448
# a shared library.
 
19449
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19450
 
 
19451
# Method to check whether dependent libraries are shared objects.
 
19452
deplibs_check_method=$lt_deplibs_check_method
 
19453
 
 
19454
# Command to use when deplibs_check_method == file_magic.
 
19455
file_magic_cmd=$lt_file_magic_cmd
 
19456
 
 
19457
# Flag that allows shared libraries with undefined symbols to be built.
 
19458
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19459
 
 
19460
# Flag that forces no undefined symbols.
 
19461
no_undefined_flag=$lt_no_undefined_flag_RC
 
19462
 
 
19463
# Commands used to finish a libtool library installation in a directory.
 
19464
finish_cmds=$lt_finish_cmds
 
19465
 
 
19466
# Same as above, but a single script fragment to be evaled but not shown.
 
19467
finish_eval=$lt_finish_eval
 
19468
 
 
19469
# Take the output of nm and produce a listing of raw symbols and C names.
 
19470
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19471
 
 
19472
# Transform the output of nm in a proper C declaration
 
19473
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19474
 
 
19475
# Transform the output of nm in a C name address pair
 
19476
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19477
 
 
19478
# This is the shared library runtime path variable.
 
19479
runpath_var=$runpath_var
 
19480
 
 
19481
# This is the shared library path variable.
 
19482
shlibpath_var=$shlibpath_var
 
19483
 
 
19484
# Is shlibpath searched before the hard-coded library search path?
 
19485
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19486
 
 
19487
# How to hardcode a shared library path into an executable.
 
19488
hardcode_action=$hardcode_action_RC
 
19489
 
 
19490
# Whether we should hardcode library paths into libraries.
 
19491
hardcode_into_libs=$hardcode_into_libs
 
19492
 
 
19493
# Flag to hardcode \$libdir into a binary during linking.
 
19494
# This must work even if \$libdir does not exist.
 
19495
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19496
 
 
19497
# If ld is used when linking, flag to hardcode \$libdir into
 
19498
# a binary during linking. This must work even if \$libdir does
 
19499
# not exist.
 
19500
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19501
 
 
19502
# Whether we need a single -rpath flag with a separated argument.
 
19503
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19504
 
 
19505
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19506
# resulting binary.
 
19507
hardcode_direct=$hardcode_direct_RC
 
19508
 
 
19509
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19510
# resulting binary.
 
19511
hardcode_minus_L=$hardcode_minus_L_RC
 
19512
 
 
19513
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19514
# the resulting binary.
 
19515
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19516
 
 
19517
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19518
# and all subsequent libraries and executables linked against it.
 
19519
hardcode_automatic=$hardcode_automatic_RC
 
19520
 
 
19521
# Variables whose values should be saved in libtool wrapper scripts and
 
19522
# restored at relink time.
 
19523
variables_saved_for_relink="$variables_saved_for_relink"
 
19524
 
 
19525
# Whether libtool must link a program against all its dependency libraries.
 
19526
link_all_deplibs=$link_all_deplibs_RC
 
19527
 
 
19528
# Compile-time system search path for libraries
 
19529
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19530
 
 
19531
# Run-time system search path for libraries
 
19532
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19533
 
 
19534
# Fix the shell variable \$srcfile for the compiler.
 
19535
fix_srcfile_path=$lt_fix_srcfile_path
 
19536
 
 
19537
# Set to yes if exported symbols are required.
 
19538
always_export_symbols=$always_export_symbols_RC
 
19539
 
 
19540
# The commands to list exported symbols.
 
19541
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19542
 
 
19543
# The commands to extract the exported symbol list from a shared archive.
 
19544
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19545
 
 
19546
# Symbols that should not be listed in the preloaded symbols.
 
19547
exclude_expsyms=$lt_exclude_expsyms_RC
 
19548
 
 
19549
# Symbols that must always be exported.
 
19550
include_expsyms=$lt_include_expsyms_RC
 
19551
 
 
19552
# ### END LIBTOOL TAG CONFIG: $tagname
 
19553
 
 
19554
__EOF__
 
19555
 
 
19556
 
 
19557
else
 
19558
  # If there is no Makefile yet, we rely on a make rule to execute
 
19559
  # `config.status --recheck' to rerun these tests and create the
 
19560
  # libtool script then.
 
19561
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19562
  if test -f "$ltmain_in"; then
 
19563
    test -f Makefile && make "$ltmain"
 
19564
  fi
 
19565
fi
 
19566
 
 
19567
 
 
19568
ac_ext=c
 
19569
ac_cpp='$CPP $CPPFLAGS'
 
19570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19573
 
 
19574
CC="$lt_save_CC"
 
19575
 
 
19576
        ;;
 
19577
 
 
19578
      *)
 
19579
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19580
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19581
   { (exit 1); exit 1; }; }
 
19582
        ;;
 
19583
      esac
 
19584
 
 
19585
      # Append the new tag name to the list of available tags.
 
19586
      if test -n "$tagname" ; then
 
19587
      available_tags="$available_tags $tagname"
 
19588
    fi
 
19589
    fi
 
19590
  done
 
19591
  IFS="$lt_save_ifs"
 
19592
 
 
19593
  # Now substitute the updated list of available tags.
 
19594
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19595
    mv "${ofile}T" "$ofile"
 
19596
    chmod +x "$ofile"
 
19597
  else
 
19598
    rm -f "${ofile}T"
 
19599
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19600
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19601
   { (exit 1); exit 1; }; }
 
19602
  fi
 
19603
fi
 
19604
 
 
19605
 
 
19606
 
 
19607
# This can be used to rebuild libtool when needed
 
19608
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19609
 
 
19610
# Always use our own libtool.
 
19611
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19612
 
 
19613
# Prevent multiple expansion
 
19614
 
 
19615
 
 
19616
 
 
19617
 
 
19618
 
 
19619
 
 
19620
 
 
19621
 
 
19622
 
 
19623
 
 
19624
 
 
19625
 
 
19626
 
 
19627
 
 
19628
 
 
19629
 
 
19630
 
 
19631
 
4100
19632
 
4101
19633
 
4102
19634
 
4107
19639
 
4108
19640
 
4109
19641
# Processing configure input configuration flags
 
19642
 
4110
19643
# Check whether --enable-debug was given.
4111
19644
if test "${enable_debug+set}" = set; then
4112
19645
  enableval=$enable_debug; case "${enableval}" in
4120
19653
  debug="no"
4121
19654
fi
4122
19655
 
4123
 
if test $debug = yes ; then CFLAGS="-g $CFLAGS" ; CXXFLAGS="-g $CXXFLAGS" ; fi
 
19656
if test $debug = yes ; then CFLAGS="-g -O0 $CFLAGS" ; CXXFLAGS="-g -O0 $CXXFLAGS" ; fi
4124
19657
 
4125
19658
 
4126
19659
# Check whether --with-audio was given.
4166
19699
 
4167
19700
if test $graphic_driver = yes; then graphic_driver="sdl"; fi
4168
19701
 
 
19702
 
 
19703
# Check whether --enable-record-alsa was given.
 
19704
if test "${enable_record_alsa+set}" = set; then
 
19705
  enableval=$enable_record_alsa; case "${enableval}" in
 
19706
                yes) enable_record_alsa="yes" ;;
 
19707
                no)  enable_record_alsa="no" ;;
 
19708
                *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-record-alsa" >&5
 
19709
echo "$as_me: error: bad value ${enableval} for --enable-record-alsa" >&2;}
 
19710
   { (exit 1); exit 1; }; } ;;
 
19711
        esac
 
19712
else
 
19713
  enable_record_alsa="autodetect"
 
19714
fi
 
19715
 
 
19716
# Check whether --enable-record-pa18 was given.
 
19717
if test "${enable_record_pa18+set}" = set; then
 
19718
  enableval=$enable_record_pa18; case "${enableval}" in
 
19719
                yes) enable_record_pa18="yes" ;;
 
19720
                no)  enable_record_pa18="no" ;;
 
19721
                *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-record-pa18" >&5
 
19722
echo "$as_me: error: bad value ${enableval} for --enable-record-pa18" >&2;}
 
19723
   { (exit 1); exit 1; }; } ;;
 
19724
        esac
 
19725
else
 
19726
  enable_record_pa18="autodetect"
 
19727
fi
 
19728
 
 
19729
# Check whether --enable-record-pa19 was given.
 
19730
if test "${enable_record_pa19+set}" = set; then
 
19731
  enableval=$enable_record_pa19; case "${enableval}" in
 
19732
                yes) enable_record_pa19="yes" ;;
 
19733
                no)  enable_record_pa19="no" ;;
 
19734
                *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-record-pa19" >&5
 
19735
echo "$as_me: error: bad value ${enableval} for --enable-record-pa19" >&2;}
 
19736
   { (exit 1); exit 1; }; } ;;
 
19737
        esac
 
19738
else
 
19739
  enable_record_pa19="autodetect"
 
19740
fi
 
19741
 
 
19742
# Check whether --enable-record-portaudio was given.
 
19743
if test "${enable_record_portaudio+set}" = set; then
 
19744
  enableval=$enable_record_portaudio; case "${enableval}" in
 
19745
                yes) enable_record_pa="yes" ;;
 
19746
                no)  enable_record_pa="no" ;;
 
19747
                *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-record-portaudio" >&5
 
19748
echo "$as_me: error: bad value ${enableval} for --enable-record-portaudio" >&2;}
 
19749
   { (exit 1); exit 1; }; } ;;
 
19750
        esac
 
19751
else
 
19752
  enable_record_pa="autodetect"
 
19753
fi
 
19754
 
 
19755
 
 
19756
if test enable_record_pa = no ; then
 
19757
        enable_record_pa18="no"
 
19758
        enable_record_pa19="no"
 
19759
fi
 
19760
if test enable_record_pa = yes ; then
 
19761
        enable_record_pa18="autodetect"
 
19762
        enable_record_pa19="autodetect"
 
19763
fi
 
19764
 
 
19765
# Check whether --enable-record-gst was given.
 
19766
if test "${enable_record_gst+set}" = set; then
 
19767
  enableval=$enable_record_gst; case "${enableval}" in
 
19768
                yes) enable_record_gst="yes" ;;
 
19769
                no)  enable_record_gst="no" ;;
 
19770
                *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-record-gst" >&5
 
19771
echo "$as_me: error: bad value ${enableval} for --enable-record-gst" >&2;}
 
19772
   { (exit 1); exit 1; }; } ;;
 
19773
        esac
 
19774
else
 
19775
  enable_record_gst="autodetect"
 
19776
fi
 
19777
 
 
19778
 
4169
19779
# Check for the standard headers
4170
 
 
4171
 
ac_ext=c
4172
 
ac_cpp='$CPP $CPPFLAGS'
4173
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4177
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4178
 
# On Suns, sometimes $CPP names a directory.
4179
 
if test -n "$CPP" && test -d "$CPP"; then
4180
 
  CPP=
4181
 
fi
4182
 
if test -z "$CPP"; then
4183
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4184
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4185
 
else
4186
 
      # Double quotes because CPP needs to be expanded
4187
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4188
 
    do
4189
 
      ac_preproc_ok=false
4190
 
for ac_c_preproc_warn_flag in '' yes
4191
 
do
4192
 
  # Use a header file that comes with gcc, so configuring glibc
4193
 
  # with a fresh cross-compiler works.
4194
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195
 
  # <limits.h> exists even on freestanding compilers.
4196
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4197
 
  # not just through cpp. "Syntax error" is here to catch this case.
4198
 
  cat >conftest.$ac_ext <<_ACEOF
4199
 
/* confdefs.h.  */
4200
 
_ACEOF
4201
 
cat confdefs.h >>conftest.$ac_ext
4202
 
cat >>conftest.$ac_ext <<_ACEOF
4203
 
/* end confdefs.h.  */
4204
 
#ifdef __STDC__
4205
 
# include <limits.h>
4206
 
#else
4207
 
# include <assert.h>
4208
 
#endif
4209
 
                     Syntax error
4210
 
_ACEOF
4211
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4212
 
case "(($ac_try" in
4213
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214
 
  *) ac_try_echo=$ac_try;;
4215
 
esac
4216
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4218
 
  ac_status=$?
4219
 
  grep -v '^ *+' conftest.er1 >conftest.err
4220
 
  rm -f conftest.er1
4221
 
  cat conftest.err >&5
4222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223
 
  (exit $ac_status); } >/dev/null && {
4224
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4225
 
         test ! -s conftest.err
4226
 
       }; then
4227
 
  :
4228
 
else
4229
 
  echo "$as_me: failed program was:" >&5
4230
 
sed 's/^/| /' conftest.$ac_ext >&5
4231
 
 
4232
 
  # Broken: fails on valid input.
4233
 
continue
4234
 
fi
4235
 
 
4236
 
rm -f conftest.err conftest.$ac_ext
4237
 
 
4238
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4239
 
  # can be detected and how.
4240
 
  cat >conftest.$ac_ext <<_ACEOF
4241
 
/* confdefs.h.  */
4242
 
_ACEOF
4243
 
cat confdefs.h >>conftest.$ac_ext
4244
 
cat >>conftest.$ac_ext <<_ACEOF
4245
 
/* end confdefs.h.  */
4246
 
#include <ac_nonexistent.h>
4247
 
_ACEOF
4248
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4249
 
case "(($ac_try" in
4250
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251
 
  *) ac_try_echo=$ac_try;;
4252
 
esac
4253
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4255
 
  ac_status=$?
4256
 
  grep -v '^ *+' conftest.er1 >conftest.err
4257
 
  rm -f conftest.er1
4258
 
  cat conftest.err >&5
4259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260
 
  (exit $ac_status); } >/dev/null && {
4261
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4262
 
         test ! -s conftest.err
4263
 
       }; then
4264
 
  # Broken: success on invalid input.
4265
 
continue
4266
 
else
4267
 
  echo "$as_me: failed program was:" >&5
4268
 
sed 's/^/| /' conftest.$ac_ext >&5
4269
 
 
4270
 
  # Passes both tests.
4271
 
ac_preproc_ok=:
4272
 
break
4273
 
fi
4274
 
 
4275
 
rm -f conftest.err conftest.$ac_ext
4276
 
 
4277
 
done
4278
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4279
 
rm -f conftest.err conftest.$ac_ext
4280
 
if $ac_preproc_ok; then
4281
 
  break
4282
 
fi
4283
 
 
4284
 
    done
4285
 
    ac_cv_prog_CPP=$CPP
4286
 
 
4287
 
fi
4288
 
  CPP=$ac_cv_prog_CPP
4289
 
else
4290
 
  ac_cv_prog_CPP=$CPP
4291
 
fi
4292
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
4293
 
echo "${ECHO_T}$CPP" >&6; }
4294
 
ac_preproc_ok=false
4295
 
for ac_c_preproc_warn_flag in '' yes
4296
 
do
4297
 
  # Use a header file that comes with gcc, so configuring glibc
4298
 
  # with a fresh cross-compiler works.
4299
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4300
 
  # <limits.h> exists even on freestanding compilers.
4301
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4302
 
  # not just through cpp. "Syntax error" is here to catch this case.
4303
 
  cat >conftest.$ac_ext <<_ACEOF
4304
 
/* confdefs.h.  */
4305
 
_ACEOF
4306
 
cat confdefs.h >>conftest.$ac_ext
4307
 
cat >>conftest.$ac_ext <<_ACEOF
4308
 
/* end confdefs.h.  */
4309
 
#ifdef __STDC__
4310
 
# include <limits.h>
4311
 
#else
4312
 
# include <assert.h>
4313
 
#endif
4314
 
                     Syntax error
4315
 
_ACEOF
4316
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4317
 
case "(($ac_try" in
4318
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319
 
  *) ac_try_echo=$ac_try;;
4320
 
esac
4321
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4323
 
  ac_status=$?
4324
 
  grep -v '^ *+' conftest.er1 >conftest.err
4325
 
  rm -f conftest.er1
4326
 
  cat conftest.err >&5
4327
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328
 
  (exit $ac_status); } >/dev/null && {
4329
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4330
 
         test ! -s conftest.err
4331
 
       }; then
4332
 
  :
4333
 
else
4334
 
  echo "$as_me: failed program was:" >&5
4335
 
sed 's/^/| /' conftest.$ac_ext >&5
4336
 
 
4337
 
  # Broken: fails on valid input.
4338
 
continue
4339
 
fi
4340
 
 
4341
 
rm -f conftest.err conftest.$ac_ext
4342
 
 
4343
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4344
 
  # can be detected and how.
4345
 
  cat >conftest.$ac_ext <<_ACEOF
4346
 
/* confdefs.h.  */
4347
 
_ACEOF
4348
 
cat confdefs.h >>conftest.$ac_ext
4349
 
cat >>conftest.$ac_ext <<_ACEOF
4350
 
/* end confdefs.h.  */
4351
 
#include <ac_nonexistent.h>
4352
 
_ACEOF
4353
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4354
 
case "(($ac_try" in
4355
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356
 
  *) ac_try_echo=$ac_try;;
4357
 
esac
4358
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4360
 
  ac_status=$?
4361
 
  grep -v '^ *+' conftest.er1 >conftest.err
4362
 
  rm -f conftest.er1
4363
 
  cat conftest.err >&5
4364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365
 
  (exit $ac_status); } >/dev/null && {
4366
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4367
 
         test ! -s conftest.err
4368
 
       }; then
4369
 
  # Broken: success on invalid input.
4370
 
continue
4371
 
else
4372
 
  echo "$as_me: failed program was:" >&5
4373
 
sed 's/^/| /' conftest.$ac_ext >&5
4374
 
 
4375
 
  # Passes both tests.
4376
 
ac_preproc_ok=:
4377
 
break
4378
 
fi
4379
 
 
4380
 
rm -f conftest.err conftest.$ac_ext
4381
 
 
4382
 
done
4383
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4384
 
rm -f conftest.err conftest.$ac_ext
4385
 
if $ac_preproc_ok; then
4386
 
  :
4387
 
else
4388
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4389
 
See \`config.log' for more details." >&5
4390
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4391
 
See \`config.log' for more details." >&2;}
4392
 
   { (exit 1); exit 1; }; }
4393
 
fi
4394
 
 
4395
 
ac_ext=c
4396
 
ac_cpp='$CPP $CPPFLAGS'
4397
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400
 
 
4401
 
 
4402
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4403
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4404
 
if test "${ac_cv_path_GREP+set}" = set; then
4405
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4406
 
else
4407
 
  # Extract the first word of "grep ggrep" to use in msg output
4408
 
if test -z "$GREP"; then
4409
 
set dummy grep ggrep; ac_prog_name=$2
4410
 
if test "${ac_cv_path_GREP+set}" = set; then
4411
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4412
 
else
4413
 
  ac_path_GREP_found=false
4414
 
# Loop through the user's path and test for each of PROGNAME-LIST
4415
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417
 
do
4418
 
  IFS=$as_save_IFS
4419
 
  test -z "$as_dir" && as_dir=.
4420
 
  for ac_prog in grep ggrep; do
4421
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4422
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4423
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4424
 
    # Check for GNU ac_path_GREP and select it if it is found.
4425
 
  # Check for GNU $ac_path_GREP
4426
 
case `"$ac_path_GREP" --version 2>&1` in
4427
 
*GNU*)
4428
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4429
 
*)
4430
 
  ac_count=0
4431
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4432
 
  while :
4433
 
  do
4434
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4435
 
    mv "conftest.tmp" "conftest.in"
4436
 
    cp "conftest.in" "conftest.nl"
4437
 
    echo 'GREP' >> "conftest.nl"
4438
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440
 
    ac_count=`expr $ac_count + 1`
4441
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4442
 
      # Best one so far, save it but keep looking for a better one
4443
 
      ac_cv_path_GREP="$ac_path_GREP"
4444
 
      ac_path_GREP_max=$ac_count
4445
 
    fi
4446
 
    # 10*(2^10) chars as input seems more than enough
4447
 
    test $ac_count -gt 10 && break
4448
 
  done
4449
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450
 
esac
4451
 
 
4452
 
 
4453
 
    $ac_path_GREP_found && break 3
4454
 
  done
4455
 
done
4456
 
 
4457
 
done
4458
 
IFS=$as_save_IFS
4459
 
 
4460
 
 
4461
 
fi
4462
 
 
4463
 
GREP="$ac_cv_path_GREP"
4464
 
if test -z "$GREP"; then
4465
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4466
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4467
 
   { (exit 1); exit 1; }; }
4468
 
fi
4469
 
 
4470
 
else
4471
 
  ac_cv_path_GREP=$GREP
4472
 
fi
4473
 
 
4474
 
 
4475
 
fi
4476
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4477
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4478
 
 GREP="$ac_cv_path_GREP"
4479
 
 
4480
 
 
4481
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
4482
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4483
 
if test "${ac_cv_path_EGREP+set}" = set; then
4484
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4485
 
else
4486
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4487
 
   then ac_cv_path_EGREP="$GREP -E"
4488
 
   else
4489
 
     # Extract the first word of "egrep" to use in msg output
4490
 
if test -z "$EGREP"; then
4491
 
set dummy egrep; ac_prog_name=$2
4492
 
if test "${ac_cv_path_EGREP+set}" = set; then
4493
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4494
 
else
4495
 
  ac_path_EGREP_found=false
4496
 
# Loop through the user's path and test for each of PROGNAME-LIST
4497
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499
 
do
4500
 
  IFS=$as_save_IFS
4501
 
  test -z "$as_dir" && as_dir=.
4502
 
  for ac_prog in egrep; do
4503
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4504
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4505
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4506
 
    # Check for GNU ac_path_EGREP and select it if it is found.
4507
 
  # Check for GNU $ac_path_EGREP
4508
 
case `"$ac_path_EGREP" --version 2>&1` in
4509
 
*GNU*)
4510
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4511
 
*)
4512
 
  ac_count=0
4513
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4514
 
  while :
4515
 
  do
4516
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4517
 
    mv "conftest.tmp" "conftest.in"
4518
 
    cp "conftest.in" "conftest.nl"
4519
 
    echo 'EGREP' >> "conftest.nl"
4520
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522
 
    ac_count=`expr $ac_count + 1`
4523
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4524
 
      # Best one so far, save it but keep looking for a better one
4525
 
      ac_cv_path_EGREP="$ac_path_EGREP"
4526
 
      ac_path_EGREP_max=$ac_count
4527
 
    fi
4528
 
    # 10*(2^10) chars as input seems more than enough
4529
 
    test $ac_count -gt 10 && break
4530
 
  done
4531
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532
 
esac
4533
 
 
4534
 
 
4535
 
    $ac_path_EGREP_found && break 3
4536
 
  done
4537
 
done
4538
 
 
4539
 
done
4540
 
IFS=$as_save_IFS
4541
 
 
4542
 
 
4543
 
fi
4544
 
 
4545
 
EGREP="$ac_cv_path_EGREP"
4546
 
if test -z "$EGREP"; then
4547
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4548
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4549
 
   { (exit 1); exit 1; }; }
4550
 
fi
4551
 
 
4552
 
else
4553
 
  ac_cv_path_EGREP=$EGREP
4554
 
fi
4555
 
 
4556
 
 
4557
 
   fi
4558
 
fi
4559
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4560
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4561
 
 EGREP="$ac_cv_path_EGREP"
4562
 
 
4563
 
 
4564
19780
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4565
19781
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4566
19782
if test "${ac_cv_header_stdc+set}" = set; then
4985
20201
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4986
20202
 
4987
20203
 
4988
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4989
 
 
4990
 
 
4991
 
 
4992
 
 
4993
 
 
4994
 
 
4995
 
 
4996
 
 
4997
 
 
4998
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4999
 
                  inttypes.h stdint.h unistd.h
5000
 
do
5001
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5003
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5004
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5005
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5006
 
else
5007
 
  cat >conftest.$ac_ext <<_ACEOF
5008
 
/* confdefs.h.  */
5009
 
_ACEOF
5010
 
cat confdefs.h >>conftest.$ac_ext
5011
 
cat >>conftest.$ac_ext <<_ACEOF
5012
 
/* end confdefs.h.  */
5013
 
$ac_includes_default
5014
 
 
5015
 
#include <$ac_header>
5016
 
_ACEOF
5017
 
rm -f conftest.$ac_objext
5018
 
if { (ac_try="$ac_compile"
5019
 
case "(($ac_try" in
5020
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021
 
  *) ac_try_echo=$ac_try;;
5022
 
esac
5023
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024
 
  (eval "$ac_compile") 2>conftest.er1
5025
 
  ac_status=$?
5026
 
  grep -v '^ *+' conftest.er1 >conftest.err
5027
 
  rm -f conftest.er1
5028
 
  cat conftest.err >&5
5029
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030
 
  (exit $ac_status); } && {
5031
 
         test -z "$ac_cxx_werror_flag" ||
5032
 
         test ! -s conftest.err
5033
 
       } && test -s conftest.$ac_objext; then
5034
 
  eval "$as_ac_Header=yes"
5035
 
else
5036
 
  echo "$as_me: failed program was:" >&5
5037
 
sed 's/^/| /' conftest.$ac_ext >&5
5038
 
 
5039
 
        eval "$as_ac_Header=no"
5040
 
fi
5041
 
 
5042
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043
 
fi
5044
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5045
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5046
 
echo "${ECHO_T}$ac_res" >&6; }
5047
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5048
 
  cat >>confdefs.h <<_ACEOF
5049
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5050
 
_ACEOF
5051
 
 
5052
 
fi
5053
 
 
5054
 
done
5055
 
 
5056
 
 
5057
 
ac_ext=cpp
5058
 
ac_cpp='$CXXCPP $CPPFLAGS'
5059
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5062
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5063
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5064
 
if test -z "$CXXCPP"; then
5065
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5066
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5067
 
else
5068
 
      # Double quotes because CXXCPP needs to be expanded
5069
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
5070
 
    do
5071
 
      ac_preproc_ok=false
5072
 
for ac_cxx_preproc_warn_flag in '' yes
5073
 
do
5074
 
  # Use a header file that comes with gcc, so configuring glibc
5075
 
  # with a fresh cross-compiler works.
5076
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5077
 
  # <limits.h> exists even on freestanding compilers.
5078
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5079
 
  # not just through cpp. "Syntax error" is here to catch this case.
5080
 
  cat >conftest.$ac_ext <<_ACEOF
5081
 
/* confdefs.h.  */
5082
 
_ACEOF
5083
 
cat confdefs.h >>conftest.$ac_ext
5084
 
cat >>conftest.$ac_ext <<_ACEOF
5085
 
/* end confdefs.h.  */
5086
 
#ifdef __STDC__
5087
 
# include <limits.h>
5088
 
#else
5089
 
# include <assert.h>
5090
 
#endif
5091
 
                     Syntax error
5092
 
_ACEOF
5093
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5094
 
case "(($ac_try" in
5095
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096
 
  *) ac_try_echo=$ac_try;;
5097
 
esac
5098
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5100
 
  ac_status=$?
5101
 
  grep -v '^ *+' conftest.er1 >conftest.err
5102
 
  rm -f conftest.er1
5103
 
  cat conftest.err >&5
5104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105
 
  (exit $ac_status); } >/dev/null && {
5106
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5107
 
         test ! -s conftest.err
5108
 
       }; then
5109
 
  :
5110
 
else
5111
 
  echo "$as_me: failed program was:" >&5
5112
 
sed 's/^/| /' conftest.$ac_ext >&5
5113
 
 
5114
 
  # Broken: fails on valid input.
5115
 
continue
5116
 
fi
5117
 
 
5118
 
rm -f conftest.err conftest.$ac_ext
5119
 
 
5120
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5121
 
  # can be detected and how.
5122
 
  cat >conftest.$ac_ext <<_ACEOF
5123
 
/* confdefs.h.  */
5124
 
_ACEOF
5125
 
cat confdefs.h >>conftest.$ac_ext
5126
 
cat >>conftest.$ac_ext <<_ACEOF
5127
 
/* end confdefs.h.  */
5128
 
#include <ac_nonexistent.h>
5129
 
_ACEOF
5130
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5131
 
case "(($ac_try" in
5132
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133
 
  *) ac_try_echo=$ac_try;;
5134
 
esac
5135
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5137
 
  ac_status=$?
5138
 
  grep -v '^ *+' conftest.er1 >conftest.err
5139
 
  rm -f conftest.er1
5140
 
  cat conftest.err >&5
5141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142
 
  (exit $ac_status); } >/dev/null && {
5143
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5144
 
         test ! -s conftest.err
5145
 
       }; then
5146
 
  # Broken: success on invalid input.
5147
 
continue
5148
 
else
5149
 
  echo "$as_me: failed program was:" >&5
5150
 
sed 's/^/| /' conftest.$ac_ext >&5
5151
 
 
5152
 
  # Passes both tests.
5153
 
ac_preproc_ok=:
5154
 
break
5155
 
fi
5156
 
 
5157
 
rm -f conftest.err conftest.$ac_ext
5158
 
 
5159
 
done
5160
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161
 
rm -f conftest.err conftest.$ac_ext
5162
 
if $ac_preproc_ok; then
5163
 
  break
5164
 
fi
5165
 
 
5166
 
    done
5167
 
    ac_cv_prog_CXXCPP=$CXXCPP
5168
 
 
5169
 
fi
5170
 
  CXXCPP=$ac_cv_prog_CXXCPP
5171
 
else
5172
 
  ac_cv_prog_CXXCPP=$CXXCPP
5173
 
fi
5174
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5175
 
echo "${ECHO_T}$CXXCPP" >&6; }
5176
 
ac_preproc_ok=false
5177
 
for ac_cxx_preproc_warn_flag in '' yes
5178
 
do
5179
 
  # Use a header file that comes with gcc, so configuring glibc
5180
 
  # with a fresh cross-compiler works.
5181
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5182
 
  # <limits.h> exists even on freestanding compilers.
5183
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5184
 
  # not just through cpp. "Syntax error" is here to catch this case.
5185
 
  cat >conftest.$ac_ext <<_ACEOF
5186
 
/* confdefs.h.  */
5187
 
_ACEOF
5188
 
cat confdefs.h >>conftest.$ac_ext
5189
 
cat >>conftest.$ac_ext <<_ACEOF
5190
 
/* end confdefs.h.  */
5191
 
#ifdef __STDC__
5192
 
# include <limits.h>
5193
 
#else
5194
 
# include <assert.h>
5195
 
#endif
5196
 
                     Syntax error
5197
 
_ACEOF
5198
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5199
 
case "(($ac_try" in
5200
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201
 
  *) ac_try_echo=$ac_try;;
5202
 
esac
5203
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5205
 
  ac_status=$?
5206
 
  grep -v '^ *+' conftest.er1 >conftest.err
5207
 
  rm -f conftest.er1
5208
 
  cat conftest.err >&5
5209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210
 
  (exit $ac_status); } >/dev/null && {
5211
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5212
 
         test ! -s conftest.err
5213
 
       }; then
5214
 
  :
5215
 
else
5216
 
  echo "$as_me: failed program was:" >&5
5217
 
sed 's/^/| /' conftest.$ac_ext >&5
5218
 
 
5219
 
  # Broken: fails on valid input.
5220
 
continue
5221
 
fi
5222
 
 
5223
 
rm -f conftest.err conftest.$ac_ext
5224
 
 
5225
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5226
 
  # can be detected and how.
5227
 
  cat >conftest.$ac_ext <<_ACEOF
5228
 
/* confdefs.h.  */
5229
 
_ACEOF
5230
 
cat confdefs.h >>conftest.$ac_ext
5231
 
cat >>conftest.$ac_ext <<_ACEOF
5232
 
/* end confdefs.h.  */
5233
 
#include <ac_nonexistent.h>
5234
 
_ACEOF
5235
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5236
 
case "(($ac_try" in
5237
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238
 
  *) ac_try_echo=$ac_try;;
5239
 
esac
5240
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5242
 
  ac_status=$?
5243
 
  grep -v '^ *+' conftest.er1 >conftest.err
5244
 
  rm -f conftest.er1
5245
 
  cat conftest.err >&5
5246
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247
 
  (exit $ac_status); } >/dev/null && {
5248
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5249
 
         test ! -s conftest.err
5250
 
       }; then
5251
 
  # Broken: success on invalid input.
5252
 
continue
5253
 
else
5254
 
  echo "$as_me: failed program was:" >&5
5255
 
sed 's/^/| /' conftest.$ac_ext >&5
5256
 
 
5257
 
  # Passes both tests.
5258
 
ac_preproc_ok=:
5259
 
break
5260
 
fi
5261
 
 
5262
 
rm -f conftest.err conftest.$ac_ext
5263
 
 
5264
 
done
5265
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5266
 
rm -f conftest.err conftest.$ac_ext
5267
 
if $ac_preproc_ok; then
5268
 
  :
5269
 
else
5270
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5271
 
See \`config.log' for more details." >&5
5272
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5273
 
See \`config.log' for more details." >&2;}
5274
 
   { (exit 1); exit 1; }; }
5275
 
fi
5276
 
 
5277
 
ac_ext=cpp
5278
 
ac_cpp='$CXXCPP $CPPFLAGS'
5279
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5282
 
 
5283
 
 
5284
 
 
5285
 
 
5286
 
 
5287
 
for ac_header in algorithm vector iostream
 
20204
 
 
20205
for ac_header in algorithm
5288
20206
do
5289
20207
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5290
20208
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5427
20345
 
5428
20346
done
5429
20347
 
 
20348
 
 
20349
 
 
20350
 
 
20351
 
 
20352
 
 
20353
 
 
20354
 
 
20355
 
 
20356
 
 
20357
 
 
20358
 
 
20359
 
 
20360
 
 
20361
 
 
20362
 
 
20363
 
 
20364
 
 
20365
 
 
20366
 
 
20367
for ac_header in boost/thread.hpp boost/scoped_ptr.hpp boost/thread/condition.hpp boost/thread/mutex.hpp boost/thread/thread.hpp boost/ptr_container/ptr_map.hpp boost/noncopyable.hpp boost/progress.hpp boost/ptr_container/ptr_set.hpp boost/thread/xtime.hpp boost/program_options.hpp boost/lexical_cast.hpp boost/regex.hpp boost/function.hpp boost/scoped_ptr.hpp boost/lambda/lambda.hpp boost/lambda/bind.hpp boost/spirit/core.hpp boost/thread/xtime.hpp
 
20368
do
 
20369
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20370
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20371
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20372
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20373
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20375
fi
 
20376
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20377
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20378
echo "${ECHO_T}$ac_res" >&6; }
 
20379
else
 
20380
  # Is the header compilable?
 
20381
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20382
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20383
cat >conftest.$ac_ext <<_ACEOF
 
20384
/* confdefs.h.  */
 
20385
_ACEOF
 
20386
cat confdefs.h >>conftest.$ac_ext
 
20387
cat >>conftest.$ac_ext <<_ACEOF
 
20388
/* end confdefs.h.  */
 
20389
$ac_includes_default
 
20390
#include <$ac_header>
 
20391
_ACEOF
 
20392
rm -f conftest.$ac_objext
 
20393
if { (ac_try="$ac_compile"
 
20394
case "(($ac_try" in
 
20395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20396
  *) ac_try_echo=$ac_try;;
 
20397
esac
 
20398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20399
  (eval "$ac_compile") 2>conftest.er1
 
20400
  ac_status=$?
 
20401
  grep -v '^ *+' conftest.er1 >conftest.err
 
20402
  rm -f conftest.er1
 
20403
  cat conftest.err >&5
 
20404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20405
  (exit $ac_status); } && {
 
20406
         test -z "$ac_cxx_werror_flag" ||
 
20407
         test ! -s conftest.err
 
20408
       } && test -s conftest.$ac_objext; then
 
20409
  ac_header_compiler=yes
 
20410
else
 
20411
  echo "$as_me: failed program was:" >&5
 
20412
sed 's/^/| /' conftest.$ac_ext >&5
 
20413
 
 
20414
        ac_header_compiler=no
 
20415
fi
 
20416
 
 
20417
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20418
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20419
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20420
 
 
20421
# Is the header present?
 
20422
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20423
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20424
cat >conftest.$ac_ext <<_ACEOF
 
20425
/* confdefs.h.  */
 
20426
_ACEOF
 
20427
cat confdefs.h >>conftest.$ac_ext
 
20428
cat >>conftest.$ac_ext <<_ACEOF
 
20429
/* end confdefs.h.  */
 
20430
#include <$ac_header>
 
20431
_ACEOF
 
20432
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20433
case "(($ac_try" in
 
20434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20435
  *) ac_try_echo=$ac_try;;
 
20436
esac
 
20437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20438
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20439
  ac_status=$?
 
20440
  grep -v '^ *+' conftest.er1 >conftest.err
 
20441
  rm -f conftest.er1
 
20442
  cat conftest.err >&5
 
20443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20444
  (exit $ac_status); } >/dev/null && {
 
20445
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
20446
         test ! -s conftest.err
 
20447
       }; then
 
20448
  ac_header_preproc=yes
 
20449
else
 
20450
  echo "$as_me: failed program was:" >&5
 
20451
sed 's/^/| /' conftest.$ac_ext >&5
 
20452
 
 
20453
  ac_header_preproc=no
 
20454
fi
 
20455
 
 
20456
rm -f conftest.err conftest.$ac_ext
 
20457
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20458
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20459
 
 
20460
# So?  What about this header?
 
20461
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
20462
  yes:no: )
 
20463
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20464
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20465
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20466
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20467
    ac_header_preproc=yes
 
20468
    ;;
 
20469
  no:yes:* )
 
20470
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20471
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20472
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20473
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20474
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20475
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20476
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20477
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20478
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20479
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20480
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20481
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20482
 
 
20483
    ;;
 
20484
esac
 
20485
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20486
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20487
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20488
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20489
else
 
20490
  eval "$as_ac_Header=\$ac_header_preproc"
 
20491
fi
 
20492
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20493
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20494
echo "${ECHO_T}$ac_res" >&6; }
 
20495
 
 
20496
fi
 
20497
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20498
  cat >>confdefs.h <<_ACEOF
 
20499
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20500
_ACEOF
 
20501
 
 
20502
else
 
20503
  { { echo "$as_me:$LINENO: error: You need to have the boost headers installed" >&5
 
20504
echo "$as_me: error: You need to have the boost headers installed" >&2;}
 
20505
   { (exit 1); exit 1; }; }
 
20506
fi
 
20507
 
 
20508
done
 
20509
 
5430
20510
ac_ext=c
5431
20511
ac_cpp='$CPP $CPPFLAGS'
5432
20512
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440
20520
 
5441
20521
 
5442
20522
 
5443
 
 
5444
 
 
5445
 
 
5446
 
for ac_header in fcntl.h math.h stdlib.h stdio.h getopt.h dirent.h sys/ioctl.h sys/types.h sys/stat.h
 
20523
for ac_header in fcntl.h glob.h dirent.h sys/ioctl.h sys/types.h sys/stat.h
5447
20524
do
5448
20525
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5449
20526
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5768
20845
 
5769
20846
        { echo "$as_me:$LINENO: result: no" >&5
5770
20847
echo "${ECHO_T}no" >&6; }
5771
 
                { { echo "$as_me:$LINENO: error: This game connot be build without cairo >= 1.2 " >&5
5772
 
echo "$as_me: error: This game connot be build without cairo >= 1.2 " >&2;}
 
20848
                { { echo "$as_me:$LINENO: error: This game cannot be built without cairo >= 1.2 " >&5
 
20849
echo "$as_me: error: This game cannot be built without cairo >= 1.2 " >&2;}
5773
20850
   { (exit 1); exit 1; }; }
5774
20851
elif test $pkg_failed = untried; then
5775
 
        { { echo "$as_me:$LINENO: error: This game connot be build without cairo >= 1.2 " >&5
5776
 
echo "$as_me: error: This game connot be build without cairo >= 1.2 " >&2;}
 
20852
        { { echo "$as_me:$LINENO: error: This game cannot be built without cairo >= 1.2 " >&5
 
20853
echo "$as_me: error: This game cannot be built without cairo >= 1.2 " >&2;}
5777
20854
   { (exit 1); exit 1; }; }
5778
20855
else
5779
20856
        cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
5844
20921
 
5845
20922
        { echo "$as_me:$LINENO: result: no" >&5
5846
20923
echo "${ECHO_T}no" >&6; }
5847
 
                { { echo "$as_me:$LINENO: error: This game connot be build without libxml-2" >&5
5848
 
echo "$as_me: error: This game connot be build without libxml-2" >&2;}
 
20924
                { { echo "$as_me:$LINENO: error: This game cannot be built without libxml-2" >&5
 
20925
echo "$as_me: error: This game cannot be built without libxml-2" >&2;}
5849
20926
   { (exit 1); exit 1; }; }
5850
20927
elif test $pkg_failed = untried; then
5851
 
        { { echo "$as_me:$LINENO: error: This game connot be build without libxml-2" >&5
5852
 
echo "$as_me: error: This game connot be build without libxml-2" >&2;}
 
20928
        { { echo "$as_me:$LINENO: error: This game cannot be built without libxml-2" >&5
 
20929
echo "$as_me: error: This game cannot be built without libxml-2" >&2;}
5853
20930
   { (exit 1); exit 1; }; }
5854
20931
else
5855
20932
        libxml_CFLAGS=$pkg_cv_libxml_CFLAGS
5861
20938
 
5862
20939
 
5863
20940
pkg_failed=no
5864
 
{ echo "$as_me:$LINENO: checking for fftw3f" >&5
5865
 
echo $ECHO_N "checking for fftw3f... $ECHO_C" >&6; }
5866
 
 
5867
 
if test -n "$PKG_CONFIG"; then
5868
 
    if test -n "$fftw3f_CFLAGS"; then
5869
 
        pkg_cv_fftw3f_CFLAGS="$fftw3f_CFLAGS"
5870
 
    else
5871
 
        if test -n "$PKG_CONFIG" && \
5872
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3f \"") >&5
5873
 
  ($PKG_CONFIG --exists --print-errors "fftw3f ") 2>&5
5874
 
  ac_status=$?
5875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876
 
  (exit $ac_status); }; then
5877
 
  pkg_cv_fftw3f_CFLAGS=`$PKG_CONFIG --cflags "fftw3f " 2>/dev/null`
5878
 
else
5879
 
  pkg_failed=yes
5880
 
fi
5881
 
    fi
5882
 
else
5883
 
        pkg_failed=untried
5884
 
fi
5885
 
if test -n "$PKG_CONFIG"; then
5886
 
    if test -n "$fftw3f_LIBS"; then
5887
 
        pkg_cv_fftw3f_LIBS="$fftw3f_LIBS"
5888
 
    else
5889
 
        if test -n "$PKG_CONFIG" && \
5890
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3f \"") >&5
5891
 
  ($PKG_CONFIG --exists --print-errors "fftw3f ") 2>&5
5892
 
  ac_status=$?
5893
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894
 
  (exit $ac_status); }; then
5895
 
  pkg_cv_fftw3f_LIBS=`$PKG_CONFIG --libs "fftw3f " 2>/dev/null`
5896
 
else
5897
 
  pkg_failed=yes
5898
 
fi
5899
 
    fi
5900
 
else
5901
 
        pkg_failed=untried
5902
 
fi
5903
 
 
5904
 
 
5905
 
 
5906
 
if test $pkg_failed = yes; then
5907
 
 
5908
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5909
 
        _pkg_short_errors_supported=yes
5910
 
else
5911
 
        _pkg_short_errors_supported=no
5912
 
fi
5913
 
        if test $_pkg_short_errors_supported = yes; then
5914
 
                fftw3f_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fftw3f "`
5915
 
        else
5916
 
                fftw3f_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f "`
5917
 
        fi
5918
 
        # Put the nasty error message in config.log where it belongs
5919
 
        echo "$fftw3f_PKG_ERRORS" >&5
5920
 
 
5921
 
        { echo "$as_me:$LINENO: result: no" >&5
5922
 
echo "${ECHO_T}no" >&6; }
5923
 
                { { echo "$as_me:$LINENO: error: This game connot be build without fftw3f" >&5
5924
 
echo "$as_me: error: This game connot be build without fftw3f" >&2;}
5925
 
   { (exit 1); exit 1; }; }
5926
 
elif test $pkg_failed = untried; then
5927
 
        { { echo "$as_me:$LINENO: error: This game connot be build without fftw3f" >&5
5928
 
echo "$as_me: error: This game connot be build without fftw3f" >&2;}
5929
 
   { (exit 1); exit 1; }; }
5930
 
else
5931
 
        fftw3f_CFLAGS=$pkg_cv_fftw3f_CFLAGS
5932
 
        fftw3f_LIBS=$pkg_cv_fftw3f_LIBS
5933
 
        { echo "$as_me:$LINENO: result: yes" >&5
5934
 
echo "${ECHO_T}yes" >&6; }
5935
 
        :
5936
 
fi
5937
 
 
5938
 
 
5939
 
pkg_failed=no
5940
 
{ echo "$as_me:$LINENO: checking for alsa" >&5
5941
 
echo $ECHO_N "checking for alsa... $ECHO_C" >&6; }
5942
 
 
5943
 
if test -n "$PKG_CONFIG"; then
5944
 
    if test -n "$alsa_CFLAGS"; then
5945
 
        pkg_cv_alsa_CFLAGS="$alsa_CFLAGS"
5946
 
    else
5947
 
        if test -n "$PKG_CONFIG" && \
5948
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa \"") >&5
5949
 
  ($PKG_CONFIG --exists --print-errors "alsa ") 2>&5
5950
 
  ac_status=$?
5951
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952
 
  (exit $ac_status); }; then
5953
 
  pkg_cv_alsa_CFLAGS=`$PKG_CONFIG --cflags "alsa " 2>/dev/null`
5954
 
else
5955
 
  pkg_failed=yes
5956
 
fi
5957
 
    fi
5958
 
else
5959
 
        pkg_failed=untried
5960
 
fi
5961
 
if test -n "$PKG_CONFIG"; then
5962
 
    if test -n "$alsa_LIBS"; then
5963
 
        pkg_cv_alsa_LIBS="$alsa_LIBS"
5964
 
    else
5965
 
        if test -n "$PKG_CONFIG" && \
5966
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa \"") >&5
5967
 
  ($PKG_CONFIG --exists --print-errors "alsa ") 2>&5
5968
 
  ac_status=$?
5969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970
 
  (exit $ac_status); }; then
5971
 
  pkg_cv_alsa_LIBS=`$PKG_CONFIG --libs "alsa " 2>/dev/null`
5972
 
else
5973
 
  pkg_failed=yes
5974
 
fi
5975
 
    fi
5976
 
else
5977
 
        pkg_failed=untried
5978
 
fi
5979
 
 
5980
 
 
5981
 
 
5982
 
if test $pkg_failed = yes; then
5983
 
 
5984
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5985
 
        _pkg_short_errors_supported=yes
5986
 
else
5987
 
        _pkg_short_errors_supported=no
5988
 
fi
5989
 
        if test $_pkg_short_errors_supported = yes; then
5990
 
                alsa_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa "`
5991
 
        else
5992
 
                alsa_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa "`
5993
 
        fi
5994
 
        # Put the nasty error message in config.log where it belongs
5995
 
        echo "$alsa_PKG_ERRORS" >&5
5996
 
 
5997
 
        { echo "$as_me:$LINENO: result: no" >&5
5998
 
echo "${ECHO_T}no" >&6; }
5999
 
                { { echo "$as_me:$LINENO: error: This game connot be build without alsa" >&5
6000
 
echo "$as_me: error: This game connot be build without alsa" >&2;}
6001
 
   { (exit 1); exit 1; }; }
6002
 
elif test $pkg_failed = untried; then
6003
 
        { { echo "$as_me:$LINENO: error: This game connot be build without alsa" >&5
6004
 
echo "$as_me: error: This game connot be build without alsa" >&2;}
6005
 
   { (exit 1); exit 1; }; }
6006
 
else
6007
 
        alsa_CFLAGS=$pkg_cv_alsa_CFLAGS
6008
 
        alsa_LIBS=$pkg_cv_alsa_LIBS
 
20941
{ echo "$as_me:$LINENO: checking for pangocairo" >&5
 
20942
echo $ECHO_N "checking for pangocairo... $ECHO_C" >&6; }
 
20943
 
 
20944
if test -n "$PKG_CONFIG"; then
 
20945
    if test -n "$pangocairo_CFLAGS"; then
 
20946
        pkg_cv_pangocairo_CFLAGS="$pangocairo_CFLAGS"
 
20947
    else
 
20948
        if test -n "$PKG_CONFIG" && \
 
20949
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangocairo \"") >&5
 
20950
  ($PKG_CONFIG --exists --print-errors "pangocairo ") 2>&5
 
20951
  ac_status=$?
 
20952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20953
  (exit $ac_status); }; then
 
20954
  pkg_cv_pangocairo_CFLAGS=`$PKG_CONFIG --cflags "pangocairo " 2>/dev/null`
 
20955
else
 
20956
  pkg_failed=yes
 
20957
fi
 
20958
    fi
 
20959
else
 
20960
        pkg_failed=untried
 
20961
fi
 
20962
if test -n "$PKG_CONFIG"; then
 
20963
    if test -n "$pangocairo_LIBS"; then
 
20964
        pkg_cv_pangocairo_LIBS="$pangocairo_LIBS"
 
20965
    else
 
20966
        if test -n "$PKG_CONFIG" && \
 
20967
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangocairo \"") >&5
 
20968
  ($PKG_CONFIG --exists --print-errors "pangocairo ") 2>&5
 
20969
  ac_status=$?
 
20970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20971
  (exit $ac_status); }; then
 
20972
  pkg_cv_pangocairo_LIBS=`$PKG_CONFIG --libs "pangocairo " 2>/dev/null`
 
20973
else
 
20974
  pkg_failed=yes
 
20975
fi
 
20976
    fi
 
20977
else
 
20978
        pkg_failed=untried
 
20979
fi
 
20980
 
 
20981
 
 
20982
 
 
20983
if test $pkg_failed = yes; then
 
20984
 
 
20985
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20986
        _pkg_short_errors_supported=yes
 
20987
else
 
20988
        _pkg_short_errors_supported=no
 
20989
fi
 
20990
        if test $_pkg_short_errors_supported = yes; then
 
20991
                pangocairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangocairo "`
 
20992
        else
 
20993
                pangocairo_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangocairo "`
 
20994
        fi
 
20995
        # Put the nasty error message in config.log where it belongs
 
20996
        echo "$pangocairo_PKG_ERRORS" >&5
 
20997
 
 
20998
        { echo "$as_me:$LINENO: result: no" >&5
 
20999
echo "${ECHO_T}no" >&6; }
 
21000
                { { echo "$as_me:$LINENO: error: This game cannot be built without pango for cairo" >&5
 
21001
echo "$as_me: error: This game cannot be built without pango for cairo" >&2;}
 
21002
   { (exit 1); exit 1; }; }
 
21003
elif test $pkg_failed = untried; then
 
21004
        { { echo "$as_me:$LINENO: error: This game cannot be built without pango for cairo" >&5
 
21005
echo "$as_me: error: This game cannot be built without pango for cairo" >&2;}
 
21006
   { (exit 1); exit 1; }; }
 
21007
else
 
21008
        pangocairo_CFLAGS=$pkg_cv_pangocairo_CFLAGS
 
21009
        pangocairo_LIBS=$pkg_cv_pangocairo_LIBS
6009
21010
        { echo "$as_me:$LINENO: result: yes" >&5
6010
21011
echo "${ECHO_T}yes" >&6; }
6011
21012
        :
6072
21073
 
6073
21074
        { echo "$as_me:$LINENO: result: no" >&5
6074
21075
echo "${ECHO_T}no" >&6; }
6075
 
                librsvg_detected=no
 
21076
                librsvg_detected="no"
6076
21077
elif test $pkg_failed = untried; then
6077
 
        librsvg_detected=no
 
21078
        librsvg_detected="no"
6078
21079
else
6079
21080
        librsvg_CFLAGS=$pkg_cv_librsvg_CFLAGS
6080
21081
        librsvg_LIBS=$pkg_cv_librsvg_LIBS
6081
21082
        { echo "$as_me:$LINENO: result: yes" >&5
6082
21083
echo "${ECHO_T}yes" >&6; }
6083
 
        librsvg_detected=yes
 
21084
        librsvg_detected="yes"
6084
21085
fi
6085
21086
 
6086
21087
pkg_failed=no
6143
21144
 
6144
21145
        { echo "$as_me:$LINENO: result: no" >&5
6145
21146
echo "${ECHO_T}no" >&6; }
6146
 
                cairosvg_detected=no
 
21147
                cairosvg_detected="no"
6147
21148
elif test $pkg_failed = untried; then
6148
 
        cairosvg_detected=no
 
21149
        cairosvg_detected="no"
6149
21150
else
6150
21151
        cairosvg_CFLAGS=$pkg_cv_cairosvg_CFLAGS
6151
21152
        cairosvg_LIBS=$pkg_cv_cairosvg_LIBS
6152
21153
        { echo "$as_me:$LINENO: result: yes" >&5
6153
21154
echo "${ECHO_T}yes" >&6; }
6154
 
        cairosvg_detected=yes
 
21155
        cairosvg_detected="yes"
6155
21156
fi
6156
21157
 
6157
21158
pkg_failed=no
6214
21215
 
6215
21216
        { echo "$as_me:$LINENO: result: no" >&5
6216
21217
echo "${ECHO_T}no" >&6; }
6217
 
                xine_detected=no
 
21218
                xine_detected="no"
6218
21219
elif test $pkg_failed = untried; then
6219
 
        xine_detected=no
 
21220
        xine_detected="no"
6220
21221
else
6221
21222
        xine_CFLAGS=$pkg_cv_xine_CFLAGS
6222
21223
        xine_LIBS=$pkg_cv_xine_LIBS
6223
21224
        { echo "$as_me:$LINENO: result: yes" >&5
6224
21225
echo "${ECHO_T}yes" >&6; }
6225
 
        xine_detected=yes
 
21226
        xine_detected="yes"
6226
21227
fi
6227
21228
 
6228
21229
pkg_failed=no
6285
21286
 
6286
21287
        { echo "$as_me:$LINENO: result: no" >&5
6287
21288
echo "${ECHO_T}no" >&6; }
6288
 
                gst_detected=no
 
21289
                gst_detected="no"
6289
21290
elif test $pkg_failed = untried; then
6290
 
        gst_detected=no
 
21291
        gst_detected="no"
6291
21292
else
6292
21293
        gstreamer_CFLAGS=$pkg_cv_gstreamer_CFLAGS
6293
21294
        gstreamer_LIBS=$pkg_cv_gstreamer_LIBS
6294
21295
        { echo "$as_me:$LINENO: result: yes" >&5
6295
21296
echo "${ECHO_T}yes" >&6; }
6296
 
        gst_detected=yes
 
21297
        gst_detected="yes"
6297
21298
fi
6298
 
 
6299
21299
for ac_prog in sdl-config
6300
21300
do
6301
21301
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6342
21342
   { (exit 1); exit 1; }; }"
6343
21343
 
6344
21344
 
 
21345
# Record backend detection
 
21346
 
 
21347
pkg_failed=no
 
21348
{ echo "$as_me:$LINENO: checking for alsa" >&5
 
21349
echo $ECHO_N "checking for alsa... $ECHO_C" >&6; }
 
21350
 
 
21351
if test -n "$PKG_CONFIG"; then
 
21352
    if test -n "$alsa_CFLAGS"; then
 
21353
        pkg_cv_alsa_CFLAGS="$alsa_CFLAGS"
 
21354
    else
 
21355
        if test -n "$PKG_CONFIG" && \
 
21356
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa \"") >&5
 
21357
  ($PKG_CONFIG --exists --print-errors "alsa ") 2>&5
 
21358
  ac_status=$?
 
21359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21360
  (exit $ac_status); }; then
 
21361
  pkg_cv_alsa_CFLAGS=`$PKG_CONFIG --cflags "alsa " 2>/dev/null`
 
21362
else
 
21363
  pkg_failed=yes
 
21364
fi
 
21365
    fi
 
21366
else
 
21367
        pkg_failed=untried
 
21368
fi
 
21369
if test -n "$PKG_CONFIG"; then
 
21370
    if test -n "$alsa_LIBS"; then
 
21371
        pkg_cv_alsa_LIBS="$alsa_LIBS"
 
21372
    else
 
21373
        if test -n "$PKG_CONFIG" && \
 
21374
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa \"") >&5
 
21375
  ($PKG_CONFIG --exists --print-errors "alsa ") 2>&5
 
21376
  ac_status=$?
 
21377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21378
  (exit $ac_status); }; then
 
21379
  pkg_cv_alsa_LIBS=`$PKG_CONFIG --libs "alsa " 2>/dev/null`
 
21380
else
 
21381
  pkg_failed=yes
 
21382
fi
 
21383
    fi
 
21384
else
 
21385
        pkg_failed=untried
 
21386
fi
 
21387
 
 
21388
 
 
21389
 
 
21390
if test $pkg_failed = yes; then
 
21391
 
 
21392
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21393
        _pkg_short_errors_supported=yes
 
21394
else
 
21395
        _pkg_short_errors_supported=no
 
21396
fi
 
21397
        if test $_pkg_short_errors_supported = yes; then
 
21398
                alsa_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa "`
 
21399
        else
 
21400
                alsa_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa "`
 
21401
        fi
 
21402
        # Put the nasty error message in config.log where it belongs
 
21403
        echo "$alsa_PKG_ERRORS" >&5
 
21404
 
 
21405
        { echo "$as_me:$LINENO: result: no" >&5
 
21406
echo "${ECHO_T}no" >&6; }
 
21407
                record_alsa="no"
 
21408
elif test $pkg_failed = untried; then
 
21409
        record_alsa="no"
 
21410
else
 
21411
        alsa_CFLAGS=$pkg_cv_alsa_CFLAGS
 
21412
        alsa_LIBS=$pkg_cv_alsa_LIBS
 
21413
        { echo "$as_me:$LINENO: result: yes" >&5
 
21414
echo "${ECHO_T}yes" >&6; }
 
21415
        record_alsa="yes"
 
21416
fi
 
21417
 
 
21418
pkg_failed=no
 
21419
{ echo "$as_me:$LINENO: checking for portAudioV19" >&5
 
21420
echo $ECHO_N "checking for portAudioV19... $ECHO_C" >&6; }
 
21421
 
 
21422
if test -n "$PKG_CONFIG"; then
 
21423
    if test -n "$portAudioV19_CFLAGS"; then
 
21424
        pkg_cv_portAudioV19_CFLAGS="$portAudioV19_CFLAGS"
 
21425
    else
 
21426
        if test -n "$PKG_CONFIG" && \
 
21427
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 \"") >&5
 
21428
  ($PKG_CONFIG --exists --print-errors "portaudio-2.0 ") 2>&5
 
21429
  ac_status=$?
 
21430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21431
  (exit $ac_status); }; then
 
21432
  pkg_cv_portAudioV19_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 " 2>/dev/null`
 
21433
else
 
21434
  pkg_failed=yes
 
21435
fi
 
21436
    fi
 
21437
else
 
21438
        pkg_failed=untried
 
21439
fi
 
21440
if test -n "$PKG_CONFIG"; then
 
21441
    if test -n "$portAudioV19_LIBS"; then
 
21442
        pkg_cv_portAudioV19_LIBS="$portAudioV19_LIBS"
 
21443
    else
 
21444
        if test -n "$PKG_CONFIG" && \
 
21445
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 \"") >&5
 
21446
  ($PKG_CONFIG --exists --print-errors "portaudio-2.0 ") 2>&5
 
21447
  ac_status=$?
 
21448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21449
  (exit $ac_status); }; then
 
21450
  pkg_cv_portAudioV19_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 " 2>/dev/null`
 
21451
else
 
21452
  pkg_failed=yes
 
21453
fi
 
21454
    fi
 
21455
else
 
21456
        pkg_failed=untried
 
21457
fi
 
21458
 
 
21459
 
 
21460
 
 
21461
if test $pkg_failed = yes; then
 
21462
 
 
21463
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21464
        _pkg_short_errors_supported=yes
 
21465
else
 
21466
        _pkg_short_errors_supported=no
 
21467
fi
 
21468
        if test $_pkg_short_errors_supported = yes; then
 
21469
                portAudioV19_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "portaudio-2.0 "`
 
21470
        else
 
21471
                portAudioV19_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 "`
 
21472
        fi
 
21473
        # Put the nasty error message in config.log where it belongs
 
21474
        echo "$portAudioV19_PKG_ERRORS" >&5
 
21475
 
 
21476
        { echo "$as_me:$LINENO: result: no" >&5
 
21477
echo "${ECHO_T}no" >&6; }
 
21478
                record_pa19="no"
 
21479
elif test $pkg_failed = untried; then
 
21480
        record_pa19="no"
 
21481
else
 
21482
        portAudioV19_CFLAGS=$pkg_cv_portAudioV19_CFLAGS
 
21483
        portAudioV19_LIBS=$pkg_cv_portAudioV19_LIBS
 
21484
        { echo "$as_me:$LINENO: result: yes" >&5
 
21485
echo "${ECHO_T}yes" >&6; }
 
21486
        record_pa19="yes"
 
21487
fi
 
21488
 
 
21489
saved_LIBS=$LIBS
 
21490
# Only detect pa18 if pa19 is not found (pa19 is detected as pa18 else)
 
21491
if test $record_pa19 = no ; then
 
21492
        { echo "$as_me:$LINENO: checking for Pa_Initialize in -lportaudio" >&5
 
21493
echo $ECHO_N "checking for Pa_Initialize in -lportaudio... $ECHO_C" >&6; }
 
21494
if test "${ac_cv_lib_portaudio_Pa_Initialize+set}" = set; then
 
21495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21496
else
 
21497
  ac_check_lib_save_LIBS=$LIBS
 
21498
LIBS="-lportaudio  $LIBS"
 
21499
cat >conftest.$ac_ext <<_ACEOF
 
21500
/* confdefs.h.  */
 
21501
_ACEOF
 
21502
cat confdefs.h >>conftest.$ac_ext
 
21503
cat >>conftest.$ac_ext <<_ACEOF
 
21504
/* end confdefs.h.  */
 
21505
 
 
21506
/* Override any GCC internal prototype to avoid an error.
 
21507
   Use char because int might match the return type of a GCC
 
21508
   builtin and then its argument prototype would still apply.  */
 
21509
#ifdef __cplusplus
 
21510
extern "C"
 
21511
#endif
 
21512
char Pa_Initialize ();
 
21513
int
 
21514
main ()
 
21515
{
 
21516
return Pa_Initialize ();
 
21517
  ;
 
21518
  return 0;
 
21519
}
 
21520
_ACEOF
 
21521
rm -f conftest.$ac_objext conftest$ac_exeext
 
21522
if { (ac_try="$ac_link"
 
21523
case "(($ac_try" in
 
21524
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21525
  *) ac_try_echo=$ac_try;;
 
21526
esac
 
21527
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21528
  (eval "$ac_link") 2>conftest.er1
 
21529
  ac_status=$?
 
21530
  grep -v '^ *+' conftest.er1 >conftest.err
 
21531
  rm -f conftest.er1
 
21532
  cat conftest.err >&5
 
21533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21534
  (exit $ac_status); } && {
 
21535
         test -z "$ac_c_werror_flag" ||
 
21536
         test ! -s conftest.err
 
21537
       } && test -s conftest$ac_exeext &&
 
21538
       $as_test_x conftest$ac_exeext; then
 
21539
  ac_cv_lib_portaudio_Pa_Initialize=yes
 
21540
else
 
21541
  echo "$as_me: failed program was:" >&5
 
21542
sed 's/^/| /' conftest.$ac_ext >&5
 
21543
 
 
21544
        ac_cv_lib_portaudio_Pa_Initialize=no
 
21545
fi
 
21546
 
 
21547
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21548
      conftest$ac_exeext conftest.$ac_ext
 
21549
LIBS=$ac_check_lib_save_LIBS
 
21550
fi
 
21551
{ echo "$as_me:$LINENO: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
 
21552
echo "${ECHO_T}$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
 
21553
if test $ac_cv_lib_portaudio_Pa_Initialize = yes; then
 
21554
  record_pa18="yes"
 
21555
else
 
21556
  record_pa18="no"
 
21557
fi
 
21558
 
 
21559
else
 
21560
        record_pa18="no"
 
21561
fi
 
21562
 
6345
21563
{ echo "$as_me:$LINENO: checking for IMG_LoadPNG_RW in -lSDL_image" >&5
6346
21564
echo $ECHO_N "checking for IMG_LoadPNG_RW in -lSDL_image... $ECHO_C" >&6; }
6347
21565
if test "${ac_cv_lib_SDL_image_IMG_LoadPNG_RW+set}" = set; then
6558
21776
  smpeg_detected="no"
6559
21777
fi
6560
21778
 
 
21779
LIBS=$saved_LIBS
6561
21780
 
6562
21781
 
6563
21782
# standard headers are installed, we include them in the config.h file
6564
21783
 
6565
 
ac_includes_default=$(cat <<USNG_EOF
6566
 
$ac_includes_default
6567
 
/* libstd++ headers */
6568
 
#include <algorithm>
6569
 
#include <string>
6570
 
#include <vector>
6571
 
#include <iostream>
6572
 
/* libc headers */
6573
 
#include <getopt.h>
6574
 
#include <fcntl.h>
6575
 
#include <math.h>
6576
 
#include <stdlib.h>
6577
 
#include <stdio.h>
6578
 
#include <dirent.h>
6579
 
#include <sys/ioctl.h>
6580
 
#include <sys/types.h>
6581
 
#include <sys/stat.h>
6582
 
USNG_EOF)
6583
 
 
6584
21784
# Do things for cairo
6585
21785
CAIRO_FLAGS=`pkg-config --cflags cairo`
6586
21786
CAIRO_LIBS=`pkg-config --libs cairo`
6607
21807
# Do things for libsdl
6608
21808
SDL_FLAGS=`$SDLCONFIG --cflags`
6609
21809
SDL_LIBS=`$SDLCONFIG --libs`
 
21810
SDL_LIBS="$SDL_LIBS -lSDL_image -lSDL_gfx"
6610
21811
ac_includes_default=$(cat <<USNG_EOF
6611
21812
$ac_includes_default
6612
21813
/* libsdl headers */
6619
21820
 
6620
21821
 
6621
21822
 
6622
 
# Do things for fftw3f
6623
 
FFT_FLAGS=`pkg-config --cflags fftw3f`
6624
 
FFT_LIBS=`pkg-config --libs fftw3f`
6625
 
ac_includes_default=$(cat <<USNG_EOF
6626
 
$ac_includes_default
6627
 
/* libsdl headers */
6628
 
#include <fftw3.h>
6629
 
USNG_EOF)
6630
 
 
6631
 
 
6632
 
 
6633
 
# Do things for alsa
6634
 
ALSA_FLAGS=`pkg-config --cflags alsa`
6635
 
ALSA_LIBS=`pkg-config --libs alsa`
6636
 
ac_includes_default=$(cat <<USNG_EOF
6637
 
$ac_includes_default
6638
 
/* alsa headers */
6639
 
#include <alsa/asoundlib.h>
6640
 
USNG_EOF)
 
21823
# Do things for pangocairo
 
21824
PANGOCAIRO_FLAGS=`pkg-config --cflags pangocairo`
 
21825
PANGOCAIRO_LIBS=`pkg-config --libs pangocairo`
 
21826
ac_includes_default=$(cat <<USNG_EOF
 
21827
$ac_includes_default
 
21828
/* pango cairo headers */
 
21829
#include <pango/pangocairo.h>
 
21830
USNG_EOF)
 
21831
 
 
21832
 
 
21833
 
 
21834
# Configure alsa record backend
 
21835
if test $record_alsa = yes ; then
 
21836
        if test $enable_record_alsa = no ; then
 
21837
                RECORD_ALSA_FLAGS=""
 
21838
                RECORD_ALSA_LIBS=""
 
21839
                 if false; then
 
21840
  RECORD_ALSA_TRUE=
 
21841
  RECORD_ALSA_FALSE='#'
 
21842
else
 
21843
  RECORD_ALSA_TRUE='#'
 
21844
  RECORD_ALSA_FALSE=
 
21845
fi
 
21846
 
 
21847
        else
 
21848
                RECORD_ALSA_FLAGS=`pkg-config --cflags alsa`
 
21849
                RECORD_ALSA_LIBS=`pkg-config --libs alsa`
 
21850
                 if true; then
 
21851
  RECORD_ALSA_TRUE=
 
21852
  RECORD_ALSA_FALSE='#'
 
21853
else
 
21854
  RECORD_ALSA_TRUE='#'
 
21855
  RECORD_ALSA_FALSE=
 
21856
fi
 
21857
 
 
21858
        fi
 
21859
else
 
21860
        if test $enable_record_alsa = yes ; then
 
21861
                { { echo "$as_me:$LINENO: error: Cannot find alsa" >&5
 
21862
echo "$as_me: error: Cannot find alsa" >&2;}
 
21863
   { (exit but explicitly required); exit but explicitly required; }; }
 
21864
        fi
 
21865
        RECORD_ALSA_FLAGS=""
 
21866
        RECORD_ALSA_LIBS=""
 
21867
         if false; then
 
21868
  RECORD_ALSA_TRUE=
 
21869
  RECORD_ALSA_FALSE='#'
 
21870
else
 
21871
  RECORD_ALSA_TRUE='#'
 
21872
  RECORD_ALSA_FALSE=
 
21873
fi
 
21874
 
 
21875
fi
 
21876
 
 
21877
 
 
21878
 
 
21879
# Configure portaudio record backend
 
21880
if test $record_pa18 = no -a $record_pa19 = no -a $enable_record_pa = yes ; then
 
21881
        { { echo "$as_me:$LINENO: error: Cannot find PortAudio (V18 or V19)" >&5
 
21882
echo "$as_me: error: Cannot find PortAudio (V18 or V19)" >&2;}
 
21883
   { (exit but explicitly required); exit but explicitly required; }; }
 
21884
fi
 
21885
if test $record_pa18 = yes ; then
 
21886
        if test $enable_record_pa18 = no ; then
 
21887
                RECORD_PA18_FLAGS=""
 
21888
                RECORD_PA18_LIBS=""
 
21889
                 if false; then
 
21890
  RECORD_PA18_TRUE=
 
21891
  RECORD_PA18_FALSE='#'
 
21892
else
 
21893
  RECORD_PA18_TRUE='#'
 
21894
  RECORD_PA18_FALSE=
 
21895
fi
 
21896
 
 
21897
        else
 
21898
                RECORD_PA18_FLAGS=""
 
21899
                RECORD_PA18_LIBS="-lportaudio"
 
21900
                 if true; then
 
21901
  RECORD_PA18_TRUE=
 
21902
  RECORD_PA18_FALSE='#'
 
21903
else
 
21904
  RECORD_PA18_TRUE='#'
 
21905
  RECORD_PA18_FALSE=
 
21906
fi
 
21907
 
 
21908
        fi
 
21909
else
 
21910
        if test $enable_record_pa18 = yes ; then
 
21911
                { { echo "$as_me:$LINENO: error: Cannot find PortAudioV18" >&5
 
21912
echo "$as_me: error: Cannot find PortAudioV18" >&2;}
 
21913
   { (exit but explicitly required); exit but explicitly required; }; }
 
21914
        fi
 
21915
        RECORD_PA18_FLAGS=""
 
21916
        RECORD_PA18_LIBS=""
 
21917
         if false; then
 
21918
  RECORD_PA18_TRUE=
 
21919
  RECORD_PA18_FALSE='#'
 
21920
else
 
21921
  RECORD_PA18_TRUE='#'
 
21922
  RECORD_PA18_FALSE=
 
21923
fi
 
21924
 
 
21925
fi
 
21926
 
 
21927
 
 
21928
if test $record_pa19 = yes ; then
 
21929
        if test $enable_record_pa19 = no ; then
 
21930
                RECORD_PA19_FLAGS=""
 
21931
                RECORD_PA19_LIBS=""
 
21932
                 if false; then
 
21933
  RECORD_PA19_TRUE=
 
21934
  RECORD_PA19_FALSE='#'
 
21935
else
 
21936
  RECORD_PA19_TRUE='#'
 
21937
  RECORD_PA19_FALSE=
 
21938
fi
 
21939
 
 
21940
        else
 
21941
                RECORD_PA19_FLAGS=`pkg-config --cflags portaudio-2.0`
 
21942
                RECORD_PA19_LIBS=`pkg-config --libs portaudio-2.0`
 
21943
                 if true; then
 
21944
  RECORD_PA19_TRUE=
 
21945
  RECORD_PA19_FALSE='#'
 
21946
else
 
21947
  RECORD_PA19_TRUE='#'
 
21948
  RECORD_PA19_FALSE=
 
21949
fi
 
21950
 
 
21951
        fi
 
21952
else
 
21953
        if test $enable_record_pa19 = yes ; then
 
21954
                { { echo "$as_me:$LINENO: error: Cannot find PortAudioV19" >&5
 
21955
echo "$as_me: error: Cannot find PortAudioV19" >&2;}
 
21956
   { (exit but explicitly required); exit but explicitly required; }; }
 
21957
        fi
 
21958
        RECORD_PA19_FLAGS=""
 
21959
        RECORD_PA19_LIBS=""
 
21960
         if false; then
 
21961
  RECORD_PA19_TRUE=
 
21962
  RECORD_PA19_FALSE='#'
 
21963
else
 
21964
  RECORD_PA19_TRUE='#'
 
21965
  RECORD_PA19_FALSE=
 
21966
fi
 
21967
 
 
21968
fi
 
21969
 
 
21970
 
 
21971
 
 
21972
 
 
21973
# Configure gstreamer record backend
 
21974
if test $gst_detected = yes ; then
 
21975
        if test $enable_record_gst = no ; then
 
21976
                RECORD_GST_FLAGS=""
 
21977
                RECORD_GST_LIBS=""
 
21978
                 if false; then
 
21979
  RECORD_GST_TRUE=
 
21980
  RECORD_GST_FALSE='#'
 
21981
else
 
21982
  RECORD_GST_TRUE='#'
 
21983
  RECORD_GST_FALSE=
 
21984
fi
 
21985
 
 
21986
        else
 
21987
                RECORD_GST_FLAGS=`pkg-config --cflags gstreamer-0.10`
 
21988
                RECORD_GST_LIBS=`pkg-config --libs gstreamer-0.10`
 
21989
                 if true; then
 
21990
  RECORD_GST_TRUE=
 
21991
  RECORD_GST_FALSE='#'
 
21992
else
 
21993
  RECORD_GST_TRUE='#'
 
21994
  RECORD_GST_FALSE=
 
21995
fi
 
21996
 
 
21997
        fi
 
21998
else
 
21999
        if test $enable_record_gst = yes ; then
 
22000
                { { echo "$as_me:$LINENO: error: Cannot find GStreamer" >&5
 
22001
echo "$as_me: error: Cannot find GStreamer" >&2;}
 
22002
   { (exit but explicitly required); exit but explicitly required; }; }
 
22003
        fi
 
22004
        RECORD_GST_FLAGS=""
 
22005
        RECORD_GST_LIBS=""
 
22006
         if false; then
 
22007
  RECORD_GST_TRUE=
 
22008
  RECORD_GST_FALSE='#'
 
22009
else
 
22010
  RECORD_GST_TRUE='#'
 
22011
  RECORD_GST_FALSE=
 
22012
fi
 
22013
 
 
22014
fi
6641
22015
 
6642
22016
 
6643
22017
 
6850
22224
 
6851
22225
 
6852
22226
 
6853
 
ac_config_files="$ac_config_files Makefile data/Makefile docs/Makefile src/Makefile themes/Makefile"
 
22227
ac_config_files="$ac_config_files Makefile audio/Makefile data/Makefile docs/Makefile src/Makefile themes/Makefile"
6854
22228
 
6855
22229
cat >confcache <<\_ACEOF
6856
22230
# This file is a shell script that caches the results of configure
6955
22329
Usually this means the macro was only invoked conditionally." >&2;}
6956
22330
   { (exit 1); exit 1; }; }
6957
22331
fi
 
22332
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22333
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22334
Usually this means the macro was only invoked conditionally." >&5
 
22335
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22336
Usually this means the macro was only invoked conditionally." >&2;}
 
22337
   { (exit 1); exit 1; }; }
 
22338
fi
6958
22339
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6959
22340
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6960
22341
Usually this means the macro was only invoked conditionally." >&5
6962
22343
Usually this means the macro was only invoked conditionally." >&2;}
6963
22344
   { (exit 1); exit 1; }; }
6964
22345
fi
6965
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6966
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6967
 
Usually this means the macro was only invoked conditionally." >&5
6968
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22346
if test -z "${RECORD_ALSA_TRUE}" && test -z "${RECORD_ALSA_FALSE}"; then
 
22347
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_ALSA\" was never defined.
 
22348
Usually this means the macro was only invoked conditionally." >&5
 
22349
echo "$as_me: error: conditional \"RECORD_ALSA\" was never defined.
 
22350
Usually this means the macro was only invoked conditionally." >&2;}
 
22351
   { (exit 1); exit 1; }; }
 
22352
fi
 
22353
if test -z "${RECORD_ALSA_TRUE}" && test -z "${RECORD_ALSA_FALSE}"; then
 
22354
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_ALSA\" was never defined.
 
22355
Usually this means the macro was only invoked conditionally." >&5
 
22356
echo "$as_me: error: conditional \"RECORD_ALSA\" was never defined.
 
22357
Usually this means the macro was only invoked conditionally." >&2;}
 
22358
   { (exit 1); exit 1; }; }
 
22359
fi
 
22360
if test -z "${RECORD_ALSA_TRUE}" && test -z "${RECORD_ALSA_FALSE}"; then
 
22361
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_ALSA\" was never defined.
 
22362
Usually this means the macro was only invoked conditionally." >&5
 
22363
echo "$as_me: error: conditional \"RECORD_ALSA\" was never defined.
 
22364
Usually this means the macro was only invoked conditionally." >&2;}
 
22365
   { (exit 1); exit 1; }; }
 
22366
fi
 
22367
if test -z "${RECORD_PA18_TRUE}" && test -z "${RECORD_PA18_FALSE}"; then
 
22368
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_PA18\" was never defined.
 
22369
Usually this means the macro was only invoked conditionally." >&5
 
22370
echo "$as_me: error: conditional \"RECORD_PA18\" was never defined.
 
22371
Usually this means the macro was only invoked conditionally." >&2;}
 
22372
   { (exit 1); exit 1; }; }
 
22373
fi
 
22374
if test -z "${RECORD_PA18_TRUE}" && test -z "${RECORD_PA18_FALSE}"; then
 
22375
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_PA18\" was never defined.
 
22376
Usually this means the macro was only invoked conditionally." >&5
 
22377
echo "$as_me: error: conditional \"RECORD_PA18\" was never defined.
 
22378
Usually this means the macro was only invoked conditionally." >&2;}
 
22379
   { (exit 1); exit 1; }; }
 
22380
fi
 
22381
if test -z "${RECORD_PA18_TRUE}" && test -z "${RECORD_PA18_FALSE}"; then
 
22382
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_PA18\" was never defined.
 
22383
Usually this means the macro was only invoked conditionally." >&5
 
22384
echo "$as_me: error: conditional \"RECORD_PA18\" was never defined.
 
22385
Usually this means the macro was only invoked conditionally." >&2;}
 
22386
   { (exit 1); exit 1; }; }
 
22387
fi
 
22388
if test -z "${RECORD_PA19_TRUE}" && test -z "${RECORD_PA19_FALSE}"; then
 
22389
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_PA19\" was never defined.
 
22390
Usually this means the macro was only invoked conditionally." >&5
 
22391
echo "$as_me: error: conditional \"RECORD_PA19\" was never defined.
 
22392
Usually this means the macro was only invoked conditionally." >&2;}
 
22393
   { (exit 1); exit 1; }; }
 
22394
fi
 
22395
if test -z "${RECORD_PA19_TRUE}" && test -z "${RECORD_PA19_FALSE}"; then
 
22396
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_PA19\" was never defined.
 
22397
Usually this means the macro was only invoked conditionally." >&5
 
22398
echo "$as_me: error: conditional \"RECORD_PA19\" was never defined.
 
22399
Usually this means the macro was only invoked conditionally." >&2;}
 
22400
   { (exit 1); exit 1; }; }
 
22401
fi
 
22402
if test -z "${RECORD_PA19_TRUE}" && test -z "${RECORD_PA19_FALSE}"; then
 
22403
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_PA19\" was never defined.
 
22404
Usually this means the macro was only invoked conditionally." >&5
 
22405
echo "$as_me: error: conditional \"RECORD_PA19\" was never defined.
 
22406
Usually this means the macro was only invoked conditionally." >&2;}
 
22407
   { (exit 1); exit 1; }; }
 
22408
fi
 
22409
if test -z "${RECORD_GST_TRUE}" && test -z "${RECORD_GST_FALSE}"; then
 
22410
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_GST\" was never defined.
 
22411
Usually this means the macro was only invoked conditionally." >&5
 
22412
echo "$as_me: error: conditional \"RECORD_GST\" was never defined.
 
22413
Usually this means the macro was only invoked conditionally." >&2;}
 
22414
   { (exit 1); exit 1; }; }
 
22415
fi
 
22416
if test -z "${RECORD_GST_TRUE}" && test -z "${RECORD_GST_FALSE}"; then
 
22417
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_GST\" was never defined.
 
22418
Usually this means the macro was only invoked conditionally." >&5
 
22419
echo "$as_me: error: conditional \"RECORD_GST\" was never defined.
 
22420
Usually this means the macro was only invoked conditionally." >&2;}
 
22421
   { (exit 1); exit 1; }; }
 
22422
fi
 
22423
if test -z "${RECORD_GST_TRUE}" && test -z "${RECORD_GST_FALSE}"; then
 
22424
  { { echo "$as_me:$LINENO: error: conditional \"RECORD_GST\" was never defined.
 
22425
Usually this means the macro was only invoked conditionally." >&5
 
22426
echo "$as_me: error: conditional \"RECORD_GST\" was never defined.
6969
22427
Usually this means the macro was only invoked conditionally." >&2;}
6970
22428
   { (exit 1); exit 1; }; }
6971
22429
fi
7444
22902
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in:config.h.incl" ;;
7445
22903
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7446
22904
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22905
    "audio/Makefile") CONFIG_FILES="$CONFIG_FILES audio/Makefile" ;;
7447
22906
    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
7448
22907
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
7449
22908
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7569
23028
AMTAR!$AMTAR$ac_delim
7570
23029
am__tar!$am__tar$ac_delim
7571
23030
am__untar!$am__untar$ac_delim
7572
 
CC!$CC$ac_delim
7573
 
CFLAGS!$CFLAGS$ac_delim
 
23031
CXX!$CXX$ac_delim
 
23032
CXXFLAGS!$CXXFLAGS$ac_delim
7574
23033
LDFLAGS!$LDFLAGS$ac_delim
7575
23034
CPPFLAGS!$CPPFLAGS$ac_delim
7576
 
ac_ct_CC!$ac_ct_CC$ac_delim
 
23035
ac_ct_CXX!$ac_ct_CXX$ac_delim
7577
23036
EXEEXT!$EXEEXT$ac_delim
7578
23037
OBJEXT!$OBJEXT$ac_delim
7579
23038
DEPDIR!$DEPDIR$ac_delim
7582
23041
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7583
23042
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7584
23043
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
23044
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
23045
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
23046
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
23047
build!$build$ac_delim
 
23048
build_cpu!$build_cpu$ac_delim
 
23049
build_vendor!$build_vendor$ac_delim
 
23050
build_os!$build_os$ac_delim
 
23051
host!$host$ac_delim
 
23052
host_cpu!$host_cpu$ac_delim
 
23053
host_vendor!$host_vendor$ac_delim
 
23054
host_os!$host_os$ac_delim
 
23055
CC!$CC$ac_delim
 
23056
CFLAGS!$CFLAGS$ac_delim
 
23057
ac_ct_CC!$ac_ct_CC$ac_delim
7585
23058
CCDEPMODE!$CCDEPMODE$ac_delim
7586
23059
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7587
23060
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7588
 
CXX!$CXX$ac_delim
7589
 
CXXFLAGS!$CXXFLAGS$ac_delim
7590
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
7591
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
7592
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
7593
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
23061
SED!$SED$ac_delim
 
23062
GREP!$GREP$ac_delim
 
23063
EGREP!$EGREP$ac_delim
 
23064
LN_S!$LN_S$ac_delim
 
23065
ECHO!$ECHO$ac_delim
 
23066
AR!$AR$ac_delim
7594
23067
RANLIB!$RANLIB$ac_delim
7595
 
HELP2MAN!$HELP2MAN$ac_delim
 
23068
CPP!$CPP$ac_delim
 
23069
_ACEOF
 
23070
 
 
23071
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
23072
    break
 
23073
  elif $ac_last_try; then
 
23074
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23075
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23076
   { (exit 1); exit 1; }; }
 
23077
  else
 
23078
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23079
  fi
 
23080
done
 
23081
 
 
23082
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
23083
if test -n "$ac_eof"; then
 
23084
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
23085
  ac_eof=`expr $ac_eof + 1`
 
23086
fi
 
23087
 
 
23088
cat >>$CONFIG_STATUS <<_ACEOF
 
23089
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
23090
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23091
_ACEOF
 
23092
sed '
 
23093
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
23094
s/^/s,@/; s/!/@,|#_!!_#|/
 
23095
:n
 
23096
t n
 
23097
s/'"$ac_delim"'$/,g/; t
 
23098
s/$/\\/; p
 
23099
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
23100
' >>$CONFIG_STATUS <conf$$subs.sed
 
23101
rm -f conf$$subs.sed
 
23102
cat >>$CONFIG_STATUS <<_ACEOF
 
23103
CEOF$ac_eof
 
23104
_ACEOF
 
23105
 
 
23106
 
 
23107
ac_delim='%!_!# '
 
23108
for ac_last_try in false false false false false :; do
 
23109
  cat >conf$$subs.sed <<_ACEOF
 
23110
CXXCPP!$CXXCPP$ac_delim
 
23111
F77!$F77$ac_delim
 
23112
FFLAGS!$FFLAGS$ac_delim
 
23113
ac_ct_F77!$ac_ct_F77$ac_delim
 
23114
LIBTOOL!$LIBTOOL$ac_delim
7596
23115
THEMES_DIR!$THEMES_DIR$ac_delim
7597
23116
DATA_DIR!$DATA_DIR$ac_delim
7598
 
CPP!$CPP$ac_delim
7599
 
GREP!$GREP$ac_delim
7600
 
EGREP!$EGREP$ac_delim
7601
 
CXXCPP!$CXXCPP$ac_delim
7602
23117
PKG_CONFIG!$PKG_CONFIG$ac_delim
7603
23118
cairo_CFLAGS!$cairo_CFLAGS$ac_delim
7604
23119
cairo_LIBS!$cairo_LIBS$ac_delim
7605
23120
libxml_CFLAGS!$libxml_CFLAGS$ac_delim
7606
23121
libxml_LIBS!$libxml_LIBS$ac_delim
7607
 
fftw3f_CFLAGS!$fftw3f_CFLAGS$ac_delim
7608
 
fftw3f_LIBS!$fftw3f_LIBS$ac_delim
7609
 
alsa_CFLAGS!$alsa_CFLAGS$ac_delim
7610
 
_ACEOF
7611
 
 
7612
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7613
 
    break
7614
 
  elif $ac_last_try; then
7615
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7616
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7617
 
   { (exit 1); exit 1; }; }
7618
 
  else
7619
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7620
 
  fi
7621
 
done
7622
 
 
7623
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7624
 
if test -n "$ac_eof"; then
7625
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7626
 
  ac_eof=`expr $ac_eof + 1`
7627
 
fi
7628
 
 
7629
 
cat >>$CONFIG_STATUS <<_ACEOF
7630
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7631
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7632
 
_ACEOF
7633
 
sed '
7634
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7635
 
s/^/s,@/; s/!/@,|#_!!_#|/
7636
 
:n
7637
 
t n
7638
 
s/'"$ac_delim"'$/,g/; t
7639
 
s/$/\\/; p
7640
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7641
 
' >>$CONFIG_STATUS <conf$$subs.sed
7642
 
rm -f conf$$subs.sed
7643
 
cat >>$CONFIG_STATUS <<_ACEOF
7644
 
CEOF$ac_eof
7645
 
_ACEOF
7646
 
 
7647
 
 
7648
 
ac_delim='%!_!# '
7649
 
for ac_last_try in false false false false false :; do
7650
 
  cat >conf$$subs.sed <<_ACEOF
7651
 
alsa_LIBS!$alsa_LIBS$ac_delim
 
23122
pangocairo_CFLAGS!$pangocairo_CFLAGS$ac_delim
 
23123
pangocairo_LIBS!$pangocairo_LIBS$ac_delim
7652
23124
librsvg_CFLAGS!$librsvg_CFLAGS$ac_delim
7653
23125
librsvg_LIBS!$librsvg_LIBS$ac_delim
7654
23126
cairosvg_CFLAGS!$cairosvg_CFLAGS$ac_delim
7658
23130
gstreamer_CFLAGS!$gstreamer_CFLAGS$ac_delim
7659
23131
gstreamer_LIBS!$gstreamer_LIBS$ac_delim
7660
23132
SDLCONFIG!$SDLCONFIG$ac_delim
 
23133
alsa_CFLAGS!$alsa_CFLAGS$ac_delim
 
23134
alsa_LIBS!$alsa_LIBS$ac_delim
 
23135
portAudioV19_CFLAGS!$portAudioV19_CFLAGS$ac_delim
 
23136
portAudioV19_LIBS!$portAudioV19_LIBS$ac_delim
7661
23137
CAIRO_FLAGS!$CAIRO_FLAGS$ac_delim
7662
23138
CAIRO_LIBS!$CAIRO_LIBS$ac_delim
7663
23139
XML_FLAGS!$XML_FLAGS$ac_delim
7664
23140
XML_LIBS!$XML_LIBS$ac_delim
7665
23141
SDL_FLAGS!$SDL_FLAGS$ac_delim
7666
23142
SDL_LIBS!$SDL_LIBS$ac_delim
7667
 
FFT_FLAGS!$FFT_FLAGS$ac_delim
7668
 
FFT_LIBS!$FFT_LIBS$ac_delim
7669
 
ALSA_FLAGS!$ALSA_FLAGS$ac_delim
7670
 
ALSA_LIBS!$ALSA_LIBS$ac_delim
 
23143
PANGOCAIRO_FLAGS!$PANGOCAIRO_FLAGS$ac_delim
 
23144
PANGOCAIRO_LIBS!$PANGOCAIRO_LIBS$ac_delim
 
23145
RECORD_ALSA_TRUE!$RECORD_ALSA_TRUE$ac_delim
 
23146
RECORD_ALSA_FALSE!$RECORD_ALSA_FALSE$ac_delim
 
23147
RECORD_ALSA_FLAGS!$RECORD_ALSA_FLAGS$ac_delim
 
23148
RECORD_ALSA_LIBS!$RECORD_ALSA_LIBS$ac_delim
 
23149
RECORD_PA18_TRUE!$RECORD_PA18_TRUE$ac_delim
 
23150
RECORD_PA18_FALSE!$RECORD_PA18_FALSE$ac_delim
 
23151
RECORD_PA18_FLAGS!$RECORD_PA18_FLAGS$ac_delim
 
23152
RECORD_PA18_LIBS!$RECORD_PA18_LIBS$ac_delim
 
23153
RECORD_PA19_TRUE!$RECORD_PA19_TRUE$ac_delim
 
23154
RECORD_PA19_FALSE!$RECORD_PA19_FALSE$ac_delim
 
23155
RECORD_PA19_FLAGS!$RECORD_PA19_FLAGS$ac_delim
 
23156
RECORD_PA19_LIBS!$RECORD_PA19_LIBS$ac_delim
 
23157
RECORD_GST_TRUE!$RECORD_GST_TRUE$ac_delim
 
23158
RECORD_GST_FALSE!$RECORD_GST_FALSE$ac_delim
 
23159
RECORD_GST_FLAGS!$RECORD_GST_FLAGS$ac_delim
 
23160
RECORD_GST_LIBS!$RECORD_GST_LIBS$ac_delim
7671
23161
VIDEO_FLAGS!$VIDEO_FLAGS$ac_delim
7672
23162
VIDEO_LIBS!$VIDEO_LIBS$ac_delim
7673
23163
AUDIO_FLAGS!$AUDIO_FLAGS$ac_delim
7679
23169
LTLIBOBJS!$LTLIBOBJS$ac_delim
7680
23170
_ACEOF
7681
23171
 
7682
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
 
23172
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
7683
23173
    break
7684
23174
  elif $ac_last_try; then
7685
23175
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5