* configure.in: Check for fdopen.

* configure, config.in: Rebuild.
	* opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or
	__GO32__.  Reindent a bit.
This commit is contained in:
Ian Lance Taylor 1997-07-22 19:11:04 +00:00
parent 5697f15271
commit 60f1ad85ac
4 changed files with 38 additions and 4 deletions

View File

@ -1,3 +1,10 @@
Tue Jul 22 15:09:12 1997 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Check for fdopen.
* configure, config.in: Rebuild.
* opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or
__GO32__. Reindent a bit.
Sun Jul 20 20:05:20 1997 Ian Lance Taylor <ian@cygnus.com>
* sunos.c (sunos_create_dynamic_sections): Set SEC_LINKER_CREATED

View File

@ -1,14 +1,29 @@
/* config.in. Generated automatically from configure.in by autoheader. */
/* Whether strstr must be declared even if <string.h> is included. */
#undef NEED_DECLARATION_STRSTR
/* Whether malloc must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_MALLOC
/* Whether realloc must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_REALLOC
/* Whether free must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_FREE
/* Whether getenv must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_GETENV
/* Define if you have a working `mmap' system call. */
#undef HAVE_MMAP
/* Define if you need to in order for stat and other things to work. */
#undef _POSIX_SOURCE
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
/* Do we need to use the b modifier when opening binary files? */
#undef USE_BINARY_FOPEN
@ -24,6 +39,9 @@
/* Define if you have the fcntl function. */
#undef HAVE_FCNTL
/* Define if you have the fdopen function. */
#undef HAVE_FDOPEN
/* Define if you have the getpagesize function. */
#undef HAVE_GETPAGESIZE
@ -33,6 +51,12 @@
/* Define if you have the mprotect function. */
#undef HAVE_MPROTECT
/* Define if you have the setitimer function. */
#undef HAVE_SETITIMER
/* Define if you have the sysconf function. */
#undef HAVE_SYSCONF
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
@ -51,6 +75,9 @@
/* Define if you have the <sys/file.h> header file. */
#undef HAVE_SYS_FILE_H
/* Define if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* Define if you have the <time.h> header file. */
#undef HAVE_TIME_H

4
bfd/configure vendored
View File

@ -1327,7 +1327,7 @@ EOF
fi
for ac_func in fcntl getpagesize setitimer sysconf
for ac_func in fcntl getpagesize setitimer sysconf fdopen
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1334: checking for $ac_func" >&5
@ -1925,7 +1925,7 @@ fi
if test -n "$enable_targets" ; then
for targ in `echo $enable_targets | sed 's/,/ /g'`
do
result=`$ac_config_sub $targ 2>/dev/null`
result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
if test -n "$result" ; then
canon_targets="$canon_targets $result"
else

View File

@ -136,7 +136,7 @@ BFD_CC_FOR_BUILD
AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
AC_HEADER_TIME
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf)
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen)
BFD_BINARY_FOPEN
@ -352,7 +352,7 @@ AC_SUBST(COREFLAG)
if test -n "$enable_targets" ; then
for targ in `echo $enable_targets | sed 's/,/ /g'`
do
result=`$ac_config_sub $targ 2>/dev/null`
result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
if test -n "$result" ; then
canon_targets="$canon_targets $result"
else