e3aa9ebaf7
config: * picflag.m4: New file. gcc: * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it. (PICFLAG_FOR_TARGET): Substitute. * aclocal.m4: Regenerate. * configure: Regenerate. gcc/ada: * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New. (GNATLIBCFLAGS_FOR_C): Replace TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET. (gnatlib-shared-default, gnatlib-shared-dual-win32) (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared) (gnatlib-sjlj, gnatlib-zcx): Likewise. libada: * configure.ac: Include ../config/picflag.m4. (GCC_PICFLAG): Call it. Substitute. * configure: Regenerate. * Makefile.in (TARGET_LIBGCC2_CFLAGS): Replace by PICFLAG. (GNATLIBCFLAGS_FOR_C): Replace TARGET_LIBGCC2_CFLAGS by PICFLAG. (LIBADA_FLAGS_TO_PASS): Pass PICFLAG as PICFLAG_FOR_TARGET. Don't include $(GCC_DIR)/libgcc.mvars. libiberty: * aclocal.m4: Include ../config/picflag.m4. * configure.ac (GCC_PICFLAG): Call it. (enable_shared): Clear PICFLAG unless shared. * configure: Regenerate. From-SVN: r177967
122 lines
4.8 KiB
Plaintext
122 lines
4.8 KiB
Plaintext
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
|
|
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
|
# 2005, 2006, 2007, 2008, 2009 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.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
# PARTICULAR PURPOSE.
|
|
|
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
|
|
# Copyright (C) 2001, 2003, 2005 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.
|
|
|
|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
|
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
|
#
|
|
# Of course, Automake must honor this variable whenever it calls a
|
|
# tool from the auxiliary directory. The problem is that $srcdir (and
|
|
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
# depending on how configure is run. This is pretty annoying, since
|
|
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
# source directory, any form will work fine, but in subdirectories a
|
|
# relative path needs to be adjusted first.
|
|
#
|
|
# $ac_aux_dir/missing
|
|
# fails when called from a subdirectory if $ac_aux_dir is relative
|
|
# $top_srcdir/$ac_aux_dir/missing
|
|
# fails if $ac_aux_dir is absolute,
|
|
# fails when called from a subdirectory in a VPATH build with
|
|
# a relative $ac_aux_dir
|
|
#
|
|
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
# are both prefixed by $srcdir. In an in-source build this is usually
|
|
# harmless because $srcdir is `.', but things will broke when you
|
|
# start a VPATH build or use an absolute $srcdir.
|
|
#
|
|
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|
# and then we would define $MISSING as
|
|
# MISSING="\${SHELL} $am_aux_dir/missing"
|
|
# This will work as long as MISSING is not called from configure, because
|
|
# unfortunately $(top_srcdir) has no meaning in configure.
|
|
# However there are other variables, like CC, which are often used in
|
|
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
#
|
|
# Another solution, used here, is to always expand $ac_aux_dir to an
|
|
# absolute PATH. The drawback is that using absolute paths prevent a
|
|
# configured tree to be moved without reconfiguration.
|
|
|
|
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|
[dnl Rely on autoconf to set up CDPATH properly.
|
|
AC_PREREQ([2.50])dnl
|
|
# expand $ac_aux_dir to an absolute path
|
|
am_aux_dir=`cd $ac_aux_dir && pwd`
|
|
])
|
|
|
|
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
|
|
# 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 6
|
|
|
|
# AM_PROG_CC_C_O
|
|
# --------------
|
|
# Like AC_PROG_CC_C_O, but changed for automake.
|
|
AC_DEFUN([AM_PROG_CC_C_O],
|
|
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
|
|
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
AC_REQUIRE_AUX_FILE([compile])dnl
|
|
# FIXME: we rely on the cache variable name because
|
|
# there is no other way.
|
|
set dummy $CC
|
|
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
|
|
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
|
|
if test "$am_t" != yes; then
|
|
# Losing compiler, so override with the script.
|
|
# FIXME: It is wrong to rewrite CC.
|
|
# But if we don't then we get into trouble of one sort or another.
|
|
# A longer-term fix would be to have automake use am__CC in this case,
|
|
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
|
CC="$am_aux_dir/compile $CC"
|
|
fi
|
|
dnl Make sure AC_PROG_CC is never called again, or it will override our
|
|
dnl setting of CC.
|
|
m4_define([AC_PROG_CC],
|
|
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
|
|
])
|
|
|
|
m4_include([../libtool.m4])
|
|
m4_include([../ltoptions.m4])
|
|
m4_include([../ltsugar.m4])
|
|
m4_include([../ltversion.m4])
|
|
m4_include([../lt~obsolete.m4])
|
|
m4_include([../config/acx.m4])
|
|
m4_include([../config/codeset.m4])
|
|
m4_include([../config/dfp.m4])
|
|
m4_include([../config/gettext-sister.m4])
|
|
m4_include([../config/iconv.m4])
|
|
m4_include([../config/lcmessage.m4])
|
|
m4_include([../config/lib-ld.m4])
|
|
m4_include([../config/lib-link.m4])
|
|
m4_include([../config/lib-prefix.m4])
|
|
m4_include([../config/override.m4])
|
|
m4_include([../config/picflag.m4])
|
|
m4_include([../config/progtest.m4])
|
|
m4_include([../config/stdint.m4])
|
|
m4_include([../config/warnings.m4])
|
|
m4_include([acinclude.m4])
|