On Friday, February 16, 2007 @ 12:00p, David Byron wrote: > On Friday, February 16, 2007 @ 9:30a, Ralf Wildenhues wrote: > > > * David Byron wrote on Fri, Feb 16, 2007 at 06:08:53PM CET: > > > > > I'm getting stumped on how to set rpath. > > > > You can either use Libtool, but you may consider this > > overkill, understandably, or you can use > > autoconf-lib-link. That is a set of macro files and a > > script config.rpath which will be added to your package. > > It's distributed as part of GNU gettext, or > > alternatively as the havelib module of gnulib: > > <http://www.gnu.org/software/gnulib/MODULES.html#module=havelib>. > > This is getting more and more hopeful all the time. I > started diving into the gnulib/havelib stuff and have made > good progress. I've not got things totally working...except for one small detail. When I run autoreconf to build my configure script on a machine with m4 version 1.4.1 things are great. When I run autoreconf on a machine with m4 version 1.4, things don't work. An example of some of the diffs I see in the resulting configure script is below. I'm going to work on upgrading m4 (and the autoconf home page recommends >= 1.4.7 so I should probably upgrade both) but is there something I can put in the m4 files to bail out if there's an insufficient version of m4? For reference, this is the relevant line in my configure.ac (actually an m4 file in the AC_CONFIG_MACRO_DIR directory): AC_LIB_LINKFLAGS([xerces-c]) Thanks. -DB --- configure 2007-02-18 10:11:08.000000000 -0800 +++ configure.good 2007-02-18 10:10:27.000000000 -0800 @@ -7790,18 +7790,18 @@ done fi - ac_cv_libxerce_c_libs="$LIBXERCES_C" - ac_cv_libxrcs_c_ltlibs="$LTLIBXERCES_C" - ac_cv_libxrcs_c_cppflags="$INCXERCES_C" - ac_cv_libxrcs_c_prefix="$LIBXERCES_C_PREFIX" + ac_cv_libxerces_c_libs="$LIBXERCES_C" + ac_cv_libxerces_c_ltlibs="$LTLIBXERCES_C" + ac_cv_libxerces_c_cppflags="$INCXERCES_C" + ac_cv_libxerces_c_prefix="$LIBXERCES_C_PREFIX" fi -{ echo "$as_me:$LINENO: result: $ac_cv_libxrcs_c_libs" >&5 +{ echo "$as_me:$LINENO: result: $ac_cv_libxerces_c_libs" >&5 echo "${ECHO_T}$ac_cv_libxerces_c_libs" >&6; } - LIBXERCES_C="$ac_cv_libxrcs_c_libs" - LTLIBXERCES_C="$ac_cv_libxrcs_c_ltlibs" - INCXERCES_C="$ac_cv_libxrcs_c_cppflags" - LIBXERCES_C_PREFIX="$ac_cv_libxrcs_c_prefix" + LIBXERCES_C="$ac_cv_libxerces_c_libs" + LTLIBXERCES_C="$ac_cv_libxerces_c_ltlibs" + INCXERCES_C="$ac_cv_libxerces_c_cppflags" + LIBXERCES_C_PREFIX="$ac_cv_libxerces_c_prefix" _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf