1 1.1 elric dnl 2 1.1.1.2 elric dnl Id 3 1.1 elric dnl 4 1.1 elric 5 1.1 elric dnl AC_WITH_ALL(name) 6 1.1 elric 7 1.1 elric AC_DEFUN([AC_WITH_ALL], [ 8 1.1 elric AC_ARG_WITH($1, 9 1.1 elric AS_HELP_STRING([--with-$1=dir], 10 1.1 elric [use $1 in dir])) 11 1.1 elric 12 1.1 elric AC_ARG_WITH($1-lib, 13 1.1 elric AS_HELP_STRING([--with-$1-lib=dir], 14 1.1 elric [use $1 libraries in dir]), 15 1.1 elric [if test "$withval" = "yes" -o "$withval" = "no"; then 16 1.1 elric AC_MSG_ERROR([No argument for --with-$1-lib]) 17 1.1 elric elif test "X$with_$1" = "X"; then 18 1.1 elric with_$1=yes 19 1.1 elric fi]) 20 1.1 elric 21 1.1 elric AC_ARG_WITH($1-include, 22 1.1 elric AS_HELP_STRING([--with-$1-include=dir], 23 1.1 elric [use $1 headers in dir]), 24 1.1 elric [if test "$withval" = "yes" -o "$withval" = "no"; then 25 1.1 elric AC_MSG_ERROR([No argument for --with-$1-include]) 26 1.1 elric elif test "X$with_$1" = "X"; then 27 1.1 elric with_$1=yes 28 1.1 elric fi]) 29 1.1 elric 30 1.1 elric case "$with_$1" in 31 1.1 elric yes) ;; 32 1.1 elric no) ;; 33 1.1 elric "") ;; 34 1.1 elric *) if test "$with_$1_include" = ""; then 35 1.1 elric with_$1_include="$with_$1/include" 36 1.1 elric fi 37 1.1 elric if test "$with_$1_lib" = ""; then 38 1.1 elric with_$1_lib="$with_$1/lib$abilibdirext" 39 1.1 elric fi 40 1.1 elric ;; 41 1.1 elric esac 42 1.1.1.4 christos ])