This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/usr/pkg --host=i386--netbsdelf --mandir=/usr/pkg/man

## --------- ##
## Platform. ##
## --------- ##

hostname = weber.home
uname -m = i386
uname -r = 3.0
uname -s = NetBSD
uname -v = NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /u/pkgsrc/devel/libsigsegv/work/.wrapper/bin
PATH: /u/pkgsrc/devel/libsigsegv/work/.buildlink/bin
PATH: /u/pkgsrc/devel/libsigsegv/work/.gcc/bin
PATH: /u/pkgsrc/devel/libsigsegv/work/.tools/bin
PATH: /usr/pkg/bin
PATH: /home/jks/bin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/X11R6/bin
PATH: /usr/pkg/bin
PATH: /usr/pkg/sbin
PATH: /usr/games
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/pkg/bin
PATH: /usr/X11R6/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1588: checking for a BSD-compatible install
configure:1643: result: /usr/bin/install -c -o root -g wheel
configure:1654: checking whether build environment is sane
configure:1697: result: yes
configure:1762: checking for gawk
configure:1788: result: /usr/bin/awk
configure:1798: checking whether make sets $(MAKE)
configure:1818: result: yes
configure:1894: checking for i386--netbsdelf-strip
configure:1923: result: no
configure:1932: checking for strip
configure:1948: found /u/pkgsrc/devel/libsigsegv/work/.tools/bin/strip
configure:1959: result: strip
configure:1997: checking for i386--netbsdelf-gcc
configure:2023: result: cc
configure:2305: checking for C compiler version
configure:2308: cc --version </dev/null >&5
gcc (GCC) 3.3.3 (NetBSD nb3 20040520)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2311: $? = 0
configure:2313: cc -v </dev/null >&5
Using built-in specs.
Configured with: /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf2.0. --host=i386--netbsdelf --target=i386--netbsdelf
Thread model: posix
gcc version 3.3.3 (NetBSD nb3 20040520)
configure:2316: $? = 0
configure:2318: cc -V </dev/null >&5
gcc: couldn't run `/usr/bin/i386--netbsdelf-gcc--I/u/pkgsrc/devel/libsigsegv/work/.buildlink/include': No such file or directory
configure:2321: $? = 1
configure:2344: checking for C compiler default output file name
configure:2347: cc -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:2350: $? = 0
configure:2396: result: a.out
configure:2401: checking whether the C compiler works
configure:2407: ./a.out
configure:2410: $? = 0
configure:2427: result: yes
configure:2434: checking whether we are cross compiling
configure:2436: result: no
configure:2439: checking for suffix of executables
configure:2441: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:2444: $? = 0
configure:2469: result: 
configure:2475: checking for suffix of object files
configure:2496: cc -c -O2  conftest.c >&5
configure:2499: $? = 0
configure:2521: result: o
configure:2525: checking whether we are using the GNU C compiler
configure:2549: cc -c -O2  conftest.c >&5
configure:2555: $? = 0
configure:2559: test -z 
			 || test ! -s conftest.err
configure:2562: $? = 0
configure:2565: test -s conftest.o
configure:2568: $? = 0
configure:2581: result: yes
configure:2587: checking whether cc accepts -g
configure:2608: cc -c -g  conftest.c >&5
configure:2614: $? = 0
configure:2618: test -z 
			 || test ! -s conftest.err
configure:2621: $? = 0
configure:2624: test -s conftest.o
configure:2627: $? = 0
configure:2638: result: yes
configure:2655: checking for cc option to accept ANSI C
configure:2725: cc  -c -O2  conftest.c >&5
configure:2731: $? = 0
configure:2735: test -z 
			 || test ! -s conftest.err
configure:2738: $? = 0
configure:2741: test -s conftest.o
configure:2744: $? = 0
configure:2762: result: none needed
configure:2780: cc -c -O2  conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2786: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2930: checking for style of include used by make
configure:2958: result: GNU
configure:2986: checking dependency style of cc
configure:3076: result: none
configure:3098: checking how to run the C preprocessor
configure:3133: cc -E  conftest.c
configure:3139: $? = 0
configure:3171: cc -E  conftest.c
conftest.c:11:28: ac_nonexistent.h: No such file or directory
configure:3177: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3216: result: cc -E
configure:3240: cc -E  conftest.c
configure:3246: $? = 0
configure:3278: cc -E  conftest.c
conftest.c:11:28: ac_nonexistent.h: No such file or directory
configure:3284: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3334: checking build system type
configure:3352: result: i386-unknown-netbsdelf3.0
configure:3360: checking host system type
configure:3374: result: i386--netbsdelf
configure:3382: checking host platform
configure:3401: result: i386--netbsdelf
configure:3419: checking for a BSD-compatible install
configure:3474: result: /usr/bin/install -c -o root -g wheel
configure:3559: checking for a sed that does not truncate output
configure:3613: result: /u/pkgsrc/devel/libsigsegv/work/.tools/bin/sed
configure:3616: checking for egrep
configure:3626: result: grep -E
configure:3642: checking for ld used by cc
configure:3709: result: /u/pkgsrc/devel/libsigsegv/work/.wrapper/bin/ld
configure:3718: checking if the linker (/u/pkgsrc/devel/libsigsegv/work/.wrapper/bin/ld) is GNU ld
configure:3733: result: yes
configure:3738: checking for /u/pkgsrc/devel/libsigsegv/work/.wrapper/bin/ld option to reload object files
configure:3745: result: -r
configure:3763: checking for BSD-compatible nm
configure:3812: result: nm
configure:3816: checking whether ln -s works
configure:3820: result: yes
configure:3827: checking how to recognise dependent libraries
configure:4003: result: match_pattern /lib[^/]+(\.so|_pic\.a)$
configure:4236: checking for ANSI C header files
configure:4261: cc -c -O2  conftest.c >&5
configure:4267: $? = 0
configure:4271: test -z 
			 || test ! -s conftest.err
configure:4274: $? = 0
configure:4277: test -s conftest.o
configure:4280: $? = 0
configure:4369: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:4372: $? = 0
configure:4374: ./conftest
configure:4377: $? = 0
configure:4392: result: yes
configure:4416: checking for sys/types.h
configure:4432: cc -c -O2  conftest.c >&5
configure:4438: $? = 0
configure:4442: test -z 
			 || test ! -s conftest.err
