summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-01-11 07:16:42 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-01-11 07:16:42 +0000
commit680e4d14e0534bb535059d0239b71d42317fe0b1 (patch)
treea0fc3ca39b42e5f734303c0045b709c43ec562cf /m4
parent6895ea9b23ba68a2fce62e58b470f91e7c27c10a (diff)
update efl_path_max.m4
SVN revision: 45040
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_path_max.m427
1 files changed, 15 insertions, 12 deletions
diff --git a/m4/efl_path_max.m4 b/m4/efl_path_max.m4
index 2c9b60afe..f57bfd2ab 100644
--- a/m4/efl_path_max.m4
+++ b/m4/efl_path_max.m4
@@ -13,19 +13,22 @@ AC_DEFUN([EFL_CHECK_PATH_MAX],
13default_max=m4_default([$1], "4096") 13default_max=m4_default([$1], "4096")
14AC_LANG_PUSH([C]) 14AC_LANG_PUSH([C])
15 15
16AC_MSG_CHECKING([for PATH_MAX in limit.h]) 16AC_MSG_CHECKING([for PATH_MAX in limits.h])
17AC_COMPILE_IFELSE( 17AC_COMPILE_IFELSE(
18 [AC_LANG_PROGRAM([[#include <limits.h>]], 18 [AC_LANG_PROGRAM(
19 [[int i = PATH_MAX]]) 19 [[
20 ], 20#include <limits.h>
21 AC_MSG_RESULT([yes]), 21 ]],
22 [ 22 [[
23 AC_DEFINE_UNQUOTED([PATH_MAX], 23int i = PATH_MAX;
24 [${default_max}], 24 ]])],
25 [default value since PATH_MAX is not defined]) 25 [AC_MSG_RESULT([yes])],
26 AC_MSG_RESULT([no: using ${default_max}]) 26 [
27 ] 27 AC_DEFINE_UNQUOTED([PATH_MAX],
28) 28 [${default_max}],
29 [default value since PATH_MAX is not defined])
30 AC_MSG_RESULT([no: using ${default_max}])
31 ])
29 32
30AC_LANG_POP([C]) 33AC_LANG_POP([C])
31 34