Corrected some wrong behaviour, added profiling option.
This commit is contained in:
parent
5ef1442f02
commit
94ec115dba
22
configure.in
22
configure.in
|
@ -67,7 +67,7 @@ dnl ---------------------------------------------------------------------
|
|||
|
||||
AC_ARG_ENABLE(debug,
|
||||
[ --enable-debug enable debug mode [default=yes]],
|
||||
, enable_debug=yes)
|
||||
, enable_debug=no)
|
||||
if test x$enable_debug = xyes; then
|
||||
if test x$ac_cv_prog_cc_g = xyes; then
|
||||
PHYSFSCFLAGS="-g -O0"
|
||||
|
@ -83,6 +83,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------
|
||||
dnl Profile sorts, etc?
|
||||
dnl ---------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(profiling,
|
||||
[ --enable-profiling do algorithm profiling [default=no]],
|
||||
, enable_profiling=no)
|
||||
if test x$enable_profiling = xyes; then
|
||||
AC_DEFINE([PHYSFS_PROFILING], 1, [define to profile sorting, etc algorithms])
|
||||
fi
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------
|
||||
dnl Build test program?
|
||||
dnl ---------------------------------------------------------------------
|
||||
|
@ -91,7 +103,6 @@ AC_ARG_ENABLE(testprog,
|
|||
[ --enable-testprog build test program [default=yes]],
|
||||
, enable_testprog=yes)
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------
|
||||
dnl Checks for libraries.
|
||||
dnl ---------------------------------------------------------------------
|
||||
|
@ -125,7 +136,7 @@ if test x$enable_qpak = xyes; then
|
|||
AC_DEFINE([PHYSFS_SUPPORTS_QPAK], 1, [define if qpak support is enabled])
|
||||
fi
|
||||
|
||||
|
||||
dnl Check if we should statically link the included zlib...
|
||||
AC_ARG_ENABLE(internal-zlib,
|
||||
[ --enable-internal-zlib use included zlib [default=only if needed]],
|
||||
, enable_internal_zlib=maybe)
|
||||
|
@ -183,6 +194,7 @@ dnl determine if we should include readline support...
|
|||
AC_ARG_ENABLE(readline,
|
||||
[ --enable-readline use GNU readline in test program [default=yes]],
|
||||
, enable_readline=yes)
|
||||
|
||||
if test x$enable_readline = xyes; then
|
||||
AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes)
|
||||
AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lcurses)
|
||||
|
@ -219,6 +231,7 @@ dnl determine if we should use the stubbed CD-ROM detection code.
|
|||
AC_ARG_ENABLE(cdrom,
|
||||
[ --enable-cdrom include CD-ROM support [default=yes]],
|
||||
, enable_cdrom=yes)
|
||||
|
||||
if test x$enable_cdrom = xyes; then
|
||||
dnl reset this and let header detection reenable...
|
||||
enable_cdrom=no
|
||||
|
@ -239,10 +252,9 @@ if test x$enable_cdrom = xyes; then
|
|||
fi
|
||||
|
||||
dnl determine language.
|
||||
physfslang=english
|
||||
AC_ARG_ENABLE(language,
|
||||
[ --enable-language=lang Select natural language. [default=english]],
|
||||
physfslang=`echo $enable_language |tr A-Z a-z`)
|
||||
physfslang=`echo $enable_language |tr A-Z a-z`, physfslang=english)
|
||||
|
||||
AC_MSG_CHECKING([if language choice is supported])
|
||||
physfs_valid_lang=no
|
||||
|
|
Loading…
Reference in New Issue