#! /bin/sh
-# From configure.ac Revision: 1.166 .
+# From configure.ac Revision: 1.175 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
#
PTH_STACK_GROWTH
pth_skaddr_makecontext
pth_sksize_makecontext
-GTNETS_CFLAGS
-GTNETS_LDFLAGS
-USE_GTNETS_TRUE
-USE_GTNETS_FALSE
+HAVE_GTNETS_TRUE
+HAVE_GTNETS_FALSE
HAVE_SDP_TRUE
HAVE_SDP_FALSE
SIMGRID_DEP
--disable-compile-optimizations
use compiler optimizations (default=yes, unless if
CFLAGS is explicitly set)
+ --disable-java To not compile the Java bindings even if the tools
+ are found
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
--with-gtnets Path to GTNetS installation (default to empty, ie
not using GTNetS)
+ --with-csdp Path to csdp installation (default to empty, i.e.
+ not using csdp)
Some influential environment variables:
CC C compiler command
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 4589 "configure"' > conftest.$ac_ext
+ echo '#line 4591 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7351: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7353: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:7355: \$? = $ac_status" >&5
+ echo "$as_me:7357: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7619: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7621: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:7623: \$? = $ac_status" >&5
+ echo "$as_me:7625: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7723: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7725: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:7727: \$? = $ac_status" >&5
+ echo "$as_me:7729: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 10020 "configure"
+#line 10022 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 10120 "configure"
+#line 10122 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:12456: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:12458: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:12460: \$? = $ac_status" >&5
+ echo "$as_me:12462: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:12560: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:12562: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:12564: \$? = $ac_status" >&5
+ echo "$as_me:12566: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14121: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14123: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:14125: \$? = $ac_status" >&5
+ echo "$as_me:14127: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14227: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:14229: \$? = $ac_status" >&5
+ echo "$as_me:14231: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16412: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16414: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:16416: \$? = $ac_status" >&5
+ echo "$as_me:16418: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16680: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16682: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:16684: \$? = $ac_status" >&5
+ echo "$as_me:16686: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16784: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16786: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:16788: \$? = $ac_status" >&5
+ echo "$as_me:16790: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
SIMGRID_DEP=""
GRAS_DEP=""
+if test xpthread=xyes ; then
+ # if the pthreads are usable
+ if test "x$with_context" = "xpthread" ; then
+ # if we use them to implement the xbt_context
+ SIMGRID_DEP="-lpthread"
+ fi
+ # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
+ if test "x$with_context" != "xwindows" ; then
+ GRAS_DEP="-lpthread"
+ fi
+fi
+
+
#########################################
## Build optional modules (gtnets)
##
+gtnets=no
# Check whether --with-gtnets was given.
if test "${with_gtnets+set}" = set; then
withval=$with_gtnets; gtnets_path="$withval"
else
- gtnets_path="NO"
+ gtnets_path="no"
fi
-if test "x$gtnets_path" = "xNO" ; then
+if test "x$gtnets_path" = "xno" ; then
{ echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
else
- { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
-echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
+ { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
+echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
+ { echo "$as_me:$LINENO: checking for gtnets" >&5
+echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-cat >>confdefs.h <<\_ACEOF
-#define USE_GTNETS 1
+ GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
+ GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
+ LDFLAGS_SAV=$LDFLAGS
+ CPPFLAGS_SAV=$CPPFLAGS
+ CPPFLAGS+=$GTNETS_CPPFLAGS
+ LDFLAGS+=$GTNETS_LDFLAGS
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+ #include <simulator.h>
- if ! test -e $gtnets_path ; then
- { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
-echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
- { (exit 1); exit 1; }; }
- fi
- GTNETS_CFLAGS=-I$gtnets_path/include
+int
+main ()
+{
+Simulator s; s.RunUntilNextCompletion();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ gtnets=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
- GTNETS_LDFLAGS=-L$gtnets_path/lib
+ gtnets=no
+fi
- SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS -lgtnets"
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ CPPFLAGS=$CPPFLAGS_SAV
+ LDFLAGS=$LDFLAGS_SAV
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+ if test "x$gtnets" = xyes ; then
+ CPPFLAGS+=$GTNETS_CPPFLAGS
+ LDFLAGS+=$GTNETS_LDFLAGS
+ SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
+ { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
+echo "${ECHO_T}Found working gtnets library." >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_GTNETS 1
+_ACEOF
+
+ else
+ { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
+echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
+ fi
fi
- if test "x$gtnets_path" != xNO; then
- USE_GTNETS_TRUE=
- USE_GTNETS_FALSE='#'
+ if test "x$gtnets" != xno; then
+ HAVE_GTNETS_TRUE=
+ HAVE_GTNETS_FALSE='#'
else
- USE_GTNETS_TRUE='#'
- USE_GTNETS_FALSE=
+ HAVE_GTNETS_TRUE='#'
+ HAVE_GTNETS_FALSE=
fi
-if test xpthread=xyes ; then
- # if the pthreads are usable
- if test "x$with_context" = "xpthread" ; then
- # if we use them to implement the xbt_context
- SIMGRID_DEP="-lpthread"
- fi
- # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
- if test "x$with_context" != "xwindows" ; then
- GRAS_DEP="-lpthread"
- fi
+#########################################
+## Build optional modules (csdp)
+##
+csdp=no
+
+# Check whether --with-csdp was given.
+if test "${with_csdp+set}" = set; then
+ withval=$with_csdp; csdp_path="$withval"
+else
+ csdp_path="no"
fi
-{ echo "$as_me:$LINENO: checking for csdp" >&5
+if test "x$csdp_path" = "xno" ; then
+ { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
+echo "${ECHO_T}Eventually you will come to csdp." >&6; }
+else
+ { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
+echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
+ { echo "$as_me:$LINENO: checking for csdp" >&5
echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
-sdp=no
-{ echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
-echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
-if test "${ac_cv_lib_sdp_sdp+set}" = set; then
+ CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
+ CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
+
+ { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
+echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
+if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsdp -llapack -lblas -lm $LIBS"
+LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char sdp ();
+char easy_sdp ();
int
main ()
{
-return sdp ();
+return easy_sdp ();
;
return 0;
}
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
- ac_cv_lib_sdp_sdp=yes
+ ac_cv_lib_sdp_easy_sdp=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_sdp_sdp=no
+ ac_cv_lib_sdp_easy_sdp=no
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
-echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
-if test $ac_cv_lib_sdp_sdp = yes; then
- csdp=yes
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
+echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
+if test $ac_cv_lib_sdp_easy_sdp = yes; then
+ csdp_lib=yes
+else
+ csdp_lib=no
+fi
+
+
+ CPPFLAGS_SAV=$CPPFLAGS
+ CPPFLAGS+=$CSDP_CPPFLAGS
+ if test "${ac_cv_header_declarations_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for declarations.h" >&5
+echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_declarations_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
+echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking declarations.h usability" >&5
+echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <declarations.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ echo "$as_me:$LINENO: checking declarations.h presence" >&5
+echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <declarations.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: declarations.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: declarations.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## -------------------------------------------------- ##
+## Report this to simgrid-devel@lists.gforge.inria.fr ##
+## -------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for declarations.h" >&5
+echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
+if test "${ac_cv_header_declarations_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_declarations_h=$ac_header_preproc
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
+echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
+
+fi
+if test $ac_cv_header_declarations_h = yes; then
+ csdp_header=yes
else
- csdp=no
+ csdp_header=no
fi
-if test "x$csdp" = xyes; then
- SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
- { echo "$as_me:$LINENO: result: Found working sdp library." >&5
+
+ CPPFLAGS=$CPPFLAGS_SAV
+
+
+
+ if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
+ csdp=yes;
+ else
+ csdp=no;
+ fi
+ if test "x$csdp" = xyes; then
+ CPPFLAGS+=$CSDP_CPPFLAGS
+ SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
+ { echo "$as_me:$LINENO: result: Found working sdp library." >&5
echo "${ECHO_T}Found working sdp library." >&6; }
cat >>confdefs.h <<\_ACEOF
#define HAVE_SDP 1
_ACEOF
-else
- { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
+ else
+ { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
echo "${ECHO_T}Could not find any working sdp library." >&6; }
-fi;
+ fi;
+fi
if test x$csdp != xno; then
HAVE_SDP_TRUE=
HAVE_SDP_FALSE='#'
GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
- if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
- # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
- # isn't propagated enough to desserve an extra check
+ if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
+ # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
+ # but the check would be too complicated to get 3.4.
+ # Instead, rule out any 3.x compiler.
# Note that the flag didn't exist before gcc 3.0
optCFLAGS="$optCFLAGS -fno-loop-optimize"
echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
# Java cruft
-# Extract the first word of "javac", so it can be a program name with args.
+# Check whether --enable-java was given.
+if test "${enable_java+set}" = set; then
+ enableval=$enable_java; want_java=$enableval
+else
+ want_java=yes
+fi
+
+if test "x$want_java" != "xyes" ; then
+ { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
+echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
+ { echo "$as_me:$LINENO: result: disabled by user" >&5
+echo "${ECHO_T}disabled by user" >&6; }
+ use_java="disabled by user"
+else
+ # Extract the first word of "javac", so it can be a program name with args.
set dummy javac; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fi
-# Extract the first word of "java ", so it can be a program name with args.
+ # Extract the first word of "java ", so it can be a program name with args.
set dummy java ; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fi
-# Extract the first word of "jar ", so it can be a program name with args.
+ # Extract the first word of "jar ", so it can be a program name with args.
set dummy jar ; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
done
-{ echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
+ { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
-if test -n "$JAVAC" \
- && test -n "$JAVA" \
- && test -n "$JAR" \
- && test "x$ac_cv_header_jni_h" = "xyes" ; then
+ if test -n "$JAVAC" \
+ && test -n "$JAVA" \
+ && test -n "$JAR" \
+ && test "x$ac_cv_header_jni_h" = "xyes" ; then
- use_java="yes"
-else
- use_java="no"
-fi
-{ echo "$as_me:$LINENO: result: $use_java" >&5
+ use_java="yes"
+ else
+ use_java="no"
+ fi
+ { echo "$as_me:$LINENO: result: $use_java" >&5
echo "${ECHO_T}$use_java" >&6; }
+fi
if test "x$use_java" = "xyes"; then
HAVE_JAVA_TRUE=
HAVE_JAVA_FALSE='#'
# examples/gras/p2p/chord/Makefile
# examples/gras/p2p/can/Makefile
+if test "x$use_java" = "xyes" ; then
+ac_config_files="$ac_config_files examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
-ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/basic.tesh examples/msg/small_plat.tesh examples/msg/suspend.tesh examples/msg/flexml_bypass.tesh examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/spawn/Makefile examples/gras/synchro/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
+fi
+
+ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/spawn/Makefile examples/gras/synchro/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
-if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
+if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
+ { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
+echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
"testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
"doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
+ "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
+ "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
+ "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
+ "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
+ "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
"examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
"examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
- "examples/msg/basic.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/basic.tesh" ;;
- "examples/msg/small_plat.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/small_plat.tesh" ;;
- "examples/msg/suspend.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/suspend.tesh" ;;
- "examples/msg/flexml_bypass.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/flexml_bypass.tesh" ;;
"examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
"examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
"examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
"examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
"examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
"examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
- "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
- "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
- "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
- "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
- "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
-GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
-GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
-USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
-USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
+HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
+HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
SIMGRID_DEP!$SIMGRID_DEP$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
"examples/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/msg/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
- examples/simdag/test_simdag \
- examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
- examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
- ; do \
- test -e $file && chmod +x $file; \
- done
- ;;
- "examples/msg/basic.tesh":F)
- for file in \
- \
- examples/msg/run_msg_test \
- examples/simdag/test_simdag \
- examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
- examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
- ; do \
- test -e $file && chmod +x $file; \
- done
- ;;
- "examples/msg/small_plat.tesh":F)
- for file in \
- \
- examples/msg/run_msg_test \
- examples/simdag/test_simdag \
- examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
- examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
- ; do \
- test -e $file && chmod +x $file; \
- done
- ;;
- "examples/msg/suspend.tesh":F)
- for file in \
- \
- examples/msg/run_msg_test \
- examples/simdag/test_simdag \
- examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
- examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
- ; do \
- test -e $file && chmod +x $file; \
- done
- ;;
- "examples/msg/flexml_bypass.tesh":F)
- for file in \
- \
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/simdag/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/simdag/test_simdag":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/ping/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/rpc/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/spawn/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/synchro/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/timer/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/chrono/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/mutual_exclusion/simple_token/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/mmrpc/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/pmm/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/gras/all2all/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/amok/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/amok/bandwidth/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/amok/bandwidth/test_sg":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/amok/bandwidth/test_rl":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/amok/saturate/Makefile":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/amok/saturate/test_sg":F)
for file in \
\
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
"examples/amok/saturate/test_rl":F)
for file in \
\
- examples/msg/run_msg_test \
- examples/simdag/test_simdag \
- examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
- examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
- ; do \
- test -e $file && chmod +x $file; \
- done
- ;;
- "examples/java/Makefile":F)
- for file in \
- \
- examples/msg/run_msg_test \
- examples/simdag/test_simdag \
- examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
- examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
- ; do \
- test -e $file && chmod +x $file; \
- done
- ;;
- "examples/java/basic/Makefile":F)
- for file in \
- \
- examples/msg/run_msg_test \
- examples/simdag/test_simdag \
- examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
- examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
- ; do \
- test -e $file && chmod +x $file; \
- done
- ;;
- "examples/java/comm_time/Makefile":F)
- for file in \
- \
- examples/msg/run_msg_test \
- examples/simdag/test_simdag \
- examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
- examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
- ; do \
- test -e $file && chmod +x $file; \
- done
- ;;
- "examples/java/suspend/Makefile":F)
- for file in \
- \
- examples/msg/run_msg_test \
- examples/simdag/test_simdag \
- examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
- examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
- ; do \
- test -e $file && chmod +x $file; \
- done
- ;;
- "examples/java/ping_pong/Makefile":F)
- for file in \
- \
- examples/msg/run_msg_test \
examples/simdag/test_simdag \
examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
examples/amok/saturate/test_sg examples/amok/saturate/test_rl \