update efl_path_max.m4

SVN revision: 45040
devs/princeamd/enlightenment-0.17-elive
Vincent Torri 13 years ago
parent 6895ea9b23
commit 680e4d14e0
  1. 27
      m4/efl_path_max.m4

@ -13,19 +13,22 @@ AC_DEFUN([EFL_CHECK_PATH_MAX],
default_max=m4_default([$1], "4096")
AC_LANG_PUSH([C])
AC_MSG_CHECKING([for PATH_MAX in limit.h])
AC_MSG_CHECKING([for PATH_MAX in limits.h])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <limits.h>]],
[[int i = PATH_MAX]])
],
AC_MSG_RESULT([yes]),
[
AC_DEFINE_UNQUOTED([PATH_MAX],
[${default_max}],
[default value since PATH_MAX is not defined])
AC_MSG_RESULT([no: using ${default_max}])
]
)
[AC_LANG_PROGRAM(
[[
#include <limits.h>
]],
[[
int i = PATH_MAX;
]])],
[AC_MSG_RESULT([yes])],
[
AC_DEFINE_UNQUOTED([PATH_MAX],
[${default_max}],
[default value since PATH_MAX is not defined])
AC_MSG_RESULT([no: using ${default_max}])
])
AC_LANG_POP([C])

Loading…
Cancel
Save