Fix PR server/20414 - x32 gdbserver always crashes inferior
[deliverable/binutils-gdb.git] / gdb / config / djgpp / djconfig.sh
index 23be0d5fdad2d43e93502ae76d17848bf0572d67..a431fdfc1f17a61b80978ebcde485d884ca8b5cd 100644 (file)
@@ -5,14 +5,14 @@
 # configuring other GNU programs for DJGPP.
 #
 #=====================================================================
-# Copyright 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
 #
 # Originally written by Robert Hoehne, revised by Eli Zaretskii.
-#  This file is part of GDB.
+# This file is part of GDB.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
@@ -21,9 +21,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.  */
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #=====================================================================
 #
 # Call this script like the main configure script with one exception.  If you
@@ -51,10 +49,27 @@ fi
 
 # Make sure they don't have some file names mangled by untarring.
 echo -n "Checking the unpacked distribution..."
-if ( ! test -f ${srcdir}/intl/po2tblsed.in || \
-     ! test -d ${srcdir}/gdb/testsuite/gdb.cxx || \
+if ( ! test -f ${srcdir}/bfd/ChangeLog.0203      || \
+     ! test -f ${srcdir}/gdb/ChangeLog.002       || \
+     ! test -f ${srcdir}/opcodes/ChangeLog.0203  || \
      ! test -f ${srcdir}/readline/config.h-in ) ; then
+  if ( ! test -f ${srcdir}/bfd/ChangeLog.0203 ) ; then
+    notfound=${srcdir}/bfd/ChangeLog.0203
+  else
+    if ( ! test -f ${srcdir}/gdb/ChangeLog.002) ; then
+      notfound=${srcdir}/gdb/ChangeLog.002
+    else
+      if ( ! test -f ${srcdir}/readline/config.h-in ) ; then
+        notfound=${srcdir}/readline/config.h-in
+      else
+        if ( ! test -f ${srcdir}/opcodes/ChangeLog.0203 ) ; then
+          notfound=${srcdir}/opcodes/ChangeLog.0203
+        fi
+      fi
+    fi
+  fi
   echo " FAILED."
+  echo "(File $notfound was not found.)"
   echo ""
   echo "You MUST unpack the sources with the DJTAR command, like this:"
   echo ""
@@ -62,6 +77,7 @@ if ( ! test -f ${srcdir}/intl/po2tblsed.in || \
   echo ""
   echo "where X.YZ is the GDB version, and fnchange.lst can be found"
   echo "in the gdb/config/djgpp/ directory in the GDB distribution."
+  echo ""
   echo "configure FAILED!"
   exit 1
 else
@@ -124,11 +140,13 @@ utod $srcdir/ltmain.sh
 export LD=ld
 export NM=nm
 export CC=gcc
-export CFLAGS="-O2 -g"
+export CXX=gpp
+export CFLAGS="-O2 -ggdb -g3"
 export RANLIB=ranlib
 export DEFAULT_YACC="bison -y"
 export YACC="bison -y"
 export DEFAULT_LEX=flex
+export PATH_SEPARATOR=';'
 # Define explicitly the .exe extension because on W95 with LFN=y
 # the check might fail
 export am_cv_exeext=.exe
@@ -138,6 +156,10 @@ export am_cv_exeext=.exe
 # need all that crap.  Assuming that the environment size is less
 # than 4KB, we can afford 12KB of command-line arguments.
 export lt_cv_sys_max_cmd_len=12288
+# Force depcomp to use _deps rather than .deps as the name of the
+# subdirectory where the *.Po dependency files are put.  File names
+# with leading dots are invalid on DOS 8+3 filesystems.
+export DEPDIR=${DEPDIR:-_deps}
 
 # The configure script needs to see the `install-sh' script, otherwise
 # it decides the source installation is broken.  But "make install" will
@@ -156,7 +178,7 @@ fi
 echo "Running the configure script..."
 $srcdir/configure --srcdir="$srcdir" --prefix='${DJDIR}' \
   --disable-shared --disable-nls --verbose --enable-build-warnings=\
--Wimplicit,-Wcomment,-Wformat,-Wparentheses,-Wpointer-arith $*
+-Wimplicit,-Wcomment,-Wformat,-Wparentheses,-Wpointer-arith,-Wuninitialized $*
 
 if test -f ${srcdir}/install- ; then
   mv ${srcdir}/install- ${srcdir}/install-.sh
This page took 0.040101 seconds and 4 git commands to generate.