From adbd58188c9dfabb5082084ea25b33850672e658 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 13 Feb 2003 12:28:49 +0000 Subject: [PATCH] Added BOOST_HAS_SIGACTION [SVN r17360] --- configure | 350 ++++++++++++++++------- include/boost/config/platform/bsd.hpp | 1 + include/boost/config/platform/cygwin.hpp | 1 + include/boost/config/platform/hpux.hpp | 3 + include/boost/config/platform/macos.hpp | 3 +- include/boost/config/posix_features.hpp | 4 + test/Jamfile | 158 +++++----- test/boost_has_sigaction.ipp | 33 +++ test/config_info.cpp | 2 + test/config_test.cpp | 8 +- test/has_sigaction_fail.cpp | 35 +++ test/has_sigaction_pass.cpp | 35 +++ 12 files changed, 456 insertions(+), 177 deletions(-) create mode 100644 test/boost_has_sigaction.ipp create mode 100644 test/has_sigaction_fail.cpp create mode 100644 test/has_sigaction_pass.cpp diff --git a/configure b/configure index 6c38a737..4f707d08 100644 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.54. +# Generated by GNU Autoconf 2.57. # # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 # Free Software Foundation, Inc. @@ -36,7 +36,10 @@ PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME do if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var @@ -82,15 +85,15 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conftest.sh - echo "exit 0" >>conftest.sh - chmod +x conftest.sh - if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi - rm -f conftest.sh + rm -f conf$$.sh fi @@ -890,7 +893,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was -generated by GNU Autoconf 2.54. Invocation command line was +generated by GNU Autoconf 2.57. Invocation command line was $ $0 $@ @@ -942,24 +945,54 @@ _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= +ac_configure_args0= +ac_configure_args1= ac_sep= -for ac_arg +ac_must_keep_next=false +for ac_pass in 1 2 do - case $ac_arg in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n ) continue ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - continue ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - # Get rid of the leading space. - ac_sep=" " + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 2) + ac_configure_args1="$ac_configure_args1 '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + # Get rid of the leading space. + ac_sep=" " + ;; + esac + done done +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there @@ -1411,7 +1444,11 @@ ac_compiler=`set X $ac_compile; echo $2` cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ int main () @@ -1422,7 +1459,7 @@ main () } _ACEOF ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe" +ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. @@ -1441,27 +1478,39 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 # Be careful to initialize this variable, since it used to be cached. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ac_cv_exeext= -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do +# b.out is created by i960 compilers. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out +do test -f "$ac_file" || continue case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; - a.out ) # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - # FIXME: I believe we export ac_cv_exeext for Libtool --akim. - export ac_cv_exeext - break;; - * ) break;; + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) + ;; + conftest.$ac_ext ) + # This is the source file. + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + # FIXME: I believe we export ac_cv_exeext for Libtool, + # but it would be cool to find out if it's true. Does anybody + # maintain Libtool? --akim. + export ac_cv_exeext + break;; + * ) + break;; esac done else echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables -check \`config.log' for details." >&5 +See \`config.log' for more details." >&5 echo "$as_me: error: C++ compiler cannot create executables -check \`config.log' for details." >&2;} +See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi @@ -1488,9 +1537,11 @@ if test "$cross_compiling" != yes; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. -If you meant to cross compile, use \`--host'." >&5 +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C++ compiled programs. -If you meant to cross compile, use \`--host'." >&2;} +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi @@ -1498,7 +1549,7 @@ fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 -rm -f a.out a.exe conftest$ac_cv_exeext +rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. @@ -1529,8 +1580,10 @@ for ac_file in conftest.exe conftest conftest.*; do esac done else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi @@ -1548,7 +1601,11 @@ if test "${ac_cv_objext+set}" = set; then else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ int main () @@ -1573,9 +1630,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 done else echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi @@ -1592,7 +1652,11 @@ if test "${ac_cv_cxx_compiler_gnu+set}" = set; then else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ int main () @@ -1620,7 +1684,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_compiler_gnu=no fi rm -f conftest.$ac_objext conftest.$ac_ext @@ -1640,7 +1705,11 @@ if test "${ac_cv_prog_cxx_g+set}" = set; then else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ int main () @@ -1665,7 +1734,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_prog_cxx_g=no fi rm -f conftest.$ac_objext conftest.$ac_ext @@ -1698,7 +1768,11 @@ for ac_declaration in \ do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ #include $ac_declaration int @@ -1724,13 +1798,18 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 : else echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + continue fi rm -f conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ $ac_declaration int main () @@ -1755,7 +1834,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 break else echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + fi rm -f conftest.$ac_objext conftest.$ac_ext done @@ -1807,7 +1887,11 @@ else LIBS="-lpthread $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus @@ -1839,7 +1923,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_cv_lib_pthread_pthread_exit=yes else echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_lib_pthread_pthread_exit=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext @@ -1866,7 +1951,11 @@ else LIBS="-lm $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus @@ -1898,7 +1987,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_cv_lib_m_cos=yes else echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_lib_m_cos=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext @@ -1925,7 +2015,11 @@ else LIBS="-lrt $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus @@ -1957,7 +2051,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_cv_lib_rt_clock=yes else echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_lib_rt_clock=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext @@ -2000,13 +2095,19 @@ echo $ECHO_N "checking $title (pass expected) ... $ECHO_C" >&6 echo $ECHO_N "checking $title ... $ECHO_C" >&6 fi if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 -echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ #include #include "test.hpp" @@ -2037,7 +2138,8 @@ echo "${ECHO_T}OK" >&6 else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ( exit $ac_status ) echo "$as_me:$LINENO: result: Failed" >&5 echo "${ECHO_T}Failed" >&6 @@ -2053,13 +2155,19 @@ fi echo "$as_me:$LINENO: checking $title (fail expected) " >&5 echo $ECHO_N "checking $title (fail expected) ... $ECHO_C" >&6 if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 -echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ #include #include "test.hpp" @@ -2091,7 +2199,8 @@ echo "${ECHO_T}failed" >&6 else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ( exit $ac_status ) echo "$as_me:$LINENO: result: OK" >&5 echo "${ECHO_T}OK" >&6 @@ -2124,13 +2233,19 @@ for file in $boost_base/libs/config/test/boost_has*.cxx; do echo "$as_me:$LINENO: checking $title (pass expected) " >&5 echo $ECHO_N "checking $title (pass expected) ... $ECHO_C" >&6 if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 -echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ #include #include "test.hpp" @@ -2161,7 +2276,8 @@ echo "${ECHO_T}OK" >&6 else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ( exit $ac_status ) echo "$as_me:$LINENO: result: Failed" >&5 echo "${ECHO_T}Failed" >&6 @@ -2174,13 +2290,19 @@ fi echo "$as_me:$LINENO: checking $title (fail expected) " >&5 echo $ECHO_N "checking $title (fail expected) ... $ECHO_C" >&6 if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 -echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ #include #include "test.hpp" @@ -2214,7 +2336,8 @@ echo "${ECHO_T}failed" >&6 else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ( exit $ac_status ) echo "$as_me:$LINENO: result: OK" >&5 @@ -2231,13 +2354,19 @@ fi echo "$as_me:$LINENO: checking $title" >&5 echo $ECHO_N "checking $title... $ECHO_C" >&6 if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 -echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" -#include "confdefs.h" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ #include #include "test.hpp" @@ -2267,7 +2396,8 @@ echo "${ECHO_T}Yes" >&6 else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ( exit $ac_status ) echo "$as_me:$LINENO: result: no" >&5 @@ -2465,6 +2595,8 @@ cat >$CONFIG_STATUS <<_ACEOF # configure, is in config.log if it exists. debug=false +ac_cs_recheck=false +ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF @@ -2499,7 +2631,10 @@ PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME do if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var @@ -2545,15 +2680,15 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conftest.sh - echo "exit 0" >>conftest.sh - chmod +x conftest.sh - if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi - rm -f conftest.sh + rm -f conf$$.sh fi @@ -2716,7 +2851,7 @@ _ASBOX cat >&5 <<_CSEOF This file was extended by $as_me, which was -generated by GNU Autoconf 2.54. Invocation command line was +generated by GNU Autoconf 2.57. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -2756,6 +2891,7 @@ Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit + -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions @@ -2768,7 +2904,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status -configured by $0, generated by GNU Autoconf 2.54, +configured by $0, generated by GNU Autoconf 2.57, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 @@ -2804,12 +2940,9 @@ do case $ac_option in # Handling of the options. _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" - exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; -_ACEOF cat >>$CONFIG_STATUS <<\_ACEOF + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) @@ -2831,6 +2964,9 @@ Try \`$0 --help' for more information." >&2;} $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 @@ -2845,6 +2981,20 @@ Try \`$0 --help' for more information." >&2;} shift done +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF +if \$ac_cs_recheck; then + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +fi + _ACEOF cat >>$CONFIG_STATUS <<_ACEOF @@ -2881,6 +3031,9 @@ if $ac_need_defaults; then test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason to put it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { @@ -2889,17 +3042,17 @@ $debug || } # Create a (secure) tmp directory for tmp files. -: ${TMPDIR=/tmp} + { - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { - tmp=$TMPDIR/cs$$-$RANDOM + tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { - echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } @@ -2998,8 +3151,11 @@ ac_clean_files=$ac_clean_files_save # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null - $SHELL $CONFIG_STATUS || ac_cs_success=false + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. diff --git a/include/boost/config/platform/bsd.hpp b/include/boost/config/platform/bsd.hpp index bafb8ef4..9adf3a5c 100644 --- a/include/boost/config/platform/bsd.hpp +++ b/include/boost/config/platform/bsd.hpp @@ -53,6 +53,7 @@ #define BOOST_HAS_NANOSLEEP #define BOOST_HAS_GETTIMEOFDAY #define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE +#define BOOST_HAS_SIGACTION // boilerplate code: #define BOOST_HAS_UNISTD_H diff --git a/include/boost/config/platform/cygwin.hpp b/include/boost/config/platform/cygwin.hpp index 1e2eb5ee..ad5ae94f 100644 --- a/include/boost/config/platform/cygwin.hpp +++ b/include/boost/config/platform/cygwin.hpp @@ -24,6 +24,7 @@ # define BOOST_HAS_SCHED_YIELD # define BOOST_HAS_GETTIMEOFDAY # define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE +# define BOOST_HAS_SIGACTION #else # if !defined(BOOST_HAS_WINTHREADS) # define BOOST_HAS_WINTHREADS diff --git a/include/boost/config/platform/hpux.hpp b/include/boost/config/platform/hpux.hpp index 8ae5ba13..bd16015d 100644 --- a/include/boost/config/platform/hpux.hpp +++ b/include/boost/config/platform/hpux.hpp @@ -54,4 +54,7 @@ #ifndef BOOST_HAS_CLOCK_GETTIME # define BOOST_HAS_CLOCK_GETTIME #endif +#ifndef BOOST_HAS_SIGACTION +# define BOOST_HAS_SIGACTION +#endif diff --git a/include/boost/config/platform/macos.hpp b/include/boost/config/platform/macos.hpp index dfa8eff4..047cbf52 100644 --- a/include/boost/config/platform/macos.hpp +++ b/include/boost/config/platform/macos.hpp @@ -27,12 +27,13 @@ # endif // -// BSD runtime has pthreads, sched_yield and gettimeofday, +// BSD runtime has pthreads, sigaction, sched_yield and gettimeofday, // of these only pthreads are advertised in , so set the // other options explicitly: // # define BOOST_HAS_SCHED_YIELD # define BOOST_HAS_GETTIMEOFDAY +# define BOOST_HAS_SIGACTION # ifndef __APPLE_CC__ diff --git a/include/boost/config/posix_features.hpp b/include/boost/config/posix_features.hpp index 0d3f05f5..81979c3f 100644 --- a/include/boost/config/posix_features.hpp +++ b/include/boost/config/posix_features.hpp @@ -31,6 +31,10 @@ # define BOOST_HAS_DIRENT_H # endif + // POSIX version 3 requires to have sigaction: +# if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 199506L) +# define BOOST_HAS_SIGACTION +# endif // POSIX defines _POSIX_THREADS > 0 for pthread support, // however some platforms define _POSIX_THREADS without // a value, hence the (_POSIX_THREADS+0 >= 0) check. diff --git a/test/Jamfile b/test/Jamfile index e77d631e..792640a3 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -1,6 +1,6 @@ # # Regression test Jamfile for boost configuration setup. -# This file was automatically generated on Mon Dec 9 12:06:12 2002, +# This file was automatically generated on Thu Feb 13 12:10:01 GMTST 2003, # do not edit by hand... # subproject libs/config/test ; @@ -13,231 +13,233 @@ run config_test.cpp ../../test/build/boost_test_exec_monitor ; run limits_test.cpp ../../test/build/boost_test_exec_monitor ; test-suite "BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP" : -[ run no_arg_dep_lookup_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_arg_dep_lookup_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_arg_dep_lookup_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_AUTO_PTR" : -[ run no_auto_ptr_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_auto_ptr_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_auto_ptr_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_BCB_PARTIAL_SPECIALIZATION_BUG" : -[ run no_bcb_partial_spec_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_bcb_partial_spec_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_bcb_partial_spec_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_CTYPE_FUNCTIONS" : -[ run no_ctype_functions_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_ctype_functions_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_ctype_functions_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_CV_SPECIALIZATIONS" : -[ run no_cv_spec_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_cv_spec_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_cv_spec_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_CV_VOID_SPECIALIZATIONS" : -[ run no_cv_void_spec_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_cv_void_spec_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_cv_void_spec_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_CWCHAR" : -[ run no_cwchar_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_cwchar_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_cwchar_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_CWCTYPE" : -[ run no_cwctype_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_cwctype_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_cwctype_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_DEDUCED_TYPENAME" : -[ run no_ded_typename_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_ded_typename_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_ded_typename_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_DEPENDENT_NESTED_DERIVATIONS" : -[ run no_dep_nested_class_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_dep_nested_class_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_dep_nested_class_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS" : -[ run no_dep_val_param_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_dep_val_param_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_dep_val_param_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_EXCEPTION_STD_NAMESPACE" : -[ run no_excep_std_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_excep_std_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_excep_std_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_EXCEPTIONS" : -[ run no_exceptions_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_exceptions_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_exceptions_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS" : -[ run no_exp_func_tem_arg_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_exp_func_tem_arg_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_exp_func_tem_arg_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_FUNCTION_TEMPLATE_ORDERING" : -[ run no_func_tmp_order_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_func_tmp_order_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_func_tmp_order_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_MS_INT64_NUMERIC_LIMITS" : -[ run no_i64_limits_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_i64_limits_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_i64_limits_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_INCLASS_MEMBER_INITIALIZATION" : -[ run no_inline_memb_init_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_inline_memb_init_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_inline_memb_init_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_INTEGRAL_INT64_T" : -[ run no_integral_int64_t_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_integral_int64_t_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_integral_int64_t_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS" : -[ run no_iter_construct_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_iter_construct_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_iter_construct_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_LIMITS" : -[ run no_limits_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_limits_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_limits_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS" : -[ run no_limits_const_exp_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_limits_const_exp_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_limits_const_exp_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_LONG_LONG_NUMERIC_LIMITS" : -[ run no_ll_limits_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_ll_limits_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_ll_limits_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS" : -[ run no_mem_func_spec_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_mem_func_spec_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_mem_func_spec_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_MEMBER_TEMPLATE_KEYWORD" : -[ run no_mem_tem_keyword_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_mem_tem_keyword_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_mem_tem_keyword_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_MEMBER_TEMPLATE_FRIENDS" : -[ run no_mem_templ_frnds_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_mem_templ_frnds_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_mem_templ_frnds_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_MEMBER_TEMPLATES" : -[ run no_mem_templates_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_mem_templates_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_mem_templates_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_OPERATORS_IN_NAMESPACE" : -[ run no_ops_in_namespace_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_ops_in_namespace_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_ops_in_namespace_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION" : -[ run no_partial_spec_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_partial_spec_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_partial_spec_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_PRIVATE_IN_AGGREGATE" : -[ run no_priv_aggregate_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_priv_aggregate_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_priv_aggregate_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_POINTER_TO_MEMBER_CONST" : -[ run no_ptr_mem_const_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_ptr_mem_const_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_ptr_mem_const_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_UNREACHABLE_RETURN_DETECTION" : -[ run no_ret_det_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_ret_det_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_ret_det_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STRINGSTREAM" : -[ run no_sstream_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_sstream_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_sstream_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_ALLOCATOR" : -[ run no_std_allocator_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_allocator_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_allocator_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_DISTANCE" : -[ run no_std_distance_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_distance_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_distance_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_ITERATOR_TRAITS" : -[ run no_std_iter_traits_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_iter_traits_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_iter_traits_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_ITERATOR" : -[ run no_std_iterator_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_iterator_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_iterator_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_LOCALE" : -[ run no_std_locale_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_locale_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_locale_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_MESSAGES" : -[ run no_std_messages_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_messages_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_messages_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_MIN_MAX" : -[ run no_std_min_max_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_min_max_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_min_max_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN" : -[ run no_std_oi_assign_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_oi_assign_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_oi_assign_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_USE_FACET" : -[ run no_std_use_facet_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_use_facet_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_use_facet_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_WSTREAMBUF" : -[ run no_std_wstreambuf_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_wstreambuf_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_wstreambuf_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STD_WSTRING" : -[ run no_std_wstring_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_std_wstring_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_std_wstring_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_STDC_NAMESPACE" : -[ run no_stdc_namespace_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_stdc_namespace_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_stdc_namespace_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_SWPRINTF" : -[ run no_swprintf_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_swprintf_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_swprintf_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_TEMPLATE_TEMPLATES" : -[ run no_template_template_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_template_template_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_template_template_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_USING_TEMPLATE" : -[ run no_using_template_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_using_template_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_using_template_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_VOID_RETURNS" : -[ run no_void_returns_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_void_returns_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_void_returns_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_NO_INTRINSIC_WCHAR_T" : -[ run no_wchar_t_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run no_wchar_t_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail no_wchar_t_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_TWO_ARG_USE_FACET" : -[ run has_2arg_use_facet_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_2arg_use_facet_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_2arg_use_facet_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_BETHREADS" : -[ run has_bethreads_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_bethreads_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_bethreads_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_CLOCK_GETTIME" : -[ run has_clock_gettime_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_clock_gettime_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_clock_gettime_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_DIRENT_H" : -[ run has_dirent_h_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_dirent_h_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_dirent_h_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_FTIME" : -[ run has_ftime_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_ftime_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_ftime_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_GETTIMEOFDAY" : -[ run has_gettimeofday_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_gettimeofday_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_gettimeofday_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_HASH" : -[ run has_hash_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_hash_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_hash_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_LONG_LONG" : -[ run has_long_long_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_long_long_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_long_long_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_MACRO_USE_FACET" : -[ run has_macro_use_facet_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_macro_use_facet_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_macro_use_facet_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_MS_INT64" : -[ run has_ms_int64_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_ms_int64_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_ms_int64_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_NANOSLEEP" : -[ run has_nanosleep_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_nanosleep_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_nanosleep_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_NL_TYPES_H" : -[ run has_nl_types_h_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_nl_types_h_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_nl_types_h_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_NRVO" : -[ run has_nrvo_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_nrvo_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_nrvo_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_PARTIAL_STD_ALLOCATOR" : -[ run has_part_alloc_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_part_alloc_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_part_alloc_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_PTHREAD_DELAY_NP" : -[ run has_pthread_delay_np_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_pthread_delay_np_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_pthread_delay_np_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE" : -[ run has_pthread_ma_st_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_pthread_ma_st_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_pthread_ma_st_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_PTHREAD_YIELD" : -[ run has_pthread_yield_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_pthread_yield_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_pthread_yield_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_PTHREADS" : -[ run has_pthreads_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_pthreads_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_pthreads_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_SCHED_YIELD" : -[ run has_sched_yield_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_sched_yield_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_sched_yield_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_SGI_TYPE_TRAITS" : -[ run has_sgi_type_traits_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_sgi_type_traits_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_sgi_type_traits_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; +test-suite "BOOST_HAS_SIGACTION" : +[ run has_sigaction_pass.cpp ../../test/build/prg_exec_monitor ] +[ compile-fail has_sigaction_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_SLIST" : -[ run has_slist_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_slist_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_slist_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_STDINT_H" : -[ run has_stdint_h_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_stdint_h_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_stdint_h_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_STLP_USE_FACET" : -[ run has_stlp_use_facet_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_stlp_use_facet_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_stlp_use_facet_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_UNISTD_H" : -[ run has_unistd_h_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_unistd_h_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_unistd_h_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_MSVC6_MEMBER_TEMPLATES" : -[ run has_vc6_mem_templ_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_vc6_mem_templ_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_vc6_mem_templ_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_MSVC_STD_ITERATOR" : -[ run has_vc_iterator_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_vc_iterator_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_vc_iterator_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; test-suite "BOOST_HAS_WINTHREADS" : -[ run has_winthreads_pass.cpp ../../test/build/boost_prg_exec_monitor ] +[ run has_winthreads_pass.cpp ../../test/build/prg_exec_monitor ] [ compile-fail has_winthreads_fail.cpp ../../test/build/boost_prg_exec_monitor ] ; - diff --git a/test/boost_has_sigaction.ipp b/test/boost_has_sigaction.ipp new file mode 100644 index 00000000..7f1b4255 --- /dev/null +++ b/test/boost_has_sigaction.ipp @@ -0,0 +1,33 @@ +// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// MACRO: BOOST_HAS_SIGACTION +// TITLE: sigaction +// DESCRIPTION: The platform supports POSIX standard API sigaction. + +#include + + +namespace boost_has_sigaction{ + +void f() +{ + // this is never called, it just has to compile: + struct sigaction* sa1; + struct sigaction* sa2; + int res = sigaction(0, sa1, sa2); + (void) &res; +} + +int test() +{ + return 0; +} + +} + + + + diff --git a/test/config_info.cpp b/test/config_info.cpp index 159296af..3a23a07a 100644 --- a/test/config_info.cpp +++ b/test/config_info.cpp @@ -857,6 +857,7 @@ void print_boost_macros() PRINT_MACRO(BOOST_HAS_PTHREAD_YIELD); PRINT_MACRO(BOOST_HAS_PTHREADS); PRINT_MACRO(BOOST_HAS_SCHED_YIELD); + PRINT_MACRO(BOOST_HAS_SIGACTION); PRINT_MACRO(BOOST_HAS_SGI_TYPE_TRAITS); PRINT_MACRO(BOOST_HAS_STDINT_H); PRINT_MACRO(BOOST_HAS_SLIST); @@ -950,3 +951,4 @@ int main() + diff --git a/test/config_test.cpp b/test/config_test.cpp index c65c1eca..e6fe25c4 100644 --- a/test/config_test.cpp +++ b/test/config_test.cpp @@ -10,7 +10,7 @@ // Do not edit this file, it was generated automatically by // ../tools/generate from boost_*.cxx on -// Mon Dec 9 12:06:12 2002 +// Thu Feb 13 12:10:01 GMTST 2003 #include #define BOOST_INCLUDE_MAIN @@ -362,6 +362,11 @@ namespace boost_has_sched_yield = empty_boost; #else namespace boost_has_sgi_type_traits = empty_boost; #endif +#ifdef BOOST_HAS_SIGACTION +#include "boost_has_sigaction.cxx" +#else +namespace boost_has_sigaction = empty_boost; +#endif #ifdef BOOST_HAS_SLIST #include "boost_has_slist.cxx" #else @@ -456,6 +461,7 @@ int test_main( int, char *[] ) BOOST_TEST(0 == boost_has_stlp_use_facet::test()); BOOST_TEST(0 == boost_has_stdint_h::test()); BOOST_TEST(0 == boost_has_slist::test()); + BOOST_TEST(0 == boost_has_sigaction::test()); BOOST_TEST(0 == boost_has_sgi_type_traits::test()); BOOST_TEST(0 == boost_has_sched_yield::test()); BOOST_TEST(0 == boost_has_pthreads::test()); diff --git a/test/has_sigaction_fail.cpp b/test/has_sigaction_fail.cpp new file mode 100644 index 00000000..bbc4fb65 --- /dev/null +++ b/test/has_sigaction_fail.cpp @@ -0,0 +1,35 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_SIGACTION +// This file should not compile, if it does then +// BOOST_HAS_SIGACTION may be defined. +// see boost_has_sigaction.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_sigaction.cxx on +// Thu Feb 13 12:02:51 GMTST 2003 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include "test.hpp" + +#ifndef BOOST_HAS_SIGACTION +#include "boost_has_sigaction.cxx" +#else +#error "this file should not compile" +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_sigaction::test(); +} + diff --git a/test/has_sigaction_pass.cpp b/test/has_sigaction_pass.cpp new file mode 100644 index 00000000..412a8c02 --- /dev/null +++ b/test/has_sigaction_pass.cpp @@ -0,0 +1,35 @@ + +// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// Test file for macro BOOST_HAS_SIGACTION +// This file should compile, if it does not then +// BOOST_HAS_SIGACTION should not be defined. +// see boost_has_sigaction.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_has_sigaction.cxx on +// Thu Feb 13 12:02:51 GMTST 2003 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include "test.hpp" + +#ifdef BOOST_HAS_SIGACTION +#include "boost_has_sigaction.cxx" +#else +namespace boost_has_sigaction = empty_boost; +#endif + +int cpp_main( int, char *[] ) +{ + return boost_has_sigaction::test(); +} +