configure:4445: $? = 0
configure:4448: test -s conftest.o
configure:4451: $? = 0
configure:4462: result: yes
configure:4416: checking for sys/stat.h
configure:4432: cc -c -O2  conftest.c >&5
configure:4438: $? = 0
configure:4442: test -z 
			 || test ! -s conftest.err
configure:4445: $? = 0
configure:4448: test -s conftest.o
configure:4451: $? = 0
configure:4462: result: yes
configure:4416: checking for stdlib.h
configure:4432: cc -c -O2  conftest.c >&5
configure:4438: $? = 0
configure:4442: test -z 
			 || test ! -s conftest.err
configure:4445: $? = 0
configure:4448: test -s conftest.o
configure:4451: $? = 0
configure:4462: result: yes
configure:4416: checking for string.h
configure:4432: cc -c -O2  conftest.c >&5
configure:4438: $? = 0
configure:4442: test -z 
			 || test ! -s conftest.err
configure:4445: $? = 0
configure:4448: test -s conftest.o
configure:4451: $? = 0
configure:4462: result: yes
configure:4416: checking for memory.h
configure:4432: cc -c -O2  conftest.c >&5
configure:4438: $? = 0
configure:4442: test -z 
			 || test ! -s conftest.err
configure:4445: $? = 0
configure:4448: test -s conftest.o
configure:4451: $? = 0
configure:4462: result: yes
configure:4416: checking for strings.h
configure:4432: cc -c -O2  conftest.c >&5
configure:4438: $? = 0
configure:4442: test -z 
			 || test ! -s conftest.err
configure:4445: $? = 0
configure:4448: test -s conftest.o
configure:4451: $? = 0
configure:4462: result: yes
configure:4416: checking for inttypes.h
configure:4432: cc -c -O2  conftest.c >&5
configure:4438: $? = 0
configure:4442: test -z 
			 || test ! -s conftest.err
configure:4445: $? = 0
configure:4448: test -s conftest.o
configure:4451: $? = 0
configure:4462: result: yes
configure:4416: checking for stdint.h
configure:4432: cc -c -O2  conftest.c >&5
configure:4438: $? = 0
configure:4442: test -z 
			 || test ! -s conftest.err
configure:4445: $? = 0
configure:4448: test -s conftest.o
configure:4451: $? = 0
configure:4462: result: yes
configure:4416: checking for unistd.h
configure:4432: cc -c -O2  conftest.c >&5
configure:4438: $? = 0
configure:4442: test -z 
			 || test ! -s conftest.err
configure:4445: $? = 0
configure:4448: test -s conftest.o
configure:4451: $? = 0
configure:4462: result: yes
configure:4488: checking dlfcn.h usability
configure:4500: cc -c -O2  conftest.c >&5
configure:4506: $? = 0
configure:4510: test -z 
			 || test ! -s conftest.err
