~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4
 
# Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
13
13
 
14
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
15
 
16
 
# serial 47 AC_PROG_LIBTOOL
17
 
# Debian $Rev: 203 $
 
16
# serial 48 AC_PROG_LIBTOOL
18
17
 
19
18
 
20
19
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
124
123
 
125
124
# Sed substitution that helps us do robust quoting.  It backslashifies
126
125
# metacharacters that are still active within double-quoted strings.
127
 
Xsed='sed -e s/^X//'
 
126
Xsed='sed -e 1s/^X//'
128
127
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
129
128
 
130
129
# Same as above, but do not quote variable references.
144
143
default_ofile=libtool
145
144
can_build_shared=yes
146
145
 
147
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
146
# All known linkers require a `.a' archive for static linking (except MSVC,
148
147
# which needs '.lib').
149
148
libext=a
150
149
ltmain="$ac_aux_dir/ltmain.sh"
164
163
test -z "$AS" && AS=as
165
164
test -z "$CC" && CC=cc
166
165
test -z "$LTCC" && LTCC=$CC
 
166
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
167
167
test -z "$DLLTOOL" && DLLTOOL=dlltool
168
168
test -z "$LD" && LD=ld
169
169
test -z "$LN_S" && LN_S="ln -s"
183
183
if test -n "$RANLIB"; then
184
184
  case $host_os in
185
185
  openbsd*)
186
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
186
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
187
187
    ;;
188
188
  *)
189
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
189
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
190
190
    ;;
191
191
  esac
192
192
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
193
193
fi
194
194
 
 
195
_LT_CC_BASENAME([$compiler])
 
196
 
195
197
# Only perform the check for file, if the check method requires it
196
198
case $deplibs_check_method in
197
199
file_magic*)
232
234
# If no C compiler was specified, use CC.
233
235
LTCC=${LTCC-"$CC"}
234
236
 
 
237
# If no C compiler flags were specified, use CFLAGS.
 
238
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
239
 
235
240
# Allow CC to be a program name with arguments.
236
241
compiler=$CC
237
242
])# _LT_AC_SYS_COMPILER
238
243
 
239
244
 
 
245
# _LT_CC_BASENAME(CC)
 
246
# -------------------
 
247
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
248
AC_DEFUN([_LT_CC_BASENAME],
 
249
[for cc_temp in $1""; do
 
250
  case $cc_temp in
 
251
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
252
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
253
    \-*) ;;
 
254
    *) break;;
 
255
  esac
 
256
done
 
257
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
258
])
 
259
 
 
260
 
 
261
# _LT_COMPILER_BOILERPLATE
 
262
# ------------------------
 
263
# Check for compiler boilerplate output or warnings with
 
264
# the simple compiler test code.
 
265
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
266
[ac_outfile=conftest.$ac_objext
 
267
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
268
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
269
_lt_compiler_boilerplate=`cat conftest.err`
 
270
$rm conftest*
 
271
])# _LT_COMPILER_BOILERPLATE
 
272
 
 
273
 
 
274
# _LT_LINKER_BOILERPLATE
 
275
# ----------------------
 
276
# Check for linker boilerplate output or warnings with
 
277
# the simple link test code.
 
278
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
279
[ac_outfile=conftest.$ac_objext
 
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
281
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
282
_lt_linker_boilerplate=`cat conftest.err`
 
283
$rm conftest*
 
284
])# _LT_LINKER_BOILERPLATE
 
285
 
 
286
 
240
287
# _LT_AC_SYS_LIBPATH_AIX
241
288
# ----------------------
242
289
# Links a minimal program and checks the executable
309
356
 
310
357
# The HP-UX ksh and POSIX shell print the target directory to stdout
311
358
# if CDPATH is set.
312
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
359
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
313
360
 
314
361
if test -z "$ECHO"; then
315
362
if test "X${echo_test_string+set}" != Xset; then
316
363
# find a string as large as possible, as long as the shell can cope with it
317
364
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
318
365
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
319
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
320
 
       echo_test_string="`eval $cmd`" &&
 
366
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
367
       echo_test_string=`eval $cmd` &&
321
368
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
322
369
    then
323
370
      break
486
533
  # Find out which ABI we are using.
487
534
  echo 'int i;' > conftest.$ac_ext
488
535
  if AC_TRY_EVAL(ac_compile); then
489
 
    case "`/usr/bin/file conftest.o`" in
 
536
    case `/usr/bin/file conftest.o` in
490
537
    *32-bit*)
491
538
      case $host in
492
539
        x86_64-*linux*)
537
584
    CFLAGS="$SAVE_CFLAGS"
538
585
  fi
539
586
  ;;
 
587
sparc*-*solaris*)
 
588
  # Find out which ABI we are using.
 
589
  echo 'int i;' > conftest.$ac_ext
 
590
  if AC_TRY_EVAL(ac_compile); then
 
591
    case `/usr/bin/file conftest.o` in
 
592
    *64-bit*)
 
593
      case $lt_cv_prog_gnu_ld in
 
594
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
595
      *)    LD="${LD-ld} -64" ;;
 
596
      esac
 
597
      ;;
 
598
    esac
 
599
  fi
 
600
  rm -rf conftest*
 
601
  ;;
 
602
 
540
603
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
541
604
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
542
605
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
568
631
   # with a dollar sign (not a hyphen), so the echo should work correctly.
569
632
   # The option is referenced via a variable to avoid confusing sed.
570
633
   lt_compile=`echo "$ac_compile" | $SED \
571
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
634
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
572
635
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
573
636
   -e 's:$: $lt_compiler_flag:'`
574
637
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
578
641
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
579
642
   if (exit $ac_status) && test -s "$ac_outfile"; then
580
643
     # The compiler can only warn and ignore the option if not recognized
581
 
     # So say no if there are warnings
582
 
     if test ! -s conftest.err; then
 
644
     # So say no if there are warnings other than the usual output.
 
645
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
646
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
647
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
583
648
       $2=yes
584
649
     fi
585
650
   fi
605
670
   LDFLAGS="$LDFLAGS $3"
606
671
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
607
672
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
608
 
     # The compiler can only warn and ignore the option if not recognized
 
673
     # The linker can only warn and ignore the option if not recognized
609
674
     # So say no if there are warnings
610
675
     if test -s conftest.err; then
611
676
       # Append any errors to the config.log.
612
677
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
678
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
679
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
680
       if diff conftest.exp conftest.er2 >/dev/null; then
 
681
         $2=yes
 
682
       fi
613
683
     else
614
684
       $2=yes
615
685
     fi
668
738
    lt_cv_sys_max_cmd_len=8192;
669
739
    ;;
670
740
 
671
 
 *)
 
741
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
742
    # This has been around since 386BSD, at least.  Likely further.
 
743
    if test -x /sbin/sysctl; then
 
744
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
745
    elif test -x /usr/sbin/sysctl; then
 
746
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
747
    else
 
748
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
749
    fi
 
750
    # And add a safety zone
 
751
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
752
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
753
    ;;
 
754
 
 
755
  interix*)
 
756
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
757
    lt_cv_sys_max_cmd_len=196608
 
758
    ;;
 
759
 
 
760
  osf*)
 
761
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
762
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
763
    # nice to cause kernel panics so lets avoid the loop below.
 
764
    # First set a reasonable default.
 
765
    lt_cv_sys_max_cmd_len=16384
 
766
    #
 
767
    if test -x /sbin/sysconfig; then
 
768
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
769
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
770
      esac
 
771
    fi
 
772
    ;;
 
773
  sco3.2v5*)
 
774
    lt_cv_sys_max_cmd_len=102400
 
775
    ;;
 
776
  sysv5* | sco5v6* | sysv4.2uw2*)
 
777
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
778
    if test -n "$kargmax"; then
 
779
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
780
    else
 
781
      lt_cv_sys_max_cmd_len=32768
 
782
    fi
 
783
    ;;
 
784
  *)
672
785
    # If test is not a shell built-in, we'll probably end up computing a
673
786
    # maximum length that is only half of the actual maximum length, but
674
787
    # we can't tell.
675
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
788
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
789
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
676
790
               = "XX$teststring") >/dev/null 2>&1 &&
677
791
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
678
792
            lt_cv_sys_max_cmd_len=$new_result &&
698
812
 
699
813
 
700
814
# _LT_AC_CHECK_DLFCN
701
 
# --------------------
 
815
# ------------------
702
816
AC_DEFUN([_LT_AC_CHECK_DLFCN],
703
817
[AC_CHECK_HEADERS(dlfcn.h)dnl
704
818
])# _LT_AC_CHECK_DLFCN
706
820
 
707
821
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
708
822
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
709
 
# ------------------------------------------------------------------
 
823
# ---------------------------------------------------------------------
710
824
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
711
825
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
712
826
if test "$cross_compiling" = yes; then :
772
886
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
773
887
      /* dlclose (self); */
774
888
    }
 
889
  else
 
890
    puts (dlerror ());
775
891
 
776
892
    exit (status);
777
893
}]
778
894
EOF
779
895
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
780
 
    (./conftest; exit; ) 2>/dev/null
 
896
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
781
897
    lt_status=$?
782
898
    case x$lt_status in
783
899
      x$lt_dlno_uscore) $1 ;;
784
900
      x$lt_dlneed_uscore) $2 ;;
785
 
      x$lt_unknown|x*) $3 ;;
 
901
      x$lt_dlunknown|x*) $3 ;;
786
902
    esac
787
903
  else :
788
904
    # compilation failed
794
910
 
795
911
 
796
912
# AC_LIBTOOL_DLOPEN_SELF
797
 
# -------------------
 
913
# ----------------------
798
914
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
799
915
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
800
916
if test "x$enable_dlopen" != xyes; then
865
981
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
866
982
 
867
983
    save_LDFLAGS="$LDFLAGS"
868
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
984
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
869
985
 
870
986
    save_LIBS="$LIBS"
871
987
    LIBS="$lt_cv_dlopen_libs $LIBS"
878
994
    ])
879
995
 
880
996
    if test "x$lt_cv_dlopen_self" = xyes; then
881
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
997
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
882
998
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
883
999
          lt_cv_dlopen_self_static, [dnl
884
1000
          _LT_AC_TRY_DLOPEN_SELF(
926
1042
   # Note that $ac_compile itself does not contain backslashes and begins
927
1043
   # with a dollar sign (not a hyphen), so the echo should work correctly.
928
1044
   lt_compile=`echo "$ac_compile" | $SED \
929
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1045
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
930
1046
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
931
1047
   -e 's:$: $lt_compiler_flag:'`
932
1048
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
938
1054
   then
939
1055
     # The compiler can only warn and ignore the option if not recognized
940
1056
     # So say no if there are warnings
941
 
     if test ! -s out/conftest.err; then
 
1057
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1058
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1059
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
942
1060
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
943
1061
     fi
944
1062
   fi
945
 
   chmod u+w .
 
1063
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
946
1064
   $rm conftest*
947
1065
   # SGI C++ compiler will create directory out/ii_files/ for
948
1066
   # template instantiation
1006
1124
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1007
1125
_LT_AC_TAGVAR(hardcode_action, $1)=
1008
1126
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1009
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1010
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
1127
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1128
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1011
1129
 
1012
1130
  # We can hardcode non-existant directories.
1013
1131
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1174
1292
  shlibpath_var=LIBRARY_PATH
1175
1293
  ;;
1176
1294
 
1177
 
bsdi4*)
 
1295
bsdi[[45]]*)
1178
1296
  version_type=linux
1179
1297
  need_version=no
1180
1298
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1202
1320
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1203
1321
      dldir=$destdir/`dirname \$dlpath`~
1204
1322
      test -d \$dldir || mkdir -p \$dldir~
1205
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
1323
      $install_prog $dir/$dlname \$dldir/$dlname~
 
1324
      chmod a+x \$dldir/$dlname'
1206
1325
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1207
1326
      dlpath=$dir/\$dldll~
1208
1327
       $rm \$dlpath'
1232
1351
      ;;
1233
1352
    pw32*)
1234
1353
      # pw32 DLLs use 'pw' prefix rather than 'lib'
1235
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
1354
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1236
1355
      ;;
1237
1356
    esac
1238
1357
    ;;
1255
1374
  soname_spec='${libname}${release}${major}$shared_ext'
1256
1375
  shlibpath_overrides_runpath=yes
1257
1376
  shlibpath_var=DYLD_LIBRARY_PATH
1258
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
1377
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1259
1378
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1260
1379
  if test "$GCC" = yes; then
1261
1380
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1290
1409
  dynamic_linker='GNU ld.so'
1291
1410
  ;;
1292
1411
 
1293
 
freebsd*)
1294
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
1412
freebsd* | dragonfly*)
 
1413
  # DragonFly does not have aout.  When/if they implement a new
 
1414
  # versioning mechanism, adjust this.
 
1415
  if test -x /usr/bin/objformat; then
 
1416
    objformat=`/usr/bin/objformat`
 
1417
  else
 
1418
    case $host_os in
 
1419
    freebsd[[123]]*) objformat=aout ;;
 
1420
    *) objformat=elf ;;
 
1421
    esac
 
1422
  fi
1295
1423
  version_type=freebsd-$objformat
1296
1424
  case $version_type in
1297
1425
    freebsd-elf*)
1309
1437
  freebsd2*)
1310
1438
    shlibpath_overrides_runpath=yes
1311
1439
    ;;
1312
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
1440
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1313
1441
    shlibpath_overrides_runpath=yes
1314
1442
    hardcode_into_libs=yes
1315
1443
    ;;
1316
 
  *) # from 3.2 on
 
1444
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1445
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1317
1446
    shlibpath_overrides_runpath=no
1318
1447
    hardcode_into_libs=yes
1319
1448
    ;;
 
1449
  freebsd*) # from 4.6 on
 
1450
    shlibpath_overrides_runpath=yes
 
1451
    hardcode_into_libs=yes
 
1452
    ;;
1320
1453
  esac
1321
1454
  ;;
1322
1455
 
1336
1469
  version_type=sunos
1337
1470
  need_lib_prefix=no
1338
1471
  need_version=no
1339
 
  case "$host_cpu" in
 
1472
  case $host_cpu in
1340
1473
  ia64*)
1341
1474
    shrext_cmds='.so'
1342
1475
    hardcode_into_libs=yes
1376
1509
  postinstall_cmds='chmod 555 $lib'
1377
1510
  ;;
1378
1511
 
 
1512
interix3*)
 
1513
  version_type=linux
 
1514
  need_lib_prefix=no
 
1515
  need_version=no
 
1516
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1517
  soname_spec='${libname}${release}${shared_ext}$major'
 
1518
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1519
  shlibpath_var=LD_LIBRARY_PATH
 
1520
  shlibpath_overrides_runpath=no
 
1521
  hardcode_into_libs=yes
 
1522
  ;;
 
1523
 
1379
1524
irix5* | irix6* | nonstopux*)
1380
1525
  case $host_os in
1381
1526
    nonstopux*) version_type=nonstopux ;;
1435
1580
 
1436
1581
  # Append ld.so.conf contents to the search path
1437
1582
  if test -f /etc/ld.so.conf; then
1438
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
 
1583
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1439
1584
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1440
1585
  fi
1441
1586
 
1497
1642
 
1498
1643
openbsd*)
1499
1644
  version_type=sunos
 
1645
  sys_lib_dlsearch_path_spec="/usr/lib"
1500
1646
  need_lib_prefix=no
1501
 
  need_version=yes
 
1647
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1648
  case $host_os in
 
1649
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1650
    *)                         need_version=no  ;;
 
1651
  esac
1502
1652
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1503
1653
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1504
1654
  shlibpath_var=LD_LIBRARY_PATH
1536
1686
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1537
1687
  ;;
1538
1688
 
1539
 
sco3.2v5*)
1540
 
  version_type=osf
1541
 
  soname_spec='${libname}${release}${shared_ext}$major'
1542
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1543
 
  shlibpath_var=LD_LIBRARY_PATH
1544
 
  ;;
1545
 
 
1546
1689
solaris*)
1547
1690
  version_type=linux
1548
1691
  need_lib_prefix=no
1568
1711
  need_version=yes
1569
1712
  ;;
1570
1713
 
1571
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1714
sysv4 | sysv4.3*)
1572
1715
  version_type=linux
1573
1716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1574
1717
  soname_spec='${libname}${release}${shared_ext}$major'
1601
1744
  fi
1602
1745
  ;;
1603
1746
 
 
1747
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1748
  version_type=freebsd-elf
 
1749
  need_lib_prefix=no
 
1750
  need_version=no
 
1751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1752
  soname_spec='${libname}${release}${shared_ext}$major'
 
1753
  shlibpath_var=LD_LIBRARY_PATH
 
1754
  hardcode_into_libs=yes
 
1755
  if test "$with_gnu_ld" = yes; then
 
1756
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1757
    shlibpath_overrides_runpath=no
 
1758
  else
 
1759
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1760
    shlibpath_overrides_runpath=yes
 
1761
    case $host_os in
 
1762
      sco3.2v5*)
 
1763
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1764
        ;;
 
1765
    esac
 
1766
  fi
 
1767
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1768
  ;;
 
1769
 
1604
1770
uts4*)
1605
1771
  version_type=linux
1606
1772
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1614
1780
esac
1615
1781
AC_MSG_RESULT([$dynamic_linker])
1616
1782
test "$dynamic_linker" = no && can_build_shared=no
 
1783
 
 
1784
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1785
if test "$GCC" = yes; then
 
1786
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1787
fi
1617
1788
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1618
1789
 
1619
1790
 
1638
1809
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1639
1810
    fi
1640
1811
  fi
 
1812
  if test -z "$LTCFLAGS"; then
 
1813
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1814
  fi
1641
1815
 
1642
1816
  # Extract list of available tagged configurations in $ofile.
1643
1817
  # Note that this assumes the entire list is on one line.
1664
1838
 
1665
1839
      case $tagname in
1666
1840
      CXX)
1667
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
1841
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
1842
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
1843
            (test "X$CXX" != "Xg++"))) ; then
1668
1844
          AC_LIBTOOL_LANG_CXX_CONFIG
1669
1845
        else
1670
1846
          tagname=""
1726
1902
 
1727
1903
# AC_LIBTOOL_WIN32_DLL
1728
1904
# --------------------
1729
 
# declare package support for building win32 dll's
 
1905
# declare package support for building win32 DLLs
1730
1906
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1731
1907
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1732
1908
])# AC_LIBTOOL_WIN32_DLL
1764
1940
 
1765
1941
# AC_DISABLE_SHARED
1766
1942
# -----------------
1767
 
#- set the default shared flag to --disable-shared
 
1943
# set the default shared flag to --disable-shared
1768
1944
AC_DEFUN([AC_DISABLE_SHARED],
1769
1945
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1770
1946
AC_ENABLE_SHARED(no)
1900
2076
      if test -n "$file_magic_test_file"; then
1901
2077
        case $deplibs_check_method in
1902
2078
        "file_magic "*)
1903
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2079
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1904
2080
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1905
2081
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1906
2082
            $EGREP "$file_magic_regex" > /dev/null; then
2010
2186
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2011
2187
      lt_cv_path_LD="$ac_dir/$ac_prog"
2012
2188
      # Check to see if the program is GNU ld.  I'd rather use --version,
2013
 
      # but apparently some GNU ld's only accept -v.
 
2189
      # but apparently some variants of GNU ld only accept -v.
2014
2190
      # Break only if it was the GNU/non-GNU ld that we prefer.
2015
2191
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2016
2192
      *GNU* | *'with BFD'*)
2042
2218
AC_DEFUN([AC_PROG_LD_GNU],
2043
2219
[AC_REQUIRE([AC_PROG_EGREP])dnl
2044
2220
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2045
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2221
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2046
2222
case `$LD -v 2>&1 </dev/null` in
2047
2223
*GNU* | *'with BFD'*)
2048
2224
  lt_cv_prog_gnu_ld=yes
2069
2245
*) reload_flag=" $reload_flag" ;;
2070
2246
esac
2071
2247
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2248
case $host_os in
 
2249
  darwin*)
 
2250
    if test "$GCC" = yes; then
 
2251
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
2252
    else
 
2253
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2254
    fi
 
2255
    ;;
 
2256
esac
2072
2257
])# AC_PROG_LD_RELOAD_FLAG
2073
2258
 
2074
2259
 
2102
2287
  lt_cv_deplibs_check_method=pass_all
2103
2288
  ;;
2104
2289
 
2105
 
bsdi4*)
 
2290
bsdi[[45]]*)
2106
2291
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2107
2292
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2108
2293
  lt_cv_file_magic_test_file=/shlib/libc.so
2125
2310
  lt_cv_deplibs_check_method=pass_all
2126
2311
  ;;
2127
2312
 
2128
 
freebsd* | kfreebsd*-gnu)
 
2313
freebsd* | kfreebsd*-gnu | dragonfly*)
2129
2314
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2130
2315
    case $host_cpu in
2131
2316
    i*86 )
2132
2317
      # Not sure whether the presence of OpenBSD here was a mistake.
2133
2318
      # Let's accept both of them until this is cleared up.
2134
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
2319
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2135
2320
      lt_cv_file_magic_cmd=/usr/bin/file
2136
2321
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2137
2322
      ;;
2147
2332
 
2148
2333
hpux10.20* | hpux11*)
2149
2334
  lt_cv_file_magic_cmd=/usr/bin/file
2150
 
  case "$host_cpu" in
 
2335
  case $host_cpu in
2151
2336
  ia64*)
2152
2337
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2153
2338
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2163
2348
  esac
2164
2349
  ;;
2165
2350
 
 
2351
interix3*)
 
2352
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2353
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2354
  ;;
 
2355
 
2166
2356
irix5* | irix6* | nonstopux*)
2167
2357
  case $LD in
