Changeset 9f738e4 in git


Ignore:
Timestamp:
May 29, 2006, 6:14:45 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
f3f3adb81ffa3bac3ab830a1cb09005336f22750
Parents:
6fc94170622931a7d7420b94ddf05a83056ed1d1
Message:
*hannes: iostream/iostream.h


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

Legend:

Unmodified
Added
Removed
  • configure

    r6fc941 r9f738e4  
    23762376    BUILD1_SUBDIRS="$BUILD1_SUBDIRS ntl"
    23772377    ac_configure_args="$ac_configure_args --enable-NTL"
     2378    ac_ext=C
     2379# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     2380ac_cpp='$CXXCPP $CPPFLAGS'
     2381ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     2382ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2383cross_compiling=$ac_cv_prog_cxx_cross
     2384
     2385    echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
     2386echo "configure:2387: checking how to run the C++ preprocessor" >&5
     2387if test -z "$CXXCPP"; then
     2388if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
     2389  echo $ac_n "(cached) $ac_c" 1>&6
     2390else
     2391  ac_ext=C
     2392# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     2393ac_cpp='$CXXCPP $CPPFLAGS'
     2394ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     2395ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2396cross_compiling=$ac_cv_prog_cxx_cross
     2397  CXXCPP="${CXX-g++} -E"
     2398  cat > conftest.$ac_ext <<EOF
     2399#line 2400 "configure"
     2400#include "confdefs.h"
     2401#include <stdlib.h>
     2402EOF
     2403ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2404{ (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2405ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2406if test -z "$ac_err"; then
     2407  :
     2408else
     2409  echo "$ac_err" >&5
     2410  echo "configure: failed program was:" >&5
     2411  cat conftest.$ac_ext >&5
     2412  rm -rf conftest*
     2413  CXXCPP=/lib/cpp
     2414fi
     2415rm -f conftest*
     2416  ac_cv_prog_CXXCPP="$CXXCPP"
     2417ac_ext=C
     2418# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     2419ac_cpp='$CXXCPP $CPPFLAGS'
     2420ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     2421ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2422cross_compiling=$ac_cv_prog_cxx_cross
     2423fi
     2424fi
     2425CXXCPP="$ac_cv_prog_CXXCPP"
     2426echo "$ac_t""$CXXCPP" 1>&6
     2427
     2428for ac_hdr in iostream.h iostream
     2429do
     2430ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     2431echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     2432echo "configure:2433: checking for $ac_hdr" >&5
     2433if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     2434  echo $ac_n "(cached) $ac_c" 1>&6
     2435else
     2436  cat > conftest.$ac_ext <<EOF
     2437#line 2438 "configure"
     2438#include "confdefs.h"
     2439#include <$ac_hdr>
     2440EOF
     2441ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2442{ (eval echo configure:2443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2443ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2444if test -z "$ac_err"; then
     2445  rm -rf conftest*
     2446  eval "ac_cv_header_$ac_safe=yes"
     2447else
     2448  echo "$ac_err" >&5
     2449  echo "configure: failed program was:" >&5
     2450  cat conftest.$ac_ext >&5
     2451  rm -rf conftest*
     2452  eval "ac_cv_header_$ac_safe=no"
     2453fi
     2454rm -f conftest*
     2455fi
     2456if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     2457  echo "$ac_t""yes" 1>&6
     2458    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     2459  cat >> confdefs.h <<EOF
     2460#define $ac_tr_hdr 1
     2461EOF
     2462 
     2463else
     2464  echo "$ac_t""no" 1>&6
     2465fi
     2466done
     2467
     2468   
    23782469  else
    23792470    enable_NTL=no
     
    23942485
    23952486echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
    2396 echo "configure:2397: checking whether to configure and build factory lib" >&5
     2487echo "configure:2488: checking whether to configure and build factory lib" >&5
    23972488if test "$enable_factory" != yes && test "$enable_factory" != no; then
    23982489  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
     
    24212512
    24222513echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
    2423 echo "configure:2424: checking whether to configure and build libfac lib" >&5
     2514echo "configure:2515: checking whether to configure and build libfac lib" >&5
    24242515if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
    24252516  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
     
    24532544
    24542545echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
    2455 echo "configure:2456: checking whether to configure and build sgroup lib" >&5
     2546echo "configure:2547: checking whether to configure and build sgroup lib" >&5
    24562547if test "$enable_sgroup" = yes; then
    24572548  if test ! -d sgroup; then
     
    24742565
    24752566echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
    2476 echo "configure:2477: checking whether to configure and build Singular" >&5
     2567echo "configure:2568: checking whether to configure and build Singular" >&5
    24772568if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
    24782569  if test "$with_Singular" != no && test -d Singular; then
     
    25052596
    25062597echo $ac_n "checking whether to build IntegerProgramming""... $ac_c" 1>&6
    2507 echo "configure:2508: checking whether to build IntegerProgramming" >&5
     2598echo "configure:2599: checking whether to build IntegerProgramming" >&5
    25082599if test "$enable_IntegerProgramming" != no && test -d "IntegerProgramming"; then
    25092600   BUILD_SUBDIRS="$BUILD_SUBDIRS IntegerProgramming"
     
    25182609
    25192610echo $ac_n "checking whether to build Plural""... $ac_c" 1>&6
    2520 echo "configure:2521: checking whether to build Plural" >&5
     2611echo "configure:2612: checking whether to build Plural" >&5
    25212612if test "$enable_Plural" != no || test "$with_Plural" != no; then
    25222613   echo "$ac_t""yes" 1>&6
     
    25302621
    25312622echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6
    2532 echo "configure:2533: checking whether to configure and build Texinfo" >&5
     2623echo "configure:2624: checking whether to configure and build Texinfo" >&5
    25332624if test "$enable_Texinfo" != no && test -d Texinfo; then
    25342625  echo "$ac_t""yes" 1>&6
     
    25542645set dummy makeinfo; ac_word=$2
    25552646echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2556 echo "configure:2557: checking for $ac_word" >&5
     2647echo "configure:2648: checking for $ac_word" >&5
    25572648if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
    25582649  echo $ac_n "(cached) $ac_c" 1>&6
     
    25842675set dummy texi2dvi; ac_word=$2
    25852676echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2586 echo "configure:2587: checking for $ac_word" >&5
     2677echo "configure:2678: checking for $ac_word" >&5
    25872678if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
    25882679  echo $ac_n "(cached) $ac_c" 1>&6
     
    26142705set dummy texindex; ac_word=$2
    26152706echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2616 echo "configure:2617: checking for $ac_word" >&5
     2707echo "configure:2708: checking for $ac_word" >&5
    26172708if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then
    26182709  echo $ac_n "(cached) $ac_c" 1>&6
     
    26442735set dummy texi2pdf; ac_word=$2
    26452736echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2646 echo "configure:2647: checking for $ac_word" >&5
     2737echo "configure:2738: checking for $ac_word" >&5
    26472738if eval "test \"`echo '$''{'ac_cv_prog_TEXI2PDF'+set}'`\" = set"; then
    26482739  echo $ac_n "(cached) $ac_c" 1>&6
     
    26742765
    26752766echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6
    2676 echo "configure:2677: checking whether to configure and build Texi2html" >&5
     2767echo "configure:2768: checking whether to configure and build Texi2html" >&5
    26772768if test "$enable_Texi2html" != no && test -d Texi2html; then
    26782769 echo "$ac_t""yes" 1>&6
     
    26892780set dummy texi2html; ac_word=$2
    26902781echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2691 echo "configure:2692: checking for $ac_word" >&5
     2782echo "configure:2783: checking for $ac_word" >&5
    26922783if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
    26932784  echo $ac_n "(cached) $ac_c" 1>&6
     
    27272818
    27282819echo $ac_n "checking whether to build doc""... $ac_c" 1>&6
    2729 echo "configure:2730: checking whether to build doc" >&5
     2820echo "configure:2821: checking whether to build doc" >&5
    27302821if test "$enable_doc" != no && test -d doc; then
    27312822 echo "$ac_t""yes" 1>&6
     
    27412832
    27422833echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6
    2743 echo "configure:2744: checking whether to build emacs" >&5
     2834echo "configure:2835: checking whether to build emacs" >&5
    27442835if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
    27452836 echo "$ac_t""yes" 1>&6
     
    27532844
    27542845echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    2755 echo "configure:2756: checking which apint package to use" >&5
     2846echo "configure:2847: checking which apint package to use" >&5
    27562847if test "$with_apint" = gmp; then
    27572848  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    27692860
    27702861echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
    2771 echo "configure:2772: checking whether to use with MP" >&5
     2862echo "configure:2863: checking whether to use with MP" >&5
    27722863if test "$with_MP" = yes; then
    27732864  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
     
    27892880
    27902881echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
    2791 echo "configure:2792: checking whether to use with factory" >&5
     2882echo "configure:2883: checking whether to use with factory" >&5
    27922883if test "$with_factory" = yes; then
    27932884  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
     
    28082899 
    28092900echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
    2810 echo "configure:2811: checking whether to use with libfac" >&5
     2901echo "configure:2902: checking whether to use with libfac" >&5
    28112902if test "$with_libfac" = yes; then
    28122903  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
     
    28292920
    28302921echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
    2831 echo "configure:2832: checking whether to use with Singular" >&5
     2922echo "configure:2923: checking whether to use with Singular" >&5
    28322923if test "$with_Singular" != no && test "$with_Singular" != yes; then
    28332924  if test "$enable_Singular" = yes; then
     
    28922983 
    28932984echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    2894 echo "configure:2895: checking whether ${MAKE-make} sets \${MAKE}" >&5
     2985echo "configure:2986: checking whether ${MAKE-make} sets \${MAKE}" >&5
    28952986set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    28962987if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    30943185s%@DOC2TEX_EXAMPLE_EXCLUSIONS@%$DOC2TEX_EXAMPLE_EXCLUSIONS%g
    30953186s%@TMP_DIR@%$TMP_DIR%g
     3187s%@CXXCPP@%$CXXCPP%g
    30963188s%@TEXI2DVI@%$TEXI2DVI%g
    30973189s%@TEXI2PDF@%$TEXI2PDF%g
  • configure.in

    r6fc941 r9f738e4  
    445445    BUILD1_SUBDIRS="$BUILD1_SUBDIRS ntl"
    446446    ac_configure_args="$ac_configure_args --enable-NTL"
     447    AC_LANG_CPLUSPLUS
     448    AC_CHECK_HEADERS(iostream.h iostream)
     449    AC_LANG_RESTORE
    447450  else
    448451    enable_NTL=no
  • ntl/configure

    r6fc941 r9f738e4  
    11#!/bin/sh
    2 # version $Id: configure,v 1.23 2006-01-05 13:36:14 Singular Exp $
     2# version $Id: configure,v 1.24 2006-05-29 16:14:45 Singular Exp $
    33
    44while [ $# -ne 0 ]; do
     
    7171  fi
    7272fi
     73
     74if test ac_cv_header_iostream = yes
     75then
     76  NTL_STD_CXX=on
     77else
     78  NTL_STD_CXX=off
     79fi
     80
    7381CFLAGS="$CPPFLAGS $CFLAGS"
    7482CXXFLAGS="$CPPFLAGS $CXXFLAGS"
    7583echo "#!/bin/sh" >config.status
    7684echo "cd src" >>config.status
    77 echo ./configure CC=\"$SING_CC\" CXX=\"$SING_CXX\" LIBDIR=$libdir INCLUDEDIR=$includedir PREFIX=$prefix NTL_GMP_LIP=on GMP_PREFIX=$prefix/${ac_cv_singuname} CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" NTL_STD_CXX=off >>config.status
     85echo ./configure CC=\"$SING_CC\" CXX=\"$SING_CXX\" LIBDIR=$libdir INCLUDEDIR=$includedir PREFIX=$prefix NTL_GMP_LIP=on GMP_PREFIX=$prefix/${ac_cv_singuname} CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" NTL_STD_CXX=$NTL_STD_CXX >>config.status
    7886echo "cd .." >>config.status
    7987
Note: See TracChangeset for help on using the changeset viewer.