14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
16
m4_if(AC_AUTOCONF_VERSION, [2.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
24
# serial 51 AC_PROG_LIBTOOL
24
# serial 52 AC_PROG_LIBTOOL
27
27
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
290
291
echo "$lt_simple_link_test_code" >conftest.$ac_ext
291
292
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
292
293
_lt_linker_boilerplate=`cat conftest.err`
294
295
])# _LT_LINKER_BOILERPLATE
297
# _LT_REQUIRED_DARWIN_CHECKS
298
# --------------------------
299
# Check for some things on darwin
300
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
303
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
304
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
306
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
307
[lt_cv_apple_cc_single_mod=no
308
if test -z "${LT_MULTI_MODULE}"; then
309
# By default we will add the -single_module flag. You can override
310
# by either setting the environment variable LT_MULTI_MODULE
311
# non-empty at configure time, or by adding -multi_module to the
313
echo "int foo(void){return 1;}" > conftest.c
314
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
315
-dynamiclib ${wl}-single_module conftest.c
316
if test -f libconftest.dylib; then
317
lt_cv_apple_cc_single_mod=yes
318
rm -rf libconftest.dylib*
322
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
323
[lt_cv_ld_exported_symbols_list],
324
[lt_cv_ld_exported_symbols_list=no
325
save_LDFLAGS=$LDFLAGS
326
echo "_main" > conftest.sym
327
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
328
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
329
[lt_cv_ld_exported_symbols_list=yes],
330
[lt_cv_ld_exported_symbols_list=no])
331
LDFLAGS="$save_LDFLAGS"
334
rhapsody* | darwin1.[[0123]])
335
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
337
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
339
# if running on 10.5 or later, the deployment target defaults
340
# to the OS version, if on x86, and 10.4, the deployment
341
# target defaults to 10.4. Don't you love it?
342
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
343
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
344
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
346
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
348
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
352
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
353
_lt_dar_single_mod='$single_module'
355
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
356
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
358
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
360
if test "$DSYMUTIL" != ":"; then
361
_lt_dsymutil="~$DSYMUTIL \$lib || :"
297
369
# _LT_AC_SYS_LIBPATH_AIX
298
370
# ----------------------
1830
1906
AC_MSG_RESULT([$dynamic_linker])
1831
1907
test "$dynamic_linker" = no && can_build_shared=no
1909
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1910
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1911
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1912
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1913
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1914
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1833
1916
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1834
1917
if test "$GCC" = yes; then
1835
1918
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3092
3176
darwin* | rhapsody*)
3094
rhapsody* | darwin1.[[012]])
3095
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3098
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3099
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3101
case ${MACOSX_DEPLOYMENT_TARGET} in
3103
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3106
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3112
3177
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3113
3178
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3114
3179
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3115
3180
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3116
3181
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3117
3182
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3119
if test "$GXX" = yes ; then
3120
lt_int_apple_cc_single_mod=no
3183
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3184
if test "$GXX" = yes ; then
3121
3185
output_verbose_link_cmd='echo'
3122
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3123
lt_int_apple_cc_single_mod=yes
3186
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3187
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3188
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3189
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3190
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3191
_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${_lt_dsymutil}"
3192
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
3125
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3126
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3128
_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'
3130
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3131
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3132
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3133
_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}'
3135
_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}'
3137
_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}'
3139
3195
case $cc_basename in
3820
3876
# compiler output when linking a shared library.
3821
3877
# Parse the compiler output and extract the necessary
3822
3878
# objects, libraries and library flags.
3823
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3879
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3880
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3824
3881
dnl we can't use the lt_simple_compile_test_code here,
3825
3882
dnl because it contains code intended for an executable,
3826
3883
dnl not a library. It's possible we should let each
4325
4387
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4326
4388
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4328
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4390
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4329
4391
# Free Software Foundation, Inc.
4331
4393
# This file is part of GNU Libtool:
5460
5529
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5461
5530
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5462
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5531
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5463
5532
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5464
5533
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5548
5618
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5549
5619
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5550
5620
# as well as any symbol that contains `d'.
5551
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5621
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5552
5622
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5553
5623
# platforms (ab)use it in PIC code, but their linkers get confused if
5554
5624
# the symbol is explicitly referenced. Since portable code cannot
5555
5625
# rely on this symbol name, it's probably fine to never include it in
5556
5626
# preloaded symbol tables.
5627
# Exclude shared library initialization/finalization symbols.
5628
dnl Note also adjust exclude_expsyms for C++ above.
5557
5629
extract_expsyms_cmds=
5558
5630
# Just being paranoid about ensuring that cc_basename is set.
5559
5631
_LT_CC_BASENAME([$compiler])
6002
6074
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6003
6075
if test "$GCC" = yes ; then
6004
6076
output_verbose_link_cmd='echo'
6005
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6006
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6007
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6008
_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}'
6009
_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}'
6077
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6078
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6079
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6080
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6011
6082
case $cc_basename in