comparison configure.in @ 100:6d9fdec2f708

added config.h, added --enable-debug flag, various other changes to the build system
author fingolfin
date Wed, 03 Oct 2001 12:25:34 +0000
parents b939258bd177
children de42ca5599ac
comparison
equal deleted inserted replaced
99:3f0beddfd9c9 100:6d9fdec2f708
41 dnl Detect the canonical host and target build environment 41 dnl Detect the canonical host and target build environment
42 AC_CANONICAL_HOST 42 AC_CANONICAL_HOST
43 AC_CANONICAL_TARGET 43 AC_CANONICAL_TARGET
44 44
45 dnl Setup for automake 45 dnl Setup for automake
46 AM_CONFIG_HEADER(config.h)
46 AM_INIT_AUTOMAKE(SDL_sound, $VERSION) 47 AM_INIT_AUTOMAKE(SDL_sound, $VERSION)
47 48
48 49
49 dnl --------------------------------------------------------------------- 50 dnl ---------------------------------------------------------------------
50 dnl Compilers and other tools 51 dnl Compilers and other tools
52 53
53 AC_PROG_CC 54 AC_PROG_CC
54 AC_PROG_INSTALL 55 AC_PROG_INSTALL
55 AC_PROG_LN_S 56 AC_PROG_LN_S
56 AC_PROG_LIBTOOL 57 AC_PROG_LIBTOOL
58
59
60 dnl ---------------------------------------------------------------------
61 dnl Debug mode?
62 dnl ---------------------------------------------------------------------
63
64 AC_ARG_ENABLE(debug,
65 [ --enable-debug enable debug mode [default=no]],
66 , enable_smpeg=no)
67 if test x$enable_debug = xyes; then
68 if test x$ac_cv_prog_cc_g = xyes; then
69 CFLAGS="-g -O0"
70 else
71 CFLAGS="-O0"
72 fi
73 AC_DEFINE(DEBUG)
74 else
75 AC_DEFINE(NDEBUG)
76 fi
57 77
58 78
59 dnl --------------------------------------------------------------------- 79 dnl ---------------------------------------------------------------------
60 dnl Checks for libraries. 80 dnl Checks for libraries.
61 dnl --------------------------------------------------------------------- 81 dnl ---------------------------------------------------------------------