[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS libidn/gl/m4
From: |
libidn-commit |
Subject: |
CVS libidn/gl/m4 |
Date: |
Sat, 02 Oct 2004 20:06:10 +0200 |
Update of /home/cvs/libidn/gl/m4
In directory dopio:/tmp/cvs-serv2304/gl/m4
Modified Files:
gnulib.m4
Added Files:
error.m4 strerror_r.m4
Log Message:
Add error from gnulib (slightly modified to avoid unlocked-io.h).
--- /home/cvs/libidn/gl/m4/gnulib.m4 2004/09/29 00:01:44 1.4
+++ /home/cvs/libidn/gl/m4/gnulib.m4 2004/10/02 18:06:10 1.5
@@ -8,7 +8,7 @@
# Generated by gnulib-tool.
#
# Invoked as: gnulib-tool --import
-# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gl
--m4-base=gl/m4 --libtool --lgpl dummy getopt gettext strdup
+# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gl
--m4-base=gl/m4 --libtool --lgpl dummy error getopt gettext strdup
AC_DEFUN([gl_EARLY],
[
@@ -16,6 +16,7 @@
AC_DEFUN([gl_INIT],
[
+ gl_ERROR
gl_GETOPT
dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
gl_FUNC_STRDUP
--- /home/cvs/libidn/gl/m4/error.m4 2004/10/02 18:06:10 NONE
+++ /home/cvs/libidn/gl/m4/error.m4 2004/10/02 18:06:10 1.1
#serial 10
AC_DEFUN([gl_ERROR],
[
AC_FUNC_ERROR_AT_LINE
dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]).
gl_PREREQ_ERROR
])
# Prerequisites of lib/error.c.
AC_DEFUN([gl_PREREQ_ERROR],
[
AC_REQUIRE([AC_FUNC_STRERROR_R])
:
])
--- /home/cvs/libidn/gl/m4/strerror_r.m4 2004/10/02 18:06:10 NONE
+++ /home/cvs/libidn/gl/m4/strerror_r.m4 2004/10/02 18:06:10 1.1
#serial 1003
# Experimental replacement for the function in the latest CVS autoconf.
# Use with the error.c file in ../lib.
# Copyright 2001 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
undefine([AC_FUNC_STRERROR_R])
# AC_FUNC_STRERROR_R
# ------------------
AC_DEFUN([AC_FUNC_STRERROR_R],
[AC_CHECK_DECLS([strerror_r])
AC_CHECK_FUNCS([strerror_r])
AC_CACHE_CHECK([whether strerror_r returns char *],
ac_cv_func_strerror_r_char_p,
[
ac_cv_func_strerror_r_char_p=no
if test $ac_cv_have_decl_strerror_r = yes; then
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
[[
char buf[100];
char x = *strerror_r (0, buf, sizeof buf);
char *p = strerror_r (0, buf, sizeof buf);
]])],
ac_cv_func_strerror_r_char_p=yes)
else
# strerror_r is not declared. Choose between
# systems that have relatively inaccessible declarations for the
# function. BeOS and DEC UNIX 4.0 fall in this category, but the
# former has a strerror_r that returns char*, while the latter
# has a strerror_r that returns `int'.
# This test should segfault on the DEC system.
AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT
extern char *strerror_r ();],
[[char buf[100];
char x = *strerror_r (0, buf, sizeof buf);
exit (!isalpha (x));]])],
ac_cv_func_strerror_r_char_p=yes, , :)
fi
])
if test $ac_cv_func_strerror_r_char_p = yes; then
AC_DEFINE([STRERROR_R_CHAR_P], 1,
[Define to 1 if strerror_r returns char *.])
fi
])# AC_FUNC_STRERROR_R
- CVS libidn/gl/m4,
libidn-commit <=