]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix the archive: some parts of the following patches were missing:
authorAkim Demaille <akim@epita.fr>
Fri, 26 May 2000 17:12:01 +0000 (17:12 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 26 May 2000 17:12:01 +0000 (17:12 +0000)
- CC < aCC
- unquote the argument of case
- AC_FUNC_STRERROR_R
- AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
- typos in autoconf.texi

NEWS
acfunctions
aclang.m4
acspecific.m4
doc/install.texi
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/lang.m4
lib/autoconf/specific.m4
lib/autoscan/functions

diff --git a/NEWS b/NEWS
index b13b1b25300f9716bf4e5d5fd25f6eba72e6bcdc..bd9dbabb81778facdc2ba5df5a9fc6b7ca25f543 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -161,7 +161,8 @@ test cases in this new frame work.
 
 
 ** Specific Macros
-- AC_FUNC_CHOWN, AC_FUNC_MALLOC.
+- AC_FUNC_CHOWN, AC_FUNC_MALLOC, AC_FUNC_STRERROR_R,
+  AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
   New.
 
 - AC_FUNC_GETGROUPS
index 1eb8e81aa9559065ba96243ce627ba5709520c5b..7099d0a1a71efc7f179efc90c6c0b790d2765d6b 100644 (file)
@@ -10,6 +10,7 @@ getloadavg    AC_FUNC_GETLOADAVG
 getpgrp                AC_FUNC_GETPGRP
 index          AC_HEADER_STDC
 ioctl          AC_PROG_GCC_TRADITIONAL
+lstat          AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
 major          AC_HEADER_MAJOR
 malloc         AC_FUNC_MALLOC
 makedev                AC_HEADER_MAJOR
@@ -26,6 +27,7 @@ setpgrp               AC_FUNC_SETPGRP
 setvbuf                AC_FUNC_SETVBUF_REVERSED
 signal         AC_TYPE_SIGNAL
 strcoll                AC_FUNC_STRCOLL
+strerror_r     AC_FUNC_STRERROR_R
 strftime       AC_FUNC_STRFTIME
 utime          AC_FUNC_UTIME_NULL
 vfork          AC_FUNC_VFORK
index d6cc27941e535c20b92dcea52f5cc031457b87a6..dcecd27990389bc050bd431faa703768bbb70d1d 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -723,7 +723,7 @@ AC_SUBST(CXXCPP)dnl
 # for (if not specified, a default list is used).  This just gives the
 # user an opportunity to specify an alternative search list for the C++
 # compiler.
-# aCC  HP-UX C++ compiler
+# aCC  HP-UX C++ compiler much better than `CC', so test before.
 # KCC  KAI C++ compiler
 # RCC  Rational C++
 # xlC_r        AIX C Set++ (with support for reentrant code)
@@ -733,7 +733,7 @@ AC_DEFUN([AC_PROG_CXX],
 AC_LANG_PUSH(C++)
 AC_CHECK_TOOLS(CXX,
                $CCC m4_default([$1],
-                          [g++ c++ gpp CC cxx cc++ cl aCC KCC RCC xlC_r xlC]),
+                          [g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC]),
                g++)
 
 _AC_LANG_COMPILER_WORKS
@@ -1154,7 +1154,7 @@ $ac_kw int foo () {return 0; }
                     [ac_cv_c_inline=$ac_kw; break])
 done
 ])
-case "$ac_cv_c_inline" in
+case $ac_cv_c_inline in
   inline | yes) ;;
   no) AC_DEFINE(inline,,
                 [Define as `__inline' if that's what the C compiler calls it,
@@ -1390,9 +1390,9 @@ for ac_arg in $ac_link_output; do
   # an argument.
   ac_previous_arg=$ac_save_arg
   echo $ac_arg | grep '^[^-]' >/dev/null 2>&1 && ac_previous_arg=
-  case "$ac_previous_arg" in
+  case $ac_previous_arg in
     '')
-      case "$ac_arg" in
+      case $ac_arg in
         /*.a)
           # Append to AC_SEEN if it's not already there.
           AC_LIST_MEMBER_OF($ac_arg, $ac_seen,
@@ -1559,7 +1559,7 @@ AH_TEMPLATE([F77_FUNC],
      case), which must not contain underscores, for linking with Fortran.])dnl
 AH_TEMPLATE([F77_FUNC_],
     [As F77_FUNC, but for C identifiers containing underscores.])dnl
-case "$f77_case,$f77_underscore" in
+case $f77_case,$f77_underscore in
   lower,no)
           AC_DEFINE([F77_FUNC(name,NAME)],  [name])
           AC_DEFINE([F77_FUNC_(name,NAME)], [name]) ;;
index 2d04307baa42443fa683790ebe7e1e6575e991f2..bd724c7d89f5ab1b68d026921d42be64ca008480 100644 (file)
@@ -136,7 +136,7 @@ AH_CHECK_LIB(l)dnl
 AC_CHECK_PROG(LEX, flex, flex, lex)
 if test -z "$LEXLIB"
 then
-  case "$LEX" in
+  case $LEX in
   flex*) ac_lib=fl ;;
   *) ac_lib=l ;;
   esac
@@ -213,7 +213,7 @@ AC_CACHE_VAL(ac_cv_path_install,
 [  ac_save_IFS=$IFS; IFS=':'
   for ac_dir in $PATH; do
     # Account for people who put trailing slashes in PATH elements.
-    case "$ac_dir/" in
+    case $ac_dir/ in
     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     *)
       # OSF1 and SCO ODT 3.0 have their own names for install.
@@ -273,8 +273,7 @@ AC_DEFUN([AC_PROG_LN_S],
 [AC_MSG_CHECKING(whether ln -s works)
 AC_CACHE_VAL(ac_cv_prog_LN_S,
 [rm -f conftestdata
-if ln -s X conftestdata 2>/dev/null
-then
+if ln -s X conftestdata 2>/dev/null; then
   rm -f conftestdata
   ac_cv_prog_LN_S="ln -s"
 else
@@ -1151,6 +1150,54 @@ fi
 ])# AC_FUNC_GETPGRP
 
 
+# AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
+# -------------------------------------
+# When crosscompiling, be pessimistic so we will end up using the
+# replacement version of lstat that checkes for trailing slashes and
+# calls lstat a second time when necessary.
+AC_DEFUN([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK],
+[AC_CACHE_CHECK(
+       [whether lstat dereferences a symlink specified with a trailing slash],
+       [ac_cv_func_lstat_dereferences_slashed_symlink],
+[rm -f conftest.sym conftest.file
+echo >conftest.file
+if ln -s conftest.file conftest.sym; then
+  AC_TRY_RUN([
+#  include <sys/types.h>
+#  include <sys/stat.h>
+
+   int
+   main ()
+   {
+     struct stat sbuf;
+     /* Linux will dereference the symlink and fail.
+        That is better in the sense that it means we will not
+        have to compile and use the lstat wrapper.  */
+     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
+   }
+   ],
+   ac_cv_func_lstat_dereferences_slashed_symlink=yes,
+   ac_cv_func_lstat_dereferences_slashed_symlink=no,
+   ac_cv_func_lstat_dereferences_slashed_symlink=no
+  )
+else
+  # If the `ln -s' command failed, then we probably don't even
+  # have an lstat function.
+  ac_cv_func_lstat_dereferences_slashed_symlink=no
+fi
+])
+
+test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
+  AC_DEFINE_UNQUOTED(LSTAT_FOLLOWS_SLASHED_SYMLINK, 1,
+                     [Define if `lstat' dereferences a symlink specified
+                      with a trailing slash.])
+
+if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
+  AC_LIBOBJ(lstat)
+fi
+])
+
+
 # AC_FUNC_MALLOC
 # --------------
 # Is `malloc (0)' properly handled?
@@ -1598,6 +1645,39 @@ fi
 ])# AC_FUNC_SETPGRP
 
 
+# AC_FUNC_STRERROR_R
+# ------------------
+AC_DEFUN([AC_FUNC_STRERROR_R],
+[# Check strerror_r
+AC_CHECK_FUNCS([strerror_r])
+if test $ac_cv_func_strerror_r = yes; then
+  AC_CHECK_HEADERS(string.h)
+  AC_CACHE_CHECK([for working strerror_r],
+                 ac_cv_func_strerror_r_works,
+   [
+    AC_TRY_COMPILE(
+     [
+#       include <stdio.h>
+#       if HAVE_STRING_H
+#        include <string.h>
+#       endif
+     ],
+     [
+       int buf; /* avoiding square brackets makes this easier */
+       char x = *strerror_r (0, buf, sizeof buf);
+     ],
+     ac_cv_func_strerror_r_works=yes,
+     ac_cv_func_strerror_r_works=no
+    )
+    if test $ac_cv_func_strerror_r_works = yes; then
+      AC_DEFINE_UNQUOTED(HAVE_WORKING_STRERROR_R, 1,
+        [Define to 1 if `strerror_r' returns a string.])
+    fi
+  ])
+fi
+])# AC_FUNC_STRERROR_R
+
+
 # AC_FUNC_STRFTIME
 # ----------------
 AC_DEFUN([AC_FUNC_STRFTIME],
@@ -2221,11 +2301,11 @@ EOF
     # Screen out bogus values from the imake configuration.  They are
     # bogus both because they are the default anyway, and because
     # using them would break gcc on systems where it needs fixed includes.
-    case "$ac_im_incroot" in
+    case $ac_im_incroot in
        /usr/include) ;;
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
     esac
-    case "$ac_im_usrlibdir" in
+    case $ac_im_usrlibdir in
        /usr/lib | /lib) ;;
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
     esac
index a3b59b05ab54babadb3eee136eab00d2d3060844..1dfad9b2ef974dfe374313f148ec206cf40e2872 100644 (file)
@@ -204,8 +204,8 @@ will cause the specified gcc to be used as the C compiler (unless it is
 overridden in the site shell script).
 
 
-@node Invoking configure
-@section Invoking @code{configure}
+@node configure Invocation
+@section @code{configure} Invocation
 
 @code{configure} recognizes the following options to control how it
 operates.
index d6cc27941e535c20b92dcea52f5cc031457b87a6..dcecd27990389bc050bd431faa703768bbb70d1d 100644 (file)
@@ -723,7 +723,7 @@ AC_SUBST(CXXCPP)dnl
 # for (if not specified, a default list is used).  This just gives the
 # user an opportunity to specify an alternative search list for the C++
 # compiler.
-# aCC  HP-UX C++ compiler
+# aCC  HP-UX C++ compiler much better than `CC', so test before.
 # KCC  KAI C++ compiler
 # RCC  Rational C++
 # xlC_r        AIX C Set++ (with support for reentrant code)
@@ -733,7 +733,7 @@ AC_DEFUN([AC_PROG_CXX],
 AC_LANG_PUSH(C++)
 AC_CHECK_TOOLS(CXX,
                $CCC m4_default([$1],
-                          [g++ c++ gpp CC cxx cc++ cl aCC KCC RCC xlC_r xlC]),
+                          [g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC]),
                g++)
 
 _AC_LANG_COMPILER_WORKS
@@ -1154,7 +1154,7 @@ $ac_kw int foo () {return 0; }
                     [ac_cv_c_inline=$ac_kw; break])
 done
 ])
-case "$ac_cv_c_inline" in
+case $ac_cv_c_inline in
   inline | yes) ;;
   no) AC_DEFINE(inline,,
                 [Define as `__inline' if that's what the C compiler calls it,
@@ -1390,9 +1390,9 @@ for ac_arg in $ac_link_output; do
   # an argument.
   ac_previous_arg=$ac_save_arg
   echo $ac_arg | grep '^[^-]' >/dev/null 2>&1 && ac_previous_arg=
-  case "$ac_previous_arg" in
+  case $ac_previous_arg in
     '')
-      case "$ac_arg" in
+      case $ac_arg in
         /*.a)
           # Append to AC_SEEN if it's not already there.
           AC_LIST_MEMBER_OF($ac_arg, $ac_seen,
@@ -1559,7 +1559,7 @@ AH_TEMPLATE([F77_FUNC],
      case), which must not contain underscores, for linking with Fortran.])dnl
 AH_TEMPLATE([F77_FUNC_],
     [As F77_FUNC, but for C identifiers containing underscores.])dnl
-case "$f77_case,$f77_underscore" in
+case $f77_case,$f77_underscore in
   lower,no)
           AC_DEFINE([F77_FUNC(name,NAME)],  [name])
           AC_DEFINE([F77_FUNC_(name,NAME)], [name]) ;;
index d6cc27941e535c20b92dcea52f5cc031457b87a6..dcecd27990389bc050bd431faa703768bbb70d1d 100644 (file)
@@ -723,7 +723,7 @@ AC_SUBST(CXXCPP)dnl
 # for (if not specified, a default list is used).  This just gives the
 # user an opportunity to specify an alternative search list for the C++
 # compiler.
-# aCC  HP-UX C++ compiler
+# aCC  HP-UX C++ compiler much better than `CC', so test before.
 # KCC  KAI C++ compiler
 # RCC  Rational C++
 # xlC_r        AIX C Set++ (with support for reentrant code)
@@ -733,7 +733,7 @@ AC_DEFUN([AC_PROG_CXX],
 AC_LANG_PUSH(C++)
 AC_CHECK_TOOLS(CXX,
                $CCC m4_default([$1],
-                          [g++ c++ gpp CC cxx cc++ cl aCC KCC RCC xlC_r xlC]),
+                          [g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC]),
                g++)
 
 _AC_LANG_COMPILER_WORKS
@@ -1154,7 +1154,7 @@ $ac_kw int foo () {return 0; }
                     [ac_cv_c_inline=$ac_kw; break])
 done
 ])
