X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=configure.ac;h=315046861c7d9dc04b1ba1d843c2e21241389fbf;hb=001f174cf5b06e8725d46a659ef5416c241b45dd;hp=aa5756576c95037b05e78c0d945f1131b4a7f465;hpb=ce24cbd045b2a93a04c5cd258137ab8572f2c429;p=chaz%2Fopenbox diff --git a/configure.ac b/configure.ac index aa575657..31504686 100644 --- a/configure.ac +++ b/configure.ac @@ -3,6 +3,9 @@ AC_INIT([openbox], [3.5.0-rc1], [http://bugzilla.icculus.org]) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([openbox/openbox.c]) +OB_VERSION=$PACKAGE_VERSION +AC_SUBST(OB_VERSION) + dnl Making releases: dnl RR_MICRO_VERSION += 1; dnl RR_INTERFACE_AGE += 1; @@ -84,9 +87,9 @@ AC_PROG_INSTALL AM_GNU_GETTEXT_VERSION(0.15) AM_GNU_GETTEXT([external]) -AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h) -AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/socket.h sys/time.h) -AC_CHECK_HEADERS(sys/wait.h) +AC_CHECK_HEADERS(ctype.h fcntl.h grp.h locale.h pwd.h signal.h string.h) +AC_CHECK_HEADERS(stdio.h stdlib.h unistd.h sys/stat.h sys/select.h) +AC_CHECK_HEADERS(sys/socket.h sys/time.h sys/wait.h) # AC_HEADER_TIME # AC_TYPE_SIGNAL @@ -95,6 +98,11 @@ if test "$SED" = "no"; then AC_MSG_ERROR([The program "sed" is not available. This program is required to build Openbox.]) fi +AC_PATH_PROG([DIRNAME], [dirname], [no]) +if test "$DIRNAME" = "no"; then + AC_MSG_ERROR([The program "dirname" is not available. This program is required to build Openbox.]) +fi + PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.14.0]) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) @@ -157,6 +165,36 @@ else xcursor_found=no fi +AC_ARG_ENABLE(imlib2, + AC_HELP_STRING( + [--disable-imlib2], + [disable use of Imlib2 image library for loading icons. [[default=enabled]]] + ), + [enable_imlib2=$enableeval], + [enable_imlib2=yes] +) + +if test "$enable_imlib2" = yes; then +PKG_CHECK_MODULES(IMLIB2, [imlib2], + [ + AC_DEFINE(USE_IMLIB2, [1], [Use Imlib2 image library]) + AC_SUBST(IMLIB2_CFLAGS) + AC_SUBST(IMLIB2_LIBS) + # export it for the pkg-config file + PKG_CONFIG_IMLIB=imlib2 + AC_SUBST(PKG_CONFIG_IMLIB) + imlib2_found=yes + ], + [ + imlib2_found=no + ] +) +else + imlib2_found=no +fi + +AM_CONDITIONAL(USE_IMLIB2, [test $imlib2_found = yes]) + dnl Check for session management X11_SM @@ -179,6 +217,7 @@ AC_CONFIG_FILES([ obt/obt-3.5.pc obrender/version.h obt/version.h + version.h ]) AC_CONFIG_COMMANDS([doc], [test -d doc || mkdir doc]) @@ -193,5 +232,6 @@ AC_MSG_RESULT([Compiling with these options: Startup Notification... $sn_found X Cursor Library... $xcursor_found Session Management... $SM + Imlib2 library... $imlib2_found ]) AC_MSG_RESULT([configure complete, now type "make"])