Browse Source

* Workaround for broken AC_PATH_X autoconf macros.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
72ec70454e
1 changed files with 3 additions and 15 deletions
  1. +3
    -15
      configure.ac

+ 3
- 15
configure.ac View File

@@ -12,13 +12,13 @@ AM_CONFIG_HEADER(config.h)
AM_PROG_CC_C_O AM_PROG_CC_C_O
AC_PROG_CPP AC_PROG_CPP
AC_PROG_CXX AC_PROG_CXX
AC_PROG_CXXCPP
AM_PROG_AS AM_PROG_AS


AC_LIBTOOL_WIN32_DLL AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL AM_PROG_LIBTOOL
AC_LIBTOOL_CXX AC_LIBTOOL_CXX



AC_C_CONST AC_C_CONST
AC_C_INLINE AC_C_INLINE
AC_TYPE_SIGNAL AC_TYPE_SIGNAL
@@ -29,14 +29,6 @@ dnl PKG_PROG_PKG_CONFIG which needs to be called first.
AC_EGREP_CPP(yes, foo) AC_EGREP_CPP(yes, foo)
PKG_PROG_PKG_CONFIG() PKG_PROG_PKG_CONFIG()


dnl Check the C++ compiler and preprocessor.
AC_PROG_CXX
AC_PROG_CXXCPP

dnl Set the test language as C++
AC_LANG([C++])


dnl output driver features dnl output driver features
AC_ARG_ENABLE(slang, AC_ARG_ENABLE(slang,
[ --enable-slang slang graphics support (autodetected)]) [ --enable-slang slang graphics support (autodetected)])
@@ -55,6 +47,7 @@ AC_ARG_ENABLE(network,
AC_ARG_ENABLE(vga, AC_ARG_ENABLE(vga,
[ --enable-vga VGA support (default disabled)]) [ --enable-vga VGA support (default disabled)])


dnl language bindings
AC_ARG_ENABLE(cpp, AC_ARG_ENABLE(cpp,
[ --enable-cpp C++ bindings (autodetected)]) [ --enable-cpp C++ bindings (autodetected)])


@@ -160,7 +153,7 @@ if test "${enable_x11}" != "no"; then
CACA_LIBS="${CACA_LIBS} ${X_LIBS}" CACA_LIBS="${CACA_LIBS} ${X_LIBS}"
CACA_DRIVERS="${CACA_DRIVERS} x11"], CACA_DRIVERS="${CACA_DRIVERS} x11"],
[ac_cv_my_have_x11="no"], [ac_cv_my_have_x11="no"],
[[-lXt -L${x_libraries}]])
[[-lXt `if test -n "${x_libraries}"; then echo -L${x_libraries}; fi`]])
AC_CHECK_HEADERS(X11/XKBlib.h) AC_CHECK_HEADERS(X11/XKBlib.h)
if test "${ac_cv_my_have_x11}" != "yes" -a "${enable_x11}" = "yes"; then if test "${ac_cv_my_have_x11}" != "yes" -a "${enable_x11}" = "yes"; then
AC_MSG_ERROR([cannot find X11 development files]) AC_MSG_ERROR([cannot find X11 development files])
@@ -244,14 +237,9 @@ else
AC_MSG_RESULT([${CACA_DRIVERS}]) AC_MSG_RESULT([${CACA_DRIVERS}])
fi fi






AC_SUBST(MATH_LIBS) AC_SUBST(MATH_LIBS)
AC_SUBST(CACA_LIBS) AC_SUBST(CACA_LIBS)
AC_SUBST(CUCUL_LIBS) AC_SUBST(CUCUL_LIBS)
AC_SUBST(CUCUL++_LIBS)


# Optimizations # Optimizations
CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer" CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"


Loading…
Cancel
Save