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

SCM Repository

[diderot] Diff of /examples/configure.ac
ViewVC logotype

Diff of /examples/configure.ac

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

revision 1881, Fri May 18 21:57:06 2012 UTC revision 1882, Sat May 19 11:45:04 2012 UTC
# Line 13  Line 13 
13  AC_CONFIG_MACRO_DIR(config)  AC_CONFIG_MACRO_DIR(config)
14    
15  dnl  dnl
16    dnl include additional macros
17    dnl
18    sinclude(config/pkg.m4)
19    
20    dnl
21  dnl get host information  dnl get host information
22  dnl  dnl
23  AC_CANONICAL_HOST  AC_CANONICAL_HOST
# Line 65  Line 70 
70    
71  if test x"$HAS_MACPORTS" = xyes ; then  if test x"$HAS_MACPORTS" = xyes ; then
72    LDPATHS="-L/opt/local/lib"    LDPATHS="-L/opt/local/lib"
73      CPPFLAGS="-I/opt/local/include"
74  elif test x"$HAS_FINK" = xyes ; then  elif test x"$HAS_FINK" = xyes ; then
75    LDPATHS="-L/sw/lib"    LDPATHS="-L/sw/lib"
76      CPPFLAGS="-I/sw/include"
77  else  else
78    LDPATHS=""    LDPATHS=""
79  fi  fi
# Line 105  Line 112 
112  if test x"$TEEM_DIR" = xnone ; then  if test x"$TEEM_DIR" = xnone ; then
113    AC_MSG_ERROR([unable to find teem])    AC_MSG_ERROR([unable to find teem])
114  fi  fi
115  AC_SUBST(TEEM_DIR)  TEEM_CPPFLAGS="-I$TEEM_DIR/include"
116    TEEM_LDFLAGS="-L$TEEM_DIR/lib -lteem"
117    AC_SUBST(TEEM_CPPFLAGS)
118    AC_SUBST(TEEM_LDFLAGS)
119    
120    dnl ******************** Graphics configuration ********************
121    dnl
122    
123    export PKG_CONFIG_PATH
124    PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig
125    if test x"$HAS_MACPORTS" = xyes ; then
126      PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/local/lib/pkgconfig
127    fi
128    if test x"$HAS_FINK" = xyes ; then
129      PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/sw/lib/pkgconfig
130    fi
131    
132    PKG_CHECK_MODULES([GLFW], [libglfw])
133    AC_SUBST([GLFW_CFLAGS])
134    AC_SUBST([GLFW_LIBS])
135    
136    AC_ARG_WITH(ant-tweak-bar,
137      AC_HELP_STRING([--with-ant-tweak-bar=<path>], [specify prefix for ant-tweak-bar lib and include dirs]),
138      [ac_cv_use_atb=$withval], [ac_cv_use_atb=no])
139    if test x"$ac_cv_use_atb" != xno ; then
140      AC_MSG_CHECKING([path to AntTweakBar ($ac_cv_use_atb)])
141      case $ac_cv_use_atb in
142        /*) ;;
143        *) AC_MSG_ERROR([path to AntTweakBar must be absolute]) ;;
144      esac
145      if test -d $ac_cv_use_atb ; then
146        # check that ac_cv_use_atb points to something that looks right
147        if test -f $ac_cv_use_atb/include/AntTweakBar.h -a -d $ac_cv_use_atb/lib ; then
148          ATB_CPPFLAGS="-I$ac_cv_use_atb/include"
149          ATB_LDFLAGS="-L$ac_cv_use_atb/lib -lAntTweakBar"
150          AC_SUBST([ATB_CPPFLAGS])
151          AC_SUBST([ATB_LDFLAGS])
152          AC_MSG_RESULT([ okay])
153        else
154          AC_MSG_RESULT([ invalid])
155        fi
156      else
157        AC_MSG_RESULT([ invalid])
158      fi
159    fi
160    
161  dnl ******************** Diderot configuration ********************  dnl ******************** Diderot configuration ********************
162  dnl  dnl

Legend:
Removed from v.1881  
changed lines
  Added in v.1882

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