#! /bin/sh

# This is the config.site file for configuring GNU packages
# which are to be built with DJGPP tools.


# Include the djgpp subdirectory in PATH, so that getconf is found
PATH="$srcdir/djgpp:$PATH"

# These two variables are required, otherwise looking for
# programs along the PATH will not work.
PATH_SEPARATOR=:
PATH_EXPAND=y

# This is required in for "test -f foo" to find foo.exe
export TEST_FINDS_EXE=y

# The root of the DJGPP tree serves as the default prefix
test "x$prefix" = xNONE && prefix='/dev/env/DJDIR'

# This is required for config.status script to be run, since
# ./configure runs it by invoking ${CONFIG_SHELL-/bin/sh}
CONFIG_SHELL=${CONFIG_SHELL='sh'}

# These are set here so the generated Makefile's will be good
# for every DJGPP installation, not only the one where the
# package was configured.
# $INSTALL must be an absolute path name, otherwise config.status
# will try to prepend ./ and ../ to it when it goes into subdirs.
INSTALL=${INSTALL='/dev/env/DJDIR/bin/ginstall -c'}
GMSGFMT=${GMSGFMT='/dev/env/DJDIR/bin/msgfmt'}
MSGFMT=${MSGFMT='/dev/env/DJDIR/bin/msgfmt'}
MSGMERGE=${MSGMERGE='/dev/env/DJDIR/bin/msgmerge'}
XGETTEXT=${XGETTEXT='/dev/env/DJDIR/bin/xgettext'}
AWK=${AWK='gawk'}

# A sane default for emacs.
ac_cv_path_EMACS=${EMACS='/dev/env/DJDIR/gnu/emacs/bin/emacs'}

# A sane default for m4.
ac_cv_path_M4=${M4='/dev/env/DJDIR/bin/m4'}

# A sane default for grep.
ac_cv_path_GREP=${GREP='/dev/env/DJDIR/bin/grep'}

# A sane default for egrep.
ac_cv_path_EGREP=${EGREP='/dev/env/DJDIR/bin/egrep'}

# A sane default for fgrep.
ac_cv_path_FGREP=${FGREP='/dev/env/DJDIR/bin/fgrep'}

# A sane default for sed.
ac_cv_path_SED=${SED='/dev/env/DJDIR/bin/sed'}

# A sane default for makeinfo.
ac_cv_path_MAKEINFO=${MAKEINFO='/dev/env/DJDIR/bin/makeinfo'}

# A sane default for makeinfo.
ac_cv_path_INSTALL_INFO=${INSTALL_INFO='/dev/env/DJDIR/bin/install-info'}

# A sane default for roff.
ac_cv_path_ROFF=${ROFF='/dev/env/DJDIR/bin/groff'}

# A sane default for groff.
ac_cv_path_GROFF=${GROFF='/dev/env/DJDIR/bin/groff'}

# A sane default for nroff.
ac_cv_path_NROFF=${NROFF='/dev/env/DJDIR/bin/nroff'}

# A sane default for soelim.
ac_cv_path_SOELIM='/dev/env/DJDIR/bin/soelim'

# A sane default for pic.
ac_cv_path_PIC='/dev/env/DJDIR/bin/pic'

# A sane default for perl.
ac_cv_path_PERL=${PERL='/dev/env/DJDIR/bin/perl'}

# A sane default for mkdir.
ac_cv_path_mkdir=${MKDIR_P='/dev/env/DJDIR/bin/mkdir -p'}

# A sane default for rm.
ac_cv_path_RM=${RM='/dev/env/DJDIR/bin/rm'}

# A sane default for mv.
ac_cv_path_MV=${MV='/dev/env/DJDIR/bin/mv'}

# A sane default for tar.
ac_cv_path_TAR=${TAR='/dev/env/DJDIR/bin/tar'}

# A sane default for pr.
ac_cv_path_PR_PROGRAM=${PR='/dev/env/DJDIR/bin/pr'}

# A sane default for ed.
ac_cv_path_ed_PROGRAM=${ED='/dev/env/DJDIR/bin/ed'}

# A sane default for texi2dvi.
ac_cv_path_TEXI2DVI=${TEXI2DVI='texi2dvi'}

# A sane default for texi2pdf.
ac_cv_path_TEXI2PDF=${TEXI2PDF='texi2pdf'}

# A sane default for dvips.
ac_cv_path_DVIPS=${DVIPS='dvips'}

# A sane default for ps2pdf.
ac_cv_path_PS2PDF=${PS2PDF='ps2pdf'}

# A sane default for bash.
ac_cv_path_TEST_SHELL=${TEST_SHELL='/dev/env/DJDIR/bin/bash'}

# A sane default for mktemp.
ac_cv_path_MKTEMP=${MKTEMP='/dev/env/DJDIR/bin/mktemp'}

# These are set here so the generated libtool will be good
# for every DJGPP installation, not only the one where the
# package was configured.
AR=${AR='/dev/env/DJDIR/bin/ar'}
LD=${LD='/dev/env/DJDIR/bin/ld'}
NM=${NM='/dev/env/DJDIR/bin/nm'}
STRIP=${STRIP='/dev/env/DJDIR/bin/strip'}
RANLIB=${RANLIB='/dev/env/DJDIR/bin/ranlib'}

# These are set here so the generated config.h will be good
# for every DJGPP installation, not only the one where the
# package was configured.
gl_cv_absolute_stdint_h=${gl_cv_absolute_stdint_h='/dev/env/DJDIR/include/stdint.h'}
gl_cv_absolute_string_h=${gl_cv_absolute_string_h='/dev/env/DJDIR/include/string.h'}
gl_cv_absolute_sys_stat_h=${gl_cv_absolute_sys_stat_h='/dev/env/DJDIR/include/sys/stat.h'}
gl_cv_absolute_sys_time_h=${gl_cv_absolute_sys_time_h='/dev/env/DJDIR/include/sys/time.h'}
gl_cv_absolute_inttypes_h=${gl_cv_absolute_inttypes_h='/dev/env/DJDIR/include/inttypes.h'}
gl_cv_absolute_unistd_h=${gl_cv_absolute_unistd_h='/dev/env/DJDIR/include/unistd.h'}
gl_cv_absolute_wchar_h=${gl_cv_absolute_wchar_h='/dev/env/DJDIR/include/wchar.h'}
gl_cv_absolute_wctype_h=${gl_cv_absolute_wctype_h='/dev/env/DJDIR/include/wctype.h'}
gl_cv_absolute_stdlib_h=${gl_cv_absolute_stdlib_h='/dev/env/DJDIR/include/stdlib.h'}

# Force the test for 'ln -s' to report 'cp -pf'.
ac_cv_prog_LN_S='cp -pf'

# There is no fork and vfork functionality.
ac_cv_func_fork=no
ac_cv_func_fork_works=no
ac_cv_func_vfork=no
ac_cv_func_vfork_works=no

# Ensure that always old GNU extern inline semantics is used
# (aka -fgnu89-inline) even if ISO C99 semantics has been specified.
case $(gcc --version 2>/dev/null | sed "/^.* \([1-9]\+\.[0-9]\+[.0-9]*\).*$/!d;s/^.* \([1-9]\+\.[0-9]\+[.0-9]*\).*$/\1/") in
[1-3].*|4.[0-1][.0-9]* )  CFLAGS=${CFLAGS='-g2 -O2 -march=i386 -mtune=i586'};;
* )                       CFLAGS=${CFLAGS='-g2 -O2 -fgnu89-inline -march=i386 -mtune=i586'};;
esac

# The default check for functionality provided by
# libtiff 3.9.4. does not work well so give same assistance.
ac_cv_lib_tiff_TIFFOpen=yes
ac_cv_lib_tiff_TIFFClientOpen=yes
ac_cv_lib_tiff_TIFFIsByteSwapped=yes


# DJGPP's implementation of printf survives out-of-memory conditions.
gl_cv_func_printf_enomem=yes
