282
283
echo "$lt_simple_link_test_code" >conftest.$ac_ext
283
284
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
284
285
_lt_linker_boilerplate=`cat conftest.err`
286
287
])# _LT_LINKER_BOILERPLATE
289
# _LT_REQUIRED_DARWIN_CHECKS
290
# --------------------------
291
# Check for some things on darwin
292
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
295
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
296
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
298
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
299
[lt_cv_apple_cc_single_mod=no
300
if test -z "${LT_MULTI_MODULE}"; then
301
# By default we will add the -single_module flag. You can override
302
# by either setting the environment variable LT_MULTI_MODULE
303
# non-empty at configure time, or by adding -multi_module to the
305
echo "int foo(void){return 1;}" > conftest.c
306
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
307
-dynamiclib ${wl}-single_module conftest.c
308
if test -f libconftest.dylib; then
309
lt_cv_apple_cc_single_mod=yes
310
rm -rf libconftest.dylib*
314
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
315
[lt_cv_ld_exported_symbols_list],
316
[lt_cv_ld_exported_symbols_list=no
317
save_LDFLAGS=$LDFLAGS
318
echo "_main" > conftest.sym
319
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
320
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
321
[lt_cv_ld_exported_symbols_list=yes],
322
[lt_cv_ld_exported_symbols_list=no])
323
LDFLAGS="$save_LDFLAGS"
326
rhapsody* | darwin1.[[0123]])
327
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
329
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
331
# if running on 10.5 or later, the deployment target defaults
332
# to the OS version, if on x86, and 10.4, the deployment
333
# target defaults to 10.4. Don't you love it?
334
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
335
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
336
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
338
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
340
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
344
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
345
_lt_dar_single_mod='$single_module'
347
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
348
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
350
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
352
if test "$DSYMUTIL" != ":"; then
353
_lt_dsymutil="~$DSYMUTIL \$lib || :"
289
361
# _LT_AC_SYS_LIBPATH_AIX
290
362
# ----------------------
1831
1907
AC_MSG_RESULT([$dynamic_linker])
1832
1908
test "$dynamic_linker" = no && can_build_shared=no
1910
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1911
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1912
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1913
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1914
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1915
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1834
1917
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1835
1918
if test "$GCC" = yes; then
1836
1919
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3093
3177
darwin* | rhapsody*)
3095
rhapsody* | darwin1.[[012]])
3096
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3099
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3100
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3102
case ${MACOSX_DEPLOYMENT_TARGET} in
3104
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3107
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3113
3178
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3114
3179
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3115
3180
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3116
3181
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3117
3182
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3118
3183
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3120
if test "$GXX" = yes ; then
3121
lt_int_apple_cc_single_mod=no
3184
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3185
if test "$GXX" = yes ; then
3122
3186
output_verbose_link_cmd='echo'
3123
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3124
lt_int_apple_cc_single_mod=yes
3187
_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}"
3188
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3189
_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}"
3190
_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}"
3191
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3192
_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}"
3193
_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}"
3126
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3127
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3129
_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'
3131
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3132
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3133
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3134
_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}'
3136
_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}'
3138
_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}'
3140
3196
case $cc_basename in
3821
3877
# compiler output when linking a shared library.
3822
3878
# Parse the compiler output and extract the necessary
3823
3879
# objects, libraries and library flags.
3824
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3880
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3881
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3825
3882
dnl we can't use the lt_simple_compile_test_code here,
3826
3883
dnl because it contains code intended for an executable,
3827
3884
dnl not a library. It's possible we should let each
4326
4388
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4327
4389
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4329
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4391
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4330
4392
# Free Software Foundation, Inc.
4332
4394
# This file is part of GNU Libtool:
5461
5530
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5462
5531
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5463
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5532
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5464
5533
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5465
5534
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5552
5622
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5553
5623
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5554
5624
# as well as any symbol that contains `d'.
5555
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5625
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5556
5626
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5557
5627
# platforms (ab)use it in PIC code, but their linkers get confused if
5558
5628
# the symbol is explicitly referenced. Since portable code cannot
5559
5629
# rely on this symbol name, it's probably fine to never include it in
5560
5630
# preloaded symbol tables.
5631
# Exclude shared library initialization/finalization symbols.
5632
dnl Note also adjust exclude_expsyms for C++ above.
5561
5633
extract_expsyms_cmds=
5562
5634
# Just being paranoid about ensuring that cc_basename is set.
5563
5635
_LT_CC_BASENAME([$compiler])
6007
6079
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6008
6080
if test "$GCC" = yes ; then
6009
6081
output_verbose_link_cmd='echo'
6010
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6011
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6012
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6013
_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}'
6014
_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}'
6082
_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}"
6083
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6084
_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}"
6085
_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}"
6016
6087
case $cc_basename in
7923
7994
m4_include([libmissing/m4/longlong.m4])
7924
7995
m4_include([libmissing/m4/lseek.m4])
7925
7996
m4_include([libmissing/m4/malloc.m4])
7997
m4_include([libmissing/m4/mbstate_t.m4])
7926
7998
m4_include([libmissing/m4/memchr.m4])
7927
7999
m4_include([libmissing/m4/memcmp.m4])
7928
8000
m4_include([libmissing/m4/memmem.m4])
7929
8001
m4_include([libmissing/m4/minmax.m4])
7930
8002
m4_include([libmissing/m4/mktime.m4])
7931
8003
m4_include([libmissing/m4/netinet_in_h.m4])
7932
m4_include([libmissing/m4/onceonly_2_57.m4])
8004
m4_include([libmissing/m4/onceonly.m4])
7933
8005
m4_include([libmissing/m4/pathmax.m4])
7934
8006
m4_include([libmissing/m4/poll.m4])
8007
m4_include([libmissing/m4/printf.m4])
7935
8008
m4_include([libmissing/m4/realloc.m4])
7936
8009
m4_include([libmissing/m4/regex.m4])
7937
8010
m4_include([libmissing/m4/size_max.m4])
7971
8044
m4_include([libmissing/m4/xsize.m4])
7972
8045
m4_include([m4/ac_compile_check_sizeof.m4])
7973
8046
m4_include([m4/acx_pthread.m4])
7974
m4_include([m4/ax_cflags_gcc_option.m4])
8047
m4_include([m4/as-ac-expand.m4])
8048
m4_include([m4/ax_c_check_flag.m4])
8049
m4_include([m4/ax_check_aligned_access_required.m4])
7975
8050
m4_include([m4/ax_create_prelude_inttypes_h.m4])
8051
m4_include([m4/ax_ld_check_flag.m4])
7976
8052
m4_include([m4/gtk-doc.m4])
7977
8053
m4_include([m4/libgcrypt.m4])
7978
8054
m4_include([m4/libgnutls-extra.m4])