#!/bin/sh if test "$want_perl" != "no"; then echo "$as_me:$LINENO: checking for working Perl support" >&5 echo $ECHO_N "checking for working Perl support... $ECHO_C" >&6 if test -z "$perlpath"; then perl_check_error="perl binary not found" else PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` fi if test "x$ac_cv_c_compiler_gnu" = "xyes" -a -z "`echo $host_os|grep 'bs d\|linux'`"; then PERL_CFLAGS=`echo $PERL_CFLAGS | $perlpath -pe ' s/^(.* )?-^DUIfm^ +/\1/g; s/^(.* )?\+^ +/\1/g'` PERL_EXTRA_OPTS="CCCDLFLAGS=\"-fPIC\"" fi if test -z "$PERL_CFLAGS"; then if test -n "$perl_check_error"; then perl_check_error="Error getting perl CFLAGS" fi echo "$as_me:$LINENO: result: not found, building without Perl" >&5 echo "${ECHO_T}not found, building without Perl" >&6 want_perl=no else PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null` have_pl_perl=`$perlpath -e 'print $] < 5.005 ? "no" : "yes";'` if test "x$have_pl_perl" = "xyes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_PL_PERL 1 _ACEOF fi