summaryrefslogtreecommitdiff
path: root/libf2c/configure.in
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-26 18:09:12 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-26 18:09:12 +0000
commit084a724c9ac96e3b1fde301e1ba1820b8bc74674 (patch)
tree06029f41b4a40a4c1d4adcf108f7f00b19342a44 /libf2c/configure.in
parent0f0d5a69be58a6d116c07a886a15e08f5e774814 (diff)
downloadgcc-084a724c9ac96e3b1fde301e1ba1820b8bc74674.tar.gz
* 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
Diffstat (limited to 'libf2c/configure.in')
-rw-r--r--libf2c/configure.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/libf2c/configure.in b/libf2c/configure.in
index 232b2d43f40..3320f483b8d 100644
--- a/libf2c/configure.in
+++ b/libf2c/configure.in
@@ -253,7 +253,11 @@ fi
# is in ../.. and the config files are in $srcdir/../../config.
AC_MSG_CHECKING(f2c integer type)
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
AC_CACHE_VAL(g77_cv_sys_f2cinteger,
AC_EGREP_CPP(F2C_INTEGER=long int,
[#include "proj.h"
@@ -295,7 +299,11 @@ AC_SUBST(F2C_INTEGER)
AC_MSG_CHECKING(f2c long int type)
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
AC_CACHE_VAL(g77_cv_sys_f2clongint,
AC_EGREP_CPP(F2C_LONGINT=long int,
[#include "proj.h"