projects
/
sort-networks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ebc1cf4
)
configure.ac: Define wanted C and POSIX versions.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 10 May 2010 09:28:50 +0000
(11:28 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 10 May 2010 09:28:50 +0000
(11:28 +0200)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
25c2b3e
..
b8d6e6b
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-20,19
+20,27
@@
LT_CONFIG_LTDL_DIR([libltdl])
LT_INIT
LTDL_INIT
LT_INIT
LTDL_INIT
-# Checks for libraries.
-AC_CHECK_LIB([m], [powl])
-# FIXME: Replace `main' with a function in `-lpopulation':
+if test "x$GCC" = "xyes"
+then
+ CFLAGS="$CFLAGS -std=c99"
+fi
+
+AC_DEFINE([_ISOC99_SOURCE], [1], [Define to use C99])
+AC_DEFINE([_POSIX_C_SOURCE], [200809L], [Set to desired POSIX version])
+AC_DEFINE([_XOPEN_SOURCE], [700], [Set to desired X/Open version])
+
+# TODO: Write check for libpopulation
#AC_CHECK_LIB([population], [main])
# Checks for header files.
#AC_CHECK_LIB([population], [main])
# Checks for header files.
-AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdint.h stdlib.h string.h strings.h unistd.h])
+AC_HEADER_STDC
+AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdint.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for typedefs, structures, and compiler characteristics.
-AC_TYPE_INT64_T
-AC_TYPE_SIZE_T
-AC_TYPE_UINT32_T
-AC_TYPE_UINT64_T
+
#
AC_TYPE_INT64_T
+
#
AC_TYPE_SIZE_T
+
#
AC_TYPE_UINT32_T
+
#
AC_TYPE_UINT64_T
# Checks for library functions.
AC_FUNC_MALLOC
# Checks for library functions.
AC_FUNC_MALLOC