Changeset 15 for trunk


Ignore:
Timestamp:
Sep 15, 2010, 3:00:04 PM (14 years ago)
Author:
david
Message:

-ajout support perl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/configure.ac

    r9 r15  
    240240
    241241# ===========================================================================
     242# Detect if perl is installed
     243# ===========================================================================
     244
     245
     246
     247
     248AC_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=""])
     251if test "$PERL_PATH" != "no";
     252then
     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])
     282else
     283        PERL_ENABLED=""
     284        PERL_FILE=""
     285fi
     286
     287AC_SUBST([PERL_ENABLED])
     288AC_SUBST([PERL_FILE])
     289
     290# ===========================================================================
    242291# Detect if java is installed
    243292# ===========================================================================
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png