Changeset 718 for trunk/configure.in
 Timestamp:
 May 9, 2007 1:48:39 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/configure.in
r708 r718 2 2 3 3 VERSION=0.0.1 4 AC_SUBST(VERSION) 4 5 5 6 # … … 19 20 LIB_SEARCH_DIRS="L ${libdir}" 20 21 fi 22 23 AC_SUBST(LIB_SEARCH_DIRS) 21 24 22 25 AC_PROG_INSTALL … … 39 42 AC_CHECK_HEADERS(vector,,AC_MSG_WARN(STL classes missing ?)) 40 43 41 AC_PROG_F77([f77 fort77 g77 f90 xlf xlf90 fl32]) 42 43 AC_ARG_WITH(matlab, [ withmatlab[=DIR] Build Matlab bindings if MEX compiler is found]) 44 AC_ARG_WITH(matlab_arch, [ withmatlabarch[=ARCH] Build Matlab bindings for ARCH architecture]) 45 AC_ARG_WITH(mexext, [ withmexext[=ARCH] Suggest an extension for building mex files]) 46 dnl AC_CHECK_PROG(MEX, mex, mex, false) 44 AC_PROG_F77([g77 f77 fort77 f90 xlf xlf90 fl32]) 45 46 47 48 49 dnl AC_ARG_ENABLE( 50 dnl [tcl], 51 dnl [AS_HELP_STRING([enabletcl], [build tcl bindings @<:@default=check@:>@])], 52 dnl [], 53 dnl [enable_tcl=check]) 54 dnl 55 dnl BUILD_TCL=yes 56 dnl AC_SUBST(BUILD_TCL) 57 58 59 dnl AC_ARG_ENABLE ( 60 dnl [matlab], 61 dnl [AS_HELP_STRING([enablematlab], [build matlab bindings @<:@default=check@:>@])], 62 dnl [], 63 dnl [enable_matlab=check]) 64 dnl BUILD_MATLAB=yes 65 dnl AC_SUBST(BUILD_MATLAB) 66 67 AC_ARG_WITH( 68 [matlab], 69 [AS_HELP_STRING([withmatlab[=DIR]], 70 [location of matlab and mex compiler @<:@default=check@:>@])], 71 [], 72 [with_matlab=check]) 73 74 AC_ARG_WITH( 75 [matlab_arch], 76 [AS_HELP_STRING([withmatlabarch[=ARCH]], 77 [build Matlab bindings for ARCH architecture @<:@default=check@:>@])], 78 [], 79 [with_matlab_arch=check]) 80 81 AC_ARG_WITH( 82 [mexext], 83 [AS_HELP_STRING([withmexext[=ARCH]], 84 [fallback extension for building mex files @<:@default=check@:>@])], 85 [], 86 [with_mexext=check]) 87 47 88 MEX= 48 89 MEX_ARCH= 49 90 MEXEXT= 50 if test "$with_matlab" != "no" ; then 51 dnl WITH_MATLAB = "yes" 52 if test x "$with_matlab/bin/mex" 53 then 54 echo Found mex in $with_matlab/bin/mex 55 MEX="$with_matlab/bin/mex" 56 else 57 if test x "$with_matlab" 58 then 59 echo Found mex in $with_matlab 60 MEX="$with_matlab" 61 else 62 AC_PATH_PROG(MEX, mex) 63 fi 64 fi 65 if test "x$MEX" != "x" ; then 66 mexext_fxn=`dirname $MEX`/mexext 67 if test "x$mexext_fxn" != "x"; then 68 MEXEXT=`$mexext_fxn` 69 if test "x${MEXEXT}" = "x" ; then 70 MEXEXT="mexglx" 91 dnl if test "$enable_matlab" != "no" ; then 92 AC_MSG_CHECKING([for mex]) 93 if test "$with_matlab" != "no" ; then 94 dnl WITH_MATLAB = "yes" 95 if test x "$with_matlab/bin/mex" 96 then 97 echo Found mex in $with_matlab/bin/mex 98 MEX="$with_matlab/bin/mex" 99 else 100 if test x "$with_matlab" 101 then 102 echo Found mex in $with_matlab 103 MEX="$with_matlab" 104 else 105 AC_PATH_PROG(MEX, mex) 71 106 fi 72 echo Using extension $MEXEXT 73 fi 74 fi 75 fi 76 if test "x$with_matlab_arch" != "x" ; then 77 MEX_ARCH="arch=$with_matlab_arch" 78 fi 79 80 dnl AM_CONDITIONAL(WITH_MATLAB, test x$MEX != x) 81 82 AC_ARG_WITH(octave, [ withoctave[=DIR] Build Octave bindings if MKOCTFILE compiler is found]) 83 dnl AC_CHECK_PROG(MKOCTFILE, mkoctfile, mkoctfile, false) 107 fi 108 AC_MSG_RESULT([${MEX}]) 109 if test "x$with_matlab_arch" != "x" ; then 110 echo "using matlab architecture \"$with_matlab_arch\"" 111 MEX_ARCH="arch=$with_matlab_arch" 112 dnl else 113 dnl # if $with_matlab_arch is blank, get the os name from uname 114 fi 115 if test "x$MEX" != "x" ; then 116 mexext_fxn=`dirname $MEX`/mexext 117 if test "x$mexext_fxn" != "x"; then 118 MEXEXT=`$mexext_fxn` 119 if test "x${MEXEXT}" = "x" ; then 120 dnl # we should be doing an os type check instead of default mexglx 121 dnl # use $with_matlab_arch 122 if test "$with_mexext" != "check" ; then 123 MEXEXT="mexglx" 124 fi 125 fi 126 echo "Using mex file extension \"$MEXEXT\"" 127 AC_MSG_RESULT([${MEXEXT}]) 128 fi 129 else 130 echo "can't find the matlab compiler \"mex\"" 131 echo "use withmatlab=DIR to specify the location of a matlab installation" 132 exit 1 133 fi 134 fi 135 dnl fi 136 AC_SUBST(MEX) 137 AC_SUBST(MEX_ARCH) 138 AC_SUBST(MEXEXT) 139 140 141 dnl AC_ARG_ENABLE( 142 dnl [octave], 143 dnl [AS_HELP_STRING([enableoctave], [build octave bindings @<:@default=check@:>@])], 144 dnl [], 145 dnl [enable_octave=check]) 146 dnl BUILD_OCTAVE=yes 147 dnl AC_SUBST(BUILD_OCTAVE) 148 149 150 AC_ARG_WITH( 151 [octave], 152 [AS_HELP_STRING([withoctave[=DIR]], 153 [location of octave compiler MKOCTFILE @<:@default=check@:>@])], 154 [], 155 [with_octave=check]) 156 84 157 MKOCTFILE= 85 if test "$with_octave" != "no" ; then 86 if test x "$with_octave/bin/mkoctfile" 87 then 88 echo Found octave in $with_octave/bin/mkoctfile 89 MKOCTFILE="$with_octave/bin/mkoctfile" 90 else 91 if test x "$with_octave" 92 then 93 echo Found mkoctfile in $with_octave 94 MKOCTFILE="$with_octave" 95 else 96 AC_PATH_PROG(MKOCTFILE, mkoctfile) 97 fi 98 fi 99 fi 100 dnl AM_CONDITIONAL(WITH_OCTAVE, test x$MKOCTFILE != x) 158 dnl if test "$enable_octave" != "no" ; then 159 AC_MSG_CHECKING([for mkoctfile]) 160 if test "$with_octave" != "no" ; then 161 if test x "$with_octave/bin/mkoctfile" 162 then 163 echo Found octave in $with_octave/bin/mkoctfile 164 MKOCTFILE="$with_octave/bin/mkoctfile" 165 else 166 if test x "$with_octave" 167 then 168 echo Found mkoctfile in $with_octave 169 MKOCTFILE="$with_octave" 170 else 171 AC_PATH_PROG(MKOCTFILE, mkoctfile) 172 fi 173 fi 174 fi 175 AC_MSG_RESULT([${MKOCTFILE}]) 176 dnl fi 177 AC_SUBST(MKOCTFILE) 101 178 102 179 … … 107 184 dnl 108 185 109 AC_ARG_WITH(perl, [ withperl[=DIR] Build Perl bindings if found]) 110 dnl AC_CHECK_PROG(PERL, perl, perl, false) 111 dnl AM_CONDITIONAL(WITH_PERL, test "$PERL" != "false") 186 dnl AC_ARG_ENABLE( 187 dnl [perl], 188 dnl [AS_HELP_STRING([enableperl], [build perl bindings @<:@default=check@:>@])], 189 dnl [], 190 dnl [enable_perl=check]) 191 192 dnl BUILD_PERL=yes 193 dnl AC_SUBST(BUILD_PERL) 194 195 AC_ARG_WITH( 196 [perl], 197 [AS_HELP_STRING([withperl[=DIR]], [location of perl @<:@default=check@:>@])], 198 [], 199 [with_perl=check]) 200 112 201 PERL= 113 202 PERL_INCLUDES= 114 203 PERL_SITE_PACKAGES= 204 AC_MSG_CHECKING([for mkoctfile]) 115 205 if test "$with_perl" != "no" ; then 116 206 if test x "$with_perl/bin/perl" … … 129 219 PERL_SITE_PACKAGES='$(libdir)/perl5' 130 220 fi 131 dnl AM_CONDITIONAL(WITH_PERL, test x$PERL != x) 221 AC_MSG_RESULT([${PERL}]) 222 AC_SUBST(PERL) 223 AC_SUBST(PERL_INCLUDES) 224 AC_SUBST(PERL_SITE_PACKAGES) 132 225 133 226 dnl 134 227 dnl check for python 135 228 dnl 229 230 dnl AC_ARG_ENABLE( 231 dnl [python], 232 dnl [AS_HELP_STRING([enablepyton], [build python bindings @<:@default=check@:>@])], 233 dnl [], 234 dnl [enable_python=check]) 235 dnl 236 dnl BUILD_PYTHON=yes 237 dnl AC_SUBST(BUILD_PYTHON) 136 238 137 239 PYTHON= … … 140 242 PYTHON_SITE_PACKAGES= 141 243 pythondir= 142 AC_ARG_WITH(python, [ withpython[=DIR] Build Python bindings if found]) 244 AC_ARG_WITH( 245 [python], 246 [AS_HELP_STRING([withpython[=DIR]],[location of python @<:@default=check@:>@])], 247 [], 248 [with_python=check]) 249 143 250 if test "$with_python" != "no" ; then 144 251 if test x "$with_python/bin/python" … … 194 301 fi 195 302 fi 196 dnl AM_CONDITIONAL(WITH_PYTHON, test x$PYTHON != x)197 303 198 304 AC_SUBST(pythondir) 199 305 dnl AC_SUBST(PYTHON_SUBDIR) 200 306 201 AC_SUBST(MEX)202 AC_SUBST(MEX_ARCH)203 AC_SUBST(MEXEXT)204 AC_SUBST(MKOCTFILE)205 AC_SUBST(PERL)206 AC_SUBST(PERL_INCLUDES)207 AC_SUBST(PERL_SITE_PACKAGES)208 307 AC_SUBST(PYTHON) 209 308 AC_SUBST(PYTHON_VERSION) 210 309 AC_SUBST(PYTHON_INCLUDES) 211 310 AC_SUBST(PYTHON_SITE_PACKAGES) 212 AC_SUBST(LIB_SEARCH_DIRS) 213 214 AC_SUBST(VERSION) 311 215 312 216 313 RP_BASE=`pwd`
Note: See TracChangeset
for help on using the changeset viewer.