Project

General

Profile

Revision 53a9b564

View differences:

.gitignore
3 3
/setup.data
4 4
/setup.log
5 5
/src/version.ml
6
/myocamlbuild.ml
configure.ac
41 41

  
42 42
# Checks for libraries. OCamlgraph
43 43
AC_MSG_CHECKING(ocamlgraph library)
44
   ocamlgraph_lib=`find $OCAMLGRAPH_PATH -iname graph.cmxa -nowarn | grep -m 1 -o "graph.cmxa"`
44
   ocamlgraph_lib=`find $OCAMLGRAPH_PATH -iname graph.cmxa | grep -m 1 -o "graph.cmxa"`
45 45
   if (test "x$ocamlgraph_lib" = xgraph.cmxa ); then
46
	ocamlgraph_lib_full=`find $OCAMLGRAPH_PATH -iname graph.cmxa -nowarn | grep -m 1 "graph.cmxa"`
46
	ocamlgraph_lib_full=`find $OCAMLGRAPH_PATH -iname graph.cmxa  | grep -m 1 "graph.cmxa"`
47 47
      AC_MSG_RESULT(library detected: $ocamlgraph_lib_full )
48
   else 
48
   else
49 49
      AC_MSG_ERROR([ocamlgraph library not installed in $OCAMLGRAPH_PATH])
50 50
   fi
51 51

  
52 52

  
53 53
# Workaround to solve an issue with ocamlbuild and C libraries.
54
oCFLAGS="$CFLAGS"
55
CFLAGS="$FLAGS -Wl,--no-as-needed"
56
AC_MSG_CHECKING([whether we need to add --no-as-needed linking option])
57
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], 
58
                                     [[ 
59
                                        int main(){ return 0; } 
60
                                    ]])], 
61
                  [AC_MSG_RESULT([yes]); CC_NOASNEEDED="true"],
62
                  [AC_MSG_RESULT([no]); CC_NOASNEEDED="false"]) 
63
CFLAGS=$oCFLAGS
64
AC_SUBST(CC_NOASNEEDED)
54
# oCFLAGS="$CFLAGS"
55
# CFLAGS="$FLAGS -Wl,--no-as-needed"
56
# AC_MSG_CHECKING([whether we need to add --no-as-needed linking option])
57
# AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
58
#                                      [[
59
#                                         int main(){ return 0; }
60
#                                     ]])],
61
#                   [AC_MSG_RESULT([yes]); CC_NOASNEEDED="true"],
62
#                   [AC_MSG_RESULT([no]); CC_NOASNEEDED="false"])
63
# CFLAGS=$oCFLAGS
64
# AC_SUBST(CC_NOASNEEDED)
65 65

  
66 66

  
67 67
# End of config
......
94 94

  
95 95
# summary
96 96
dnl AC_MSG_NOTICE(******** Configuration ********)
97

  

Also available in: Unified diff