Commit e5da599a by Ulrich Drepper Committed by Jeff Law

configure.in: Recognize target *vxworks* and add fragment vxworks.mt.

        * configure.in: Recognize target *vxworks* and add fragment vxworks.mt.
        * config/vxworks.mt: New file.
        * gen-params: Let configure override HAVE_PRINTF_FP.

From-SVN: r29679
parent 40d0e0df
...@@ -40,6 +40,12 @@ Sun May 30 14:25:02 1999 Eric Raskin (ehr@listworks.com) ...@@ -40,6 +40,12 @@ Sun May 30 14:25:02 1999 Eric Raskin (ehr@listworks.com)
* libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined. * libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined.
1999-05-14 Ulrich Drepper <drepper@cygnus.com>
* configure.in: Recognize target *vxworks* and add fragment vxworks.mt.
* config/vxworks.mt: New file.
* gen-params: Let configure override HAVE_PRINTF_FP.
1999-05-12 Jason Merrill <jason@yorick.cygnus.com> 1999-05-12 Jason Merrill <jason@yorick.cygnus.com>
* configure.in (compiler_name): Don't do the skip-this-dir thing * configure.in (compiler_name): Don't do the skip-this-dir thing
......
G_CONFIG_ARGS = HAVE_PRINTF_FP=0 HAVE_LONG_DOUBLE_IO=0
...@@ -62,6 +62,7 @@ case "${target}" in ...@@ -62,6 +62,7 @@ case "${target}" in
*-isc*) frags=isc.mt ;; *-isc*) frags=isc.mt ;;
*-netware*) frags=netware.mt ;; *-netware*) frags=netware.mt ;;
*-dgux*) frags=dgux.mt ;; *-dgux*) frags=dgux.mt ;;
*vxworks*) frags="vxworks.mt" ;;
*) frags=${target_cpu}.mt ;; *) frags=${target_cpu}.mt ;;
esac esac
......
...@@ -708,20 +708,25 @@ if test -n "${USE_INT32_FLAGS}" ; then ...@@ -708,20 +708,25 @@ if test -n "${USE_INT32_FLAGS}" ; then
echo "#define ${macro_prefix}USE_INT32_FLAGS 1" echo "#define ${macro_prefix}USE_INT32_FLAGS 1"
fi fi
# A little test program to check if __printf_fp is available. if test -n "$HAVE_PRINTF_FP"; then
cat >dummy.c <<EOF echo "#define ${macro_prefix}HAVE_PRINTF_FP $HAVE_PRINTF_FP"
echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO $HAVE_LONG_DOUBLE_IO"
else
# A little test program to check if __printf_fp is available.
cat >dummy.c <<EOF
int main() int main()
{ {
return __printf_fp (); return __printf_fp ();
} }
EOF EOF
if ${CC} dummy.c >/dev/null 2>&1 ; then if ${CC} dummy.c >/dev/null 2>&1 ; then
echo "#define ${macro_prefix}HAVE_PRINTF_FP 1" echo "#define ${macro_prefix}HAVE_PRINTF_FP 1"
echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 1" echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 1"
else else
echo "#define ${macro_prefix}HAVE_PRINTF_FP 0" echo "#define ${macro_prefix}HAVE_PRINTF_FP 0"
echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 0" echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 0"
fi
fi fi
# Uncomment the following line if you don't have working templates. # Uncomment the following line if you don't have working templates.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment