configure: Fix mach-o/dyld_images.h detection on OS X.

This commit is contained in:
Austin English 2009-06-13 18:01:24 -05:00 committed by Alexandre Julliard
parent 056131f67e
commit 2d7ccb3862
3 changed files with 81 additions and 2 deletions

70
configure vendored
View File

@ -5786,7 +5786,6 @@ for ac_header in \
linux/serial.h \ linux/serial.h \
linux/types.h \ linux/types.h \
linux/ucdrom.h \ linux/ucdrom.h \
mach-o/dyld_images.h \
mach-o/nlist.h \ mach-o/nlist.h \
mach/mach.h \ mach/mach.h \
mach/machine.h \ mach/machine.h \
@ -5813,6 +5812,7 @@ for ac_header in \
scsi/scsi_ioctl.h \ scsi/scsi_ioctl.h \
scsi/sg.h \ scsi/sg.h \
soundcard.h \ soundcard.h \
stdbool.h \
stdint.h \ stdint.h \
strings.h \ strings.h \
stropts.h \ stropts.h \
@ -6440,6 +6440,74 @@ done
for ac_header in mach-o/dyld_images.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_STDBOOL_H
# include <stdbool.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
eval "$as_ac_Header=yes"
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
for ac_header in resolv.h for ac_header in resolv.h
do do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`

View File

@ -309,7 +309,6 @@ AC_CHECK_HEADERS(\
linux/serial.h \ linux/serial.h \
linux/types.h \ linux/types.h \
linux/ucdrom.h \ linux/ucdrom.h \
mach-o/dyld_images.h \
mach-o/nlist.h \ mach-o/nlist.h \
mach/mach.h \ mach/mach.h \
mach/machine.h \ mach/machine.h \
@ -336,6 +335,7 @@ AC_CHECK_HEADERS(\
scsi/scsi_ioctl.h \ scsi/scsi_ioctl.h \
scsi/sg.h \ scsi/sg.h \
soundcard.h \ soundcard.h \
stdbool.h \
stdint.h \ stdint.h \
strings.h \ strings.h \
stropts.h \ stropts.h \
@ -486,6 +486,14 @@ AC_CHECK_HEADERS([linux/ipx.h],,,
# include <linux/types.h> # include <linux/types.h>
#endif]) #endif])
AC_CHECK_HEADERS([mach-o/dyld_images.h],,,
[#ifdef HAVE_STDBOOL_H
# include <stdbool.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif])
AC_CHECK_HEADERS([resolv.h],,, AC_CHECK_HEADERS([resolv.h],,,
[#include <sys/types.h> [#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H

View File

@ -699,6 +699,9 @@
/* Define to 1 if you have the `statvfs' function. */ /* Define to 1 if you have the `statvfs' function. */
#undef HAVE_STATVFS #undef HAVE_STATVFS
/* Define to 1 if you have the <stdbool.h> header file. */
#undef HAVE_STDBOOL_H
/* Define to 1 if you have the <stdint.h> header file. */ /* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H #undef HAVE_STDINT_H