-case "$ac_cv_c_inline" in
+case $ac_cv_c_inline in
   inline | yes) ;;
   no) AC_DEFINE(inline,,
                 [Define as `__inline' if that's what the C compiler calls it,
@@ -1390,9 +1390,9 @@ for ac_arg in $ac_link_output; do
   # an argument.
   ac_previous_arg=$ac_save_arg
   echo $ac_arg | grep '^[^-]' >/dev/null 2>&1 && ac_previous_arg=
-  case "$ac_previous_arg" in
+  case $ac_previous_arg in
     '')
-      case "$ac_arg" in
+      case $ac_arg in
         /*.a)
           # Append to AC_SEEN if it's not already there.
           AC_LIST_MEMBER_OF($ac_arg, $ac_seen,
@@ -1559,7 +1559,7 @@ AH_TEMPLATE([F77_FUNC],
      case), which must not contain underscores, for linking with Fortran.])dnl
 AH_TEMPLATE([F77_FUNC_],
     [As F77_FUNC, but for C identifiers containing underscores.])dnl
-case "$f77_case,$f77_underscore" in
+case $f77_case,$f77_underscore in
   lower,no)
           AC_DEFINE([F77_FUNC(name,NAME)],  [name])
           AC_DEFINE([F77_FUNC_(name,NAME)], [name]) ;;
index d6cc27941e535c20b92dcea52f5cc031457b87a6..dcecd27990389bc050bd431faa703768bbb70d1d 100644 (file)
@@ -723,7 +723,7 @@ AC_SUBST(CXXCPP)dnl
 # for (if not specified, a default list is used).  This just gives the
 # user an opportunity to specify an alternative search list for the C++
 # compiler.
-# aCC  HP-UX C++ compiler
+# aCC  HP-UX C++ compiler much better than `CC', so test before.
 # KCC  KAI C++ compiler
 # RCC  Rational C++
 # xlC_r        AIX C Set++ (with support for reentrant code)
@@ -733,7 +733,7 @@ AC_DEFUN([AC_PROG_CXX],
 AC_LANG_PUSH(C++)
 AC_CHECK_TOOLS(CXX,
                $CCC m4_default([$1],
-                          [g++ c++ gpp CC cxx cc++ cl aCC KCC RCC xlC_r xlC]),
+                          [g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC]),
                g++)
 
 _AC_LANG_COMPILER_WORKS
@@ -1154,7 +1154,7 @@ $ac_kw int foo () {return 0; }
                     [ac_cv_c_inline=$ac_kw; break])
 done
 ])
