Corrected some wrong behaviour, added profiling option.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 20 Aug 2002 00:58:17 +0000
changeset 461 3340aee8ba50
parent 460 bcbf4788c477
child 462 83c60189bc21
Corrected some wrong behaviour, added profiling option.
configure.in
--- a/configure.in	Sat Aug 17 13:55:30 2002 +0000
+++ b/configure.in	Tue Aug 20 00:58:17 2002 +0000
@@ -67,7 +67,7 @@
 
 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"
@@ -84,13 +84,24 @@
 
 
 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 ---------------------------------------------------------------------
 
 AC_ARG_ENABLE(testprog,
 [  --enable-testprog          build test program [default=yes]],
-              , enable_testprog=yes)
-
+                , enable_testprog=yes)
 
 dnl ---------------------------------------------------------------------
 dnl Checks for libraries.
@@ -101,7 +112,7 @@
 dnl Check for zip archiver inclusion...
 AC_ARG_ENABLE(zip,
 [  --enable-zip               enable ZIP support [default=yes]],
-              , enable_zip=yes)
+                , enable_zip=yes)
 if test x$enable_zip = xyes; then
   AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled])
   require_zlib="yes"
@@ -111,7 +122,7 @@
 dnl Check for grp archiver inclusion...
 AC_ARG_ENABLE(grp,
 [  --enable-grp               enable Build Engine GRP support [default=yes]],
-              , enable_grp=yes)
+                , enable_grp=yes)
 if test x$enable_grp = xyes; then
   AC_DEFINE([PHYSFS_SUPPORTS_GRP], 1, [define if grp support is enabled])
 fi
@@ -120,12 +131,12 @@
 dnl Check for qpak archiver inclusion...
 AC_ARG_ENABLE(qpak,
 [  --enable-qpak              enable Quake PAK support [default=yes]],
-              , enable_qpak=yes)
+                , enable_qpak=yes)
 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)
@@ -182,7 +193,8 @@
 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)
+                , 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)
@@ -207,7 +219,7 @@
 dnl determine if we should use the stubbed pthread code.
 AC_ARG_ENABLE(pthreads,
 [  --enable-pthreads          include POSIX threads support [default=yes]],
-              , enable_pthreads=yes)
+                , enable_pthreads=yes)
 if test x$enable_pthreads = xyes; then
   AC_CHECK_HEADER(pthread.h, have_pthread_hdr=yes)
   if test x$have_pthread_hdr != xyes; then
@@ -218,7 +230,8 @@
 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)
+                , 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 @@
 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