moved the CFLAGS mangling AC_LIB_PREFIX macro behind CFLAG test
authorMartin Willi <martin@strongswan.org>
Wed, 15 Jul 2009 14:04:37 +0000 (16:04 +0200)
committerMartin Willi <martin@strongswan.org>
Wed, 15 Jul 2009 14:04:37 +0000 (16:04 +0200)
configure.in

index 7233b4f..6a3cfac 100644 (file)
@@ -20,7 +20,6 @@ AC_INIT(strongSwan,4.3.3)
 AM_INIT_AUTOMAKE(tar-ustar)
 AC_SUBST(confdir, '${sysconfdir}')
 PKG_PROG_PKG_CONFIG
-AC_LIB_PREFIX
 
 dnl =================================
 dnl  check --enable-xxx & --with-xxx
@@ -741,9 +740,10 @@ dnl  set up compiler and flags
 dnl =========================
 
 if test -z "$CFLAGS"; then
-       AC_SUBST(CFLAGS, "-g -O2 -Wall -Wno-format -Wno-pointer-sign -Wno-strict-aliasing")
+       CFLAGS="-g -O2 -Wall -Wno-format -Wno-pointer-sign -Wno-strict-aliasing"
 fi
 AC_PROG_CC
+AC_LIB_PREFIX
 AC_C_BIGENDIAN
 
 dnl =========================