2168
2358
  *-32|*"-32 ") libmagic=32-bit;;
2178
2368
  lt_cv_deplibs_check_method=pass_all
2179
2369
  ;;
2180
2370
 
2181
 
netbsd* | knetbsd*-gnu)
 
2371
netbsd*)
2182
2372
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2183
2373
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2184
2374
  else
2197
2387
  ;;
2198
2388
 
2199
2389
openbsd*)
2200
 
  lt_cv_file_magic_cmd=/usr/bin/file
2201
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2202
2390
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2203
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
2391
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2204
2392
  else
2205
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
2393
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2206
2394
  fi
2207
2395
  ;;
2208
2396
 
2210
2398
  lt_cv_deplibs_check_method=pass_all
2211
2399
  ;;
2212
2400
 
2213
 
sco3.2v5*)
2214
 
  lt_cv_deplibs_check_method=pass_all
2215
 
  ;;
2216
 
 
2217
2401
solaris*)
2218
2402
  lt_cv_deplibs_check_method=pass_all
2219
2403
  ;;
2220
2404
 
2221
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2405
sysv4 | sysv4.3*)
2222
2406
  case $host_vendor in
2223
2407
  motorola)
2224
2408
    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]]'
2239
2423
  siemens)
2240
2424
    lt_cv_deplibs_check_method=pass_all
2241
2425
    ;;
 
2426
  pc)
 
2427
    lt_cv_deplibs_check_method=pass_all
 
2428
    ;;
2242
2429
  esac
2243
2430
  ;;
2244
2431
 
2245
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2432
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2246
2433
  lt_cv_deplibs_check_method=pass_all
2247
2434
  ;;
2248
2435
esac
2262
2449
  # Let the user override the test.
2263
2450
  lt_cv_path_NM="$NM"
2264
2451
else
2265
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2266
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2267
 
    IFS="$lt_save_ifs"
2268
 
    test -z "$ac_dir" && ac_dir=.
2269
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2270
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2271
 
      # Check to see if the nm accepts a BSD-compat flag.
2272
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2273
 
      #   nm: unknown option "B" ignored
2274
 
      # Tru64's nm complains that /dev/null is an invalid object file
2275
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2276
 
      */dev/null* | *'Invalid file or object type'*)
2277
 
        lt_cv_path_NM="$tmp_nm -B"
2278
 
        break
2279
 
        ;;
2280
 
      *)
2281
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2282
 
        */dev/null*)
2283
 
          lt_cv_path_NM="$tmp_nm -p"
 
2452
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2453
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2454
    lt_nm_to_check="$lt_nm_to_check nm"
 
2455
  fi
 
2456
  for lt_tmp_nm in $lt_nm_to_check; do
 
2457
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2458
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2459
      IFS="$lt_save_ifs"
 
2460
      test -z "$ac_dir" && ac_dir=.
 
2461
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2462
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2463
        # Check to see if the nm accepts a BSD-compat flag.
 
2464
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2465
        #   nm: unknown option "B" ignored
 
2466
        # Tru64's nm complains that /dev/null is an invalid object file
 
2467
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2468
        */dev/null* | *'Invalid file or object type'*)
 
2469
          lt_cv_path_NM="$tmp_nm -B"
2284
2470
          break
2285
2471
          ;;
2286
2472
        *)
2287
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2288
 
          continue # so that we can try to find one that supports BSD flags
 
2473
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2474
          */dev/null*)
 
2475
            lt_cv_path_NM="$tmp_nm -p"
 
2476
            break
 
2477
            ;;
 
2478
          *)
 
2479
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2480
            continue # so that we can try to find one that supports BSD flags
 
2481
            ;;
 
2482
          esac
2289
2483
          ;;
2290
2484
        esac
2291
 
      esac
2292
 
    fi
 
2485
      fi
 
2486
    done
 
2487
    IFS="$lt_save_ifs"
2293
2488
  done
2294
 
  IFS="$lt_save_ifs"
2295
2489
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2296
2490
fi])
2297
2491
NM="$lt_cv_path_NM"
2323
2517
# -----------------------------------
2324
2518
# sets LIBLTDL to the link flags for the libltdl convenience library and
2325
2519
# LTDLINCL to the include flags for the libltdl header and adds
2326
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
2327
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2328
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
2329
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2330
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2331
 
# flat and you're not using automake, define top_builddir and
2332
 
# top_srcdir appropriately in the Makefiles.
 
2520
# --enable-ltdl-convenience to the configure arguments.  Note that
 
2521
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2522
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2523
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2524
# (note the single quotes!).  If your package is not flat and you're not
 
2525
# using automake, define top_builddir and top_srcdir appropriately in
 
2526
# the Makefiles.
2333
2527
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2334
2528
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2335
2529
  case $enable_ltdl_convenience in
2348
2542
# -----------------------------------
2349
2543
# sets LIBLTDL to the link flags for the libltdl installable library and
2350
2544
# LTDLINCL to the include flags for the libltdl header and adds
2351
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
2352
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2353
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
2354
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
2355
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2356
 
# quotes!).  If your package is not flat and you're not using automake,
2357
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
2545
# --enable-ltdl-install to the configure arguments.  Note that
 
2546
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2547
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2548
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2549
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2550
# flat and you're not using automake, define top_builddir and top_srcdir
 
2551
# appropriately in the Makefiles.
2358
2552
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2359
2553
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2360
2554
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2392
2586
# ---------------
2393
2587
AC_DEFUN([_LT_AC_LANG_CXX],
2394
2588
[AC_REQUIRE([AC_PROG_CXX])
2395
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2589
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2396
2590
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2397
2591
])# _LT_AC_LANG_CXX
2398
2592
 
 
2593
# _LT_AC_PROG_CXXCPP
 
2594
# ------------------
 
2595
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
2596
[
 
2597
AC_REQUIRE([AC_PROG_CXX])
 
2598
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2599
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2600
    (test "X$CXX" != "Xg++"))) ; then
 
2601
  AC_PROG_CXXCPP
 
2602
fi
 
2603
])# _LT_AC_PROG_CXXCPP
2399
2604
 
2400
2605
# AC_LIBTOOL_F77
2401
2606
# --------------
2435
2640
 
2436
2641
 
2437
2642
# AC_LIBTOOL_RC
2438
 
# --------------
 
2643
# -------------
2439
2644
# enable support for Windows resource files
2440
2645
AC_DEFUN([AC_LIBTOOL_RC],
2441
2646
[AC_REQUIRE([LT_AC_PROG_RC])
2468
2673
 
2469
2674
_LT_AC_SYS_COMPILER
2470
2675
 
2471
 
#
2472
 
# Check for any special shared library compilation flags.
2473
 
#
2474
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2475
 
if test "$GCC" = no; then
2476
 
  case $host_os in
2477
 
  sco3.2v5*)
2478
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2479
 
    ;;
2480
 
  esac
2481
 
fi
2482
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2483
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2484
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
2485
 
  else
2486
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2487
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2488
 
  fi
2489
 
fi
2490
 
 
2491
 
 
2492
 
#
2493
 
# Check to make sure the static flag actually works.
2494
 
#
2495
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2496
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2497
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2498
 
  [],
2499
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2500
 
 
 
2676
# save warnings/boilerplate of simple test code
 
2677
_LT_COMPILER_BOILERPLATE
 
2678
_LT_LINKER_BOILERPLATE
2501
2679
 
2502
2680
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2503
2681
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2507
2685
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2508
2686
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2509
2687
AC_LIBTOOL_SYS_LIB_STRIP
2510
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2688
AC_LIBTOOL_DLOPEN_SELF
2511
2689
 
2512
 
# Report which librarie types wil actually be built
 
2690
# Report which library types will actually be built
2513
2691
AC_MSG_CHECKING([if libtool supports shared libraries])
2514
2692
AC_MSG_RESULT([$can_build_shared])
2515
2693
 
2518
2696
 
2519
2697
# On AIX, shared libraries and static libraries use the same namespace, and
2520
2698
# are all built from PIC.
2521
 
case "$host_os" in
 
2699
case $host_os in
2522
2700
aix3*)
2523
2701
  test "$enable_shared" = yes && enable_static=no
2524
2702
  if test -n "$RANLIB"; then
2531
2709
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2532
2710
    test "$enable_shared" = yes && enable_static=no
2533
2711
  fi
2534
 
  ;;
2535
 
  darwin* | rhapsody*)
2536
 
  if test "$GCC" = yes; then
2537
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2538
 
    case "$host_os" in
2539
 
    rhapsody* | darwin1.[[012]])
2540
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2541
 
      ;;
2542
 
    *) # Darwin 1.3 on
2543
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2544
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2545
 
      else
2546
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
2547
 
          10.[[012]])
2548
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2549
 
            ;;
2550
 
          10.*)
2551
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2552
 
            ;;
2553
 
        esac
2554
 
      fi
2555
 
      ;;
2556
 
    esac
2557
 
    output_verbose_link_cmd='echo'
2558
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2559
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2560
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2561
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
2562
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
2563
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2564
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2565
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2566
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2567
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2568
 
  else
2569
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2570
 
  fi
2571
2712
    ;;
2572
2713
esac
2573
2714
AC_MSG_RESULT([$enable_shared])
2593
2734
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2594
2735
[AC_LANG_PUSH(C++)
2595
2736
AC_REQUIRE([AC_PROG_CXX])
2596
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2737
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2597
2738
 
2598
2739
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2599
2740
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2605
2746
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2606
2747
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2607
2748
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2749
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2608
2750
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2609
2751
_LT_AC_TAGVAR(module_cmds, $1)=
2610
2752
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2622
2764
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2623
2765
 
2624
2766
# Source file extension for C++ test sources.
2625
 
ac_ext=cc
 
2767
ac_ext=cpp
2626
2768
 
2627
2769
# Object file extension for compiled C++ test sources.
2628
2770
objext=o
2632
2774
lt_simple_compile_test_code="int some_variable = 0;\n"
2633
2775
 
2634
2776
# Code to be used in simple link tests
2635
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2777
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2636
2778
 
2637
2779
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2638
2780
_LT_AC_SYS_COMPILER
2639
2781
 
 
2782
# save warnings/boilerplate of simple test code
 
2783
_LT_COMPILER_BOILERPLATE
 
2784
_LT_LINKER_BOILERPLATE
 
2785
 
2640
2786
# Allow CC to be a program name with arguments.
2641
2787
lt_save_CC=$CC
2642
2788
lt_save_LD=$LD
2647
2793
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2648
2794
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2649
2795
else
2650
 
  unset lt_cv_prog_gnu_ld
 
2796
  $as_unset lt_cv_prog_gnu_ld
2651
2797
fi
2652
2798
if test -n "${lt_cv_path_LDCXX+set}"; then
2653
2799
  lt_cv_path_LD=$lt_cv_path_LDCXX
2654
2800
else
2655
 
  unset lt_cv_path_LD
 
2801
  $as_unset lt_cv_path_LD
2656
2802
fi
2657
2803
test -z "${LDCXX+set}" || LD=$LDCXX
2658
2804
CC=${CXX-"c++"}
2659
2805
compiler=$CC
2660
2806
_LT_AC_TAGVAR(compiler, $1)=$CC
2661
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
2807
_LT_CC_BASENAME([$compiler])
2662
2808
 
2663
2809
# We don't want -fno-exception wen compiling C++ code, so set the
2664
2810
# no_builtin_flag separately
2747
2893
            ;;
2748
2894
          esac
2749
2895
        done
 
2896
        ;;
2750
2897
      esac
2751
2898
 
2752
2899
      exp_sym_flag='-bexport'
2765
2912
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2766
2913
 
2767
2914
    if test "$GXX" = yes; then
2768
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
2915
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
2769
2916
      # We only want to do this on AIX 4.2 and lower, the check
2770
2917
      # below for broken collect2 doesn't work under 4.3+
2771
2918
        collect2name=`${CC} -print-prog-name=collect2`
2784
2931
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2785
2932
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2786
2933
        fi
 
2934
        ;;
2787
2935
      esac
2788
2936
      shared_flag='-shared'
 
2937
      if test "$aix_use_runtimelinking" = yes; then
 
2938
        shared_flag="$shared_flag "'${wl}-G'
 
2939
      fi
2789
2940
    else
2790
2941
      # not using gcc
2791
2942
      if test "$host_cpu" = ia64; then
2812
2963
      _LT_AC_SYS_LIBPATH_AIX
2813
2964
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2814
2965
 
2815
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
2966
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
2816
2967
     else
2817
2968
      if test "$host_cpu" = ia64; then
2818
2969
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2819
2970
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2820
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
2971
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
2821
2972
      else
2822
2973
        # Determine the default libpath from the value encoded in an empty executable.
2823
2974
        _LT_AC_SYS_LIBPATH_AIX
2826
2977
        # -berok will link without error, but may produce a broken library.
2827
2978
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2828
2979
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2829
 
        # -bexpall does not export symbols beginning with underscore (_)
2830
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2831
2980
        # Exported symbols can be pulled into shared objects from archives
2832
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
2981
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2833
2982
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2834
 
        # This is similar to how AIX traditionally builds it's shared libraries.
2835
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
2983
        # This is similar to how AIX traditionally builds its shared libraries.
 
2984
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
2836
2985
      fi
2837
2986
    fi
2838
2987
    ;;
 
2988
 
 
2989
  beos*)
 
2990
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
2991
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
2992
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
2993
      # support --undefined.  This deserves some investigation.  FIXME
 
2994
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
2995
    else
 
2996
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2997
    fi
 
2998
    ;;
 
2999
 
2839
3000
  chorus*)
2840
3001
    case $cc_basename in
2841
3002
      *)
2854
3015
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2855
3016
 
2856
3017
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2857
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3018
      _LT_AC_TAGVAR(archive_cmds, $1)='$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'
2858
3019
      # If the export-symbols file already is a .def file (1st line
2859
3020
      # is EXPORTS), use it as is; otherwise, prepend...
2860
3021
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2863
3024
        echo EXPORTS > $output_objdir/$soname.def;
2864
3025
        cat $export_symbols >> $output_objdir/$soname.def;
2865
3026
      fi~
2866
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3027
      $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'
2867
3028
    else
2868
3029
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2869
3030
    fi
2870
3031
  ;;
2871
 
 
2872
 
  darwin* | rhapsody*)
2873
 
  if test "$GXX" = yes; then
2874
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2875
 
    case "$host_os" in
2876
 
    rhapsody* | darwin1.[[012]])
2877
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2878
 
      ;;
2879
 
    *) # Darwin 1.3 on
2880
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2881
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2882
 
      else
2883
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
2884
 
          10.[[012]])
2885
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2886
 
            ;;
2887
 
          10.*)
2888
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2889
 
            ;;
 
3032
      darwin* | rhapsody*)
 
3033
        case $host_os in
 
3034
        rhapsody* | darwin1.[[012]])
 
3035
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
3036
         ;;
 
3037
       *) # Darwin 1.3 on
 
3038
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3039
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3040
         else
 
3041
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
3042
             10.[[012]])
 
3043
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3044
               ;;
 
3045
             10.*)
 
3046
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
3047
               ;;
 
3048
           esac
 
3049
         fi
 
3050
         ;;
2890
3051
        esac
2891
 
      fi
2892
 
      ;;
2893
 
    esac
2894
 
    lt_int_apple_cc_single_mod=no
2895
 
    output_verbose_link_cmd='echo'
2896
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2897
 
      lt_int_apple_cc_single_mod=yes
2898
 
    fi
2899
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2900
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2901
 
    else
2902
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2903
 
    fi
2904
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3052
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3053
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3054
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3055
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3056
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3057
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2905
3058
 
2906
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2907
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2908
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
2909
 
    else
2910
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2911
 
    fi
2912
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
2913
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2914
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2915
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2916
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2917
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2918
 
  else
2919
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2920
 
  fi
2921
 
    ;;
 
3059
    if test "$GXX" = yes ; then
 
3060
      lt_int_apple_cc_single_mod=no
 
3061
      output_verbose_link_cmd='echo'
 
3062
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
3063
       lt_int_apple_cc_single_mod=yes
 
3064
      fi
 
3065
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3066
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3067
      else
 
3068
          _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
3069
        fi
 
3070
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3071
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3072
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3073
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
 
3074
          else
 
3075
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
 
3076
          fi
 
3077
            _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
 
3078
      else
 
3079
      case $cc_basename in
 
3080
        xlc*)
 
3081
         output_verbose_link_cmd='echo'
 
3082
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3083
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3084
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3085
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3086
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
 
3087
          ;;
 
3088
       *)
 
3089
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3090
          ;;
 
3091
      esac
 
3092
      fi
 
3093
        ;;
2922
3094
 
2923
3095
  dgux*)
2924
3096
    case $cc_basename in
2925
 
      ec++)
 
3097
      ec++*)
2926
3098
        # FIXME: insert proper C++ library support
2927
3099
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2928
3100
        ;;
2929
 
      ghcx)
 
3101
      ghcx*)
2930
3102
        # Green Hills C++ Compiler
2931
3103
        # FIXME: insert proper C++ library support
2932
3104
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2937
3109
        ;;
2938
3110
    esac
2939
3111
    ;;
2940
 
  freebsd[12]*)
 
3112
  freebsd[[12]]*)
2941
3113
    # C++ shared libraries reported to be fairly broken before switch to ELF
2942
3114
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2943
3115
    ;;
2944
3116
  freebsd-elf*)
2945
3117
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2946
3118
    ;;
2947
 
  freebsd* | kfreebsd*-gnu)
 
3119
  freebsd* | kfreebsd*-gnu | dragonfly*)
2948
3120
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2949
3121
    # conventions
2950
3122
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2961
3133
                                # location of the library.
2962
3134
 
2963
3135
    case $cc_basename in
2964
 
    CC)
 
3136
    CC*)
2965
3137
      # FIXME: insert proper C++ library support
2966
3138
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2967
3139
      ;;
2968
 
    aCC)
 
3140
    aCC*)
2969
3141
      _LT_AC_TAGVAR(archive_cmds, $1)='$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'
2970
3142
      # Commands to make compiler produce verbose output that lists
2971
3143
      # what "hidden" libraries, object files and flags are used when
2975
3147
      # explicitly linking system object files so we need to strip them
2976
3148
      # from the output so that they don't get included in the library
2977
3149
      # dependencies.
2978
 
      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'
 
3150
      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'
2979
3151
      ;;
2980
3152
    *)
2981
3153
      if test "$GXX" = yes; then
2989
3161
    ;;
2990
3162
  hpux10*|hpux11*)
2991
3163
    if test $with_gnu_ld = no; then
2992
 
      case "$host_cpu" in
2993
 
      hppa*64*)
2994
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3164
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3165
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3166
 
 
3167
      case $host_cpu in
 
3168
      hppa*64*|ia64*)
2995
3169
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
2996
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2997
 
        ;;
2998
 
      ia64*)
2999
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3000
3170
        ;;
3001
3171
      *)
3002
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3003
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3004
3172
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3005
3173
        ;;
3006
3174
      esac
3007
3175
    fi
3008
 
    case "$host_cpu" in
3009
 
    hppa*64*)
3010
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3011
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3012
 
      ;;
3013
 
    ia64*)
3014
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3015
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3016
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3017
 
                                              # but as the default
3018
 
                                              # location of the library.
 
3176
    case $host_cpu in
 
3177
    hppa*64*|ia64*)
 
3178
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3179
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3019
3180
      ;;
3020
3181
    *)
3021
3182
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3026
3187
    esac
3027
3188
 
3028
3189
    case $cc_basename in
3029
 
      CC)
 
3190
      CC*)
3030
3191
        # FIXME: insert proper C++ library support
3031
3192
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3032
3193
        ;;
3033
 
      aCC)
3034
 
        case "$host_cpu" in
3035
 
        hppa*64*|ia64*)
3036
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3194
      aCC*)
 
3195
        case $host_cpu in
 
3196
        hppa*64*)
 
3197
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3198
          ;;
 
3199
        ia64*)
 
3200
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3037
3201
          ;;
3038
3202
        *)
3039
3203
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3052
3216
      *)
3053
3217
        if test "$GXX" = yes; then
3054
3218
          if test $with_gnu_ld = no; then
3055
 
            case "$host_cpu" in
3056
 
            ia64*|hppa*64*)
3057
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3219
            case $host_cpu in
 
3220
            hppa*64*)
 
3221
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3222
              ;;
 
3223
            ia64*)
 
3224
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3058
3225
              ;;
3059
3226
            *)
3060
3227
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3068
3235
        ;;
3069
3236
    esac
3070
3237
    ;;
 
3238
  interix3*)
 
3239
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3240
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3241
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3242
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3243
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3244
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3245
    # default) and relocated if they conflict, which is a slow very memory
 
3246
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3247
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3248
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3249
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3250
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
 
3251
    ;;
3071
3252
  irix5* | irix6*)
3072
3253
    case $cc_basename in
3073
 
      CC)
 
3254
      CC*)
3074
3255
        # SGI C++
3075
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3256
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3076
3257
 
3077
3258
        # Archives containing C++ object files must be created using
3078
3259
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3083
3264
      *)
3084
3265
        if test "$GXX" = yes; then
3085
3266
          if test "$with_gnu_ld" = no; then
3086
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3267
            _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3087
3268
          else
3088
3269
            _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3089
3270
          fi
3096
3277
    ;;
3097
3278
  linux*)
3098
3279
    case $cc_basename in
3099
 
      KCC)
 
3280
      KCC*)
3100
3281
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3101
3282
 
3102
3283
        # KCC will only create a shared library if the output file
3121
3302
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3122
3303
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3123
3304
        ;;
3124
 
      icpc)
 
3305
      icpc*)
3125
3306
        # Intel C++
3126
3307
        with_gnu_ld=yes
 
