X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=40626e809c03740b40168614ea002365df710ff6;hb=4f7864559d1e334f1c3b37d02cce0b9c9830d8e7;hp=7ba690971d0b7239b188b7d6df57e79783708f25;hpb=f6e966338eadedb167338c71185f53a4b9830331;p=pspp-builds.git diff --git a/configure.ac b/configure.ac index 7ba69097..40626e80 100644 --- a/configure.ac +++ b/configure.ac @@ -222,11 +222,19 @@ if test x"$with_gui_tools" = x"yes" ; then fi AM_CONDITIONAL(WITH_GUI_TOOLS, test x"$with_gui_tools" = x"yes") -if test x"$cross_compiling" != x"yes"; then - WITH_PERL_MODULE=yes -else - WITH_PERL_MODULE=no -fi +AC_ARG_WITH( + [perl-module], + [AS_HELP_STRING([--without-perl-module], [do not build the Perl module])], + [case $with_perl_module in # ( + yes|no) ;; # ( + *) AC_MSG_FAILURE([--with-perl-module argument must be 'yes' or 'no']) ;; + esac + WITH_PERL_MODULE=$with_perl_module], + [if test x"$cross_compiling" != x"yes"; then + WITH_PERL_MODULE=yes + else + WITH_PERL_MODULE=no + fi]) AC_SUBST([WITH_PERL_MODULE]) AM_CONDITIONAL(WITH_PERL_MODULE, test $WITH_PERL_MODULE = yes)