7 AC_DEFUN([AC_WITH_ALL], [
9 AS_HELP_STRING([--with-$1=dir],
13 AS_HELP_STRING([--with-$1-lib=dir],
14 [use $1 libraries in dir]),
15 [if test "$withval" = "yes" -o "$withval" = "no"; then
16 AC_MSG_ERROR([No argument for --with-$1-lib])
17 elif test "X$with_$1" = "X"; then
21 AC_ARG_WITH($1-include,
22 AS_HELP_STRING([--with-$1-include=dir],
23 [use $1 headers in dir]),
24 [if test "$withval" = "yes" -o "$withval" = "no"; then
25 AC_MSG_ERROR([No argument for --with-$1-include])
26 elif test "X$with_$1" = "X"; then
34 *) if test "$with_$1_include" = ""; then
35 with_$1_include="$with_$1/include"
37 if test "$with_$1_lib" = ""; then
38 with_$1_lib="$with_$1/lib$abilibdirext"