3308
        # version 8.0 and above of icpc choke on multiply defined symbols
 
3309
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
3310
        # earlier do not add the objects themselves.
 
3311
        case `$CC -V 2>&1` in
 
3312
        *"Version 7."*)
 
3313
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3314
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3315
          ;;
 
3316
        *)  # Version 8.0 or newer
 
3317
          tmp_idyn=
 
3318
          case $host_cpu in
 
3319
            ia64*) tmp_idyn=' -i_dynamic';;
 
3320
          esac
 
3321
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3322
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3323
          ;;
 
3324
        esac
3127
3325
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3128
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3129
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3130
3326
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3131
3327
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3132
3328
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3133
3329
        ;;
3134
 
      cxx)
 
3330
      pgCC*)
 
3331
        # Portland Group C++ compiler
 
3332
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3333
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$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'
 
3334
 
 
3335
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3336
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3337
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3338
        ;;
 
3339
      cxx*)
3135
3340
        # Compaq C++
3136
3341
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3137
3342
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3162
3367
    ;;
3163
3368
  mvs*)
3164
3369
    case $cc_basename in
3165
 
      cxx)
 
3370
      cxx*)
3166
3371
        # FIXME: insert proper C++ library support
3167
3372
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3168
3373
        ;;
3172
3377
        ;;
3173
3378
    esac
3174
3379
    ;;
3175
 
  netbsd* | knetbsd*-gnu)
 
3380
  netbsd*)
3176
3381
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3177
3382
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3178
3383
      wlarc=
3183
3388
    # Workaround some broken pre-1.5 toolchains
3184
3389
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3185
3390
    ;;
 
3391
  openbsd2*)
 
3392
    # C++ shared libraries are fairly broken
 
3393
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3394
    ;;
 
3395
  openbsd*)
 
3396
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3397
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3398
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3399
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3400
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3401
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3402
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3403
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3404
    fi
 
3405
    output_verbose_link_cmd='echo'
 
3406
    ;;
3186
3407
  osf3*)
3187
3408
    case $cc_basename in
3188
 
      KCC)
 
3409
      KCC*)
3189
3410
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3190
3411
 
3191
3412
        # KCC will only create a shared library if the output file
3201
3422
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3202
3423
 
3203
3424
        ;;
3204
 
      RCC)
 
3425
      RCC*)
3205
3426
        # Rational C++ 2.4.1
3206
3427
        # FIXME: insert proper C++ library support
3207
3428
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3208
3429
        ;;
3209
 
      cxx)
 
3430
      cxx*)
3210
3431
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3211
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3432
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3212
3433
 
3213
3434
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3214
3435
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3226
3447
      *)
3227
3448
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3228
3449
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3229
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3450
          _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3230
3451
 
3231
3452
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3232
3453
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3245
3466
    ;;
3246
3467
  osf4* | osf5*)
3247
3468
    case $cc_basename in
3248
 
      KCC)
 
3469
      KCC*)
3249
3470
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3250
3471
 
3251
3472
        # KCC will only create a shared library if the output file
3260
3481
        # the KAI C++ compiler.
3261
3482
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3262
3483
        ;;
3263
 
      RCC)
 
3484
      RCC*)
3264
3485
        # Rational C++ 2.4.1
3265
3486
        # FIXME: insert proper C++ library support
3266
3487
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3267
3488
        ;;
3268
 
      cxx)
 
3489
      cxx*)
3269
3490
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3270
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3491
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3271
3492
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3272
3493
          echo "-hidden">> $lib.exp~
3273
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
3494
          $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~
3274
3495
          $rm $lib.exp'
3275
3496
 
3276
3497
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3289
3510
      *)
3290
3511
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3291
3512
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3292
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3513
         _LT_AC_TAGVAR(archive_cmds, $1)='$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'
3293
3514
 
3294
3515
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3295
3516
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3310
3531
    # FIXME: insert proper C++ library support
3311
3532
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3312
3533
    ;;
3313
 
  sco*)
3314
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3315
 
    case $cc_basename in
3316
 
      CC)
3317
 
        # FIXME: insert proper C++ library support
3318
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3319
 
        ;;
3320
 
      *)
3321
 
        # FIXME: insert proper C++ library support
3322
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3323
 
        ;;
3324
 
    esac
3325
 
    ;;
3326
3534
  sunos4*)
3327
3535
    case $cc_basename in
3328
 
      CC)
 
3536
      CC*)
3329
3537
        # Sun C++ 4.x
3330
3538
        # FIXME: insert proper C++ library support
3331
3539
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3332
3540
        ;;
3333
 
      lcc)
 
3541
      lcc*)
3334
3542
        # Lucid
3335
3543
        # FIXME: insert proper C++ library support
3336
3544
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3343
3551
    ;;
3344
3552
  solaris*)
3345
3553
    case $cc_basename in
3346
 
      CC)
 
3554
      CC*)
3347
3555
        # Sun C++ 4.2, 5.x and Centerline C++
 
3556
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3348
3557
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3349
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3558
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3350
3559
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3351
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3560
        $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'
3352
3561
 
3353
3562
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3354
3563
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3355
3564
        case $host_os in
3356
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
3565
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3357
3566
          *)
3358
3567
            # The C++ compiler is used as linker so we must use $wl
3359
3568
            # flag to pass the commands to the underlying system
3360
 
            # linker.
 
3569
            # linker. We must also pass each convience library through
 
3570
            # to the system linker between allextract/defaultextract.
 
3571
            # The C++ compiler will combine linker options so we
 
3572
            # cannot just pass the convience library names through
 
3573
            # without $wl.
3361
3574
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3362
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3575
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3363
3576
            ;;
3364
3577
        esac
3365
3578
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3366
3579
 
3367
 
        # Commands to make compiler produce verbose output that lists
3368
 
        # what "hidden" libraries, object files and flags are used when
3369
 
        # linking a shared library.
3370
 
        #
3371
 
        # There doesn't appear to be a way to prevent this compiler from
3372
 
        # explicitly linking system object files so we need to strip them
3373
 
        # from the output so that they don't get included in the library
3374
 
        # dependencies.
3375
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3580
        output_verbose_link_cmd='echo'
3376
3581
 
3377
3582
        # Archives containing C++ object files must be created using
3378
3583
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3380
3585
        # in the archive.
3381
3586
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3382
3587
        ;;
3383
 
      gcx)
 
3588
      gcx*)
3384
3589
        # Green Hills C++ Compiler
3385
3590
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3386
3591
 
3418
3623
        ;;
3419
3624
    esac
3420
3625
    ;;
3421
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3422
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3626
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3627
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3628
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3629
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3630
    runpath_var='LD_RUN_PATH'
 
3631
 
 
3632
    case $cc_basename in
 
3633
      CC*)
 
3634
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3635
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3636
        ;;
 
3637
      *)
 
3638
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3639
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3640
        ;;
 
3641
    esac
 
3642
    ;;
 
3643
  sysv5* | sco3.2v5* | sco5v6*)
 
3644
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3645
    # link with -lc, and that would cause any symbols used from libc to
 
3646
    # always be unresolved, which means just about no library would
 
3647
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3648
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3649
    # as -z defs.
 
3650
    # For security reasons, it is highly recommended that you always
 
3651
    # use absolute paths for naming shared libraries, and exclude the
 
3652
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3653
    # requires that you compile everything twice, which is a pain.
 
3654
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3655
    # non-empty value in the environment.  Most likely only useful for
 
3656
    # creating official distributions of packages.
 
3657
    # This is a hack until libtool officially supports absolute path
 
3658
    # names for shared libraries.
 
3659
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3660
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3661
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3662
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3663
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3664
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3665
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3666
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3667
    runpath_var='LD_RUN_PATH'
 
3668
 
 
3669
    case $cc_basename in
 
3670
      CC*)
 
3671
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3672
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3673
        ;;
 
3674
      *)
 
3675
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3676
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3677
        ;;
 
3678
    esac
3423
3679
    ;;
3424
3680
  tandem*)
3425
3681
    case $cc_basename in
3426
 
      NCC)
 
3682
      NCC*)
3427
3683
        # NonStop-UX NCC 3.20
3428
3684
        # FIXME: insert proper C++ library support
3429
3685
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3456
3712
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3457
3713
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3458
3714
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3459
 
AC_LIBTOOL_SYS_LIB_STRIP
3460
 
AC_LIBTOOL_DLOPEN_SELF($1)
3461
3715
 
3462
3716
AC_LIBTOOL_CONFIG($1)
3463
3717
 
3475
3729
])# AC_LIBTOOL_LANG_CXX_CONFIG
3476
3730
 
3477
3731
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3478
 
# ------------------------
 
3732
# ------------------------------------
3479
3733
# Figure out "hidden" library dependencies from verbose
3480
3734
# compiler output when linking a shared library.
3481
3735
# Parse the compiler output and extract the necessary
3529
3783
  # The `*' in the case matches for architectures that use `case' in
3530
3784
  # $output_verbose_cmd can trigger glob expansion during the loop
3531
3785
  # eval without this substitution.
3532
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
3786
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3533
3787
 
3534
3788
  for p in `eval $output_verbose_link_cmd`; do
3535
3789
    case $p in
3605
3859
 
3606
3860
$rm -f confest.$objext
3607
3861
 
 
3862
# PORTME: override above test on systems where it is broken
 
3863
ifelse([$1],[CXX],
 
3864
[case $host_os in
 
3865
interix3*)
 
3866
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3867
  # hack all around it, let's just trust "g++" to DTRT.
 
3868
  _LT_AC_TAGVAR(predep_objects,$1)=
 
3869
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
3870
  _LT_AC_TAGVAR(postdeps,$1)=
 
3871
  ;;
 
3872
 
 
3873
solaris*)
 
3874
  case $cc_basename in
 
3875
  CC*)
 
3876
    # Adding this requires a known-good setup of shared libraries for
 
3877
    # Sun compiler versions before 5.6, else PIC objects from an old
 
3878
    # archive will be linked into the output, leading to subtle bugs.
 
3879
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3880
    ;;
 
3881
  esac
 
3882
  ;;
 
3883
esac
 
3884
])
 
3885
 
3608
3886
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3609
3887
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3610
3888
esac
3611
3889
])# AC_LIBTOOL_POSTDEP_PREDEP
3612
3890
 
3613
3891
# AC_LIBTOOL_LANG_F77_CONFIG
3614
 
# ------------------------
 
3892
# --------------------------
3615
3893
# Ensure that the configuration vars for the C compiler are
3616
3894
# suitably defined.  Those variables are subsequently used by
3617
3895
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3655
3933
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3656
3934
_LT_AC_SYS_COMPILER
3657
3935
 
 
3936
# save warnings/boilerplate of simple test code
 
3937
_LT_COMPILER_BOILERPLATE
 
3938
_LT_LINKER_BOILERPLATE
 
3939
 
3658
3940
# Allow CC to be a program name with arguments.
3659
3941
lt_save_CC="$CC"
3660
3942
CC=${F77-"f77"}
3661
3943
compiler=$CC
3662
3944
_LT_AC_TAGVAR(compiler, $1)=$CC
3663
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3945
_LT_CC_BASENAME([$compiler])
3664
3946
 
3665
3947
AC_MSG_CHECKING([if libtool supports shared libraries])
3666
3948
AC_MSG_RESULT([$can_build_shared])
3670
3952
 
3671
3953
# On AIX, shared libraries and static libraries use the same namespace, and
3672
3954
# are all built from PIC.
3673
 
case "$host_os" in
 
3955
case $host_os in
3674
3956
aix3*)
3675
3957
  test "$enable_shared" = yes && enable_static=no
3676
3958
  if test -n "$RANLIB"; then
3679
3961
  fi
3680
3962
  ;;
3681
3963
aix4* | aix5*)
3682
 
  test "$enable_shared" = yes && enable_static=no
 
3964
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3965
    test "$enable_shared" = yes && enable_static=no
 
3966
  fi
3683
3967
  ;;
3684
3968
esac
3685
3969
AC_MSG_RESULT([$enable_shared])
3689
3973
test "$enable_shared" = yes || enable_static=yes
3690
3974
AC_MSG_RESULT([$enable_static])
3691
3975
 
3692
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3693
 
 
3694
3976
_LT_AC_TAGVAR(GCC, $1)="$G77"
3695
3977
_LT_AC_TAGVAR(LD, $1)="$LD"
3696
3978
 
3700
3982
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3701
3983
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3702
3984
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3703
 
AC_LIBTOOL_SYS_LIB_STRIP
3704
 
 
3705
3985
 
3706
3986
AC_LIBTOOL_CONFIG($1)
3707
3987
 
3730
4010
lt_simple_compile_test_code="class foo {}\n"
3731
4011
 
3732
4012
# Code to be used in simple link tests
3733
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
4013
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3734
4014
 
3735
4015
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3736
4016
_LT_AC_SYS_COMPILER
3737
4017
 
 
4018
# save warnings/boilerplate of simple test code
 
4019
_LT_COMPILER_BOILERPLATE
 
4020
_LT_LINKER_BOILERPLATE
 
4021
 
3738
4022
# Allow CC to be a program name with arguments.
3739
4023
lt_save_CC="$CC"
3740
4024
CC=${GCJ-"gcj"}
3741
4025
compiler=$CC
3742
4026
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4027
_LT_CC_BASENAME([$compiler])
3743
4028
 
3744
4029
# GCJ did not exist at the time GCC didn't implicitly link libc in.
3745
4030
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3746
4031
 
 
4032
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4033
 
3747
4034
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3748
4035
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3749
4036
AC_LIBTOOL_PROG_CC_C_O($1)
3751
4038
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3752
4039
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3753
4040
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3754
 
AC_LIBTOOL_SYS_LIB_STRIP
3755
 
AC_LIBTOOL_DLOPEN_SELF($1)
3756
4041
 
3757
4042
AC_LIBTOOL_CONFIG($1)
3758
4043
 
3762
4047
 
3763
4048
 
3764
4049
# AC_LIBTOOL_LANG_RC_CONFIG
3765
 
# --------------------------
 
4050
# -------------------------
3766
4051
# Ensure that the configuration vars for the Windows resource compiler are
3767
4052
# suitably defined.  Those variables are subsequently used by
3768
4053
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3786
4071
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3787
4072
_LT_AC_SYS_COMPILER
3788
4073
 
 
4074
# save warnings/boilerplate of simple test code
 
4075
_LT_COMPILER_BOILERPLATE
 
4076
_LT_LINKER_BOILERPLATE
 
4077
 
3789
4078
# Allow CC to be a program name with arguments.
3790
4079
lt_save_CC="$CC"
3791
4080
CC=${RC-"windres"}
3792
4081
compiler=$CC
3793
4082
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4083
_LT_CC_BASENAME([$compiler])
3794
4084
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3795
4085
 
3796
4086
AC_LIBTOOL_CONFIG($1)
3820
4110
  # Now quote all the things that may contain metacharacters while being
3821
4111
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
3822
4112
  # variables and quote the copies for generation of the libtool script.
3823
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4113
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
3824
4114
    SED SHELL STRIP \
3825
4115
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3826
4116
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3926
4216
#
3927
4217
# You should have received a copy of the GNU General Public License
3928
4218
# along with this program; if not, write to the Free Software
3929
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4219
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3930
4220
#
3931
4221
# As a special exception to the GNU General Public License, if you
3932
4222
# distribute this file as part of a program that contains a
3937
4227
SED=$lt_SED
3938
4228
 
3939
4229
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3940
 
Xsed="$SED -e s/^X//"
 
4230
Xsed="$SED -e 1s/^X//"
3941
4231
 
3942
4232
# The HP-UX ksh and POSIX shell print the target directory to stdout
3943
4233
# if CDPATH is set.
3944
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
4234
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3945
4235
 
3946
4236
# The names of the tagged configurations supported by this script.
3947
4237
available_tags=
3972
4262
# The host system.
3973
4263
host_alias=$host_alias
3974
4264
host=$host
 
4265
host_os=$host_os
 
4266
 
 
4267
# The build system.
 
4268
build_alias=$build_alias
 
4269
build=$build
 
4270
build_os=$build_os
3975
4271
 
3976
4272
# An echo program that does not interpret backslashes.
3977
4273
echo=$lt_echo
3983
4279
# A C compiler.
3984
4280
LTCC=$lt_LTCC
3985
4281
 
 
4282
# LTCC compiler flags.
 
4283
LTCFLAGS=$lt_LTCFLAGS
 
4284
 
3986
4285
# A language-specific compiler.
3987
4286
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
3988
4287
 
4048
4347
# Does compiler simultaneously support -c and -o options?
4049
4348
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4050
4349
 
4051
 
# Must we lock files when doing compilation ?
 
4350
# Must we lock files when doing compilation?
4052
4351
need_locks=$lt_need_locks
4053
4352
 
4054
4353
# Do we need the lib prefix for modules?
4322
4621
# Regexp to match symbols that can be accessed directly from C.
4323
4622
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4324
4623
 
4325
 
# Transform the above into a raw symbol and a C symbol.
4326
 
symxfrm='\1 \2\3 \3'
4327
 
 
4328
4624
# Transform an extracted symbol line into a proper C declaration
4329
4625
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4330
4626
 
4346
4642
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4347
4643
  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'"
4348
4644
  ;;
 
4645
linux*)
 
4646
  if test "$host_cpu" = ia64; then
 
4647
    symcode='[[ABCDGIRSTW]]'
 
4648
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4649
    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'"
 
4650
  fi
 
4651
  ;;
4349
4652
irix* | nonstopux*)
4350
4653
  symcode='[[BCDEGRST]]'
4351
4654
  ;;
4352
4655
osf*)
4353
4656
  symcode='[[BCDEGQRST]]'
4354
4657
  ;;
4355
 
solaris* | sysv5*)
 
4658
solaris*)
4356
4659
  symcode='[[BDRT]]'
4357
4660
  ;;
 
4661
sco3.2v5*)
 
4662
  symcode='[[DT]]'
 
4663
  ;;
 
4664
sysv4.2uw2*)
 
4665
  symcode='[[DT]]'
 
4666
  ;;
 
4667
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4668
  symcode='[[ABDT]]'
 
4669
  ;;
4358
4670
sysv4)
4359
4671
  symcode='[[DFNSTU]]'
4360
4672
  ;;
4377
4689
# Try without a prefix undercore, then with it.
4378
4690
for ac_symprfx in "" "_"; do
4379
4691
 
 
4692
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4693
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4694
 
4380
4695
  # Write the raw and C identifiers.
4381
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4696
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4382
4697
 
4383
4698
  # Check to see that the pipe works correctly.
4384
4699
  pipe_works=no
4534
4849
      # DJGPP does not support shared libraries at all
4535
4850
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4536
4851
      ;;
 
4852
    interix3*)
 
4853
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4854
      # Instead, we relocate shared libraries at runtime.
 
4855
      ;;
4537
4856
    sysv4*MP*)
4538
4857
      if test -d /usr/nec; then
4539
4858
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4542
4861
    hpux*)
4543
4862
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4544
4863
      # not for PA HP-UX.
4545
 
      case "$host_cpu" in
 
4864
      case $host_cpu in
4546
4865
      hppa*64*|ia64*)
4547
4866
        ;;
4548
4867
      *)
4567
4886
        ;;
4568
4887
      chorus*)
4569
4888
        case $cc_basename in
4570
 
        cxch68)
 
4889
        cxch68*)
4571
4890
          # Green Hills C++ Compiler
4572
4891
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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"
4573
4892
          ;;
4574
4893
        esac
4575
4894
        ;;
 
4895
       darwin*)
 
4896
         # PIC is the default on this platform
 
4897
         # Common symbols not allowed in MH_DYLIB files
 
4898
         case $cc_basename in
 
4899
           xlc*)
 
4900
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
4901
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4902
           ;;
 
4903
         esac
 
4904
       ;;
4576
4905
      dgux*)
4577
4906
        case $cc_basename in
4578
 
          ec++)
 
4907
          ec++*)
4579
4908
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4580
4909
            ;;
4581
 
          ghcx)
 
4910
          ghcx*)
4582
4911
            # Green Hills C++ Compiler
4583
4912
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4584
4913
            ;;
4586
4915
            ;;
4587
4916
        esac
4588
4917
        ;;
4589
 
      freebsd* | kfreebsd*-gnu)
 
4918
      freebsd* | kfreebsd*-gnu | dragonfly*)
4590
4919
        # FreeBSD uses GNU C++
4591
4920
        ;;
4592
4921
      hpux9* | hpux10* | hpux11*)
4593
4922
        case $cc_basename in
4594
 
          CC)
 
4923
          CC*)
4595
4924
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4596
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4925
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4597
4926
            if test "$host_cpu" != ia64; then
4598
4927
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4599
4928
            fi
4600
4929
            ;;
4601
 
          aCC)
 
4930
          aCC*)
4602
4931
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4603
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4604
 
            case "$host_cpu" in
 
4932
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4933
            case $host_cpu in
4605
4934
            hppa*64*|ia64*)
4606
4935
              # +Z the default
4607
4936
              ;;
4614
4943
            ;;
4615
4944
        esac
4616
4945
        ;;
 
4946
      interix*)
 
4947
        # This is c89, which is MS Visual C++ (no shared libs)
 
4948
        # Anyone wants to do a port?
 
4949
        ;;
4617
4950
      irix5* | irix6* | nonstopux*)
4618
4951
        case $cc_basename in
4619
 
          CC)
 
4952
          CC*)
4620
4953
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4621
4954
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4622
4955
            # CC pic flag -KPIC is the default.
4627
4960
        ;;
4628
4961
      linux*)
4629
4962
        case $cc_basename in
4630
 
          KCC)
 
4963
          KCC*)
4631
4964
            # KAI C++ Compiler
4632
4965
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4633
4966
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4634
4967
            ;;
4635
 
          icpc)
 
