Changeset 958fc4 in git


Ignore:
Timestamp:
Aug 20, 2008, 2:52:32 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4dfcb1fb38350979ceb92f36be2d4fcdb0b1247a
Parents:
ab0c08e42fd20b6047352728e9d379dcde457143
Message:
*hannes: cstdio


git-svn-id: file:///usr/local/Singular/svn/trunk@11011 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
factory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/assert.h

    rab0c08e r958fc4  
    11/* emacs edit mode for this file is -*- C -*- */
    2 /* $Id: assert.h,v 1.8 2008-08-20 12:39:00 Singular Exp $ */
     2/* $Id: assert.h,v 1.9 2008-08-20 12:52:31 Singular Exp $ */
    33
    44/* This is for compatibility with standard assert.h */
     
    2929/* }}} */
    3030
     31#ifdef HAVE_CSTDIO
     32#include <cstdio>
     33#else
    3134#ifdef __cplusplus
    3235extern "C" {
     
    3740#ifdef __cplusplus
    3841}
     42#endif
    3943#endif
    4044
  • factory/configure

    rab0c08e r958fc4  
    18811881done
    18821882
     1883for ac_hdr in cstdio
     1884do
     1885ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     1886echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     1887echo "configure:1888: checking for $ac_hdr" >&5
     1888if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     1889  echo $ac_n "(cached) $ac_c" 1>&6
     1890else
     1891  cat > conftest.$ac_ext <<EOF
     1892#line 1893 "configure"
     1893#include "confdefs.h"
     1894#include <$ac_hdr>
     1895EOF
     1896ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1897{ (eval echo configure:1898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1898ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1899if test -z "$ac_err"; then
     1900  rm -rf conftest*
     1901  eval "ac_cv_header_$ac_safe=yes"
     1902else
     1903  echo "$ac_err" >&5
     1904  echo "configure: failed program was:" >&5
     1905  cat conftest.$ac_ext >&5
     1906  rm -rf conftest*
     1907  eval "ac_cv_header_$ac_safe=no"
     1908fi
     1909rm -f conftest*
     1910fi
     1911if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     1912  echo "$ac_t""yes" 1>&6
     1913    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     1914  cat >> confdefs.h <<EOF
     1915#define $ac_tr_hdr 1
     1916EOF
     1917 
     1918else
     1919  echo "$ac_t""no" 1>&6
     1920fi
     1921done
     1922
    18831923
    18841924if test "x$enable_streamio" != xno; then
     
    18871927ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    18881928echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1889 echo "configure:1890: checking for $ac_hdr" >&5
     1929echo "configure:1930: checking for $ac_hdr" >&5
    18901930if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    18911931  echo $ac_n "(cached) $ac_c" 1>&6
    18921932else
    18931933  cat > conftest.$ac_ext <<EOF
    1894 #line 1895 "configure"
     1934#line 1935 "configure"
    18951935#include "confdefs.h"
    18961936#include <$ac_hdr>
    18971937EOF
    18981938ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1899 { (eval echo configure:1900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1939{ (eval echo configure:1940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19001940ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19011941if test -z "$ac_err"; then
     
    19271967ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    19281968echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1929 echo "configure:1930: checking for $ac_hdr" >&5
     1969echo "configure:1970: checking for $ac_hdr" >&5
    19301970if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    19311971  echo $ac_n "(cached) $ac_c" 1>&6
    19321972else
    19331973  cat > conftest.$ac_ext <<EOF
    1934 #line 1935 "configure"
     1974#line 1975 "configure"
    19351975#include "confdefs.h"
    19361976#include <$ac_hdr>
    19371977EOF
    19381978ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1939 { (eval echo configure:1940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1979{ (eval echo configure:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19401980ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19411981if test -z "$ac_err"; then
     
    19712011ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    19722012echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1973 echo "configure:1974: checking for $ac_hdr" >&5
     2013echo "configure:2014: checking for $ac_hdr" >&5
    19742014if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    19752015  echo $ac_n "(cached) $ac_c" 1>&6
    19762016else
    19772017  cat > conftest.$ac_ext <<EOF
    1978 #line 1979 "configure"
     2018#line 2019 "configure"
    19792019#include "confdefs.h"
    19802020#include <$ac_hdr>
    19812021EOF
    19822022ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1983 { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2023{ (eval echo configure:2024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19842024ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19852025if test -z "$ac_err"; then
     
    20172057ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20182058echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2019 echo "configure:2020: checking for $ac_hdr" >&5
     2059echo "configure:2060: checking for $ac_hdr" >&5
    20202060if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20212061  echo $ac_n "(cached) $ac_c" 1>&6
    20222062else
    20232063  cat > conftest.$ac_ext <<EOF
    2024 #line 2025 "configure"
     2064#line 2065 "configure"
    20252065#include "confdefs.h"
    20262066#include <$ac_hdr>
    20272067EOF
    20282068ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2029 { (eval echo configure:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2069{ (eval echo configure:2070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20302070ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    20312071if test -z "$ac_err"; then
     
    20612101ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20622102echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2063 echo "configure:2064: checking for $ac_hdr" >&5
     2103echo "configure:2104: checking for $ac_hdr" >&5
    20642104if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20652105  echo $ac_n "(cached) $ac_c" 1>&6
    20662106else
    20672107  cat > conftest.$ac_ext <<EOF
    2068 #line 2069 "configure"
     2108#line 2109 "configure"
    20692109#include "confdefs.h"
    20702110#include <$ac_hdr>
    20712111EOF
    20722112ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2073 { (eval echo configure:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2113{ (eval echo configure:2114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20742114ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    20752115if test -z "$ac_err"; then
     
    21282168# arithmetic shift
    21292169echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&6
    2130 echo "configure:2131: checking whether your compiler does arithmetic shifts" >&5
     2170echo "configure:2171: checking whether your compiler does arithmetic shifts" >&5
    21312171if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    21322172  echo $ac_n "(cached) $ac_c" 1>&6
     
    21372177else
    21382178  cat > conftest.$ac_ext <<EOF
    2139 #line 2140 "configure"
     2179#line 2180 "configure"
    21402180#include "confdefs.h"
    21412181 int main() { if (-2 >> 1 == -1) return(0); else return(1); }
    21422182EOF
    2143 if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2183if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    21442184then
    21452185  ac_cv_shift=yes
     
    22232263# check whether CXX accepts -fno-rtti
    22242264echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&6
    2225 echo "configure:2226: checking whether gcc accepts -fno-rtti" >&5
     2265echo "configure:2266: checking whether gcc accepts -fno-rtti" >&5
    22262266tmp_flags=${CXXFLAGS}
    22272267CXXFLAGS="${CXXFLAGS} -fno-rtti"
     
    22302270else
    22312271  cat > conftest.$ac_ext <<EOF
    2232 #line 2233 "configure"
     2272#line 2273 "configure"
    22332273#include "confdefs.h"
    22342274
     
    22372277; return 0; }
    22382278EOF
    2239 if { (eval echo configure:2240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2279if { (eval echo configure:2280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22402280  rm -rf conftest*
    22412281  ac_cv_cxx_have_rtti=yes
     
    22572297
    22582298echo $ac_n "checking whether gcc accepts -fno-exceptions""... $ac_c" 1>&6
    2259 echo "configure:2260: checking whether gcc accepts -fno-exceptions" >&5
     2299echo "configure:2300: checking whether gcc accepts -fno-exceptions" >&5
    22602300tmp_flags=${CXXFLAGS}
    22612301CXXFLAGS="${CXXFLAGS} -fno-exceptions"
     
    22642304else
    22652305  cat > conftest.$ac_ext <<EOF
    2266 #line 2267 "configure"
     2306#line 2307 "configure"
    22672307#include "confdefs.h"
    22682308
     
    22712311; return 0; }
    22722312EOF
    2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2313if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    22742314  rm -rf conftest*
    22752315  ac_cv_cxx_have_exceptions=yes
     
    23392379
    23402380echo $ac_n "checking whether to use omalloc""... $ac_c" 1>&6
    2341 echo "configure:2342: checking whether to use omalloc" >&5
     2381echo "configure:2382: checking whether to use omalloc" >&5
    23422382
    23432383if test "$with_omalloc" = yes; then
  • factory/configure.in

    rab0c08e r958fc4  
    11dnl # emacs edit mode for this file is -*- sh -*-
    2 dnl # $Id: configure.in,v 1.48 2008-08-20 12:38:28 Singular Exp $
     2dnl # $Id: configure.in,v 1.49 2008-08-20 12:52:32 Singular Exp $
    33
    44dnl #
     
    1313# - initialisation.
    1414#
    15 AC_REVISION($Id: configure.in,v 1.48 2008-08-20 12:38:28 Singular Exp $)
     15AC_REVISION($Id: configure.in,v 1.49 2008-08-20 12:52:32 Singular Exp $)
    1616AC_INIT(canonicalform.cc)
    1717AC_CONFIG_HEADER(config.h)
     
    267267AC_CHECK_HEADERS(stdio.h stdlib.h string.h time.h math.h, ,
    268268  [ AC_MSG_ERROR(C header files not found) ])
     269AC_CHECK_HEADERS(cstdio)
    269270
    270271if test "x$enable_streamio" != xno; then
Note: See TracChangeset for help on using the changeset viewer.