-case "$ac_cv_c_inline" in
+case $ac_cv_c_inline in
   inline | yes) ;;
   no) AC_DEFINE(inline,,
                 [Define as `__inline' if that's what the C compiler calls it,
@@ -1390,9 +1390,9 @@ for ac_arg in $ac_link_output; do
   # an argument.
   ac_previous_arg=$ac_save_arg
   echo $ac_arg | grep '^[^-]' >/dev/null 2>&1 && ac_previous_arg=
-  case "$ac_previous_arg" in
+  case $ac_previous_arg in
     '')
-      case "$ac_arg" in
+      case $ac_arg in
         /*.a)
           # Append to AC_SEEN if it's not already there.
           AC_LIST_MEMBER_OF($ac_arg, $ac_seen,
@@ -1559,7 +1559,7 @@ AH_TEMPLATE([F77_FUNC],
      case), which must not contain underscores, for linking with Fortran.])dnl
 AH_TEMPLATE([F77_FUNC_],
     [As F77_FUNC, but for C identifiers containing underscores.])dnl
-case "$f77_case,$f77_underscore" in
+case $f77_case,$f77_underscore in
   lower,no)
           AC_DEFINE([F77_FUNC(name,NAME)],  [name])
           AC_DEFINE([F77_FUNC_(name,NAME)], [name]) ;;
index 2d04307baa42443fa683790ebe7e1e6575e991f2..bd724c7d89f5ab1b68d026921d42be64ca008480 100644 (file)
@@ -136,7 +136,7 @@ AH_CHECK_LIB(l)dnl
 AC_CHECK_PROG(LEX, flex, flex, lex)
 if test -z "$LEXLIB"
 then
-  case "$LEX" in
+  case $LEX in
   flex*) ac_lib=fl ;;
   *) ac_lib=l ;;
   esac
@@ -213,7 +213,7 @@ AC_CACHE_VAL(ac_cv_path_install,
 [  ac_save_IFS=$IFS; IFS=':'
   for ac_dir in $PATH; do
     # Account for people who put trailing slashes in PATH elements.
-    case "$ac_dir/" in
+    case $ac_dir/ in
     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     *)
       # OSF1 and SCO ODT 3.0 have their own names for install.
@@ -273,8 +273,7 @@ AC_DEFUN([AC_PROG_LN_S],
 [AC_MSG_CHECKING(whether ln -s works)
 AC_CACHE_VAL(ac_cv_prog_LN_S,
 [rm -f conftestdata
-if ln -s X conftestdata 2>/dev/null
-then
+if ln -s X conftestdata 2>/dev/null; then
   rm -f conftestdata
   ac_cv_prog_LN_S="ln -s"
 else
@@ -1151,6 +1150,54 @@ fi
 ])# AC_FUNC_GETPGRP
 
 
+# AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
+# -------------------------------------
+# When crosscompiling, be pessimistic so we will end up using the
+# replacement version of lstat that checkes for trailing slashes and
+# calls lstat a second time when necessary.
+AC_DEFUN([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK],
+[AC_CACHE_CHECK(
+       [whether lstat dereferences a symlink specified with a trailing slash],
+       [ac_cv_func_lstat_dereferences_slashed_symlink],
+[rm -f conftest.sym conftest.file
+echo >conftest.file
+if ln -s conftest.file conftest.sym; then
+  AC_TRY_RUN([
+#  include <sys/types.h>
+#  include <sys/stat.h>
+
+   int
+   main ()
+   {
+     struct stat sbuf;
+     /* Linux will dereference the symlink and fail.
+        That is better in the sense that it means we will not
+        have to compile and use the lstat wrapper.  */
+     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
+   }
+   ],
+   ac_cv_func_lstat_dereferences_slashed_symlink=yes,
+   ac_cv_func_lstat_dereferences_slashed_symlink=no,
+   ac_cv_func_lstat_dereferences_slashed_symlink=no
+  )
+else
+  # If the `ln -s' command failed, then we probably don't even
+  # have an lstat function.
+  ac_cv_func_lstat_dereferences_slashed_symlink=no
+fi
+])
+
+test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
+  AC_DEFINE_UNQUOTED(LSTAT_FOLLOWS_SLASHED_SYMLINK, 1,
+                     [Define if `lstat' dereferences a symlink specified
+                      with a trailing slash.])
+
+if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
+  AC_LIBOBJ(lstat)
+fi
+])
+
+
 # AC_FUNC_MALLOC
 # --------------
 # Is `malloc (0)' properly handled?
@@ -1598,6 +1645,39 @@ fi
 ])# AC_FUNC_SETPGRP
 
 
