* Makefile.in: add EXTRA_INCS
[deliverable/binutils-gdb.git] / libiberty / configure.in
index cc1b2c2082b107fe8b8562a017f6cc776ff422c7..cc30251514d033d0e5e75a2ecb1899160b68dfd8 100644 (file)
@@ -216,6 +216,11 @@ if test -n "${with_target_subdir}"; then
 
     setobjs=yes
 
+    if test -d ${libiberty_topdir}/newlib
+    then
+      EXTRA_INCS="-I${libiberty_topdir}/newlib/libc/include"
+    fi
+
   fi
 
 else
@@ -225,6 +230,7 @@ else
 
 fi
 
+AC_SUBST(EXTRA_INCS)
 AC_SUBST(CHECK)
 
 if test -z "${setobjs}"; then
@@ -277,10 +283,15 @@ if test -z "${setobjs}"; then
     # provides from our shell variables, so that they appear to be
     # missing.
 
-    funcs="`echo $funcs | sed -e 's/random//'`"
-    LIBOBJS="$LIBOBJS random.o"
-    vars="`echo $vars | sed -e 's/sys_siglist//'`"
-    checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
+    # DJ - only if we're *building* cygwin, not just building *with* cygwin
+
+    if test -n "${with_target_subdir}"
+    then
+      funcs="`echo $funcs | sed -e 's/random//'`"
+      LIBOBJS="$LIBOBJS random.o"
+      vars="`echo $vars | sed -e 's/sys_siglist//'`"
+      checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
+    fi
     ;;
 
   *-*-mingw32*)
This page took 0.038064 seconds and 4 git commands to generate.