|
Revision 7bbc2548f92696457164ebf7f4f86dc815ef80c7, 2.3 kB
(checked in by Rémi Denis-Courmont <rem@videolan.org>, 4 months ago)
|
Switch to gettext 0.17
The whole point of keeping the m4 and po/Makefile.in.in is to not need
to have the same version all over the place anyway, otherwise we might
as well put all these files to .gitignore...
Remove some old m4 macros as well.
|
- Property mode set to
100644
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
AC_DEFUN([gt_INTDIV0], |
|---|
| 10 |
[ |
|---|
| 11 |
AC_REQUIRE([AC_PROG_CC]) |
|---|
| 12 |
AC_REQUIRE([AC_CANONICAL_HOST]) |
|---|
| 13 |
|
|---|
| 14 |
AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], |
|---|
| 15 |
gt_cv_int_divbyzero_sigfpe, |
|---|
| 16 |
[ |
|---|
| 17 |
gt_cv_int_divbyzero_sigfpe= |
|---|
| 18 |
changequote(,) |
|---|
| 19 |
case "$host_os" in |
|---|
| 20 |
macos* | darwin[6-9]* | darwin[1-9][0-9]*) |
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
case "$host_cpu" in |
|---|
| 25 |
i[34567]86 | x86_64) |
|---|
| 26 |
gt_cv_int_divbyzero_sigfpe="guessing yes" ;; |
|---|
| 27 |
esac |
|---|
| 28 |
;; |
|---|
| 29 |
esac |
|---|
| 30 |
changequote([,]) |
|---|
| 31 |
if test -z "$gt_cv_int_divbyzero_sigfpe"; then |
|---|
| 32 |
AC_TRY_RUN([ |
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
static void |
|---|
| 37 |
sigfpe_handler (int sig) |
|---|
| 38 |
{ |
|---|
| 39 |
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
|---|
| 40 |
exit (sig != SIGFPE); |
|---|
| 41 |
} |
|---|
| 42 |
|
|---|
| 43 |
int x = 1; |
|---|
| 44 |
int y = 0; |
|---|
| 45 |
int z; |
|---|
| 46 |
int nan; |
|---|
| 47 |
|
|---|
| 48 |
int main () |
|---|
| 49 |
{ |
|---|
| 50 |
signal (SIGFPE, sigfpe_handler); |
|---|
| 51 |
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
|---|
| 52 |
|
|---|
| 53 |
signal (SIGTRAP, sigfpe_handler); |
|---|
| 54 |
|
|---|
| 55 |
/* Linux/SPARC yields signal SIGILL. */ |
|---|
| 56 |
|
|---|
| 57 |
signal (SIGILL, sigfpe_handler); |
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
z = x / y; |
|---|
| 61 |
nan = y / y; |
|---|
| 62 |
exit (1); |
|---|
| 63 |
} |
|---|
| 64 |
], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, |
|---|
| 65 |
[ |
|---|
| 66 |
|
|---|
| 67 |
changequote(,) |
|---|
| 68 |
case "$host_cpu" in |
|---|
| 69 |
alpha* | i[34567]86 | x86_64 | m68k | s390*) |
|---|
| 70 |
gt_cv_int_divbyzero_sigfpe="guessing yes";; |
|---|
| 71 |
*) |
|---|
| 72 |
gt_cv_int_divbyzero_sigfpe="guessing no";; |
|---|
| 73 |
esac |
|---|
| 74 |
changequote([,]) |
|---|
| 75 |
]) |
|---|
| 76 |
fi |
|---|
| 77 |
]) |
|---|
| 78 |
case "$gt_cv_int_divbyzero_sigfpe" in |
|---|
| 79 |
*yes) value=1;; |
|---|
| 80 |
*) value=0;; |
|---|
| 81 |
esac |
|---|
| 82 |
AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, |
|---|
| 83 |
[Define if integer division by zero raises signal SIGFPE.]) |
|---|
| 84 |
]) |
|---|