diff --git a/ac/ax_boost_base.m4 b/ac/ax_boost_base.m4 index 4e5a58ee5..e9caa855f 100644 --- a/ac/ax_boost_base.m4 +++ b/ac/ax_boost_base.m4 @@ -84,20 +84,18 @@ if test "x$want_boost" = "xyes"; then dnl this location ist chosen if boost libraries are installed with the --layout=system option dnl or if you install boost with RPM if test "$ac_boost_path" != ""; then - if test "`uname -m`" = "x86_64" && test -d "$ac_boost_path/lib64" ; then - BOOST_LDFLAGS="-L$ac_boost_path/lib64" - else - BOOST_LDFLAGS="-L$ac_boost_path/lib" - fi + case $target in + ppc64*|sparc64*|x86_64*) BOOST_LDFLAGS="-L$ac_boost_path/lib64" ;; + *) BOOST_LDFLAGS="-L$ac_boost_path/lib" ;; + esac BOOST_CPPFLAGS="-I$ac_boost_path/include" else for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then - if test "`uname -m`" = "x86_64" && test -d "$ac_boost_path_tmp/lib64" ; then - BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib64" - else - BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib" - fi + case $target in + ppc64*|sparc64*|x86_64*) BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib64" ;; + *) BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib" ;; + esac BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" break; fi @@ -171,11 +169,10 @@ if test "x$want_boost" = "xyes"; then BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" if test "$ac_boost_lib_path" = "" then - if test "`uname -m`" = "x86_64" && test -d "$best_path/lib64" ; then - BOOST_LDFLAGS="-L$best_path/lib64" - else - BOOST_LDFLAGS="-L$best_path/lib" - fi + case $target in + ppc64*|sparc64*|x86_64*) BOOST_LDFLAGS="-L$best_path/lib64" ;; + *) BOOST_LDFLAGS="-L$best_path/lib" ;; + esac fi if test "x$BOOST_ROOT" != "x"; then diff --git a/ac/initialization.m4 b/ac/initialization.m4 index 1d520bfaf..8aee5efd4 100644 --- a/ac/initialization.m4 +++ b/ac/initialization.m4 @@ -1,3 +1,4 @@ +AC_CANONICAL_TARGET SAVED_CFLAGS="$CFLAGS" AC_PROG_CC CFLAGS="$SAVED_CFLAGS" diff --git a/autogen.sh b/autogen.sh index 564f2fa2b..4ed59dffe 100755 --- a/autogen.sh +++ b/autogen.sh @@ -68,7 +68,10 @@ rm -f config.h config.h.in stamp-h1 &> /dev/null echo " autoheader" && autoheader #echo " libtoolize --automake" && libtoolize --automake echo " autoconf" && autoconf -#echo " automake --add-missing --copy" && automake --add-missing --copy +# Ignore automake errors. We need config.sub and config.guess +# which are copied by automake, but we don't use automake for +# managing Makefiles. +echo " automake --add-missing --copy" && automake --add-missing --copy 2> /dev/null echo echo "You can run './configure' now. If you need dependencies then"