Changeset 91ff167 in git for Singular/configure.in


Ignore:
Timestamp:
Jun 28, 2006, 4:01:13 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
6c144be994ad90297726e6c2c1e8bc3996595fd0
Parents:
3cca4739f3b738309d9cd639bdf38a7948ee75d2
Message:
*hannes: -pipe only for gcc


git-svn-id: file:///usr/local/Singular/svn/trunk@9271 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/configure.in

    r3cca473 r91ff167  
    150150
    151151# check whether the compiler accepts -pipe
    152 AC_MSG_CHECKING(whether compiler accepts -pipe)
    153 temp_cflags=${CFLAGS}
    154 CFLAGS="${CFLAGS} -pipe"
    155 AC_CACHE_VAL(ac_cv_cxx_have_pipe,
    156 AC_TRY_COMPILE(,,ac_cv_cxx_have_pipe=yes,ac_cv_cxx_have_pipe=no)
    157 )
    158 AC_MSG_RESULT(${ac_cv_cxx_have_pipe})
    159 CFLAGS=${temp_cflags}
     152if test x$ac_cv_c_cpp == xgcc2 -o  x$ac_cv_c_cpp == xgcc3
     153then
     154  AC_MSG_CHECKING(whether compiler accepts -pipe)
     155  temp_cflags=${CFLAGS}
     156  CFLAGS="${CFLAGS} -pipe"
     157  AC_CACHE_VAL(ac_cv_cxx_have_pipe,
     158  AC_TRY_COMPILE(,,ac_cv_cxx_have_pipe=yes,ac_cv_cxx_have_pipe=no))
     159  AC_MSG_RESULT(${ac_cv_cxx_have_pipe})
     160  CFLAGS=${temp_cflags}
     161else
     162  ac_cv_cxx_have_pipe="no"
     163fi
     164
    160165if test "${ac_cv_cxx_have_pipe}" != yes; then
    161166  PIPE=
Note: See TracChangeset for help on using the changeset viewer.