4968
          icpc* | ecpc*)
4636
4969
            # Intel C++
4637
4970
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4638
4971
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4639
4972
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4640
4973
            ;;
4641
 
          cxx)
 
4974
          pgCC*)
 
4975
            # Portland Group C++ compiler.
 
4976
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4977
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4978
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4979
            ;;
 
4980
          cxx*)
4642
4981
            # Compaq C++
4643
4982
            # Make sure the PIC flag is empty.  It appears that all Alpha
4644
4983
            # Linux and Compaq Tru64 Unix objects are PIC.
4655
4994
        ;;
4656
4995
      mvs*)
4657
4996
        case $cc_basename in
4658
 
          cxx)
 
4997
          cxx*)
4659
4998
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4660
4999
            ;;
4661
5000
          *)
4662
5001
            ;;
4663
5002
        esac
4664
5003
        ;;
4665
 
      netbsd* | knetbsd*-gnu)
 
5004
      netbsd*)
4666
5005
        ;;
4667
5006
      osf3* | osf4* | osf5*)
4668
5007
        case $cc_basename in
4669
 
          KCC)
 
5008
          KCC*)
4670
5009
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4671
5010
            ;;
4672
 
          RCC)
 
5011
          RCC*)
4673
5012
            # Rational C++ 2.4.1
4674
5013
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4675
5014
            ;;
4676
 
          cxx)
 
5015
          cxx*)
4677
5016
            # Digital/Compaq C++
4678
5017
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4679
5018
            # Make sure the PIC flag is empty.  It appears that all Alpha
4687
5026
        ;;
4688
5027
      psos*)
4689
5028
        ;;
4690
 
      sco*)
4691
 
        case $cc_basename in
4692
 
          CC)
4693
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4694
 
            ;;
4695
 
          *)
4696
 
            ;;
4697
 
        esac
4698
 
        ;;
4699
5029
      solaris*)
4700
5030
        case $cc_basename in
4701
 
          CC)
 
5031
          CC*)
4702
5032
            # Sun C++ 4.2, 5.x and Centerline C++
4703
5033
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4704
5034
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4705
5035
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4706
5036
            ;;
4707
 
          gcx)
 
5037
          gcx*)
4708
5038
            # Green Hills C++ Compiler
4709
5039
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4710
5040
            ;;
4714
5044
        ;;
4715
5045
      sunos4*)
4716
5046
        case $cc_basename in
4717
 
          CC)
 
5047
          CC*)
4718
5048
            # Sun C++ 4.x
4719
5049
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4720
5050
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4721
5051
            ;;
4722
 
          lcc)
 
5052
          lcc*)
4723
5053
            # Lucid
4724
5054
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4725
5055
            ;;
4729
5059
        ;;
4730
5060
      tandem*)
4731
5061
        case $cc_basename in
4732
 
          NCC)
 
5062
          NCC*)
4733
5063
            # NonStop-UX NCC 3.20
4734
5064
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4735
5065
            ;;
4737
5067
            ;;
4738
5068
        esac
4739
5069
        ;;
4740
 
      unixware*)
 
5070
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5071
        case $cc_basename in
 
5072
          CC*)
 
5073
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5074
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5075
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5076
            ;;
 
5077
        esac
4741
5078
        ;;
4742
5079
      vxworks*)
4743
5080
        ;;
4784
5121
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4785
5122
      ;;
4786
5123
 
 
5124
    interix3*)
 
5125
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5126
      # Instead, we relocate shared libraries at runtime.
 
5127
      ;;
 
5128
 
4787
5129
    msdosdjgpp*)
4788
5130
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4789
5131
      # on systems that don't support them.
4800
5142
    hpux*)
4801
5143
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4802
5144
      # not for PA HP-UX.
4803
 
      case "$host_cpu" in
 
5145
      case $host_cpu in
4804
5146
      hppa*64*|ia64*)
4805
5147
        # +Z the default
4806
5148
        ;;
4826
5168
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4827
5169
      fi
4828
5170
      ;;
 
5171
      darwin*)
 
5172
        # PIC is the default on this platform
 
5173
        # Common symbols not allowed in MH_DYLIB files
 
5174
       case $cc_basename in
 
5175
         xlc*)
 
5176
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5177
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5178
         ;;
 
5179
       esac
 
5180
       ;;
4829
5181
 
4830
5182
    mingw* | pw32* | os2*)
4831
5183
      # This hack is so that the source file can tell whether it is being
4837
5189
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4838
5190
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4839
5191
      # not for PA HP-UX.
4840
 
      case "$host_cpu" in
 
5192
      case $host_cpu in
4841
5193
      hppa*64*|ia64*)
4842
5194
        # +Z the default
4843
5195
        ;;
4861
5213
      ;;
4862
5214
 
4863
5215
    linux*)
4864
 
      case $CC in
 
5216
      case $cc_basename in
4865
5217
      icc* | ecc*)
4866
5218
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4867
5219
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4868
5220
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4869
5221
        ;;
 
5222
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5223
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5224
        # which looks to be a dead project)
 
5225
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5226
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5227
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5228
        ;;
4870
5229
      ccc*)
4871
5230
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4872
5231
        # All Alpha code is PIC.
4881
5240
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4882
5241
      ;;
4883
5242
 
4884
 
    sco3.2v5*)
4885
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
4886
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
4887
 
      ;;
4888
 
 
4889
5243
    solaris*)
4890
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4891
5244
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4892
5245
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5246
      case $cc_basename in
 
5247
      f77* | f90* | f95*)
 
5248
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5249
      *)
 
5250
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5251
      esac
4893
5252
      ;;
4894
5253
 
4895
5254
    sunos4*)
4898
5257
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4899
5258
      ;;
4900
5259
 
4901
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5260
    sysv4 | sysv4.2uw2* | sysv4.3*)
4902
5261
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4903
5262
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4904
5263
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4911
5270
      fi
4912
5271
      ;;
4913
5272
 
 
5273
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5274
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5275
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5276
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5277
      ;;
 
5278
 
 
5279
    unicos*)
 
5280
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5281
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5282
      ;;
 
5283
 
4914
5284
    uts4*)
4915
5285
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4916
5286
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4938
5308
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4939
5309
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4940
5310
fi
4941
 
case "$host_os" in
 
5311
case $host_os in
4942
5312
  # For platforms which do not support PIC, -DPIC is meaningless:
4943
5313
  *djgpp*)
4944
5314
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4947
5317
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4948
5318
    ;;
4949
5319
esac
 
5320
 
 
5321
#
 
5322
# Check to make sure the static flag actually works.
 
5323
#
 
5324
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5325
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5326
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5327
  $lt_tmp_static_flag,
 
5328
  [],
 
5329
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4950
5330
])
4951
5331
 
4952
5332
 
4971
5351
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4972
5352
  ;;
4973
5353
  cygwin* | mingw*)
4974
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
4975
 
  ;;
4976
 
  linux*)
4977
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5354
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$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'
4978
5355
  ;;
4979
5356
  *)
4980
5357
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5017
5394
  # rely on this symbol name, it's probably fine to never include it in
5018
5395
  # preloaded symbol tables.
5019
5396
  extract_expsyms_cmds=
5020
 
 
 
5397
  # Just being paranoid about ensuring that cc_basename is set.
 
5398
  _LT_CC_BASENAME([$compiler])
5021
5399
  case $host_os in
5022
5400
  cygwin* | mingw* | pw32*)
5023
5401
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5027
5405
      with_gnu_ld=no
5028
5406
    fi
5029
5407
    ;;
 
5408
  interix*)
 
5409
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5410
    with_gnu_ld=yes
 
5411
    ;;
5030
5412
  openbsd*)
5031
5413
    with_gnu_ld=no
5032
5414
    ;;
5037
5419
    # If archive_cmds runs LD, not CC, wlarc should be empty
5038
5420
    wlarc='${wl}'
5039
5421
 
 
5422
    # Set some defaults for GNU ld with shared library support. These
 
5423
    # are reset later if shared libraries are not supported. Putting them
 
5424
    # here allows them to be overridden if necessary.
 
5425
    runpath_var=LD_RUN_PATH
 
5426
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5427
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5428
    # ancient GNU ld didn't support --whole-archive et. al.
 
5429
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5430
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5431
      else
 
5432
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5433
    fi
 
5434
    supports_anon_versioning=no
 
5435
    case `$LD -v 2>/dev/null` in
 
5436
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5437
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5438
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5439
      *\ 2.11.*) ;; # other 2.11 versions
 
5440
      *) supports_anon_versioning=yes ;;
 
5441
    esac
 
5442
 
5040
5443
    # See if GNU ld supports shared libraries.
5041
5444
    case $host_os in
5042
5445
    aix3* | aix4* | aix5*)
5087
5490
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5088
5491
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5089
5492
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5090
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5493
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5091
5494
 
5092
5495
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5093
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5496
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5094
5497
        # If the export-symbols file already is a .def file (1st line
5095
5498
        # is EXPORTS), use it as is; otherwise, prepend...
5096
5499
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5099
5502
          echo EXPORTS > $output_objdir/$soname.def;
5100
5503
          cat $export_symbols >> $output_objdir/$soname.def;
5101
5504
        fi~
5102
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
5103
 
      else
5104
 
        ld_shlibs=no
5105
 
      fi
5106
 
      ;;
5107
 
 
5108
 
    netbsd* | knetbsd*-gnu)
 
5505
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5506
      else
 
5507
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5508
      fi
 
5509
      ;;
 
5510
 
 
5511
    interix3*)
 
5512
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5513
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5514
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5515
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5516
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5517
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5518
      # default) and relocated if they conflict, which is a slow very memory
 
5519
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5520
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5521
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5522
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5523
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
 
5524
      ;;
 
5525
 
 
5526
    linux*)
 
5527
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5528
        tmp_addflag=
 
5529
        case $cc_basename,$host_cpu in
 
5530
        pgcc*)                          # Portland Group C compiler
 
5531
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5532
          tmp_addflag=' $pic_flag'
 
5533
          ;;
 
5534
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5535
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5536
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5537
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5538
          tmp_addflag=' -i_dynamic' ;;
 
5539
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5540
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5541
        ifc* | ifort*)                  # Intel Fortran compiler
 
5542
          tmp_addflag=' -nofor_main' ;;
 
5543
        esac
 
5544
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5545
 
 
5546
        if test $supports_anon_versioning = yes; then
 
5547
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
5548
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5549
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
5550
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5551
        fi
 
5552
      else
 
5553
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5554
      fi
 
5555
      ;;
 
5556
 
 
5557
    netbsd*)
5109
5558
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5110
5559
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5111
5560
        wlarc=
5115
5564
      fi
5116
5565
      ;;
5117
5566
 
5118
 
    solaris* | sysv5*)
 
5567
    solaris*)
5119
5568
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5120
5569
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5121
5570
        cat <<EOF 1>&2
5136
5585
      fi
5137
5586
      ;;
5138
5587
 
 
5588
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5589
      case `$LD -v 2>&1` in
 
5590
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5591
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5592
        cat <<_LT_EOF 1>&2
 
5593
 
 
5594
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5595
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5596
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5597
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5598
*** your PATH or compiler configuration so that the native linker is
 
5599
*** used, and then restart.
 
5600
 
 
5601
_LT_EOF
 
5602
        ;;
 
5603
        *)
 
5604
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5605
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5606
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5607
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5608
          else
 
5609
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5610
          fi
 
5611
        ;;
 
5612
      esac
 
5613
      ;;
 
5614
 
5139
5615
    sunos4*)
5140
5616
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5141
5617
      wlarc=
5143
5619
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5144
5620
      ;;
5145
5621
 
5146
 
  linux*)
5147
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5148
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5149
 
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5150
 
      supports_anon_versioning=no
5151
 
      case `$LD -v 2>/dev/null` in
5152
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5153
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5154
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5155
 
        *\ 2.11.*) ;; # other 2.11 versions
5156
 
        *) supports_anon_versioning=yes ;;
5157
 
      esac
5158
 
      if test $supports_anon_versioning = yes; then
5159
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5160
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5161
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
5162
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5163
 
      else
5164
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5165
 
      fi
5166
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5167
 
    else
5168
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5169
 
    fi
5170
 
    ;;
5171
 
 
5172
5622
    *)
5173
5623
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5174
5624
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5179
5629
      ;;
5180
5630
    esac
5181
5631
 
5182
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5183
 
      runpath_var=LD_RUN_PATH
5184
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5185
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5186
 
      # ancient GNU ld didn't support --whole-archive et. al.
5187
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5188
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5189
 
      else
5190
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5191
 
      fi
 
5632
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5633
      runpath_var=
 
5634
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5635
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5636
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5192
5637
    fi
5193
5638
  else
5194
5639
    # PORTME fill in a description of your system's linker (not GNU ld)
5200
5645
      # Note: this linker hardcodes the directories in LIBPATH if there
5201
5646
      # are no directories specified by -L.
5202
5647
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5203
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5648
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5204
5649
        # Neither direct hardcoding nor static linking is supported with a
5205
5650
        # broken collect2.
5206
5651
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5234
5679
            break
5235
5680
          fi
5236
5681
          done
 
5682
          ;;
5237
5683
        esac
5238
5684
 
5239
5685
        exp_sym_flag='-bexport'
5252
5698
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5253
5699
 
5254
5700
      if test "$GCC" = yes; then
5255
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
5701
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5256
5702
        # We only want to do this on AIX 4.2 and lower, the check
5257
5703
        # below for broken collect2 doesn't work under 4.3+
5258
5704
          collect2name=`${CC} -print-prog-name=collect2`
5271
5717
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5272
5718
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5273
5719
          fi
 
5720
          ;;
5274
5721
        esac
5275
5722
        shared_flag='-shared'
 
5723
        if test "$aix_use_runtimelinking" = yes; then
 
5724
          shared_flag="$shared_flag "'${wl}-G'
 
5725
        fi
5276
5726
      else
5277
5727
        # not using gcc
5278
5728
        if test "$host_cpu" = ia64; then
5280
5730
        # chokes on -Wl,-G. The following line is correct:
5281
5731
          shared_flag='-G'
5282
5732
        else
5283
 
        if test "$aix_use_runtimelinking" = yes; then
 
5733
          if test "$aix_use_runtimelinking" = yes; then
5284
5734
            shared_flag='${wl}-G'
5285
5735
          else
5286
5736
            shared_flag='${wl}-bM:SRE'
5287
 
        fi
 
5737
          fi
5288
5738
        fi
5289
5739
      fi
5290
5740
 
5298
5748
       # Determine the default libpath from the value encoded in an empty executable.
5299
5749
       _LT_AC_SYS_LIBPATH_AIX
5300
5750
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5301
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5751
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
5302
5752
       else
5303
5753
        if test "$host_cpu" = ia64; then
5304
5754
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5305
5755
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5306
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
5756
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
5307
5757
        else
5308
5758
         # Determine the default libpath from the value encoded in an empty executable.
5309
5759
         _LT_AC_SYS_LIBPATH_AIX
5312
5762
          # -berok will link without error, but may produce a broken library.
5313
5763
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5314
5764
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5315
 
          # -bexpall does not export symbols beginning with underscore (_)
5316
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5317
5765
          # Exported symbols can be pulled into shared objects from archives
5318
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5766
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5319
5767
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5320
 
          # This is similar to how AIX traditionally builds it's shared libraries.
5321
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
5768
          # This is similar to how AIX traditionally builds its shared libraries.
 
5769
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
5322
5770
        fi
5323
5771
      fi
5324
5772
      ;;
5331
5779
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5332
5780
      ;;
5333
5781
 
5334
 
    bsdi4*)
 
5782
    bsdi[[45]]*)
5335
5783
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5336
5784
      ;;
5337
5785
 
5352
5800
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5353
5801
      # FIXME: Should let the user specify the lib program.
5354
5802
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5355
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5803
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5356
5804
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5357
5805
      ;;
5358
5806
 
5359
5807
    darwin* | rhapsody*)
5360
 
    if test "$GXX" = yes ; then
 
5808
      case $host_os in
 
5809
        rhapsody* | darwin1.[[012]])
 
5810
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
5811
         ;;
 
5812
       *) # Darwin 1.3 on
 
5813
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
5814
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5815
         else
 
5816
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
5817
             10.[[012]])
 
5818
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5819
               ;;
 
5820
             10.*)
 
5821
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
5822
               ;;
 
5823
           esac
 
5824
         fi
 
5825
         ;;
 
5826
      esac
5361
5827
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5362
 
      case "$host_os" in
5363
 
      rhapsody* | darwin1.[[012]])
5364
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5365
 
        ;;
5366
 
      *) # Darwin 1.3 on
5367
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5368
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5369
 
      else
5370
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
5371
 
          10.[[012]])
5372
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5373
 
            ;;
5374
 
          10.*)
5375
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5376
 
            ;;
5377
 
        esac
5378
 
      fi
5379
 
        ;;
5380
 
      esac
5381
 
        lt_int_apple_cc_single_mod=no
 
5828
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5829
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
5830
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5831
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
5832
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5833
    if test "$GCC" = yes ; then
5382
5834
        output_verbose_link_cmd='echo'
5383
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5384
 
          lt_int_apple_cc_single_mod=yes
5385
 
        fi
5386
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5387
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5388
 
        else
5389
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5390
 
      fi
5391
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5392
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5393
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5394
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
5395
 
        else
5396
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5397
 
        fi
 
5835
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5836
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5837
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5838
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
 
5839
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
 
5840
    else
 
5841
      case $cc_basename in
 
5842
        xlc*)
 
5843
         output_verbose_link_cmd='echo'
 
5844
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
5845
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5846
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5847
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5398
5848
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
5399
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5400
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5401
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5402
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5403
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5404
 
    else
5405
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5849
          ;;
 
5850
       *)
 
5851
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5852
          ;;
 
5853
      esac
5406
5854
    fi
5407
5855
      ;;
5408
5856
 
5436
5884
      ;;
5437
5885
 
5438
5886
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5439
 
    freebsd* | kfreebsd*-gnu)
 
5887
    freebsd* | kfreebsd*-gnu | dragonfly*)
5440
5888
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5441
5889
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5442
5890
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5459
5907
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5460
5908
      ;;
5461
5909
 
5462
 
    hpux10* | hpux11*)
5463
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5464
 
        case "$host_cpu" in
5465
 
        hppa*64*|ia64*)
 
5910
    hpux10*)
 
5911
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5912
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5913
      else
 
5914
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5915
      fi
 
5916
      if test "$with_gnu_ld" = no; then
 
5917
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5918
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5919
 
 
5920
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5921
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5922
 
 
5923
        # hardcode_minus_L: Not really in the search PATH,
 
5924
        # but as the default location of the library.
 
5925
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5926
      fi
 
5927
      ;;
 
5928
 
 
5929
    hpux11*)
 
5930
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5931
        case $host_cpu in
 
5932
        hppa*64*)
5466
5933
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5467
5934
          ;;
 
5935
        ia64*)
 
5936
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5937
          ;;
5468
5938
        *)
5469
5939
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5470
5940
          ;;
5471
5941
        esac
5472
5942
      else
5473
 
        case "$host_cpu" in
5474
 
        hppa*64*|ia64*)
5475
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5943
        case $host_cpu in
 
5944
        hppa*64*)
 
5945
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5946
          ;;
 
5947
        ia64*)
 
5948
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5476
5949
          ;;
5477
5950
        *)
5478
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5951
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5479
5952
          ;;
5480
5953
        esac
5481
5954
      fi
5482
5955
      if test "$with_gnu_ld" = no; then
5483
 
        case "$host_cpu" in
5484
 
        hppa*64*)
5485
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5956
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5957
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5958
 
 
5959
        case $host_cpu in
 
5960
        hppa*64*|ia64*)
5486
5961
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5487
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5488
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5489
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5490
 
          ;;
5491
 
        ia64*)
5492
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5493
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5494
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5495
 
 
5496
 
          # hardcode_minus_L: Not really in the search PATH,
5497
 
          # but as the default location of the library.
5498
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5962
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5963
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5499
5964
          ;;
5500
5965
        *)
5501
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5502
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5503
5966
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5504
5967
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5505
5968
 
5523
5986
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5524
5987
      ;;
5525
5988
 
5526
 
    netbsd* | knetbsd*-gnu)
 
5989
    netbsd*)
5527
5990
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5528
5991
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5529
5992
      else
5547
6010
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5548
6011
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5549
6012
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6013
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5550
6014
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5551
6015
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5552
6016
      else
5592
6056
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5593
6057
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
5594
6058
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5595
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
6059
        $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'
5596
6060
 
5597
6061
        # Both c and cxx compiler support -rpath directly
5598
6062
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5600
6064
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5601
6065
      ;;
5602
6066
 
5603
 
    sco3.2v5*)
5604
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5605
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5606
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5607
 
      runpath_var=LD_RUN_PATH
5608
 
      hardcode_runpath_var=yes
5609
 
      ;;
5610
 
 
5611
6067
    solaris*)
5612
6068
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5613
6069
      if test "$GCC" = yes; then
 
6070
        wlarc='${wl}'
5614
6071
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5615
6072
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5616
6073
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5617
6074
      else
 
6075
        wlarc=''
5618
6076
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5619
6077
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5620
6078
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5623
6081
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5624
6082
      case $host_os in
5625
6083
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5626
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5627
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6084
      *)
 
6085
        # The compiler driver will combine linker options so we
 
6086
        # cannot just pass the convience library names through
 
6087
        # without $wl, iff we do not link with $LD.
 
6088
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6089
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6090
        case $wlarc in
 
6091
        '')
 
6092
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6093
        *)
 
6094
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
6095
        esac ;;
5628
6096
      esac
5629
6097
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5630
6098
      ;;
5681
6149
      fi
5682
6150
      ;;
