about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2004-03-14 11:27:28 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2004-03-14 11:27:28 +0000
commit5b8b7e9f06c3271a3bfaae08f14e030b058fb4af (patch)
tree1a9c67ef10d5e4d42a6e7718de8d173106aac7ac
parentbb9d76469ed0446dc5ee5ae4f03718ad09970b91 (diff)
downloadzsh-5b8b7e9f06c3271a3bfaae08f14e030b058fb4af.tar.gz
zsh-5b8b7e9f06c3271a3bfaae08f14e030b058fb4af.tar.xz
zsh-5b8b7e9f06c3271a3bfaae08f14e030b058fb4af.zip
19619: fix problem with getting signals on MacOS X 10.1
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac7
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c7af32d22..ef37645b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-14  Oliver Kiddle  <opk@zsh.org>
+
+	* 19619: configure.ac: fix problem with getting signals
+	on MacOS X 10.1
+
 2004-03-12  Peter Stephenson  <pws@csr.com>
 
 	* zsh-users/7160: Src/Zle/zle_misc.c, Src/Zle/zle_utils.c,
diff --git a/configure.ac b/configure.ac
index b47111194..a316f2954 100644
--- a/configure.ac
+++ b/configure.ac
@@ -412,6 +412,11 @@ AC_PROG_CPP                 dnl Figure out how to run C preprocessor.
 AC_PROG_GCC_TRADITIONAL     dnl Do we need -traditional flag for gcc.
 AC_C_CONST                  dnl Does compiler support `const'.
 
+dnl Default preprocessing on Mac OS X produces warnings
+case "$host_os" in
+  darwin*) CPP="$CPP -traditional-cpp" ;;
+esac
+
 fp_PROG_CC_STDC
 AC_MSG_CHECKING([whether to use prototypes])
 if test ."$ansi2knr" = .yes || test ."$ansi2knr" = .no; then
@@ -1232,7 +1237,7 @@ dnl slashes rather than doubled backslashes in the path.
 echo "#include <errno.h>" > nametmp.c
 errfile_list="`$CPP nametmp.c |
 sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
-       -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
+       -e 's/^#[ 	0-9].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
 $AWK '{ if (\$1 ~ \"err\") files[[\$1]] = \$1 }
   END { for (var in files) print var }'`"