| configure.ac (7c12a172) | configure.ac (ec1eca59) |
|---|---|
| 1dnl * ************************************************************* 2dnl * 3dnl * Licensed to the Apache Software Foundation (ASF) under one 4dnl * or more contributor license agreements. See the NOTICE file 5dnl * distributed with this work for additional information 6dnl * regarding copyright ownership. The ASF licenses this file 7dnl * to you under the Apache License, Version 2.0 (the 8dnl * "License"); you may not use this file except in compliance --- 1994 unchanged lines hidden (view full) --- 2003AC_SUBST(PERL) 2004 2005dnl =================================================================== 2006dnl Testing for required Perl modules 2007dnl The list of required Perl modules is documented here: 2008dnl http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements 2009dnl =================================================================== 2010AC_MSG_CHECKING([for required Perl modules]) | 1dnl * ************************************************************* 2dnl * 3dnl * Licensed to the Apache Software Foundation (ASF) under one 4dnl * or more contributor license agreements. See the NOTICE file 5dnl * distributed with this work for additional information 6dnl * regarding copyright ownership. The ASF licenses this file 7dnl * to you under the Apache License, Version 2.0 (the 8dnl * "License"); you may not use this file except in compliance --- 1994 unchanged lines hidden (view full) --- 2003AC_SUBST(PERL) 2004 2005dnl =================================================================== 2006dnl Testing for required Perl modules 2007dnl The list of required Perl modules is documented here: 2008dnl http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements 2009dnl =================================================================== 2010AC_MSG_CHECKING([for required Perl modules]) |
| 2011if `$PERL -e 'use Archive::Zip; use LWP::UserAgent; use XML::Parser;'>/dev/null 2>&1`; then | 2011if `$PERL -e 'use Archive::Zip; use LWP::UserAgent; use XML::Parser; use LWP::Protocol'>/dev/null 2>&1`; then |
| 2012 AC_MSG_RESULT([all modules found]) 2013else 2014 # Find out which modules are missing. 2015 missing_perl_modules= 2016 if ! `$PERL -e 'use Archive::Zip;'>/dev/null 2>&1`; then 2017 missing_perl_modules=Archive::Zip 2018 fi 2019 if ! `$PERL -e 'use LWP::UserAgent;'>/dev/null 2>&1`; then 2020 missing_perl_modules="$missing_perl_modules LWP::UserAgent" 2021 fi | 2012 AC_MSG_RESULT([all modules found]) 2013else 2014 # Find out which modules are missing. 2015 missing_perl_modules= 2016 if ! `$PERL -e 'use Archive::Zip;'>/dev/null 2>&1`; then 2017 missing_perl_modules=Archive::Zip 2018 fi 2019 if ! `$PERL -e 'use LWP::UserAgent;'>/dev/null 2>&1`; then 2020 missing_perl_modules="$missing_perl_modules LWP::UserAgent" 2021 fi |
| 2022 if ! `$PERL -e 'use LWP::Protocol;'>/dev/null 2>&1`; then 2023 missing_perl_modules="$missing_perl_modules LWP::Protocol" 2024 fi 2025 |
|
| 2022 if ! `$PERL -e 'use XML::Parser;'>/dev/null 2>&1`; then 2023 missing_perl_modules="$missing_perl_modules XML::Parser" 2024 fi 2025 AC_MSG_ERROR([ 2026 The missing Perl modules are: $missing_perl_modules 2027 Install them as superuser/administrator with "cpan -i $missing_perl_modules"]) 2028fi 2029 --- 5297 unchanged lines hidden --- | 2026 if ! `$PERL -e 'use XML::Parser;'>/dev/null 2>&1`; then 2027 missing_perl_modules="$missing_perl_modules XML::Parser" 2028 fi 2029 AC_MSG_ERROR([ 2030 The missing Perl modules are: $missing_perl_modules 2031 Install them as superuser/administrator with "cpan -i $missing_perl_modules"]) 2032fi 2033 --- 5297 unchanged lines hidden --- |