Index: configure.ac =================================================================== --- configure.ac (revision 214436) +++ configure.ac (working copy) @@ -1305,6 +1305,12 @@ AST_EXT_LIB_CHECK([PRI], [pri], [pri_keypad_facility], [libpri.h]) +# If there was a directory set for --with-libpri, then it applies to two other options, as well +if test "x${PRI_DIR}" != "x"; then + PRI_VERSION_DIR=${PRI_DIR} + PRI_INBANDDISCONNECT_DIR=${PRI_DIR} +fi + AST_EXT_LIB_CHECK([PRI_VERSION], [pri], [pri_get_version], [libpri.h]) AST_EXT_LIB_CHECK([PRI_INBANDDISCONNECT], [pri], [pri_set_inbanddisconnect], [libpri.h]) Index: autoconf/ast_ext_lib.m4 =================================================================== --- autoconf/ast_ext_lib.m4 (revision 214436) +++ autoconf/ast_ext_lib.m4 (working copy) @@ -31,8 +31,11 @@ AC_DEFUN([AST_EXT_LIB_SETUP_DEPENDENT], [ $1_DESCRIP="$2" -m4_ifval([$4], [$1_OPTION=$4]) +m4_ifval([$4], [ + $1_OPTION="$4" +]) m4_ifval([$3], [ +$1_DIR="${$3_DIR}" if test "x${$3_MANDATORY}" = "xyes" ; then $1_MANDATORY="yes" fi