Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/configure.ac
ViewVC logotype

Diff of /branches/vis15/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5446, Mon Oct 16 16:00:05 2017 UTC revision 5500, Mon Nov 13 16:45:15 2017 UTC
# Line 99  Line 99 
99  dnl run the compiler tests in 64-bit mode  dnl run the compiler tests in 64-bit mode
100  dnl  dnl
101  save_CFLAGS=$CFLAGS  save_CFLAGS=$CFLAGS
102  CFLAGS="$CFLAGS $CFLAG_MXX"  CFLAGS="$CFLAGS $CXXFLAG_Mxx"
103    
104  dnl  dnl
105  dnl check for gcc builtin atomic operations  dnl check for gcc builtin atomic operations
# Line 261  Line 261 
261  dnl OS-specific linking issues  dnl OS-specific linking issues
262  dnl  dnl
263  LD_NEEDS_RPATH=false;  LD_NEEDS_RPATH=false;
264  LIBM=""  CXXFLAG_fPIC=""
265    LDFLAG_LIBM=""
266  case "$host_os" in  case "$host_os" in
267    darwin*) # On Mac OS X we check for the presence of macports and/or fink    darwin*)
268      # On Mac OS X we check for the presence of homebrew, macports, and fink.
269      # we set up the search paths in priority homebrew > macports > fink.
270        if test -x /sw/bin/fink ; then
271          LDPATHS="-L/sw/lib"
272        fi
273      if test -x /opt/local/bin/port ; then      if test -x /opt/local/bin/port ; then
274        HAS_MACPORTS=yes        LDPATHS="-L/opt/local/lib $LDPATHS"
     else  
       HAS_MACPORTS=no  
275      fi      fi
276      if test -x /sw/bin/fink ; then      if test -d /usr/local/Cellar -a /usr/local/bin/brew ; then
277        HAS_FINK=yes        LDPATHS="-L/usr/local/lib $LDPATHS"
     else  
       HAS_FINK=no  
278      fi      fi
279    ;;    ;;
280    linux*) # On Linux we include the -rpath option to pick up dynamically-loaded libraries    linux*)
281      # On Linux we include the -rpath option to pick up dynamically-loaded libraries
282      # and the -fPIC compiler flag to generate position-indenpendent code
283      LD_NEEDS_RPATH=true      LD_NEEDS_RPATH=true
284      LIBM="-lm"      LDFLAG_LIBM="-lm"
285        CXXFLAG_fPIC="-fPIC"
286    ;;    ;;
287  esac  esac
288    
 if test x"$HAS_MACPORTS" = xyes ; then  
   LDPATHS="-L/opt/local/lib"  
 elif test x"$HAS_FINK" = xyes ; then  
   LDPATHS="-L/sw/lib"  
 else  
   LDPATHS=""  
 fi  
289  AC_SUBST(LDPATHS)  AC_SUBST(LDPATHS)
290  AC_SUBST(LD_NEEDS_RPATH)  AC_SUBST(LD_NEEDS_RPATH)
291  AC_SUBST(LIBM)  AC_SUBST(LDFLAG_LIBM)
292    AC_SUBST(CXXFLAG_fPIC)
293    
294  #################### Logging configuration ####################  #################### Logging configuration ####################
295    

Legend:
Removed from v.5446  
changed lines
  Added in v.5500

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0