commit 7eeea6e113e135e986d951798fd6e9bd82fb0e79
parent 7c8505b4ada1764085536bdbfeb80c7b44d04827
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 13 May 2019 07:30:21 +0200
use AS_CASE/AS_IF
Diffstat:
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -129,23 +129,20 @@ AS_CASE(["$target_os"],
AC_ARG_WITH(plibc,
[ --with-plibc=PFX Base of PliBC installation],
[AC_MSG_RESULT([$with_plibc])
- case $with_plibc in
- no)
- ;;
- yes)
+ AS_CASE([$with_plibc],
+ [no],[],
+ [yes],[
AC_CHECK_HEADERS([plibc.h],
AC_CHECK_LIB([plibc], [plibc_init],
plibc=1))
- ;;
- *)
+ ],[
AM_LDFLAGS="-L$with_plibc/lib $AM_LDFLAGS"
AM_CPPFLAGS="-I$with_plibc/include $AM_CPPFLAGS"
AC_CHECK_HEADERS([plibc.h],
AC_CHECK_LIB([plibc], [plibc_init],
EXT_LIB_PATH="-L$with_plibc/lib $EXT_LIB_PATH"
plibc=1))
- ;;
- esac
+ ])
],
[AC_MSG_RESULT([--with-plibc not specified])
AM_LDFLAGS="-L/usr/lib $AM_LDFLAGS"