Hey,
I've cleaned a bit the autotools stuff:
* use correct way to remove the check of g++ and g77 from libtool
* use correct way to deal with PACKAGE_DATA_DIR and PACKAGE_LIB_DIR
* use AC_HELP_STRING when missing
* formatting
later, I plan to add win32 support (compilation without x11. I don't think
i'll add any win32 specific graphic stuff)
if the formatting is good enough, i can commit.
Vincent
? imlib2-1.4.1.000.tar.bz2
? imlib2.diff
Index: Makefile.am
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/Makefile.am,v
retrieving revision 1.36
diff -u -r1.36 Makefile.am
--- Makefile.am 28 Jun 2006 07:20:17 -0000 1.36
+++ Makefile.am 11 May 2008 07:38:15 -0000
@@ -2,15 +2,9 @@
SUBDIRS = src data doc
-MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
- config.h.in config.sub configure install-sh \
- ltconfig ltmain.sh missing mkinstalldirs \
- stamp-h.in build-stamp configure-stamp depcomp \
- imlib2_docs.tar.gz imlib2.c \
- README \
- imlib2.pc \
- imlib2.spec \
- debian/changelog
+MAINTAINERCLEANFILES = aclocalm4 config.guess config.h.in \
+ config.sub configure depcomp install-sh \
+ ltmain.sh Makefile.in missing imlib2_docs.tar.gz
bin_SCRIPTS = imlib2-config
Index: configure.in
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/configure.in,v
retrieving revision 1.147
diff -u -r1.147 configure.in
--- configure.in 20 Apr 2008 12:19:22 -0000 1.147
+++ configure.in 11 May 2008 07:38:15 -0000
@@ -16,22 +16,19 @@
AM_PROG_AS
dnl Set default visibility to hidden?
-AC_ARG_ENABLE(visibility-hiding,
- [ --enable-visibility-hiding enable visibility hiding @<:@default=no@:>@],,
- enable_visibility_hiding=no
+AC_ARG_ENABLE([visibility-hiding],
+ [AC_HELP_STRING([--enable-visibility-hiding], [enable visibility hiding
@<:@default=no@:>@])],
+ [enable_visibility_hiding=yes],
+ [enable_visibility_hiding=no]
)
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C_CONST
-AM_ENABLE_SHARED
dnl Next four lines is a hack to prevent libtool checking for CXX/F77
-m4_undefine([AC_PROG_CXX])
-m4_defun([AC_PROG_CXX],[])
-m4_undefine([AC_PROG_F77])
-m4_defun([AC_PROG_F77],[])
-
+define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
+define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AM_PROG_LIBTOOL
dnl See if the compiler supports -std=gnu99 since some math
@@ -43,72 +40,6 @@
AC_TRY_COMPILE(,,,[cc_supports_gnu99="no";CPPFLAGS="$save_CPPFLAGS"])
AC_MSG_RESULT($cc_supports_gnu99)
-if test "x${bindir}" = 'x${exec_prefix}/bin'; then
- if test "x${exec_prefix}" = "xNONE"; then
- if test "x${prefix}" = "xNONE"; then
- bindir="${ac_default_prefix}/bin";
- else
- bindir="${prefix}/bin";
- fi
- else
- if test "x${prefix}" = "xNONE"; then
- bindir="${ac_default_prefix}/bin";
- else
- bindir="${prefix}/bin";
- fi
- fi
-fi
-
-if test "x${libdir}" = 'x${exec_prefix}/lib'; then
- if test "x${exec_prefix}" = "xNONE"; then
- if test "x${prefix}" = "xNONE"; then
- libdir="${ac_default_prefix}/lib";
- else
- libdir="${prefix}/lib";
- fi
- else
- if test "x${prefix}" = "xNONE"; then
- libdir="${ac_default_prefix}/lib";
- else
- libdir="${prefix}/lib";
- fi
- fi
-fi
-
-dnl Set PACKAGE_BIN_DIR in config.h.
-if test "x${bindir}" = 'xNONE'; then
- if test "x${prefix}" = "xNONE"; then
- AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin",
[Installation directory for user executables])
- else
- AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin", [Installation
directory for user executables])
- fi
-else
- AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}", [Installation directory for
user executables])
-fi
-
-dnl Set PACKAGE_LIB_DIR in config.h.
-if test "x${libdir}" = 'xNONE'; then
- if test "x${prefix}" = "xNONE"; then
- AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib",
[Installation directory for libraries])
- else
- AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib", [Installation
directory for libraries])
- fi
-else
- AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}", [Installation directory for
libraries])
-fi
-
-dnl Set PACKAGE_DATA_DIR in config.h.
-if test "x${prefix}" = "xNONE"; then
- AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR,
"${ac_default_prefix}/share/${PACKAGE}", [Shared Data Directory])
-else
- AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Shared
Data Directory])
-fi
-
-dnl Set PACKAGE_SOURCE_DIR in config.h.
-packagesrcdir=`cd $srcdir && pwd`
-AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source code
directory])
-
-
mmx=no
amd64=no
@@ -124,29 +55,29 @@
esac
dnl
-AC_ARG_ENABLE(mmx,
-[ --enable-mmx attempt compiling using x86 mmx assembly
@<:@default=auto@:>@],
-[
- if test x$enableval = xyes; then
- mmx=yes
- # Cannot compile with both options enabled
- amd64=no
- else
- mmx=no
- fi
-]
+AC_ARG_ENABLE([mmx],
+ [AC_HELP_STRING([--enable-mmx], [attempt compiling using x86 mmx assembly
@<:@default=auto@:>@])],
+ [
+ if test x$enableval = xyes; then
+ mmx=yes
+ # Cannot compile with both options enabled
+ amd64=no
+ else
+ mmx=no
+ fi
+ ]
)
-AC_ARG_ENABLE(amd64,
-[ --enable-amd64 attempt compiling using amd64 assembly
@<:@default=auto@:>@],
-[
- if test x$enableval = xyes; then
- amd64=yes
- mmx=no
- else
- amd64=no
- fi
-]
+AC_ARG_ENABLE([amd64],
+ [AC_HELP_STRING([--enable-amd64], [attempt compiling using amd64 assembly
@<:@default=auto@:>@])],
+ [
+ if test x$enableval = xyes; then
+ amd64=yes
+ mmx=no
+ else
+ amd64=no
+ fi
+ ]
)
AC_MSG_CHECKING(whether to enable x86 mmx support)
@@ -164,13 +95,15 @@
AM_CONDITIONAL(BUILD_AMD64, test x$amd64 = xyes)
# check for freetype
-AC_ARG_WITH(freetype-config, [ --with-freetype-config=FREETYPE_CONFIG use
freetype-config specified ],
-[ FREETYPE_CONFIG=$withval;
- echo "using "$FREETYPE_CONFIG" for freetype-config"; ],
-[ if test -z "$FREETYPE_CONFIG"; then
- AC_PATH_PROG(FREETYPE_CONFIG, "freetype-config", "", $PATH)
- fi
-])
+AC_ARG_WITH(freetype-config,
+ [AC_HELP_STRING([--with-freetype-config], [use freetype-config specified])],
+ [ FREETYPE_CONFIG=$withval;
+ echo "using "$FREETYPE_CONFIG" for freetype-config"; ],
+ [ if test -z "$FREETYPE_CONFIG"; then
+ AC_PATH_PROG(FREETYPE_CONFIG, "freetype-config", "", $PATH)
+ fi
+ ]
+)
freetype_cflags=`$FREETYPE_CONFIG --cflags`
freetype_libs=`$FREETYPE_CONFIG --libs`
@@ -213,15 +146,16 @@
AC_MSG_CHECKING(whether to enable jpeg support)
-AC_ARG_WITH(jpeg,
-[AC_HELP_STRING([--without-jpeg],[Disable JPEG image loader])],
-[
- if test "$withval" = no ; then
- jpeg_loader=no
- else
- jpeg_loader=yes
- fi
-],[ jpeg_loader=auto ]
+AC_ARG_WITH([jpeg],
+ [AC_HELP_STRING([--without-jpeg], [Disable JPEG image loader])],
+ [
+ if test "$withval" = no ; then
+ jpeg_loader=no
+ else
+ jpeg_loader=yes
+ fi
+ ],
+ [ jpeg_loader=auto ]
)
AC_MSG_RESULT($jpeg_loader)
@@ -260,15 +194,16 @@
AC_MSG_CHECKING(whether to enable png support)
-AC_ARG_WITH(png,
-[AC_HELP_STRING([--without-png],[Disable PNG image loader])],
-[
- if test "$withval" = no ; then
- png_loader=no
- else
- png_loader=yes
- fi
-],[ png_loader=auto ]
+AC_ARG_WITH([png],
+ [AC_HELP_STRING([--without-png], [Disable PNG image loader])],
+ [
+ if test "$withval" = no ; then
+ png_loader=no
+ else
+ png_loader=yes
+ fi
+ ],
+ [ png_loader=auto ]
)
AC_MSG_RESULT($png_loader)
@@ -286,15 +221,16 @@
AC_MSG_CHECKING(whether to enable tiff support)
-AC_ARG_WITH(tiff,
-[AC_HELP_STRING([--without-tiff],[Disable TIFF image loader])],
-[
- if test "$withval" = no ; then
- tiff_loader=no
- else
- tiff_loader=yes
- fi
-],[ tiff_loader=auto ]
+AC_ARG_WITH([tiff],
+ [AC_HELP_STRING([--without-tiff], [Disable TIFF image loader])],
+ [
+ if test "$withval" = no ; then
+ tiff_loader=no
+ else
+ tiff_loader=yes
+ fi
+ ],
+ [ tiff_loader=auto ]
)
AC_MSG_RESULT($tiff_loader)
@@ -343,19 +279,20 @@
AC_MSG_CHECKING(whether to enable gif support)
gif_lib=any
-AC_ARG_WITH(gif,
-[AC_HELP_STRING([--without-gif],[Disable GIF image loader])],
-[
- if test "$withval" = no ; then
- gif_loader=no
- else
- gif_loader=yes
- case "$withval" in
- giflib) gif_lib=giflib;;
- libungif) gif_lib=libungif;;
- esac
- fi
-],[ gif_loader=auto ]
+AC_ARG_WITH([gif],
+ [AC_HELP_STRING([--without-gif], [Disable GIF image loader])],
+ [
+ if test "$withval" = no ; then
+ gif_loader=no
+ else
+ gif_loader=yes
+ case "$withval" in
+ giflib) gif_lib=giflib;;
+ libungif) gif_lib=libungif;;
+ esac
+ fi
+ ],
+ [ gif_loader=auto ]
)
AC_MSG_RESULT($gif_loader)
@@ -425,15 +362,16 @@
AC_MSG_CHECKING(whether to enable zlib support)
-AC_ARG_WITH(zlib,
-[AC_HELP_STRING([--without-zlib],[Disable ZLIB loader])],
-[
- if test "$withval" = no ; then
- zlib_loader=no
- else
- zlib_loader=yes
- fi
-],[ zlib_loader=auto ]
+AC_ARG_WITH([zlib],
+ [AC_HELP_STRING([--without-zlib], [Disable ZLIB loader])],
+ [
+ if test "$withval" = no ; then
+ zlib_loader=no
+ else
+ zlib_loader=yes
+ fi
+ ],
+ [ zlib_loader=auto ]
)
AC_MSG_RESULT($zlib_loader)
@@ -472,15 +410,16 @@
AC_MSG_CHECKING(whether to enable bzip2 support)
-AC_ARG_WITH(bzip2,
-[AC_HELP_STRING([--without-bzip2],[Disable BZIP2 loader])],
-[
- if test "$withval" = no ; then
- bz2_loader=no
- else
- bz2_loader=yes
- fi
-],[ bz2_loader=auto ]
+AC_ARG_WITH([bzip2],
+ [AC_HELP_STRING([--without-bzip2], [Disable BZIP2 loader])],
+ [
+ if test "$withval" = no ; then
+ bz2_loader=no
+ else
+ bz2_loader=yes
+ fi
+ ],
+ [ bz2_loader=auto ]
)
AC_MSG_RESULT($bz2_loader)
@@ -519,15 +458,16 @@
AC_MSG_CHECKING(whether to enable id3 support)
-AC_ARG_WITH(id3,
-[AC_HELP_STRING([--without-id3],[Disable ID3 loader])],
-[
- if test "$withval" = no ; then
- id3_loader=no
- else
- id3_loader=yes
- fi
-],[ id3_loader=auto ]
+AC_ARG_WITH([id3],
+ [AC_HELP_STRING([--without-id3], [Disable ID3 loader])],
+ [
+ if test "$withval" = no ; then
+ id3_loader=no
+ else
+ id3_loader=yes
+ fi
+ ],
+ [ id3_loader=auto ]
)
AC_MSG_RESULT($id3_loader)
Index: src/bin/Makefile.am
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/bin/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- src/bin/Makefile.am 28 Jul 2005 04:15:11 -0000 1.2
+++ src/bin/Makefile.am 11 May 2008 07:38:15 -0000
@@ -3,6 +3,7 @@
INCLUDES = \
-I../lib \
-I$(top_srcdir)/src/lib \
+-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
@my_includes@
if BUILD_X11
Index: src/lib/Makefile.am
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/lib/Makefile.am,v
retrieving revision 1.14
diff -u -r1.14 Makefile.am
--- src/lib/Makefile.am 6 May 2007 13:44:57 -0000 1.14
+++ src/lib/Makefile.am 11 May 2008 07:38:15 -0000
@@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = 1.4 foreign
MAINTAINERCLEANFILES = Makefile.in
-INCLUDES = @my_includes@ -I. -I$(top_srcdir) -I$(top_builddir)
+INCLUDES = @my_includes@ -I. -I$(top_srcdir) -I$(top_builddir)
-DPACKAGE_LIB_DIR=\"$(libdir)\"
lib_LTLIBRARIES = libImlib2.la
include_HEADERS = Imlib2.h
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel