diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-27 17:39:43 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-27 17:39:43 +0000 |
commit | 24d9c0f4383f788cf140bb972c9464aea17720a6 (patch) | |
tree | ae50f04661ee35d9f3b7cc49004c70a85d016231 /libio | |
parent | e79dda860e56d6355b2f1a419e4cecc71d6268a1 (diff) | |
download | gcc-24d9c0f4383f788cf140bb972c9464aea17720a6.tar.gz |
* configure.in: Recognize target *vxworks* and add fragment vxworks.mt.
* config/vxworks.mt: New file.
* gen-params: Let configure override HAVE_PRINTF_FP.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29679 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio')
-rw-r--r-- | libio/ChangeLog | 6 | ||||
-rw-r--r-- | libio/config/vxworks.mt | 1 | ||||
-rw-r--r-- | libio/configure.in | 1 | ||||
-rwxr-xr-x | libio/gen-params | 21 |
4 files changed, 21 insertions, 8 deletions
diff --git a/libio/ChangeLog b/libio/ChangeLog index f4611ad7250..6c8cf9d2355 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -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. +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> * configure.in (compiler_name): Don't do the skip-this-dir thing diff --git a/libio/config/vxworks.mt b/libio/config/vxworks.mt new file mode 100644 index 00000000000..087e309d66d --- /dev/null +++ b/libio/config/vxworks.mt @@ -0,0 +1 @@ +G_CONFIG_ARGS = HAVE_PRINTF_FP=0 HAVE_LONG_DOUBLE_IO=0 diff --git a/libio/configure.in b/libio/configure.in index 0e363b2b4fd..869d9c8499d 100644 --- a/libio/configure.in +++ b/libio/configure.in @@ -62,6 +62,7 @@ case "${target}" in *-isc*) frags=isc.mt ;; *-netware*) frags=netware.mt ;; *-dgux*) frags=dgux.mt ;; + *vxworks*) frags="vxworks.mt" ;; *) frags=${target_cpu}.mt ;; esac diff --git a/libio/gen-params b/libio/gen-params index afb8f3b03c0..0bcf8bdefa0 100755 --- a/libio/gen-params +++ b/libio/gen-params @@ -708,20 +708,25 @@ if test -n "${USE_INT32_FLAGS}" ; then echo "#define ${macro_prefix}USE_INT32_FLAGS 1" fi -# A little test program to check if __printf_fp is available. -cat >dummy.c <<EOF +if test -n "$HAVE_PRINTF_FP"; then + 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() { return __printf_fp (); } EOF -if ${CC} dummy.c >/dev/null 2>&1 ; then - echo "#define ${macro_prefix}HAVE_PRINTF_FP 1" - echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 1" -else - echo "#define ${macro_prefix}HAVE_PRINTF_FP 0" - echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 0" + if ${CC} dummy.c >/dev/null 2>&1 ; then + echo "#define ${macro_prefix}HAVE_PRINTF_FP 1" + echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 1" + else + echo "#define ${macro_prefix}HAVE_PRINTF_FP 0" + echo "#define ${macro_prefix}HAVE_LONG_DOUBLE_IO 0" + fi fi # Uncomment the following line if you don't have working templates. |