6 AC_INIT([GRAS],[0.7],[martin.quinson@ens-lyon.fr])
7 AC_CONFIG_SRCDIR([include/gras.h])
8 AC_CONFIG_HEADERS([src/gras_config.h])
10 AC_REVISION($Revision$)
15 # MACRO_DIR should tell aclocal to search for my macro. That's the autoconf
16 # maintainer plan, but automake does not implement this yet (as in 1.8)
17 AC_CONFIG_MACRO_DIR(acmacro)
18 # It seems to be called ACLOCAL_INCLUDE...
19 # A M_ACLOCAL_INCLUDE(acmacro)
26 # declare the modules (no optional module)
29 dnl Load anything under acmacro/*.m4
31 dnl test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
32 ACLOCAL="$ACLOCAL -I acmacro"
39 # Check architecture signature begin
41 # Check architecture signature end
42 GRAS_CHECK_STRUCT_COMPACTION
44 # Checks for header files.
46 AC_CHECK_HEADERS([stddef.h stdlib.h string.h unistd.h])
48 # Checks for typedefs, structures, and compiler characteristics.
53 # Checks for library functions.
55 dnl A C_CHECK_FUNCS([memset strchr strerror usleep])
57 # Can we rebuild the parsers?
58 # We really want flex and refuse other lex. So, the parser is portable and
59 # does not induce extra lib dependency
61 if test "$LEX" != flex; then
62 LEX="$SHELL $missing_dir/missing flex"
65 # Can we rebuild the documentation?
67 AC_SUBST([htmldir], ['${datadir}/doc/gras/html'])dnl
69 dnl ####[ Search libs ]#######################################################
70 ACI_PACKAGE([SimGrid],[the SimGrid simulator],[SG_init],[-lsimgrid],[simgrid.h],,:)
71 AM_CONDITIONAL(HAVE_SG,test x$HAVE_SimGrid = xyes)
73 dnl A C_CHECK_LIB(pthread, pthread_mutex_lock, LIBS="$LIBS -lpthread")
74 AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])
75 AC_CHECK_LIB(socket, connect, [LIBS="$LIBS -lsocket"])
77 dnl ####[ maint mode ]#######################################################
79 if test x$USE_MAINTAINER_MODE = xyes
81 # enable_iso_c=yes # Let's go funky
82 GNOME_COMPILE_WARNINGS(yes)
89 dnl ####[ check for some programms ]###########################################
90 AC_CHECK_PROG(BASH, bash, `which bash`, /bin/sh)
91 WARNING="This file is generated, do not edit"
94 dnl ####[ Makes the output ]###################################################
95 # examples/bandwidth/Makefile examples/bandwidth/test_sg
102 examples/ping/Makefile examples/ping/test_sg
104 tools/compile-remote-worker
107 testsuite/gras/trp_tcp_usage
108 testsuite/gras/trp_file_usage
110 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
111 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
112 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
113 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
114 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
115 # test -e examples/bandwidth/test_sg && chmod +x examples/bandwidth/test_sg;
116 chmod +x $srcdir/tools/gras-check-arch;
117 chmod +x $srcdir/examples/ping/test_rl
122 # examples/saturate/Makefile examples/saturate/test_sg
123 # examples/alnem/Makefile examples/alnem/test_sg
125 # examples/pastry/Makefile examples/pastry/test_sg
131 Configuration of package \`${PACKAGE}' on $gras_arch_name (=$gras_arch):