configure:4513: $? = 0
configure:4516: test -s conftest.o
configure:4519: $? = 0
configure:4529: result: yes
configure:4533: checking dlfcn.h presence
configure:4543: cc -E  conftest.c
configure:4549: $? = 0
configure:4569: result: yes
configure:4604: checking for dlfcn.h
configure:4611: result: yes
configure:4634: checking for i386--netbsdelf-g++
configure:4660: result: c++
configure:4718: checking for C++ compiler version
configure:4721: c++ --version </dev/null >&5
configure:4724: $? = 1
configure:4726: c++ -v </dev/null >&5
configure:4729: $? = 1
configure:4731: c++ -V </dev/null >&5
configure:4734: $? = 1
configure:4737: checking whether we are using the GNU C++ compiler
configure:4761: c++ -c -O2  conftest.cc >&5
configure:4767: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| #ifndef __GNUC__
|        choke me
| #endif
| 
|   ;
|   return 0;
| }
configure:4793: result: no
configure:4799: checking whether c++ accepts -g
configure:4820: c++ -c -g  conftest.cc >&5
configure:4826: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4850: result: no
configure:4892: c++ -c -O2  conftest.cc >&5
configure:4898: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4892: c++ -c -O2  conftest.cc >&5
configure:4898: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| extern "C" void std::exit (int) throw (); using std::exit;
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4892: c++ -c -O2  conftest.cc >&5
configure:4898: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| extern "C" void std::exit (int); using std::exit;
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4892: c++ -c -O2  conftest.cc >&5
configure:4898: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| extern "C" void exit (int) throw ();
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4892: c++ -c -O2  conftest.cc >&5
configure:4898: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| extern "C" void exit (int);
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4892: c++ -c -O2  conftest.cc >&5
configure:4898: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| void exit (int);
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4981: checking dependency style of c++
configure:5071: result: none
configure:5098: checking how to run the C++ preprocessor
configure:5212: result: cpp
configure:5236: cpp  conftest.cc
configure:5242: $? = 0
configure:5274: cpp  conftest.cc
conftest.cc:25:28: ac_nonexistent.h: No such file or directory
configure:5280: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5335: checking for i386--netbsdelf-g77
configure:5361: result: f77
configure:5418: checking for Fortran 77 compiler version
configure:5421: f77 --version </dev/null >&5
configure:5424: $? = 1
configure:5426: f77 -v </dev/null >&5
configure:5429: $? = 1
configure:5431: f77 -V </dev/null >&5
configure:5434: $? = 1
configure:5442: checking whether we are using the GNU Fortran 77 compiler
configure:5456: f77 -c -O conftest.F >&5
configure:5462: $? = 1
configure: failed program was:
|       program main
| #ifndef __GNUC__
|        choke me
| #endif
| 
|       end
configure:5488: result: no
configure:5494: checking whether f77 accepts -g
configure:5506: f77 -c -g conftest.f >&5
configure:5512: $? = 1
configure: failed program was:
|       program main
| 
|       end
configure:5537: result: no
configure:5567: checking the maximum length of command line arguments
configure:5676: result: 262144
configure:5687: checking command to parse nm output from cc object
configure:5792: cc -c -O2  conftest.c >&5
configure:5795: $? = 0
configure:5799: nm conftest.o \| sed -n -e 's/^.*[ 	]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ 	][ 	]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm
configure:5802: $? = 0
configure:5854: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c conftstm.o >&5
configure:5857: $? = 0
configure:5895: result: ok
configure:5899: checking for objdir
configure:5914: result: .libs
configure:5966: checking for i386--netbsdelf-ar
configure:5995: result: no
configure:6004: checking for ar
configure:6020: found /usr/pkg/bin/ar
configure:6031: result: ar
configure:6046: checking for i386--netbsdelf-ranlib
configure:6075: result: no
configure:6084: checking for ranlib
configure:6100: found /usr/pkg/bin/ranlib
configure:6111: result: ranlib
configure:6126: checking for i386--netbsdelf-strip
configure:6152: result: strip
configure:6467: checking if cc supports -fno-rtti -fno-exceptions
configure:6485: cc -c -O2  -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
configure:6489: $? = 0
configure:6502: result: no
configure:6517: checking for cc option to produce PIC
configure:6727: result: -fPIC
configure:6735: checking if cc PIC flag -fPIC works
configure:6753: cc -c -O2  -fPIC -DPIC conftest.c >&5
configure:6757: $? = 0
configure:6770: result: yes
configure:6798: checking if cc static flag -static works
configure:6826: result: yes
configure:6836: checking if cc supports -c -o file.o
configure:6857: cc -c -O2  -o out/conftest2.o conftest.c >&5
configure:6861: $? = 0
configure:6883: result: yes
configure:6909: checking whether the cc linker (/u/pkgsrc/devel/libsigsegv/work/.wrapper/bin/ld) supports shared libraries
configure:7867: result: yes
configure:7934: checking dynamic linker characteristics
configure:8522: result: NetBSD ld.elf_so
configure:8531: checking how to hardcode library paths into programs
configure:8556: result: immediate
configure:8570: checking whether stripping libraries is possible
configure:8575: result: yes
configure:9409: checking if libtool supports shared libraries
configure:9411: result: yes
configure:9414: checking whether to build shared libraries
configure:9435: result: no
configure:9438: checking whether to build static libraries
configure:9442: result: yes
configure:9534: creating libtool
configure:10264: checking whether the c++ linker (/u/pkgsrc/devel/libsigsegv/work/.wrapper/bin/ld) supports shared libraries
configure:11202: result: yes
configure:11224: c++ -c -O2  conftest.cpp >&5
configure:11227: $? = 1
configure:11346: checking for c++ option to produce PIC
configure:11620: result: 
configure:11691: checking if c++ static flag  works
configure:11719: result: no
configure:11729: checking if c++ supports -c -o file.o
configure:11750: c++ -c -O2  -o out/conftest2.o conftest.cpp >&5
configure:11754: $? = 1
configure:11776: result: no
configure:11802: checking whether the c++ linker (/u/pkgsrc/devel/libsigsegv/work/.wrapper/bin/ld) supports shared libraries
configure:11827: result: yes
configure:11894: checking dynamic linker characteristics
configure:12482: result: NetBSD ld.elf_so
configure:12491: checking how to hardcode library paths into programs
configure:12516: result: unsupported
configure:13042: checking if libtool supports shared libraries
configure:13044: result: yes
configure:13047: checking whether to build shared libraries
configure:13067: result: no
configure:13070: checking whether to build static libraries
configure:13074: result: yes
configure:13084: checking for f77 option to produce PIC
configure:13294: result: -fPIC
configure:13302: checking if f77 PIC flag -fPIC works
configure:13320: f77 -c -O -fPIC conftest.f >&5
configure:13324: $? = 1
configure:13337: result: no
configure:13365: checking if f77 static flag -static works
configure:13393: result: no
configure:13403: checking if f77 supports -c -o file.o
configure:13424: f77 -c -O -o out/conftest2.o conftest.f >&5
configure:13428: $? = 1
configure:13450: result: no
configure:13476: checking whether the f77 linker (/u/pkgsrc/devel/libsigsegv/work/.wrapper/bin/ld) supports shared libraries
configure:14414: result: yes
configure:14481: checking dynamic linker characteristics
configure:15069: result: NetBSD ld.elf_so
configure:15078: checking how to hardcode library paths into programs
configure:15103: result: immediate
configure:18690: checking sys/signal.h usability
configure:18702: cc -c -O2  conftest.c >&5
configure:18708: $? = 0
configure:18712: test -z 
			 || test ! -s conftest.err
configure:18715: $? = 0
configure:18718: test -s conftest.o
configure:18721: $? = 0
configure:18731: result: yes
configure:18735: checking sys/signal.h presence
configure:18745: cc -E  conftest.c
configure:18751: $? = 0
configure:18771: result: yes
configure:18806: checking for sys/signal.h
configure:18813: result: yes
configure:18854: checking for unistd.h
configure:18859: result: yes
configure:19001: checking for getpagesize
configure:19029: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:19035: $? = 0
configure:19039: test -z 
			 || test ! -s conftest.err
configure:19042: $? = 0
configure:19045: test -s conftest
configure:19048: $? = 0
configure:19060: result: yes
configure:19071: checking for sysconf(_SC_PAGESIZE)
configure:19099: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:19105: $? = 0
configure:19109: test -z 
			 || test ! -s conftest.err
