On Wed, 01 Nov 2006 10:49:28 -0800, Kate <[EMAIL PROTECTED]> wrote: > >> Does the following work on your system (prereq-0.2-install)? > > prereq-0.2-install seems to do the "right" thing - fail when g++ is > not working correctly and continue when g++ is working correctly. > >> Also -- slightly off topic -- do you know how to check in autoconf >> that GCC >= 3.x is available? > > This may be close to what you want: > > AC_CACHE_CHECK([whether gcc is new enough], > [tfs_cv_gcc_version], > [AC_COMPILE_IFELSE( > [AC_LANG_SOURCE( > [ > @%:@if (__GNUC__ < 3) > @%:@ error "doesn't work with gcc < 3.x." > @%:@endif > ])], > [tfs_cv_gcc_version=yes], > [tfs_cv_gcc_version=no]) > test x$tfs_cv_gcc_version != xyes && AC_MSG_ERROR( > [please upgrade to gcc 3.x]) > ])
Thanks!! William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---
