20 |
dnl Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
dnl Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
21 |
dnl Boston, MA 02111-1307, USA. |
dnl Boston, MA 02111-1307, USA. |
22 |
|
|
23 |
AC_INIT(Makefile.in) |
AC_PREREQ(2.50) |
24 |
|
|
25 |
|
AC_INIT |
26 |
|
AC_CONFIG_SRCDIR([Makefile.in]) |
27 |
. $srcdir/GUILE-VERSION |
. $srcdir/GUILE-VERSION |
28 |
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) |
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) |
29 |
AM_MAINTAINER_MODE |
AM_MAINTAINER_MODE |
188 |
AC_DEFUN(GUILE_FUNC_DECLARED, [ |
AC_DEFUN(GUILE_FUNC_DECLARED, [ |
189 |
AC_CACHE_CHECK(for $1 declaration, guile_cv_func_$1_declared, |
AC_CACHE_CHECK(for $1 declaration, guile_cv_func_$1_declared, |
190 |
AC_EGREP_HEADER($1, $2, |
AC_EGREP_HEADER($1, $2, |
191 |
guile_cv_func_$1_declared=yes, |
guile_cv_func_$1_declared=yes, |
192 |
guile_cv_func_$1_declared=no)) |
guile_cv_func_$1_declared=no)) |
193 |
if test [x$guile_cv_func_]$1[_declared] = xno; then |
if test [x$guile_cv_func_]$1[_declared] = xno; then |
194 |
AC_DEFINE([MISSING_]translit($1, [a-z], [A-Z])[_DECL]) |
AC_DEFINE([MISSING_]translit($1, [a-z], [A-Z])[_DECL]) |
237 |
dnl cp confdefs.h confdefs.h.bak |
dnl cp confdefs.h confdefs.h.bak |
238 |
dnl for func in gethostent sethostent endhostent getnetent setnetent endnetent getprotoent setprotoent endprotoent getservent setservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof hstrerror; do |
dnl for func in gethostent sethostent endhostent getnetent setnetent endnetent getprotoent setprotoent endprotoent getservent setservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof hstrerror; do |
239 |
dnl cp confdefs.h.bak confdefs.h |
dnl cp confdefs.h.bak confdefs.h |
240 |
dnl cat >> confdefs.h << EOF |
dnl cat >> confdefs.h << EOF |
241 |
dnl #ifdef __CYGWIN32__ |
dnl #ifdef __CYGWIN32__ |
242 |
dnl #define $func cygwin32_$func |
dnl #define $func cygwin32_$func |
243 |
dnl #endif |
dnl #endif |
339 |
AC_FUNC_ALLOCA |
AC_FUNC_ALLOCA |
340 |
if test "$ALLOCA" = "alloca.o"; then LIBOBJS="alloca.o $LIBOBJS"; fi |
if test "$ALLOCA" = "alloca.o"; then LIBOBJS="alloca.o $LIBOBJS"; fi |
341 |
|
|
342 |
AC_STRUCT_ST_RDEV |
AC_CHECK_MEMBERS([struct stat.st_rdev]) |
343 |
AC_STRUCT_ST_BLKSIZE |
AC_CHECK_MEMBERS([struct stat.st_blksize]) |
344 |
|
|
345 |
# We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to |
AC_STRUCT_ST_BLOCKS |
|
# LIBOBJS, which we don't need. This seems more direct. |
|
|
AC_CACHE_CHECK([for st_blocks in struct stat], ac_cv_struct_st_blocks, |
|
|
[AC_TRY_COMPILE([#include <sys/types.h> |
|
|
#include <sys/stat.h>], [struct stat s; s.st_blocks;], |
|
|
ac_cv_struct_st_blocks=yes, ac_cv_struct_st_blocks=no)]) |
|
|
if test $ac_cv_struct_st_blocks = yes; then |
|
|
AC_DEFINE(HAVE_ST_BLOCKS) |
|
|
fi |
|
346 |
|
|
347 |
AC_CACHE_CHECK([for S_ISLNK in sys/stat.h], ac_cv_macro_S_ISLNK, |
AC_CACHE_CHECK([for S_ISLNK in sys/stat.h], ac_cv_macro_S_ISLNK, |
348 |
[AC_TRY_CPP([#include <sys/stat.h> |
[AC_TRY_CPP([#include <sys/stat.h> |
366 |
|
|
367 |
AC_TRY_RUN(aux (l) unsigned long l; |
AC_TRY_RUN(aux (l) unsigned long l; |
368 |
{ int x; exit (l >= ((unsigned long)&x)); } |
{ int x; exit (l >= ((unsigned long)&x)); } |
369 |
main () { int q; aux((unsigned long)&q); }, |
main () { int q; aux((unsigned long)&q); }, |
370 |
AC_DEFINE(SCM_STACK_GROWS_UP),,AC_MSG_WARN(Guessing that stack grows down -- see scmconfig.h.in)) |
AC_DEFINE(SCM_STACK_GROWS_UP),,AC_MSG_WARN(Guessing that stack grows down -- see scmconfig.h.in)) |
371 |
|
|
372 |
AC_CACHE_CHECK([whether floats fit in longs], guile_cv_type_float_fits_long, |
AC_CACHE_CHECK([whether floats fit in longs], guile_cv_type_float_fits_long, |
517 |
AC_SUBST(LIBLOBJS) |
AC_SUBST(LIBLOBJS) |
518 |
AC_SUBST(EXTRA_DOT_DOC_FILES) |
AC_SUBST(EXTRA_DOT_DOC_FILES) |
519 |
|
|
520 |
AC_OUTPUT([Makefile libguile/Makefile libguile/guile-snarf libguile/guile-doc-snarf libguile/guile-func-name-check libguile/guile-snarf.awk libguile/versiondat.h ice-9/Makefile qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile], [chmod +x libguile/guile-snarf libguile/guile-doc-snarf libguile/guile-func-name-check]) |
AC_CONFIG_FILES([ |
521 |
|
Makefile |
522 |
|
libguile/Makefile |
523 |
|
libguile/guile-snarf |
524 |
|
libguile/guile-doc-snarf |
525 |
|
libguile/guile-func-name-check |
526 |
|
libguile/guile-snarf.awk |
527 |
|
libguile/versiondat.h |
528 |
|
ice-9/Makefile |
529 |
|
qt/Makefile |
530 |
|
qt/qt.h |
531 |
|
qt/md/Makefile |
532 |
|
qt/time/Makefile |
533 |
|
guile-config/Makefile |
534 |
|
doc/Makefile |
535 |
|
test-suite/Makefile |
536 |
|
check-guile |
537 |
|
]) |
538 |
|
|
539 |
|
AC_CONFIG_COMMANDS(default,[ |
540 |
|
chmod +x libguile/guile-snarf \ |
541 |
|
libguile/guile-doc-snarf \ |
542 |
|
libguile/guile-func-name-check \ |
543 |
|
check-guile |
544 |
|
]) |
545 |
|
|
546 |
|
AC_OUTPUT |
547 |
|
|
548 |
|
|
549 |
dnl Local Variables: |
dnl Local Variables: |
550 |
dnl comment-start: "dnl " |
dnl comment-start: "dnl " |