1dnl ###################################################################### 2dnl Initial settings for LIBS (-l options) 3dnl NOTE: this is for configuration as well as compilations! 4AC_DEFUN([AMU_OPT_LIBS], 5[AC_MSG_CHECKING(for configuration/compilation (-l) library flags) 6AC_ARG_ENABLE(libs, 7AC_HELP_STRING([--enable-libs=ARG], 8 [configure/compile with ARG (-l) library flags]), 9[ 10if test "$enableval" = "" || test "$enableval" = "yes" || test "$enableval" = "no"; then 11 AC_MSG_ERROR(libs must be supplied if option is used) 12fi 13# use supplied options 14LIBS="$LIBS $enableval" 15export LIBS 16AC_MSG_RESULT($enableval) 17], [ 18 # default is to have no additional flags 19 AC_MSG_RESULT(none) 20]) 21]) 22dnl ====================================================================== 23