]> git.pld-linux.org Git - packages/edb.git/blob - edb-ac_fix.patch
- updated for 1.0.5
[packages/edb.git] / edb-ac_fix.patch
1 --- edb-1.0.5/configure.in.orig 2004-07-13 06:02:42.000000000 +0200
2 +++ edb-1.0.5/configure.in      2004-10-27 23:52:20.952292416 +0200
3 @@ -24,55 +24,6 @@
4  dnl AC_PROG_INSTALL()
5  dnl AC_ARG_PROGRAM()
6  
7 -dnl This is where we handle stuff that autoconf can't handle: compiler,
8 -dnl preprocessor and load flags, libraries that the standard tests don't
9 -dnl look for.  The default optimization is -O.
10 -dnl
11 -dnl XXX
12 -dnl Don't override anything if it's already set from the environment.
13 -AC_SUBST(CFLAGS)
14 -AC_SUBST(CPPFLAGS)
15 -dnl AC_SUBST(CXX)
16 -dnl AC_SUBST(CXXFLAGS)
17 -AC_SUBST(LDFLAGS)
18 -case "$host_os" in
19 -aix4.1*)   CFLAGS=${CFLAGS-"-O3"};;
20 -bsd4.4)    CFLAGS=${CFLAGS-"-O2"};;
21 -bsdi4*)           CFLAGS=${CFLAGS-"-O2"};;
22 -bsdi*)    CC=${CC-"shlicc2"}
23 -          CFLAGS=${CFLAGS-"-O2"}
24 -          LIBS="-lipc $LIBS";;
25 -irix*)    CFLAGS=${CFLAGS-"-O2"};;
26 -nextstep3) CFLAGS=${CFLAGS-"-O2"};;
27 -linux*)           CFLAGS=${CFLAGS-"-O2"};;
28 -mpeix*)           CPPFLAGS="-D_POSIX_SOURCE -D_SOCKET_SOURCE $CPPFLAGS"
29 -          LIBS="-lsocket -lsvipc $LIBS";;
30 -sco*)     CFLAGS="$CFLAGS -b elf"
31 -          LIBS="-lsocket -lnsl $LIBS";;
32 -*)        CFLAGS=${CFLAGS-"-O"};;
33 -esac
34 -CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
35 -
36 -dnl Optional C++ API..
37 -dnl
38 -dnl XXX
39 -dnl Versions of GCC up to 2.8.0 required -fhandle-exceptions, but it is
40 -dnl the default in versions 2.8.0 and after.
41 -dnl AC_MSG_CHECKING(if --enable-cxx option specified)
42 -dnl AC_ARG_ENABLE(cxx,
43 -dnl    [  --enable-cxx            Provide C++ interfaces.],
44 -dnl    [db_cv_cxx="$enable_cxx"], [db_cv_cxx="no"])
45 -dnl AC_MSG_RESULT($db_cv_cxx)
46 -dnl if test "$db_cv_cxx" = "yes"; then
47 -dnl    AC_PROG_CXX
48 -
49 -dnl    if test "$GXX" = "yes"; then
50 -dnl            CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
51 -dnl    fi
52 -
53 -dnl    AC_LIBOBJ="$AC_LIBOBJ \$(COBJS)"
54 -dnl fi
55 -
56  dnl There are additional libraries we need for some compiler/architecture
57  dnl combinations.
58  AC_SUBST(LIBS)
59 @@ -450,7 +401,6 @@
60  src/edb_int.h
61  src/edb_185.h
62  debian/Makefile
63 -edb-config],
64 -[
65 -chmod +x edb-config
66 -])
67 +edb-config])
68 +AC_CONFIG_COMMANDS([default],
69 +       [chmod +x edb-config])
70 --- edb-1.0.5/src/os_stat.c.orig        2001-04-05 18:31:35.000000000 +0200
71 +++ edb-1.0.5/src/os_stat.c     2004-10-27 23:52:51.401663408 +0200
72 @@ -88,7 +88,7 @@
73          * Check for a 0 size -- the HP MPE/iX architecture has st_blksize,
74          * but it's always 0.
75          */
76 -#ifdef HAVE_ST_BLKSIZE
77 +#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
78         if (iosizep != NULL && (*iosizep = sb.st_blksize) == 0)
79                 *iosizep = DB_DEF_IOSIZE;
80  #else
This page took 0.078653 seconds and 3 git commands to generate.