configure:19112: $? = 0
configure:19115: test -s conftest
configure:19118: $? = 0
configure:19130: result: yes
configure:19141: checking for PAGESIZE in limits.h
configure:19164: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c: In function `main':
conftest.c:35: error: `PAGESIZE' undeclared (first use in this function)
conftest.c:35: error: (Each undeclared identifier is reported only once
conftest.c:35: error: for each function it appears in.)
configure:19170: $? = 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| /* end confdefs.h.  */
| #include <limits.h>
| int
| main ()
| {
| int pgsz = PAGESIZE;
|   ;
|   return 0;
| }
configure:19195: result: no
configure:19215: checking for mmap with MAP_ANON
configure:19298: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:19301: $? = 0
configure:19303: ./conftest
configure:19306: $? = 0
configure:19321: result: yes
configure:19332: checking for mmap with MAP_ANONYMOUS
configure:19415: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c: In function `main':
conftest.c:37: error: `MAP_ANONYMOUS' undeclared (first use in this function)
conftest.c:37: error: (Each undeclared identifier is reported only once
conftest.c:37: error: for each function it appears in.)
configure:19418: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| /* end confdefs.h.  */
| 
| #include <sys/types.h>
| #include <sys/mman.h>
| int main ()
| {
|   void *p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
|   return (p == (void *)(-1));
| }
configure:19438: result: no
configure:19449: checking for mmap of /dev/zero
configure:19543: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:19546: $? = 0
configure:19548: ./conftest
configure:19551: $? = 0
configure:19566: result: yes
configure:19590: checking whether a fault handler according to POSIX works
configure:19752: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:19755: $? = 0
configure:19757: ./conftest
configure:19760: $? = 0
configure:19775: result: yes
configure:19783: checking whether a fault handler according to Linux/i386 works
configure:19946: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c:39:28: asm/sigcontext.h: No such file or directory
conftest.c:63: warning: `struct sigcontext' declared inside parameter list
conftest.c:63: warning: its scope is only this definition or declaration, which is probably not what you want
conftest.c:64: error: parameter `sc' has incomplete type
configure:19949: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| #include <asm/sigcontext.h>
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, struct sigcontext sc)
| {
|   void *fault_address = (void *) (sc.cr2);
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:19969: result: no
configure:19977: checking whether a fault handler according to old Linux/i386 works
configure:20140: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:20143: $? = 0
configure:20145: ./conftest
configure:20148: $? = 3
configure: program exited with status 3
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| 
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, unsigned int more)
| {
|   void *fault_address = (void *) (((unsigned long *) &more) [21]);
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:20163: result: no
configure:20171: checking whether a fault handler according to Linux/m68k works
configure:20336: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c:39:28: asm/sigcontext.h: No such file or directory
In file included from conftest.c:40:
src/fault-linux-m68k.c:20: warning: `struct sigcontext' declared inside parameter list
src/fault-linux-m68k.c:20: warning: its scope is only this definition or declaration, which is probably not what you want
src/fault-linux-m68k.c: In function `get_fault_addr':
src/fault-linux-m68k.c:22: error: dereferencing pointer to incomplete type
src/fault-linux-m68k.c:23: error: invalid use of undefined type `struct sigcontext'
conftest.c: At top level:
conftest.c:64: warning: `struct sigcontext' declared inside parameter list
conftest.c: In function `sigsegv_handler':
conftest.c:66: warning: passing arg 1 of `get_fault_addr' from incompatible pointer type
configure:20339: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| #include <asm/sigcontext.h>
| #include "./src/fault-linux-m68k.c"
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, int code, struct sigcontext *scp)
| {
|   void *fault_address = (void *) (get_fault_addr (scp));
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:20359: result: no
configure:20367: checking whether a fault handler according to Linux/PowerPC works
configure:20530: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c:39:28: asm/sigcontext.h: No such file or directory
conftest.c:63: warning: `struct sigcontext' declared inside parameter list
conftest.c:63: warning: its scope is only this definition or declaration, which is probably not what you want
conftest.c: In function `sigsegv_handler':
conftest.c:65: error: dereferencing pointer to incomplete type
configure:20533: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| #include <asm/sigcontext.h>
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, struct sigcontext *scp)
| {
|   void *fault_address = (void *) (scp->regs->dar);
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:20553: result: no
configure:20561: checking whether a fault handler according to Linux/HPPA works
configure:20723: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c: In function `sigsegv_handler':
conftest.c:65: error: union has no member named `si_ptr'
configure:20726: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| 
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
| {
|   void *fault_address = (void *) (sip->si_ptr);
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| action.sa_sigaction = &sigsegv_handler;
|    action.sa_flags = SA_SIGINFO;
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:20746: result: no
configure:20754: checking whether a fault handler according to BSD works
configure:20917: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c:63: warning: `struct sigcontext' declared inside parameter list
conftest.c:63: warning: its scope is only this definition or declaration, which is probably not what you want
configure:20920: $? = 0
configure:20922: ./conftest
configure:20925: $? = 3
configure: program exited with status 3
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| 
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr)
| {
|   void *fault_address = (void *) (addr);
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:20940: result: no
configure:20948: checking whether a fault handler according to IRIX works
configure:21111: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c:63: warning: `struct sigcontext' declared inside parameter list
conftest.c:63: warning: its scope is only this definition or declaration, which is probably not what you want
conftest.c: In function `sigsegv_handler':
conftest.c:65: error: dereferencing pointer to incomplete type
configure:21114: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| 
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, int code, struct sigcontext *scp)
| {
|   void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr);
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:21134: result: no
configure:21142: checking whether a fault handler according to HP-UX HPPA works
configure:21315: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c:66: warning: `struct sigcontext' declared inside parameter list
conftest.c:66: warning: its scope is only this definition or declaration, which is probably not what you want
conftest.c: In function `sigsegv_handler':
conftest.c:68: error: dereferencing pointer to incomplete type
conftest.c:68: error: `SS_WIDEREGS' undeclared (first use in this function)
conftest.c:68: error: (Each undeclared identifier is reported only once
conftest.c:68: error: for each function it appears in.)
conftest.c:68: error: dereferencing pointer to incomplete type
conftest.c:68: error: `SS_NARROWISINVALID' undeclared (first use in this function)
conftest.c:68: error: dereferencing pointer to incomplete type
conftest.c:68: error: dereferencing pointer to incomplete type
configure:21318: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| 
| #define USE_64BIT_REGS(mc)   (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))
| #define GET_CR21(mc)   (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)
| 
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, int code, struct sigcontext *scp)
| {
|   void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:21338: result: no
configure:21346: checking whether a fault handler according to OSF/1 Alpha works
configure:21509: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c:63: warning: `struct sigcontext' declared inside parameter list
conftest.c:63: warning: its scope is only this definition or declaration, which is probably not what you want
conftest.c: In function `sigsegv_handler':
conftest.c:65: error: dereferencing pointer to incomplete type
configure:21512: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| 
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, int code, struct sigcontext *scp)
| {
|   void *fault_address = (void *) (scp->sc_traparg_a0);
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:21532: result: no
configure:21540: checking whether a fault handler according to NetBSD Alpha works
configure:21703: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
In file included from conftest.c:39:
src/fault-netbsd-alpha.c:23: warning: `struct sigcontext' declared inside parameter list
src/fault-netbsd-alpha.c:23: warning: its scope is only this definition or declaration, which is probably not what you want
src/fault-netbsd-alpha.c: In function `get_fault_addr':
src/fault-netbsd-alpha.c:25: error: dereferencing pointer to incomplete type
src/fault-netbsd-alpha.c:36: error: dereferencing pointer to incomplete type
conftest.c: At top level:
conftest.c:63: warning: `struct sigcontext' declared inside parameter list
conftest.c: In function `sigsegv_handler':
conftest.c:65: warning: passing arg 1 of `get_fault_addr' from incompatible pointer type
configure:21706: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| #include "./src/fault-netbsd-alpha.c"
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, int code, struct sigcontext *scp)
| {
|   void *fault_address = (void *) (get_fault_addr (scp));
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:21726: result: no
configure:21734: checking whether a fault handler according to AIX works
configure:21897: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c:63: warning: `struct sigcontext' declared inside parameter list
conftest.c:63: warning: its scope is only this definition or declaration, which is probably not what you want
conftest.c: In function `sigsegv_handler':
conftest.c:65: error: dereferencing pointer to incomplete type
configure:21900: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| 
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, int code, struct sigcontext *scp)
| {
|   void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr);
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:21920: result: no
configure:21928: checking whether a fault handler according to MacOSX/Darwin7 PowerPC works
configure:22090: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
In file included from conftest.c:39:
src/fault-macosdarwin7-powerpc.c: In function `get_fault_addr':
src/fault-macosdarwin7-powerpc.c:39: error: invalid type argument of `->'
conftest.c: In function `main':
conftest.c:102: warning: assignment from incompatible pointer type
configure:22093: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| #include "./src/fault-macosdarwin7-powerpc.c"
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp)
| {
|   void *fault_address = (void *) (get_fault_addr (sip, ucp));
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| action.sa_sigaction = &sigsegv_handler;
|    action.sa_flags = SA_SIGINFO;
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:22113: result: no
configure:22122: checking whether a fault handler according to MacOSX/Darwin5 PowerPC works
configure:22285: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
In file included from conftest.c:39:
src/fault-macosdarwin5-powerpc.c:34: warning: `struct sigcontext' declared inside parameter list
src/fault-macosdarwin5-powerpc.c:34: warning: its scope is only this definition or declaration, which is probably not what you want
src/fault-macosdarwin5-powerpc.c: In function `get_fault_addr':
src/fault-macosdarwin5-powerpc.c:36: error: dereferencing pointer to incomplete type
src/fault-macosdarwin5-powerpc.c:37: error: dereferencing pointer to incomplete type
conftest.c: At top level:
conftest.c:63: warning: `struct sigcontext' declared inside parameter list
conftest.c: In function `sigsegv_handler':
conftest.c:65: warning: passing arg 1 of `get_fault_addr' from incompatible pointer type
configure:22288: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| #include "./src/fault-macosdarwin5-powerpc.c"
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, int code, struct sigcontext *scp)
| {
|   void *fault_address = (void *) (get_fault_addr (scp));
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:22308: result: no
configure:22317: checking whether a fault handler according to Hurd works
configure:22480: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c:63: warning: `struct sigcontext' declared inside parameter list
conftest.c:63: warning: its scope is only this definition or declaration, which is probably not what you want
configure:22483: $? = 0
configure:22485: ./conftest
configure:22488: $? = 3
configure: program exited with status 3
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #if HAVE_SYS_SIGNAL_H
| # include <sys/signal.h>
| #endif
| 
| #include <sys/types.h>
| #include <sys/mman.h>
| #if HAVE_MMAP_DEVZERO
| # include <fcntl.h>
| # ifndef MAP_FILE
| #  define MAP_FILE 0
| # endif
| #endif
| #ifndef PROT_NONE
| # define PROT_NONE 0
| #endif
| #if HAVE_MMAP_ANON
| # define zero_fd -1
| # define map_flags MAP_ANON | MAP_PRIVATE
| #elif HAVE_MMAP_ANONYMOUS
| # define zero_fd -1
| # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
| #elif HAVE_MMAP_DEVZERO
| static int zero_fd;
| # define map_flags MAP_FILE | MAP_PRIVATE
| #endif
| unsigned long page;
| int handler_called = 0;
| void sigsegv_handler (int sig, int code, struct sigcontext *scp)
| {
|   void *fault_address = (void *) (code);
|   handler_called++;
|   if (handler_called == 10)
|     exit (4);
|   if (fault_address != (void*)(page + 0x678))
|     exit (3);
|   if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
|     exit (2);
| }
| void crasher (unsigned long p)
| {
|   *(int *) (p + 0x678) = 42;
| }
| int main ()
| {
|   void *p;
|   struct sigaction action;
|   /* Preparations.  */
| #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
|   zero_fd = open ("/dev/zero", O_RDONLY, 0644);
| #endif
|   /* Setup some mmaped memory.  */
| #ifdef __hpux
|   /* HP-UX 10 mmap() often fails when given a hint.  So give the OS complete
|      freedom about the address range.  */
|   p = mmap ((void *) 0,          0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #else
|   p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
| #endif
|   if (p == (void *)(-1))
|     exit (2);
|   page = (unsigned long) p;
|   /* Make it read-only.  */
|   if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
|     exit (2);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset(&action.sa_mask);
| 
|   action.sa_handler = (void (*) (int)) &sigsegv_handler;
|   action.sa_flags = 0;
| 
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* The first write access should invoke the handler and then complete.  */
|   crasher (page);
|   /* The second write access should not invoke the handler.  */
|   crasher (page);
|   /* Check that the handler was called only once.  */
|   if (handler_called != 1)
|     exit (1);
|   /* Test passed!  */
|   return 0;
| }
configure:22503: result: no
configure:22761: checking for the fault handler specifics
configure:22772: result: fault-netbsd.h
configure:22794: checking if the system supports catching SIGSEGV
configure:22796: result: yes
configure:22806: checking for stack direction
configure:22903: result: grows down
configure:22911: checking for PIOCMAP in sys/procfs.h
configure:22933: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
conftest.c:35:24: sys/procfs.h: No such file or directory
conftest.c: In function `main':
conftest.c:39: error: `PIOCNMAP' undeclared (first use in this function)
conftest.c:39: error: (Each undeclared identifier is reported only once
conftest.c:39: error: for each function it appears in.)
conftest.c:39: error: `PIOCMAP' undeclared (first use in this function)
conftest.c:39: error: `prmap_t' undeclared (first use in this function)
conftest.c:39: error: parse error before "y"
configure:22939: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| #define CFG_FAULT "fault-netbsd.h"
| #define CFG_MACHFAULT "fault-none.h"
| #define STACK_DIRECTION -1
| /* end confdefs.h.  */
| #include <sys/procfs.h>
| int
| main ()
| {
| int x = PIOCNMAP + PIOCMAP; prmap_t y;
|   ;
|   return 0;
| }
configure:22965: result: no
configure:22971: checking for mincore
configure:23028: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:23034: $? = 0
configure:23038: test -z 
			 || test ! -s conftest.err
configure:23041: $? = 0
configure:23044: test -s conftest
configure:23047: $? = 0
configure:23059: result: yes
configure:23104: checking for getrlimit
configure:23161: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:23167: $? = 0
configure:23171: test -z 
			 || test ! -s conftest.err
configure:23174: $? = 0
configure:23177: test -s conftest
configure:23180: $? = 0
configure:23192: result: yes
configure:23104: checking for setrlimit
configure:23161: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:23167: $? = 0
configure:23171: test -z 
			 || test ! -s conftest.err
configure:23174: $? = 0
configure:23177: test -s conftest
configure:23180: $? = 0
configure:23192: result: yes
configure:23211: checking for sigaltstack
configure:23268: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:23274: $? = 0
configure:23278: test -z 
			 || test ! -s conftest.err
configure:23281: $? = 0
configure:23284: test -s conftest
configure:23287: $? = 0
configure:23299: result: yes
configure:23311: checking for stack_t
configure:23341: cc -c -O2  conftest.c >&5
configure:23347: $? = 0
configure:23351: test -z 
			 || test ! -s conftest.err
configure:23354: $? = 0
configure:23357: test -s conftest.o
configure:23360: $? = 0
configure:23371: result: yes
configure:23386: checking for working sigaltstack
configure:23567: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:23570: $? = 0
configure:23572: ./conftest
configure:23575: $? = 0
configure:23595: result: yes
configure:23606: checking if the system supports catching stack overflow
configure:23693: result: yes
configure:23716: checking whether a signal handler can be left through longjmp
configure:23806: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:23809: $? = 0
configure:23811: ./conftest
[1]   Illegal instruction (core dumped) ./conftest${ac_e...
configure:23814: $? = 132
configure: program exited with status 132
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| #define CFG_FAULT "fault-netbsd.h"
| #define CFG_MACHFAULT "fault-none.h"
| #define STACK_DIRECTION -1
| #define HAVE_MINCORE 1
| #define HAVE_STACKVMA 1
| #define CFG_STACKVMA "stackvma-mincore.c"
| #define HAVE_GETRLIMIT 1
| #define HAVE_SETRLIMIT 1
| #define HAVE_SIGALTSTACK 1
| #define HAVE_WORKING_SIGALTSTACK 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #include <setjmp.h>
| 
| #if HAVE_SETRLIMIT
| # include <sys/types.h>
| # include <sys/time.h>
| # include <sys/resource.h>
| #endif
| jmp_buf mainloop;
| sigset_t mainsigset;
| int pass = 0;
| void stackoverflow_handler (int sig)
| {
|   pass++;
|   sigprocmask (SIG_SETMASK, &mainsigset, NULL);
|   {  }
|   longjmp (mainloop, pass);
| }
| volatile int * recurse_1 (volatile int n, volatile int *p)
| {
|   if (n >= 0)
|     *recurse_1 (n + 1, p) += n;
|   return p;
| }
| volatile int recurse (volatile int n)
| {
|   int sum = 0;
|   return *recurse_1 (n, &sum);
| }
| int main ()
| {
|   char mystack[16384];
|   stack_t altstack;
|   struct sigaction action;
|   sigset_t emptyset;
| #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
|   /* Before starting the endless recursion, try to be friendly to the user's
|      machine.  On some Linux 2.2.x systems, there is no stack limit for user
|      processes at all.  We don't want to kill such systems.  */
|   struct rlimit rl;
|   rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
|   setrlimit (RLIMIT_STACK, &rl);
| #endif
|   /* Install the alternate stack.  */
|   altstack.ss_sp = mystack;
|   altstack.ss_size = sizeof (mystack);
|   altstack.ss_flags = 0; /* no SS_DISABLE */
|   if (sigaltstack (&altstack, NULL) < 0)
|     exit (1);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset (&action.sa_mask);
|   action.sa_handler = &stackoverflow_handler;
|   action.sa_flags = SA_ONSTACK;
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* Save the current signal mask.  */
|   sigemptyset (&emptyset);
|   sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
|   /* Provoke two stack overflows in a row.  */
|   if (setjmp (mainloop) < 2)
|     {
|       recurse (0);
|       exit (2);
|     }
|   exit (0);
| }
configure:23829: result: no
configure:23837: checking whether a signal handler can be left through longjmp and sigaltstack
configure:23937: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:23940: $? = 0
configure:23942: ./conftest
configure:23945: $? = 0
configure:23960: result: yes
configure:23968: checking whether a signal handler can be left through longjmp and setcontext
configure:24073: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:24076: $? = 0
configure:24078: ./conftest
configure:24081: $? = 0
configure:24096: result: yes
configure:24118: checking whether a signal handler can be left through siglongjmp
configure:24206: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:24209: $? = 0
configure:24211: ./conftest
[1]   Illegal instruction (core dumped) ./conftest${ac_e...
configure:24214: $? = 132
configure: program exited with status 132
configure: failed program was:
| 
|       /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libsigsegv"
| #define VERSION "2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define HAVE_SYS_SIGNAL_H 1
| #define CFG_SIGNALS "signals-bsd.h"
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_SYSCONF_PAGESIZE 1
| #define HAVE_MMAP_ANON 1
| #define HAVE_MMAP_DEVZERO 1
| #define CFG_FAULT "fault-netbsd.h"
| #define CFG_MACHFAULT "fault-none.h"
| #define STACK_DIRECTION -1
| #define HAVE_MINCORE 1
| #define HAVE_STACKVMA 1
| #define CFG_STACKVMA "stackvma-mincore.c"
| #define HAVE_GETRLIMIT 1
| #define HAVE_SETRLIMIT 1
| #define HAVE_SIGALTSTACK 1
| #define HAVE_WORKING_SIGALTSTACK 1
| /* end confdefs.h.  */
| 
| #include <stdlib.h>
| #include <signal.h>
| #include <setjmp.h>
| 
| #if HAVE_SETRLIMIT
| # include <sys/types.h>
| # include <sys/time.h>
| # include <sys/resource.h>
| #endif
| sigjmp_buf mainloop;
| int pass = 0;
| void stackoverflow_handler (int sig)
| {
|   pass++;
|   {  }
|   siglongjmp (mainloop, pass);
| }
| volatile int * recurse_1 (volatile int n, volatile int *p)
| {
|   if (n >= 0)
|     *recurse_1 (n + 1, p) += n;
|   return p;
| }
| volatile int recurse (volatile int n)
| {
|   int sum = 0;
|   return *recurse_1 (n, &sum);
| }
| int main ()
| {
|   char mystack[16384];
|   stack_t altstack;
|   struct sigaction action;
| #ifdef __BEOS__
|   /* On BeOS, this would hang, burning CPU time.  Better fail than hang.  */
|   exit (1);
| #endif
| #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
|   /* Before starting the endless recursion, try to be friendly to the user's
|      machine.  On some Linux 2.2.x systems, there is no stack limit for user
|      processes at all.  We don't want to kill such systems.  */
|   struct rlimit rl;
|   rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
|   setrlimit (RLIMIT_STACK, &rl);
| #endif
|   /* Install the alternate stack.  */
|   altstack.ss_sp = mystack;
|   altstack.ss_size = sizeof (mystack);
|   altstack.ss_flags = 0; /* no SS_DISABLE */
|   if (sigaltstack (&altstack, NULL) < 0)
|     exit (1);
|   /* Install the SIGSEGV handler.  */
|   sigemptyset (&action.sa_mask);
|   action.sa_handler = &stackoverflow_handler;
|   action.sa_flags = SA_ONSTACK;
|   sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
|   sigaction (SIGBUS, &action, (struct sigaction *) NULL);
|   /* Provoke two stack overflows in a row.  */
|   if (sigsetjmp (mainloop, 1) < 2)
|     {
|       recurse (0);
|       exit (2);
|     }
|   exit (0);
| }
configure:24229: result: no
configure:24237: checking whether a signal handler can be left through siglongjmp and sigaltstack
configure:24335: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:24338: $? = 0
configure:24340: ./conftest
configure:24343: $? = 0
configure:24358: result: yes
configure:24366: checking whether a signal handler can be left through siglongjmp and setcontext
configure:24469: cc -o conftest -O2  -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:24472: $? = 0
configure:24474: ./conftest
configure:24477: $? = 0
configure:24492: result: yes
configure:24551: checking whether to activate relocatable installation
configure:24566: result: no
configure:24689: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on weber.home

config.status:25466: creating Makefile
config.status:25466: creating src/Makefile
config.status:25466: creating src/sigsegv.h
config.status:25466: creating tests/Makefile
config.status:25569: creating config.h
config.status:25893: executing depfiles commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i386-unknown-netbsdelf3.0
ac_cv_build_alias=i386-unknown-netbsdelf3.0
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=no
ac_cv_env_CC_set=set
ac_cv_env_CC_value=cc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-O2
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=set
ac_cv_env_CXXCPP_value=cpp
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=-O2
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=c++
ac_cv_env_F77_set=set
ac_cv_env_F77_value=f77
ac_cv_env_FFLAGS_set=set
ac_cv_env_FFLAGS_value=-O
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-R/usr/pkg/lib
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i386--netbsdelf
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_f77_compiler_gnu=no
ac_cv_func_getrlimit=yes
ac_cv_func_mincore=yes
ac_cv_func_setrlimit=yes
ac_cv_func_sigaltstack=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_signal_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i386--netbsdelf
ac_cv_host_alias=i386--netbsdelf
ac_cv_objext=o
ac_cv_path_ECHO=echo
ac_cv_path_EGREP=/usr/bin/egrep
ac_cv_path_ENV=/usr/bin/env
ac_cv_path_FALSE=false
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_TEST=test
ac_cv_path_TRUE=true
ac_cv_prog_AWK=/usr/bin/awk
ac_cv_prog_CC=cc
ac_cv_prog_CPP='cc -E'
ac_cv_prog_CXX=c++
ac_cv_prog_CXXCPP=cpp
ac_cv_prog_F77=f77
ac_cv_prog_STRIP=strip
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=no
ac_cv_prog_egrep='grep -E'
ac_cv_prog_f77_g=no
ac_cv_prog_make_make_set=yes
ac_cv_type_stack_t=yes
am_cv_CC_dependencies_compiler_type=none
am_cv_CXX_dependencies_compiler_type=none
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_objdir=.libs
lt_cv_path_LD=/u/pkgsrc/devel/libsigsegv/work/.wrapper/bin/ld
lt_cv_path_LDCXX=
lt_cv_path_NM=nm
lt_cv_path_SED=/u/pkgsrc/devel/libsigsegv/work/.tools/bin/sed
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=no
lt_cv_prog_compiler_c_o_F77=no
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_gnu_ld=yes
lt_cv_prog_gnu_ldcxx=
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ 	]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ 	][ 	]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/  {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/  {"\2", (lt_ptr) \&\2},/p'\'
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\'
lt_cv_sys_max_cmd_len=262144
lt_lt_cv_prog_compiler_c_o='"yes"'
lt_lt_cv_prog_compiler_c_o_CXX='"no"'
lt_lt_cv_prog_compiler_c_o_F77='"no"'
lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ 	]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ 	][ 	]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"'
lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/  {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/  {\"\\2\", (lt_ptr) \\&\\2},/p'\''"'
lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"'
sv_cv_fault_aix=no
sv_cv_fault_bsd=no
sv_cv_fault_hpux_hppa=no
sv_cv_fault_hurd=no
sv_cv_fault_include=fault-netbsd.h
sv_cv_fault_irix=no
sv_cv_fault_linux_hppa=no
sv_cv_fault_linux_i386=no
sv_cv_fault_linux_i386_old=no
sv_cv_fault_linux_m68k=no
sv_cv_fault_linux_powerpc=no
sv_cv_fault_macosdarwin5_ppc=no
sv_cv_fault_macosdarwin7_ppc=no
sv_cv_fault_netbsd_alpha=no
sv_cv_fault_osf_alpha=no
sv_cv_fault_posix=yes
sv_cv_func_getpagesize=yes
sv_cv_func_mmap_anon=yes
sv_cv_func_mmap_anonymous=no
sv_cv_func_mmap_devzero=yes
sv_cv_func_sysconf_pagesize=yes
sv_cv_have_sigsegv_recovery=yes
sv_cv_have_stack_overflow_recovery=yes
sv_cv_host=i386--netbsdelf
sv_cv_leave_handler_longjmp=no
sv_cv_leave_handler_longjmp_setcontext=yes
sv_cv_leave_handler_longjmp_sigaltstack=yes
sv_cv_leave_handler_siglongjmp=no
sv_cv_leave_handler_siglongjmp_setcontext=yes
sv_cv_leave_handler_siglongjmp_sigaltstack=yes
sv_cv_macro_pagesize=no
sv_cv_procfsvma=no
sv_cv_sigaltstack=yes
sv_cv_stack_direction=-1
sv_cv_stack_direction_msg='grows down'

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /u/pkgsrc/devel/libsigsegv/work/libsigsegv-2.4/build-aux/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /u/pkgsrc/devel/libsigsegv/work/libsigsegv-2.4/build-aux/missing --run tar'
AR='ar'
AUTOCONF='${SHELL} /u/pkgsrc/devel/libsigsegv/work/libsigsegv-2.4/build-aux/missing --run autoconf'
AUTOHEADER='${SHELL} /u/pkgsrc/devel/libsigsegv/work/libsigsegv-2.4/build-aux/missing --run autoheader'
AUTOMAKE='${SHELL} /u/pkgsrc/devel/libsigsegv/work/libsigsegv-2.4/build-aux/missing --run automake-1.9'
AWK='/usr/bin/awk'
CC='cc'
CCDEPMODE='depmode=none'
CFG_HANDLER='handler-unix.c'
CFG_LEAVE='leave-sigaltstack.c'
CFG_STACKVMA='stackvma-mincore.c'
CFLAGS='-O2'
CPP='cc -E'
CPPFLAGS=''
CXX='c++'
CXXCPP='cpp'
CXXDEPMODE='depmode=none'
CXXFLAGS='-O2'
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
F77='f77'
FAULT_CONTEXT='ucontext_t'
FAULT_CONTEXT_INCLUDE2=''
FAULT_CONTEXT_INCLUDE='#include <ucontext.h>'
FFLAGS='-O'
HAVE_SIGSEGV_RECOVERY='1'
HAVE_STACK_OVERFLOW_RECOVERY='1'
INSTALL_DATA='/usr/bin/install -c -o root -g wheel -m 444'
INSTALL_PROGRAM='/usr/bin/install -c -s -o root -g wheel -m 555'
INSTALL_SCRIPT='/usr/bin/install -c -o root -g wheel -m 555'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-Wl,-R/usr/pkg/lib'
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='/u/pkgsrc/devel/libsigsegv/work/.tools/bin/makeinfo'
OBJEXT='o'
PACKAGE='libsigsegv'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PLATFORM='i386--netbsdelf'
RANLIB='ranlib'
RELOCATABLE='no'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='2.4'
ac_ct_AR='ar'
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB='ranlib'
ac_ct_STRIP='strip'
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE='#'
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i386-unknown-netbsdelf3.0'
build_alias=''
build_cpu='i386'
build_os='netbsdelf3.0'
build_vendor='unknown'
datadir='${prefix}/share'
exec_prefix='${prefix}'
host='i386--netbsdelf'
host_alias='i386--netbsdelf'
host_cpu='i386'
host_os='netbsdelf'
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/usr/bin/install'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='/usr/pkg/man'
mkdir_p='$(install_sh) -d'
oldincludedir='/usr/include'
prefix='/usr/pkg'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define CFG_FAULT "fault-netbsd.h"
#define CFG_HANDLER "handler-unix.c"
#define CFG_LEAVE "leave-sigaltstack.c"
#define CFG_MACHFAULT "fault-none.h"
#define CFG_SIGNALS "signals-bsd.h"
#define CFG_STACKVMA "stackvma-mincore.c"
#define HAVE_DLFCN_H 1
#define HAVE_GETPAGESIZE 1
#define HAVE_GETRLIMIT 1
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_MINCORE 1
#define HAVE_MMAP_ANON 1
#define HAVE_MMAP_DEVZERO 1
#define HAVE_SETRLIMIT 1
#define HAVE_SIGALTSTACK 1
#define HAVE_STACKVMA 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYSCONF_PAGESIZE 1
#define HAVE_SYS_SIGNAL_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
#define HAVE_WORKING_SIGALTSTACK 1
#define PACKAGE "libsigsegv"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define STACK_DIRECTION -1
#define STDC_HEADERS 1
#define VERSION "2.4"
#endif
#ifdef __cplusplus
void exit (int);

configure: exit 0
