6 AC_INIT([GRAS],[0.0.2],[martin.quinson@ens-lyon.fr])
7 AC_CONFIG_SRCDIR([src/include/gras.h])
8 AC_REVISION($Revision$)
9 dnl A C_CONFIG_SUBDIRS(src/nws_portability)
14 AM_CONFIG_HEADER(src/gras_config.h)
19 # declare the modules (no optional module)
22 dnl Load anything under acmacro/*.m4
24 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
25 ACLOCAL="$ACLOCAL -I acmacro"
32 # Check architecture signature begin
34 # Check architecture signature end
36 # Checks for header files.
38 AC_CHECK_HEADERS([stddef.h stdlib.h string.h unistd.h])
40 # Checks for typedefs, structures, and compiler characteristics.
45 # Checks for library functions.
48 AC_CHECK_FUNCS([memset strchr strerror usleep])
50 # Can we rebuild the documentation?
53 dnl ####[ Search libs ]#######################################################
54 dnl A CI_PACKAGE_SAVED(XML,[XML library (version XML2)],xml2-config,,,:)
55 ACI_PACKAGE([SimGrid],[the SimGrid simulator],[SG_init],[-lsimgrid],[simgrid.h],,:)
56 AM_CONDITIONAL(HAVE_SG,test x$HAVE_SimGrid = xyes)
58 dnl A C_CHECK_LIB(pthread, pthread_mutex_lock, LIBS="$LIBS -lpthread")
59 AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])
60 AC_CHECK_LIB(socket, connect, [LIBS="$LIBS -lsocket"])
62 dnl ####[ maint mode ]#######################################################
64 if test x$USE_MAINTAINER_MODE = xyes
66 GNOME_COMPILE_WARNINGS(yes)
73 dnl ####[ check for some programms ]###########################################
74 AC_CHECK_PROG(BASH, bash, `which bash`, /bin/sh)
75 WARNING="This file is generated, do not edit"
80 dnl ####[ Makes the output ]###################################################
85 src/include/modules/Makefile
87 src/base/Tests/Makefile
88 src/base/Tests/run_tests
89 src/base/Tests/trp_tcp_usage
90 src/base/Tests/trp_file_usage
92 src/examples/ping/Makefile
94 ],[( cd src/include ; test -e gras || ln -s . gras )
95 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
96 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
97 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
98 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg])
100 # src/modules/Makefile
101 # src/examples/bandwidth/Makefile src/examples/saturate/Makefile
102 # src/examples/alnem/Makefile
108 Configuration of package \`${PACKAGE}' on $gras_arch_name (=$gras_arch):