Cleanup. Added some missing quotes. Better structure and comments. Tried to

keep similar tests in one group.  Moved more complicated tests to
acinclude.m4. Added explicit test for build and host system type. When
checking for programs, used $EXEEXT (hopefully fixes OS/2 gettext
misdetection). Removed obsolete macros. Removed PTAL check. Used autoconf for
asm/io.h check.  Shortened --enable-foo output and formatted it
correctly. Translations were installed even if --disable-translations was
set. Don't test for msgcat anymore. Tell why translations aren't
installed. Used autoconf 2.5 syntax for AC_OUTPUT and AC_CONFIG_FILES. Make
sane-config executable. Print flags and installation directories near the end
of configure output.
DEVEL_2_0_BRANCH-1
Henning Geinitz 2002-12-04 17:48:10 +00:00
rodzic 249f649218
commit 414e0c509f
6 zmienionych plików z 3119 dodań i 3328 usunięć

Wyświetl plik

@ -3,6 +3,19 @@
* backend/epson_scsi.c backend/sm3600.c: Move config.h include to the
top of the include list to avoid compilation errors on platforms
not defining u_char. Added AIX lalloca check.
* aclocal.m4 acinclude.m4 configure configure.in
include/sane/config.h.in: Cleanup. Added some missing quotes. Better
structure and comments. Tried to keep similar tests in one group.
Moved more complicated tests to acinclude.m4. Added explicit test for
build and host system type. When checking for programs, used $EXEEXT
(hopefully fixes OS/2 gettext misdetection). Removed obsolete
macros. Removed PTAL check. Used autoconf for asm/io.h check.
Shortened --enable-foo output and formatted it correctly. Trans-
lations were installed even if --disable-translations was set. Don't
test for msgcat anymore. Tell why translations aren't installed. Used
autoconf 2.5 syntax for AC_OUTPUT and AC_CONFIG_FILES. Make
sane-config executable. Print flags and installation directories
near the end of configure output.
2002-12-04 Matthew Duggan <stauff1@users.sourceforge.net>
* backend/canon_pp-dev.c: Don't compare firmware version numbers -

Wyświetl plik

