190926Snectardnl 2178825Sdfrdnl $Id: with-all.m4 14147 2004-08-25 14:14:01Z joda $ 390926Snectardnl 490926Snectar 590926Snectardnl AC_WITH_ALL(name) 690926Snectar 790926SnectarAC_DEFUN([AC_WITH_ALL], [ 890926SnectarAC_ARG_WITH($1, 9178825Sdfr AS_HELP_STRING([--with-$1=dir], 1090926Snectar [use $1 in dir])) 1190926Snectar 1290926SnectarAC_ARG_WITH($1-lib, 13178825Sdfr AS_HELP_STRING([--with-$1-lib=dir], 1490926Snectar [use $1 libraries in dir]), 1590926Snectar[if test "$withval" = "yes" -o "$withval" = "no"; then 1690926Snectar AC_MSG_ERROR([No argument for --with-$1-lib]) 1790926Snectarelif test "X$with_$1" = "X"; then 1890926Snectar with_$1=yes 1990926Snectarfi]) 2090926Snectar 2190926SnectarAC_ARG_WITH($1-include, 22178825Sdfr AS_HELP_STRING([--with-$1-include=dir], 2390926Snectar [use $1 headers in dir]), 2490926Snectar[if test "$withval" = "yes" -o "$withval" = "no"; then 2590926Snectar AC_MSG_ERROR([No argument for --with-$1-include]) 2690926Snectarelif test "X$with_$1" = "X"; then 2790926Snectar with_$1=yes 2890926Snectarfi]) 2990926Snectar 3090926Snectarcase "$with_$1" in 3190926Snectaryes) ;; 3290926Snectarno) ;; 3390926Snectar"") ;; 3490926Snectar*) if test "$with_$1_include" = ""; then 3590926Snectar with_$1_include="$with_$1/include" 3690926Snectar fi 3790926Snectar if test "$with_$1_lib" = ""; then 3890926Snectar with_$1_lib="$with_$1/lib$abilibdirext" 3990926Snectar fi 4090926Snectar ;; 4190926Snectaresac 4290926Snectar])