version 1.16, 2010/04/07 07:16:10
|
version 1.20, 2010/04/21 13:45:07
|
Line 1
|
Line 1
|
dnl Process this file with autoconf to produce a configure script. |
dnl Process this file with autoconf to produce a configure script. |
AC_INIT([rpl],[4.0.13]) |
AC_INIT([rpl],[4.0.15]) |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AM_INIT_AUTOMAKE |
AM_INIT_AUTOMAKE |
Line 245 fi
|
Line 245 fi
|
if test ! -d "$srcdir"/tools/$FILE; then |
if test ! -d "$srcdir"/tools/$FILE; then |
gunzip -c "$srcdir"/tools/$FILE.tar.gz | \ |
gunzip -c "$srcdir"/tools/$FILE.tar.gz | \ |
(cd "$srcdir/tools" && tar -xf - ) |
(cd "$srcdir/tools" && tar -xf - ) |
TMP=$(mktemp) |
|
(cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1) |
(cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1) |
sed 's/libmagic/librplfile/g' "$srcdir"/tools/$FILE/src/Makefile.am > $TMP |
|
sed 's/^bin_PROGRAMS = file/bin_PROGRAMS = rplfile/g' $TMP | \ |
|
sed 's/^file_/rplfile_/g' > \ |
|
"$srcdir"/tools/$FILE/src/Makefile.am |
|
sed 's/file$/rplfile/g' "$srcdir"/tools/$FILE/magic/Makefile.am > $TMP |
|
\mv -f $TMP "$srcdir"/tools/$FILE/magic/Makefile.am |
|
(cd "$srcdir"/tools/$FILE && libtoolize --copy --force \ |
|
&& aclocal && automake -af && autoconf); |
|
fi |
fi |
if test ! -d "$srcdir"/tools/$ICONV; then |
if test ! -d "$srcdir"/tools/$ICONV; then |
gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \ |
gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \ |
Line 269 if test ! -d tools/$OPENSSL; then
|
Line 260 if test ! -d tools/$OPENSSL; then
|
(cd tools && tar -xf -) |
(cd tools && tar -xf -) |
fi |
fi |
|
|
AC_CHECK_PROG(LIBTOOLIZE, libtoolize, yes, no) |
|
if test "$LIBTOOLIZE" = "no"; then |
|
AC_MSG_ERROR([Cannot find libtoolize! You have to install it.]) |
|
fi |
|
|
|
AC_CHECK_PROG(ACLOCAL, aclocal, yes, no) |
|
if test "$ACLOCAL" = "no"; then |
|
AC_MSG_ERROR([Cannot find aclocal! You have to install it.]) |
|
fi |
|
|
|
AC_CHECK_PROG(AUTOMAKE, automake, yes, no) |
|
if test "$AUTOMAKE" = "no"; then |
|
AC_MSG_ERROR([Cannot find automake! You have to install it.]) |
|
fi |
|
|
|
AC_CHECK_PROG(AUTOCONF, autoconf, yes, no) |
|
if test "$AUTOCONF" = "no"; then |
|
AC_MSG_ERROR([Cannot find autoconf! You have to install it.]) |
|
fi |
|
|
|
dnl Default installation directory |
dnl Default installation directory |
AC_PREFIX_DEFAULT(/usr/local) |
AC_PREFIX_DEFAULT(/usr/local) |
|
|
Line 762 AC_FUNC_VPRINTF
|
Line 733 AC_FUNC_VPRINTF
|
AC_CHECK_FUNCS(ftime getcwd putenv select strcspn strdup \ |
AC_CHECK_FUNCS(ftime getcwd putenv select strcspn strdup \ |
strerror strspn strstr strtod) |
strerror strspn strstr strtod) |
|
|
|
ac_configure_args="$ac_configure_args --with-readline=builtin --disable-shared --enable-static" |
|
|
AC_CONFIG_SUBDIRS(tools/$NCURSES) |
AC_CONFIG_SUBDIRS(tools/$NCURSES) |
AC_CONFIG_SUBDIRS(tools/$READLINE) |
AC_CONFIG_SUBDIRS(tools/$READLINE) |
AC_CONFIG_SUBDIRS(tools/$UNITS) |
|
AC_CONFIG_SUBDIRS(tools/$GSL) |
AC_CONFIG_SUBDIRS(tools/$GSL) |
AC_CONFIG_SUBDIRS(tools/$GPP) |
AC_CONFIG_SUBDIRS(tools/$GPP) |
AC_CONFIG_SUBDIRS(tools/$FILE) |
AC_CONFIG_SUBDIRS(tools/$FILE) |
AC_CONFIG_SUBDIRS(tools/$ICONV) |
AC_CONFIG_SUBDIRS(tools/$ICONV) |
AC_CONFIG_SUBDIRS(tools/$SQLITE) |
AC_CONFIG_SUBDIRS(tools/$SQLITE) |
|
AC_CONFIG_SUBDIRS(tools/$UNITS) |
|
|
dnl Check for OpenSSL os/comp |
dnl Check for OpenSSL os/comp |
AC_ARG_WITH(openssl_arch, |
AC_ARG_WITH(openssl_arch, |
Line 860 else
|
Line 833 else
|
LIBMTMALLOC= |
LIBMTMALLOC= |
fi |
fi |
|
|
|
case $(OS) in |
|
|
|
Darwin) |
|
EXPORT_DYNAMIC=-flat_namespace |
|
NESTED_FUNCTIONS=-fnested-functions |
|
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES |
|
break ;; |
|
|
|
Cygwin) |
|
EXPORT_DYNAMIC=--export-all-symbols |
|
NESTED_FUNCTIONS= |
|
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
break ;; |
|
|
|
AIX) |
|
EXPORT_DYNAMIC=--export-dynamic |
|
NESTED_FUNCTIONS= |
|
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES |
|
break ;; |
|
|
|
*) |
|
EXPORT_DYNAMIC=--export-dynamic |
|
NESTED_FUNCTIONS= |
|
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
break ;; |
|
|
|
esac |
|
|
AC_SUBST(LIBMTMALLOC) |
AC_SUBST(LIBMTMALLOC) |
|
AC_SUBST(EXPORT_DYNAMIC) |
|
AC_SUBST(NESTED_FUNCTIONS) |
|
AC_SUBST(SEMAPHORES_NOMMES) |
|
|
AC_SUBST(NCURSES) |
AC_SUBST(NCURSES) |
AC_SUBST(READLINE) |
AC_SUBST(READLINE) |