version 1.75, 2001/12/20 14:59:25
|
version 1.76, 2002/01/07 15:46:57
|
Line 67 AC_PATH_PROG(SED, sed, /bin/sed, $PATH:/
|
Line 67 AC_PATH_PROG(SED, sed, /bin/sed, $PATH:/
|
AC_PATH_PROG(AR, ar, /usr/bin/ar, $PATH:/bin:/usr/bin:/usr/ucb/bin) |
AC_PATH_PROG(AR, ar, /usr/bin/ar, $PATH:/bin:/usr/bin:/usr/ucb/bin) |
AC_PATH_PROG(DIFF, diff, /usr/bin/diff, $PATH:/bin:/usr/bin:/usr/ucb/bin) |
AC_PATH_PROG(DIFF, diff, /usr/bin/diff, $PATH:/bin:/usr/bin:/usr/ucb/bin) |
|
|
AC_ARG_WITH(graphic-libs, [ --without-graphic-libs doesn't use provided libjpeg, libpng.]) |
|
if test "$withval" = "no" ; then |
|
dnl |
|
AC_MSG_CHECKING([for libjpeg version = 6b]) |
|
AC_EGREP_CPP([x 62 *x], |
|
[#include <jpeglib.h> |
|
x JPEG_LIB_VERSION x], |
|
dnl |
|
AC_MSG_RESULT([yes]) |
|
LIBJPEG='-ljpeg' |
|
MAKEJPEG=['#'], |
|
dnl |
|
AC_MSG_RESULT([no]) |
|
LIBJPEG='../libjpeg.a' dnl LIBJPEG goes into amaya/Makefile.in |
|
) |
|
dnl |
|
dnl |
|
AC_MSG_CHECKING([for libpng version = 1.0.x]) |
|
AC_EGREP_CPP([x \"1.0\..*\" *x], |
|
[#include <png.h> |
|
x PNG_LIBPNG_VER_STRING x], |
|
dnl |
|
AC_MSG_RESULT([yes]) |
|
LIBPNG='-lpng' |
|
LIBZ='' |
|
MAKEPNG=['#'], |
|
dnl |
|
AC_MSG_RESULT([no]) |
|
LIBPNG='../libpng.a' |
|
LIBZ='../libz.a' |
|
) |
|
else |
|
LIBJPEG='../libjpeg.a' |
|
LIBPNG='../libpng.a' |
|
LIBZ='../libz.a' |
|
fi |
|
dnl |
|
AC_SUBST(LIBJPEG) |
|
AC_SUBST(LIBPNG) |
|
AC_SUBST(LIBZ) |
|
AC_SUBST(MAKEJPEG) |
|
AC_SUBST(MAKEPNG) |
|
|
|
dnl |
dnl |
dnl Checks for libraries. |
dnl Checks for libraries. |
dnl |
dnl |
Line 285 GTK_LIBRARIES="`gtk-config --libs` -lgdk
|
Line 242 GTK_LIBRARIES="`gtk-config --libs` -lgdk
|
AC_SUBST(GTK_LIBRARIES) |
AC_SUBST(GTK_LIBRARIES) |
GTK_OPTIONS=-D_GTK |
GTK_OPTIONS=-D_GTK |
no_motif=yes |
no_motif=yes |
|
no_graphic=yes |
else |
else |
dnl |
dnl |
dnl Checking for Motif libraries and includes |
dnl Checking for Motif libraries and includes |
Line 465 dnl SPECIFIC STUFF : CONFIGURATION OP
|
Line 423 dnl SPECIFIC STUFF : CONFIGURATION OP
|
dnl |
dnl |
dnl *************************************************************** |
dnl *************************************************************** |
|
|
|
AC_ARG_WITH(graphic-libs, [ --without-graphic-libs doesn't use provided libjpeg, libpng.]) |
|
if test "$withval" = "no" ; then |
|
no_graphic = yes |
|
else |
|
no_graphic = |
|
fi |
|
|
|
if test "$no_graphic" = yes; then |
|
dnl |
|
AC_MSG_CHECKING([for libjpeg version = 6b]) |
|
AC_EGREP_CPP([x 62 *x], |
|
[#include <jpeglib.h> |
|
x JPEG_LIB_VERSION x], |
|
dnl |
|
AC_MSG_RESULT([yes]) |
|
LIBJPEG='-ljpeg' |
|
MAKEJPEG=['#'], |
|
dnl |
|
AC_MSG_RESULT([no]) |
|
LIBJPEG='../libjpeg.a' dnl LIBJPEG goes into amaya/Makefile.in |
|
) |
|
dnl |
|
dnl |
|
AC_MSG_CHECKING([for libpng version = 1.0.x]) |
|
AC_EGREP_CPP([x \"1.0\..*\" *x], |
|
[#include <png.h> |
|
x PNG_LIBPNG_VER_STRING x], |
|
dnl |
|
AC_MSG_RESULT([yes]) |
|
LIBPNG='-lpng' |
|
LIBZ='' |
|
MAKEPNG=['#'], |
|
dnl |
|
AC_MSG_RESULT([no]) |
|
LIBPNG='../libpng.a' |
|
LIBZ='../libz.a' |
|
) |
|
else |
|
LIBJPEG='../libjpeg.a' |
|
LIBPNG='../libpng.a' |
|
LIBZ='../libz.a' |
|
fi |
|
dnl |
|
AC_SUBST(LIBJPEG) |
|
AC_SUBST(LIBPNG) |
|
AC_SUBST(LIBZ) |
|
AC_SUBST(MAKEJPEG) |
|
AC_SUBST(MAKEPNG) |
|
|
AMAYA_VER="6.0" |
AMAYA_VER="6.0" |
|
|
dnl |
dnl |
Line 508 else
|
Line 515 else
|
fi |
fi |
fi |
fi |
|
|
|
|
dnl |
dnl |
dnl Check for additionnal packages |
dnl Check for additionnal packages |
dnl use AC_CONFIG_SUBDIRS to launch configure in the subdir |
dnl use AC_CONFIG_SUBDIRS to launch configure in the subdir |
dnl |
dnl |
AC_ARG_ENABLE(svg, [ --disable-svg remove SVG support ]) |
AC_ARG_WITH(i18n, [ --with-18n enable I18N support (experimental) ]) |
AC_ARG_ENABLE(annot, [ --disable-annot remove Annotations support ]) |
dnl |
AC_ARG_ENABLE(generic-xml, [ --disable-generic-xml remove Generic XML support ]) |
dnl I18N support disabled by default |
AC_ARG_ENABLE(annot-threads, [ --disable-annot-threads remove annotation threads ]) |
dnl |
AC_ARG_ENABLE(i18n, [ --with-18n enable I18N support (experimental) ]) |
if test "$with_i18n" = "yes" ; then |
AC_ARG_ENABLE(GL, [ --with-gl enable Opengl canvas (experimental) ]) |
I18N_OPTIONS=-D_I18N_ |
|
else |
|
with_i18n="no" |
|
I18N_OPTIONS="" |
|
fi |
|
|
|
AC_ARG_WITH(GL, [ --with-gl enable Opengl canvas (experimental) ]) |
dnl |
dnl |
dnl GL canvas is disabled by default |
dnl GL canvas is disabled by default |
dnl |
dnl |
Line 641 if test "$with_gl" = "yes" ; then
|
Line 651 if test "$with_gl" = "yes" ; then
|
AC_SUBST(GL_INCLUDES) |
AC_SUBST(GL_INCLUDES) |
AC_SUBST(GL_LIBRARIES) |
AC_SUBST(GL_LIBRARIES) |
fi |
fi |
|
|
|
AC_ARG_ENABLE(svg, [ --disable-svg remove SVG support ]) |
|
AC_ARG_ENABLE(annot, [ --disable-annot remove Annotations support ]) |
|
AC_ARG_ENABLE(generic-xml, [ --disable-generic-xml remove Generic XML support ]) |
|
AC_ARG_ENABLE(annot-threads, [ --disable-annot-threads remove annotation threads ]) |
|
|
dnl |
dnl |
dnl plugins support is disabled by default |
dnl plugins support is disabled by default |
dnl |
dnl |
Line 701 if test "$with_annot_threads" = "" ; the
|
Line 717 if test "$with_annot_threads" = "" ; the
|
fi |
fi |
fi |
fi |
|
|
dnl |
|
dnl I18N support disabled by default |
|
dnl |
|
if test "$with_i18n" = "" ; then |
|
if test "$enable_i18n" = "yes" ; then |
|
with_i18n="yes" |
|
I18N_OPTIONS=-D_I18N_ |
|
else |
|
with_i18n="no" |
|
I18N_OPTIONS="" |
|
fi |
|
fi |
|
|
|
if test "$build_amaya" = "yes" ; then |
if test "$build_amaya" = "yes" ; then |
if test ! -f $srcdir/../libwww/Makefile.in ; then |
if test ! -f $srcdir/../libwww/Makefile.in ; then |
AC_MSG_WARN(libwww sources not found !!) |
AC_MSG_WARN(libwww sources not found !!) |
Line 947 fi
|
Line 950 fi
|
|
|
if test "$no_motif" = yes ; then |
if test "$no_motif" = yes ; then |
echo "Amaya configured with GTK" |
echo "Amaya configured with GTK" |
|
echo "Amaya configured without static graphic libraries (libjpeg, libpng)" |
else |
else |
if test "$no_motif" = yes ; then |
if test "$no_motif" = yes ; then |
|
echo "Amaya configured without static graphic libraries (libjpeg, libpng)" |
|
fi |
|
if test "$no_motif" = yes ; then |
echo "Motif seems not installed on this machine" |
echo "Motif seems not installed on this machine" |
echo "Amaya need Motif 1.2 or 2.0" |
echo "Amaya need Motif 1.2 or 2.0" |
else |
else |