- Timestamp:
- Sep 15, 2010, 3:00:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/configure.ac
r9 r15 240 240 241 241 # =========================================================================== 242 # Detect if perl is installed 243 # =========================================================================== 244 245 246 247 248 AC_ARG_WITH([perl], 249 [AS_HELP_STRING([--with-perl=PATH], [specify an alternative directory for perl installation or --with-perl=no to disable perl support])], 250 [PERL_PATH="$withval"], [PERL_PATH=""]) 251 if test "$PERL_PATH" != "no"; 252 then 253 if test "x$PERL_PATH" = "xyes"; 254 then 255 AC_PATH_PROG([PERLCONFIG], [perl]) 256 else 257 PERLCONFIG="$PERL_PATH/bin/perl" 258 fi 259 260 if test -f $PERLCONFIG; 261 then 262 AC_MSG_RESULT([Using user-specified perl file: $PERLCONFIG]) 263 else 264 AC_MSG_ERROR([the user-specified perl file $PERLCONFIG does not exist]) 265 fi 266 267 PERL_ENABLED="-DUSE_PERL" 268 PERL_FILE="service_internal_perl.o" 269 270 # Extract the linker and include flags 271 PERL_LDFLAGS=`$PERLCONFIG -MExtUtils::Embed -e ldopts` 272 PERL_CPPFLAGS=`$PERLCONFIG -MExtUtils::Embed -e ccopts` 273 274 # Check headers file 275 CPPFLAGS_SAVE="$CPPFLAGS" 276 CPPFLAGS="$PERL_CPPFLAGS" 277 AC_CHECK_HEADERS([EXTERN.h], 278 [], [AC_MSG_ERROR([could not find headers include related to libperl])]) 279 280 AC_SUBST([PERL_CPPFLAGS]) 281 AC_SUBST([PERL_LDFLAGS]) 282 else 283 PERL_ENABLED="" 284 PERL_FILE="" 285 fi 286 287 AC_SUBST([PERL_ENABLED]) 288 AC_SUBST([PERL_FILE]) 289 290 # =========================================================================== 242 291 # Detect if java is installed 243 292 # ===========================================================================
Note: See TracChangeset
for help on using the changeset viewer.