5683
6151
 
5684
 
    sysv4.2uw2*)
5685
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5686
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5687
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5688
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5689
 
      hardcode_runpath_var=yes
5690
 
      runpath_var=LD_RUN_PATH
5691
 
      ;;
5692
 
 
5693
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
5694
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5695
 
      if test "$GCC" = yes; then
5696
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5697
 
      else
5698
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5699
 
      fi
5700
 
      runpath_var='LD_RUN_PATH'
5701
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5702
 
      ;;
5703
 
 
5704
 
    sysv5*)
5705
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5706
 
      # $CC -shared without GNU ld will not create a library from C++
5707
 
      # object files and a static libstdc++, better avoid it by now
5708
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5709
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5710
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5711
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5712
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5713
 
      runpath_var='LD_RUN_PATH'
 
6152
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6153
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6154
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6155
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6156
      runpath_var='LD_RUN_PATH'
 
6157
 
 
6158
      if test "$GCC" = yes; then
 
6159
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6160
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6161
      else
 
6162
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6163
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6164
      fi
 
6165
      ;;
 
6166
 
 
6167
    sysv5* | sco3.2v5* | sco5v6*)
 
6168
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6169
      # link with -lc, and that would cause any symbols used from libc to
 
6170
      # always be unresolved, which means just about no library would
 
6171
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6172
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6173
      # as -z defs.
 
6174
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6175
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6176
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6177
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6178
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6179
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6180
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6181
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6182
      runpath_var='LD_RUN_PATH'
 
6183
 
 
6184
      if test "$GCC" = yes; then
 
6185
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6186
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6187
      else
 
6188
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6189
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6190
      fi
5714
6191
      ;;
5715
6192
 
5716
6193
    uts4*)
5728
6205
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5729
6206
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5730
6207
 
5731
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5732
 
if test "$GCC" = yes; then
5733
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5734
 
fi
5735
 
 
5736
6208
#
5737
6209
# Do we need to explicitly link libc?
5738
6210
#
5760
6232
        libobjs=conftest.$ac_objext
5761
6233
        deplibs=
5762
6234
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6235
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5763
6236
        compiler_flags=-v
5764
6237
        linker_flags=-v
5765
6238
        verstring=
5885
6358
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5886
6359
# along with /bin/sed that truncates output.
5887
6360
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5888
 
  test ! -f $lt_ac_sed && break
 
6361
  test ! -f $lt_ac_sed && continue
5889
6362
  cat /dev/null > conftest.in
5890
6363
  lt_ac_count=0
5891
6364
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5910
6383
    fi
5911
6384
  done
5912
6385
done
 
6386
])
5913
6387
SED=$lt_cv_path_SED
5914
 
])
5915
6388
AC_MSG_RESULT([$SED])
5916
6389
])
5917
6390
 
5918
 
#                                                        -*- Autoconf -*-
5919
 
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
5920
 
# Generated from amversion.in; do not edit by hand.
5921
 
 
5922
 
# This program is free software; you can redistribute it and/or modify
5923
 
# it under the terms of the GNU General Public License as published by
5924
 
# the Free Software Foundation; either version 2, or (at your option)
5925
 
# any later version.
5926
 
 
5927
 
# This program is distributed in the hope that it will be useful,
5928
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5929
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5930
 
# GNU General Public License for more details.
5931
 
 
5932
 
# You should have received a copy of the GNU General Public License
5933
 
# along with this program; if not, write to the Free Software
5934
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6391
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6392
#
 
6393
# This file is free software; the Free Software Foundation
 
6394
# gives unlimited permission to copy and/or distribute it,
 
6395
# with or without modifications, as long as this notice is preserved.
5935
6396
 
5936
6397
# AM_AUTOMAKE_VERSION(VERSION)
5937
6398
# ----------------------------
5938
6399
# Automake X.Y traces this macro to ensure aclocal.m4 has been
5939
6400
# generated from the m4 files accompanying Automake X.Y.
5940
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
 
6401
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
5941
6402
 
5942
6403
# AM_SET_CURRENT_AUTOMAKE_VERSION
5943
6404
# -------------------------------
5944
6405
# Call AM_AUTOMAKE_VERSION so it can be traced.
5945
6406
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
5946
6407
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
5947
 
         [AM_AUTOMAKE_VERSION([1.8.5])])
5948
 
 
5949
 
# AM_AUX_DIR_EXPAND
5950
 
 
5951
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
5952
 
 
5953
 
# This program is free software; you can redistribute it and/or modify
5954
 
# it under the terms of the GNU General Public License as published by
5955
 
# the Free Software Foundation; either version 2, or (at your option)
5956
 
# any later version.
5957
 
 
5958
 
# This program is distributed in the hope that it will be useful,
5959
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5960
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5961
 
# GNU General Public License for more details.
5962
 
 
5963
 
# You should have received a copy of the GNU General Public License
5964
 
# along with this program; if not, write to the Free Software
5965
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5966
 
# 02111-1307, USA.
 
6408
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
6409
 
 
6410
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
6411
 
 
6412
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6413
#
 
6414
# This file is free software; the Free Software Foundation
 
6415
# gives unlimited permission to copy and/or distribute it,
 
6416
# with or without modifications, as long as this notice is preserved.
5967
6417
 
5968
6418
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
5969
6419
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
6010
6460
am_aux_dir=`cd $ac_aux_dir && pwd`
6011
6461
])
6012
6462
 
6013
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
6014
 
 
6015
 
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6016
 
 
6017
 
# This program is free software; you can redistribute it and/or modify
6018
 
# it under the terms of the GNU General Public License as published by
6019
 
# the Free Software Foundation; either version 2, or (at your option)
6020
 
# any later version.
6021
 
 
6022
 
# This program is distributed in the hope that it will be useful,
6023
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6024
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6025
 
# GNU General Public License for more details.
6026
 
 
6027
 
# You should have received a copy of the GNU General Public License
6028
 
# along with this program; if not, write to the Free Software
6029
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6030
 
# 02111-1307, USA.
6031
 
 
6032
 
# serial 6
 
6463
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
6464
 
 
6465
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6466
# Free Software Foundation, Inc.
 
6467
#
 
6468
# This file is free software; the Free Software Foundation
 
6469
# gives unlimited permission to copy and/or distribute it,
 
6470
# with or without modifications, as long as this notice is preserved.
 
6471
 
 
6472
# serial 7
6033
6473
 
6034
6474
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6035
6475
# -------------------------------------
6049
6489
fi
6050
6490
AC_CONFIG_COMMANDS_PRE(
6051
6491
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6052
 
  AC_MSG_ERROR([conditional "$1" was never defined.
6053
 
Usually this means the macro was only invoked conditionally.])
 
6492
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
6493
Usually this means the macro was only invoked conditionally.]])
6054
6494
fi])])
6055
6495
 
6056
 
# serial 7                                              -*- Autoconf -*-
6057
6496
 
6058
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
6497
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6059
6498
# Free Software Foundation, Inc.
6060
 
 
6061
 
# This program is free software; you can redistribute it and/or modify
6062
 
# it under the terms of the GNU General Public License as published by
6063
 
# the Free Software Foundation; either version 2, or (at your option)
6064
 
# any later version.
6065
 
 
6066
 
# This program is distributed in the hope that it will be useful,
6067
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6068
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6069
 
# GNU General Public License for more details.
6070
 
 
6071
 
# You should have received a copy of the GNU General Public License
6072
 
# along with this program; if not, write to the Free Software
6073
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6074
 
# 02111-1307, USA.
6075
 
 
 
6499
#
 
6500
# This file is free software; the Free Software Foundation
 
6501
# gives unlimited permission to copy and/or distribute it,
 
6502
# with or without modifications, as long as this notice is preserved.
 
6503
 
 
6504
# serial 8
6076
6505
 
6077
6506
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6078
6507
# written in clear, in which case automake, when reading aclocal.m4,
6081
6510
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6082
6511
 
6083
6512
 
6084
 
 
6085
6513
# _AM_DEPENDENCIES(NAME)
6086
6514
# ----------------------
6087
6515
# See how the compiler implements dependency checking.
6221
6649
AC_SUBST([AMDEPBACKSLASH])
6222
6650
])
6223
6651
 
6224
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
6225
 
 
6226
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
6227
 
 
6228
 
# This program is free software; you can redistribute it and/or modify
6229
 
# it under the terms of the GNU General Public License as published by
6230
 
# the Free Software Foundation; either version 2, or (at your option)
6231
 
# any later version.
6232
 
 
6233
 
# This program is distributed in the hope that it will be useful,
6234
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6235
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6236
 
# GNU General Public License for more details.
6237
 
 
6238
 
# You should have received a copy of the GNU General Public License
6239
 
# along with this program; if not, write to the Free Software
6240
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6241
 
# 02111-1307, USA.
6242
 
 
6243
 
#serial 2
 
6652
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
6653
 
 
6654
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6655
# Free Software Foundation, Inc.
 
6656
#
 
6657
# This file is free software; the Free Software Foundation
 
6658
# gives unlimited permission to copy and/or distribute it,
 
6659
# with or without modifications, as long as this notice is preserved.
 
6660
 
 
6661
#serial 3
6244
6662
 
6245
6663
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6246
6664
# ------------------------------
6259
6677
  else
6260
6678
    continue
6261
6679
  fi
6262
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
6263
 
  # Extract the definition of DEP_FILES from the Makefile without
6264
 
  # running `make'.
 
6680
  # Extract the definition of DEPDIR, am__include, and am__quote
 
6681
  # from the Makefile without running `make'.
6265
6682
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6266
6683
  test -z "$DEPDIR" && continue
 
6684
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
6685
  test -z "am__include" && continue
 
6686
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6267
6687
  # When using ansi2knr, U may be empty or an underscore; expand it
6268
6688
  U=`sed -n 's/^U = //p' < "$mf"`
6269
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6270
 
  # We invoke sed twice because it is the simplest approach to
6271
 
  # changing $(DEPDIR) to its actual value in the expansion.
6272
 
  for file in `sed -n '
6273
 
    /^DEP_FILES = .*\\\\$/ {
6274
 
      s/^DEP_FILES = //
6275
 
      :loop
6276
 
        s/\\\\$//
6277
 
        p
6278
 
        n
6279
 
        /\\\\$/ b loop
6280
 
      p
6281
 
    }
6282
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
6689
  # Find all dependency output files, they are included files with
 
6690
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
6691
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
6692
  # expansion.
 
6693
  for file in `sed -n "
 
6694
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6283
6695
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6284
6696
    # Make sure the directory exists.
6285
6697
    test -f "$dirpart/$file" && continue
6305
6717
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6306
6718
])
6307
6719
 
6308
 
# Do all the work for Automake.                            -*- Autoconf -*-
6309
 
 
6310
 
# This macro actually does too much some checks are only needed if
 
6720
# Do all the work for Automake.                             -*- Autoconf -*-
 
6721
 
 
6722
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6723
# Free Software Foundation, Inc.
 
6724
#
 
6725
# This file is free software; the Free Software Foundation
 
6726
# gives unlimited permission to copy and/or distribute it,
 
6727
# with or without modifications, as long as this notice is preserved.
 
6728
 
 
6729
# serial 12
 
6730
 
 
6731
# This macro actually does too much.  Some checks are only needed if
6311
6732
# your package does certain things.  But this isn't really a big deal.
6312
6733
 
6313
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6314
 
# Free Software Foundation, Inc.
6315
 
 
6316
 
# This program is free software; you can redistribute it and/or modify
6317
 
# it under the terms of the GNU General Public License as published by
6318
 
# the Free Software Foundation; either version 2, or (at your option)
6319
 
# any later version.
6320
 
 
6321
 
# This program is distributed in the hope that it will be useful,
6322
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6323
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6324
 
# GNU General Public License for more details.
6325
 
 
6326
 
# You should have received a copy of the GNU General Public License
6327
 
# along with this program; if not, write to the Free Software
6328
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6329
 
# 02111-1307, USA.
6330
 
 
6331
 
# serial 11
6332
 
 
6333
6734
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6334
6735
# AM_INIT_AUTOMAKE([OPTIONS])
6335
6736
# -----------------------------------------------
6386
6787
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6387
6788
AM_MISSING_PROG(AUTOHEADER, autoheader)
6388
6789
AM_MISSING_PROG(MAKEINFO, makeinfo)
6389
 
AM_MISSING_PROG(AMTAR, tar)
6390
6790
AM_PROG_INSTALL_SH
6391
6791
AM_PROG_INSTALL_STRIP
6392
6792
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6395
6795
AC_REQUIRE([AC_PROG_AWK])dnl
6396
6796
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6397
6797
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6398
 
 
 
6798
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
6799
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
6800
                             [_AM_PROG_TAR([v7])])])
6399
6801
_AM_IF_OPTION([no-dependencies],,
6400
6802
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6401
6803
                  [_AM_DEPENDENCIES(CC)],
6429
6831
done
6430
6832
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6431
6833
 
 
6834
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6835
#
 
6836
# This file is free software; the Free Software Foundation
 
6837
# gives unlimited permission to copy and/or distribute it,
 
6838
# with or without modifications, as long as this notice is preserved.
 
6839
 
6432
6840
# AM_PROG_INSTALL_SH
6433
6841
# ------------------
6434
6842
# Define $install_sh.
6435
 
 
6436
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6437
 
 
6438
 
# This program is free software; you can redistribute it and/or modify
6439
 
# it under the terms of the GNU General Public License as published by
6440
 
# the Free Software Foundation; either version 2, or (at your option)
6441
 
# any later version.
6442
 
 
6443
 
# This program is distributed in the hope that it will be useful,
6444
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6445
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6446
 
# GNU General Public License for more details.
6447
 
 
6448
 
# You should have received a copy of the GNU General Public License
6449
 
# along with this program; if not, write to the Free Software
6450
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6451
 
# 02111-1307, USA.
6452
 
 
6453
6843
AC_DEFUN([AM_PROG_INSTALL_SH],
6454
6844
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6455
6845
install_sh=${install_sh-"$am_aux_dir/install-sh"}
6456
6846
AC_SUBST(install_sh)])
6457
6847
 
6458
 
#                                                          -*- Autoconf -*-
6459
 
# Copyright (C) 2003  Free Software Foundation, Inc.
6460
 
 
6461
 
# This program is free software; you can redistribute it and/or modify
6462
 
# it under the terms of the GNU General Public License as published by
6463
 
# the Free Software Foundation; either version 2, or (at your option)
6464
 
# any later version.
6465
 
 
6466
 
# This program is distributed in the hope that it will be useful,
6467
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6468
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6469
 
# GNU General Public License for more details.
6470
 
 
6471
 
# You should have received a copy of the GNU General Public License
6472
 
# along with this program; if not, write to the Free Software
6473
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6474
 
# 02111-1307, USA.
6475
 
 
6476
 
# serial 1
 
6848
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
6849
#
 
6850
# This file is free software; the Free Software Foundation
 
6851
# gives unlimited permission to copy and/or distribute it,
 
6852
# with or without modifications, as long as this notice is preserved.
 
6853
 
 
6854
# serial 2
6477
6855
 
6478
6856
# Check whether the underlying file-system supports filenames
6479
6857
# with a leading dot.  For instance MS-DOS doesn't.
6488
6866
rmdir .tst 2>/dev/null
6489
6867
AC_SUBST([am__leading_dot])])
6490
6868
 
6491
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
6492
 
 
6493
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6494
 
 
6495
 
# This program is free software; you can redistribute it and/or modify
6496
 
# it under the terms of the GNU General Public License as published by
6497
 
# the Free Software Foundation; either version 2, or (at your option)
6498
 
# any later version.
6499
 
 
6500
 
# This program is distributed in the hope that it will be useful,
6501
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6502
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6503
 
# GNU General Public License for more details.
6504
 
 
6505
 
# You should have received a copy of the GNU General Public License
6506
 
# along with this program; if not, write to the Free Software
6507
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6508
 
# 02111-1307, USA.
6509
 
 
6510
 
# serial 2
 
6869
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
6870
 
 
6871
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
6872
#
 
6873
# This file is free software; the Free Software Foundation
 
6874
# gives unlimited permission to copy and/or distribute it,
 
6875
# with or without modifications, as long as this notice is preserved.
 
6876
 
 
6877
# serial 3
6511
6878
 
6512
6879
# AM_MAKE_INCLUDE()
6513
6880
# -----------------
6551
6918
rm -f confinc confmf
6552
6919
])
6553
6920
 
6554
 
#  -*- Autoconf -*-
6555
 
 
6556
 
 
6557
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
6558
 
 
6559
 
# This program is free software; you can redistribute it and/or modify
6560
 
# it under the terms of the GNU General Public License as published by
6561
 
# the Free Software Foundation; either version 2, or (at your option)
6562
 
# any later version.
6563
 
 
6564
 
# This program is distributed in the hope that it will be useful,
6565
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6566
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6567
 
# GNU General Public License for more details.
6568
 
 
6569
 
# You should have received a copy of the GNU General Public License
6570
 
# along with this program; if not, write to the Free Software
6571
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6572
 
# 02111-1307, USA.
 
6921
# Copyright (C) 1999, 2000, 2001, 2003, 2005  Free Software Foundation, Inc.
 
6922
#
 
6923
# This file is free software; the Free Software Foundation
 
6924
# gives unlimited permission to copy and/or distribute it,
 
6925
# with or without modifications, as long as this notice is preserved.
6573
6926
 
6574
6927
# serial 3
6575
6928
 
 
6929
# AM_PROG_CC_C_O
 
6930
# --------------
 
6931
# Like AC_PROG_CC_C_O, but changed for automake.
 
6932
AC_DEFUN([AM_PROG_CC_C_O],
 
6933
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
6934
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
6935
# FIXME: we rely on the cache variable name because
 
6936
# there is no other way.
 
6937
set dummy $CC
 
6938
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
6939
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
6940
   # Losing compiler, so override with the script.
 
6941
   # FIXME: It is wrong to rewrite CC.
 
6942
   # But if we don't then we get into trouble of one sort or another.
 
6943
   # A longer-term fix would be to have automake use am__CC in this case,
 
6944
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
6945
   CC="$am_aux_dir/compile $CC"
 
6946
fi
 
6947
])
 
6948
 
 
6949
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
6950
 
 
6951
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
6952
# Free Software Foundation, Inc.
 
6953
#
 
6954
# This file is free software; the Free Software Foundation
 
6955
# gives unlimited permission to copy and/or distribute it,
 
6956
# with or without modifications, as long as this notice is preserved.
 
6957
 
 
6958
# serial 4
 
6959
 
6576
6960
# AM_MISSING_PROG(NAME, PROGRAM)
6577
6961
# ------------------------------
6578
6962
AC_DEFUN([AM_MISSING_PROG],
6597
6981
fi
6598
6982
])
6599
6983
 
 
6984
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
6985
#
 
6986
# This file is free software; the Free Software Foundation
 
6987
# gives unlimited permission to copy and/or distribute it,
 
6988
# with or without modifications, as long as this notice is preserved.
 
6989
 
6600
6990
# AM_PROG_MKDIR_P
6601
6991
# ---------------
6602
6992
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6603
 
 
6604
 
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
6605
 
 
6606
 
# This program is free software; you can redistribute it and/or modify
6607
 
# it under the terms of the GNU General Public License as published by
6608
 
# the Free Software Foundation; either version 2, or (at your option)
6609
 
# any later version.
6610
 
 
6611
 
# This program is distributed in the hope that it will be useful,
6612
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6613
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6614
 
# GNU General Public License for more details.
6615
 
 
6616
 
# You should have received a copy of the GNU General Public License
6617
 
# along with this program; if not, write to the Free Software
6618
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6619
 
# 02111-1307, USA.
6620
 
 
 
6993
#
6621
6994
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6622
6995
# created by `make install' are always world readable, even if the
6623
6996
# installer happens to have an overly restrictive umask (e.g. 077).
6638
7011
# this.)
6639
7012
AC_DEFUN([AM_PROG_MKDIR_P],
6640
7013
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6641
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
6642
 
  # argument.  Indeed, we sometimes output rules like
 
7014
  # We used to keeping the `.' as first argument, in order to
 
7015
  # allow $(mkdir_p) to be used without argument.  As in
6643
7016
  #   $(mkdir_p) $(somedir)
6644
 
  # where $(somedir) is conditionally defined.
6645
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
6646
 
  # expensive solution, as it forces Make to start a sub-shell.)
6647
 
  mkdir_p='mkdir -p -- .'
 
7017
  # where $(somedir) is conditionally defined.  However this is wrong
 
7018
  # for two reasons:
 
7019
  #  1. if the package is installed by a user who cannot write `.'
 
7020
  #     make install will fail,
 
7021
  #  2. the above comment should most certainly read
 
7022
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
7023
  #     so it does not work when $(somedir) is undefined and
 
7024
  #     $(DESTDIR) is not.
 
7025
  #  To support the latter case, we have to write
 
7026
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
7027
  #  so the `.' trick is pointless.
 
7028
  mkdir_p='mkdir -p --'
6648
7029
else
6649
7030
  # On NextStep and OpenStep, the `mkdir' command does not
6650
7031
  # recognize any option.  It will interpret all options as
6663
7044
fi
6664
7045
AC_SUBST([mkdir_p])])
6665
7046
 
6666
 
# Helper functions for option handling.                    -*- Autoconf -*-
6667
 
 
6668
 
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
6669
 
 
6670
 
# This program is free software; you can redistribute it and/or modify
6671
 
# it under the terms of the GNU General Public License as published by
6672
 
# the Free Software Foundation; either version 2, or (at your option)
6673
 
# any later version.
6674
 
 
6675
 
# This program is distributed in the hope that it will be useful,
6676
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6677
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6678
 
# GNU General Public License for more details.
6679
 
 
6680
 
