mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
configure: libtool 1.5 tweaks
This commit is contained in:
parent
7111ca6f5f
commit
34f9ec0c54
40
buildconf
40
buildconf
@ -6,7 +6,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
@ -315,7 +315,7 @@ for fname in .deps \
|
|||||||
libcurl.pc \
|
libcurl.pc \
|
||||||
libtool \
|
libtool \
|
||||||
libtool.m4 \
|
libtool.m4 \
|
||||||
libtool.m4.bak \
|
libtool.m4.tmp \
|
||||||
ltmain.sh \
|
ltmain.sh \
|
||||||
ltoptions.m4 \
|
ltoptions.m4 \
|
||||||
ltsugar.m4 \
|
ltsugar.m4 \
|
||||||
@ -339,33 +339,41 @@ fi
|
|||||||
echo "buildconf: running libtoolize"
|
echo "buildconf: running libtoolize"
|
||||||
$libtoolize --copy --automake --force || die "The libtoolize command failed"
|
$libtoolize --copy --automake --force || die "The libtoolize command failed"
|
||||||
|
|
||||||
|
# When using libtool 1.5.X (X < 26) we copy libtool.m4 to our local m4
|
||||||
|
# subdirectory and this local copy is patched to fix some warnings that
|
||||||
|
# are triggered when running aclocal and using autoconf 2.62 or later.
|
||||||
|
|
||||||
if test "$lt_major" = "1" && test "$lt_minor" = "5"; then
|
if test "$lt_major" = "1" && test "$lt_minor" = "5"; then
|
||||||
if test -z "$lt_patch" || test "$lt_patch" -lt "26"; then
|
if test -z "$lt_patch" || test "$lt_patch" -lt "26"; then
|
||||||
if test -f m4/libtool.m4; then
|
echo "buildconf: copying libtool.m4 to local m4 subdir"
|
||||||
our_libtool_m4='m4/libtool.m4'
|
ac_dir=`${ACLOCAL:-aclocal} --print-ac-dir`
|
||||||
elif test -f libtool.m4; then
|
if test -f $ac_dir/libtool.m4; then
|
||||||
our_libtool_m4='libtool.m4'
|
cp -f $ac_dir/libtool.m4 m4/libtool.m4
|
||||||
|
else
|
||||||
|
echo "buildconf: $ac_dir/libtool.m4 not found"
|
||||||
fi
|
fi
|
||||||
if test -n "$our_libtool_m4"; then
|
if test -f m4/libtool.m4; then
|
||||||
echo "buildconf: running libtoolize hack to rename some variables"
|
echo "buildconf: renaming some variables in local m4/libtool.m4"
|
||||||
$PERL -i.bak -pe \
|
$PERL -i.tmp -pe \
|
||||||
's/lt_prog_compiler_pic_works/lt_cv_prog_compiler_pic_works/g; \
|
's/lt_prog_compiler_pic_works/lt_cv_prog_compiler_pic_works/g; \
|
||||||
s/lt_prog_compiler_static_works/lt_cv_prog_compiler_static_works/g;' \
|
s/lt_prog_compiler_static_works/lt_cv_prog_compiler_static_works/g;' \
|
||||||
$our_libtool_m4
|
m4/libtool.m4
|
||||||
|
rm -f m4/libtool.m4.tmp
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -f m4/libtool.m4; then
|
||||||
|
echo "buildconf: converting all mv to mv -f in local m4/libtool.m4"
|
||||||
|
$PERL -i.tmp -pe 's/\bmv +([^-\s])/mv -f $1/g' m4/libtool.m4
|
||||||
|
rm -f m4/libtool.m4.tmp
|
||||||
|
fi
|
||||||
|
|
||||||
echo "buildconf: running aclocal"
|
echo "buildconf: running aclocal"
|
||||||
${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS || die "The aclocal command line failed"
|
${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS || die "The aclocal command line failed"
|
||||||
|
|
||||||
if test -n "$PERL"; then
|
echo "buildconf: converting all mv to mv -f in local aclocal.m4"
|
||||||
echo "buildconf: running aclocal hack to convert all mv to mv -f"
|
|
||||||
$PERL -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
|
$PERL -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
|
||||||
else
|
|
||||||
echo "buildconf: perl not found"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "buildconf: running autoheader"
|
echo "buildconf: running autoheader"
|
||||||
${AUTOHEADER:-autoheader} || die "The autoheader command failed"
|
${AUTOHEADER:-autoheader} || die "The autoheader command failed"
|
||||||
|
@ -26,6 +26,7 @@ AC_PREREQ(2.57)
|
|||||||
dnl We don't know the version number "statically" so we use a dash here
|
dnl We don't know the version number "statically" so we use a dash here
|
||||||
AC_INIT([curl], [-], [a suitable curl mailing list: http://curl.haxx.se/mail/])
|
AC_INIT([curl], [-], [a suitable curl mailing list: http://curl.haxx.se/mail/])
|
||||||
|
|
||||||
|
XC_OVR_ZZ50
|
||||||
CURL_OVERRIDE_AUTOCONF
|
CURL_OVERRIDE_AUTOCONF
|
||||||
|
|
||||||
dnl configure script copyright
|
dnl configure script copyright
|
||||||
|
1
m4/.gitignore
vendored
1
m4/.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
libtool.m4
|
libtool.m4
|
||||||
|
libtool.m4.tmp
|
||||||
ltoptions.m4
|
ltoptions.m4
|
||||||
ltsugar.m4
|
ltsugar.m4
|
||||||
ltversion.m4
|
ltversion.m4
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
# File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 4
|
# serial 5
|
||||||
|
|
||||||
dnl CURL_OVERRIDE_AUTOCONF
|
dnl CURL_OVERRIDE_AUTOCONF
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
@ -16,16 +16,6 @@ AC_BEFORE([$0],[AC_PROG_LIBTOOL])
|
|||||||
# using curl-override.m4
|
# using curl-override.m4
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Override some Libtool tests
|
|
||||||
dnl -------------------------------------------------
|
|
||||||
dnl This is done to prevent Libtool 1.5.X from doing
|
|
||||||
dnl unnecesary C++, Fortran and Java tests and reduce
|
|
||||||
dnl resulting configure script by nearly 300 Kb.
|
|
||||||
|
|
||||||
m4_define([AC_LIBTOOL_LANG_CXX_CONFIG],[:])
|
|
||||||
m4_define([AC_LIBTOOL_LANG_F77_CONFIG],[:])
|
|
||||||
m4_define([AC_LIBTOOL_LANG_GCJ_CONFIG],[:])
|
|
||||||
|
|
||||||
dnl Override Autoconf's AC_LANG_PROGRAM (C)
|
dnl Override Autoconf's AC_LANG_PROGRAM (C)
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl This is done to prevent compiler warning
|
dnl This is done to prevent compiler warning
|
||||||
|
60
m4/zz50-xc-ovr.m4
Normal file
60
m4/zz50-xc-ovr.m4
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
#---------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# zz50-xc-ovr.m4
|
||||||
|
#
|
||||||
|
# Copyright (c) 2011 Daniel Stenberg <daniel@haxx.se>
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, and distribute this software for any
|
||||||
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
# copyright notice and this permission notice appear in all copies.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
#
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
|
||||||
|
dnl The funny name of this file is intentional in order to make it
|
||||||
|
dnl sort alphabetically after any libtool, autoconf or automake
|
||||||
|
dnl provided .m4 macro file that might get copied into this same
|
||||||
|
dnl subdirectory. This allows that macro (re)definitions from this
|
||||||
|
dnl file may override those provided in other files.
|
||||||
|
|
||||||
|
|
||||||
|
dnl Override some language related macros
|
||||||
|
dnl -------------------------------------------------
|
||||||
|
dnl This is done to prevent Libtool 1.5.X from doing
|
||||||
|
dnl unnecesary C++, Fortran and Java tests when only
|
||||||
|
dnl using C language and reduce resulting configure
|
||||||
|
dnl script by nearly 300 Kb.
|
||||||
|
|
||||||
|
m4_ifdef([AC_LIBTOOL_LANG_CXX_CONFIG],
|
||||||
|
[m4_undefine([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
||||||
|
m4_define([AC_LIBTOOL_LANG_CXX_CONFIG],[:])
|
||||||
|
|
||||||
|
m4_ifdef([AC_LIBTOOL_LANG_F77_CONFIG],
|
||||||
|
[m4_undefine([AC_LIBTOOL_LANG_F77_CONFIG])])
|
||||||
|
m4_define([AC_LIBTOOL_LANG_F77_CONFIG],[:])
|
||||||
|
|
||||||
|
m4_ifdef([AC_LIBTOOL_LANG_GCJ_CONFIG],
|
||||||
|
[m4_undefine([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
||||||
|
m4_define([AC_LIBTOOL_LANG_GCJ_CONFIG],[:])
|
||||||
|
|
||||||
|
|
||||||
|
dnl XC_OVR_ZZ50
|
||||||
|
dnl -------------------------------------------------
|
||||||
|
dnl Placing a call to this macro in configure.ac will
|
||||||
|
dnl make macros in this file visible to other macros
|
||||||
|
dnl used for same configure script, overriding those
|
||||||
|
dnl provided elsewhere.
|
||||||
|
|
||||||
|
AC_DEFUN([XC_OVR_ZZ50],
|
||||||
|
[AC_BEFORE([$0],[AC_PROG_LIBTOOL])])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user