mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-27 06:09:57 +08:00
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.
This commit is contained in:
parent
a4e7c8d41b
commit
baf8599e6f
33
ChangeLog
33
ChangeLog
@ -1,3 +1,36 @@
|
||||
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.
|
||||
|
3
NEWS
3
NEWS
@ -36,6 +36,9 @@ New in 1.9h: 2005-??-??; CVS version 2.1a, Libtool team:
|
||||
* 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.
|
||||
|
||||
New in 1.9f: 2004-10-23; CVS version 1.9e, Libtool team:
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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
|
||||
@ -40,15 +40,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
#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'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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
|
||||
@ -40,22 +40,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
#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"
|
||||
|
@ -1,11 +1,11 @@
|
||||
# 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])
|
||||
# ------------------------------------------
|
||||
@ -285,9 +285,8 @@ m4_ifset([AH_HEADER],
|
||||
[])])])
|
||||
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])])
|
||||
|
@ -1,5 +1,5 @@
|
||||
## 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
|
||||
@ -45,12 +45,6 @@ LT_INIT
|
||||
AC_SUBST([LIBTOOL_DEPS])
|
||||
|
||||
|
||||
## ---------------------------- ##
|
||||
## C headers required by cdemo. ##
|
||||
## ---------------------------- ##
|
||||
AC_CHECK_HEADERS([math.h])
|
||||
|
||||
|
||||
## ---------------------------- ##
|
||||
## Libraries required by cdemo. ##
|
||||
## ---------------------------- ##
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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.
|
||||
|
||||
@ -21,9 +21,7 @@ USA. */
|
||||
#include "foo.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_MATH_H
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
int
|
||||
foo()
|
||||
|
@ -1,5 +1,5 @@
|
||||
## 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
|
||||
@ -37,8 +37,6 @@ AM_INIT_AUTOMAKE
|
||||
## compiler checks. ##
|
||||
## ---------------- ##
|
||||
AC_PROG_CC
|
||||
AC_C_CONST
|
||||
AC_EXEEXT
|
||||
|
||||
|
||||
## ----------------------- ##
|
||||
@ -57,12 +55,6 @@ esac
|
||||
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. ##
|
||||
## --------------------------- ##
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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
|
||||
@ -19,10 +19,7 @@ USA. */
|
||||
|
||||
#include "foo.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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.
|
||||
|
||||
@ -21,10 +21,7 @@ USA. */
|
||||
#include "foo.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_MATH_H
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
/* Give a global variable definition. */
|
||||
int nothing = FOO_RET;
|
||||
|
@ -1,5 +1,5 @@
|
||||
## 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
|
||||
@ -37,7 +37,6 @@ AM_INIT_AUTOMAKE
|
||||
## compiler checks. ##
|
||||
## ---------------- ##
|
||||
AC_PROG_CC
|
||||
AC_EXEEXT
|
||||
|
||||
## ----------------------- ##
|
||||
## Libtool initialisation. ##
|
||||
@ -51,12 +50,6 @@ AC_SUBST([LIBTOOL_DEPS])
|
||||
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. ##
|
||||
## ------------------------------ ##
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* 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
|
||||
@ -22,10 +22,7 @@ USA. */
|
||||
|
||||
#include "l3/l3.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_MATH_H
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
int var_l4 = 0;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
## 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
|
||||
@ -46,18 +46,6 @@ AC_F77_LIBRARY_LDFLAGS
|
||||
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. ##
|
||||
## ----------------------- ##
|
||||
|
@ -1,5 +1,5 @@
|
||||
## 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
|
||||
@ -53,19 +53,6 @@ dnl Yes, we want free form Fortran!
|
||||
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. ##
|
||||
## ----------------------- ##
|
||||
|
@ -1,5 +1,5 @@
|
||||
## 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
|
||||
@ -37,7 +37,6 @@ AM_INIT_AUTOMAKE
|
||||
## C compiler checks. ##
|
||||
## ------------------ ##
|
||||
AC_PROG_CC
|
||||
AC_C_CONST
|
||||
|
||||
|
||||
## ----------------------- ##
|
||||
@ -55,12 +54,6 @@ test "X$enable_static" = Xyes && STATIC="-static"
|
||||
AC_SUBST([STATIC])
|
||||
|
||||
|
||||
## ---------------------------- ##
|
||||
## C headers required by mdemo. ##
|
||||
## ---------------------------- ##
|
||||
AC_CHECK_HEADERS([math.h])
|
||||
|
||||
|
||||
## ---------------------------- ##
|
||||
## Libraries required by mdemo. ##
|
||||
## ---------------------------- ##
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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.
|
||||
|
||||
@ -20,10 +20,7 @@ USA. */
|
||||
|
||||
#include "foo.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_MATH_H
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
#define nothing foo1_LTX_nothing
|
||||
#define foo1 foo1_LTX_foo1
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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.
|
||||
|
||||
@ -20,10 +20,7 @@ USA. */
|
||||
|
||||
#include "foo.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_MATH_H
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
#define nothing libfoo2_LTX_nothing
|
||||
#define foo2 libfoo2_LTX_foo2
|
||||
|
@ -1,5 +1,5 @@
|
||||
## 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
|
||||
@ -37,7 +37,6 @@ AM_INIT_AUTOMAKE
|
||||
## C compiler checks. ##
|
||||
## ------------------ ##
|
||||
AC_PROG_CC
|
||||
AC_C_CONST
|
||||
|
||||
|
||||
## ----------------------- ##
|
||||
@ -51,16 +50,6 @@ test "X$enable_static" = Xyes && STATIC="-static"
|
||||
AC_SUBST([STATIC])
|
||||
|
||||
|
||||
## ----------------------------- ##
|
||||
## C headers required by mdemo2. ##
|
||||
## ----------------------------- ##
|
||||
|
||||
|
||||
## ----------------------------- ##
|
||||
## Libraries required by mdemo2. ##
|
||||
## ----------------------------- ##
|
||||
|
||||
|
||||
## -------- ##
|
||||
## Outputs. ##
|
||||
## -------- ##
|
||||
|
@ -1,5 +1,5 @@
|
||||
## 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
|
||||
@ -37,7 +37,6 @@ AM_INIT_AUTOMAKE
|
||||
## C compiler checks. ##
|
||||
## ------------------ ##
|
||||
AC_PROG_CC
|
||||
AC_C_CONST
|
||||
|
||||
|
||||
## ----------------------- ##
|
||||
@ -56,12 +55,6 @@ esac
|
||||
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. ##
|
||||
## ---------------------------- ##
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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
|
||||
@ -19,10 +19,7 @@ USA. */
|
||||
|
||||
#include "foo.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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.
|
||||
|
||||
@ -23,10 +23,7 @@ USA. */
|
||||
#undef _LIBFOO_COMPILATION_
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_MATH_H
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
/* Give a global variable definition. */
|
||||
int nothing = FOO_RET;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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.
|
||||
|
||||
@ -23,10 +23,7 @@ USA. */
|
||||
#undef _LIBFOO_COMPILATION_
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_MATH_H
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
int
|
||||
foo2()
|
||||
|
@ -1,5 +1,5 @@
|
||||
## 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
|
||||
@ -69,19 +69,6 @@ using namespace std;
|
||||
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. ##
|
||||
## ----------------------- ##
|
||||
@ -91,12 +78,6 @@ AC_LANG([C++])
|
||||
LT_INIT
|
||||
|
||||
|
||||
## ------------------------------ ##
|
||||
## C headers required by tagdemo. ##
|
||||
## ------------------------------ ##
|
||||
AC_CHECK_HEADERS([math.h])
|
||||
|
||||
|
||||
## ------------------------------ ##
|
||||
## Libraries required by tagdemo. ##
|
||||
## ------------------------------ ##
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- 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.
|
||||
|
||||
@ -30,9 +30,7 @@ namespace std { }
|
||||
using namespace std;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MATH_H
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
// Our C functions.
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user