aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Tamm2004-10-08 18:36:47 +0000
committerSteven Tamm2004-10-08 18:36:47 +0000
commitcef11da29920a67e534b01241c47ee379926210e (patch)
tree5ae072629c4d1829a3fa703e4f219032fe93be38
parent657f0f9c4e2b7089fcae999a22ac29beeea5914b (diff)
downloademacs-cef11da29920a67e534b01241c47ee379926210e.tar.gz
emacs-cef11da29920a67e534b01241c47ee379926210e.zip
configure.in (HAVE_MALLOC_MALLOC_H): Test for malloc/malloc.h
configure: Rebuild
-rw-r--r--ChangeLog5
-rwxr-xr-xconfigure147
-rw-r--r--configure.in3
3 files changed, 155 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index aa5d01c16f5..3d2545f9056 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12004-10-08 Steven Tamm <steventamm@mac.com>
2
3 * configure.in (HAVE_MALLOC_MALLOC_H): Test for malloc/malloc.h
4 * configure: Rebuild
5
12004-10-06 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 62004-10-06 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 7
3 * configure.in (HAVE_RANDOM_HEAPSTART): Change AC_MSG_ERROR to 8 * configure.in (HAVE_RANDOM_HEAPSTART): Change AC_MSG_ERROR to
diff --git a/configure b/configure
index 83ac957143d..1f01796bb60 100755
--- a/configure
+++ b/configure
@@ -12130,6 +12130,153 @@ fi
12130 12130
12131fi 12131fi
12132 12132
12133if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12134 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12135echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12136if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138fi
12139echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12140echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12141else
12142 # Is the header compilable?
12143echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12144echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12145cat >conftest.$ac_ext <<_ACEOF
12146/* confdefs.h. */
12147_ACEOF
12148cat confdefs.h >>conftest.$ac_ext
12149cat >>conftest.$ac_ext <<_ACEOF
12150/* end confdefs.h. */
12151$ac_includes_default
12152#include <malloc/malloc.h>
12153_ACEOF
12154rm -f conftest.$ac_objext
12155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156 (eval $ac_compile) 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag"
12164 || test ! -s conftest.err'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest.$ac_objext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 ac_header_compiler=yes
12177else
12178 echo "$as_me: failed program was:" >&5
12179sed 's/^/| /' conftest.$ac_ext >&5
12180
12181ac_header_compiler=no
12182fi
12183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185echo "${ECHO_T}$ac_header_compiler" >&6
12186
12187# Is the header present?
12188echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12189echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12190cat >conftest.$ac_ext <<_ACEOF
12191/* confdefs.h. */
12192_ACEOF
12193cat confdefs.h >>conftest.$ac_ext
12194cat >>conftest.$ac_ext <<_ACEOF
12195/* end confdefs.h. */
12196#include <malloc/malloc.h>
12197_ACEOF
12198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } >/dev/null; then
12206 if test -s conftest.err; then
12207 ac_cpp_err=$ac_c_preproc_warn_flag
12208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12209 else
12210 ac_cpp_err=
12211 fi
12212else
12213 ac_cpp_err=yes
12214fi
12215if test -z "$ac_cpp_err"; then
12216 ac_header_preproc=yes
12217else
12218 echo "$as_me: failed program was:" >&5
12219sed 's/^/| /' conftest.$ac_ext >&5
12220
12221 ac_header_preproc=no
12222fi
12223rm -f conftest.err conftest.$ac_ext
12224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12225echo "${ECHO_T}$ac_header_preproc" >&6
12226
12227# So? What about this header?
12228case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12229 yes:no: )
12230 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12231echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12233echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12234 ac_header_preproc=yes
12235 ;;
12236 no:yes:* )
12237 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12238echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12239 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12240echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12242echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12244echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12246echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12248echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12249 (
12250 cat <<\_ASBOX
12251## ------------------------------------------ ##
12252## Report this to the AC_PACKAGE_NAME lists. ##
12253## ------------------------------------------ ##
12254_ASBOX
12255 ) |
12256 sed "s/^/$as_me: WARNING: /" >&2
12257 ;;
12258esac
12259echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12260echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12261if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12265fi
12266echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12267echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12268
12269fi
12270if test $ac_cv_header_malloc_malloc_h = yes; then
12271
12272cat >>confdefs.h <<\_ACEOF
12273#define HAVE_MALLOC_MALLOC_H 1
12274_ACEOF
12275
12276fi
12277
12278
12279
12133if test "${HAVE_CARBON}" = "yes"; then 12280if test "${HAVE_CARBON}" = "yes"; then
12134 12281
12135cat >>confdefs.h <<\_ACEOF 12282cat >>confdefs.h <<\_ACEOF
diff --git a/configure.in b/configure.in
index 4e534a53485..519f826f270 100644
--- a/configure.in
+++ b/configure.in
@@ -2313,6 +2313,9 @@ if test "${with_carbon}" != "no"; then
2313 AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes) 2313 AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes)
2314fi 2314fi
2315 2315
2316dnl Check for malloc/malloc.h on darwin
2317AC_CHECK_HEADER(malloc/malloc.h, AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.]))
2318
2316if test "${HAVE_CARBON}" = "yes"; then 2319if test "${HAVE_CARBON}" = "yes"; then
2317 AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.]) 2320 AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.])
2318 window_system=mac 2321 window_system=mac