summaryrefslogtreecommitdiff
path: root/legacy/ecore/m4/efl_path_max.m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-01-11 07:12:43 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-01-11 07:12:43 +0000
commit2c34c1bec248f43bb9e97570f3eb32cc46bcaf3c (patch)
treeedec38e2fc0bbe3540d112dba5c3a76da2b07044 /legacy/ecore/m4/efl_path_max.m4
parentb47b5659b422617760564f776898d49af5aba2f5 (diff)
update efl_path_max.m4
SVN revision: 45037
Diffstat (limited to 'legacy/ecore/m4/efl_path_max.m4')
-rw-r--r--legacy/ecore/m4/efl_path_max.m427
1 files changed, 15 insertions, 12 deletions
diff --git a/legacy/ecore/m4/efl_path_max.m4 b/legacy/ecore/m4/efl_path_max.m4
index 2c9b60afe7..f57bfd2ab5 100644
--- a/legacy/ecore/m4/efl_path_max.m4
+++ b/legacy/ecore/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