486
489
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
489
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
490
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
491
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
492
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
493
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
494
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
495
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
496
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
497
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
498
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
499
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
500
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
501
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
502
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
503
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
504
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
505
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
506
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
507
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
492
if test -z "$AM_DEFAULT_VERBOSITY"; then
493
AM_DEFAULT_VERBOSITY=1
495
AC_SUBST([AM_DEFAULT_VERBOSITY])
497
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
498
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
499
INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
500
AC_SUBST(INTLTOOL_V_MERGE)
501
AC_SUBST(INTLTOOL__v_MERGE_)
502
AC_SUBST(INTLTOOL__v_MERGE_0)
504
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
505
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
506
intltool__v_merge_options_0='-q'
507
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
508
AC_SUBST(intltool__v_merge_options_)
509
AC_SUBST(intltool__v_merge_options_0)
511
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
512
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
513
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
514
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
515
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
516
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
517
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
518
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
519
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
520
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
521
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
522
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
523
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
525
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
527
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
528
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
529
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
530
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
531
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
532
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
533
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
509
535
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
510
536
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
1656
# _LT_SYS_MODULE_PATH_AIX
1657
# -----------------------
1786
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1787
# ----------------------------------
1658
1788
# Links a minimal program and checks the executable
1659
1789
# for the system default hardcoded library path. In most cases,
1660
1790
# this is /usr/lib:/lib, but when the MPI compilers are used
1661
1791
# the location of the communication and MPI libs are included too.
1662
1792
# If we don't find anything, use the default library path according
1663
1793
# to the aix ld manual.
1794
# Store the results from the different compilers for each TAGNAME.
1795
# Allow to override them for all tags through lt_cv_aix_libpath.
1664
1796
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1665
1797
[m4_require([_LT_DECL_SED])dnl
1666
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1667
lt_aix_libpath_sed='
1668
/Import File Strings/,/^$/ {
1674
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1675
# Check for a 64-bit object if we didn't find anything.
1676
if test -z "$aix_libpath"; then
1677
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1679
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1798
if test "${lt_cv_aix_libpath+set}" = set; then
1799
aix_libpath=$lt_cv_aix_libpath
1801
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1802
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1803
lt_aix_libpath_sed='[
1804
/Import File Strings/,/^$/ {
1806
s/^0 *\([^ ]*\) *$/\1/
1810
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1811
# Check for a 64-bit object if we didn't find anything.
1812
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1813
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1815
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1816
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1819
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1680
1821
])# _LT_SYS_MODULE_PATH_AIX
1683
1824
# _LT_SHELL_INIT(ARG)
1684
1825
# -------------------
1685
1826
m4_define([_LT_SHELL_INIT],
1686
[ifdef([AC_DIVERSION_NOTICE],
1687
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1688
[AC_DIVERT_PUSH(NOTICE)])
1827
[m4_divert_text([M4SH-INIT], [$1
1828
])])# _LT_SHELL_INIT
1694
1832
# _LT_PROG_ECHO_BACKSLASH
1695
1833
# -----------------------
1696
# Add some code to the start of the generated configure script which
1697
# will find an echo command which doesn't interpret backslashes.
1834
# Find how we can fake an echo command that does not interpret backslash.
1835
# In particular, with Autoconf 2.60 or later we add some code to the start
1836
# of the generated configure script which will find a shell with a builtin
1837
# printf (which we can use as an echo command).
1698
1838
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1700
# Check that we are running under the correct shell.
1701
SHELL=${CONFIG_SHELL-/bin/sh}
1705
# Remove one level of quotation (which was required for Make).
1706
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1839
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1840
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1841
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1843
AC_MSG_CHECKING([how to print strings])
1844
# Test print first, because it will be a builtin if present.
1845
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1846
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1848
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1851
# Use this function as a fallback that always works.
1852
func_fallback_echo ()
1854
eval 'cat <<_LTECHO_EOF
1858
ECHO='func_fallback_echo'
1861
# func_echo_all arg...
1862
# Invoke $ECHO with all args, space-separated.
1869
printf*) AC_MSG_RESULT([printf]) ;;
1870
print*) AC_MSG_RESULT([print -r]) ;;
1871
*) AC_MSG_RESULT([cat]) ;;
1710
ECHO=${lt_ECHO-echo}
1711
if test "X[$]1" = X--no-reexec; then
1712
# Discard the --no-reexec flag, and continue.
1714
elif test "X[$]1" = X--fallback-echo; then
1715
# Avoid inline document here, it may be left over
1717
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1718
# Yippee, $ECHO works!
1721
# Restart under the correct shell.
1722
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1725
if test "X[$]1" = X--fallback-echo; then
1726
# used as fallback echo
1734
# The HP-UX ksh and POSIX shell print the target directory to stdout
1736
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1738
if test -z "$lt_ECHO"; then
1739
if test "X${echo_test_string+set}" != Xset; then
1740
# find a string as large as possible, as long as the shell can cope with it
1741
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1742
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1743
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1744
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1751
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1752
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1753
test "X$echo_testing_string" = "X$echo_test_string"; then
1756
# The Solaris, AIX, and Digital Unix default echo programs unquote
1757
# backslashes. This makes it impossible to quote backslashes using
1758
# echo "$something" | sed 's/\\/\\\\/g'
1760
# So, first we look for a working echo in the user's PATH.
1762
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1763
for dir in $PATH /usr/ucb; do
1765
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1766
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1767
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1768
test "X$echo_testing_string" = "X$echo_test_string"; then
1775
if test "X$ECHO" = Xecho; then
1776
# We didn't find a better echo, so look for alternatives.
1777
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1778
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1779
test "X$echo_testing_string" = "X$echo_test_string"; then
1780
# This shell has a builtin print -r that does the trick.
1782
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1783
test "X$CONFIG_SHELL" != X/bin/ksh; then
1784
# If we have ksh, try running configure again with it.
1785
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1786
export ORIGINAL_CONFIG_SHELL
1787
CONFIG_SHELL=/bin/ksh
1789
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1793
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1794
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1795
test "X$echo_testing_string" = "X$echo_test_string"; then
1796
# Cool, printf works
1798
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1799
test "X$echo_testing_string" = 'X\t' &&
1800
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1801
test "X$echo_testing_string" = "X$echo_test_string"; then
1802
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1804
SHELL="$CONFIG_SHELL"
1806
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1807
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1808
test "X$echo_testing_string" = 'X\t' &&
1809
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1810
test "X$echo_testing_string" = "X$echo_test_string"; then
1811
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1813
# maybe with a smaller string...
1816
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1817
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1824
if test "$prev" != 'sed 50q "[$]0"'; then
1825
echo_test_string=`eval $prev`
1826
export echo_test_string
1827
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1829
# Oops. We lost completely, so just stick with echo.
1838
# Copy echo and quote the copy suitably for passing to libtool from
1839
# the Makefile, instead of quoting the original, which is used later.
1841
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1842
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1874
m4_ifdef([_AS_DETECT_SUGGESTED],
1875
[_AS_DETECT_SUGGESTED([
1876
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1877
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1878
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1879
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1880
PATH=/empty FPATH=/empty; export PATH FPATH
1881
test "X`printf %s $ECHO`" = "X$ECHO" \
1882
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1847
1884
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1848
_LT_DECL([], [ECHO], [1],
1849
[An echo program that does not interpret backslashes])
1885
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1850
1886
])# _LT_PROG_ECHO_BACKSLASH
1891
AC_DEFUN([_LT_WITH_SYSROOT],
1892
[AC_MSG_CHECKING([for sysroot])
1893
AC_ARG_WITH([sysroot],
1894
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1895
(or the compiler's sysroot if not specified).],
1896
[], [with_sysroot=no])
1898
dnl lt_sysroot will always be passed unquoted. We quote it here
1899
dnl in case the user passed a directory name.
1901
case ${with_sysroot} in #(
1903
if test "$GCC" = yes; then
1904
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1908
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1913
AC_MSG_RESULT([${with_sysroot}])
1914
AC_MSG_ERROR([The sysroot must be an absolute path.])
1918
AC_MSG_RESULT([${lt_sysroot:-no}])
1919
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1920
[dependent libraries, and in which our libraries should be installed.])])
1853
1922
# _LT_ENABLE_LOCK
1854
1923
# ---------------
1855
1924
m4_defun([_LT_ENABLE_LOCK],
2871
3038
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2872
3039
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2873
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3041
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2875
3043
mingw* | cegcc*)
2876
3044
# MinGW DLLs use traditional 'lib' prefix
2877
3045
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2878
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2879
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2880
# It is most probably a Windows format PATH printed by
2881
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2882
# path with ; separators, and with drive letters. We can handle the
2883
# drive letters (cygwin fileutils understands them), so leave them,
2884
# especially as we might pass files found there to a mingw objdump,
2885
# which wouldn't understand a cygwinified path. Ahh.
2886
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2888
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2892
3048
# pw32 DLLs use 'pw' prefix rather than 'lib'
2893
3049
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3052
dynamic_linker='Win32 ld.exe'
3057
libname_spec='$name'
3058
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3059
library_names_spec='${libname}.dll.lib'
3063
sys_lib_search_path_spec=
3069
# Let DOS variable expansion print the short 8.3 style file name.
3070
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3071
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3074
# Convert to MSYS style.
3075
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3078
# Convert to unix form, then to dos form, then back to unix form
3079
# but this time dos style (no spaces!) so that the unix form looks
3080
# like /cygdrive/c/PROGRA~1:/cygdr...
3081
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3082
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3083
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3086
sys_lib_search_path_spec="$LIB"
3087
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3088
# It is most probably a Windows format PATH.
3089
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3091
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3093
# FIXME: find the short name or the path components, as spaces are
3094
# common. (e.g. "Program Files" -> "PROGRA~1")
3098
# DLL is installed to $(libdir)/../bin by postinstall_cmds
3099
postinstall_cmds='base_file=`basename \${file}`~
3100
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3101
dldir=$destdir/`dirname \$dlpath`~
3102
test -d \$dldir || mkdir -p \$dldir~
3103
$install_prog $dir/$dlname \$dldir/$dlname'
3104
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3105
dlpath=$dir/\$dldll~
3107
shlibpath_overrides_runpath=yes
3108
dynamic_linker='Win32 link.exe'
3112
# Assume MSVC wrapper
2899
3113
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3114
dynamic_linker='Win32 ld.exe'
2902
dynamic_linker='Win32 ld.exe'
2903
3117
# FIXME: first we should search . and the directory the executable is in
2904
3118
shlibpath_var=PATH
3902
4163
dnl AC_DEFUN([AM_PROG_NM], [])
3903
4164
dnl AC_DEFUN([AC_PROG_NM], [])
4166
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4167
# --------------------------------
4168
# how to determine the name of the shared library
4169
# associated with a specific link library.
4170
# -- PORTME fill in with the dynamic library characteristics
4171
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4172
[m4_require([_LT_DECL_EGREP])
4173
m4_require([_LT_DECL_OBJDUMP])
4174
m4_require([_LT_DECL_DLLTOOL])
4175
AC_CACHE_CHECK([how to associate runtime and link libraries],
4176
lt_cv_sharedlib_from_linklib_cmd,
4177
[lt_cv_sharedlib_from_linklib_cmd='unknown'
4180
cygwin* | mingw* | pw32* | cegcc*)
4181
# two different shell functions defined in ltmain.sh
4182
# decide which to use based on capabilities of $DLLTOOL
4183
case `$DLLTOOL --help 2>&1` in
4184
*--identify-strict*)
4185
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4188
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4193
# fallback: assume linklib IS sharedlib
4194
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4198
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4199
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4201
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4202
[Command to associate shared and link libraries])
4203
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4206
# _LT_PATH_MANIFEST_TOOL
4207
# ----------------------
4208
# locate the manifest tool
4209
m4_defun([_LT_PATH_MANIFEST_TOOL],
4210
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4211
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4212
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4213
[lt_cv_path_mainfest_tool=no
4214
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4215
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4216
cat conftest.err >&AS_MESSAGE_LOG_FD
4217
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4218
lt_cv_path_mainfest_tool=yes
4221
if test "x$lt_cv_path_mainfest_tool" != xyes; then
4224
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4225
])# _LT_PATH_MANIFEST_TOOL
5340
5796
# Microsoft Visual C++.
5341
5797
# hardcode_libdir_flag_spec is actually meaningless, as there is
5342
5798
# no search path for DLLs.
5343
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5344
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5345
# Tell ltmain to make .lib files, not .a files.
5347
# Tell ltmain to make .dll files, not .so files.
5349
# FIXME: Setting linknames here is a bad hack.
5350
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5351
# The linker will automatically build a .lib file if we build a DLL.
5352
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5353
# FIXME: Should let the user specify the lib program.
5354
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5355
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5356
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5799
case $cc_basename in
5802
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5803
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5804
_LT_TAGVAR(always_export_symbols, $1)=yes
5805
_LT_TAGVAR(file_list_spec, $1)='@'
5806
# Tell ltmain to make .lib files, not .a files.
5808
# Tell ltmain to make .dll files, not .so files.
5810
# FIXME: Setting linknames here is a bad hack.
5811
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5812
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5813
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5815
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5817
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5819
# The linker will not automatically build a static lib if we build a DLL.
5820
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5821
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5822
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5823
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5825
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5826
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5827
lt_tool_outputfile="@TOOL_OUTPUT@"~
5828
case $lt_outputfile in
5831
lt_outputfile="$lt_outputfile.exe"
5832
lt_tool_outputfile="$lt_tool_outputfile.exe"
5835
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5836
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5837
$RM "$lt_outputfile.manifest";
5841
# Assume MSVC wrapper
5842
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5843
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5844
# Tell ltmain to make .lib files, not .a files.
5846
# Tell ltmain to make .dll files, not .so files.
5848
# FIXME: Setting linknames here is a bad hack.
5849
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5850
# The linker will automatically build a .lib file if we build a DLL.
5851
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5852
# FIXME: Should let the user specify the lib program.
5853
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5854
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5359
5859
darwin* | rhapsody*)
5483
5985
irix5* | irix6* | nonstopux*)
5484
5986
if test "$GCC" = yes; then
5485
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5987
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5486
5988
# Try to use the -exported_symbol ld option, if it does not
5487
5989
# work, assume that -exports_file does not work either and
5488
5990
# implicitly export all symbols.
5489
save_LDFLAGS="$LDFLAGS"
5490
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5491
AC_LINK_IFELSE(int foo(void) {},
5492
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5494
LDFLAGS="$save_LDFLAGS"
5991
# This should be the same for all languages, so no per-tag cache variable.
5992
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5993
[lt_cv_irix_exported_symbol],
5994
[save_LDFLAGS="$LDFLAGS"
5995
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5998
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5999
[C++], [[int foo (void) { return 0; }]],
6006
[lt_cv_irix_exported_symbol=yes],
6007
[lt_cv_irix_exported_symbol=no])
6008
LDFLAGS="$save_LDFLAGS"])
6009
if test "$lt_cv_irix_exported_symbol" = yes; then
6010
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5496
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5497
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6013
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6014
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5499
6016
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5500
6017
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5773
6290
# Test whether the compiler implicitly links with -lc since on some
5774
6291
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5775
6292
# to ld, don't add -lc before -lgcc.
5776
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5778
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6293
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6294
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6296
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5780
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5783
libobjs=conftest.$ac_objext
5785
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5786
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5792
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5793
_LT_TAGVAR(allow_undefined_flag, $1)=
5794
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5796
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5798
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5800
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5802
cat conftest.err 1>&5
5805
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6298
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6301
libobjs=conftest.$ac_objext
6303
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6304
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6310
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6311
_LT_TAGVAR(allow_undefined_flag, $1)=
6312
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6314
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6316
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6318
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6320
cat conftest.err 1>&5
6324
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6282
6791
cygwin* | mingw* | pw32* | cegcc*)
6283
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6284
# as there is no search path for DLLs.
6285
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6286
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6287
_LT_TAGVAR(always_export_symbols, $1)=no
6288
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6792
case $GXX,$cc_basename in
6795
# hardcode_libdir_flag_spec is actually meaningless, as there is
6796
# no search path for DLLs.
6797
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6798
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6799
_LT_TAGVAR(always_export_symbols, $1)=yes
6800
_LT_TAGVAR(file_list_spec, $1)='@'
6801
# Tell ltmain to make .lib files, not .a files.
6803
# Tell ltmain to make .dll files, not .so files.
6805
# FIXME: Setting linknames here is a bad hack.
6806
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6807
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6808
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6810
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6812
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6814
# The linker will not automatically build a static lib if we build a DLL.
6815
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6816
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6818
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6819
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6820
lt_tool_outputfile="@TOOL_OUTPUT@"~
6821
case $lt_outputfile in
6824
lt_outputfile="$lt_outputfile.exe"
6825
lt_tool_outputfile="$lt_tool_outputfile.exe"
6828
func_to_tool_file "$lt_outputfile"~
6829
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6830
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6831
$RM "$lt_outputfile.manifest";
6836
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6837
# as there is no search path for DLLs.
6838
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6839
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6840
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6841
_LT_TAGVAR(always_export_symbols, $1)=no
6842
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6290
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6291
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6292
# If the export-symbols file already is a .def file (1st line
6293
# is EXPORTS), use it as is; otherwise, prepend...
6294
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6295
cp $export_symbols $output_objdir/$soname.def;
6297
echo EXPORTS > $output_objdir/$soname.def;
6298
cat $export_symbols >> $output_objdir/$soname.def;
6300
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6302
_LT_TAGVAR(ld_shlibs, $1)=no
6844
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6845
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6846
# If the export-symbols file already is a .def file (1st line
6847
# is EXPORTS), use it as is; otherwise, prepend...
6848
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6849
cp $export_symbols $output_objdir/$soname.def;
6851
echo EXPORTS > $output_objdir/$soname.def;
6852
cat $export_symbols >> $output_objdir/$soname.def;
6854
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6856
_LT_TAGVAR(ld_shlibs, $1)=no
6305
6861
darwin* | rhapsody*)
6306
6862
_LT_DARWIN_LINKER_FEATURES($1)
7802
8482
])# _LT_CHECK_SHELL_FEATURES
7805
# _LT_PROG_XSI_SHELLFNS
7806
# ---------------------
7807
# Bourne and XSI compatible variants of some useful shell functions.
7808
m4_defun([_LT_PROG_XSI_SHELLFNS],
7811
cat << \_LT_EOF >> "$cfgfile"
7813
# func_dirname file append nondir_replacement
7814
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7815
# otherwise set result to NONDIR_REPLACEMENT.
7819
*/*) func_dirname_result="${1%/*}${2}" ;;
7820
* ) func_dirname_result="${3}" ;;
7824
# func_basename file
7827
func_basename_result="${1##*/}"
7830
# func_dirname_and_basename file append nondir_replacement
7831
# perform func_basename and func_dirname in a single function
7833
# dirname: Compute the dirname of FILE. If nonempty,
7834
# add APPEND to the result, otherwise set result
7835
# to NONDIR_REPLACEMENT.
7836
# value returned in "$func_dirname_result"
7837
# basename: Compute filename of FILE.
7838
# value retuned in "$func_basename_result"
7839
# Implementation must be kept synchronized with func_dirname
7840
# and func_basename. For efficiency, we do not delegate to
7841
# those functions but instead duplicate the functionality here.
7842
func_dirname_and_basename ()
7845
*/*) func_dirname_result="${1%/*}${2}" ;;
7846
* ) func_dirname_result="${3}" ;;
7848
func_basename_result="${1##*/}"
7851
# func_stripname prefix suffix name
7852
# strip PREFIX and SUFFIX off of NAME.
7853
# PREFIX and SUFFIX must not contain globbing or regex special
7854
# characters, hashes, percent signs, but SUFFIX may contain a leading
7855
# dot (in which case that matches only a dot).
7858
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7859
# positional parameters, so assign one to ordinary parameter first.
7860
func_stripname_result=${3}
7861
func_stripname_result=${func_stripname_result#"${1}"}
7862
func_stripname_result=${func_stripname_result%"${2}"}
7868
func_opt_split_opt=${1%%=*}
7869
func_opt_split_arg=${1#*=}
7876
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7877
*) func_lo2o_result=${1} ;;
7881
# func_xform libobj-or-source
7884
func_xform_result=${1%.*}.lo
7887
# func_arith arithmetic-term...
7890
func_arith_result=$(( $[*] ))
7894
# STRING may not start with a hyphen.
7897
func_len_result=${#1}
7902
*) # Bourne compatible functions.
7903
cat << \_LT_EOF >> "$cfgfile"
7905
# func_dirname file append nondir_replacement
7906
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7907
# otherwise set result to NONDIR_REPLACEMENT.
7910
# Extract subdirectory from the argument.
7911
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7912
if test "X$func_dirname_result" = "X${1}"; then
7913
func_dirname_result="${3}"
7915
func_dirname_result="$func_dirname_result${2}"
7919
# func_basename file
7922
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7925
dnl func_dirname_and_basename
7926
dnl A portable version of this function is already defined in general.m4sh
7927
dnl so there is no need for it here.
7929
# func_stripname prefix suffix name
7930
# strip PREFIX and SUFFIX off of NAME.
7931
# PREFIX and SUFFIX must not contain globbing or regex special
7932
# characters, hashes, percent signs, but SUFFIX may contain a leading
7933
# dot (in which case that matches only a dot).
7934
# func_strip_suffix prefix name
7938
.*) func_stripname_result=`$ECHO "X${3}" \
7939
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7940
*) func_stripname_result=`$ECHO "X${3}" \
7941
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7946
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7947
my_sed_long_arg='1s/^-[[^=]]*=//'
7952
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7953
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7959
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7962
# func_xform libobj-or-source
7965
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7968
# func_arith arithmetic-term...
7971
func_arith_result=`expr "$[@]"`
7975
# STRING may not start with a hyphen.
7978
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7984
case $lt_shell_append in
7986
cat << \_LT_EOF >> "$cfgfile"
7988
# func_append var value
7989
# Append VALUE to the end of shell variable VAR.
7997
cat << \_LT_EOF >> "$cfgfile"
7999
# func_append var value
8000
# Append VALUE to the end of shell variable VAR.
8003
eval "$[1]=\$$[1]\$[2]"
8485
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8486
# ------------------------------------------------------
8487
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8488
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8489
m4_defun([_LT_PROG_FUNCTION_REPLACE],
8491
sed -e '/^$1 ()$/,/^} # $1 /c\
8494
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
8495
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8496
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8497
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8498
test 0 -eq $? || _lt_function_replace_fail=:
8502
# _LT_PROG_REPLACE_SHELLFNS
8503
# -------------------------
8504
# Replace existing portable implementations of several shell functions with
8505
# equivalent extended shell implementations where those features are available..
8506
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8507
[if test x"$xsi_shell" = xyes; then
8508
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8510
*/*) func_dirname_result="${1%/*}${2}" ;;
8511
* ) func_dirname_result="${3}" ;;
8514
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8515
func_basename_result="${1##*/}"])
8517
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8519
*/*) func_dirname_result="${1%/*}${2}" ;;
8520
* ) func_dirname_result="${3}" ;;
8522
func_basename_result="${1##*/}"])
8524
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8525
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8526
# positional parameters, so assign one to ordinary parameter first.
8527
func_stripname_result=${3}
8528
func_stripname_result=${func_stripname_result#"${1}"}
8529
func_stripname_result=${func_stripname_result%"${2}"}])
8531
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8532
func_split_long_opt_name=${1%%=*}
8533
func_split_long_opt_arg=${1#*=}])
8535
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8536
func_split_short_opt_arg=${1#??}
8537
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8539
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8541
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8542
*) func_lo2o_result=${1} ;;
8545
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8547
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8549
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8552
if test x"$lt_shell_append" = xyes; then
8553
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8555
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8556
func_quote_for_eval "${2}"
8557
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8558
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8560
# Save a `func_append' function call where possible by direct use of '+='
8561
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8562
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8563
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8564
test 0 -eq $? || _lt_function_replace_fail=:
8566
# Save a `func_append' function call even when '+=' is not available
8567
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8568
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8569
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8570
test 0 -eq $? || _lt_function_replace_fail=:
8573
if test x"$_lt_function_replace_fail" = x":"; then
8574
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8578
# _LT_PATH_CONVERSION_FUNCTIONS
8579
# -----------------------------
8580
# Determine which file name conversion functions should be used by
8581
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8582
# for certain cross-compile configurations and native mingw.
8583
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8584
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8585
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8586
AC_MSG_CHECKING([how to convert $build file names to $host format])
8587
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8591
*-*-mingw* ) # actually msys
8592
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8595
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8597
* ) # otherwise, assume *nix
8598
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8604
*-*-mingw* ) # actually msys
8605
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8608
lt_cv_to_host_file_cmd=func_convert_file_noop
8610
* ) # otherwise, assume *nix
8611
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8615
* ) # unhandled hosts (and "normal" native builds)
8616
lt_cv_to_host_file_cmd=func_convert_file_noop
8620
to_host_file_cmd=$lt_cv_to_host_file_cmd
8621
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8622
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8623
[0], [convert $build file names to $host format])dnl
8625
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8626
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8627
[#assume ordinary cross tools, or native build.
8628
lt_cv_to_tool_file_cmd=func_convert_file_noop
8632
*-*-mingw* ) # actually msys
8633
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8639
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8640
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8641
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8642
[0], [convert $build files to toolchain format])dnl
8643
])# _LT_PATH_CONVERSION_FUNCTIONS
8011
8645
# Helper functions for option handling. -*- Autoconf -*-
8013
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8647
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8014
8649
# Written by Gary V. Vaughan, 2004
8016
8651
# This file is free software; the Free Software Foundation gives
8017
8652
# unlimited permission to copy and/or distribute it, with or without
8018
8653
# modifications, as long as this notice is preserved.
8020
# serial 6 ltoptions.m4
8655
# serial 7 ltoptions.m4
8022
8657
# This is to help aclocal find these macros, as it can't see m4_define.
8023
8658
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9245
9906
# Define the identity of the package.
9246
9907
dnl Distinguish between old-style and new-style calls.
9248
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9909
[AC_DIAGNOSE([obsolete],
9910
[$0: two- and three-arguments forms are deprecated.])
9911
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9249
9912
AC_SUBST([PACKAGE], [$1])dnl
9250
9913
AC_SUBST([VERSION], [$2])],
9251
9914
[_AM_SET_OPTIONS([$1])dnl
9252
9915
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9253
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9917
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
9254
9919
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9255
9920
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9256
9921
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9258
9923
_AM_IF_OPTION([no-define],,
9259
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9260
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9924
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
9925
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
9262
9927
# Some tools Automake needs.
9263
9928
AC_REQUIRE([AM_SANITY_CHECK])dnl
9264
9929
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9265
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9266
AM_MISSING_PROG(AUTOCONF, autoconf)
9267
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9268
AM_MISSING_PROG(AUTOHEADER, autoheader)
9269
AM_MISSING_PROG(MAKEINFO, makeinfo)
9930
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
9931
AM_MISSING_PROG([AUTOCONF], [autoconf])
9932
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
9933
AM_MISSING_PROG([AUTOHEADER], [autoheader])
9934
AM_MISSING_PROG([MAKEINFO], [makeinfo])
9270
9935
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9271
9936
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9272
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9937
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9938
# For better backward compatibility. To be removed once Automake 1.9.x
9939
# dies out for good. For more background, see:
9940
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9941
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9942
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
9273
9943
# We need awk for the "check" target. The system "awk" is bad on
9274
9944
# some platforms.
9275
9945
AC_REQUIRE([AC_PROG_AWK])dnl
9280
9950
[_AM_PROG_TAR([v7])])])
9281
9951
_AM_IF_OPTION([no-dependencies],,
9282
9952
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9283
[_AM_DEPENDENCIES(CC)],
9284
[define([AC_PROG_CC],
9285
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9953
[_AM_DEPENDENCIES([CC])],
9954
[m4_define([AC_PROG_CC],
9955
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
9286
9956
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9287
[_AM_DEPENDENCIES(CXX)],
9288
[define([AC_PROG_CXX],
9289
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9957
[_AM_DEPENDENCIES([CXX])],
9958
[m4_define([AC_PROG_CXX],
9959
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
9290
9960
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9291
[_AM_DEPENDENCIES(OBJC)],
9292
[define([AC_PROG_OBJC],
9293
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9961
[_AM_DEPENDENCIES([OBJC])],
9962
[m4_define([AC_PROG_OBJC],
9963
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
9964
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9965
[_AM_DEPENDENCIES([OBJCXX])],
9966
[m4_define([AC_PROG_OBJCXX],
9967
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
9295
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9296
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9297
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9298
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9969
AC_REQUIRE([AM_SILENT_RULES])dnl
9970
dnl The testsuite driver may need to know about EXEEXT, so add the
9971
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
9972
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
9299
9973
AC_CONFIG_COMMANDS_PRE(dnl
9300
9974
[m4_provide_if([_AM_COMPILER_EXEEXT],
9301
9975
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9304
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9977
# POSIX will say in a future version that running "rm -f" with no argument
9978
# is OK; and we want to be able to make that assumption in our Makefile
9979
# recipes. So use an aggressive probe to check that the usage we want is
9980
# actually supported "in the wild" to an acceptable degree.
9981
# See automake bug#10828.
9982
# To make any issue more visible, cause the running configure to be aborted
9983
# by default if the 'rm' program in use doesn't match our expectations; the
9984
# user can still override this though.
9985
if rm -f && rm -fr && rm -rf; then : OK; else
9989
Your 'rm' program seems unable to run without file operands specified
9990
on the command line, even when the '-f' option is present. This is contrary
9991
to the behaviour of most rm programs out there, and not conforming with
9992
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9994
Please tell bug-automake@gnu.org about your system, including the value
9995
of your $PATH and any error possibly output before this message. This
9996
can help us improve future automake versions.
9999
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10000
echo 'Configuration will proceed anyway, since you have set the' >&2
10001
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10005
Aborting the configuration process, to ensure you take notice of the issue.
10007
You can download and install GNU coreutils to get an 'rm' implementation
10008
that behaves properly: <http://www.gnu.org/software/coreutils/>.
10010
If you want to complete the configuration process using your problematic
10011
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10012
to "yes", and re-run configure.
10015
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
10019
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9305
10020
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9306
10021
dnl mangled by Autoconf and run in a shell conditional statement.
9307
10022
m4_define([_AC_COMPILER_EXEEXT],
9308
10023
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9311
10025
# When config.status generates a header, we must update the stamp-h file.
9312
10026
# This file resides in the same directory as the config header
9313
10027
# that is generated. The stamp files are numbered to have different names.
9500
10202
# Use eval to expand $SHELL
9501
if eval "$MISSING --run true"; then
9502
am_missing_run="$MISSING --run "
10203
if eval "$MISSING --is-lightweight"; then
10204
am_missing_run="$MISSING "
9504
10206
am_missing_run=
9505
AC_MSG_WARN([`missing' script is too old or missing])
10207
AC_MSG_WARN(['missing' script is too old or missing])
9509
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9511
# This file is free software; the Free Software Foundation
9512
# gives unlimited permission to copy and/or distribute it,
9513
# with or without modifications, as long as this notice is preserved.
9517
# Check for `mkdir -p'.
9518
AC_DEFUN([AM_PROG_MKDIR_P],
9519
[AC_PREREQ([2.60])dnl
9520
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9521
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9522
dnl while keeping a definition of mkdir_p for backward compatibility.
9523
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9524
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9525
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9526
dnl adjustment using top_builddir (which is defined more often than
9528
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9530
[[\\/$]]* | ?:[[\\/]]*) ;;
9531
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9535
10211
# Helper functions for option handling. -*- Autoconf -*-
9537
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
10213
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9539
10215
# This file is free software; the Free Software Foundation
9540
10216
# gives unlimited permission to copy and/or distribute it,
9541
10217
# with or without modifications, as long as this notice is preserved.
9545
10219
# _AM_MANGLE_OPTION(NAME)
9546
10220
# -----------------------
9547
10221
AC_DEFUN([_AM_MANGLE_OPTION],
9548
10222
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9550
10224
# _AM_SET_OPTION(NAME)
9551
# ------------------------------
10225
# --------------------
9552
10226
# Set option NAME. Presently that only means defining a flag for this option.
9553
10227
AC_DEFUN([_AM_SET_OPTION],
9554
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10228
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
9556
10230
# _AM_SET_OPTIONS(OPTIONS)
9557
# ----------------------------------
10231
# ------------------------
9558
10232
# OPTIONS is a space-separated list of Automake options.
9559
10233
AC_DEFUN([_AM_SET_OPTIONS],
9560
10234
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9565
10239
AC_DEFUN([_AM_IF_OPTION],
9566
10240
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9568
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
9569
# Free Software Foundation, Inc.
9571
# This file is free software; the Free Software Foundation
9572
# gives unlimited permission to copy and/or distribute it,
9573
# with or without modifications, as long as this notice is preserved.
10242
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
10244
# This file is free software; the Free Software Foundation
10245
# gives unlimited permission to copy and/or distribute it,
10246
# with or without modifications, as long as this notice is preserved.
10250
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
10251
# to automatically call this.
10252
AC_DEFUN([_AM_PROG_CC_C_O],
10253
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10254
AC_REQUIRE_AUX_FILE([compile])dnl
10255
AC_LANG_PUSH([C])dnl
10257
[whether $CC understands -c and -o together],
10258
[am_cv_prog_cc_c_o],
10259
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
10260
# Make sure it works both with $CC and with simple cc.
10261
# Following AC_PROG_CC_C_O, we do the test twice because some
10262
# compilers refuse to overwrite an existing .o file with -o,
10263
# though they will create one.
10264
am_cv_prog_cc_c_o=yes
10265
for am_i in 1 2; do
10266
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
10267
&& test -f conftest2.$ac_objext; then
10270
am_cv_prog_cc_c_o=no
10274
rm -f core conftest*
10276
if test "$am_cv_prog_cc_c_o" != yes; then
10277
# Losing compiler, so override with the script.
10278
# FIXME: It is wrong to rewrite CC.
10279
# But if we don't then we get into trouble of one sort or another.
10280
# A longer-term fix would be to have automake use am__CC in this case,
10281
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10282
CC="$am_aux_dir/compile $CC"
10286
# For backward compatibility.
10287
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
10289
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
10291
# This file is free software; the Free Software Foundation
10292
# gives unlimited permission to copy and/or distribute it,
10293
# with or without modifications, as long as this notice is preserved.
9575
10296
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9576
10297
# ---------------------------------------------------------------------------
9850
10603
AC_MSG_ERROR([newly created file is older than distributed files!
9851
10604
Check your system clock])
9853
AC_MSG_RESULT(yes)])
9855
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
10606
AC_MSG_RESULT([yes])
10607
# If we didn't sleep, we still need to ensure time stamps of config.status and
10608
# generated files are strictly newer.
10610
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10614
AC_CONFIG_COMMANDS_PRE(
10615
[AC_MSG_CHECKING([that generated files are newer than configure])
10616
if test -n "$am_sleep_pid"; then
10617
# Hide warnings about reused PIDs.
10618
wait $am_sleep_pid 2>/dev/null
10620
AC_MSG_RESULT([done])])
10621
rm -f conftest.file
10624
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
10626
# This file is free software; the Free Software Foundation
10627
# gives unlimited permission to copy and/or distribute it,
10628
# with or without modifications, as long as this notice is preserved.
10630
# AM_SILENT_RULES([DEFAULT])
10631
# --------------------------
10632
# Enable less verbose build rules; with the default set to DEFAULT
10633
# ("yes" being less verbose, "no" or empty being verbose).
10634
AC_DEFUN([AM_SILENT_RULES],
10635
[AC_ARG_ENABLE([silent-rules], [dnl
10637
[--enable-silent-rules],
10638
[less verbose build output (undo: "make V=1")])
10640
[--disable-silent-rules],
10641
[verbose build output (undo: "make V=0")])dnl
10643
case $enable_silent_rules in @%:@ (((
10644
yes) AM_DEFAULT_VERBOSITY=0;;
10645
no) AM_DEFAULT_VERBOSITY=1;;
10646
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10649
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
10650
dnl do not support nested variable expansions.
10651
dnl See automake bug#9928 and bug#10237.
10652
am_make=${MAKE-make}
10653
AC_CACHE_CHECK([whether $am_make supports nested variables],
10654
[am_cv_make_support_nested_variables],
10655
[if AS_ECHO([['TRUE=$(BAR$(V))
10661
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10662
am_cv_make_support_nested_variables=yes
10664
am_cv_make_support_nested_variables=no
10666
if test $am_cv_make_support_nested_variables = yes; then
10667
dnl Using '$V' instead of '$(V)' breaks IRIX make.
10669
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10671
AM_V=$AM_DEFAULT_VERBOSITY
10672
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10674
AC_SUBST([AM_V])dnl
10675
AM_SUBST_NOTMAKE([AM_V])dnl
10676
AC_SUBST([AM_DEFAULT_V])dnl
10677
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10678
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10680
AC_SUBST([AM_BACKSLASH])dnl
10681
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10684
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9857
10686
# This file is free software; the Free Software Foundation
9858
10687
# gives unlimited permission to copy and/or distribute it,
9922
10747
# Substitute a variable $(am__untar) that extract such
9923
10748
# a tarball read from stdin.
9924
10749
# $(am__untar) < result.tar
9925
10751
AC_DEFUN([_AM_PROG_TAR],
9926
[# Always define AMTAR for backward compatibility.
9927
AM_MISSING_PROG([AMTAR], [tar])
10752
[# Always define AMTAR for backward compatibility. Yes, it's still used
10753
# in the wild :-( We should find a proper way to deprecate it ...
10754
AC_SUBST([AMTAR], ['$${TAR-tar}'])
10756
# We'll loop over all known methods to create a tar archive until one works.
10757
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9928
10759
m4_if([$1], [v7],
9929
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9930
[m4_case([$1], [ustar],, [pax],,
9931
[m4_fatal([Unknown tar format])])
9932
AC_MSG_CHECKING([how to create a $1 tar archive])
9933
# Loop over all known methods to create a tar archive until one works.
9934
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9935
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9936
# Do not fold the above two line into one, because Tru64 sh and
9937
# Solaris sh will not grok spaces in the rhs of `-'.
9938
for _am_tool in $_am_tools
9942
for _am_tar in tar gnutar gtar;
9944
AM_RUN_LOG([$_am_tar --version]) && break
9946
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9947
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9948
am__untar="$_am_tar -xf -"
9951
# Must skip GNU tar: if it does not support --format= it doesn't create
9952
# ustar tarball either.
9953
(tar --version) >/dev/null 2>&1 && continue
9954
am__tar='tar chf - "$$tardir"'
9955
am__tar_='tar chf - "$tardir"'
9956
am__untar='tar xf -'
9959
am__tar='pax -L -x $1 -w "$$tardir"'
9960
am__tar_='pax -L -x $1 -w "$tardir"'
9964
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9965
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9966
am__untar='cpio -i -H $1 -d'
9975
# If the value was cached, stop now. We just wanted to have am__tar
9976
# and am__untar set.
9977
test -n "${am_cv_prog_tar_$1}" && break
9979
# tar/untar a dummy directory, and stop if the command works
9982
echo GrepMe > conftest.dir/file
9983
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9985
if test -s conftest.tar; then
9986
AM_RUN_LOG([$am__untar <conftest.tar])
9987
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9992
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9993
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10760
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10764
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
10765
# There is notably a 21 bits limit for the UID and the GID. In fact,
10766
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
10768
am_max_uid=2097151 # 2^21 - 1
10769
am_max_gid=$am_max_uid
10770
# The $UID and $GID variables are not portable, so we need to resort
10771
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
10772
# below are definitely unexpected, so allow the users to see them
10773
# (that is, avoid stderr redirection).
10774
am_uid=`id -u || echo unknown`
10775
am_gid=`id -g || echo unknown`
10776
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
10777
if test $am_uid -le $am_max_uid; then
10778
AC_MSG_RESULT([yes])
10780
AC_MSG_RESULT([no])
10783
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
10784
if test $am_gid -le $am_max_gid; then
10785
AC_MSG_RESULT([yes])
10787
AC_MSG_RESULT([no])
10794
[m4_fatal([Unknown tar format])])
10796
AC_MSG_CHECKING([how to create a $1 tar archive])
10798
# Go ahead even if we have the value already cached. We do so because we
10799
# need to set the values for the 'am__tar' and 'am__untar' variables.
10800
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10802
for _am_tool in $_am_tools; do
10805
for _am_tar in tar gnutar gtar; do
10806
AM_RUN_LOG([$_am_tar --version]) && break
10808
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10809
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10810
am__untar="$_am_tar -xf -"
10813
# Must skip GNU tar: if it does not support --format= it doesn't create
10814
# ustar tarball either.
10815
(tar --version) >/dev/null 2>&1 && continue
10816
am__tar='tar chf - "$$tardir"'
10817
am__tar_='tar chf - "$tardir"'
10818
am__untar='tar xf -'
10821
am__tar='pax -L -x $1 -w "$$tardir"'
10822
am__tar_='pax -L -x $1 -w "$tardir"'
10826
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10827
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10828
am__untar='cpio -i -H $1 -d'
10837
# If the value was cached, stop now. We just wanted to have am__tar
10838
# and am__untar set.
10839
test -n "${am_cv_prog_tar_$1}" && break
10841
# tar/untar a dummy directory, and stop if the command works.
10842
rm -rf conftest.dir
10844
echo GrepMe > conftest.dir/file
10845
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10846
rm -rf conftest.dir
10847
if test -s conftest.tar; then
10848
AM_RUN_LOG([$am__untar <conftest.tar])
10849
AM_RUN_LOG([cat conftest.dir/file])
10850
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10853
rm -rf conftest.dir
10855
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10856
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9994
10858
AC_SUBST([am__tar])
9995
10859
AC_SUBST([am__untar])
9996
10860
]) # _AM_PROG_TAR