configure.in 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  1. ############################################################################
  2. # JWM autoconf.
  3. ############################################################################
  4. AC_INIT(jwm, 2.2.0, joewing@joewing.net)
  5. AC_PREREQ(2.57)
  6. AC_CONFIG_SRCDIR([src])
  7. AC_CONFIG_SRCDIR([po])
  8. AC_CONFIG_HEADER([config.h])
  9. AC_LANG(C)
  10. AC_PROG_CC
  11. AC_PROG_CPP
  12. AC_PROG_INSTALL
  13. AC_PROG_MKDIR_P
  14. PACKAGE=jwm
  15. ############################################################################
  16. # Check if we need _XOPEN_SOURCE
  17. ############################################################################
  18. AC_MSG_CHECKING([if _XOPEN_SOURCE should be defined])
  19. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  20. #define _XOPEN_SOURCE 600L
  21. #include <unistd.h>
  22. ]])], [use_xopen_source="yes"], [use_xopen_source="no"])
  23. AC_MSG_RESULT([$use_xopen_source])
  24. if test $use_xopen_source = "yes"; then
  25. AC_DEFINE(_XOPEN_SOURCE, 600L, [Define for single UNIX conformance])
  26. # Needed for IRIX 6.2 so that struct timeval is declared.
  27. AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Define for timeval on IRIX 6.2])
  28. # Needed for Solaris 2.5.1 so that struct timeval is declared.
  29. AC_DEFINE(__EXTENSIONS__, 1, [Define for timeval on Solaris 2.5.1])
  30. fi
  31. ############################################################################
  32. # Check for X11
  33. ############################################################################
  34. AC_PATH_X
  35. if test ! "$no_x" = "yes" ; then
  36. if test ! x"$x_libraries" = x ; then
  37. LDFLAGS="$LDFLAGS -L$x_libraries"
  38. fi
  39. if test ! x"$x_includes" = x ; then
  40. CFLAGS="$CFLAGS -I$x_includes"
  41. fi
  42. else
  43. AC_MSG_ERROR([Could not find X11])
  44. fi
  45. AC_CHECK_LIB([X11], XOpenDisplay,
  46. [ LDFLAGS="$LDFLAGS -lX11" ],
  47. [ AC_MSG_ERROR([libX11 not found]) ])
  48. AC_CHECK_LIB([X11], Xutf8TextPropertyToTextList,
  49. [ AC_DEFINE(USE_XUTF8, 1, [Define to use Xutf8TextPropertyToTextList]) ],
  50. [ AC_MSG_WARN([Xutf8TextPropertyToTextList not found in libX11]) ])
  51. ############################################################################
  52. # Check for necessary include files.
  53. ############################################################################
  54. AC_CHECK_HEADERS([stdarg.h stdio.h stdlib.h ctype.h], [],
  55. [ AC_MSG_ERROR([one or more necessary header files not found]) ])
  56. AC_CHECK_HEADERS([sys/select.h signal.h unistd.h time.h sys/wait.h sys/time.h])
  57. AC_CHECK_HEADERS([alloca.h locale.h libintl.h])
  58. AC_CHECK_HEADERS([X11/Xlib.h], [],
  59. [ AC_MSG_ERROR([Xlib.h could not be found]) ])
  60. AC_CHECK_HEADERS([X11/Xutil.h X11/cursorfont.h X11/Xproto.h \
  61. X11/Xatom.h X11/keysym.h X11/Xresource.h], [], [],
  62. [
  63. #include <X11/Xlib.h>
  64. ])
  65. AC_CHECK_FUNCS([unsetenv putenv setlocale])
  66. ############################################################################
  67. # Check for pkg-config.
  68. ############################################################################
  69. AC_DEFUN([JWM_PKGCONFIG_EXISTS],
  70. [
  71. AC_MSG_CHECKING([for pkg-config])
  72. if which pkg-config >/dev/null ; then
  73. PKGCONFIG=pkg-config
  74. AC_MSG_RESULT($PKGCONFIG)
  75. else
  76. PKGCONFIG=""
  77. AC_MSG_RESULT([no])
  78. fi
  79. ])
  80. AC_DEFUN([JWM_PKGCONFIG],
  81. [
  82. AC_REQUIRE([JWM_PKGCONFIG_EXISTS])
  83. if test "x$PKGCONFIG" != "x" ; then
  84. AC_MSG_CHECKING([if pkg-config knows about $2])
  85. if `$PKGCONFIG $2` ; then
  86. $1="yes"
  87. else
  88. $1="no"
  89. fi
  90. AC_MSG_RESULT($$1)
  91. else
  92. $1="no"
  93. fi
  94. ])
  95. JWM_PKGCONFIG([use_pkgconfig_png], [libpng])
  96. JWM_PKGCONFIG([use_pkgconfig_jpeg], [libjpeg])
  97. JWM_PKGCONFIG([use_pkgconfig_cairo], [cairo])
  98. JWM_PKGCONFIG([use_pkgconfig_rsvg], [librsvg-2.0])
  99. JWM_PKGCONFIG([use_pkgconfig_freetype2], [freetype2])
  100. JWM_PKGCONFIG([use_pkgconfig_xft], [xft])
  101. JWM_PKGCONFIG([use_pkgconfig_xrender], [xrender])
  102. JWM_PKGCONFIG([use_pkgconfig_fribidi], [fribidi])
  103. ############################################################################
  104. # Check if confirm dialogs should be used.
  105. ############################################################################
  106. AC_ARG_ENABLE(confirm,
  107. AC_HELP_STRING([--disable-confirm], [disable confirm dialogs]) )
  108. if test "$enable_confirm" = "no" ; then
  109. AC_DEFINE(DISABLE_CONFIRM, 1, [Define to disable confirm dialogs])
  110. else
  111. enable_confirm="yes"
  112. fi
  113. ############################################################################
  114. # Check if icon support was requested.
  115. ############################################################################
  116. AC_ARG_ENABLE(icons,
  117. AC_HELP_STRING([--disable-icons], [disable icon support]) )
  118. if test "$enable_icons" != "no" ; then
  119. enable_icons="yes"
  120. AC_DEFINE(USE_ICONS, 1, [Define to enable icon support] )
  121. else
  122. enable_png="no"
  123. enable_xpm="no"
  124. enable_rsvg="no"
  125. enable_cairo="no"
  126. enable_jpeg="no"
  127. fi
  128. ############################################################################
  129. # Check if PNG support was requested and available.
  130. ############################################################################
  131. AC_ARG_ENABLE(png,
  132. AC_HELP_STRING([--disable-png], [disable PNG images]) )
  133. if test "$enable_png" != "no" ; then
  134. if test "$use_pkgconfig_png" = "yes" ; then
  135. PNG_CFLAGS=`$PKGCONFIG --cflags libpng`
  136. PNG_LDFLAGS=`$PKGCONFIG --libs libpng`
  137. elif which libpng-config >/dev/null ; then
  138. PNG_CFLAGS=`libpng-config --cflags`
  139. PNG_LDFLAGS=`libpng-config --libs`
  140. else
  141. PNG_LDFLAGS="-lpng -lz -lm"
  142. fi
  143. fi
  144. if test "$enable_png" != "no" ; then
  145. AC_CHECK_LIB(png, png_read_image,
  146. [ LDFLAGS="$LDFLAGS $PNG_LDFLAGS"
  147. CFLAGS="$CFLAGS $PNG_CFLAGS"
  148. enable_png="yes"
  149. AC_DEFINE(USE_PNG, 1, [Define to use libpng]) ],
  150. [ enable_png="no"
  151. AC_MSG_WARN([unable to use libpng, PNG support disabled]) ],
  152. [ $PNG_LDFLAGS ])
  153. fi
  154. ############################################################################
  155. # Check if Cairo support was requested and available.
  156. ############################################################################
  157. AC_ARG_ENABLE(cairo,
  158. AC_HELP_STRING([--disable-cairo], [disable Cairo support]) )
  159. if test "$enable_cairo" != "no" ; then
  160. if test "$use_pkgconfig_cairo" = "yes" ; then
  161. CAIRO_CFLAGS=`$PKGCONFIG --cflags cairo`
  162. CAIRO_LDFLAGS=`$PKGCONFIG --libs cairo`
  163. elif which cairo-config >/dev/null ; then
  164. CAIRO_CFLAGS=`cairo-config --cflags`
  165. CAIRO_LDFLAGS=`cairo-config --libs`
  166. else
  167. CAIRO_LDFLAGS="-lcairo"
  168. fi
  169. fi
  170. if test "$enable_cairo" != "no" ; then
  171. AC_CHECK_LIB(cairo, cairo_create,
  172. [ enable_cairo="yes" ],
  173. [ enable_cairo="no"
  174. AC_MSG_WARN([unable to use Cairo, Cairo support disabled]) ],
  175. [ $CAIRO_LDFLAGS ])
  176. fi
  177. if test "$enable_cairo" = "no" ; then
  178. if test "$enable_rsvg" != "no" ; then
  179. AC_MSG_WARN([disabling rsvg because Cairo is disabled])
  180. enable_rsvg="no"
  181. fi
  182. fi
  183. ############################################################################
  184. # Check if librsvg support was requested and available.
  185. ############################################################################
  186. AC_ARG_ENABLE(rsvg,
  187. AC_HELP_STRING([--disable-rsvg], [disable rsvg support]) )
  188. if test "$enable_rsvg" != "no" ; then
  189. if test "$use_pkgconfig_rsvg" = "yes" ; then
  190. RSVG_CFLAGS=`$PKGCONFIG --cflags librsvg-2.0`
  191. RSVG_LDFLAGS=`$PKGCONFIG --libs librsvg-2.0`
  192. else
  193. RSVG_LDFLAGS="-lrsvg-2.0"
  194. fi
  195. fi
  196. if test "$enable_rsvg" != "no" ; then
  197. AC_CHECK_LIB(rsvg-2, rsvg_handle_render_cairo,
  198. [ LDFLAGS="$LDFLAGS $RSVG_LDFLAGS"
  199. CFLAGS="$CFLAGS $RSVG_CFLAGS"
  200. enable_rsvg="yes"
  201. AC_DEFINE(USE_RSVG, 1, [Define to use rsvg]) ],
  202. [ enable_rsvg="no"
  203. AC_MSG_WARN([unable to use rsvg, rsvg support disabled]) ],
  204. [ $RSVG_LDFLAGS ])
  205. fi
  206. if test "$enable_rsvg" = "no" ; then
  207. if test "$enable_cairo" != "no" ; then
  208. AC_MSG_WARN([disabling Cairo because rsvg is disabled])
  209. enable_cairo="no"
  210. fi
  211. fi
  212. if test "$enable_rsvg" = "yes" ; then
  213. LDFLAGS="$LDFLAGS $CAIRO_LDFLAGS"
  214. CFLAGS="$CFLAGS $CAIRO_CFLAGS"
  215. AC_DEFINE(USE_CAIRO, 1, [Define to use Cairo]) ],
  216. fi
  217. ############################################################################
  218. # Check if JPEG support was requested and available.
  219. ############################################################################
  220. AC_ARG_ENABLE(jpeg,
  221. AC_HELP_STRING([--disable-jpeg], [disable JPEG images]) )
  222. if test "$enable_jpeg" != "no" ; then
  223. if test "$use_pkgconfig_jpeg" = "yes" ; then
  224. JPEG_CFLAGS=`$PKGCONFIG --cflags libjpeg`
  225. JPEG_LDFLAGS=`$PKGCONFIG --libs libjpeg`
  226. else
  227. JPEG_LDFLAGS="-ljpeg"
  228. fi
  229. fi
  230. if test "$enable_jpeg" != "no" ; then
  231. AC_CHECK_LIB(jpeg, jpeg_start_decompress,
  232. [ LDFLAGS="$LDFLAGS $JPEG_LDFLAGS"
  233. CFLAGS="$CFLAGS $JPEG_CFLAGS"
  234. enable_jpeg="yes"
  235. AC_DEFINE(USE_JPEG, 1, [Define to use libjpeg]) ],
  236. [ enable_jpeg="no"
  237. AC_MSG_WARN([unable to use libjpeg, JPEG support disabled]) ],
  238. [ $JPEG_LDFLAGS ])
  239. fi
  240. ############################################################################
  241. # Check if XFT support was requested and available.
  242. ############################################################################
  243. AC_ARG_ENABLE(xft, AC_HELP_STRING([--disable-xft], [disable Xft]) )
  244. if test "$enable_xft" != "no"; then
  245. if test "$use_pkgconfig_freetype2" = "yes" ; then
  246. FT2_CFLAGS=`$PKGCONFIG --cflags freetype2`
  247. FT2_LDFLAGS=`$PKGCONFIG --libs freetype2`
  248. elif which freetype-config >/dev/null ; then
  249. FT2_CFLAGS=`freetype-config --cflags`
  250. FT2_LDFLAGS=`freetype-config --libs`
  251. else
  252. FT2_CFLAGS=""
  253. FT2_LDFLAGS=""
  254. fi
  255. if test "$use_pkgconfig_xft" = "yes" ; then
  256. XFT_CFLAGS=`$PKGCONFIG --cflags xft`
  257. XFT_LDFLAGS=`$PKGCONFIG --libs xft`
  258. elif which xft-config >/dev/null ; then
  259. XFT_CFLAGS=`xft-config --cflags`
  260. XFT_LDFLAGS=`xft-config --libs`
  261. else
  262. XFT_LDFLAGS="-lXft"
  263. fi
  264. fi
  265. if test "$enable_xft" != "no" ; then
  266. AC_CHECK_LIB(Xft, XftFontOpenName,
  267. [ LDFLAGS="$LDFLAGS $XFT_LDFLAGS $FT2_LDFLAGS"
  268. CFLAGS="$CFLAGS $XFT_CFLAGS $FT2_CFLAGS"
  269. enable_xft="yes"
  270. AC_DEFINE(USE_XFT, 1, [Define to enable Xft]) ],
  271. [ enable_xft="no"
  272. AC_MSG_WARN([unable to use Xft]) ],
  273. [ $XFT_LDFLAGS $FT2_LDFLAGS ])
  274. fi
  275. if test "$enable_xft" != "no" ; then
  276. AC_CHECK_HEADER([ft2build.h], [], [], [
  277. #include <X11/Xlib.h>
  278. ])
  279. fi
  280. ############################################################################
  281. # Check if support for the XRENDER extension was requested and available.
  282. ############################################################################
  283. AC_ARG_ENABLE(xrender,
  284. AC_HELP_STRING([--disable-xrender], [disable XRender]) )
  285. if test "$enable_xrender" != "no"; then
  286. if test "$use_pkgconfig_xrender" = "yes" ; then
  287. XRENDER_CFLAGS=`$PKGCONFIG --cflags xrender`
  288. XRENDER_LDFLAGS=`$PKGCONFIG --libs xrender`
  289. else
  290. XRENDER_LDFLAGS="-lXrender"
  291. fi
  292. AC_CHECK_HEADERS([X11/extensions/Xrender.h], [],
  293. [
  294. enable_xrender="no";
  295. AC_MSG_WARN([unable to use X11/extensions/Xrender.h])
  296. ], [
  297. #include <X11/Xlib.h>
  298. ])
  299. fi
  300. if test "$enable_xrender" != "no" ; then
  301. AC_CHECK_LIB(Xrender, XRenderComposite,
  302. [ LDFLAGS="$LDFLAGS $XRENDER_LDFLAGS"
  303. CFLAGS="$CFLAGS $XRENDER_CFLAGS"
  304. enable_xrender="yes"
  305. AC_DEFINE(USE_XRENDER, 1, [Define to enable the XRender extension]) ],
  306. [ enable_xrender="no"
  307. AC_MSG_WARN([unable to use the XRender extension]) ],
  308. [ $XRENDER_LDFLAGS ])
  309. fi
  310. ############################################################################
  311. # Check if FriBidi support was requested and available.
  312. ############################################################################
  313. AC_ARG_ENABLE(fribidi,
  314. AC_HELP_STRING([--disable-fribidi],
  315. [disable bi-directional unicode support]) )
  316. if test "$enable_fribidi" != "no" ; then
  317. if test "$use_pkgconfig_fribidi" = "yes" ; then
  318. FRIBIDI_CFLAGS=`$PKGCONFIG --cflags fribidi`
  319. FRIBIDI_LDFLAGS=`$PKGCONFIG --libs fribidi`
  320. elif which fribidi-config >/dev/null ; then
  321. FRIBIDI_CFLAGS=`fribidi-config --cflags`
  322. FRIBIDI_LDFLAGS=`fribidi-config --libs`
  323. else
  324. FRIBIDI_LDFLAGS="-lfribidi"
  325. fi
  326. fi
  327. if test "$enable_fribidi" != "no" ; then
  328. AC_CHECK_LIB(fribidi, fribidi_charset_to_unicode,
  329. [ LDFLAGS="$LDFLAGS $FRIBIDI_LDFLAGS"
  330. CFLAGS="$CFLAGS $FRIBIDI_CFLAGS"
  331. enable_fribidi="yes"
  332. AC_DEFINE(USE_FRIBIDI, 1, [Define to use FriBidi]) ],
  333. [ enable_fribidi="no"
  334. AC_MSG_WARN([unable to use FriBidi]) ],
  335. [ $FRIBIDI_LDFLAGS ])
  336. fi
  337. ############################################################################
  338. # Check if XPM support was requested and available.
  339. ############################################################################
  340. AC_ARG_ENABLE(xpm,
  341. AC_HELP_STRING([--disable-xpm], [disable XPM images]) )
  342. if test "$enable_xpm" != "no"; then
  343. # We need to use the XPM libraries in Motif-2.1 on IRIX.
  344. if test `uname` = "IRIX" -o `uname` = "IRIX64" ; then
  345. CFLAGS="$CFLAGS -I/usr/Motif-2.1/include"
  346. LDFLAGS="$LDFLAGS -L/usr/Motif-2.1/lib"
  347. fi
  348. AC_CHECK_HEADERS([X11/xpm.h], [],
  349. [ enable_xpm="no";
  350. AC_MSG_WARN([unable to use X11/xpm.h]) ])
  351. fi
  352. if test "$enable_xpm" != "no"; then
  353. AC_CHECK_DECL(XpmAllocColor, [],
  354. [ enable_xpm="no"
  355. AC_MSG_WARN([XPM library too old]) ],
  356. [
  357. #include <X11/xpm.h>
  358. ])
  359. fi
  360. if test "$enable_xpm" != "no"; then
  361. AC_CHECK_LIB(Xpm, XpmReadFileToImage,
  362. [ LDFLAGS="$LDFLAGS -lXpm";
  363. enable_xpm="yes"
  364. AC_DEFINE(USE_XPM, 1, [Define to enable XPM support]) ],
  365. [ enable_xpm="no"
  366. AC_MSG_WARN([unable to use libXpm]) ])
  367. fi
  368. ############################################################################
  369. # Check if support for the shape extension was requested and available.
  370. ############################################################################
  371. AC_ARG_ENABLE(shape,
  372. AC_HELP_STRING([--disable-shape], [disable use of the X shape extension]) )
  373. if test "$enable_shape" != "no"; then
  374. AC_CHECK_LIB(Xext, XShapeCombineRectangles,
  375. [ LDFLAGS="$LDFLAGS -lXext"
  376. enable_shape="yes"
  377. AC_DEFINE(USE_SHAPE, 1, [Define to enable the X shape extension]) ],
  378. [ enable_shape="no"
  379. AC_MSG_WARN([unable to use the X shape extension]) ])
  380. fi
  381. ############################################################################
  382. # Check if support for Xmu was requested and available.
  383. # Note that Xmu appears to be broken on IRIX (drawing rounded rectangles
  384. # larger than 800 pixels in either direction causes problems).
  385. ############################################################################
  386. AC_ARG_ENABLE(xmu,
  387. AC_HELP_STRING([--disable-xmu], [disable Xmu support]),
  388. [],
  389. [ if test `uname` = "IRIX" -o `uname` = "IRIX64" ; then
  390. AC_MSG_WARN([disabling Xmu (it is broken on IRIX)])
  391. enable_xmu="no"
  392. fi
  393. ])
  394. if test "$enable_xmu" != "no"; then
  395. AC_CHECK_LIB(Xmu, XmuDrawRoundedRectangle,
  396. [ LDFLAGS="$LDFLAGS -lXmu"
  397. enable_xmu="yes"
  398. AC_DEFINE(USE_XMU, 1, [Define to use Xmu]) ],
  399. [ enable_xmu="no"
  400. AC_MSG_WARN([unable to use Xmu]) ])
  401. fi
  402. ############################################################################
  403. # Check if support for Xinerama was requested and available.
  404. ############################################################################
  405. AC_ARG_ENABLE(xinerama,
  406. AC_HELP_STRING([--disable-xinerama], [disable Xinerama support]) )
  407. if test "$enable_xinerama" != "no"; then
  408. AC_CHECK_LIB(Xinerama, XineramaQueryExtension,
  409. [ LDFLAGS="$LDFLAGS -lXinerama"
  410. enable_xinerama="yes"
  411. AC_DEFINE(USE_XINERAMA, 1, [Define to enable Xinerama]) ],
  412. [ enable_xinerama="no"
  413. AC_MSG_WARN([unable to use Xinerama]) ])
  414. fi
  415. ############################################################################
  416. # Check if support for gettext was requested and available.
  417. ############################################################################
  418. # Use m4_pattern_allow to work around gettext's use of AM_PROG_MKDIR_P.
  419. m4_pattern_allow([AM_PROG_MKDIR_P])
  420. AM_GNU_GETTEXT([external])
  421. LDFLAGS="$LDFLAGS $LIBINTL"
  422. ############################################################################
  423. # Check if debug mode was requested.
  424. ############################################################################
  425. AC_ARG_ENABLE(debug,
  426. AC_HELP_STRING([--enable-debug], [use this to debug JWM]) )
  427. if test "$enable_debug" = "yes"; then
  428. AC_DEFINE(DEBUG, 1, [Define to debug JWM])
  429. CFLAGS="$CFLAGS -Wall -g -DDEBUG"
  430. LDFLAGS="$LDFLAGS -g"
  431. else
  432. enable_debug="no"
  433. fi
  434. ############################################################################
  435. # Create the output files.
  436. ############################################################################
  437. if test "$prefix" = "NONE" ; then
  438. PREFIX="$ac_default_prefix"
  439. prefix="$ac_default_prefix"
  440. else
  441. PREFIX="$prefix"
  442. fi
  443. if test "$exec_prefix" = "NONE" ; then
  444. exec_prefix="$PREFIX"
  445. fi
  446. if test "$sysconfdir" = "" ; then
  447. sysconfdir="$ac_default_sysconfdir"
  448. fi
  449. if test "$mandir" = "" ; then
  450. mandir="$ac_default_mandir"
  451. fi
  452. if test "$LOCALEDIR" = "" ; then
  453. localedir=`eval echo \""$datadir"/locale\"`
  454. localedir=`eval echo \""$localedir"\"`
  455. CFLAGS="$CFLAGS -DLOCALEDIR=\\\"$localedir\\\""
  456. fi
  457. BINDIR=`eval echo \""$bindir"\"`
  458. SYSCONF=`eval echo \""$sysconfdir"\"`
  459. MANDIR=`eval echo \""$mandir"\"`
  460. MANDIR=`eval echo \""$MANDIR"\"`
  461. AC_DEFINE_UNQUOTED(SYSTEM_CONFIG, "$SYSCONF/system.jwmrc",
  462. [default system configuration path])
  463. AC_SUBST(CFLAGS)
  464. AC_SUBST(LDFLAGS)
  465. AC_SUBST(VERSION, "$PACKAGE_VERSION")
  466. AC_SUBST(INSTVERSION, `echo $PACKAGE_VERSION | tr -d .`)
  467. AC_SUBST(BINDIR, "$BINDIR")
  468. AC_SUBST(MANDIR, "$MANDIR")
  469. AC_SUBST(DATE, `date "+%Y-%m-%d"`)
  470. AC_SUBST(SYSCONF, "$SYSCONF")
  471. AC_SUBST(PACKAGE, "$PACKAGE")
  472. AC_OUTPUT(
  473. po/Makefile.in
  474. Makefile
  475. src/Makefile
  476. jwm.1
  477. )
  478. ############################################################################
  479. # Display the status.
  480. ############################################################################
  481. echo "Compiler: $CC"
  482. echo "Compile flags: $CFLAGS"
  483. echo "Link flags: $LDFLAGS"
  484. echo
  485. echo "Options"
  486. echo
  487. echo " Confirm: $enable_confirm"
  488. echo " Icon: $enable_icons"
  489. echo " Cairo: $enable_cairo"
  490. echo " RSVG: $enable_rsvg"
  491. echo " PNG: $enable_png"
  492. echo " JPEG: $enable_jpeg"
  493. echo " XPM: $enable_xpm"
  494. echo " XFT: $enable_xft"
  495. echo " XRender: $enable_xrender"
  496. echo " FriBidi: $enable_fribidi"
  497. echo " Shape: $enable_shape"
  498. echo " Xmu: $enable_xmu"
  499. echo " Xinerama: $enable_xinerama"
  500. echo " Debug: $enable_debug"
  501. echo