summaryrefslogtreecommitdiff
path: root/config/libtool.m4
diff options
context:
space:
mode:
authorPeter Eisentraut2002-03-29 17:32:55 +0000
committerPeter Eisentraut2002-03-29 17:32:55 +0000
commit7c1ff354105e2256d7904497d8e282ccec53d2e6 (patch)
treeae1c9485bf5eda1e049d11e327d5c759da2c19d2 /config/libtool.m4
parenteb1ee9e63f1076753769f4ef1e8e0a93898a3e34 (diff)
Upgrade to Autoconf version 2.53. Replaced many custom macro
calls with new or now-built-in versions. Make sure that all calls to AC_DEFINE have a third argument, for possible use of autoheader in the future.
Diffstat (limited to 'config/libtool.m4')
-rw-r--r--config/libtool.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/config/libtool.m4 b/config/libtool.m4
index de4bd25637c..798420d5bce 100644
--- a/config/libtool.m4
+++ b/config/libtool.m4
@@ -29,7 +29,7 @@
# ... bunch of stuff removed here ...
# AC_PROG_LD - find the path to the GNU or non-GNU linker
-AC_DEFUN(AC_PROG_LD,
+AC_DEFUN([AC_PROG_LD],
[AC_ARG_WITH(gnu-ld,
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
@@ -37,7 +37,7 @@ AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
dnl ###not for PostgreSQL### AC_REQUIRE([AC_CANONICAL_BUILD])dnl
ac_prog=ld
-if test "$ac_cv_prog_gcc" = yes; then
+if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
AC_MSG_CHECKING([for ld used by GCC])
case $host in
@@ -105,7 +105,7 @@ test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_PROG_LD_GNU
])
-AC_DEFUN(AC_PROG_LD_GNU,
+AC_DEFUN([AC_PROG_LD_GNU],
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then