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.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
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'.])])
15
23
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
16
# serial 2 IT_PROG_INTLTOOL
24
# serial 36 IT_PROG_INTLTOOL
17
25
AC_DEFUN([IT_PROG_INTLTOOL],
18
26
[AC_PREREQ([2.50])dnl
74
83
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
75
84
AC_SUBST(INTLTOOL_THEME_RULE)
76
85
AC_SUBST(INTLTOOL_SERVICE_RULE)
86
AC_SUBST(INTLTOOL_POLICY_RULE)
88
# Check the gettext tools to make sure they are GNU
89
AC_PATH_PROG(XGETTEXT, xgettext)
90
AC_PATH_PROG(MSGMERGE, msgmerge)
91
AC_PATH_PROG(MSGFMT, msgfmt)
92
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
93
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
95
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
96
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
97
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
98
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
99
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
78
102
# Use the tools built into the package, not the ones that are installed.
79
103
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
99
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
100
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
101
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
102
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
123
# Substitute ALL_LINGUAS so we can use it in po/Makefile
124
AC_SUBST(ALL_LINGUAS)
126
# Set DATADIRNAME correctly if it is not set yet
127
# (copied from glib-gettext.m4)
128
if test -z "$DATADIRNAME"; then
130
[AC_LANG_PROGRAM([[]],
131
[[extern int _nl_msg_cat_cntr;
132
return _nl_msg_cat_cntr]])],
136
dnl On Solaris, if bind_textdomain_codeset is in libc,
137
dnl GNU format message catalog is always supported,
138
dnl since both are added to the libc all together.
139
dnl Hence, we'd like to go with DATADIRNAME=share
141
AC_CHECK_FUNC(bind_textdomain_codeset,
142
[DATADIRNAME=share], [DATADIRNAME=lib])
149
AC_SUBST(DATADIRNAME)
104
151
IT_PO_SUBDIR([po])
455
498
# Check for linker boilerplate output or warnings with
456
499
# the simple link test code.
457
500
AC_DEFUN([_LT_LINKER_BOILERPLATE],
458
[ac_outfile=conftest.$ac_objext
459
printf "$lt_simple_link_test_code" >conftest.$ac_ext
501
[AC_REQUIRE([LT_AC_PROG_SED])dnl
502
ac_outfile=conftest.$ac_objext
503
echo "$lt_simple_link_test_code" >conftest.$ac_ext
460
504
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
461
505
_lt_linker_boilerplate=`cat conftest.err`
463
507
])# _LT_LINKER_BOILERPLATE
509
# _LT_REQUIRED_DARWIN_CHECKS
510
# --------------------------
511
# Check for some things on darwin
512
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
515
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
516
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
518
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
519
[lt_cv_apple_cc_single_mod=no
520
if test -z "${LT_MULTI_MODULE}"; then
521
# By default we will add the -single_module flag. You can override
522
# by either setting the environment variable LT_MULTI_MODULE
523
# non-empty at configure time, or by adding -multi_module to the
525
echo "int foo(void){return 1;}" > conftest.c
526
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
527
-dynamiclib ${wl}-single_module conftest.c
528
if test -f libconftest.dylib; then
529
lt_cv_apple_cc_single_mod=yes
530
rm -rf libconftest.dylib*
534
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
535
[lt_cv_ld_exported_symbols_list],
536
[lt_cv_ld_exported_symbols_list=no
537
save_LDFLAGS=$LDFLAGS
538
echo "_main" > conftest.sym
539
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
540
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
541
[lt_cv_ld_exported_symbols_list=yes],
542
[lt_cv_ld_exported_symbols_list=no])
543
LDFLAGS="$save_LDFLAGS"
546
rhapsody* | darwin1.[[0123]])
547
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
549
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
551
# if running on 10.5 or later, the deployment target defaults
552
# to the OS version, if on x86, and 10.4, the deployment
553
# target defaults to 10.4. Don't you love it?
554
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
555
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
556
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
558
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
560
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
564
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
565
_lt_dar_single_mod='$single_module'
567
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
568
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
570
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
572
if test "$DSYMUTIL" != ":"; then
573
_lt_dsymutil="~$DSYMUTIL \$lib || :"
466
581
# _LT_AC_SYS_LIBPATH_AIX
467
582
# ----------------------
472
587
# If we don't find anything, use the default library path according
473
588
# to the aix ld manual.
474
589
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
475
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
476
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
590
[AC_REQUIRE([LT_AC_PROG_SED])dnl
591
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
593
/Import File Strings/,/^$/ {
599
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
478
600
# Check for a 64-bit object if we didn't find anything.
479
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; }
601
if test -z "$aix_libpath"; then
602
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
481
604
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
482
605
])# _LT_AC_SYS_LIBPATH_AIX
964
# If test is not a shell built-in, we'll probably end up computing a
965
# maximum length that is only half of the actual maximum length, but
967
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
968
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1099
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1100
if test -n "$lt_cv_sys_max_cmd_len"; then
1101
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1102
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1104
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1105
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
969
1106
= "XX$teststring") >/dev/null 2>&1 &&
970
new_result=`expr "X$teststring" : ".*" 2>&1` &&
971
lt_cv_sys_max_cmd_len=$new_result &&
972
test $i != 17 # 1/2 MB should be enough
975
teststring=$teststring$teststring
978
# Add a significant safety factor because C++ compilers can tack on massive
979
# amounts of additional arguments before passing them to the linker.
980
# It appears as though 1/2 is a usable value.
981
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1107
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1108
lt_cv_sys_max_cmd_len=$new_result &&
1109
test $i != 17 # 1/2 MB should be enough
1112
teststring=$teststring$teststring
1115
# Add a significant safety factor because C++ compilers can tack on massive
1116
# amounts of additional arguments before passing them to the linker.
1117
# It appears as though 1/2 is a usable value.
1118
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1384
1525
version_type=none
1385
1526
dynamic_linker="$host_os ld.so"
1386
1527
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1387
1529
if test "$GCC" = yes; then
1388
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1389
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1531
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1532
*) lt_awk_arg="/^libraries:/" ;;
1534
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1535
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1390
1536
# if the path contains ";" then we assume it to be the separator
1391
1537
# otherwise default to the standard path separator (i.e. ":") - it is
1392
1538
# assumed that no part of a normal pathname contains ";" but that should
1393
1539
# okay in the real world where ";" in dirpaths is itself problematic.
1394
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1540
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1396
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1542
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1544
# Ok, now we have the path, separated by spaces, we can step through it
1545
# and add multilib dir if necessary.
1546
lt_tmp_lt_search_path_spec=
1547
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1548
for lt_sys_path in $lt_search_path_spec; do
1549
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1550
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1552
test -d "$lt_sys_path" && \
1553
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1556
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1557
BEGIN {RS=" "; FS="/|\n";} {
1560
for (lt_i = NF; lt_i > 0; lt_i--) {
1561
if ($lt_i != "" && $lt_i != ".") {
1562
if ($lt_i == "..") {
1565
if (lt_count == 0) {
1566
lt_foo="/" $lt_i lt_foo;
1573
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1574
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1576
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1399
1578
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1401
1580
need_lib_prefix=unknown
1402
1581
hardcode_into_libs=no
1757
1920
# before this can be enabled.
1758
1921
hardcode_into_libs=yes
1760
# find out which ABI we are using
1763
x86_64*|s390x*|powerpc64*)
1764
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1765
if AC_TRY_EVAL(ac_compile); then
1766
case `/usr/bin/file conftest.$ac_objext` in
1769
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1777
1923
# Append ld.so.conf contents to the search path
1778
1924
if test -f /etc/ld.so.conf; then
1779
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' ' '`
1780
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1925
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' ' '`
1926
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1783
1929
# We used to test for /lib/ld.so.1 and disable shared libraries on
2498
2656
mingw* | pw32*)
2499
2657
# Base MSYS/MinGW do not provide the 'file' command needed by
2500
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2501
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2502
lt_cv_file_magic_cmd='$OBJDUMP -f'
2658
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2659
# unless we find 'file', for example because we are cross-compiling.
2660
if ( file / ) >/dev/null 2>&1; then
2661
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2662
lt_cv_file_magic_cmd='func_win32_libid'
2664
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2665
lt_cv_file_magic_cmd='$OBJDUMP -f'
2505
2669
darwin* | rhapsody*)
2506
2670
lt_cv_deplibs_check_method=pass_all
2509
freebsd* | kfreebsd*-gnu | dragonfly*)
2673
freebsd* | dragonfly*)
2510
2674
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2511
2675
case $host_cpu in
3228
3397
darwin* | rhapsody*)
3230
rhapsody* | darwin1.[[012]])
3231
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3234
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3235
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3237
case ${MACOSX_DEPLOYMENT_TARGET} in
3239
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3242
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3248
3398
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3249
3399
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3250
3400
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3251
3401
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3252
3402
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3253
3403
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3255
if test "$GXX" = yes ; then
3256
lt_int_apple_cc_single_mod=no
3404
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3405
if test "$GXX" = yes ; then
3257
3406
output_verbose_link_cmd='echo'
3258
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3259
lt_int_apple_cc_single_mod=yes
3407
_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}"
3408
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3409
_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}"
3410
_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}"
3411
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3412
_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}"
3413
_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}"
3261
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3262
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3264
_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'
3266
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3267
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3268
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3269
_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}'
3271
_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}'
3273
_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}'
3275
3416
case $cc_basename in
3277
3418
output_verbose_link_cmd='echo'
3278
_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'
3419
_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'
3279
3420
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3280
3421
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3281
_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}'
3422
_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}'
3282
3423
_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}'
3551
3690
# dependencies.
3552
3691
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'
3694
case `$CC -V 2>&1 | sed 5q` in
3697
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3698
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3699
_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'
3700
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3701
_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'
3703
# Not sure whether something based on
3704
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3706
output_verbose_link_cmd='echo'
3708
# Archives containing C++ object files must be created using
3709
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3710
# necessary to make sure instantiated templates are included
3712
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3589
3751
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3592
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3593
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3594
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3595
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3596
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3597
_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'
3598
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3599
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3754
if test -f /usr/libexec/ld.so; then
3755
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3756
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3757
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3758
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3759
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3760
_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'
3761
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3762
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3764
output_verbose_link_cmd='echo'
3766
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3601
output_verbose_link_cmd='echo'
3604
3770
case $cc_basename in
3760
3926
case $host_os in
3761
3927
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3763
# The C++ compiler is used as linker so we must use $wl
3764
# flag to pass the commands to the underlying system
3765
# linker. We must also pass each convience library through
3766
# to the system linker between allextract/defaultextract.
3767
# The C++ compiler will combine linker options so we
3768
# cannot just pass the convience library names through
3929
# The compiler driver will combine and reorder linker options,
3930
# but understands `-z linker_flag'.
3770
3931
# Supported since Solaris 2.6 (maybe 2.5.1?)
3771
_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'
3932
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3774
3935
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4066
4239
_LT_AC_TAGVAR(postdeps,$1)=
4243
case `$CC -V 2>&1 | sed 5q` in
4247
# The more standards-conforming stlport4 library is
4248
# incompatible with the Cstd library. Avoid specifying
4249
# it if it's in CXXFLAGS. Ignore libCrun as
4250
# -library=stlport4 depends on it.
4251
case " $CXX $CXXFLAGS " in
4252
*" -library=stlport4 "*)
4253
solaris_use_stlport4=yes
4256
if test "$solaris_use_stlport4" != yes; then
4257
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4070
4264
case $cc_basename in
4266
# The more standards-conforming stlport4 library is
4267
# incompatible with the Cstd library. Avoid specifying
4268
# it if it's in CXXFLAGS. Ignore libCrun as
4269
# -library=stlport4 depends on it.
4270
case " $CXX $CXXFLAGS " in
4271
*" -library=stlport4 "*)
4272
solaris_use_stlport4=yes
4072
4276
# Adding this requires a known-good setup of shared libraries for
4073
4277
# Sun compiler versions before 5.6, else PIC objects from an old
4074
4278
# archive will be linked into the output, leading to subtle bugs.
4075
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4279
if test "$solaris_use_stlport4" != yes; then
4280
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4082
4287
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4083
4288
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5583
5842
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5584
5843
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5585
5844
# as well as any symbol that contains `d'.
5586
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5845
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5587
5846
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5588
5847
# platforms (ab)use it in PIC code, but their linkers get confused if
5589
5848
# the symbol is explicitly referenced. Since portable code cannot
5590
5849
# rely on this symbol name, it's probably fine to never include it in
5591
5850
# preloaded symbol tables.
5851
# Exclude shared library initialization/finalization symbols.
5852
dnl Note also adjust exclude_expsyms for C++ above.
5592
5853
extract_expsyms_cmds=
5593
5854
# Just being paranoid about ensuring that cc_basename is set.
5594
5855
_LT_CC_BASENAME([$compiler])
5737
5998
ifc* | ifort*) # Intel Fortran compiler
5738
5999
tmp_addflag=' -nofor_main' ;;
5740
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6001
case `$CC -V 2>&1 | sed 5q` in
6002
*Sun\ C*) # Sun C 5.9
6003
_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'
6004
tmp_sharedflag='-G' ;;
6005
*Sun\ F*) # Sun Fortran 8.3
6006
tmp_sharedflag='-G' ;;
6008
tmp_sharedflag='-shared' ;;
6010
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5742
6012
if test $supports_anon_versioning = yes; then
5743
6013
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5744
6014
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5745
6015
$echo "local: *; };" >> $output_objdir/$libname.ver~
5746
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6016
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6018
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5749
6020
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6024
netbsd* | netbsdelf*-gnu)
5754
6025
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5755
6026
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6028
6299
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6029
6300
if test "$GCC" = yes ; then
6030
6301
output_verbose_link_cmd='echo'
6031
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6032
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6033
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6034
_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}'
6035
_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}'
6302
_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}"
6303
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6304
_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}"
6305
_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}"
6037
6307
case $cc_basename in
6039
6309
output_verbose_link_cmd='echo'
6040
_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'
6310
_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'
6041
6311
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6042
6312
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6043
_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}'
6313
_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}'
6044
6314
_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}'
6205
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6206
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6207
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6208
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6209
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6210
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6211
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6475
if test -f /usr/libexec/ld.so; then
6476
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6477
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6478
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6479
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6480
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6481
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6482
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6485
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6486
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6487
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6490
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6491
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6214
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6215
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6216
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6219
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6220
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6496
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6278
6552
case $host_os in
6279
6553
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6281
# The compiler driver will combine linker options so we
6282
# cannot just pass the convience library names through
6283
# without $wl, iff we do not link with $LD.
6284
# Luckily, gcc supports the same syntax we need for Sun Studio.
6555
# The compiler driver will combine and reorder linker options,
6556
# but understands `-z linker_flag'. GCC discards it without `$wl',
6557
# but is careful enough not to reorder.
6285
6558
# Supported since Solaris 2.6 (maybe 2.5.1?)
6288
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6290
_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' ;;
6559
if test "$GCC" = yes; then
6560
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6562
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6293
6566
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6523
6796
[AC_CHECK_TOOL(RC, windres, no)
6800
# Cheap backport of AS_EXECUTABLE_P and required macros
6801
# from Autoconf 2.59; we should not use $as_executable_p directly.
6805
m4_ifndef([_AS_TEST_PREPARE],
6806
[m4_defun([_AS_TEST_PREPARE],
6807
[if test -x / >/dev/null 2>&1; then
6808
as_executable_p='test -x'
6810
as_executable_p='test -f'
6812
])])# _AS_TEST_PREPARE
6816
# Check whether a file is executable.
6817
m4_ifndef([AS_EXECUTABLE_P],
6818
[m4_defun([AS_EXECUTABLE_P],
6819
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6820
$as_executable_p $1[]dnl
6821
])])# AS_EXECUTABLE_P
6526
6823
# NOTE: This macro has been submitted for inclusion into #
6527
6824
# GNU Autoconf as AC_PROG_SED. When it is available in #
6528
6825
# a released version of Autoconf we should remove this #
6751
7051
# ----------------------------
6752
7052
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6753
7053
# generated from the m4 files accompanying Automake X.Y.
6754
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
7054
# (This private macro should not be called outside this file.)
7055
AC_DEFUN([AM_AUTOMAKE_VERSION],
7056
[am__api_version='1.10'
7057
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7058
dnl require some minimum version. Point them to the right macro.
7059
m4_if([$1], [1.10.1], [],
7060
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7063
# _AM_AUTOCONF_VERSION(VERSION)
7064
# -----------------------------
7065
# aclocal traces this macro to find the Autoconf version.
7066
# This is a private macro too. Using m4_define simplifies
7067
# the logic in aclocal, which can simply ignore this definition.
7068
m4_define([_AM_AUTOCONF_VERSION], [])
6756
7070
# AM_SET_CURRENT_AUTOMAKE_VERSION
6757
7071
# -------------------------------
6758
# Call AM_AUTOMAKE_VERSION so it can be traced.
7072
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6759
7073
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6760
7074
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6761
[AM_AUTOMAKE_VERSION([1.9.6])])
7075
[AM_AUTOMAKE_VERSION([1.10.1])dnl
7076
m4_ifndef([AC_AUTOCONF_VERSION],
7077
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7078
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6763
7080
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6846
7165
Usually this means the macro was only invoked conditionally.]])
6850
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7168
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6851
7169
# Free Software Foundation, Inc.
6853
7171
# This file is free software; the Free Software Foundation
6854
7172
# gives unlimited permission to copy and/or distribute it,
6855
7173
# with or without modifications, as long as this notice is preserved.
6859
7177
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6860
7178
# written in clear, in which case automake, when reading aclocal.m4,
7073
7395
# Do all the work for Automake. -*- Autoconf -*-
7075
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7076
# Free Software Foundation, Inc.
7397
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7398
# 2005, 2006, 2008 Free Software Foundation, Inc.
7078
7400
# This file is free software; the Free Software Foundation
7079
7401
# gives unlimited permission to copy and/or distribute it,
7080
7402
# with or without modifications, as long as this notice is preserved.
7084
7406
# This macro actually does too much. Some checks are only needed if
7085
7407
# your package does certain things. But this isn't really a big deal.
7096
7418
# arguments mandatory, and then we can depend on a new Autoconf
7097
7419
# release and drop the old call support.
7098
7420
AC_DEFUN([AM_INIT_AUTOMAKE],
7099
[AC_PREREQ([2.58])dnl
7421
[AC_PREREQ([2.60])dnl
7100
7422
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7101
7423
dnl the ones we care about.
7102
7424
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7103
7425
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7104
7426
AC_REQUIRE([AC_PROG_INSTALL])dnl
7105
# test to see if srcdir already configured
7106
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7107
test -f $srcdir/config.status; then
7108
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7427
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7428
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7429
# is not polluted with repeated "-I."
7430
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7431
# test to see if srcdir already configured
7432
if test -f $srcdir/config.status; then
7433
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7111
7437
# test whether we have cygpath
7219
7553
rmdir .tst 2>/dev/null
7220
7554
AC_SUBST([am__leading_dot])])
7222
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7223
# Free Software Foundation, Inc.
7556
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
7557
# 2006 Free Software Foundation, Inc.
7225
7559
# This file is free software; the Free Software Foundation
7226
7560
# gives unlimited permission to copy and/or distribute it,
7227
7561
# with or without modifications, as long as this notice is preserved.
7231
7565
# AM_PATH_LISPDIR
7232
7566
# ---------------
7233
7567
AC_DEFUN([AM_PATH_LISPDIR],
7234
[ # If set to t, that means we are running in a shell under Emacs.
7568
[AC_PREREQ([2.60])dnl
7569
# If set to t, that means we are running in a shell under Emacs.
7235
7570
# If you have an Emacs named "t", then use the full path.
7236
7571
test x"$EMACS" = xt && EMACS=
7237
7572
AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
7270
7605
AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
7607
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
7610
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
7611
# Free Software Foundation, Inc.
7613
# This file is free software; the Free Software Foundation
7614
# gives unlimited permission to copy and/or distribute it,
7615
# with or without modifications, as long as this notice is preserved.
7619
AC_DEFUN([AM_MAINTAINER_MODE],
7620
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7621
dnl maintainer-mode is disabled by default
7622
AC_ARG_ENABLE(maintainer-mode,
7623
[ --enable-maintainer-mode enable make rules and dependencies not useful
7624
(and sometimes confusing) to the casual installer],
7625
USE_MAINTAINER_MODE=$enableval,
7626
USE_MAINTAINER_MODE=no)
7627
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7628
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7629
MAINT=$MAINTAINER_MODE_TRUE
7634
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7272
7636
# Check to see how 'make' treats includes. -*- Autoconf -*-
7274
7638
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7365
7730
# AM_PROG_MKDIR_P
7366
7731
# ---------------
7367
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7369
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7370
# created by `make install' are always world readable, even if the
7371
# installer happens to have an overly restrictive umask (e.g. 077).
7372
# This was a mistake. There are at least two reasons why we must not
7374
# - it causes special bits like SGID to be ignored,
7375
# - it may be too restrictive (some setups expect 775 directories).
7377
# Do not use -m 0755 and let people choose whatever they expect by
7380
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7381
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7382
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7383
# concurrently, both version can detect that a/ is missing, but only
7384
# one can create it and the other will error out. Consequently we
7385
# restrict ourselves to GNU make (using the --version option ensures
7732
# Check for `mkdir -p'.
7387
7733
AC_DEFUN([AM_PROG_MKDIR_P],
7388
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7389
# We used to keeping the `.' as first argument, in order to
7390
# allow $(mkdir_p) to be used without argument. As in
7391
# $(mkdir_p) $(somedir)
7392
# where $(somedir) is conditionally defined. However this is wrong
7394
# 1. if the package is installed by a user who cannot write `.'
7395
# make install will fail,
7396
# 2. the above comment should most certainly read
7397
# $(mkdir_p) $(DESTDIR)$(somedir)
7398
# so it does not work when $(somedir) is undefined and
7399
# $(DESTDIR) is not.
7400
# To support the latter case, we have to write
7401
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7402
# so the `.' trick is pointless.
7403
mkdir_p='mkdir -p --'
7405
# On NextStep and OpenStep, the `mkdir' command does not
7406
# recognize any option. It will interpret all options as
7407
# directories to create, and then abort because `.' already
7409
for d in ./-p ./--version;
7411
test -d $d && rmdir $d
7413
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7414
if test -f "$ac_aux_dir/mkinstalldirs"; then
7415
mkdir_p='$(mkinstalldirs)'
7417
mkdir_p='$(install_sh) -d'
7420
AC_SUBST([mkdir_p])])
7734
[AC_PREREQ([2.60])dnl
7735
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7736
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7737
dnl while keeping a definition of mkdir_p for backward compatibility.
7738
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7739
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7740
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7741
dnl adjustment using top_builddir (which is defined more often than
7743
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7745
[[\\/$]]* | ?:[[\\/]]*) ;;
7746
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7422
7750
# Helper functions for option handling. -*- Autoconf -*-
7529
7857
if test "$cross_compiling" != no; then
7530
7858
AC_CHECK_TOOL([STRIP], [strip], :)
7532
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7860
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7533
7861
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7863
# Copyright (C) 2006 Free Software Foundation, Inc.
7865
# This file is free software; the Free Software Foundation
7866
# gives unlimited permission to copy and/or distribute it,
7867
# with or without modifications, as long as this notice is preserved.
7869
# _AM_SUBST_NOTMAKE(VARIABLE)
7870
# ---------------------------
7871
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
7872
# This macro is traced by Automake.
7873
AC_DEFUN([_AM_SUBST_NOTMAKE])
7535
7875
# Check how to create a tarball. -*- Autoconf -*-
7537
7877
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.