+# AC_FUNC_STRERROR_R
+# ------------------
+AC_DEFUN([AC_FUNC_STRERROR_R],
+[# Check strerror_r
+AC_CHECK_FUNCS([strerror_r])
+if test $ac_cv_func_strerror_r = yes; then
+  AC_CHECK_HEADERS(string.h)
+  AC_CACHE_CHECK([for working strerror_r],
+                 ac_cv_func_strerror_r_works,
+   [
+    AC_TRY_COMPILE(
+     [
+#       include <stdio.h>
+#       if HAVE_STRING_H
+#        include <string.h>
+#       endif
+     ],
+     [
+       int buf; /* avoiding square brackets makes this easier */
+       char x = *strerror_r (0, buf, sizeof buf);
+     ],
+     ac_cv_func_strerror_r_works=yes,
+     ac_cv_func_strerror_r_works=no
+    )
+    if test $ac_cv_func_strerror_r_works = yes; then
+      AC_DEFINE_UNQUOTED(HAVE_WORKING_STRERROR_R, 1,
+        [Define to 1 if `strerror_r' returns a string.])
+    fi
+  ])
+fi
+])# AC_FUNC_STRERROR_R
+
+
 # AC_FUNC_STRFTIME
 # ----------------
 AC_DEFUN([AC_FUNC_STRFTIME],
@@ -2221,11 +2301,11 @@ EOF
     # Screen out bogus values from the imake configuration.  They are
     # bogus both because they are the default anyway, and because
     # using them would break gcc on systems where it needs fixed includes.
-    case "$ac_im_incroot" in
+    case $ac_im_incroot in
        /usr/include) ;;
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
     esac
-    case "$ac_im_usrlibdir" in
+    case $ac_im_usrlibdir in
        /usr/lib | /lib) ;;
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
     esac
index 1eb8e81aa9559065ba96243ce627ba5709520c5b..7099d0a1a71efc7f179efc90c6c0b790d2765d6b 100644 (file)
@@ -10,6 +10,7 @@ getloadavg    AC_FUNC_GETLOADAVG
 getpgrp                AC_FUNC_GETPGRP
 index          AC_HEADER_STDC
 ioctl          AC_PROG_GCC_TRADITIONAL
+lstat          AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
 major          AC_HEADER_MAJOR
 malloc         AC_FUNC_MALLOC
 makedev                AC_HEADER_MAJOR
@@ -26,6 +27,7 @@ setpgrp               AC_FUNC_SETPGRP
 setvbuf                AC_FUNC_SETVBUF_REVERSED
 signal         AC_TYPE_SIGNAL
 strcoll                AC_FUNC_STRCOLL
+strerror_r     AC_FUNC_STRERROR_R
 strftime       AC_FUNC_STRFTIME
 utime          AC_FUNC_UTIME_NULL
 vfork          AC_FUNC_VFORK