* NEWS: Update.
* libltdl/argz.c: Do not include strings.h nor memory.h, include
string.h unconditionally.
Patch by Simon Josefsson <jas@extundo.com>.
* libltdl/libltdl/lt__private.h: Likewise.
* libltdl/m4/ltdl.m4 (LTDL_INIT): Do not check for string.h,
strings.h, memory.h.
* tests/cdemo/configure.ac: Assume presence of math.h.
* tests/cdemo/foo.c: Likewise.
* tests/demo/configure.ac: Likewise for math.h, string.h.
Assume 'const'. Drop obsolete AC_EXEEXT.
* tests/demo/dlmain.c: Likewise.
* tests/demo/foo.c: Likewise.
* tests/depdemo/configure.ac: Likewise.
* tests/depdemo/l4/l4.c: Likewise.
* tests/f77demo/configure.ac: Likewise. Also drop obsolete
AC_OBJEXT.
* tests/fcdemo/configure.ac: Likewise.
* tests/mdemo/configure.ac: Likewise.
* tests/mdemo/foo1.c: Likewise.
* tests/mdemo/foo2.c: Likewise.
* tests/mdemo2/configure.ac: Likewise.
* tests/pdemo/configure.ac: Likewise.
* tests/pdemo/longer_file_name_dlmain.c:
* tests/pdemo/longer_file_name_foo.c: Likewise.
* tests/pdemo/longer_file_name_foo2.c: Likewise.
* tests/tagdemo/configure.ac: Likewise.
* tests/tagdemo/foo.cpp: Likewise.
+2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Assume C89 for included headers, and throughout the testsuite.
+
+ * NEWS: Update.
+ * libltdl/argz.c: Do not include strings.h nor memory.h, include
+ string.h unconditionally.
+ Patch by Simon Josefsson <jas@extundo.com>.
+ * libltdl/libltdl/lt__private.h: Likewise.
+ * libltdl/m4/ltdl.m4 (LTDL_INIT): Do not check for string.h,
+ strings.h, memory.h.
+ * tests/cdemo/configure.ac: Assume presence of math.h.
+ * tests/cdemo/foo.c: Likewise.
+ * tests/demo/configure.ac: Likewise for math.h, string.h.
+ Assume 'const'. Drop obsolete AC_EXEEXT.
+ * tests/demo/dlmain.c: Likewise.
+ * tests/demo/foo.c: Likewise.
+ * tests/depdemo/configure.ac: Likewise.
+ * tests/depdemo/l4/l4.c: Likewise.
+ * tests/f77demo/configure.ac: Likewise. Also drop obsolete
+ AC_OBJEXT.
+ * tests/fcdemo/configure.ac: Likewise.
+ * tests/mdemo/configure.ac: Likewise.
+ * tests/mdemo/foo1.c: Likewise.
+ * tests/mdemo/foo2.c: Likewise.
+ * tests/mdemo2/configure.ac: Likewise.
+ * tests/pdemo/configure.ac: Likewise.
+ * tests/pdemo/longer_file_name_dlmain.c:
+ * tests/pdemo/longer_file_name_foo.c: Likewise.
+ * tests/pdemo/longer_file_name_foo2.c: Likewise.
+ * tests/tagdemo/configure.ac: Likewise.
+ * tests/tagdemo/foo.cpp: Likewise.
+
2007-01-24 Reuben Thomas <rrt@sc3d.org> (tiny change)
* doc/libtool.texi (Inter-library dependencies): Fix typo.
* Initial support for the Sun compiler suite on GNU/Linux.
* Improved support for GNU/kFreeBSD and GNU/NetBSD.
* Search paths with GCC on multilib systems like x86_64 have been fixed.
+* The Libtool and libltdl macros and the testsuite now assume a C89
+ environment, consequently do not test for headers such as string.h,
+ strings.h, memory.h any more.
* Bug fixes.
\f
New in 1.9f: 2004-10-23; CVS version 1.9e, Libtool team:
/* argz.c -- argz implementation for non-glibc systems
- Copyright (C) 2004, 2006 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
Originally by Gary V. Vaughan <gary@gnu.org>
NOTE: The canonical source of this file is maintained with the
#include <stdlib.h>
#include <sys/types.h>
#include <errno.h>
-
-#if defined(HAVE_STRING_H)
-# include <string.h>
-#elif defined(HAVE_STRINGS_H)
-# include <strings.h>
-#endif
-#if defined(HAVE_MEMORY_H)
-# include <memory.h>
-#endif
+#include <string.h>
#define EOS_CHAR '\0'
/* lt__private.h -- internal apis for libltdl
- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
Originally by Gary V. Vaughan <gary@gnu.org>
NOTE: The canonical source of this file is maintained with the
#include <ctype.h>
#include <assert.h>
#include <errno.h>
+#include <string.h>
#if defined(HAVE_UNISTD_H)
# include <unistd.h>
#endif
-#if defined(HAVE_STRING_H)
-# include <string.h>
-#else
-# if defined(HAVE_STRINGS_H)
-# include <strings.h>
-# endif
-#endif
-#if defined(HAVE_MEMORY_H)
-# include <memory.h>
-#endif
-
/* Import internal interfaces... */
#include "lt__alloc.h"
#include "lt__dirent.h"
# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
-# Copyright (C) 1999-2006 Free Software Foundation, Inc.
+# Copyright (C) 1999-2007 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
-# serial 10 LTDL_INIT
+# serial 11 LTDL_INIT
# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
# ------------------------------------------
[])])])
AC_SUBST([LT_CONFIG_H])
-AC_CHECK_HEADERS([memory.h unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
+AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
[], [], [AC_INCLUDES_DEFAULT])
-AC_CHECK_HEADERS([string.h strings.h], [break], [], [AC_INCLUDES_DEFAULT])
AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
## Process this file with autoconf to create configure. -*- autoconf -*-
-# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2004, 2005, 2007 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
AC_SUBST([LIBTOOL_DEPS])
-## ---------------------------- ##
-## C headers required by cdemo. ##
-## ---------------------------- ##
-AC_CHECK_HEADERS([math.h])
-
-
## ---------------------------- ##
## Libraries required by cdemo. ##
## ---------------------------- ##
/* foo.c -- trivial test library
- Copyright (C) 1998-1999 Free Software Foundation, Inc.
+ Copyright (C) 1998-1999, 2007 Free Software Foundation, Inc.
Originally by Thomas Tanner <tanner@ffii.org>
This file is part of GNU Libtool.
#include "foo.h"
#include <stdio.h>
-#ifdef HAVE_MATH_H
#include <math.h>
-#endif
int
foo()
## Process this file with autoconf to create configure. -*- autoconf -*-
-# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2004, 2005, 2007 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
## compiler checks. ##
## ---------------- ##
AC_PROG_CC
-AC_C_CONST
-AC_EXEEXT
## ----------------------- ##
AM_CONDITIONAL([BINARY_HELLDL], [test "X$binary_helldl" = Xyes])
-## --------------------------- ##
-## C headers required by demo. ##
-## --------------------------- ##
-AC_CHECK_HEADERS([string.h math.h])
-
-
## --------------------------- ##
## Libraries required by demo. ##
## --------------------------- ##
/* dlmain.c -- hello test program that uses simulated dynamic linking
- Copyright (C) 1996-1999, 2004, 2006 Free Software Foundation, Inc.
+ Copyright (C) 1996-1999, 2004, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Libtool.
This program is free software; you can redistribute it and/or modify
#include "foo.h"
#include <stdio.h>
-
-#ifdef HAVE_STRING_H
#include <string.h>
-#endif
#define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
/* foo.c -- trivial test function for libfoo
- Copyright (C) 1996-1999 Free Software Foundation, Inc.
+ Copyright (C) 1996-1999, 2007 Free Software Foundation, Inc.
Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
This file is part of GNU Libtool.
#include "foo.h"
#include <stdio.h>
-
-#ifdef HAVE_MATH_H
#include <math.h>
-#endif
/* Give a global variable definition. */
int nothing = FOO_RET;
## Process this file with autoconf to create configure. -*- autoconf -*-
-# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2004, 2005, 2007 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
## compiler checks. ##
## ---------------- ##
AC_PROG_CC
-AC_EXEEXT
## ----------------------- ##
## Libtool initialisation. ##
STATIC="\`${CONFIG_SHELL} ./libtool --features | ${SED} -n -e '/enable static/s/^.*\$\$/-static/p'\`"
AC_SUBST([STATIC])
-## ------------------------------ ##
-## C headers required by depdemo. ##
-## ------------------------------ ##
-AC_CHECK_HEADERS([math.h])
-
-
## ------------------------------ ##
## Libraries required by depdemo. ##
## ------------------------------ ##
/* l4.c -- trivial test library
Copyright (C) 1998-1999 Thomas Tanner <tanner@ffii.org>
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Libtool.
This program is free software; you can redistribute it and/or modify
#include "l3/l3.h"
#include <stdio.h>
-
-#ifdef HAVE_MATH_H
#include <math.h>
-#endif
int var_l4 = 0;
## Process this file with autoconf to create configure. -*- autoconf -*-
-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2005, 2007 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
dnl Check for underscoring of external names
AC_F77_WRAPPERS
-# As of the writing of this demo, GNU Autoconf's AC_OBJEXT and
-# AC_EXEEXT macros only works for C compilers!
-# Libtool's setup macro calls AC_OBJEXT and AC_EXEEXT without setting
-# the test language to C. We do it before any libtool setup macros are
-# called so that the proper values are cached beforehand. We also do
-# it before any linker flags (LDFLAGS) are set so that fortran specific
-# ones don't break the tests.
-AC_LANG_PUSH([C])
-AC_OBJEXT
-AC_EXEEXT
-AC_LANG_POP
-
## ----------------------- ##
## Libtool initialisation. ##
## ----------------------- ##
## Process this file with autoconf to create configure. -*- autoconf -*-
-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2005, 2007 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
AC_FC_FREEFORM
AC_LANG_POP
-
-# As of the writing of this demo, GNU Autoconf's AC_OBJEXT and
-# AC_EXEEXT macros only works for C compilers!
-# Libtool's setup macro calls AC_OBJEXT and AC_EXEEXT without setting
-# the test language to C. We do it before any libtool setup macros are
-# called so that the proper values are cached beforehand. We also do
-# it before any linker flags (LDFLAGS) are set so that fortran specific
-# ones don't break the tests.
-AC_LANG_PUSH([C])
-AC_OBJEXT
-AC_EXEEXT
-AC_LANG_POP
-
## ----------------------- ##
## Libtool initialisation. ##
## ----------------------- ##
## Process this file with autoconf to create configure. -*- autoconf -*-
-# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2004, 2005, 2007 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
## C compiler checks. ##
## ------------------ ##
AC_PROG_CC
-AC_C_CONST
## ----------------------- ##
AC_SUBST([STATIC])
-## ---------------------------- ##
-## C headers required by mdemo. ##
-## ---------------------------- ##
-AC_CHECK_HEADERS([math.h])
-
-
## ---------------------------- ##
## Libraries required by mdemo. ##
## ---------------------------- ##
/* foo1.c -- trivial test library
- Copyright (C) 1998-1999 Free Software Foundation, Inc.
+ Copyright (C) 1998-1999, 2007 Free Software Foundation, Inc.
Originally by Thomas Tanner <tanner@ffii.org>
This file is part of GNU Libtool.
#include "foo.h"
#include <stdio.h>
-
-#ifdef HAVE_MATH_H
#include <math.h>
-#endif
#define nothing foo1_LTX_nothing
#define foo1 foo1_LTX_foo1
/* foo2.c -- trivial test library
- Copyright (C) 1998-1999 Free Software Foundation, Inc.
+ Copyright (C) 1998-1999, 2007 Free Software Foundation, Inc.
Originally by Thomas Tanner <tanner@ffii.org>
This file is part of GNU Libtool.
#include "foo.h"
#include <stdio.h>
-
-#ifdef HAVE_MATH_H
#include <math.h>
-#endif
#define nothing libfoo2_LTX_nothing
#define foo2 libfoo2_LTX_foo2
## Process this file with autoconf to create configure. -*- autoconf -*-
-# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2004, 2005, 2007 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
## C compiler checks. ##
## ------------------ ##
AC_PROG_CC
-AC_C_CONST
## ----------------------- ##
AC_SUBST([STATIC])
-## ----------------------------- ##
-## C headers required by mdemo2. ##
-## ----------------------------- ##
-
-
-## ----------------------------- ##
-## Libraries required by mdemo2. ##
-## ----------------------------- ##
-
-
## -------- ##
## Outputs. ##
## -------- ##
## Process this file with autoconf to create configure. -*- autoconf -*-
-# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2004, 2005, 2007 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
## C compiler checks. ##
## ------------------ ##
AC_PROG_CC
-AC_C_CONST
## ----------------------- ##
AM_CONDITIONAL([BINARY_HELLDL], [test "X$binary_helldl" = Xyes])
-## ---------------------------- ##
-## C headers required by pdemo. ##
-## ---------------------------- ##
-AC_CHECK_HEADERS([string.h math.h])
-
-
## ---------------------------- ##
## Libraries required by pdemo. ##
## ---------------------------- ##
/* dlmain.c -- hello test program that uses simulated dynamic linking
- Copyright (C) 1996-1999, 2004, 2006 Free Software Foundation, Inc.
+ Copyright (C) 1996-1999, 2004, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Libtool.
This program is free software; you can redistribute it and/or modify
#include "foo.h"
#include <stdio.h>
-
-#ifdef HAVE_STRING_H
#include <string.h>
-#endif
#define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
/* foo.c -- trivial test function for libfoo
- Copyright (C) 1996-1999 Free Software Foundation, Inc.
+ Copyright (C) 1996-1999, 2007 Free Software Foundation, Inc.
Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
This file is part of GNU Libtool.
#undef _LIBFOO_COMPILATION_
#include <stdio.h>
-
-#ifdef HAVE_MATH_H
#include <math.h>
-#endif
/* Give a global variable definition. */
int nothing = FOO_RET;
/* foo.c -- trivial test function for libfoo
- Copyright (C) 1996-1999 Free Software Foundation, Inc.
+ Copyright (C) 1996-1999, 2007 Free Software Foundation, Inc.
Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
This file is part of GNU Libtool.
#undef _LIBFOO_COMPILATION_
#include <stdio.h>
-
-#ifdef HAVE_MATH_H
#include <math.h>
-#endif
int
foo2()
## Process this file with autoconf to create configure. -*- autoconf -*-
-# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2004, 2005, 2007 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
AC_LANG_POP([C++])
-# As of the writing of this demo, GNU Autoconf's AC_OBJEXT and
-# AC_EXEEXT macros only works for C compilers!
-# Libtool's setup macro calls AC_OBJEXT and AC_EXEEXT without setting
-# the test language to C. We do it before any libtool setup macros are
-# called so that the proper values are cached beforehand. We also do
-# it before any linker flags (LDFLAGS) are set so that C++ specific
-# ones don't break the tests.
-AC_LANG_PUSH([C])
-AC_OBJEXT
-AC_EXEEXT
-AC_LANG_POP
-
-
## ----------------------- ##
## Libtool initialisation. ##
## ----------------------- ##
LT_INIT
-## ------------------------------ ##
-## C headers required by tagdemo. ##
-## ------------------------------ ##
-AC_CHECK_HEADERS([math.h])
-
-
## ------------------------------ ##
## Libraries required by tagdemo. ##
## ------------------------------ ##
// -*- C++ -*-
// foo.cpp -- trivial test library
-// Copyright (C) 1998-2000 Free Software Foundation, Inc.
+// Copyright (C) 1998-2000, 2007 Free Software Foundation, Inc.
// Originally by Thomas Tanner <tanner@ffii.org>
// This file is part of GNU Libtool.
using namespace std;
#endif
-#ifdef HAVE_MATH_H
#include <math.h>
-#endif
// Our C functions.
int