# You should have received a copy of the GNU General Public License
6681
 
# along with this program; if not, write to the Free Software
6682
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6683
 
# 02111-1307, USA.
6684
 
 
6685
 
# serial 2
 
7047
# Helper functions for option handling.                     -*- Autoconf -*-
 
7048
 
 
7049
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
7050
#
 
7051
# This file is free software; the Free Software Foundation
 
7052
# gives unlimited permission to copy and/or distribute it,
 
7053
# with or without modifications, as long as this notice is preserved.
 
7054
 
 
7055
# serial 3
6686
7056
 
6687
7057
# _AM_MANGLE_OPTION(NAME)
6688
7058
# -----------------------
6707
7077
AC_DEFUN([_AM_IF_OPTION],
6708
7078
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6709
7079
 
6710
 
 
6711
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
7080
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6712
7081
# Free Software Foundation, Inc.
6713
 
 
6714
 
# This program is free software; you can redistribute it and/or modify
6715
 
# it under the terms of the GNU General Public License as published by
6716
 
# the Free Software Foundation; either version 2, or (at your option)
6717
 
# any later version.
6718
 
 
6719
 
# This program is distributed in the hope that it will be useful,
6720
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6721
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6722
 
# GNU General Public License for more details.
6723
 
 
6724
 
# You should have received a copy of the GNU General Public License
6725
 
# along with this program; if not, write to the Free Software
6726
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6727
 
# 02111-1307, USA.
 
7082
#
 
7083
# This file is free software; the Free Software Foundation
 
7084
# gives unlimited permission to copy and/or distribute it,
 
7085
# with or without modifications, as long as this notice is preserved.
6728
7086
 
6729
7087
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
6730
 
 
 
7088
# ---------------------------------------------------------------------------
6731
7089
# Adds support for distributing Python modules and packages.  To
6732
7090
# install modules, copy them to $(pythondir), using the python_PYTHON
6733
7091
# automake variable.  To install a package with the same name as the
6734
7092
# automake package, install to $(pkgpythondir), or use the
6735
7093
# pkgpython_PYTHON automake variable.
6736
 
 
 
7094
#
6737
7095
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
6738
7096
# locations to install python extension modules (shared libraries).
6739
7097
# Another macro is required to find the appropriate flags to compile
6740
7098
# extension modules.
6741
 
 
 
7099
#
6742
7100
# If your package is configured with a different prefix to python,
6743
7101
# users will have to add the install directory to the PYTHONPATH
6744
7102
# environment variable, or create a .pth file (see the python
6745
7103
# documentation for details).
6746
 
 
 
7104
#
6747
7105
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
6748
7106
# cause an error if the version of python installed on the system
6749
7107
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
6750
7108
# numbers and dots only.
6751
 
 
6752
7109
AC_DEFUN([AM_PATH_PYTHON],
6753
7110
 [
6754
7111
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
6755
7112
  dnl supported because the default installation locations changed from
6756
7113
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
6757
7114
  dnl in 1.5.
6758
 
  m4_define([_AM_PYTHON_INTERPRETER_LIST],
6759
 
            [python python2 python2.4 python2.3 python2.2 dnl
 
7115
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
 
7116
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
6760
7117
python2.1 python2.0 python1.6 python1.5])
6761
7118
 
6762
7119
  m4_if([$1],[],[
6763
7120
    dnl No version check is needed.
6764
7121
    # Find any Python interpreter.
6765
7122
    if test -z "$PYTHON"; then
6766
 
      PYTHON=:
6767
 
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST)
 
7123
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
6768
7124
    fi
6769
7125
    am_display_PYTHON=python
6770
7126
  ], [
6885
7241
sys.exit(sys.hexversion < minverhex)"
6886
7242
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
6887
7243
 
6888
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.     -*- Autoconf -*-
6889
 
 
6890
 
# This program is free software; you can redistribute it and/or modify
6891
 
# it under the terms of the GNU General Public License as published by
6892
 
# the Free Software Foundation; either version 2, or (at your option)
6893
 
# any later version.
6894
 
 
6895
 
# This program is distributed in the hope that it will be useful,
6896
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6897
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6898
 
# GNU General Public License for more details.
6899
 
 
6900
 
# You should have received a copy of the GNU General Public License
6901
 
# along with this program; if not, write to the Free Software
6902
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6903
 
# 02111-1307, USA.
 
7244
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7245
#
 
7246
# This file is free software; the Free Software Foundation
 
7247
# gives unlimited permission to copy and/or distribute it,
 
7248
# with or without modifications, as long as this notice is preserved.
6904
7249
 
6905
7250
# AM_RUN_LOG(COMMAND)
6906
7251
# -------------------
6913
7258
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
6914
7259
   (exit $ac_status); }])
6915
7260
 
6916
 
#
6917
 
# Check to make sure that the build environment is sane.
6918
 
#
6919
 
 
6920
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6921
 
 
6922
 
# This program is free software; you can redistribute it and/or modify
6923
 
# it under the terms of the GNU General Public License as published by
6924
 
# the Free Software Foundation; either version 2, or (at your option)
6925
 
# any later version.
6926
 
 
6927
 
# This program is distributed in the hope that it will be useful,
6928
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6929
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6930
 
# GNU General Public License for more details.
6931
 
 
6932
 
# You should have received a copy of the GNU General Public License
6933
 
# along with this program; if not, write to the Free Software
6934
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6935
 
# 02111-1307, USA.
6936
 
 
6937
 
# serial 3
 
7261
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
7262
 
 
7263
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
7264
# Free Software Foundation, Inc.
 
7265
#
 
7266
# This file is free software; the Free Software Foundation
 
7267
# gives unlimited permission to copy and/or distribute it,
 
7268
# with or without modifications, as long as this notice is preserved.
 
7269
 
 
7270
# serial 4
6938
7271
 
6939
7272
# AM_SANITY_CHECK
6940
7273
# ---------------
6977
7310
fi
6978
7311
AC_MSG_RESULT(yes)])
6979
7312
 
 
7313
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7314
#
 
7315
# This file is free software; the Free Software Foundation
 
7316
# gives unlimited permission to copy and/or distribute it,
 
7317
# with or without modifications, as long as this notice is preserved.
 
7318
 
6980
7319
# AM_PROG_INSTALL_STRIP
6981
 
 
6982
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6983
 
 
6984
 
# This program is free software; you can redistribute it and/or modify
6985
 
# it under the terms of the GNU General Public License as published by
6986
 
# the Free Software Foundation; either version 2, or (at your option)
6987
 
# any later version.
6988
 
 
6989
 
# This program is distributed in the hope that it will be useful,
6990
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6991
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6992
 
# GNU General Public License for more details.
6993
 
 
6994
 
# You should have received a copy of the GNU General Public License
6995
 
# along with this program; if not, write to the Free Software
6996
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6997
 
# 02111-1307, USA.
6998
 
 
 
7320
# ---------------------
6999
7321
# One issue with vendor `install' (even GNU) is that you can't
7000
7322
# specify the program used to strip binaries.  This is especially
7001
7323
# annoying in cross-compiling environments, where the build's strip
7016
7338
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7017
7339
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7018
7340
 
7019
 
dnl Available from the GNU Autoconf Macro Archive at:
7020
 
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_pkg_swig.html
7021
 
dnl
7022
 
