source: trunk/dports/databases/db46/files/autoreconf-fix.patch @ 154482

Last change on this file since 154482 was 111001, checked in by larryv@…, 6 years ago

db46: Run autoreconf to get a newer libtool that passes -stdlib when linking dylibs.

File size: 1.6 KB
  • configure.ac

    old new if test "$db_cv_mingw" = "yes"; then 
    457457        OSDIR=os_windows
    458458        PATH_SEPARATOR="\\\\/:"
    459459
    460         AC_DEFINE(DB_WIN32)
     460        # For some reason, autoheader chokes if this is defined without
     461        # a description.
     462        AC_DEFINE([DB_WIN32], [1], [Some Windows crap.])
    461463        AC_DEFINE(STDC_HEADERS)
    462464else
    463465        OSDIR=os
    464466        PATH_SEPARATOR="/"
    465         AC_DEFINE(HAVE_SYSTEM_INCLUDE_FILES)
     467        # For some reason, autoheader chokes if this is defined without
     468        # a description.
     469        AC_DEFINE([HAVE_SYSTEM_INCLUDE_FILES], [1], [More Windows crap.])
    466470fi
    467471
    468472# Checks for include files, structures, C types.
  • s_config

    old new  
    33#
    44# Build the autoconfiguration files.
    55
    6 trap 'rm -f aclocal.m4 ; exit 0' 0 1 2 3 13 15
     6trap 'rm -f aclocal.m4' 0 1 2 3 13 15
    77
    88. ./RELEASE
    99
    10 echo "autoconf: building aclocal.m4..."
    11 cat aclocal/*.m4 aclocal_java/*.m4 > aclocal.m4
    12 
    13 echo "autoconf: running autoheader to build config.hin..."
    14 rm -f config.hin
    15 autoheader
    16 chmod 444 config.hin
    17 
    18 echo "autoconf: running autoconf to build configure"
    19 rm -f configure
    20 autoconf
     10# We need to run our libtoolize to get a libtool that understands
     11# -stdlib, so use autoreconf and pass autoreconf.{pre_,post_}args as the
     12# arguments to this script.
     13rm -f config.hin configure
     14autoreconf "$@" || exit $?
    2115
    2216# Edit version information we couldn't pre-compute.
    2317sed -e "s/__EDIT_DB_VERSION_MAJOR__/$DB_VERSION_MAJOR/g" \
Note: See TracBrowser for help on using the repository browser.