6 AC_INIT([GRAS],[0.0.4],[martin.quinson@ens-lyon.fr])
9 AC_CONFIG_SRCDIR([src/include/gras.h])
10 # MACRO_DIR should tell aclocal to search for my macro. That's the autoconf
11 # maintainer plan, but automake does not implement this yet (as in 1.8)
12 AC_CONFIG_MACRO_DIR(acmacro)
14 AC_REVISION($Revision$)
19 AC_CONFIG_HEADERS([src/gras_config.h])
24 # declare the modules (no optional module)
27 dnl Load anything under acmacro/*.m4
29 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
30 ACLOCAL="$ACLOCAL -I acmacro"
37 # Check architecture signature begin
39 # Check architecture signature end
40 GRAS_CHECK_STRUCT_COMPACTION
42 # Checks for header files.
44 AC_CHECK_HEADERS([stddef.h stdlib.h string.h unistd.h])
46 # Checks for typedefs, structures, and compiler characteristics.
51 # Checks for library functions.
54 AC_CHECK_FUNCS([memset strchr strerror usleep])
56 # Can we rebuild the parsers?
57 # We really want flex and refuse other lex. So, the parser is portable and
58 # does not induce extra lib dependency
60 if test "$LEX" != flex; then
61 LEX="$SHELL $missing_dir/missing flex"
64 # Can we rebuild the documentation?
67 dnl ####[ Search libs ]#######################################################
68 ACI_PACKAGE([SimGrid],[the SimGrid simulator],[SG_init],[-lsimgrid],[simgrid.h],,:)
69 AM_CONDITIONAL(HAVE_SG,test x$HAVE_SimGrid = xyes)
71 dnl A C_CHECK_LIB(pthread, pthread_mutex_lock, LIBS="$LIBS -lpthread")
72 AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])
73 AC_CHECK_LIB(socket, connect, [LIBS="$LIBS -lsocket"])
75 dnl ####[ maint mode ]#######################################################
77 if test x$USE_MAINTAINER_MODE = xyes
79 GNOME_COMPILE_WARNINGS(yes)
86 dnl ####[ check for some programms ]###########################################
87 AC_CHECK_PROG(BASH, bash, `which bash`, /bin/sh)
88 WARNING="This file is generated, do not edit"
91 dnl ####[ Makes the output ]###################################################
96 src/include/modules/Makefile
98 src/base/Tests/Makefile
99 src/base/Tests/run_tests
100 src/base/Tests/trp_tcp_usage
101 src/base/Tests/trp_file_usage
102 src/examples/Makefile
103 src/examples/ping/Makefile
105 tools/compile-remote-worker
106 ],[( cd src/include ; test -e gras || ln -s . gras )
107 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
108 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
109 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
110 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
111 chmod +x tools/gras-check-arch;
112 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg])
114 # src/examples/pastry/Makefile
115 # src/modules/Makefile
116 # src/examples/bandwidth/Makefile src/examples/saturate/Makefile
117 # src/examples/alnem/Makefile
123 Configuration of package \`${PACKAGE}' on $gras_arch_name (=$gras_arch):