aboutsummaryrefslogtreecommitdiff
path: root/m4/intdiv0.m4
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-27 18:36:44 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-27 18:36:44 +0000
commit4f86276385dfd9fcbac0b7d774a8f69d9fea7bcf (patch)
treea8a5a984b8e48b991896dc56f840725bbaa69e51 /m4/intdiv0.m4
parent171de1ba8843fdd06eca8844b70bbf0fcd2956d5 (diff)
downloadlibmicrohttpd-4f86276385dfd9fcbac0b7d774a8f69d9fea7bcf.tar.gz
libmicrohttpd-4f86276385dfd9fcbac0b7d774a8f69d9fea7bcf.zip
-update autotools logic to work nicely with the 'GNU libmicohttpd' package name
Diffstat (limited to 'm4/intdiv0.m4')
-rw-r--r--m4/intdiv0.m417
1 files changed, 10 insertions, 7 deletions
diff --git a/m4/intdiv0.m4 b/m4/intdiv0.m4
index 289c4df5..744b99ea 100644
--- a/m4/intdiv0.m4
+++ b/m4/intdiv0.m4
@@ -1,5 +1,5 @@
1# intdiv0.m4 serial 3 (gettext-0.18) 1# intdiv0.m4 serial 6 (gettext-0.18.2)
2dnl Copyright (C) 2002, 2007-2010 Free Software Foundation, Inc. 2dnl Copyright (C) 2002, 2007-2008, 2010-2016 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -18,7 +18,7 @@ AC_DEFUN([gt_INTDIV0],
18changequote(,)dnl 18changequote(,)dnl
19 case "$host_os" in 19 case "$host_os" in
20 macos* | darwin[6-9]* | darwin[1-9][0-9]*) 20 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
21 # On MacOS X 10.2 or newer, just assume the same as when cross- 21 # On Mac OS X 10.2 or newer, just assume the same as when cross-
22 # compiling. If we were to perform the real test, 1 Crash Report 22 # compiling. If we were to perform the real test, 1 Crash Report
23 # dialog window would pop up. 23 # dialog window would pop up.
24 case "$host_cpu" in 24 case "$host_cpu" in
@@ -29,7 +29,8 @@ changequote(,)dnl
29 esac 29 esac
30changequote([,])dnl 30changequote([,])dnl
31 if test -z "$gt_cv_int_divbyzero_sigfpe"; then 31 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
32 AC_TRY_RUN([ 32 AC_RUN_IFELSE(
33 [AC_LANG_SOURCE([[
33#include <stdlib.h> 34#include <stdlib.h>
34#include <signal.h> 35#include <signal.h>
35 36
@@ -37,7 +38,7 @@ static void
37sigfpe_handler (int sig) 38sigfpe_handler (int sig)
38{ 39{
39 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 40 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
40 exit (sig != SIGFPE); 41 _exit (sig != SIGFPE);
41} 42}
42 43
43int x = 1; 44int x = 1;
@@ -59,9 +60,11 @@ int main ()
59 60
60 z = x / y; 61 z = x / y;
61 nan = y / y; 62 nan = y / y;
62 exit (1); 63 exit (2);
63} 64}
64], [gt_cv_int_divbyzero_sigfpe=yes], [gt_cv_int_divbyzero_sigfpe=no], 65]])],
66 [gt_cv_int_divbyzero_sigfpe=yes],
67 [gt_cv_int_divbyzero_sigfpe=no],
65 [ 68 [
66 # Guess based on the CPU. 69 # Guess based on the CPU.
67changequote(,)dnl 70changequote(,)dnl