From 09554fbf50d6204587a395ba172dd6983f5c6637 Mon Sep 17 00:00:00 2001 From: naoaki Date: Fri, 25 Apr 2008 08:47:23 +0000 Subject: [PATCH] Clean-up configure.in git-svn-id: file:///home/svnrepos/software/liblbfgs/trunk@5 ecf4c44f-38d1-4fa4-9757-a0b4dd0349fc --- configure.in | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/configure.in b/configure.in index 2851cb5..852e898 100644 --- a/configure.in +++ b/configure.in @@ -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])] + debug, + [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])] + profile, + [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 ------------------------------------------------------------------