summaryrefslogtreecommitdiff
path: root/print/xpp/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-26 07:16:16 +0000
committerjlam <jlam@pkgsrc.org>2001-05-26 07:16:16 +0000
commit95185453b5a576f51b52d5bae15f359e4e5c31fc (patch)
tree9226a09499f6d49c0f4440cc4a9670c020d83e8e /print/xpp/patches
parent365b176070853881b66d6b0cb50cf9bf55b1c14a (diff)
downloadpkgsrc-95185453b5a576f51b52d5bae15f359e4e5c31fc.tar.gz
Use buildlink.mk files to get dependencies on cups and fltk, and add a
patch the configure script directly to remove the build dependency on autoconf.
Diffstat (limited to 'print/xpp/patches')
-rw-r--r--print/xpp/patches/patch-ab107
1 files changed, 107 insertions, 0 deletions
diff --git a/print/xpp/patches/patch-ab b/print/xpp/patches/patch-ab
new file mode 100644
index 00000000000..446af99677c
--- /dev/null
+++ b/print/xpp/patches/patch-ab
@@ -0,0 +1,107 @@
+$NetBSD: patch-ab,v 1.1 2001/05/26 07:16:16 jlam Exp $
+
+--- configure.orig Fri Jan 26 19:17:37 2001
++++ configure
+@@ -2126,8 +2126,51 @@
+ echo "$ac_t""no" 1>&6
+ fi
+
++echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
++echo "configure:2131: checking for main in -lm" >&5
++ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
++if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++ echo $ac_n "(cached) $ac_c" 1>&6
++else
++ ac_save_LIBS="$LIBS"
++LIBS="-lm $LIBS"
++cat > conftest.$ac_ext <<EOF
++#line 2139 "configure"
++#include "confdefs.h"
++
++int main() {
++main()
++; return 0; }
++EOF
++if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++ rm -rf conftest*
++ eval "ac_cv_lib_$ac_lib_var=yes"
++else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -rf conftest*
++ eval "ac_cv_lib_$ac_lib_var=no"
++fi
++rm -f conftest*
++LIBS="$ac_save_LIBS"
++
++fi
++if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++ echo "$ac_t""yes" 1>&6
++ ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++ cat >> confdefs.h <<EOF
++#define $ac_tr_lib 1
++EOF
++
++ LIBS="-lm $LIBS"
++
++else
++ echo "$ac_t""no" 1>&6
++fi
++
+ echo $ac_n "checking for main in -lGL""... $ac_c" 1>&6
+-echo "configure:2131: checking for main in -lGL" >&5
++echo "configure:2174: checking for main in -lGL" >&5
+ ac_lib_var=`echo GL'_'main | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -2280,49 +2323,6 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ LIBS="$LIBFLTKA $LIBS"
+-else
+- echo "$ac_t""no" 1>&6
+-fi
+-
+-echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
+-echo "configure:2289: checking for main in -lm" >&5
+-ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
+-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- ac_save_LIBS="$LIBS"
+-LIBS="-lm $LIBS"
+-cat > conftest.$ac_ext <<EOF
+-#line 2297 "configure"
+-#include "confdefs.h"
+-
+-int main() {
+-main()
+-; return 0; }
+-EOF
+-if { (eval echo configure:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=yes"
+-else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=no"
+-fi
+-rm -f conftest*
+-LIBS="$ac_save_LIBS"
+-
+-fi
+-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+- echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+- cat >> confdefs.h <<EOF
+-#define $ac_tr_lib 1
+-EOF
+-
+- LIBS="-lm $LIBS"
+-
+ else
+ echo "$ac_t""no" 1>&6
+ fi