AC_DEFUN([AC_PROG_SWIG],[
7023
 
        AC_PATH_PROG([SWIG],[swig])
7024
 
        if test -z "$SWIG" ; then
7025
 
                AC_MSG_WARN([cannot find 'swig' program. You should look at http://www.swig.org])
7026
 
                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
7027
 
        elif test -n "$1" ; then
7028
 
                AC_MSG_CHECKING([for SWIG version])
7029
 
                [swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`]
7030
 
                AC_MSG_RESULT([$swig_version])
7031
 
                if test -n "$swig_version" ; then
7032
 
                        # Calculate the required version number components
7033
 
                        [required=$1]
7034
 
                        [required_major=`echo $required | sed 's/[^0-9].*//'`]
7035
 
                        if test -z "$required_major" ; then
7036
 
                                [required_major=0]
7037
 
                        fi
7038
 
                        [required=`echo $required | sed 's/[0-9]*[^0-9]//'`]
7039
 
                        [required_minor=`echo $required | sed 's/[^0-9].*//'`]
7040
 
                        if test -z "$required_minor" ; then
7041
 
                                [required_minor=0]
7042
 
                        fi
7043
 
                        [required=`echo $required | sed 's/[0-9]*[^0-9]//'`]
7044
 
                        [required_patch=`echo $required | sed 's/[^0-9].*//'`]
7045
 
                        if test -z "$required_patch" ; then
7046
 
                                [required_patch=0]
7047
 
                        fi
7048
 
                        # Calculate the available version number components
7049
 
                        [available=$swig_version]
7050
 
                        [available_major=`echo $available | sed 's/[^0-9].*//'`]
7051
 
                        if test -z "$available_major" ; then
7052
 
                                [available_major=0]
7053
 
                        fi
7054
 
                        [available=`echo $available | sed 's/[0-9]*[^0-9]//'`]
7055
 
                        [available_minor=`echo $available | sed 's/[^0-9].*//'`]
7056
 
                        if test -z "$available_minor" ; then
7057
 
                                [available_minor=0]
7058
 
                        fi
7059
 
                        [available=`echo $available | sed 's/[0-9]*[^0-9]//'`]
7060
 
                        [available_patch=`echo $available | sed 's/[^0-9].*//'`]
7061
 
                        if test -z "$available_patch" ; then
7062
 
                                [available_patch=0]
7063
 
                        fi
7064
 
                        if test $available_major -ne $required_major \
7065
 
                                -o $available_minor -ne $required_minor \
7066
 
                                -o $available_patch -lt $required_patch ; then
7067
 
                                AC_MSG_WARN([SWIG version >= $1 is required.  You have $swig_version.  You should look at http://www.swig.org])
7068
 
                                SWIG='echo "Error: SWIG version >= $1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
7069
 
                        else
7070
 
                                AC_MSG_NOTICE([SWIG executable is '$SWIG'])
7071
 
                                SWIG_LIB=`$SWIG -swiglib`
7072
 
                                AC_MSG_NOTICE([SWIG runtime library directory is '$SWIG_LIB'])
7073
 
                        fi
7074
 
                else
7075
 
                        AC_MSG_WARN([cannot determine SWIG version])
7076
 
                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
7077
 
                fi
7078
 
        fi
7079
 
        AC_SUBST([SWIG_LIB])
7080
 
])
7081
 
 
7082
 
# SWIG_ENABLE_CXX()
7083
 
#
7084
 
# Enable SWIG C++ support.  This affects all invocations of $(SWIG).
7085
 
AC_DEFUN([SWIG_ENABLE_CXX],[
7086
 
        AC_REQUIRE([AC_PROG_SWIG])
7087
 
        AC_REQUIRE([AC_PROG_CXX])
7088
 
        SWIG="$SWIG -c++"
7089
 
])
7090
 
 
7091
 
# SWIG_MULTI_MODULE_SUPPORT()
7092
 
#
7093
 
# Enable support for multiple modules.  This effects all invocations
7094
 
# of $(SWIG).  You have to link all generated modules against the
7095
 
# appropriate SWIG runtime library.  If you want to build Python
7096
 
# modules for example, use the SWIG_PYTHON() macro and link the
7097
 
# modules against $(SWIG_PYTHON_LIBS).
7098
 
AC_DEFUN([SWIG_MULTI_MODULE_SUPPORT],[
7099
 
        AC_REQUIRE([AC_PROG_SWIG])
7100
 
        SWIG="$SWIG -c"
7101
 
])
7102
 
 
7103
 
# SWIG_PYTHON([use-shadow-classes = {no, yes}])
7104
 
#
7105
 
# Checks for Python and provides the $(SWIG_PYTHON_CPPFLAGS),
7106
 
# $(SWIG_PYTHON_LIBS) and $(SWIG_PYTHON_OPT) output variables.
7107
 
# $(SWIG_PYTHON_OPT) contains all necessary SWIG options to generate
7108
 
# code for Python.  Shadow classes are enabled unless the value of the
7109
 
# optional first argument is exactly 'no'.  If you need multi module
7110
 
# support (provided by the SWIG_MULTI_MODULE_SUPPORT() macro) use
7111
 
# $(SWIG_PYTHON_LIBS) to link against the appropriate library.  It
7112
 
# contains the SWIG Python runtime library that is needed by the type
7113
 
# check system for example.
7114
 
AC_DEFUN([SWIG_PYTHON],[
7115
 
        AC_REQUIRE([AC_PROG_SWIG])
7116
 
        AC_REQUIRE([AC_PYTHON_DEVEL])
7117
 
        test "x$1" != "xno" || swig_shadow=" -noproxy"
7118
 
        AC_SUBST([SWIG_PYTHON_OPT],[-python$swig_shadow])
7119
 
        AC_SUBST([SWIG_PYTHON_CPPFLAGS],[$PYTHON_CPPFLAGS])
7120
 
        AC_SUBST([SWIG_PYTHON_LIBS],["-L$SWIG_LIB -lswigpy"])
7121
 
])
7122
 
 
7123
 
 
7124
 
dnl @synopsis AC_LIB_WAD
7125
 
dnl
7126
 
dnl This macro searches for installed WAD library.
7127
 
dnl
7128
 
AC_DEFUN([AC_LIB_WAD],
7129
 
[
7130
 
        AC_REQUIRE([AC_PYTHON_DEVEL])
7131
 
        AC_ARG_ENABLE(wad,
7132
 
        AC_HELP_STRING([--enable-wad], [enable wad module]),
7133
 
        [
7134
 
                case "${enableval}" in
7135
 
                        no)     ;;
7136
 
                        *)      if test "x${enableval}" = xyes;
7137
 
                                then
7138
 
                                        check_wad="yes"
7139
 
                                fi ;;
7140
 
                esac
7141
 
        ], [])
7142
 
 
7143
 
        if test -n "$check_wad";
7144
 
        then
7145
 
                AC_CHECK_LIB(wadpy, _init, [WADPY=-lwadpy], [], $PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS)
7146
 
                AC_SUBST(WADPY)
7147
 
        fi
7148
 
])
7149
 
 
7150
 
dnl Available from the GNU Autoconf Macro Archive at:
7151
 
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_python_devel.html
7152
 
dnl
7153
 
AC_DEFUN([AC_PYTHON_DEVEL],[
7154
 
        #
7155
 
        # should allow for checking of python version here...
7156
 
        #
7157
 
        AC_REQUIRE([AM_PATH_PYTHON])
7158
 
 
7159
 
        # Check for Python include path
7160
 
        AC_MSG_CHECKING([for Python include path])
7161
 
        python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
7162
 
        for i in "$python_path/include/python$PYTHON_VERSION/" "$python_path/include/python/" "$python_path/" ; do
7163
 
                python_path=`find $i -type f -name Python.h -print | sed "1q"`
7164
 
                if test -n "$python_path" ; then
7165
 
                        break
7166
 
                fi
7167
 
        done
7168
 
        python_path=`echo $python_path | sed "s,/Python.h$,,"`
7169
 
        AC_MSG_RESULT([$python_path])
7170
 
        if test -z "$python_path" ; then
7171
 
                AC_MSG_ERROR([cannot find Python include path])
7172
 
        fi
7173
 
        AC_SUBST([PYTHON_CPPFLAGS],[-I$python_path])
7174
 
 
7175
 
        # Check for Python library path
7176
 
        AC_MSG_CHECKING([for Python library path])
7177
 
        python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
7178
 
        for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
7179
 
                python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
7180
 
                if test -n "$python_path" ; then
7181
 
                        break
7182
 
                fi
7183
 
        done
7184
 
        python_path=`echo $python_path | sed "s,/libpython.*$,,"`
7185
 
        AC_MSG_RESULT([$python_path])
7186
 
        if test -z "$python_path" ; then
7187
 
                AC_MSG_ERROR([cannot find Python library path])
7188
 
        fi
7189
 
        AC_SUBST([PYTHON_LDFLAGS],["-L$python_path -lpython$PYTHON_VERSION"])
7190
 
        #
7191
 
        python_site=`echo $python_path | sed "s/config/site-packages/"`
7192
 
        AC_SUBST([PYTHON_SITE_PKG],[$python_site])
7193
 
        #
7194
 
        # libraries which must be linked in when embedding
7195
 
        #
7196
 
        AC_MSG_CHECKING(python extra libraries)
7197
 
        PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
7198
 
                conf = distutils.sysconfig.get_config_var; \
7199
 
                print conf('LOCALMODLIBS')+' '+conf('LIBS')"
7200
 
        AC_MSG_RESULT($PYTHON_EXTRA_LIBS)`
7201
 
        AC_SUBST(PYTHON_EXTRA_LIBS)
7202
 
])
7203
 
 
7204
 
dnl $Id: acinclude.m4,v 1.7 2004/04/04 20:51:58 rlaboiss Exp $ --*-Autoconf-*--
7205
 
dnl
7206
 
dnl Local autoconf extensions.  These are based on the autoconf builtin
7207
 
dnl macros, and you can do what you want with them.
7208
 
dnl
7209
 
dnl Maurice LeBrun
7210
 
dnl IFS, University of Texas at Austin
7211
 
dnl 14-Jul-1994
7212
 
dnl
7213
 
dnl Copyright (C) 2003, 2004  Rafael Laboissiere
7214
 
dnl Copyright (C) 2004  Alan W. Irwin
7215
 
dnl
7216
 
dnl This file is part of PLplot.
7217
 
dnl
7218
 
dnl PLplot is free software; you can redistribute it and/or modify
7219
 
dnl it under the terms of the GNU General Library Public License as published
7220
 
dnl by the Free Software Foundation; either version 2 of the License, or
7221
 
dnl (at your option) any later version.
7222
 
dnl
7223
 
dnl PLplot is distributed in the hope that it will be useful,
7224
 
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
7225
 
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7226
 
dnl GNU Library General Public License for more details.
7227
 
dnl
7228
 
dnl You should have received a copy of the GNU Library General Public License
7229
 
dnl along with PLplot; if not, write to the Free Software
7230
 
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
7231
 
dnl
7232
 
dnl ------------------------------------------------------------------------
7233
 
dnl Include macro which knows about the cf/ directory
7234
 
dnl
7235
 
define([PL_INCLUDE], [builtin([include], [cf/$1])])
7236
 
dnl
7237
 
dnl ------------------------------------------------------------------------
7238
 
dnl This quicky is good during development, e.g. PL_IGNORE([ ... ]) to
7239
 
dnl ignore everything inside the brackets.
7240
 
dnl
7241
 
AC_DEFUN([PL_IGNORE],)
7242
 
dnl
7243
 
dnl ------------------------------------------------------------------------
7244
 
dnl PL_ARG_ENABLE(enable-option, help-string, default-value)
7245
 
dnl
7246
 
AC_DEFUN([PL_ARG_ENABLE],[
7247
 
  AC_ARG_ENABLE($1,
7248
 
    AS_HELP_STRING([--enable-$1], [$2 @<:@default=$3@:>@]),
7249
 
    [enable_[]translit($1, [-], [_])=$enableval],
7250
 
    [enable_[]translit($1, [-], [_])=$3])])
7251
 
dnl ------------------------------------------------------------------------
7252
 
dnl PL_ARG_WITH(enable-option, help-string, default-value)
7253
 
dnl
7254
 
AC_DEFUN([PL_ARG_WITH],[
7255
 
  AC_ARG_WITH($1,
7256
 
    AS_HELP_STRING([--with-$1], [$2 @<:@default=$3@:>@]),
7257
 
    [with_[]translit($1, [-], [_])=$withval],
7258
 
    [with_[]translit($1, [-], [_])=$3])])
7259
 
dnl ------------------------------------------------------------------------
7260
 
dnl Add device/driver information to help string and *_DRIVERS list
7261
 
dnl
7262
 
dnl PL_ADD_DRIVER(device, driver, enable_default)
7263
 
dnl
7264
 
define([PL_ARG_ENABLE_DRIVER],
7265
 
  [PL_ARG_ENABLE($1, [enable $1 device driver], $3)])
7266
 
dnl
7267
 
dnl ------------------------------------------------------------------------
7268
 
dnl Recursive macro to set up all driver help entries
7269
 
dnl
7270
 
dnl PL_DRIVERS(device:driver:enable_default, ...)
7271
 
dnl
7272
 
define(PL_ARG_ENABLE_DRIVERS,[ifelse($1,,,dnl
7273
 
[PL_ARG_ENABLE_DRIVER(patsubst($1, [:.*], []),dnl
7274
 
patsubst(patsubst($1, [^[^:]+:], []), [:.*], []),dnl
7275
 
patsubst($1, [^.*:], []))dnl
7276
 
PL_ARG_ENABLE_DRIVERS(builtin([shift],$*))])])
7277
 
dnl
7278
 
dnl ------------------------------------------------------------------------
7279
 
define([PL_ADD_DRIVER], [
7280
 
PL_ARG_ENABLE($1, [enable $1 device driver], $3)
7281
 
if test "$enable_$1" = yes -o "$enable_$1 $enable_drivers" = " yes" ; then
7282
 
 
7283
 
    enable_$1="yes"
7284
 
 
7285
 
    if test "$enable_dyndrivers" = yes ; then
7286
 
        pl_suffix=la
7287
 
        pl_drivers_list="$DYNAMIC_DRIVERS"
7288
 
    else
7289
 
        pl_suffix=lo
7290
 
        pl_drivers_list="$STATIC_DRIVERS"
7291
 
    fi
7292
 
 
7293
 
    found=0
7294
 
    for pl_drv in $pl_drivers_list ; do
7295
 
        if test "$pl_drv" = "$2.$pl_suffix" ; then
7296
 
            found=1
7297
 
            break
7298
 
        fi
7299
 
    done
7300
 
 
7301
 
    if test $found = 0; then
7302
 
        if test -z "$pl_drivers_list" ; then
7303
 
            pl_drivers_list="$2.$pl_suffix"
7304
 
        else
7305
 
            pl_drivers_list="$pl_drivers_list $2.$pl_suffix"
7306
 
        fi
7307
 
        echo -n $pl_driver
7308
 
    fi
7309
 
 
7310
 
    if test "$enable_dyndrivers" = yes ; then
7311
 
        DYNAMIC_DRIVERS="$pl_drivers_list"
7312
 
    else
7313
 
        STATIC_DRIVERS="$pl_drivers_list"
7314
 
    fi
7315
 
 
7316
 
    AC_DEFINE(PLD_$1, [], [Define if $1 driver is present])
7317
 
    if test -z "$pl_drivers_list" ; then
7318
 
        DEVICES="$1"
7319
 
    else
7320
 
        DEVICES="$DEVICES $1"
7321
 
    fi
7322
 
 
7323
 
else
7324
 
 
7325
 
    enable_$1="no"
7326
 
 
7327
 
fi
7328
 
])
7329
 
dnl
7330
 
dnl ------------------------------------------------------------------------
7331
 
dnl Recursive macro to set up all driver help entries
7332
 
dnl
7333
 
dnl PL_DRIVERS(device:driver:enable_default, ...)
7334
 
dnl
7335
 
define(PL_ADD_DRIVERS,[ifelse($1,,,dnl
7336
 
[PL_ADD_DRIVER(patsubst($1, [:.*], []),dnl
7337
 
patsubst(patsubst($1, [^[^:]+:], []), [:.*], []),dnl
7338
 
patsubst($1, [^.*:], []))dnl
7339
 
PL_ADD_DRIVERS(builtin([shift],$*))])])
7340
 
dnl
7341
 
dnl ------------------------------------------------------------------------
7342
 
dnl The following macros search a list of directories for the given
7343
 
dnl include file and takes appropriate actions if found or not.
7344
 
dnl Arguments:
7345
 
dnl     $1 - the include file name, the part before the .h
7346
 
dnl     $2 - a variable that holds the matched directory name
7347
 
dnl     $3 - a variable indicating if the search succeeded ("yes"/"no")
7348
 
dnl          (if missing, we exit)
7349
 
dnl Use just PL_FIND_INC, or the PL_FIND_INC_<...> set for more control.
7350
 
dnl
7351
 
define(PL_FIND_INC_BEGIN, [
7352
 
    AC_MSG_CHECKING(for $1.h)
7353
 
    $2=""
7354
 
])
7355
 
define(PL_FIND_INC_SET, [
7356
 
    for dir in $incdirs; do
7357
 
        if test -r "$dir/$1.h"; then
7358
 
            $2="$dir"
7359
 
            AC_MSG_RESULT($dir/$1.h)
7360
 
            break
7361
 
        fi
7362
 
    done
7363
 
])
7364
 
define(PL_FIND_INC_END, [
7365
 
    if test -z "$$2"; then
7366
 
        ifelse($3,,[
7367
 
            AC_MSG_RESULT(not found -- exiting)
7368
 
            exit 1
7369
 
        ],[
7370
 
            AC_MSG_RESULT(no)
7371
 
            AC_MSG_RESULT([warning: can't find $1.h, setting $3 to no])
7372
 
            $3="no"
7373
 
        ])
7374
 
    fi
7375
 
    if test "$$2" = "/usr/include"; then
7376
 
        $2="default"
7377
 
    fi
7378
 
])
7379
 
define(PL_FIND_INC, [
7380
 
    PL_FIND_INC_BEGIN($*)
7381
 
    PL_FIND_INC_SET($*)
7382
 
    PL_FIND_INC_END($*)
7383
 
])
7384
 
dnl ------------------------------------------------------------------------
7385
 
dnl The following macro searches a list of directories for the given
7386
 
dnl library file and takes appropriate actions if found or not.
7387
 
dnl Use just PL_FIND_LIB, or the PL_FIND_LIB_<...> set for more control.
7388
 
dnl
7389
 
dnl Arguments:
7390
 
dnl     $1 - the library name, the part after the -l and before the "."
7391
 
dnl     $2 - a variable that holds the matched directory name
7392
 
dnl
7393
 
dnl PL_FIND_LIB_SET takes:
7394
 
dnl     $3 - a variable that holds the matched library name in a form
7395
 
dnl          suitable for input to the linker (without the suffix, so that
7396
 
dnl          any shared library form is given preference).
7397
 
dnl
7398
 
dnl PL_FIND_LIB_END takes:
7399
 
dnl     $3 - a variable indicating if the search succeeded ("yes"/"no")
7400
 
dnl          (if missing, we exit)
7401
 
dnl
7402
 
dnl PL_FIND_LIB takes these as $3 and $4, respectively.
7403
 
dnl
7404
 
define(PL_FIND_LIB_BEGIN, [
7405
 
    AC_MSG_CHECKING(for lib$1)
7406
 
    $2=""
7407
 
])
7408
 
define(PL_FIND_LIB_SET, [
7409
 
    for dir in $libdirs; do
7410
 
        if test -z "$LIBEXTNS"; then
7411
 
            LIBEXTNS="so a"
7412
 
        fi
7413
 
        for suffix in $LIBEXTNS; do
7414
 
            if test -f "$dir/lib$1.$suffix"; then
7415
 
                $2="$dir"
7416
 
                $3="-l$1"
7417
 
                AC_MSG_RESULT($dir/lib$1.$suffix)
7418
 
                break 2
7419
 
            fi
7420
 
        done
7421
 
    done
7422
 
])
7423
 
define(PL_FIND_LIB_END, [
7424
 
    if test -z "$$2"; then
7425
 
        ifelse($3,,[
7426
 
            AC_MSG_ERROR(not found -- exiting)
7427
 
        ],[
7428
 
            AC_MSG_RESULT(no)
7429
 
            AC_MSG_WARN([can't find lib$1, setting $3 to no])
7430
 
            $3="no"
7431
 
        ])
7432
 
    fi
7433
 
    if test "$$2" = "/usr/lib"; then
7434
 
        $2="default"
7435
 
    fi
7436
 
])
7437
 
define(PL_FIND_LIB, [
7438
 
    PL_FIND_LIB_BEGIN($1, $2)
7439
 
    PL_FIND_LIB_SET($1, $2, $3)
7440
 
    PL_FIND_LIB_END($1, $2, $4)
7441
 
])
7442
 
dnl ------------------------------------------------------------------------
7443
 
dnl The following macro makes it easier to add includes without adding
7444
 
dnl redundant -I specifications (to keep the build line concise).
7445
 
dnl Arguments:
7446
 
dnl     $1 - the searched directory name
7447
 
dnl     $2 - a variable that holds the include specification
7448
 
dnl     $3 - a variable that holds all the directories searched so far
7449
 
dnl
7450
 
define([PL_ADD_TO_INCS],[
7451
 
    INCSW=""
7452
 
    if test "$1" != "default"; then
7453
 
        INCSW="-I$1"
7454
 
    fi
7455
 
    for dir in $$3; do
7456
 
        if test "$1" = "$dir"; then
7457
 
            INCSW=""
7458
 
            break
7459
 
        fi
7460
 
    done
7461
 
    if test -n "$INCSW"; then
7462
 
        $2="$$2 $INCSW"
7463
 
    fi
7464
 
    $3="$$3 $1"
7465
 
])
7466
 
dnl ------------------------------------------------------------------------
7467
 
dnl The following macro makes it easier to add libs without adding
7468
 
dnl redundant -L and -l specifications (to keep the build line concise).
7469
 
dnl Arguments:
7470
 
dnl     $1 - the searched directory name
7471
 
dnl     $2 - the command line option to give to the linker (e.g. -lfoo)
7472
 
dnl     $3 - a variable that holds the library specification
7473
 
dnl     $4 - a variable that holds all the directories searched so far
7474
 
dnl
7475
 
define([PL_ADD_TO_LIBS],[
7476
 
    LIBSW=""
7477
 
    if test "$1" != "default"; then
7478
 
        LIBSW="-L$1"
7479
 
    fi
7480
 
    for dir in $$4; do
7481
 
        if test "$1" = "$dir"; then
7482
 
            LIBSW=""
7483
 
            break
7484
 
        fi
7485
 
    done
7486
 
    LIBL="$2"
7487
 
    for lib in $$3; do
7488
 
        if test "$2" = "$lib"; then
7489
 
            LIBL=""
7490
 
            break
7491
 
        fi
7492
 
    done
7493
 
    if test -n "$LIBSW"; then
7494
 
        $3="$$3 $LIBSW $LIBL"
7495
 
    else
7496
 
        $3="$$3 $LIBL"
7497
 
    fi
7498
 
    $4="$$4 $1"
7499
 
])
7500
 
dnl
7501
 
dnl ------------------------------------------------------------------------
7502
 
dnl Determine the dlname of a library to be installed by libtool
7503
 
dnl     PL_GET_DLNAME(STEM,VERSION_INFO,VARIABLE)
7504
 
dnl For a given library STEM and a given VERSION_INFO (a la
7505
 
dnl -version-info option of libtool), determine the dlname of the
7506
 
dnl library in the form lib$STEM.<so_ext>.<so_number>.  Set the
7507
 
dnl variable VARIABLE with the resulting value.  This macro should be used
7508
 
dnl only after the call to AM_PROG_LIBTOOL.
7509
 
AC_DEFUN([PL_GET_DLNAME],[
7510
 
  if test -z "$LIBTOOL" -a -z "$CC" ; then
7511
 
    AC_MSG_ERROR([Dlname guessings can be done only after libtool is initialized])
7512
 
  else
7513
 
    AC_MSG_CHECKING([for name of shared library $1])  
7514
 
    TMP_DIR=./tmp-cfg
7515
 
    rm -rf $TMP_DIR
7516
 
    mkdir -p $TMP_DIR
7517
 
    cd $TMP_DIR
7518
 
    echo "void f(void){}" > foo.c
7519
 
    ../libtool --mode=compile $CC -c foo.c > /dev/null
7520
 
    ../libtool --mode=link $CC foo.lo -rpath /usr/lib -version-info $2 \
7521
 
        -o lib$1.la > /dev/null
7522
 
    $3=`grep ^dlname= lib$1.la | sed "s/dlname='\(.*\)'/\1/"`
7523
 
    cd ..
7524
 
    rm -rf $TMP_DIR
7525
 
    AC_MSG_RESULT([$[$3]])    
7526
 
  fi
7527
 
])
7528
 
dnl ------------------------------------------------------------------------
7529
 
dnl Determine the dlname of a DLL to be installed by libtool
7530
 
dnl This is a usefule variation of GET_DLNAME above for dynamically loaded
7531
 
dnl libraries (DLL's).
7532
 
dnl     PL_GET_DLLNAME(STEM,VARIABLE)
7533
 
dnl For a given DLL STEM determine the dlname of the
7534
 
dnl library in the form $STEM.<so_ext>.  Set the
7535
 
dnl variable VARIABLE with the resulting value.  This macro should be used
7536
 
dnl only after the call to AM_PROG_LIBTOOL.
7537
 
AC_DEFUN([PL_GET_DLLNAME],[
7538
 
  if test -z "$LIBTOOL" -a -z "$CC" ; then
7539
 
    AC_MSG_ERROR([Dlname guessings can be done only after libtool is initialized])
7540
 
  else
7541
 
    AC_MSG_CHECKING([for name of dynloaded module $1])
7542
 
    TMP_DIR=./tmp-cfg
7543
 
    rm -rf $TMP_DIR
7544
 
    mkdir -p $TMP_DIR
7545
 
    cd $TMP_DIR
7546
 
    echo "void f(void){}" > foo.c
7547
 
    ../libtool --mode=compile $CC -c foo.c > /dev/null
7548
 
    ../libtool --mode=link $CC foo.lo -rpath /usr/lib -avoid-version -module \
7549
 
        -o $1.la > /dev/null
7550
 
    $2=`grep ^dlname= $1.la | sed "s/dlname='\(.*\)'/\1/"`
7551
 
    cd ..
7552
 
    rm -rf $TMP_DIR
7553
 
    AC_MSG_RESULT([$[$2]])
7554
 
  fi
7555
 
])
7556
 
dnl ------------------------------------------------------------------------
7557
 
dnl PL_EXPAND_EXPRESSION(VARIABLE,EXPRESSION)
7558
 
dnl
7559
 
dnl Expand recursively a given EXPRESSION, until no variable expansion is
7560
 
dnl possible.  Put the result in VARIABLE.
7561
 
AC_DEFUN([PL_EXPAND_EXPRESSION],[
7562
 
  str1="$2"
7563
 
  while true ; do
7564
 
   str2=`eval echo $str1`
7565
 
     test "$str1" = "$str2" && break
7566
 
     str1="$str2"
7567
 
   done
7568
 
   $1="$str2"
7569
 
])
7570
 
dnl ------------------------------------------------------------------------
7571
 
dnl PL_OCTAVE_CONFIG_INFO(variable, config-field)
7572
 
dnl
7573
 
dnl Get Octave configuration values
7574
 
dnl
7575
 
AC_DEFUN([PL_OCTAVE_CONFIG_INFO], [
7576
 
$1=`$OCTAVE -q -f <<EOF
7577
 
        printf(octave_config_info("$2"));
7578
 
EOF`])
7579
 
dnl ------------------------------------------------------------------------
7580
 
dnl PL_CONFIG_FILE_EXE(file)
7581
 
dnl
7582
 
dnl Add file to CONFIG_FILES list and make it executable
7583
 
dnl
7584
 
AC_DEFUN([PL_CONFIG_FILE_EXE],[
7585
 
  AC_CONFIG_FILES([$1], [chmod +x $1])
7586
 
])
7587
 
 
7588
 
dnl cf/docbook.m4 for PLplot
7589
 
dnl
7590
 
dnl Autoconf macros for the DocBook documentation of PLplot
7591
 
dnl
7592
 
dnl Copyright (C) 2002, 2003, 2004  Alan W. Irwin
7593
 
dnl Copyright (C) 2003, 2004  Rafael Laboissiere
7594
 
dnl
7595
 
dnl This file is part of PLplot.
7596
 
dnl
7597
 
dnl PLplot is free software; you can redistribute it and/or modify
7598
 
dnl it under the terms of the GNU Library General Public License as
7599
 
dnl published by the Free Software Foundation; version 2 of the License.
7600
 
dnl
7601
 
dnl PLplot is distributed in the hope that it will be useful,
7602
 
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
7603
 
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7604
 
dnl GNU Library General Public License for more details.
7605
 
dnl
7606
 
dnl You should have received a copy of the GNU Library General Public License
7607
 
dnl along with PLplot; if not, write to the Free Software
7608
 
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
7609
 
 
7610
 
dnl ### AC_INIT(src/plplotdoc.xml.in)
7611
 
dnl ### AM_INIT_AUTOMAKE(plplotdoc, 0.4.3)
7612
 
 
7613
 
dnl Utility macros
7614
 
 
7615
 
dnl CHECK_PROG(program, url)
7616
 
AC_DEFUN(CHECK_PROG, [
7617
 
 
7618
 
pushdef([PROG], translit($1, [a-z], [A-Z]))
7619
 
 
7620
 
AC_ARG_WITH($1,
7621
 
  AC_HELP_STRING([--with-$1=PATH/]PROG, [Alternative $1 program]),
7622
 
  [prog_$1=$withval],
7623
 
  [prog_$1=$1])
7624
 
AC_CHECK_PROG(has_$1, [$prog_$1], found, no)
7625
 
if test $has_$1 = no ; then
7626
 
  PROG=
7627
 
  if test -n "$2" ; then
7628
 
    for i in "$2" ; do
7629
 
      export $i=""
7630
 
    done
7631
 
  fi
7632
 
else
7633
 
  PROG=$prog_$1
7634
 
fi
7635
 
AC_SUBST(PROG)
7636
 
AC_OUTPUT_COMMANDS( [
7637
 
if test $has_$1 = no ; then]
7638
 
AC_MSG_WARN( [
7639
 
Program $1 not found.
7640
 
    Install the $1 program in your path or specify its
7641
 
    location with the option --with-$1.
7642
 
    The $1 package can be found at
7643
 
    $3.])
7644
 
[fi], has_$1=$has_$1)
7645
 
popdef([PROG])
7646
 
])
7647
 
 
7648
 
dnl CHECK_DTD(title, cache-id, dsssl_dtd, docbookb_ss_dtd, style_spec_use,
7649
 
dnl           external_specification, docbook_dtd, jade_output_type,
7650
 
dnl           origin_package)
7651
 
dnl ### CONFTEST=conftest
7652
 
CONFTEST=doc/docbook/conftest
7653
 
AC_SUBST(CONFTEST)
7654
 
AC_DEFUN(CHECK_DTD, [
7655
 
AC_CACHE_CHECK($1, pldb_cv_$2, [
7656
 
echo -e "\nChecking for $1" >> $jadelog
7657
 
sed -e "s|@DSSSL_DTD@|\"$DSSSL_DTD_PUBID\"|" -e "s|@DB_STYLE_SHEET@|$3|" \
7658
 
  -e "s|@STYLE_SPEC_USE@|$4|" -e "s|@EXTERNAL_SPECIFICATION@|$5|" \
7659
 
dnl ###  -e "s|@CONFTEST@|$CONFTEST|" < cnf/test.dsl.in > $CONFTEST.dsl
7660
 
  -e "s|@CONFTEST@|$CONFTEST|" < doc/docbook/cnf/test.dsl.in > $CONFTEST.dsl
7661
 
dnl ### sed "s|@DOCBOOK_DTD@|$6|" < cnf/test.xml.in > $CONFTEST.xml
7662
 
sed "s|@DOCBOOK_DTD@|$6|" < doc/docbook/cnf/test.xml.in > $CONFTEST.xml
7663
 
 
7664
 
$prog_openjade $SGML_CATALOGS -d $CONFTEST.dsl -t $7 -o $CONFTEST.out \
7665
 
   $XML_DECL $CONFTEST.xml > $jadelog.x 2>&1
7666
 
jade_result=`egrep ":E:" $jadelog.x`
7667
 
cat $jadelog.x >> $jadelog
7668
 
rm -f $jadelog.x
7669
 
if test "$jade_result" = "" ; then
7670
 
  pldb_cv_$2=found
7671
 
else
7672
 
  pldb_cv_$2=no
7673
 
fi
7674
 
])
7675
 
if test $pldb_cv_$2 = no ; then
7676
 
  for i in $11 ; do
7677
 
    export $i=""
7678
 
  done
7679
 
fi
7680
 
AC_OUTPUT_COMMANDS([
7681
 
if test $pldb_cv_$2 = no ; then]
7682
 
  AC_MSG_WARN([Could not find $1.
7683
 
    The following SGML public identifier could not be found in any of
7684
 
    the default SGML catalogs:
7685
 
        $dtd_$2
7686
 
    Its system identifier[,] i.e. a file usually called
7687
 
        \"$9\"
7688
 
    is distributed with the $10 package.  Install it in your
7689
 
    system and put the correct entry in the catalog file.
7690
 
    You might also use the configure option --with-sgml-catalog to specify
7691
 
    alternative SGML catalogs.])
7692
 
[fi
7693
 
], [
7694
 
pldb_cv_$2=$pldb_cv_$2
7695
 
dtd_$2="$8"
7696
 
])
7697
 
])
7698
 
 
7699
 
dnl File extensions
7700
 
 
7701
 
AC_DEFUN([FILE_EXT], [
7702
 
pushdef([FILE], translit($1, [a-z], [A-Z]))
7703
 
FILE[_EXT=$1]
7704
 
AC_ARG_WITH($1-extension,
7705
 
  AC_HELP_STRING([--with-$1-extension=EXT],
7706
 
    [File extension for the generated FILE files. (Default value: $1)]),
7707
 
  [FILE[_EXT=$withval]])
7708
 
AC_SUBST(FILE[_EXT])
7709
 
popdef([FILE])
7710
 
])
7711
 
 
7712
 
dnl Info building
7713
 
 
7714
 
AC_DEFUN(CHECK_PERL_SCRIPT, [
7715
 
 
7716
 
pushdef([PROG], translit($1, [a-z], [A-Z]))
7717
 
 
7718
 
AC_ARG_WITH($1,
7719
 
  AC_HELP_STRING([--with-$1=PATH/]PROG, [Alternative $1 Perl script]),
7720
 
  [prog_$1=$withval],
7721
 
  [prog_$1=/usr/bin/$1])
7722
 
AC_MSG_CHECKING([for Perl script $1])
7723
 
if test -x $prog_$1 ; then
7724
 
  has_$1=found
7725
 
else
7726
 
  has_$1=no
7727
 
fi
7728
 
AC_MSG_RESULT([$has_$1])
7729
 
PROG=$prog_$1
7730
 
AC_SUBST(PROG)
7731
 
if test $has_$1 = no ; then
7732
 
  for i in $2 ; do
7733
 
    export $i=""
7734
 
  done
7735
 
fi
7736
 
AC_OUTPUT_COMMANDS( [
7737
 
if test $has_$1 = no ; then]
7738
 
AC_MSG_WARN( [
7739
 
Program $1 not found.
7740
 
    Install the perl script $1 program in your system or specify its
7741
 
    location with the option --with-$1.
7742
 
    The $1 package can be found at
7743
 
    $3.])
7744
 
[fi], has_$1=$has_$1)
7745
 
 
7746
 
popdef([PROG])
7747
 
])
7748
 
 
7749
 
AC_DEFUN(CHECK_PM, [
7750
 
AC_CACHE_CHECK( $1, pldb_cv_$2, [
7751
 
cat > conftest.pl << EOF
7752
 
use $1;
7753
 
EOF
7754
 
if test -n "$prog_perl" && $prog_perl conftest.pl >/dev/null 2>&1 ; then
7755
 
  pldb_cv_$2=yes
7756
 
else
7757
 
  pldb_cv_$2=no
7758
 
fi])
7759
 
if test $pldb_cv_$2 = no ; then
7760
 
  for i in $3; do
7761
 
    export $i=""
7762
 
  done
7763
 
fi
7764
 
AC_OUTPUT_COMMANDS([
7765
 
if test $pldb_cv_$2 = no ; then]
7766
 
  AC_MSG_WARN([
7767
 
Could not find Perl module $1.
7768
 
    Install it in your system at a place where Perl can find
7769
 
    it (through @INC).])
7770
 
[fi], [
7771
 
pldb_cv_$2=$pldb_cv_$2
7772
 
])
7773
 
])
7774
 
 
7775
 
dnl Output commands
7776
 
 
7777
 
AC_DEFUN(DOC_OUTPUT_COMMANDS, [
7778
 
AC_OUTPUT_COMMANDS( [
7779
 
if test "$print" = "" ; then
7780
 
  echo
7781
 
  echo '  ******************************************************************'
7782
 
  echo '  * Due to some lacking dependencies (see warning messages above), *'
7783
 
  echo '  * it will not be possible to build a printed version of the      *'
7784
 
  echo '  * documentation.                                                 *'
7785
 
  echo '  ******************************************************************'
7786
 
fi
7787
 
if test "$html" = "" ; then
7788
 
  echo
7789
 
  echo '  ******************************************************************'
7790
 
  echo '  * Due to some lacking dependencies (see warning messages above), *'
7791
 
  echo '  * it will not be possible to build a HTML version of the         *'
7792
 
  echo '  * documentation.                                                 *'
7793
 
  echo '  ******************************************************************'
7794
 
fi
7795
 
if test "$info" = "" ; then
7796
 
  echo
7797
 
  echo '  ******************************************************************'
7798
 
  echo '  * Due to some lacking dependencies (see warning messages above), *'
7799
 
  echo '  * it will not be possible to build an info version of the        *'
7800
 
  echo '  * documentation.                                                 *'
7801
 
  echo '  ******************************************************************'
7802
 
fi
7803
 
if test "$man" = "" ; then
7804
 
  echo
7805
 
  echo '  ******************************************************************'
7806
 
  echo '  * Due to some lacking dependencies (see warning messages above), *'
7807
 
  echo '  * it will not be possible to build the man pages of the API      *'
7808
 
  echo '  * chapter.                                                       *'
7809
 
  echo '  ******************************************************************'
7810
 
fi], [
7811
 
print=$PRINT; html=$HTML; info=$INFO; man=$MAN
7812
 
])
7813
 
])
7814
 
 
7815
 
dnl ### AC_OUTPUT([Makefile
7816
 
dnl ###          src/Makefile src/plplotdoc.xml src/plplotdoc-html.dsl
7817
 
dnl ###          src/plplotdoc-print.dsl
7818
 
dnl ###          bin/Makefile bin/api2man.pl
7819
 
dnl ###          www/index.html.in])
7820
 
 
7821
 
dnl ------------------------------------------------------------------------
7822
 
dnl Gnome configuration function.
7823
 
dnl Adapted from that distributed by the Gnome Project
7824
 
dnl Added by Rafael Laboissiere on Fri Feb 23 21:26:56 CET 2001
7825
 
dnl
7826
 
dnl Copyright (C) 2004  Rafael Laboissiere
7827
 
dnl
7828
 
dnl GNOME_INIT_HOOK (script-if-gnome-enabled, [failflag], [additional-inits])
7829
 
dnl
7830
 
dnl if failflag is "fail" then GNOME_INIT_HOOK will abort if gnomeConf.sh
7831
 
dnl is not found.
7832
 
dnl
7833
 
 
7834
 
AC_DEFUN([GNOME_INIT_HOOK],[
7835
 
        AC_SUBST(GNOME_LIBS)
7836
 
        AC_SUBST(GNOMEUI_LIBS)
7837
 
dnl     AC_SUBST(GNOMEGNORBA_LIBS)
7838
 
dnl     AC_SUBST(GTKXMHTML_LIBS)
7839
 
dnl     AC_SUBST(ZVT_LIBS)
7840
 
        AC_SUBST(GNOME_LIBDIR)
7841
 
        AC_SUBST(GNOME_INCLUDEDIR)
7842
 
 
7843
 
        AC_ARG_WITH(gnome-includes,
7844
 
        [  --with-gnome-includes   Specify location of GNOME headers],[
7845
 
        CFLAGS="$CFLAGS -I$withval"
7846
 
        ])
7847
 
 
7848
 
        AC_ARG_WITH(gnome-libs,
7849
 
        [  --with-gnome-libs       Specify location of GNOME libs],[
7850
 
        LDFLAGS="$LDFLAGS -L$withval"
7851
 
        gnome_prefix=$withval
7852
 
        ])
7853
 
 
7854
 
        AC_ARG_WITH(gnome,
7855
 
        [  --with-gnome            Specify prefix for GNOME files],
7856
 
                if test x$withval = xyes; then
7857
 
                        want_gnome=yes
7858
 
                        dnl Note that an empty true branch is not
7859
 
                        dnl valid sh syntax.
7860
 
                        ifelse([$1], [], :, [$1])
7861
 
                else
7862
 
                        if test "x$withval" = xno; then
7863
 
                                want_gnome=no
7864
 
                        else
7865
 
                                want_gnome=yes
7866
 
                                LDFLAGS="$LDFLAGS -L$withval/lib"
7867
 
                                CFLAGS="$CFLAGS -I$withval/include"
7868
 
                                gnome_prefix=$withval/lib
7869
 
                        fi
7870
 
                fi,
7871
 
                want_gnome=yes)
7872
 
 
7873
 
        if test "x$want_gnome" = xyes; then
7874
 
 
7875
 
            AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
7876
 
            if test "$GNOME_CONFIG" = "no"; then
7877
 
              no_gnome_config="yes"
7878
 
            else
7879
 
              AC_MSG_CHECKING(if $GNOME_CONFIG works)
7880
 
              if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
7881
 
                AC_MSG_RESULT(yes)
7882
 
dnl             GNOME_GNORBA_HOOK([],$2)
7883
 
                GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
7884
 
                GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
7885
 
dnl             GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
7886
 
dnl             GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
7887
 
dnl             ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
7888
 
                GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7889
 
                GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7890
 
                $1
7891
 
              else
7892
 
                AC_MSG_RESULT(no)
7893
 
                no_gnome_config="yes"
7894
 
              fi
7895
 
            fi
7896
 
 
7897
 
            if test x$exec_prefix = xNONE; then
7898
 
                if test x$prefix = xNONE; then
7899
 
                    gnome_prefix=$ac_default_prefix/lib
7900
 
                else
7901
 
                    gnome_prefix=$prefix/lib
7902
 
                fi
7903
 
            else
7904
 
                gnome_prefix=`eval echo \`echo $libdir\``
7905
 
            fi
7906
 
 
7907
 
            if test "$no_gnome_config" = "yes"; then
7908
 
              AC_MSG_CHECKING(for gnomeConf.sh file in $gnome_prefix)
7909
 
              if test -f $gnome_prefix/gnomeConf.sh; then
7910
 
                AC_MSG_RESULT(found)
7911
 
                echo "loading gnome configuration from" \
7912
 
                     "$gnome_prefix/gnomeConf.sh"
7913
 
                . $gnome_prefix/gnomeConf.sh
7914
 
                $1
7915
 
              else
7916
 
                AC_MSG_RESULT(not found)
7917
 
                if test x$2 = xfail; then
7918
 
                  AC_MSG_ERROR(Could not find the gnomeConf.sh file that is generated by gnome-libs install)
7919
 
                fi
7920
 
              fi
7921
 
            fi
7922
 
        fi
7923
 
 
7924
 
        if test -n "$3"; then
7925
 
          n="$3"
7926
 
          for i in $n; do
7927
 
            AC_MSG_CHECKING(extra library \"$i\")
7928
 
            case $i in
7929
 
              applets)
7930
 
                AC_SUBST(GNOME_APPLETS_LIBS)
7931
 
                GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
7932
 
                AC_MSG_RESULT($GNOME_APPLETS_LIBS);;
7933
 
              capplet)
7934
 
                AC_SUBST(GNOME_CAPPLET_LIBS)
7935
 
                GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
7936
 
                AC_MSG_RESULT($GNOME_CAPPLET_LIBS);;
7937
 
              *)
7938
 
                AC_MSG_RESULT(unknown library)
7939
 
            esac
7940
 
          done
7941
 
        fi
7942
 
])
7943
 
 
7944
 
dnl
7945
 
dnl GNOME_INIT ([additional-inits])
7946
 
dnl
7947
 
 
7948
 
AC_DEFUN([GNOME_INIT],[
7949
 
        GNOME_INIT_HOOK([],fail,$1)
7950
 
])
7951
 
 
7952
 
dnl Available from the GNU Autoconf Macro Archive at:
7953
 
dnl http://www.gnu.org/software/ac-archive/htmldoc/check_gnu_make.html
7954
 
dnl
7955
 
AC_DEFUN([CHECK_GNU_MAKE], [
7956
 
AC_CACHE_CHECK( for GNU make,_cv_gnu_make_command,
7957
 
                _cv_gnu_make_command='' ;
7958
 
dnl Search all the common names for GNU make
7959
 
                for a in "$MAKE" make gmake gnumake ; do
7960
 
                        if test -z "$a" ; then continue ; fi ;
7961
 
                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
7962
 
                                _cv_gnu_make_command=$a ;
7963
 
                                break;
7964
 
                        fi
7965
 
                done ;
7966
 
        ) ;
7967
 
dnl If there was a GNU version, then set @ifGNUmake@ to the empty string, '#' otherwise
7968
 
        if test  "x$_cv_gnu_make_command" != "x"  ; then
7969
 
                ifGNUmake='' ;
7970
 
        else
7971
 
                ifGNUmake='#' ;
7972
 
                AC_MSG_RESULT("Not found");
7973
 
        fi
7974
 
        AC_SUBST(ifGNUmake)
7975
 
] )
7976
 
 
7977
 
dnl Configure paths for GTK+
7978
 
dnl Owen Taylor     97-11-3
7979
 
 
7980
 
dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
7981
 
dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
7982
 
dnl
7983
 
AC_DEFUN([AM_PATH_GTK],
7984
 
[dnl 
7985
 
dnl Get the cflags and libraries from the gtk-config script
7986
 
dnl
7987
 
AC_ARG_WITH(gtk-prefix,[  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)],
7988
 
            gtk_config_prefix="$withval", gtk_config_prefix="")
7989
 
AC_ARG_WITH(gtk-exec-prefix,[  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
7990
 
            gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
7991
 
AC_ARG_ENABLE(gtktest, [  --disable-gtktest       Do not try to compile and run a test GTK program],
7992
 
                    , enable_gtktest=yes)
7993
 
 
7994
 
  for module in . $4
7995
 
  do
7996
 
      case "$module" in
7997
 
         gthread) 
7998
 
             gtk_config_args="$gtk_config_args gthread"
7999
 
         ;;
8000
 
      esac
8001
 
  done
8002
 
 
8003
 
  if test x$gtk_config_exec_prefix != x ; then
8004
 
     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8005
 
     if test x${GTK_CONFIG+set} != xset ; then
8006
 
        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8007
 
     fi
8008
 
  fi
8009
 
  if test x$gtk_config_prefix != x ; then
8010
 
     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8011
 
     if test x${GTK_CONFIG+set} != xset ; then
8012
 
        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8013
 
     fi
8014
 
  fi
8015
 
 
8016
 
  AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
8017
 
  min_gtk_version=ifelse([$1], ,0.99.7,$1)
8018
 
  AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
8019
 
  no_gtk=""
8020
 
  if test "$GTK_CONFIG" = "no" ; then
8021
 
    no_gtk=yes
8022
 
  else
8023
 
    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8024
 
    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8025
 
    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8026
 
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
8027
 
    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8028
 
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
8029
 
    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8030
 
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
8031
 
    if test "x$enable_gtktest" = "xyes" ; then
8032
 
      ac_save_CFLAGS="$CFLAGS"
8033
 
      ac_save_LIBS="$LIBS"
8034
 
      CFLAGS="$CFLAGS $GTK_CFLAGS"
8035
 
      LIBS="$GTK_LIBS $LIBS"
8036
 
dnl
8037
 
dnl Now check if the installed GTK is sufficiently new. (Also sanity
8038
 
dnl checks the results of gtk-config to some extent
8039
 
dnl
8040
 
      rm -f conf.gtktest
8041
 
      AC_TRY_RUN([
8042
 
#include <gtk/gtk.h>
8043
 
#include <stdio.h>
8044
 
#include <stdlib.h>
8045
 
 
8046
 
int 
8047
 
main ()
8048
 
{
8049
 
  int major, minor, micro;
8050
 
  char *tmp_version;
8051
 
 
8052
 
  system ("touch conf.gtktest");
8053
 
 
8054
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
8055
 
  tmp_version = g_strdup("$min_gtk_version");
8056
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8057
 
     printf("%s, bad version string\n", "$min_gtk_version");
8058
 
     exit(1);
8059
 
   }
8060
 
 
8061
 
  if ((gtk_major_version != $gtk_config_major_version) ||
8062
 
      (gtk_minor_version != $gtk_config_minor_version) ||
8063
 
      (gtk_micro_version != $gtk_config_micro_version))
8064
 
    {
8065
 
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
8066
 
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8067
 
             gtk_major_version, gtk_minor_version, gtk_micro_version);
8068
 
      printf ("*** was found! If gtk-config was correct, then it is best\n");
8069
 
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8070
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8071
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8072
 
      printf("*** required on your system.\n");
8073
 
      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
8074
 
      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
8075
 
      printf("*** before re-running configure\n");
8076
 
    } 
8077
 
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8078
 
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8079
 
           (gtk_minor_version != GTK_MINOR_VERSION) ||
8080
 
           (gtk_micro_version != GTK_MICRO_VERSION))
8081
 
    {
8082
 
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8083
 
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8084
 
      printf("*** library (version %d.%d.%d)\n",
8085
 
             gtk_major_version, gtk_minor_version, gtk_micro_version);
8086
 
    }
8087
 
#endif /* defined (GTK_MAJOR_VERSION) ... */
8088
 
  else
8089
 
    {
8090
 
      if ((gtk_major_version > major) ||
8091
 
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8092
 
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8093
 
      {
8094
 
        return 0;
8095
 
       }
8096
 
     else
8097
 
      {
8098
 
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8099
 
               gtk_major_version, gtk_minor_version, gtk_micro_version);
8100
 
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8101
 
               major, minor, micro);
8102
 
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8103
 
        printf("***\n");
8104
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
8105
 
        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
8106
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
8107
 
        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
8108
 
        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
8109
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8110
 
        printf("*** so that the correct libraries are found at run-time))\n");
8111
 
      }
8112
 
    }
8113
 
  return 1;
8114
 
}
8115
 
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
8116
 
       CFLAGS="$ac_save_CFLAGS"
8117
 
       LIBS="$ac_save_LIBS"
8118
 
     fi
8119
 
  fi
8120
 
  if test "x$no_gtk" = x ; then
8121
 
     AC_MSG_RESULT(yes)
8122
 
     ifelse([$2], , :, [$2])     
8123
 
  else
8124
 
     AC_MSG_RESULT(no)
8125
 
     if test "$GTK_CONFIG" = "no" ; then
8126
 
       echo "*** The gtk-config script installed by GTK could not be found"
8127
 
       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8128
 
       echo "*** your path, or set the GTK_CONFIG environment variable to the"
8129
 
       echo "*** full path to gtk-config."
8130
 
     else
8131
 
       if test -f conf.gtktest ; then
8132
 
        :
8133
 
       else
8134
 
          echo "*** Could not run GTK test program, checking why..."
8135
 
          CFLAGS="$CFLAGS $GTK_CFLAGS"
8136
 
          LIBS="$LIBS $GTK_LIBS"
8137
 
          AC_TRY_LINK([
8138
 
#include <gtk/gtk.h>
8139
 
#include <stdio.h>
8140
 
],      [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
8141
 
        [ echo "*** The test program compiled, but did not run. This usually means"
8142
 
          echo "*** that the run-time linker is not finding GTK or finding the wrong"
8143
 
          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8144
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8145
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
8146
 
          echo "*** is required on your system"
8147
 
          echo "***"
8148
 
          echo "*** If you have an old version installed, it is best to remove it, although"
8149
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8150
 
          echo "***"
8151
 
          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8152
 
          echo "*** came with the system with the command"
8153
 
          echo "***"
8154
 
          echo "***    rpm --erase --nodeps gtk gtk-devel" ],
8155
 
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
8156
 
          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8157
 
          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8158
 
          echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
8159
 
          CFLAGS="$ac_save_CFLAGS"
8160
 
          LIBS="$ac_save_LIBS"
8161
 
       fi
8162
 
     fi
8163
 
     GTK_CFLAGS=""
8164
 
     GTK_LIBS=""
8165
 
     ifelse([$3], , :, [$3])
8166
 
  fi
8167
 
  AC_SUBST(GTK_CFLAGS)
8168
 
  AC_SUBST(GTK_LIBS)
8169
 
  rm -f conf.gtktest
8170
 
])
8171
 
 
 
7341
# Check how to create a tarball.                            -*- Autoconf -*-
 
7342
 
 
7343
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
7344
#
 
7345
# This file is free software; the Free Software Foundation
 
7346
# gives unlimited permission to copy and/or distribute it,
 
7347
# with or without modifications, as long as this notice is preserved.
 
7348
 
 
7349
# serial 2
 
7350
 
 
7351
# _AM_PROG_TAR(FORMAT)
 
7352
# --------------------
 
7353
# Check how to create a tarball in format FORMAT.
 
7354
# FORMAT should be one of `v7', `ustar', or `pax'.
 
7355
#
 
7356
# Substitute a variable $(am__tar) that is a command
 
7357
# writing to stdout a FORMAT-tarball containing the directory
 
7358
# $tardir.
 
7359
#     tardir=directory && $(am__tar) > result.tar
 
7360
#
 
7361
# Substitute a variable $(am__untar) that extract such
 
7362
# a tarball read from stdin.
 
7363
#     $(am__untar) < result.tar
 
7364
AC_DEFUN([_AM_PROG_TAR],
 
7365
[# Always define AMTAR for backward compatibility.
 
7366
AM_MISSING_PROG([AMTAR], [tar])
 
7367
m4_if([$1], [v7],
 
7368
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
7369
     [m4_case([$1], [ustar],, [pax],,
 
7370
              [m4_fatal([Unknown tar format])])
 
7371
AC_MSG_CHECKING([how to create a $1 tar archive])
 
7372
# Loop over all known methods to create a tar archive until one works.
 
7373
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
7374
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
7375
# Do not fold the above two line into one, because Tru64 sh and
 
7376
# Solaris sh will not grok spaces in the rhs of `-'.
 
7377
for _am_tool in $_am_tools
 
7378
do
 
7379
  case $_am_tool in
 
7380
  gnutar)
 
7381
    for _am_tar in tar gnutar gtar;
 
7382
    do
 
7383
      AM_RUN_LOG([$_am_tar --version]) && break
 
7384
    done
 
7385
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
7386
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
7387
    am__untar="$_am_tar -xf -"
 
7388
    ;;
 
7389
  plaintar)
 
7390
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
7391
    # ustar tarball either.
 
7392
    (tar --version) >/dev/null 2>&1 && continue
 
7393
    am__tar='tar chf - "$$tardir"'
 
7394
    am__tar_='tar chf - "$tardir"'
 
7395
    am__untar='tar xf -'
 
7396
    ;;
 
7397
  pax)
 
7398
    am__tar='pax -L -x $1 -w "$$tardir"'
 
7399
    am__tar_='pax -L -x $1 -w "$tardir"'
 
7400
    am__untar='pax -r'
 
7401
    ;;
 
7402
  cpio)
 
7403
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
7404
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
7405
    am__untar='cpio -i -H $1 -d'
 
7406
    ;;
 
7407
  none)
 
7408
    am__tar=false
 
7409
    am__tar_=false
 
7410
    am__untar=false
 
7411
    ;;
 
7412
  esac
 
7413
 
 
7414
  # If the value was cached, stop now.  We just wanted to have am__tar
 
7415
  # and am__untar set.
 
7416
  test -n "${am_cv_prog_tar_$1}" && break
 
7417
 
 
7418
  # tar/untar a dummy directory, and stop if the command works
 
7419
  rm -rf conftest.dir
 
7420
  mkdir conftest.dir
 
7421
  echo GrepMe > conftest.dir/file
 
7422
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
7423
  rm -rf conftest.dir
 
7424
  if test -s conftest.tar; then
 
7425
    AM_RUN_LOG([$am__untar <conftest.tar])
 
7426
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
7427
  fi
 
7428
done
 
7429
rm -rf conftest.dir
 
7430
 
 
7431
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
7432
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
7433
AC_SUBST([am__tar])
 
7434
AC_SUBST([am__untar])
 
7435
]) # _AM_PROG_TAR
 
7436
 
 
7437
m4_include([cf/ac_pkg_swig.m4])
 
7438
m4_include([cf/ac_python_devel.m4])
 
7439
m4_include([cf/acinclude.m4])
 
7440
m4_include([cf/docbook.m4])
 
7441
m4_include([cf/gnome.m4])
 
7442
m4_include([cf/gnu-make.m4])
 
7443
m4_include([cf/gtk.m4])
 
7444
m4_include([cf/pkg.m4])