From 890f2760095f1651925dedd7799d8d66097dc941 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 11 Apr 2002 03:41:12 +0000 Subject: Fix 'expr' usage and allow to compile with GCC 3.1. Submitted by: Hye-Shik Chang (maintainer) --- .../files/patch-srclib:apr:build:ltmain.sh | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 www/apache21/files/patch-srclib:apr:build:ltmain.sh (limited to 'www/apache21/files/patch-srclib:apr:build:ltmain.sh') diff --git a/www/apache21/files/patch-srclib:apr:build:ltmain.sh b/www/apache21/files/patch-srclib:apr:build:ltmain.sh new file mode 100644 index 000000000000..db3756689e34 --- /dev/null +++ b/www/apache21/files/patch-srclib:apr:build:ltmain.sh @@ -0,0 +1,49 @@ +--- srclib/apr/build/ltmain.sh.orig Sun Apr 7 23:04:28 2002 ++++ srclib/apr/build/ltmain.sh Sun Apr 7 23:05:33 2002 +@@ -1959,14 +1959,14 @@ + if test $? -eq 0 ; then + ldd_output=`ldd conftest` + for i in $deplibs; do +- name="`expr $i : '-l\(.*\)'`" ++ name="`expr -- $i : '-l\(.*\)'`" + # If $name is empty we are operating on a -L argument. + if test "$name" != "" ; then + libname=`eval \\$echo \"$libname_spec\"` + deplib_matches=`eval \\$echo \"$library_names_spec\"` + set dummy $deplib_matches + deplib_match=$2 +- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then ++ if test `expr -- "$ldd_output" : ".*$deplib_match"` -ne 0 ; then + newdeplibs="$newdeplibs $i" + else + droppeddeps=yes +@@ -1984,7 +1984,7 @@ + # Error occured in the first compile. Let's try to salvage the situation: + # Compile a seperate program for each library. + for i in $deplibs; do +- name="`expr $i : '-l\(.*\)'`" ++ name="`expr -- $i : '-l\(.*\)'`" + # If $name is empty we are operating on a -L argument. + if test "$name" != "" ; then + $rm conftest +@@ -1996,7 +1996,7 @@ + deplib_matches=`eval \\$echo \"$library_names_spec\"` + set dummy $deplib_matches + deplib_match=$2 +- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then ++ if test `expr -- "$ldd_output" : ".*$deplib_match"` -ne 0 ; then + newdeplibs="$newdeplibs $i" + else + droppeddeps=yes +@@ -2022,9 +2022,9 @@ + ;; + file_magic*) + set dummy $deplibs_check_method +- file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`" ++ file_magic_regex="`expr -- \"$deplibs_check_method\" : \"$2 \(.*\)\"`" + for a_deplib in $deplibs; do +- name="`expr $a_deplib : '-l\(.*\)'`" ++ name="`expr -- $a_deplib : '-l\(.*\)'`" + # If $name is empty we are operating on a -L argument. + if test "$name" != "" ; then + libname=`eval \\$echo \"$libname_spec\"` -- cgit v1.2.3