comparison configure.in @ 108150:66c73788b432

Set GPM part of MOUSE_SUPPORT with configure, not cpp. * configure.in (GPM_MOUSE_SUPPORT): New output variable. * src/Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure. (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
author Glenn Morris <rgm@gnu.org>
date Wed, 28 Apr 2010 00:15:10 -0700
parents 1af337cb46c4
children 582ce1d4716e
comparison
equal deleted inserted replaced
108149:1af337cb46c4 108150:66c73788b432
2289 fi 2289 fi
2290 2290
2291 ### Use -lgpm if available, unless `--with-gpm=no'. 2291 ### Use -lgpm if available, unless `--with-gpm=no'.
2292 HAVE_GPM=no 2292 HAVE_GPM=no
2293 LIBGPM= 2293 LIBGPM=
2294 GPM_MOUSE_SUPPORT=
2294 if test "${with_gpm}" != "no"; then 2295 if test "${with_gpm}" != "no"; then
2295 AC_CHECK_HEADER(gpm.h, 2296 AC_CHECK_HEADER(gpm.h,
2296 [AC_CHECK_LIB(gpm, Gpm_Open, HAVE_GPM=yes)]) 2297 [AC_CHECK_LIB(gpm, Gpm_Open, HAVE_GPM=yes)])
2297 2298
2298 if test "${HAVE_GPM}" = "yes"; then 2299 if test "${HAVE_GPM}" = "yes"; then
2299 AC_DEFINE(HAVE_GPM, 1, [Define to 1 if you have the gpm library (-lgpm).]) 2300 AC_DEFINE(HAVE_GPM, 1, [Define to 1 if you have the gpm library (-lgpm).])
2300 LIBGPM=-lgpm 2301 LIBGPM=-lgpm
2302 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
2301 fi 2303 fi
2302 fi 2304 fi
2303 AC_SUBST(LIBGPM) 2305 AC_SUBST(LIBGPM)
2306 AC_SUBST(GPM_MOUSE_SUPPORT)
2304 2307
2305 dnl Check for malloc/malloc.h on darwin 2308 dnl Check for malloc/malloc.h on darwin
2306 AC_CHECK_HEADER(malloc/malloc.h, [AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.])]) 2309 AC_CHECK_HEADER(malloc/malloc.h, [AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.])])
2307 2310
2308 C_SWITCH_X_SYSTEM= 2311 C_SWITCH_X_SYSTEM=