summaryrefslogtreecommitdiff
path: root/x11/gtk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-02-13 15:38:12 +0000
committeragc <agc@pkgsrc.org>1998-02-13 15:38:12 +0000
commit81f439571d0f271238ef4e66d23d6feec19c6e8a (patch)
tree000e2144dc7ed8e2870291d4a3568be8b1139497 /x11/gtk
parentdd59281c9649cdd128037b1845aba33e65d0fcd1 (diff)
downloadpkgsrc-81f439571d0f271238ef4e66d23d6feec19c6e8a.tar.gz
Well, it's a long story...
The gimp package has strange compilation errors for me. This can be traced back to the fact that HAVE_FLOAT_H and HAVE_LIMITS_H are undefined in $X11BASE/include/glibconst.h, which is included by $X11BASE/include/glib.h. glibconst.h is automatically generated using a configure script produced by GNU autoconf, when configuring the gtk package. This script was setting CPP to /lib/cpp, because "cc -E -qlanglvl=ansi" produced a warning on stderr when trying to find out how to call the ANSI compiler. And because /lib/cpp doesn't exist, the programs which were passed through it to expand #include <limits.h> or #include <float.h> failed, so configure assumed that they weren't present.
Diffstat (limited to 'x11/gtk')
-rw-r--r--x11/gtk/patches/patch-aa147
1 files changed, 147 insertions, 0 deletions
diff --git a/x11/gtk/patches/patch-aa b/x11/gtk/patches/patch-aa
index dd1b422a91d..82604ca4206 100644
--- a/x11/gtk/patches/patch-aa
+++ b/x11/gtk/patches/patch-aa
@@ -8,3 +8,150 @@
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:566: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
+@@ -1405,72 +1406,6 @@
+
+
+ echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
+-echo "configure:1409: checking for ${CC-cc} option to accept ANSI C" >&5
+-if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- am_cv_prog_cc_stdc=no
+-ac_save_CC="$CC"
+-# Don't try gcc -ansi; that turns off useful extensions and
+-# breaks some systems' header files.
+-# AIX -qlanglvl=ansi
+-# Ultrix and OSF/1 -std1
+-# HP-UX -Aa -D_HPUX_SOURCE
+-# SVR4 -Xc -D__EXTENSIONS__
+-for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+-do
+- CC="$ac_save_CC $ac_arg"
+- cat > conftest.$ac_ext <<EOF
+-#line 1425 "configure"
+-#include "confdefs.h"
+-#include <stdarg.h>
+-#include <stdio.h>
+-#include <sys/types.h>
+-#include <sys/stat.h>
+-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+-struct buf { int x; };
+-FILE * (*rcsopen) (struct buf *, struct stat *, int);
+-static char *e (p, i)
+- char **p;
+- int i;
+-{
+- return p[i];
+-}
+-static char *f (char * (*g) (char **, int), char **p, ...)
+-{
+- char *s;
+- va_list v;
+- va_start (v,p);
+- s = g (p, va_arg (v,int));
+- va_end (v);
+- return s;
+-}
+-int test (int i, double x);
+-struct s1 {int (*f) (int a);};
+-struct s2 {int (*f) (double a);};
+-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+-int argc;
+-char **argv;
+-
+-int main() {
+-
+-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+-
+-; return 0; }
+-EOF
+-if { (eval echo configure:1462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+- rm -rf conftest*
+- am_cv_prog_cc_stdc="$ac_arg"; break
+-else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+-fi
+-rm -f conftest*
+-done
+-CC="$ac_save_CC"
+-
+-fi
+-
+ if test -z "$am_cv_prog_cc_stdc"; then
+ echo "$ac_t""none needed" 1>&6
+ else
+--- configure 1998/02/13 13:53:58 1.1
++++ configure 1998/02/13 13:54:09
+@@ -1497,71 +1497,6 @@
+
+
+ echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
+-echo "configure:1501: checking for ${CC-cc} option to accept ANSI C" >&5
+-if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- am_cv_prog_cc_stdc=no
+-ac_save_CC="$CC"
+-# Don't try gcc -ansi; that turns off useful extensions and
+-# breaks some systems' header files.
+-# AIX -qlanglvl=ansi
+-# Ultrix and OSF/1 -std1
+-# HP-UX -Aa -D_HPUX_SOURCE
+-# SVR4 -Xc -D__EXTENSIONS__
+-for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+-do
+- CC="$ac_save_CC $ac_arg"
+- cat > conftest.$ac_ext <<EOF
+-#line 1517 "configure"
+-#include "confdefs.h"
+-#include <stdarg.h>
+-#include <stdio.h>
+-#include <sys/types.h>
+-#include <sys/stat.h>
+-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+-struct buf { int x; };
+-FILE * (*rcsopen) (struct buf *, struct stat *, int);
+-static char *e (p, i)
+- char **p;
+- int i;
+-{
+- return p[i];
+-}
+-static char *f (char * (*g) (char **, int), char **p, ...)
+-{
+- char *s;
+- va_list v;
+- va_start (v,p);
+- s = g (p, va_arg (v,int));
+- va_end (v);
+- return s;
+-}
+-int test (int i, double x);
+-struct s1 {int (*f) (int a);};
+-struct s2 {int (*f) (double a);};
+-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+-int argc;
+-char **argv;
+-
+-int main() {
+-
+-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+-
+-; return 0; }
+-EOF
+-if { (eval echo configure:1554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+- rm -rf conftest*
+- am_cv_prog_cc_stdc="$ac_arg"; break
+-else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+-fi
+-rm -f conftest*
+-done
+-CC="$ac_save_CC"
+-
+-fi
+
+ if test -z "$am_cv_prog_cc_stdc"; then
+ echo "$ac_t""none needed" 1>&6