From 084a724c9ac96e3b1fde301e1ba1820b8bc74674 Mon Sep 17 00:00:00 2001 From: rth Date: Sun, 26 Apr 1998 18:09:12 +0000 Subject: [PATCH] * configure.in: Adjust include paths in F2C_INTEGER and F2C_LONGINT tests to work out of the build directory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19419 138bc75d-0d04-0410-961f-82ee72b054a4 --- libf2c/ChangeLog.egcs | 5 +++++ libf2c/configure | 22 +++++++++++++++------- libf2c/configure.in | 12 ++++++++++-- 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/libf2c/ChangeLog.egcs b/libf2c/ChangeLog.egcs index 3c0bcb1342d..d3978cd3d2d 100644 --- a/libf2c/ChangeLog.egcs +++ b/libf2c/ChangeLog.egcs @@ -1,3 +1,8 @@ +Sun Apr 26 18:07:56 1998 Richard Henderson + + * configure.in: Adjust include paths in F2C_INTEGER and F2C_LONGINT + tests to work out of the build directory. + 1998-02-17 Dave Love * libU77/u77-test.f: Tweak some o/p. diff --git a/libf2c/configure b/libf2c/configure index e35980d11c1..b4bfd40bc7c 100755 --- a/libf2c/configure +++ b/libf2c/configure @@ -1719,12 +1719,16 @@ fi echo $ac_n "checking f2c integer type""... $ac_c" 1>&6 echo "configure:1721: checking f2c integer type" >&5 late_ac_cpp=$ac_cpp -ac_cpp="$late_ac_cpp -I$srcdir/../gcc/f -I../../gcc -I$srcdir/../gcc -I$srcdir/../gcc/config" +if test "$srcdir" = . ; then + ac_cpp="$late_ac_cpp -I../../gcc/f -I../../gcc -I../../gcc/config" +else + ac_cpp="$late_ac_cpp -I$srcdir/../gcc/f -I$srcdir/../gcc -I$srcdir/../gcc/config" +fi if eval "test \"`echo '$''{'g77_cv_sys_f2cinteger'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < conftest.$ac_ext <&6 -echo "configure:1786: checking f2c long int type" >&5 +echo "configure:1790: checking f2c long int type" >&5 late_ac_cpp=$ac_cpp -ac_cpp="$late_ac_cpp -I$srcdir/../gcc/f -I../../gcc -I$srcdir/../gcc -I$srcdir/../gcc/config" +if test "$srcdir" = . ; then + ac_cpp="$late_ac_cpp -I../../gcc/f -I../../gcc -I../../gcc/config" +else + ac_cpp="$late_ac_cpp -I$srcdir/../gcc/f -I$srcdir/../gcc -I$srcdir/../gcc/config" +fi if eval "test \"`echo '$''{'g77_cv_sys_f2clongint'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < conftest.$ac_ext <