@ -1,8 +1,11 @@
dnl
dnl Contains the following macros
dnl SANE_SET_CFLAGS(is_release)
dnl SANE_CHECK_MISSING_HEADERS
dnl SANE_SET_LDFLAGS
dnl SANE_CHECK_DLL_LIB
dnl SANE_EXTRACT_LDFLAGS(LDFLAGS, LIBS)
dnl SANE_V4L_VERSION
dnl SANE_CHECK_PTAL
dnl SANE_CHECK_JPEG
dnl SANE_CHECK_IEEE1284
dnl JAPHAR_GREP_CFLAGS(flag, cmd_if_missing, cmd_if_present)
@ -12,13 +15,149 @@ dnl SANE_CHECK_GPHOTO2
dnl AC_PROG_LIBTOOL
dnl
# SANE_SET_CFLAGS(is_release)
# Set CFLAGS. Enable/disable compilation warnings if we gcc is used.
# Warnings are enabled by default when in development cycle but disabled
# when a release is made. The argument is_release is either yes or no.
AC_DEFUN([SANE_SET_CFLAGS],
[
if test "${ac_cv_c_compiler_gnu}" = "yes"; then
NORMAL_CFLAGS="\
-W \
-Wall"
WARN_CFLAGS="\
-W \
-Wall \
-Wcast-align \
-Wcast-qual \
-Wmissing-declarations \
-Wmissing-prototypes \
-Wpointer-arith \
-Wreturn-type \
-Wstrict-prototypes \
-pedantic"
# OS/2 and others don't include some headers with -ansi enabled
ANSI_FLAG=-ansi
case "${host_os}" in
solaris* | hpux* | os2* )
ANSI_FLAG=
;;
esac
WARN_CFLAGS="${WARN_CFLAGS} ${ANSI_FLAG}"
AC_ARG_ENABLE(warnings,
AC_HELP_STRING([--enable-warnings],
[turn on tons of compiler warnings (GCC only)]),
[
if eval "test x$enable_warnings = xyes"; then
for flag in $WARN_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
else
for flag in $NORMAL_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
fi
],
[if test x$1 = xno; then
# Warnings enabled by default (development)
for flag in $WARN_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
else
# Warnings disabled by default (release)
for flag in $NORMAL_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
fi])
fi # ac_cv_c_compiler_gnu
])
dnl SANE_CHECK_MISSING_HEADERS
dnl Do some sanity checks. It doesn't make sense to proceed if those headers
dnl aren't present.
AC_DEFUN([SANE_CHECK_MISSING_HEADERS],
[
MISSING_HEADERS=
if test "${ac_cv_header_fcntl_h}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"fcntl.h\" "
fi
if test "${ac_cv_header_sys_time_h}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"sys/time.h\" "
fi
if test "${ac_cv_header_unistd_h}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"unistd.h\" "
fi
if test "${ac_cv_header_stdc}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"ANSI C headers\" "
fi
if test "${MISSING_HEADERS}" != "" ; then
echo "*** The following essential header files couldn't be found:"
echo "*** ${MISSING_HEADERS}"
echo "*** Maybe the compiler isn't ANSI C compliant or not properly installed?"
echo "*** For details on what went wrong see config.log."
AC_MSG_ERROR([Exiting now.])
fi
])
# SANE_SET_LDFLAGS
# Add special LDFLAGS
AC_DEFUN([SANE_SET_LDFLAGS],
[
case "${host_os}" in
aix*) #enable .so libraries, disable archives
LDFLAGS="$LDFLAGS -Wl,-brtl"
;;
esac
])
# SANE_CHECK_DLL_LIB
# Find dll library
AC_DEFUN([SANE_CHECK_DLL_LIB],
[
dnl Checks for dll libraries: dl
if test "${enable_dynamic}" != "no"; then
AC_CHECK_HEADERS(dlfcn.h,
[AC_CHECK_LIB(dl,dlopen, DL_LIB=-ldl)
saved_LIBS="${LIBS}"
LIBS="${LIBS} ${DL_LIB}"
AC_CHECK_FUNCS(dlopen, enable_dynamic=yes,)
LIBS="${saved_LIBS}"
],)
# HP/UX DLL handling
AC_CHECK_HEADERS(dl.h,
[AC_CHECK_LIB(dld,shl_load, DL_LIB=-ldld)
saved_LIBS="${LIBS}"
LIBS="${LIBS} ${DL_LIB}"
AC_CHECK_FUNCS(shl_load, enable_dynamic=yes,)
LIBS="${saved_LIBS}"
],)
#Mac OS X/Darwin
AC_CHECK_HEADERS(mach-o/dyld.h,
[AC_CHECK_FUNCS(NSLinkModule, enable_dynamic=yes,)
LDFLAGS="$LDFLAGS -module"
DL_LIB=""
],)
fi
AC_SUBST(DL_LIB)
DYNAMIC_FLAG=
if test "${enable_dynamic}" = yes ; then
DYNAMIC_FLAG=-module
fi
AC_SUBST(DYNAMIC_FLAG)
])
#
# Separate LIBS from LDFLAGS to link correctly on HP/UX (and other
# platforms who care about the order of params to ld. It removes all
# non '-l..'-params from $2(LIBS), and appends them to $1(LDFLAGS)
#
# Use like this: SANE_EXTRACT_LDFLAGS(LDFLAGS, LIBS)
AC_DEFUN(SANE_EXTRACT_LDFLAGS,
AC_DEFUN([SANE_EXTRACT_LDFLAGS],
[tmp_LIBS=""
for param in ${$2}; do
case "${param}" in
@ -41,7 +180,7 @@ unset param
# depending on the detected version.
# Test by Petter Reinholdtsen <pere@td.org.uit.no>, 2000-07-07
#
AC_DEFUN(SANE_V4L_VERSION,
AC_DEFUN([SANE_V4L_VERSION],
[
AC_CHECK_HEADER(linux/videodev.h)
if test "${ac_cv_header_linux_videodev_h}" = "yes"
@ -59,47 +198,9 @@ AC_DEFUN(SANE_V4L_VERSION,
fi
])
#
# Checks for PTAL, needed for MFP support in HP backend.
AC_DEFUN(SANE_CHECK_PTAL,
[
PTAL_TMP_HAVE_PTAL=no
AC_ARG_WITH(ptal,
[ --with-ptal[=DIR] specify the top-level PTAL directory
[default=/usr/local]])
if test "$with_ptal" = "no" ; then
echo disabling PTAL
else
PTAL_OLD_CPPFLAGS=${CPPFLAGS}
PTAL_OLD_LDFLAGS=${LDFLAGS}
if test "$with_ptal" = "yes" ; then
with_ptal=/usr/local
fi
CPPFLAGS="${CPPFLAGS} -I$with_ptal/include"
LDFLAGS="${LDFLAGS} -L$with_ptal/lib"
AC_CHECK_HEADERS(ptal.h,
AC_CHECK_LIB(ptal,ptalInit,
AC_DEFINE(HAVE_PTAL, 1, [Is PTAL available?])
LDFLAGS="${LDFLAGS} -lptal"
PTAL_TMP_HAVE_PTAL=yes))
if test "${PTAL_TMP_HAVE_PTAL}" != "yes" ; then
CPPFLAGS=${PTAL_OLD_CPPFLAGS}
LDFLAGS=${PTAL_OLD_LDFLAGS}
fi
fi
unset PTAL_TMP_HAVE_PTAL
unset PTAL_OLD_CPPFLAGS
unset PTAL_OLD_LDFLAGS
])
#
# Checks for ieee1284 library, needed for canon_pp backend.
AC_DEFUN(SANE_CHECK_IEEE1284,
AC_DEFUN([SANE_CHECK_IEEE1284],
[
AC_CHECK_HEADER(ieee1284.h, [
AC_CACHE_CHECK([for libieee1284 >= 0.1.5], sane_cv_use_libieee1284, [
@ -117,7 +218,7 @@ AC_DEFUN(SANE_CHECK_IEEE1284,
#
# Checks for jpeg library >= v6B (61), needed for DC210, DC240, and
# GPHOTO2 backends.
AC_DEFUN(SANE_CHECK_JPEG,
AC_DEFUN([SANE_CHECK_JPEG],
[
AC_CHECK_LIB(jpeg,jpeg_start_decompress,
[
@ -141,7 +242,7 @@ dnl JAPHAR_GREP_CFLAGS(flag, cmd_if_missing, cmd_if_present)
dnl
dnl From Japhar. Report changes to japhar@hungry.com
dnl
AC_DEFUN(JAPHAR_GREP_CFLAGS,
AC_DEFUN([JAPHAR_GREP_CFLAGS],
[case "$CFLAGS" in
"$1" | "$1 "* | *" $1" | *" $1 "* )
ifelse($#, 3, [$3], [:])
@ -160,7 +261,7 @@ dnl LINKER_RPATH. Typical content will be '-Wl,-rpath,' or '-R '. If
dnl set, add '${LINKER_RPATH}${libdir}' to $LDFLAGS
dnl
AC_DEFUN(SANE_LINKER_RPATH,
AC_DEFUN([SANE_LINKER_RPATH],
[dnl AC_REQUIRE([AC_SUBST])dnl This line resulted in an empty AC_SUBST() !!
AC_CACHE_CHECK([linker parameter to set runtime link path], LINKER_RPATH,
[LINKER_RPATH=
@ -184,7 +285,7 @@ dnl Some of the following types seem to be defined only in sys/bitypes.h on
dnl some systems (e.g. Tru64 Unix). This is a problem for files that include
dnl sys/bitypes.h indirectly (e.g. net.c). If this is true, we add
dnl sys/bitypes.h to CPPFLAGS.
AC_DEFUN(SANE_CHECK_U_TYPES,
AC_DEFUN([SANE_CHECK_U_TYPES],
[if test "$ac_cv_header_sys_bitypes_h" = "yes" ; then
AC_MSG_CHECKING([for u_int8_t only in sys/bitypes.h])
AC_EGREP_CPP(u_int8_t,
@ -216,10 +317,11 @@ AC_CHECK_TYPE(u_long, unsigned long)
#
# Checks for gphoto2 libs, needed by gphoto2 backend
AC_DEFUN(SANE_CHECK_GPHOTO2,
AC_DEFUN([SANE_CHECK_GPHOTO2],
[
AC_ARG_WITH(gphoto2,
[ --with-gphoto2 Include the gphoto2 backend],
AC_HELP_STRING([--with-gphoto2],
[include the gphoto2 backend]),
[
if test "$with_gphoto2" = "no" ; then

286
aclocal.m4 vendored
Wyświetl plik

@ -12,9 +12,12 @@ dnl PARTICULAR PURPOSE.
dnl
dnl Contains the following macros
dnl SANE_SET_CFLAGS(is_release)
dnl SANE_CHECK_MISSING_HEADERS
dnl SANE_SET_LDFLAGS
dnl SANE_CHECK_DLL_LIB
dnl SANE_EXTRACT_LDFLAGS(LDFLAGS, LIBS)
dnl SANE_V4L_VERSION
dnl SANE_CHECK_PTAL
dnl SANE_CHECK_JPEG
dnl SANE_CHECK_IEEE1284
dnl JAPHAR_GREP_CFLAGS(flag, cmd_if_missing, cmd_if_present)
@ -24,13 +27,149 @@ dnl SANE_CHECK_GPHOTO2
dnl AC_PROG_LIBTOOL
dnl
# SANE_SET_CFLAGS(is_release)
# Set CFLAGS. Enable/disable compilation warnings if we gcc is used.
# Warnings are enabled by default when in development cycle but disabled
# when a release is made. The argument is_release is either yes or no.
AC_DEFUN([SANE_SET_CFLAGS],
[
if test "${ac_cv_c_compiler_gnu}" = "yes"; then
NORMAL_CFLAGS="\
-W \
-Wall"
WARN_CFLAGS="\
-W \
-Wall \
-Wcast-align \
-Wcast-qual \
-Wmissing-declarations \
-Wmissing-prototypes \
-Wpointer-arith \
-Wreturn-type \
-Wstrict-prototypes \
-pedantic"
# OS/2 and others don't include some headers with -ansi enabled
ANSI_FLAG=-ansi
case "${host_os}" in
solaris* | hpux* | os2* )
ANSI_FLAG=
;;
esac
WARN_CFLAGS="${WARN_CFLAGS} ${ANSI_FLAG}"
AC_ARG_ENABLE(warnings,
AC_HELP_STRING([--enable-warnings],
[turn on tons of compiler warnings (GCC only)]),
[
if eval "test x$enable_warnings = xyes"; then
for flag in $WARN_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
else
for flag in $NORMAL_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
fi
],
[if test x$1 = xno; then
# Warnings enabled by default (development)
for flag in $WARN_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
else
# Warnings disabled by default (release)
for flag in $NORMAL_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
fi])
fi # ac_cv_c_compiler_gnu
])
dnl SANE_CHECK_MISSING_HEADERS
dnl Do some sanity checks. It doesn't make sense to proceed if those headers
dnl aren't present.
AC_DEFUN([SANE_CHECK_MISSING_HEADERS],
[
MISSING_HEADERS=
if test "${ac_cv_header_fcntl_h}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"fcntl.h\" "
fi
if test "${ac_cv_header_sys_time_h}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"sys/time.h\" "
fi
if test "${ac_cv_header_unistd_h}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"unistd.h\" "
fi
if test "${ac_cv_header_stdc}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"ANSI C headers\" "
fi
if test "${MISSING_HEADERS}" != "" ; then
echo "*** The following essential header files couldn't be found:"
echo "*** ${MISSING_HEADERS}"
echo "*** Maybe the compiler isn't ANSI C compliant or not properly installed?"
echo "*** For details on what went wrong see config.log."
AC_MSG_ERROR([Exiting now.])
fi
])
# SANE_SET_LDFLAGS
# Add special LDFLAGS
AC_DEFUN([SANE_SET_LDFLAGS],
[
case "${host_os}" in
aix*) #enable .so libraries, disable archives
LDFLAGS="$LDFLAGS -Wl,-brtl"
;;
esac
])
# SANE_CHECK_DLL_LIB
# Find dll library
AC_DEFUN([SANE_CHECK_DLL_LIB],
[
dnl Checks for dll libraries: dl
if test "${enable_dynamic}" != "no"; then
AC_CHECK_HEADERS(dlfcn.h,
[AC_CHECK_LIB(dl,dlopen, DL_LIB=-ldl)
saved_LIBS="${LIBS}"
LIBS="${LIBS} ${DL_LIB}"
AC_CHECK_FUNCS(dlopen, enable_dynamic=yes,)
LIBS="${saved_LIBS}"
],)
# HP/UX DLL handling
AC_CHECK_HEADERS(dl.h,
[AC_CHECK_LIB(dld,shl_load, DL_LIB=-ldld)
saved_LIBS="${LIBS}"
LIBS="${LIBS} ${DL_LIB}"
AC_CHECK_FUNCS(shl_load, enable_dynamic=yes,)
LIBS="${saved_LIBS}"
],)
#Mac OS X/Darwin
AC_CHECK_HEADERS(mach-o/dyld.h,
[AC_CHECK_FUNCS(NSLinkModule, enable_dynamic=yes,)
LDFLAGS="$LDFLAGS -module"
DL_LIB=""
],)
fi
AC_SUBST(DL_LIB)
DYNAMIC_FLAG=
if test "${enable_dynamic}" = yes ; then
DYNAMIC_FLAG=-module
fi
AC_SUBST(DYNAMIC_FLAG)
])
#
# Separate LIBS from LDFLAGS to link correctly on HP/UX (and other
# platforms who care about the order of params to ld. It removes all
# non '-l..'-params from $2(LIBS), and appends them to $1(LDFLAGS)
#
# Use like this: SANE_EXTRACT_LDFLAGS(LDFLAGS, LIBS)
AC_DEFUN(SANE_EXTRACT_LDFLAGS,
AC_DEFUN([SANE_EXTRACT_LDFLAGS],
[tmp_LIBS=""
for param in ${$2}; do
case "${param}" in
@ -53,7 +192,7 @@ unset param
# depending on the detected version.
# Test by Petter Reinholdtsen <pere@td.org.uit.no>, 2000-07-07
#
AC_DEFUN(SANE_V4L_VERSION,
AC_DEFUN([SANE_V4L_VERSION],
[
AC_CHECK_HEADER(linux/videodev.h)
if test "${ac_cv_header_linux_videodev_h}" = "yes"
@ -71,47 +210,9 @@ AC_DEFUN(SANE_V4L_VERSION,
fi
])
#
# Checks for PTAL, needed for MFP support in HP backend.
AC_DEFUN(SANE_CHECK_PTAL,
[
PTAL_TMP_HAVE_PTAL=no
AC_ARG_WITH(ptal,
[ --with-ptal[=DIR] specify the top-level PTAL directory
[default=/usr/local]])
if test "$with_ptal" = "no" ; then
echo disabling PTAL
else
PTAL_OLD_CPPFLAGS=${CPPFLAGS}
PTAL_OLD_LDFLAGS=${LDFLAGS}
if test "$with_ptal" = "yes" ; then
with_ptal=/usr/local
fi
CPPFLAGS="${CPPFLAGS} -I$with_ptal/include"
LDFLAGS="${LDFLAGS} -L$with_ptal/lib"
AC_CHECK_HEADERS(ptal.h,
AC_CHECK_LIB(ptal,ptalInit,
AC_DEFINE(HAVE_PTAL, 1, [Is PTAL available?])
LDFLAGS="${LDFLAGS} -lptal"
PTAL_TMP_HAVE_PTAL=yes))
if test "${PTAL_TMP_HAVE_PTAL}" != "yes" ; then
CPPFLAGS=${PTAL_OLD_CPPFLAGS}
LDFLAGS=${PTAL_OLD_LDFLAGS}
fi
fi
unset PTAL_TMP_HAVE_PTAL
unset PTAL_OLD_CPPFLAGS
unset PTAL_OLD_LDFLAGS
])
#
# Checks for ieee1284 library, needed for canon_pp backend.
AC_DEFUN(SANE_CHECK_IEEE1284,
AC_DEFUN([SANE_CHECK_IEEE1284],
[
AC_CHECK_HEADER(ieee1284.h, [
AC_CACHE_CHECK([for libieee1284 >= 0.1.5], sane_cv_use_libieee1284, [
@ -129,7 +230,7 @@ AC_DEFUN(SANE_CHECK_IEEE1284,
#
# Checks for jpeg library >= v6B (61), needed for DC210, DC240, and
# GPHOTO2 backends.
AC_DEFUN(SANE_CHECK_JPEG,
AC_DEFUN([SANE_CHECK_JPEG],
[
AC_CHECK_LIB(jpeg,jpeg_start_decompress,
[
@ -153,7 +254,7 @@ dnl JAPHAR_GREP_CFLAGS(flag, cmd_if_missing, cmd_if_present)
dnl
dnl From Japhar. Report changes to japhar@hungry.com
dnl
AC_DEFUN(JAPHAR_GREP_CFLAGS,
AC_DEFUN([JAPHAR_GREP_CFLAGS],
[case "$CFLAGS" in
"$1" | "$1 "* | *" $1" | *" $1 "* )
ifelse($#, 3, [$3], [:])
@ -172,7 +273,7 @@ dnl LINKER_RPATH. Typical content will be '-Wl,-rpath,' or '-R '. If
dnl set, add '${LINKER_RPATH}${libdir}' to $LDFLAGS
dnl
AC_DEFUN(SANE_LINKER_RPATH,
AC_DEFUN([SANE_LINKER_RPATH],
[dnl AC_REQUIRE([AC_SUBST])dnl This line resulted in an empty AC_SUBST() !!
AC_CACHE_CHECK([linker parameter to set runtime link path], LINKER_RPATH,
[LINKER_RPATH=
@ -196,7 +297,7 @@ dnl Some of the following types seem to be defined only in sys/bitypes.h on
dnl some systems (e.g. Tru64 Unix). This is a problem for files that include
dnl sys/bitypes.h indirectly (e.g. net.c). If this is true, we add
dnl sys/bitypes.h to CPPFLAGS.
AC_DEFUN(SANE_CHECK_U_TYPES,
AC_DEFUN([SANE_CHECK_U_TYPES],
[if test "$ac_cv_header_sys_bitypes_h" = "yes" ; then
AC_MSG_CHECKING([for u_int8_t only in sys/bitypes.h])
AC_EGREP_CPP(u_int8_t,
@ -228,10 +329,11 @@ AC_CHECK_TYPE(u_long, unsigned long)
#
# Checks for gphoto2 libs, needed by gphoto2 backend
AC_DEFUN(SANE_CHECK_GPHOTO2,
AC_DEFUN([SANE_CHECK_GPHOTO2],
[
AC_ARG_WITH(gphoto2,
[ --with-gphoto2 Include the gphoto2 backend],
AC_HELP_STRING([--with-gphoto2],
[include the gphoto2 backend]),
[
if test "$with_gphoto2" = "no" ; then
@ -3767,91 +3869,3 @@ AC_DEFUN([AC_ISC_POSIX],
]
)
# serial 1
# @defmac AC_PROG_CC_STDC
# @maindex PROG_CC_STDC
# @ovindex CC
# If the C compiler in not in ANSI C mode by default, try to add an option
# to output variable @code{CC} to make it so. This macro tries various
# options that select ANSI C on some system or another. It considers the
# compiler to be in ANSI C mode if it handles function prototypes correctly.
#
# If you use this macro, you should check after calling it whether the C
# compiler has been set to accept ANSI C; if not, the shell variable
# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
# program @code{ansi2knr}, which comes with Ghostscript.
# @end defmac
AC_DEFUN([AM_PROG_CC_STDC],
[AC_REQUIRE([AC_PROG_CC])
AC_BEFORE([$0], [AC_C_INLINE])
AC_BEFORE([$0], [AC_C_CONST])
dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
dnl a magic option to avoid problems with ANSI preprocessor commands
dnl like #elif.
dnl FIXME: can't do this because then AC_AIX won't work due to a
dnl circular dependency.
dnl AC_BEFORE([$0], [AC_PROG_CPP])
AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
AC_CACHE_VAL(am_cv_prog_cc_stdc,
[am_cv_prog_cc_stdc=no
ac_save_CC="$CC"
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1
# HP-UX -Aa -D_HPUX_SOURCE
# SVR4 -Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
CC="$ac_save_CC $ac_arg"
AC_TRY_COMPILE(
[#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
char **p;
int i;
{
return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
char *s;
va_list v;
va_start (v,p);
s = g (p, va_arg (v,int));
va_end (v);
return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
], [
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
],
[am_cv_prog_cc_stdc="$ac_arg"; break])
done
CC="$ac_save_CC"
])
if test -z "$am_cv_prog_cc_stdc"; then
AC_MSG_RESULT([none needed])
else
AC_MSG_RESULT($am_cv_prog_cc_stdc)
fi
case "x$am_cv_prog_cc_stdc" in
x|xno) ;;
*) CC="$CC $am_cv_prog_cc_stdc" ;;
esac
])

5556
configure vendored

Plik diff jest za duży Load Diff

Wyświetl plik

@ -1,15 +1,19 @@
dnl Process this file with autoconf to produce a configure script. -*-m4-*-
AC_INIT(sane-backends, 1.0.9-cvs, sane-devel@mostang.com)
AC_CONFIG_HEADER(include/sane/config.h)
AC_PREREQ(2.50)dnl dnl Minimum Autoconf version required.
AC_ARG_PROGRAM
dnl ***********************************************************************
dnl When preparing a release, increase the numeric and string version numbers,
dnl remove the "-cvs" suffix, and set is_release=yes
AC_INIT([sane-backends],[1.0.9-cvs],[sane-devel@mostang.com])
V_MAJOR=1
V_MINOR=0
V_REV=9
AC_SUBST(V_MAJOR)
AC_SUBST(V_MINOR)
AC_SUBST(V_REV)
is_release=no
dnl ***********************************************************************
AC_CONFIG_HEADERS([include/sane/config.h])
AC_PREREQ(2.50)dnl dnl Minimum Autoconf version required.
AC_ARG_PROGRAM
PACKAGE=AC_PACKAGE_NAME
VERSION=AC_PACKAGE_VERSION
NUMBER_VERSION=${V_MAJOR}.${V_MINOR}.${V_REV}
@ -20,88 +24,76 @@ AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
AC_DEFINE_UNQUOTED(SANE_DLL_V_MAJOR, $V_MAJOR, [SANE DLL major number])
AC_DEFINE_UNQUOTED(SANE_DLL_V_MINOR, $V_MINOR, [SANE DLL minor number])
AC_DEFINE_UNQUOTED(SANE_DLL_V_BUILD, $V_REV, [SANE DLL revision number])
AC_SUBST(V_MAJOR)
AC_SUBST(V_MINOR)
AC_SUBST(V_REV)
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(NUMBER_VERSION)
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
dnl ***********************************************************************
dnl Checks for programs.
dnl ***********************************************************************
AC_PROG_CC
AC_PROG_LD
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
AC_PATH_PROG(SANE_CONFIG_PATH, sane-config, no)
AC_PATH_PROG(MSGFMT, msgfmt$EXEEXT, no)
AC_PATH_PROG(XGETTEXT, xgettext$EXEEXT, no)
AC_PATH_PROG(MSGMERGE, msgmerge$EXEEXT, no)
AC_SUBST(MSGFMT)
AC_SUBST(XGETTEXT)
AC_SUBST(MSGMERGE)
dnl ***********************************************************************
dnl set compiler/linker flags
dnl ***********************************************************************
INCLUDES="${INCLUDES} -I/usr/local/include"
AC_SUBST(INCLUDES)
SANE_SET_CFLAGS([$is_release])
SANE_SET_LDFLAGS
SANE_LINKER_RPATH
CPPFLAGS="${CPPFLAGS} -DPATH_SANE_CONFIG_DIR=\$(configdir) \
-DPATH_SANE_DATA_DIR=\$(datadir) \
-DV_MAJOR=${V_MAJOR} -DV_MINOR=${V_MINOR}"
dnl ***********************************************************************
dnl Checks for unix variants
dnl ***********************************************************************
AC_GNU_SOURCE
AC_AIX
AC_MINIX
AC_ISC_POSIX
AM_PROG_CC_STDC
AC_C_BIGENDIAN
INCLUDES="${INCLUDES} -I/usr/local/include"
CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
if test "${ac_cv_prog_gcc}" = "yes"; then
NORMAL_CFLAGS="\
-W \
-Wall"
WARN_CFLAGS="\
-W \
-Wall \
-Wcast-align \
-Wcast-qual \
-Wmissing-declarations \
-Wmissing-prototypes \
-Wpointer-arith \
-Wreturn-type \
-Wstrict-prototypes \
-pedantic"
# OS/2 and others don't include some headers with -ansi enabled
ANSI_FLAG=-ansi
AC_CHECK_HEADER(os2.h,[ANSI_FLAG=],)
case "${host_os}" in
solaris* | hpux*)
ANSI_FLAG=
;;
esac
WARN_CFLAGS="${WARN_CFLAGS} ${ANSI_FLAG}"
# Warnings enabled by default (development)
AC_ARG_ENABLE(warnings,
[ --enable-warnings turn on tons of compiler warnings (GCC only)
[default=yes]],
[
if eval "test x$enable_warnings = xyes"; then
for flag in $WARN_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
else
for flag in $NORMAL_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
fi
],
[if true; then # release (false) or development (true)
# Warnings enabled by default (development)
for flag in $WARN_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
else
# Warnings disabled by default (release)
for flag in $NORMAL_CFLAGS; do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
fi])
fi # ac_cv_prog_gcc
dnl special LDFLAGS
case "${host_os}" in
aix*) #enable .so libraries, disable archives
LDFLAGS="$LDFLAGS -Wl,-brtl"
;;
esac
dnl ***********************************************************************
dnl Checks for libraries
dnl ***********************************************************************
SANE_CHECK_DLL_LIB
dnl Checks for Backend libraries.
AC_CHECK_LIB(m,sqrt)
AC_CHECK_LIB(scsi, scsireq_enter) # FreeBSD needs this
AC_CHECK_LIB(cam, cam_open_device) # FreeBSD 3+ needs this
dnl IRIX sometimes has SYSVR3/4 network DSOs, but we do not need or want
dnl to use them!
if test "`uname`" != "IRIX" -a "`uname`" != "IRIX64"; then
AC_CHECK_LIB(nsl, gethostbyaddr)
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(syslog, syslog) # OS/2 needs this
fi
SANE_CHECK_JPEG
SANE_CHECK_IEEE1284
SANE_CHECK_GPHOTO2
dnl check sane to make sure we don't have two installations
AC_CHECK_LIB(sane, sane_init, LIBSANE_EXISTS="yes")
dnl ***********************************************************************
dnl Checks for header files.
dnl ***********************************************************************
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \
sys/time.h sys/shm.h \
@ -111,33 +103,13 @@ AC_CHECK_HEADERS(fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \
sys/types.h sys/scsi/scsi.h sys/scsi/sgdefs.h sys/scsi/targets/scgio.h \
apollo/scsi.h sys/sdi_comm.h sys/passthrudef.h linux/ppdev.h usb.h \
sys/bitypes.h sys/sem.h)
AC_CHECK_HEADERS([asm/io.h],,,[#include <sys/types.h>])
SANE_CHECK_MISSING_HEADERS
SANE_V4L_VERSION
dnl Do some sanity checks. It doesn't make sense to proceed if those headers
dnl aren't present.
MISSING_HEADERS=
if test "${ac_cv_header_fcntl_h}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"fcntl.h\" "
fi
if test "${ac_cv_header_sys_time_h}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"sys/time.h\" "
fi
if test "${ac_cv_header_unistd_h}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"unistd.h\" "
fi
if test "${ac_cv_header_stdc}" != "yes" ; then
MISSING_HEADERS="${MISSING_HEADERS}\"ANSI C headers\" "
fi
if test "${MISSING_HEADERS}" != "" ; then
echo "*** The following essential header files couldn't be found:"
echo "*** ${MISSING_HEADERS}"
echo "*** Maybe the compiler isn't ANSI C compliant or not properly installed?"
echo "*** For details on what went wrong see config.log."
AC_MSG_ERROR([Exiting now.])
fi
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
dnl ***********************************************************************
dnl Checks for types and structures
dnl ***********************************************************************
AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
AC_TYPE_PID_T
@ -150,19 +122,6 @@ have_long_long=no
AC_TRY_COMPILE([], [long long x; x = (long long)0;], AC_DEFINE(HAVE_LONG_LONG, 1, [Define if the long long type is available.]) have_long_long=yes)
AC_MSG_RESULT($have_long_long)
AC_CHECK_HEADER([asm/io.h],[
AC_MSG_CHECKING([whether asm/io.h can be included]);
AC_TRY_COMPILE([
#include <sys/types.h>
#include <asm/io.h>
],[outb (0, 0l)],
[AC_DEFINE(HAVE_ASM_IO_H, 1, [Define if you have the <asm/io.h> header file.]) AC_MSG_RESULT(yes)],AC_MSG_RESULT(no))],)
AC_MSG_CHECKING([for struct flock in fcntl.h])
AC_EGREP_HEADER([struct flock], fcntl.h, [AC_MSG_RESULT(yes) ;
AC_DEFINE(HAVE_STRUCT_FLOCK, 1,
[Define if struct flock is available.])], AC_MSG_RESULT(no))
if test "$ac_cv_header_sys_scsiio_h" = "yes" \
-a "$ac_cv_header_scsi_h" = "yes";
then
@ -203,47 +162,40 @@ AC_DEFINE(HAVE_SG_TARGET_STATUS,1,[Define if sg_header.target_status is
available.])],
AC_MSG_RESULT(no))
SANE_V4L_VERSION
AC_MSG_CHECKING([for struct flock in fcntl.h])
AC_EGREP_HEADER([struct flock], fcntl.h, [AC_MSG_RESULT(yes) ;
AC_DEFINE(HAVE_STRUCT_FLOCK, 1,
[Define if struct flock is available.])], AC_MSG_RESULT(no))
dnl Checks for dll libraries: dl
if test "${enable_dynamic}" != "no"; then
AC_CHECK_HEADERS(dlfcn.h,
[AC_CHECK_LIB(dl,dlopen, DL_LIB=-ldl)
saved_LIBS="${LIBS}"
LIBS="${LIBS} ${DL_LIB}"
AC_CHECK_FUNCS(dlopen, enable_dynamic=yes,)
LIBS="${saved_LIBS}"
],)
dnl ***********************************************************************
dnl Checks for compiler characteristics
dnl ***********************************************************************
AC_C_BIGENDIAN
AC_C_CONST
AC_C_INLINE
# HP/UX DLL handling
AC_CHECK_HEADERS(dl.h,
[AC_CHECK_LIB(dld,shl_load, DL_LIB=-ldld)
saved_LIBS="${LIBS}"
LIBS="${LIBS} ${DL_LIB}"
AC_CHECK_FUNCS(shl_load, enable_dynamic=yes,)
LIBS="${saved_LIBS}"
],)
#Mac OS X/Darwin
AC_CHECK_HEADERS(mach-o/dyld.h,
[AC_CHECK_FUNCS(NSLinkModule, enable_dynamic=yes,)
LDFLAGS="$LDFLAGS -module"
DL_LIB=""
],)
dnl ***********************************************************************
dnl Checks for library functions
dnl ***********************************************************************
AC_FUNC_ALLOCA
AC_FUNC_MMAP
AC_CHECK_FUNCS(atexit inet_addr inet_aton inet_ntoa ioperm mkdir \
scsireq_enter strftime strstr strtod \
cfmakeraw tcsendbreak strcasecmp strncasecmp _portaccess)
AC_REPLACE_FUNCS(getenv inet_ntop inet_pton isfdtype sigprocmask snprintf \
strdup strndup strsep usleep vsyslog)
if test "$ac_cv_header_os2_h" = "yes" ; then
AC_DEFINE(strncasecmp, strnicmp, [Define for OS/2 only])
AC_DEFINE(strcasecmp, stricmp, [Define for OS/2 only])
fi
AC_SUBST(DL_LIB)
DYNAMIC_FLAG=
if test "${enable_dynamic}" = yes ; then
DYNAMIC_FLAG=-module
dnl ***********************************************************************
dnl checks for system services
dnl ***********************************************************************
if test -c /dev/urandom ; then
AC_DEFINE(HAVE_DEV_URANDOM, 1, [Is /dev/urandom available?])
fi
AC_SUBST(DYNAMIC_FLAG)
dnl Checks for Backend libraries.
AC_CHECK_LIB(m,sqrt)
AC_CHECK_LIB(scsi, scsireq_enter) # FreeBSD needs this
AC_CHECK_LIB(cam, cam_open_device) # FreeBSD 3+ needs this
dnl we need both libusb header and a libusb providing usb_get_busses
if test "${ac_cv_header_usb_h}" = "yes" ; then
AC_CHECK_LIB(usb, usb_get_busses)
if test "${ac_cv_lib_usb_usb_get_busses}" = "yes" ; then
@ -251,56 +203,17 @@ if test "${ac_cv_header_usb_h}" = "yes" ; then
fi
fi
SANE_CHECK_JPEG
SANE_CHECK_IEEE1284
SANE_CHECK_GPHOTO2
dnl IRIX sometimes has SYSVR3/4 network DSOs, but we do not need or want
dnl to use them!
if test "`uname`" != "IRIX" -a "`uname`" != "IRIX64"; then
AC_CHECK_LIB(nsl,gethostbyaddr)
AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(syslog, syslog) # OS/2 needs this
fi
dnl Don't check for PTAL library anymore.
dnl Support for HP OfficeJets is now in the external "hpoj" backend.
dnl SANE_CHECK_PTAL
dnl look for /dev/urandom
if test -c /dev/urandom ; then
AC_DEFINE(HAVE_DEV_URANDOM, 1, [Is /dev/urandom available?])
fi
dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_MMAP
AC_CHECK_FUNCS(atexit inet_addr inet_aton inet_ntoa ioperm mkdir \
scsireq_enter strftime strstr strtod \
cfmakeraw tcsendbreak strcasecmp strncasecmp _portaccess)
AC_REPLACE_FUNCS(getenv inet_ntop inet_pton isfdtype sigprocmask snprintf \
strdup strndup strsep usleep vsyslog)
if test "$ac_cv_header_os2_h" = "yes" ; then
AC_DEFINE(strncasecmp,strnicmp,[Define for OS/2 only])
AC_DEFINE(strcasecmp,stricmp,[Define for OS/2 only])
fi
SANE_LINKER_RPATH
dnl ***********************************************************************
dnl initialize libtool
dnl ***********************************************************************
AC_LIBTOOL_WIN32_DLL
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_SUBST(INCLUDES)
CPPFLAGS="${CPPFLAGS} -DPATH_SANE_CONFIG_DIR=\$(configdir) \
-DPATH_SANE_DATA_DIR=\$(datadir) \
-DV_MAJOR=${V_MAJOR} -DV_MINOR=${V_MINOR}"
dnl ***********************************************************************
dnl enable/disable backends and features based on previous tests and user's
dnl choice
dnl ***********************************************************************
if test "${sane_cv_use_libjpeg}" != "yes"; then
echo "disabling DC210/DC240 backends (failed to find JPEG library)"
@ -414,26 +327,25 @@ fi
AC_SUBST(DLL_PRELOAD)
AC_ARG_ENABLE(pnm-backend,
[ --enable-pnm-backend enable the pnm backend for testing frontends. Warning:
This will be a security risk if used together with
saned. See PROBLEMS file for details. [default=no]],
AC_HELP_STRING([--enable-pnm-backend],
[enable the pnm backend for testing frontends (possible
security risk, see PROBLEMS file)]),
[PNM="pnm"], [PNM=""])
AC_SUBST(PNM)
AC_ARG_ENABLE(scsibuffersize,
[ --enable-scsibuffersize=N specify the default size (in bytes) of the buffer
for SCSI commands [default=131072]],
AC_HELP_STRING([--enable-scsibuffersize=N],
[specify the default size in bytes of the buffer for SCSI
commands [[default=131072]]]),
[set_scsibuffersize="$enableval"], [set_scsibuffersize=131072])
AC_DEFINE_UNQUOTED(SCSIBUFFERSIZE, $set_scsibuffersize,
[SCSI command buffer size])
echo "scsi buffersize: $set_scsibuffersize"
AC_ARG_ENABLE(scsi-directio,
[ --enable-scsi-directio enable SCSI direct IO (Linux only; can lead to crashes
with backends using shared memory). [default=no]
This option is in no way related to
--enable-parport-directio. See README.linux for more
information.],
AC_HELP_STRING([--enable-scsi-directio],
[enable SCSI direct IO (Linux only, dangerous, see
README.linux)]),
[
if eval "test x$enable_scsi_directio = xyes"; then
CFLAGS="$CFLAGS -DENABLE_SCSI_DIRECTIO"
@ -441,11 +353,9 @@ AC_ARG_ENABLE(scsi-directio,
])
AC_ARG_ENABLE(parport-directio,
[ --enable-parport-directio enable parallel port direct IO, the backend will
do direct hardware access to use parallel port, so
frontends will require special permission level.
[default=no] This option is in no way related to
--enable-scsi-directio],
AC_HELP_STRING([--enable-parport-directio],
[enable direct hardware access to the parallel port, so
frontends will require special permission level]),
[
if eval "test x$enable_parport_directio = xyes"; then
CFLAGS="$CFLAGS -DENABLE_PARPORT_DIRECTIO"
@ -453,9 +363,10 @@ AC_ARG_ENABLE(parport-directio,
])
AC_ARG_ENABLE(translations,
[ --disable-translations don't install translations of backend options],
AC_HELP_STRING([--disable-translations],
[don't install translations of backend options]),
[
if eval "test x$enable_translation = xno"; then
if eval "test x$enable_translations = xno"; then
INSTALL_TRANSLATIONS=
else
INSTALL_TRANSLATIONS=install-translations
@ -463,55 +374,55 @@ AC_ARG_ENABLE(translations,
],
INSTALL_TRANSLATIONS=install-translations
)
AC_SUBST(INSTALL_TRANSLATIONS)
if eval "test x$INSTALL_TRANSLATIONS = xinstall-translations" ; then
AC_PATH_PROG(MSGFMT, msgfmt, no)
AC_PATH_PROG(XGETTEXT, xgettext, no)
AC_PATH_PROG(MSGMERGE, msgmerge, no)
AC_PATH_PROG(MSGCAT, msgcat, no)
AC_SUBST(MSGFMT)
AC_SUBST(XGETTEXT)
AC_SUBST(MSGMERGE)
AC_SUBST(MSGCAT)
if test x$MSGFMT = xno || test x$XGETTEXT = xno || test $MSGMERGE = no ; then
INSTALL_TRANSLATIONS=
echo "disabling translations"
echo "disabling translations (missing msgfmt, xgettext or msgmerge)"
else
echo "enabling translations"
fi
else
echo "disabling translations"
fi
AC_SUBST(INSTALL_TRANSLATIONS)
AC_ARG_ENABLE(local-backends,
[ --disable-local-backends turns off compilation of all backends but net],
[
if eval "test x$enable_local_backends = xno"; then
SELECTED_BACKENDS="net"
fi
],
AC_HELP_STRING([--disable-local-backends],
[turn off compilation of all backends but net]),
[
if eval "test x$enable_local_backends = xno"; then
SELECTED_BACKENDS="net"
fi
],
,
)
AC_SUBST(SELECTED_BACKENDS)
AC_PATH_PROG(SANE_CONFIG_PATH, sane-config, no)
AC_CHECK_LIB(sane, sane_init, LIBSANE_EXISTS="yes")
dnl ***********************************************************************
dnl Write output files
dnl ***********************************************************************
DISTCLEAN_FILES="*~ .*~ *.log *.bak *.old *.orig *.out *.rej \"\#\"* \".\\#\"*"
AC_SUBST(DISTCLEAN_FILES)
AC_CONFIG_FILES([Makefile lib/Makefile sanei/Makefile frontend/Makefile
japi/Makefile backend/Makefile include/Makefile doc/Makefile
po/Makefile testsuite/Makefile tools/Makefile])
AC_CONFIG_FILES([tools/sane-desc.el])
AC_CONFIG_FILES([tools/sane-config], [chmod a+x tools/sane-config])
AC_OUTPUT
dnl ***********************************************************************
dnl print configuration information
dnl ***********************************************************************
echo "Variables used for compilation/linking:"
echo using CPPFLAGS=\"${CPPFLAGS}\"
echo using CFLAGS=\"${CFLAGS}\"
echo using LDFLAGS=\"${LDFLAGS}\"
echo using LIBS=\"${LIBS}\"
AC_OUTPUT([Makefile lib/Makefile sanei/Makefile frontend/Makefile
japi/Makefile backend/Makefile include/Makefile doc/Makefile
po/Makefile testsuite/Makefile
tools/sane-desc.el tools/Makefile tools/sane-config],)
echo "Installation directories:"
echo "Configuration: `eval eval echo ${sysconfdir}`"
echo "Libraries: `eval eval echo ${libdir}`"

Wyświetl plik

@ -18,7 +18,7 @@
/* Define to 1 if you have the <apollo/scsi.h> header file. */
#undef HAVE_APOLLO_SCSI_H
/* Define if you have the <asm/io.h> header file. */
/* Define to 1 if you have the <asm/io.h> header file. */
#undef HAVE_ASM_IO_H
/* Define to 1 if you have the `atexit' function. */
@ -114,6 +114,9 @@
/* Define if the long long type is available. */
#undef HAVE_LONG_LONG
/* Define to 1 if you have the <mach-o/dyld.h> header file. */
#undef HAVE_MACH_O_DYLD_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
@ -123,6 +126,9 @@
/* Define to 1 if you have a working `mmap' system call. */
#undef HAVE_MMAP
/* Define to 1 if you have the `NSLinkModule' function. */
#undef HAVE_NSLINKMODULE
/* Define to 1 if you have the <os2.h> header file. */
#undef HAVE_OS2_H
@ -337,6 +343,11 @@
# undef _ALL_SOURCE
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
/* Define to 1 if on MINIX. */
#undef _MINIX