GIF89a;
Mass Deface /dev/null 2>&1 ; then apu_config="$withval" ifelse([$5], [], [apu_found="yes"], [ apu_acceptable="yes" $5 if test "$apu_acceptable" = "yes"; then apu_found="yes" fi]) fi dnl if --with-apr-util is used, it is a fatal error for its argument dnl to be invalid if test "$apu_found" != "yes"; then AC_MSG_ERROR([the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file.]) fi ],[ if test -n "$3" && test "$3" = "1"; then for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config do if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then apu_config="$apu_temp_apu_config_file" ifelse([$5], [], [], [ apu_acceptable="yes" $5 if test "$apu_acceptable" != "yes"; then AC_MSG_WARN([skipped APR-util at $apu_config, version not acceptable]) continue fi]) apu_found="yes" break else dnl look in some standard places (apparently not in builtin/default) for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then apu_config="$lookdir/bin/$apu_temp_apu_config_file" ifelse([$5], [], [], [ apu_acceptable="yes" $5 if test "$apu_acceptable" != "yes"; then AC_MSG_WARN([skipped APR-util at $apu_config, version not acceptable]) continue fi]) apu_found="yes" break 2 fi done fi done fi dnl if we have not found anything yet and have bundled source, use that if test "$apu_found" = "no" && test -d "$1"; then apu_temp_abs_srcdir="`cd \"$1\" && pwd`" apu_found="reconfig" apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"$1/include/apu_version.h\"`" case $apu_bundled_major in "") AC_MSG_ERROR([failed to find major version of bundled APU]) ;; 0) apu_temp_apu_config_file="apu-config" ;; *) apu_temp_apu_config_file="apu-$apu_bundled_major-config" ;; esac if test -n "$2"; then apu_config="$2/$apu_temp_apu_config_file" else apu_config="$1/$apu_temp_apu_config_file" fi fi ]) AC_MSG_RESULT($apu_found) ])