export TEST_FINDS_EXE=Y
export CONFIG_SHELL=sh
export INSTALL="/dev/env/DJDIR/bin/ginstall -c"
export CFLAGS="-gstabs+ -O2"
PATH_EXPAND=N

# Modified from a script by Andris Pavenis
case x`find --version 2>&1` in
  "xGNU find"*) ;;
  "xFIND: "*) echo "Error: MS Find detected instead of GNU Find. In the PATH variable,"
              echo "the DJGPP directory must come before the system directories."
              exit 1 ;;
  *) echo "Error: GNU Find not detected. Please install."
esac

# Create the --srcdir argument

srcdir=`cd .. ; pwd`

# Strip drive letter. Autoconf 2.13 and earlier can't handle it.
case ${srcdir} in
  ?:*) srcdir=${srcdir:2} ;;
 /dev/?/*) srcdir=${srcdir:6} ;;
esac

export PATH_SEPARATOR=:
export PATH_EXPAND=Y

# Now configure this mamajama
sh ../configure --disable-nls --prefix=/dev/env/DJDIR \
                --enable-bfd-assembler --srcdir=$srcdir $*
