diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-12-24 10:42:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-12-24 10:42:12 +0000 |
commit | 073a2a82844a0ff3fbe844c9c19be258bfb4d7fc (patch) | |
tree | 91368c1d3b51e419ca42ee0196df3553a19b976e /package/ead/src/tinysrp/acinclude.m4 | |
parent | dbb49737c14b89d98d06d0173bca40e08d074524 (diff) | |
download | upstream-073a2a82844a0ff3fbe844c9c19be258bfb4d7fc.tar.gz upstream-073a2a82844a0ff3fbe844c9c19be258bfb4d7fc.tar.bz2 upstream-073a2a82844a0ff3fbe844c9c19be258bfb4d7fc.zip |
add the 'ead' package (emergency access daemon),
which can provide remote access to your device, even if the ip
and firewall settings are broken
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13738 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ead/src/tinysrp/acinclude.m4')
-rw-r--r-- | package/ead/src/tinysrp/acinclude.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/ead/src/tinysrp/acinclude.m4 b/package/ead/src/tinysrp/acinclude.m4 new file mode 100644 index 0000000000..696fffc430 --- /dev/null +++ b/package/ead/src/tinysrp/acinclude.m4 @@ -0,0 +1,26 @@ +dnl +dnl check for signal type +dnl +dnl AC_RETSIGTYPE isn't quite right, but almost. +dnl +define(TYPE_SIGNAL,[ +AC_MSG_CHECKING([POSIX signal handlers]) +AC_CACHE_VAL(cv_has_posix_signals, +[AC_TRY_COMPILE( +[#include <sys/types.h> +#include <signal.h> +#ifdef signal +#undef signal +#endif +extern void (*signal ()) ();], [], +cv_has_posix_signals=yes, cv_has_posix_signals=no)]) +AC_MSG_RESULT($cv_has_posix_signals) +if test $cv_has_posix_signals = yes; then + AC_DEFINE(RETSIGTYPE, void) AC_DEFINE(POSIX_SIGTYPE) +else + if test $ac_cv_type_signal = void; then + AC_DEFINE(RETSIGTYPE, void) + else + AC_DEFINE(RETSIGTYPE, int) + fi +fi])dnl |