aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in59
1 files changed, 34 insertions, 25 deletions
diff --git a/configure.in b/configure.in
index e3ee2aa..914c656 100644
--- a/configure.in
+++ b/configure.in
@@ -334,11 +334,12 @@ AS_IF(test "x$XFT" = "xtrue",[
334 [ 334 [
335 335
336 AC_DEFINE(USE_XFT, 1, "antialias support") 336 AC_DEFINE(USE_XFT, 1, "antialias support")
337 AC_MSG_CHECKING([Xft UTF-8 support]) 337 AC_MSG_CHECKING([Xft UTF-8 support])
338 AC_TRY_LINK([ 338 AC_TRY_LINK([
339 #include <X11/Xft/Xft.h> 339 #include <X11/Xft/Xft.h>
340 ], [ XftDrawStringUtf8(0, 0, 0, 0, 0, 0, 0); return 0; ], 340 ], [ XftDrawStringUtf8(0, 0, 0, 0, 0, 0, 0); return 0; ],
341 AC_DEFINE(HAVE_XFT_UTF8_STRING, 1, "Xft UTF8 support") 341 AC_DEFINE(HAVE_XFT_UTF8_STRING, 1, "Xft UTF8 support")
342 FEATURES="$FEATURES XFT"
342 AC_MSG_RESULT(yes), 343 AC_MSG_RESULT(yes),
343 AC_MSG_RESULT(no) 344 AC_MSG_RESULT(no)
344 ) 345 )
@@ -350,9 +351,9 @@ AS_IF(test "x$XFT" = "xtrue",[
350AM_CONDITIONAL(XFT, test "x$XFT" = "xtrue") 351AM_CONDITIONAL(XFT, test "x$XFT" = "xtrue")
351 352
352 353
353AC_MSG_CHECKING([whether to have Xrender (transparent) support]) 354AC_MSG_CHECKING([whether to have XRENDER (transparent) support])
354AC_ARG_ENABLE(xrender, 355AC_ARG_ENABLE(xrender,
355 AS_HELP_STRING([--enable-xrender],[Xrender (transparent) support (default=yes)]),,[enable_xrender=yes]) 356 AS_HELP_STRING([--enable-xrender],[XRENDER (transparent) support (default=yes)]),,[enable_xrender=yes])
356AC_MSG_RESULT([$enable_xrender]) 357AC_MSG_RESULT([$enable_xrender])
357AS_IF(test "x$enable_xrender" = "xyes",[ 358AS_IF(test "x$enable_xrender" = "xyes",[
358 AC_CHECK_LIB(Xrender, XRenderCreatePicture, 359 AC_CHECK_LIB(Xrender, XRenderCreatePicture,
@@ -362,9 +363,9 @@ AS_IF(test "x$enable_xrender" = "xyes",[
362 363
363 364
364XPM=false 365XPM=false
365AC_MSG_CHECKING([whether to have Xpm (pixmap themes) support]) 366AC_MSG_CHECKING([whether to have XPM (pixmap themes) support])
366AC_ARG_ENABLE(xpm, 367AC_ARG_ENABLE(xpm,
367 AS_HELP_STRING([--enable-xpm],[Xpm (pixmap themes) support (default=yes)]),[],[enable_xpm=yes]) 368 AS_HELP_STRING([--enable-xpm],[XPM (pixmap themes) support (default=yes)]),[],[enable_xpm=yes])
368AC_MSG_RESULT([$enable_xpm]) 369AC_MSG_RESULT([$enable_xpm])
369AS_IF(test "x$enable_xpm" = "xyes",[ 370AS_IF(test "x$enable_xpm" = "xyes",[
370 AC_CHECK_LIB(Xpm, XpmReadFileToPixmap, 371 AC_CHECK_LIB(Xpm, XpmReadFileToPixmap,
@@ -377,9 +378,9 @@ AM_CONDITIONAL(XPM, test "x$XPM" = "xtrue")
377 378
378dnl Check whether to use imlib2 379dnl Check whether to use imlib2
379IMLIB2=false 380IMLIB2=false
380AC_MSG_CHECKING([whether to have Imlib2 (pixmap themes) support]) 381AC_MSG_CHECKING([whether to have IMLIB2 (pixmap themes) support])
381AC_ARG_ENABLE(imlib2, 382AC_ARG_ENABLE(imlib2,
382 AS_HELP_STRING([--enable-imlib2], [Imlib2 (pixmap themes) support (default=yes)]), , [enable_imlib2=yes]) 383 AS_HELP_STRING([--enable-imlib2], [IMLIB2 (pixmap themes) support (default=yes)]), , [enable_imlib2=yes])
383AC_MSG_RESULT([$enable_imlib2]) 384AC_MSG_RESULT([$enable_imlib2])
384AS_IF(test x$enable_imlib2 = "xyes",[ 385AS_IF(test x$enable_imlib2 = "xyes",[
385 AC_PATH_GENERIC(imlib2, 1.0.0,[ 386 AC_PATH_GENERIC(imlib2, 1.0.0,[
@@ -387,6 +388,7 @@ AS_IF(test x$enable_imlib2 = "xyes",[
387 AC_DEFINE(HAVE_IMLIB2, [], [Imlib2 support]) 388 AC_DEFINE(HAVE_IMLIB2, [], [Imlib2 support])
388 LIBS="$IMLIB2_LIBS $LIBS" 389 LIBS="$IMLIB2_LIBS $LIBS"
389 CXXFLAGS="$CXXFLAGS $IMLIB2_CFLAGS" 390 CXXFLAGS="$CXXFLAGS $IMLIB2_CFLAGS"
391 FEATURES="$FEATURES IMLIB2"
390 ], [] 392 ], []
391 )],[]) 393 )],[])
392 394
@@ -394,17 +396,17 @@ AM_CONDITIONAL(IMLIB2, test "x$IMLIB2" = "xtrue")
394 396
395 397
396 398
397AC_MSG_CHECKING([whether to have Xmb (multibyte font, utf-8) support]) 399AC_MSG_CHECKING([whether to have XMB (multibyte font, utf-8) support])
398AC_ARG_ENABLE(xmb, AS_HELP_STRING([--enable-xmb],[Xmb (multibyte font, utf-8) support (default=yes)]),,[enable_xmb=yes]) 400AC_ARG_ENABLE(xmb, AS_HELP_STRING([--enable-xmb],[XMB (multibyte font, utf-8) support (default=yes)]),,[enable_xmb=yes])
399AC_MSG_RESULT([$enable_xmb]) 401AC_MSG_RESULT([$enable_xmb])
400AS_IF([test "x$enable_xmb" = "xyes"],[ AC_DEFINE(USE_XMB, 1, "multibyte support")], []) 402AS_IF([test "x$enable_xmb" = "xyes"],[ AC_DEFINE(USE_XMB, 1, "multibyte support")], [])
401AM_CONDITIONAL(MULTIBYTE, test "x$enable_xmb" = "xyes") 403AM_CONDITIONAL(MULTIBYTE, test "x$enable_xmb" = "xyes")
402 404
403 405
404dnl Check for Xinerama support and proper library files. 406dnl Check for Xinerama support and proper library files.
405AC_MSG_CHECKING([whether to build support for the Xinerama extension]) 407AC_MSG_CHECKING([whether to build support for the XINERAMA extension])
406AC_ARG_ENABLE(xinerama, 408AC_ARG_ENABLE(xinerama,
407 AS_HELP_STRING([--enable-xinerama], [enable support of the Xinerama extension (default=yes)]), ,[enable_xinerama=yes]) 409 AS_HELP_STRING([--enable-xinerama], [XINERAMA extension support (default=yes)]), ,[enable_xinerama=yes])
408 410
409AS_IF(test "x$enable_xinerama" = "xyes",[ 411AS_IF(test "x$enable_xinerama" = "xyes",[
410 AC_CHECK_LIB(Xinerama, XineramaQueryScreens, 412 AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
@@ -416,16 +418,17 @@ AS_IF(test "x$enable_xinerama" = "xyes",[
416 , XineramaQueryScreens(0, 0), 418 , XineramaQueryScreens(0, 0),
417 AC_MSG_RESULT([yes]) 419 AC_MSG_RESULT([yes])
418 AC_DEFINE(XINERAMA, [1], [Define to 1 if you have XINERAMA]) 420 AC_DEFINE(XINERAMA, [1], [Define to 1 if you have XINERAMA])
419 LIBS="-lXinerama $LIBS", 421 LIBS="-lXinerama $LIBS"
422 FEATURES="$FEATURES XINERAMA",
420 AC_MSG_RESULT([no])))],[ 423 AC_MSG_RESULT([no])))],[
421 AC_MSG_RESULT([no]) 424 AC_MSG_RESULT([no])
422 CONFIGOPTS="$CONFIGOPTS --disable-xinerama"]) 425 CONFIGOPTS="$CONFIGOPTS --disable-xinerama"])
423 426
424 427
425dnl Check for XShape extension support and proper library files. 428dnl Check for XShape extension support and proper library files.
426AC_MSG_CHECKING([whether to build support for the XShape extension]) 429AC_MSG_CHECKING([whether to build support for the XSHAPE extension])
427AC_ARG_ENABLE(shape, 430AC_ARG_ENABLE(shape,
428 AS_HELP_STRING([--enable-shape], [enable support of the XShape extension (default=yes)]), , [enable_shape=yes]) 431 AS_HELP_STRING([--enable-shape], [XSHAPE extension support (default=yes)]), , [enable_shape=yes])
429AS_IF(test "x$enable_shape" = "xyes",[ 432AS_IF(test "x$enable_shape" = "xyes",[
430 AC_CHECK_LIB(Xext, XShapeCombineShape, 433 AC_CHECK_LIB(Xext, XShapeCombineShape,
431 AC_MSG_CHECKING([for X11/extensions/shape.h]) 434 AC_MSG_CHECKING([for X11/extensions/shape.h])
@@ -437,7 +440,7 @@ AS_IF(test "x$enable_shape" = "xyes",[
437 AC_MSG_RESULT([yes]) 440 AC_MSG_RESULT([yes])
438 AC_DEFINE(SHAPE, [1], [Define to 1 if you have SHAPE]) 441 AC_DEFINE(SHAPE, [1], [Define to 1 if you have SHAPE])
439 LIBS="-lXext $LIBS" 442 LIBS="-lXext $LIBS"
440 FEATURES="$FEATURES XShape", 443 FEATURES="$FEATURES SHAPE",
441 AC_MSG_RESULT([no])))],[ 444 AC_MSG_RESULT([no])))],[
442 AC_MSG_RESULT([no]) 445 AC_MSG_RESULT([no])
443 CONFIGOPTS="$CONFIGOPTS --disable-shape"]) 446 CONFIGOPTS="$CONFIGOPTS --disable-shape"])
@@ -652,15 +655,21 @@ dnl Print results
652AC_MSG_RESULT([]) 655AC_MSG_RESULT([])
653AC_MSG_RESULT([ $PACKAGE version $VERSION configured successfully.]) 656AC_MSG_RESULT([ $PACKAGE version $VERSION configured successfully.])
654AC_MSG_RESULT([]) 657AC_MSG_RESULT([])
655AC_MSG_RESULT([Using '$prefix' for installation.]) 658AC_MSG_RESULT([Features:])
656AC_MSG_RESULT([Using '$DEFAULT_MENU' for location menu file.]) 659AC_MSG_RESULT([ $FEATURES])
657AC_MSG_RESULT([Using '$DEFAULT_STYLE' by default style.]) 660AC_MSG_RESULT([])
658AC_MSG_RESULT([Using '$DEFAULT_KEYS' for location keys file.]) 661AC_MSG_RESULT([Using:])
659AC_MSG_RESULT([Using '$DEFAULT_INIT' for location init file.]) 662AC_MSG_RESULT([ '$prefix' for installation.])
660AC_MSG_RESULT([Using '$LOCALE_PATH' for nls files.]) 663AC_MSG_RESULT([ '$DEFAULT_MENU' for location menu file.])
661AC_MSG_RESULT([Using '$CXX' for C++ compiler.]) 664AC_MSG_RESULT([ '$DEFAULT_STYLE' by default style.])
662AC_MSG_RESULT([Building with '$CXXFLAGS' for C++ compiler flags.]) 665AC_MSG_RESULT([ '$DEFAULT_KEYS' for location keys file.])
663AC_MSG_RESULT([Building with '$LIBS' for linker flags.]) 666AC_MSG_RESULT([ '$DEFAULT_INIT' for location init file.])
667AC_MSG_RESULT([ '$LOCALE_PATH' for nls files.])
668AC_MSG_RESULT([ '$CXX' for C++ compiler.])
669AC_MSG_RESULT([])
670AC_MSG_RESULT([Building with:])
671AC_MSG_RESULT([ '$CXXFLAGS' for C++ compiler flags.])
672AC_MSG_RESULT([ '$LIBS' for linker flags.])
664AC_MSG_RESULT([]) 673AC_MSG_RESULT([])
665AC_MSG_RESULT([Now build $PACKAGE with 'make']) 674AC_MSG_RESULT([Now build $PACKAGE with 'make'])
666AC_MSG_RESULT([]) 675AC_MSG_RESULT([])