diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-07 04:39:17 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-10-07 04:39:17 +0200 |
commit | 5e6b92bb993a0e913877c495687556df918d7d86 (patch) | |
tree | 27ea905261f2f097a86387c92dd6286a4ce99d23 /m4/fcntl_h.m4 | |
parent | 3868cf78cecd1c5dfba91fb9b6b26e4da33b1b37 (diff) | |
download | gnulib-5e6b92bb993a0e913877c495687556df918d7d86.tar.gz |
New module 'open'.
Diffstat (limited to 'm4/fcntl_h.m4')
-rw-r--r-- | m4/fcntl_h.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/fcntl_h.m4 b/m4/fcntl_h.m4 index 3ae7efe8e6..e3b9aa526c 100644 --- a/m4/fcntl_h.m4 +++ b/m4/fcntl_h.m4 @@ -8,6 +8,7 @@ dnl Written by Paul Eggert. AC_DEFUN([gl_FCNTL_H], [ + AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) AC_CACHE_CHECK([for working fcntl.h], gl_cv_header_working_fcntl_h, [AC_RUN_IFELSE( [AC_LANG_PROGRAM( @@ -77,3 +78,17 @@ AC_DEFUN([gl_FCNTL_H], FCNTL_H='fcntl.h' AC_SUBST([FCNTL_H]) ]) + +AC_DEFUN([gl_FCNTL_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) + GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 +]) + +AC_DEFUN([gl_FCNTL_H_DEFAULTS], +[ + GNULIB_OPEN=0; AC_SUBST([GNULIB_OPEN]) + dnl Assume proper GNU behavior unless another module says otherwise. + REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN]) +]) |