[w3m-dev 03808] fix autoconf
* acinclude.m4 (AC_W3M_GC): --with-gc takes PREFIX check include first (AC_W3M_CHECK_VER): show checking message (AC_W3M_IMAGE): if gdkpixbuf found, don't check imlib* From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,11 @@
|
|||||||
|
2003-03-12 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* [w3m-dev 03808] fix autoconf
|
||||||
|
* acinclude.m4 (AC_W3M_GC): --with-gc takes PREFIX
|
||||||
|
check include first
|
||||||
|
(AC_W3M_CHECK_VER): show checking message
|
||||||
|
(AC_W3M_IMAGE): if gdkpixbuf found, don't check imlib*
|
||||||
|
|
||||||
2003-03-11 Fumitoshi UKAI <ukai@debian.or.jp>
|
2003-03-11 Fumitoshi UKAI <ukai@debian.or.jp>
|
||||||
|
|
||||||
* Makefile.in (MODEL): delete @W3M_TARGET@
|
* Makefile.in (MODEL): delete @W3M_TARGET@
|
||||||
@@ -7444,4 +7452,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.783 2003/03/10 18:30:24 ukai Exp $
|
$Id: ChangeLog,v 1.784 2003/03/11 16:18:19 ukai Exp $
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -22,7 +22,7 @@ sysconfdir = ${prefix}/etc
|
|||||||
top_srcdir = .
|
top_srcdir = .
|
||||||
DESTDIR =
|
DESTDIR =
|
||||||
|
|
||||||
CFLAGS = $(OPTS) -g -O2 -I/usr/include/openssl $(DEFS)
|
CFLAGS = $(OPTS) -g -O2 -I/usr/include/gc -I/usr/include/openssl $(DEFS)
|
||||||
CPPFLAGS = -I/usr/include/gc -I/usr/include/gc
|
CPPFLAGS = -I/usr/include/gc -I/usr/include/gc
|
||||||
DEFS = -DHAVE_CONFIG_H -I. -I$(top_srcdir) -DAUXBIN_DIR=\"$(libexecdir)\" -DLIB_DIR=\"$(libdir)\" -DHELP_DIR=\"$(datadir)\" -DETC_DIR=\"$(sysconfdir)\"
|
DEFS = -DHAVE_CONFIG_H -I. -I$(top_srcdir) -DAUXBIN_DIR=\"$(libexecdir)\" -DLIB_DIR=\"$(libdir)\" -DHELP_DIR=\"$(datadir)\" -DETC_DIR=\"$(sysconfdir)\"
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
@@ -44,12 +44,12 @@ INSTALL_SCRIPT=${INSTALL_PROGRAM}
|
|||||||
INSTALL_DATA=${INSTALL} -m 644
|
INSTALL_DATA=${INSTALL} -m 644
|
||||||
INSTALL_W3MIMGDISPLAY=${INSTALL_PROGRAM}
|
INSTALL_W3MIMGDISPLAY=${INSTALL_PROGRAM}
|
||||||
|
|
||||||
HELP_FILE = w3mhelp-w3m_en.html
|
HELP_FILE = w3mhelp-w3m_ja.html
|
||||||
KEYBIND_SRC = keybind.c
|
KEYBIND_SRC = keybind.c
|
||||||
KEYBIND_OBJ = keybind.o
|
KEYBIND_OBJ = keybind.o
|
||||||
|
|
||||||
VERSION=0.4.1+cvs-1.782
|
VERSION=0.4.1+cvs-1.783
|
||||||
MODEL=i686-pc-linux-gnu-@W3M_MODEL@-EN
|
MODEL=i686-pc-linux-gnu-JA
|
||||||
|
|
||||||
SRCS=main.c file.c buffer.c display.c etc.c search.c linein.c table.c local.c \
|
SRCS=main.c file.c buffer.c display.c etc.c search.c linein.c table.c local.c \
|
||||||
form.c map.c frame.c rc.c menu.c mailcap.c image.c \
|
form.c map.c frame.c rc.c menu.c mailcap.c image.c \
|
||||||
|
|||||||
59
acinclude.m4
59
acinclude.m4
@@ -328,47 +328,49 @@ AC_DEFUN([AC_W3M_EXTLIBS],
|
|||||||
AC_DEFUN([AC_W3M_GC],
|
AC_DEFUN([AC_W3M_GC],
|
||||||
[AC_MSG_CHECKING(GC library exists)
|
[AC_MSG_CHECKING(GC library exists)
|
||||||
AC_ARG_WITH(gc,
|
AC_ARG_WITH(gc,
|
||||||
[ --with-gc=PATH libgc PATH],
|
[ --with-gc=PREFIX libgc PREFIX],
|
||||||
[test x$with_gc = xno && AC_MSG_ERROR([You can not build w3m without gc])],
|
[test x$with_gc = xno && AC_MSG_ERROR([You can not build w3m without gc])],
|
||||||
[with_gc=yes])
|
[with_gc=yes])
|
||||||
AC_MSG_RESULT($with_gc)
|
AC_MSG_RESULT($with_gc)
|
||||||
unset ac_cv_lib_gc_GC_version
|
|
||||||
AC_CHECK_LIB(gc, GC_version, [LIBS="$LIBS -lgc"])
|
|
||||||
if test x$ac_cv_lib_gc_GC_version = xno; then
|
|
||||||
AC_MSG_CHECKING(GC library location)
|
|
||||||
gc_libdir="$with_gc"
|
|
||||||
test x"$gc_libdir" = xyes && gc_libdir="/lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib"
|
|
||||||
gclibdir=no
|
|
||||||
for dir in $gc_libdir; do
|
|
||||||
ldflags="$LDFLAGS"
|
|
||||||
LDFLAGS="$LDFLAGS -L$dir"
|
|
||||||
AC_CHECK_LIB(gc, GC_version, [gclibdir=$dir; LIBS="$LIBS -L$dir -lgc"; break])
|
|
||||||
LDFLAGS="$ldflags"
|
|
||||||
unset ac_cv_gc_GC_version
|
|
||||||
done
|
|
||||||
if test x$gclibdir = xno; then
|
|
||||||
AC_MSG_ERROR([libgc not found])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
unset ac_cv_header_gc_h
|
unset ac_cv_header_gc_h
|
||||||
AC_CHECK_HEADER(gc.h)
|
AC_CHECK_HEADER(gc.h)
|
||||||
if test x$ac_cv_header_gc_h = xno; then
|
if test x$ac_cv_header_gc_h = xno; then
|
||||||
AC_MSG_CHECKING(GC header location)
|
AC_MSG_CHECKING(GC header location)
|
||||||
gc_includedir="$with_gc"
|
AC_MSG_RESULT()
|
||||||
test x"$gc_includedir" = xyes && gc_includedir="/usr/include /usr/include/gc /usr/local/include /usr/local/include/gc ${HOME}/include"
|
gc_includedir="$with_gc/include"
|
||||||
|
test x"$with_gc" = xyes && gc_includedir="/usr/include /usr/include/gc /usr/local/include /usr/local/include/gc ${HOME}/include"
|
||||||
gcincludedir=no
|
gcincludedir=no
|
||||||
unset ac_cv_header_gc_h
|
|
||||||
for dir in $gc_includedir; do
|
for dir in $gc_includedir; do
|
||||||
cppflags="$CPPFLAGS"
|
cppflags="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS -I$dir"
|
CPPFLAGS="$CPPFLAGS -I$dir"
|
||||||
AC_MSG_CHECKING($dir)
|
AC_MSG_CHECKING($dir)
|
||||||
AC_CHECK_HEADER(gc.h, [gcincludedir=$dir; CPPFLAGS="$CPPFLAGS -I$dir"; break])
|
|
||||||
CPPFLAGS="$cppflags"
|
|
||||||
unset ac_cv_header_gc_h
|
unset ac_cv_header_gc_h
|
||||||
|
AC_CHECK_HEADER(gc.h, [gcincludedir=$dir; CPPFLAGS="$CPPFLAGS -I$dir"; CFLAGS="$CFLAGS -I$dir"; break])
|
||||||
|
CPPFLAGS="$cppflags"
|
||||||
done
|
done
|
||||||
if test x$gcincludedir = xno; then
|
if test x$gcincludedir = xno; then
|
||||||
AC_MSG_ERROR([gc.h not found])
|
AC_MSG_ERROR([gc.h not found])
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
unset ac_cv_lib_gc_GC_version
|
||||||
|
AC_CHECK_LIB(gc, GC_version, [LIBS="$LIBS -lgc"])
|
||||||
|
if test x$ac_cv_lib_gc_GC_version = xno; then
|
||||||
|
AC_MSG_CHECKING(GC library location)
|
||||||
|
AC_MSG_RESULT()
|
||||||
|
gc_libdir="$with_gc/lib"
|
||||||
|
test x"$gc_libdir" = xyes && gc_libdir="/lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib"
|
||||||
|
gclibdir=no
|
||||||
|
for dir in $gc_libdir; do
|
||||||
|
ldflags="$LDFLAGS"
|
||||||
|
LDFLAGS="$LDFLAGS -L$dir"
|
||||||
|
AC_MSG_CHECKING($dir)
|
||||||
|
unset ac_cv_gc_GC_version
|
||||||
|
AC_CHECK_LIB(gc, GC_version, [gclibdir=$dir; LIBS="$LIBS -L$dir -lgc"; break])
|
||||||
|
LDFLAGS="$ldflags"
|
||||||
|
done
|
||||||
|
if test x$gclibdir = xno; then
|
||||||
|
AC_MSG_ERROR([libgc not found])
|
||||||
|
fi
|
||||||
fi])
|
fi])
|
||||||
#
|
#
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
@@ -438,16 +440,19 @@ AC_DEFUN([AC_W3M_ALARM],
|
|||||||
AC_DEFUN([AC_W3M_CHECK_VER],
|
AC_DEFUN([AC_W3M_CHECK_VER],
|
||||||
[version=$2
|
[version=$2
|
||||||
if test x$version != x; then
|
if test x$version != x; then
|
||||||
|
AC_MSG_CHECKING($1 version)
|
||||||
save_ifs="$IFS"; IFS="."
|
save_ifs="$IFS"; IFS="."
|
||||||
set -- $version
|
set -- $version
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
|
AC_MSG_RESULT($version)
|
||||||
if test "$[1]" -ne "$3" -o "$[2]" -lt "$4" -o "$[3]" -lt "$5"; then
|
if test "$[1]" -ne "$3" -o "$[2]" -lt "$4" -o "$[3]" -lt "$5"; then
|
||||||
AC_MSG_WARN([$1 is too old Install $1 (version >= $3.$4.$5)])
|
AC_MSG_WARN([$1 is too old. Install $1 (version >= $3.$4.$5)])
|
||||||
$7
|
$7
|
||||||
else
|
else
|
||||||
$6
|
$6
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
AC_MSG_WARN([$1 is not installed. Install $1 (version >= $3.$4.$5)])
|
||||||
$7
|
$7
|
||||||
fi])
|
fi])
|
||||||
#
|
#
|
||||||
@@ -513,7 +518,7 @@ AC_DEFUN([AC_W3M_IMAGE],
|
|||||||
[`$GDKPIXBUF_CONFIG --version 2>/dev/null`],
|
[`$GDKPIXBUF_CONFIG --version 2>/dev/null`],
|
||||||
0, 16, 0,
|
0, 16, 0,
|
||||||
[have_gdkpixbuf=yes],
|
[have_gdkpixbuf=yes],
|
||||||
[have_gdkpixbuf=no])
|
[have_gdkpixbuf=no
|
||||||
AC_W3M_CHECK_VER([Imlib],
|
AC_W3M_CHECK_VER([Imlib],
|
||||||
[`$IMLIB_CONFIG --version 2>/dev/null`],
|
[`$IMLIB_CONFIG --version 2>/dev/null`],
|
||||||
1, 9, 8,
|
1, 9, 8,
|
||||||
@@ -523,7 +528,7 @@ AC_DEFUN([AC_W3M_IMAGE],
|
|||||||
[`$IMLIB2_CONFIG --version 2>/dev/null`],
|
[`$IMLIB2_CONFIG --version 2>/dev/null`],
|
||||||
1, 0, 5,
|
1, 0, 5,
|
||||||
[have_imlib2=yes],
|
[have_imlib2=yes],
|
||||||
[have_imlib2=no])
|
[have_imlib2=no])])
|
||||||
if test x$x11 = xyes; then
|
if test x$x11 = xyes; then
|
||||||
if test x$have_gdkpixbuf = xyes; then
|
if test x$have_gdkpixbuf = xyes; then
|
||||||
AC_DEFINE(USE_W3MIMG_X11)
|
AC_DEFINE(USE_W3MIMG_X11)
|
||||||
|
|||||||
59
aclocal.m4
vendored
59
aclocal.m4
vendored
@@ -340,47 +340,49 @@ AC_DEFUN([AC_W3M_EXTLIBS],
|
|||||||
AC_DEFUN([AC_W3M_GC],
|
AC_DEFUN([AC_W3M_GC],
|
||||||
[AC_MSG_CHECKING(GC library exists)
|
[AC_MSG_CHECKING(GC library exists)
|
||||||
AC_ARG_WITH(gc,
|
AC_ARG_WITH(gc,
|
||||||
[ --with-gc=PATH libgc PATH],
|
[ --with-gc=PREFIX libgc PREFIX],
|
||||||
[test x$with_gc = xno && AC_MSG_ERROR([You can not build w3m without gc])],
|
[test x$with_gc = xno && AC_MSG_ERROR([You can not build w3m without gc])],
|
||||||
[with_gc=yes])
|
[with_gc=yes])
|
||||||
AC_MSG_RESULT($with_gc)
|
AC_MSG_RESULT($with_gc)
|
||||||
unset ac_cv_lib_gc_GC_version
|
|
||||||
AC_CHECK_LIB(gc, GC_version, [LIBS="$LIBS -lgc"])
|
|
||||||
if test x$ac_cv_lib_gc_GC_version = xno; then
|
|
||||||
AC_MSG_CHECKING(GC library location)
|
|
||||||
gc_libdir="$with_gc"
|
|
||||||
test x"$gc_libdir" = xyes && gc_libdir="/lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib"
|
|
||||||
gclibdir=no
|
|
||||||
for dir in $gc_libdir; do
|
|
||||||
ldflags="$LDFLAGS"
|
|
||||||
LDFLAGS="$LDFLAGS -L$dir"
|
|
||||||
AC_CHECK_LIB(gc, GC_version, [gclibdir=$dir; LIBS="$LIBS -L$dir -lgc"; break])
|
|
||||||
LDFLAGS="$ldflags"
|
|
||||||
unset ac_cv_gc_GC_version
|
|
||||||
done
|
|
||||||
if test x$gclibdir = xno; then
|
|
||||||
AC_MSG_ERROR([libgc not found])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
unset ac_cv_header_gc_h
|
unset ac_cv_header_gc_h
|
||||||
AC_CHECK_HEADER(gc.h)
|
AC_CHECK_HEADER(gc.h)
|
||||||
if test x$ac_cv_header_gc_h = xno; then
|
if test x$ac_cv_header_gc_h = xno; then
|
||||||
AC_MSG_CHECKING(GC header location)
|
AC_MSG_CHECKING(GC header location)
|
||||||
gc_includedir="$with_gc"
|
AC_MSG_RESULT()
|
||||||
test x"$gc_includedir" = xyes && gc_includedir="/usr/include /usr/include/gc /usr/local/include /usr/local/include/gc ${HOME}/include"
|
gc_includedir="$with_gc/include"
|
||||||
|
test x"$with_gc" = xyes && gc_includedir="/usr/include /usr/include/gc /usr/local/include /usr/local/include/gc ${HOME}/include"
|
||||||
gcincludedir=no
|
gcincludedir=no
|
||||||
unset ac_cv_header_gc_h
|
|
||||||
for dir in $gc_includedir; do
|
for dir in $gc_includedir; do
|
||||||
cppflags="$CPPFLAGS"
|
cppflags="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS -I$dir"
|
CPPFLAGS="$CPPFLAGS -I$dir"
|
||||||
AC_MSG_CHECKING($dir)
|
AC_MSG_CHECKING($dir)
|
||||||
AC_CHECK_HEADER(gc.h, [gcincludedir=$dir; CPPFLAGS="$CPPFLAGS -I$dir"; break])
|
|
||||||
CPPFLAGS="$cppflags"
|
|
||||||
unset ac_cv_header_gc_h
|
unset ac_cv_header_gc_h
|
||||||
|
AC_CHECK_HEADER(gc.h, [gcincludedir=$dir; CPPFLAGS="$CPPFLAGS -I$dir"; CFLAGS="$CFLAGS -I$dir"; break])
|
||||||
|
CPPFLAGS="$cppflags"
|
||||||
done
|
done
|
||||||
if test x$gcincludedir = xno; then
|
if test x$gcincludedir = xno; then
|
||||||
AC_MSG_ERROR([gc.h not found])
|
AC_MSG_ERROR([gc.h not found])
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
unset ac_cv_lib_gc_GC_version
|
||||||
|
AC_CHECK_LIB(gc, GC_version, [LIBS="$LIBS -lgc"])
|
||||||
|
if test x$ac_cv_lib_gc_GC_version = xno; then
|
||||||
|
AC_MSG_CHECKING(GC library location)
|
||||||
|
AC_MSG_RESULT()
|
||||||
|
gc_libdir="$with_gc/lib"
|
||||||
|
test x"$gc_libdir" = xyes && gc_libdir="/lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib"
|
||||||
|
gclibdir=no
|
||||||
|
for dir in $gc_libdir; do
|
||||||
|
ldflags="$LDFLAGS"
|
||||||
|
LDFLAGS="$LDFLAGS -L$dir"
|
||||||
|
AC_MSG_CHECKING($dir)
|
||||||
|
unset ac_cv_gc_GC_version
|
||||||
|
AC_CHECK_LIB(gc, GC_version, [gclibdir=$dir; LIBS="$LIBS -L$dir -lgc"; break])
|
||||||
|
LDFLAGS="$ldflags"
|
||||||
|
done
|
||||||
|
if test x$gclibdir = xno; then
|
||||||
|
AC_MSG_ERROR([libgc not found])
|
||||||
|
fi
|
||||||
fi])
|
fi])
|
||||||
#
|
#
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
@@ -450,16 +452,19 @@ AC_DEFUN([AC_W3M_ALARM],
|
|||||||
AC_DEFUN([AC_W3M_CHECK_VER],
|
AC_DEFUN([AC_W3M_CHECK_VER],
|
||||||
[version=$2
|
[version=$2
|
||||||
if test x$version != x; then
|
if test x$version != x; then
|
||||||
|
AC_MSG_CHECKING($1 version)
|
||||||
save_ifs="$IFS"; IFS="."
|
save_ifs="$IFS"; IFS="."
|
||||||
set -- $version
|
set -- $version
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
|
AC_MSG_RESULT($version)
|
||||||
if test "$[1]" -ne "$3" -o "$[2]" -lt "$4" -o "$[3]" -lt "$5"; then
|
if test "$[1]" -ne "$3" -o "$[2]" -lt "$4" -o "$[3]" -lt "$5"; then
|
||||||
AC_MSG_WARN([$1 is too old Install $1 (version >= $3.$4.$5)])
|
AC_MSG_WARN([$1 is too old. Install $1 (version >= $3.$4.$5)])
|
||||||
$7
|
$7
|
||||||
else
|
else
|
||||||
$6
|
$6
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
AC_MSG_WARN([$1 is not installed. Install $1 (version >= $3.$4.$5)])
|
||||||
$7
|
$7
|
||||||
fi])
|
fi])
|
||||||
#
|
#
|
||||||
@@ -525,7 +530,7 @@ AC_DEFUN([AC_W3M_IMAGE],
|
|||||||
[`$GDKPIXBUF_CONFIG --version 2>/dev/null`],
|
[`$GDKPIXBUF_CONFIG --version 2>/dev/null`],
|
||||||
0, 16, 0,
|
0, 16, 0,
|
||||||
[have_gdkpixbuf=yes],
|
[have_gdkpixbuf=yes],
|
||||||
[have_gdkpixbuf=no])
|
[have_gdkpixbuf=no
|
||||||
AC_W3M_CHECK_VER([Imlib],
|
AC_W3M_CHECK_VER([Imlib],
|
||||||
[`$IMLIB_CONFIG --version 2>/dev/null`],
|
[`$IMLIB_CONFIG --version 2>/dev/null`],
|
||||||
1, 9, 8,
|
1, 9, 8,
|
||||||
@@ -535,7 +540,7 @@ AC_DEFUN([AC_W3M_IMAGE],
|
|||||||
[`$IMLIB2_CONFIG --version 2>/dev/null`],
|
[`$IMLIB2_CONFIG --version 2>/dev/null`],
|
||||||
1, 0, 5,
|
1, 0, 5,
|
||||||
[have_imlib2=yes],
|
[have_imlib2=yes],
|
||||||
[have_imlib2=no])
|
[have_imlib2=no])])
|
||||||
if test x$x11 = xyes; then
|
if test x$x11 = xyes; then
|
||||||
if test x$have_gdkpixbuf = xyes; then
|
if test x$have_gdkpixbuf = xyes; then
|
||||||
AC_DEFINE(USE_W3MIMG_X11)
|
AC_DEFINE(USE_W3MIMG_X11)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
dnl w3m autoconf
|
dnl w3m autoconf
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(fm.h)
|
AC_INIT(fm.h)
|
||||||
|
W3M_LANG=${LC_ALL:-$LANG}
|
||||||
dnl AM_INIT_AUTOMAKE(w3m, 0.4)
|
dnl AM_INIT_AUTOMAKE(w3m, 0.4)
|
||||||
AC_CONFIG_HEADER(config.h)
|
AC_CONFIG_HEADER(config.h)
|
||||||
dnl Checks for programs.
|
dnl Checks for programs.
|
||||||
|
|||||||
Reference in New Issue
Block a user