Clean-up configure.in

git-svn-id: file:///home/svnrepos/software/liblbfgs/trunk@5 ecf4c44f-38d1-4fa4-9757-a0b4dd0349fc
This commit is contained in:
naoaki 2008-04-25 08:47:23 +00:00
parent 59d3e21ef6
commit 09554fbf50

View File

@ -40,6 +40,7 @@ LDFLAGS="${ac_save_LDFLAGS}"
INCLUDES="-I\$(top_srcdir) -I\$(top_srcdir)/include"
dnl ------------------------------------------------------------------
dnl Checks for header files.
dnl ------------------------------------------------------------------
@ -47,51 +48,51 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(xmmintrin.h emmintrin.h)
dnl ------------------------------------------------------------------
dnl Checks for debugging mode
dnl ------------------------------------------------------------------
AC_ARG_ENABLE(
debug,
[AS_HELP_STRING([--enable-debug],[Turn on debugging])]
[AS_HELP_STRING(
[--enable-debug],
[build for debugging]
)],
[CFLAGS="-DDEBUG -O -g ${CFLAGS}"],
[CFLAGS="-O3 -ffast-math ${CFLAGS}"]
)
if test "x$enable_debug" = "xyes"; then
CFLAGS="-DDEBUG -O -g ${CFLAGS}"
else
CFLAGS="-O3 -ffast-math ${CFLAGS}"
fi
dnl ------------------------------------------------------------------
dnl Checks for profiling mode
dnl ------------------------------------------------------------------
AC_ARG_ENABLE(
profile,
[AS_HELP_STRING([--enable-profile],[Turn on profiling])]
[AS_HELP_STRING(
[--enable-profile],
[build for profiling]
)],
[CFLAGS="-DPROFILE -pg ${CFLAGS}"]
)
if test "x$enable_profile" = "xyes"; then
CFLAGS="-DPROFILE -pg ${CFLAGS}"
fi
dnl ------------------------------------------------------------------
dnl Checks for SSE build
dnl Checks for SSE2 build
dnl ------------------------------------------------------------------
AC_ARG_ENABLE(
sse,
[AS_HELP_STRING([--enable-sse],[Enable SSE optimized routines])]
sse2,
[AS_HELP_STRING(
[--enable-sse2],
[enable SSE2 optimization routines]
)],
[CFLAGS="-msse2 -DUSE_SSE ${CFLAGS}"]
)
if test "x$enable_sse" = "xyes"; then
CFLAGS="-msse2 -DUSE_SSE ${CFLAGS}"
fi
dnl ------------------------------------------------------------------
dnl Checks for library functions.
dnl ------------------------------------------------------------------
AC_CHECK_LIB(m, fabs)
dnl ------------------------------------------------------------------
dnl Export variables
dnl ------------------------------------------------------------------