11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
14
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
16
# serial 48 AC_PROG_LIBTOOL
24
# serial 52 AC_PROG_LIBTOOL
19
27
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
276
286
# Check for linker boilerplate output or warnings with
277
287
# the simple link test code.
278
288
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
[ac_outfile=conftest.$ac_objext
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
289
[AC_REQUIRE([LT_AC_PROG_SED])dnl
290
ac_outfile=conftest.$ac_objext
291
echo "$lt_simple_link_test_code" >conftest.$ac_ext
281
292
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
293
_lt_linker_boilerplate=`cat conftest.err`
284
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 || :"
287
369
# _LT_AC_SYS_LIBPATH_AIX
288
370
# ----------------------
293
375
# If we don't find anything, use the default library path according
294
376
# to the aix ld manual.
295
377
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
296
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
297
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
378
[AC_REQUIRE([LT_AC_PROG_SED])dnl
379
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
381
/Import File Strings/,/^$/ {
387
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
299
388
# Check for a 64-bit object if we didn't find anything.
300
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
389
if test -z "$aix_libpath"; then
390
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
302
392
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303
393
])# _LT_AC_SYS_LIBPATH_AIX
785
# If test is not a shell built-in, we'll probably end up computing a
786
# maximum length that is only half of the actual maximum length, but
788
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
887
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
888
if test -n "$lt_cv_sys_max_cmd_len"; then
889
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
890
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
892
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
893
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
790
894
= "XX$teststring") >/dev/null 2>&1 &&
791
new_result=`expr "X$teststring" : ".*" 2>&1` &&
792
lt_cv_sys_max_cmd_len=$new_result &&
793
test $i != 17 # 1/2 MB should be enough
796
teststring=$teststring$teststring
799
# Add a significant safety factor because C++ compilers can tack on massive
800
# amounts of additional arguments before passing them to the linker.
801
# It appears as though 1/2 is a usable value.
802
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
895
new_result=`expr "X$teststring" : ".*" 2>&1` &&
896
lt_cv_sys_max_cmd_len=$new_result &&
897
test $i != 17 # 1/2 MB should be enough
900
teststring=$teststring$teststring
903
# Add a significant safety factor because C++ compilers can tack on massive
904
# amounts of additional arguments before passing them to the linker.
905
# It appears as though 1/2 is a usable value.
906
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1205
1313
version_type=none
1206
1314
dynamic_linker="$host_os ld.so"
1207
1315
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1208
1317
if test "$GCC" = yes; then
1209
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1210
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1319
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1320
*) lt_awk_arg="/^libraries:/" ;;
1322
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1323
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1211
1324
# if the path contains ";" then we assume it to be the separator
1212
1325
# otherwise default to the standard path separator (i.e. ":") - it is
1213
1326
# assumed that no part of a normal pathname contains ";" but that should
1214
1327
# okay in the real world where ";" in dirpaths is itself problematic.
1215
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1328
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1217
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1330
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1332
# Ok, now we have the path, separated by spaces, we can step through it
1333
# and add multilib dir if necessary.
1334
lt_tmp_lt_search_path_spec=
1335
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1336
for lt_sys_path in $lt_search_path_spec; do
1337
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1338
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1340
test -d "$lt_sys_path" && \
1341
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1344
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1345
BEGIN {RS=" "; FS="/|\n";} {
1348
for (lt_i = NF; lt_i > 0; lt_i--) {
1349
if ($lt_i != "" && $lt_i != ".") {
1350
if ($lt_i == "..") {
1353
if (lt_count == 0) {
1354
lt_foo="/" $lt_i lt_foo;
1361
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1362
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1364
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1220
1366
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1222
1368
need_lib_prefix=unknown
1223
1369
hardcode_into_libs=no
1578
1708
# before this can be enabled.
1579
1709
hardcode_into_libs=yes
1581
# find out which ABI we are using
1584
x86_64*|s390x*|powerpc64*)
1585
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1586
if AC_TRY_EVAL(ac_compile); then
1587
case `/usr/bin/file conftest.$ac_objext` in
1590
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1598
1711
# Append ld.so.conf contents to the search path
1599
1712
if test -f /etc/ld.so.conf; then
1600
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' ' '`
1601
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1713
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1714
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1604
1717
# We used to test for /lib/ld.so.1 and disable shared libraries on
2319
2432
mingw* | pw32*)
2320
2433
# Base MSYS/MinGW do not provide the 'file' command needed by
2321
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2322
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2323
lt_cv_file_magic_cmd='$OBJDUMP -f'
2434
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2435
# unless we find 'file', for example because we are cross-compiling.
2436
if ( file / ) >/dev/null 2>&1; then
2437
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2438
lt_cv_file_magic_cmd='func_win32_libid'
2440
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2441
lt_cv_file_magic_cmd='$OBJDUMP -f'
2326
2445
darwin* | rhapsody*)
2327
2446
lt_cv_deplibs_check_method=pass_all
2330
freebsd* | kfreebsd*-gnu | dragonfly*)
2449
freebsd* | dragonfly*)
2331
2450
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2332
2451
case $host_cpu in
3049
3173
darwin* | rhapsody*)
3051
rhapsody* | darwin1.[[012]])
3052
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3055
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3056
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3058
case ${MACOSX_DEPLOYMENT_TARGET} in
3060
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3063
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3069
3174
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3070
3175
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3071
3176
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3072
3177
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3073
3178
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3074
3179
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3076
if test "$GXX" = yes ; then
3077
lt_int_apple_cc_single_mod=no
3180
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3181
if test "$GXX" = yes ; then
3078
3182
output_verbose_link_cmd='echo'
3079
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3080
lt_int_apple_cc_single_mod=yes
3183
_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}"
3184
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3185
_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}"
3186
_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}"
3187
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3188
_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}"
3189
_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}"
3082
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3083
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3085
_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'
3087
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3088
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3089
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3090
_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}'
3092
_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}'
3094
_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}'
3096
3192
case $cc_basename in
3098
3194
output_verbose_link_cmd='echo'
3099
_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'
3195
_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` $xlcverstring'
3100
3196
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3101
3197
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3102
_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}'
3198
_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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3103
3199
_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}'
3372
3466
# dependencies.
3373
3467
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3470
case `$CC -V 2>&1 | sed 5q` in
3473
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3474
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3475
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3476
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3477
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3479
# Not sure whether something based on
3480
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3482
output_verbose_link_cmd='echo'
3484
# Archives containing C++ object files must be created using
3485
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3486
# necessary to make sure instantiated templates are included
3488
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3410
3527
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3413
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3414
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3415
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3416
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3417
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3418
_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'
3419
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3420
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3530
if test -f /usr/libexec/ld.so; then
3531
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3532
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3533
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3534
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3535
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3536
_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'
3537
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3538
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3540
output_verbose_link_cmd='echo'
3542
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3422
output_verbose_link_cmd='echo'
3425
3546
case $cc_basename in
3581
3702
case $host_os in
3582
3703
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3584
# The C++ compiler is used as linker so we must use $wl
3585
# flag to pass the commands to the underlying system
3586
# linker. We must also pass each convience library through
3587
# to the system linker between allextract/defaultextract.
3588
# The C++ compiler will combine linker options so we
3589
# cannot just pass the convience library names through
3705
# The compiler driver will combine and reorder linker options,
3706
# but understands `-z linker_flag'.
3591
3707
# Supported since Solaris 2.6 (maybe 2.5.1?)
3592
_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'
3708
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3595
3711
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3887
4015
_LT_AC_TAGVAR(postdeps,$1)=
4019
case `$CC -V 2>&1 | sed 5q` in
4023
# The more standards-conforming stlport4 library is
4024
# incompatible with the Cstd library. Avoid specifying
4025
# it if it's in CXXFLAGS. Ignore libCrun as
4026
# -library=stlport4 depends on it.
4027
case " $CXX $CXXFLAGS " in
4028
*" -library=stlport4 "*)
4029
solaris_use_stlport4=yes
4032
if test "$solaris_use_stlport4" != yes; then
4033
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3891
4040
case $cc_basename in
4042
# The more standards-conforming stlport4 library is
4043
# incompatible with the Cstd library. Avoid specifying
4044
# it if it's in CXXFLAGS. Ignore libCrun as
4045
# -library=stlport4 depends on it.
4046
case " $CXX $CXXFLAGS " in
4047
*" -library=stlport4 "*)
4048
solaris_use_stlport4=yes
3893
4052
# Adding this requires a known-good setup of shared libraries for
3894
4053
# Sun compiler versions before 5.6, else PIC objects from an old
3895
4054
# archive will be linked into the output, leading to subtle bugs.
3896
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4055
if test "$solaris_use_stlport4" != yes; then
4056
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3903
4063
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3904
4064
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5404
5615
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5405
5616
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5406
5617
# as well as any symbol that contains `d'.
5407
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5618
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5408
5619
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5409
5620
# platforms (ab)use it in PIC code, but their linkers get confused if
5410
5621
# the symbol is explicitly referenced. Since portable code cannot
5411
5622
# rely on this symbol name, it's probably fine to never include it in
5412
5623
# preloaded symbol tables.
5624
# Exclude shared library initialization/finalization symbols.
5625
dnl Note also adjust exclude_expsyms for C++ above.
5413
5626
extract_expsyms_cmds=
5414
5627
# Just being paranoid about ensuring that cc_basename is set.
5415
5628
_LT_CC_BASENAME([$compiler])
5558
5771
ifc* | ifort*) # Intel Fortran compiler
5559
5772
tmp_addflag=' -nofor_main' ;;
5561
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5774
case `$CC -V 2>&1 | sed 5q` in
5775
*Sun\ C*) # Sun C 5.9
5776
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5777
tmp_sharedflag='-G' ;;
5778
*Sun\ F*) # Sun Fortran 8.3
5779
tmp_sharedflag='-G' ;;
5781
tmp_sharedflag='-shared' ;;
5783
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5563
5785
if test $supports_anon_versioning = yes; then
5564
5786
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5565
5787
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5566
5788
$echo "local: *; };" >> $output_objdir/$libname.ver~
5567
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5789
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5570
5792
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5849
6071
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5850
6072
if test "$GCC" = yes ; then
5851
6073
output_verbose_link_cmd='echo'
5852
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5853
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5854
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5855
_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}'
5856
_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}'
6074
_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}"
6075
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6076
_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}"
6077
_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}"
5858
6079
case $cc_basename in
5860
6081
output_verbose_link_cmd='echo'
5861
_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'
6082
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5862
6083
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5863
6084
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5864
_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}'
6085
_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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5865
6086
_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}'
6026
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6027
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6028
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6029
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6030
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6031
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6032
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6247
if test -f /usr/libexec/ld.so; then
6248
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6249
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6250
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6251
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6252
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6253
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6254
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6257
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6258
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6259
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6262
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6263
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6035
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6036
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6037
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6040
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6041
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6268
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6099
6324
case $host_os in
6100
6325
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6102
# The compiler driver will combine linker options so we
6103
# cannot just pass the convience library names through
6104
# without $wl, iff we do not link with $LD.
6105
# Luckily, gcc supports the same syntax we need for Sun Studio.
6327
# The compiler driver will combine and reorder linker options,
6328
# but understands `-z linker_flag'. GCC discards it without `$wl',
6329
# but is careful enough not to reorder.
6106
6330
# Supported since Solaris 2.6 (maybe 2.5.1?)
6109
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6111
_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' ;;
6331
if test "$GCC" = yes; then
6332
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6334
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6114
6338
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6344
6568
[AC_CHECK_TOOL(RC, windres, no)
6572
# Cheap backport of AS_EXECUTABLE_P and required macros
6573
# from Autoconf 2.59; we should not use $as_executable_p directly.
6577
m4_ifndef([_AS_TEST_PREPARE],
6578
[m4_defun([_AS_TEST_PREPARE],
6579
[if test -x / >/dev/null 2>&1; then
6580
as_executable_p='test -x'
6582
as_executable_p='test -f'
6584
])])# _AS_TEST_PREPARE
6588
# Check whether a file is executable.
6589
m4_ifndef([AS_EXECUTABLE_P],
6590
[m4_defun([AS_EXECUTABLE_P],
6591
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6592
$as_executable_p $1[]dnl
6593
])])# AS_EXECUTABLE_P
6347
6595
# NOTE: This macro has been submitted for inclusion into #
6348
6596
# GNU Autoconf as AC_PROG_SED. When it is available in #
6349
6597
# a released version of Autoconf we should remove this #
6415
6665
# ----------------------------
6416
6666
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6417
6667
# generated from the m4 files accompanying Automake X.Y.
6418
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6668
# (This private macro should not be called outside this file.)
6669
AC_DEFUN([AM_AUTOMAKE_VERSION],
6670
[am__api_version='1.10'
6671
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6672
dnl require some minimum version. Point them to the right macro.
6673
m4_if([$1], [1.10.1], [],
6674
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6677
# _AM_AUTOCONF_VERSION(VERSION)
6678
# -----------------------------
6679
# aclocal traces this macro to find the Autoconf version.
6680
# This is a private macro too. Using m4_define simplifies
6681
# the logic in aclocal, which can simply ignore this definition.
6682
m4_define([_AM_AUTOCONF_VERSION], [])
6420
6684
# AM_SET_CURRENT_AUTOMAKE_VERSION
6421
6685
# -------------------------------
6422
# Call AM_AUTOMAKE_VERSION so it can be traced.
6686
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6423
6687
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6424
6688
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6425
[AM_AUTOMAKE_VERSION([1.9.6])])
6689
[AM_AUTOMAKE_VERSION([1.10.1])dnl
6690
m4_ifndef([AC_AUTOCONF_VERSION],
6691
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
6692
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6427
6694
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6510
6779
Usually this means the macro was only invoked conditionally.]])
6514
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6782
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6515
6783
# Free Software Foundation, Inc.
6517
6785
# This file is free software; the Free Software Foundation
6518
6786
# gives unlimited permission to copy and/or distribute it,
6519
6787
# with or without modifications, as long as this notice is preserved.
6523
6791
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6524
6792
# written in clear, in which case automake, when reading aclocal.m4,
6749
7021
# Do all the work for Automake. -*- Autoconf -*-
6751
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6752
# Free Software Foundation, Inc.
7023
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7024
# 2005, 2006, 2008 Free Software Foundation, Inc.
6754
7026
# This file is free software; the Free Software Foundation
6755
7027
# gives unlimited permission to copy and/or distribute it,
6756
7028
# with or without modifications, as long as this notice is preserved.
6760
7032
# This macro actually does too much. Some checks are only needed if
6761
7033
# your package does certain things. But this isn't really a big deal.
6772
7044
# arguments mandatory, and then we can depend on a new Autoconf
6773
7045
# release and drop the old call support.
6774
7046
AC_DEFUN([AM_INIT_AUTOMAKE],
6775
[AC_PREREQ([2.58])dnl
7047
[AC_PREREQ([2.60])dnl
6776
7048
dnl Autoconf wants to disallow AM_ names. We explicitly allow
6777
7049
dnl the ones we care about.
6778
7050
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6779
7051
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6780
7052
AC_REQUIRE([AC_PROG_INSTALL])dnl
6781
# test to see if srcdir already configured
6782
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6783
test -f $srcdir/config.status; then
6784
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7053
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7054
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7055
# is not polluted with repeated "-I."
7056
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7057
# test to see if srcdir already configured
7058
if test -f $srcdir/config.status; then
7059
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6787
7063
# test whether we have cygpath
6991
7276
# AM_PROG_MKDIR_P
6992
7277
# ---------------
6993
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6995
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6996
# created by `make install' are always world readable, even if the
6997
# installer happens to have an overly restrictive umask (e.g. 077).
6998
# This was a mistake. There are at least two reasons why we must not
7000
# - it causes special bits like SGID to be ignored,
7001
# - it may be too restrictive (some setups expect 775 directories).
7003
# Do not use -m 0755 and let people choose whatever they expect by
7006
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7007
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7008
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7009
# concurrently, both version can detect that a/ is missing, but only
7010
# one can create it and the other will error out. Consequently we
7011
# restrict ourselves to GNU make (using the --version option ensures
7278
# Check for `mkdir -p'.
7013
7279
AC_DEFUN([AM_PROG_MKDIR_P],
7014
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7015
# We used to keeping the `.' as first argument, in order to
7016
# allow $(mkdir_p) to be used without argument. As in
7017
# $(mkdir_p) $(somedir)
7018
# where $(somedir) is conditionally defined. However this is wrong
7020
# 1. if the package is installed by a user who cannot write `.'
7021
# make install will fail,
7022
# 2. the above comment should most certainly read
7023
# $(mkdir_p) $(DESTDIR)$(somedir)
7024
# so it does not work when $(somedir) is undefined and
7025
# $(DESTDIR) is not.
7026
# To support the latter case, we have to write
7027
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7028
# so the `.' trick is pointless.
7029
mkdir_p='mkdir -p --'
7031
# On NextStep and OpenStep, the `mkdir' command does not
7032
# recognize any option. It will interpret all options as
7033
# directories to create, and then abort because `.' already
7035
for d in ./-p ./--version;
7037
test -d $d && rmdir $d
7039
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7040
if test -f "$ac_aux_dir/mkinstalldirs"; then
7041
mkdir_p='$(mkinstalldirs)'
7043
mkdir_p='$(install_sh) -d'
7046
AC_SUBST([mkdir_p])])
7280
[AC_PREREQ([2.60])dnl
7281
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7282
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7283
dnl while keeping a definition of mkdir_p for backward compatibility.
7284
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7285
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7286
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7287
dnl adjustment using top_builddir (which is defined more often than
7289
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7291
[[\\/$]]* | ?:[[\\/]]*) ;;
7292
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7048
7296
# Helper functions for option handling. -*- Autoconf -*-
7155
7403
if test "$cross_compiling" != no; then
7156
7404
AC_CHECK_TOOL([STRIP], [strip], :)
7158
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7406
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7159
7407
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7409
# Copyright (C) 2006 Free Software Foundation, Inc.
7411
# This file is free software; the Free Software Foundation
7412
# gives unlimited permission to copy and/or distribute it,
7413
# with or without modifications, as long as this notice is preserved.
7415
# _AM_SUBST_NOTMAKE(VARIABLE)
7416
# ---------------------------
7417
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
7418
# This macro is traced by Automake.
7419
AC_DEFUN([_AM_SUBST_NOTMAKE])
7161
7421
# Check how to create a tarball. -*- Autoconf -*-
7163
7423
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.