OSX: using GNU sed and documenting autogen changes

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11854 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Neil Williams 2005-11-06 13:18:07 +00:00
parent 7add4d3c08
commit 71930519fe
2 changed files with 28 additions and 24 deletions

View File

@ -4,20 +4,25 @@ Miguel de Icaza who adapted them from guidelines written by
Owen Taylor. Owen Taylor.
+ In order to build GnuCash from SVN, you need to run the autogen.sh + In order to build GnuCash from SVN, you need to run the autogen.sh
command to generate and execute a configure script. When building command to generate a configure script and other files. autogen.sh does
from SVN you should ALWAYS pass your configure options directly to NOT accept any options but it may output some options that you should
autogen.sh. For example: add to your own ./configure command.
./autogen.sh --enable-ofx --enable-opt-style-install --prefix=/opt/gnucash For example:
Autogen will automatically generate the configure script and then ./autogen.sh
run it WITH SPECIAL ARGUMENTS to make sure certain files get built.
./configure --enable-maintainer-mode --enable-error-on-warning \
--enable-compiler-warnings --enable-ofx --enable-opt-style-install \
--prefix=/opt/gnucash
Autogen will automatically generate the configure script but you must
run it WITH SPECIAL ARGUMENTS to make sure that certain files get built.
If you run "configure" without these special arguments, it is very likely If you run "configure" without these special arguments, it is very likely
that GnuCash will fail to build. Therefore, do not run configure by that GnuCash will fail to build.
hand.
If in doubt, you can run autogen.sh, run ./configure --help, If in doubt, you can run autogen.sh, run ./configure --help,
then re-run autogen.sh with your options. then re-run ./configure with your options.
+ Some versions of gettextize don't deal well with re-running themselves. + Some versions of gettextize don't deal well with re-running themselves.
You will see this as an error like: You will see this as an error like:
@ -95,3 +100,7 @@ June 21, 2002
Derek Atkins Derek Atkins
November 21, 2002 November 21, 2002
Neil Williams
November 6th, 2005

View File

@ -74,8 +74,11 @@ AM_GLIB_GNU_GETTEXT
AM_MAINTAINER_MODE AM_MAINTAINER_MODE
AC_CONFIG_MACRO_DIR(macros)
# Enable only when we have autoconf --version >= 2.59
# on all platforms. Note that AC_PREREQ(2.59) may be
# insufficient to actually use v2.59 on OSX
#AC_CONFIG_MACRO_DIR(macros)
AC_PROG_INSTALL AC_PROG_INSTALL
@ -169,6 +172,8 @@ AC_SUBST(DL_LIB)
#AC_SEARCH_LIBS(gettext, intl, ,[ #AC_SEARCH_LIBS(gettext, intl, ,[
# AC_MSG_ERROR([Cannot find gettext -- do you need to build -lintl?])], ) # AC_MSG_ERROR([Cannot find gettext -- do you need to build -lintl?])], )
AC_SUBST(SED)
AC_MSG_CHECKING(for darwin) AC_MSG_CHECKING(for darwin)
case $host_os in case $host_os in
rhapsody* | darwin1*) rhapsody* | darwin1*)
@ -177,20 +182,10 @@ case $host_os in
update to latest darwin]) update to latest darwin])
;; ;;
darwin*) darwin*)
dnl Use fink under MacOS X to find popt AC_CHECK_HEADERS(popt.h)
AC_MSG_CHECKING(for fink support)
if test -d "/sw/lib" -a -d "/sw/include"; then
AM_CFLAGS="$AM_CFLAGS -I/sw/include"
LDFLAGS="$LDFLAGS -L/sw/lib"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AC_CHECK_HEADERS(popt.h)
AC_MSG_RESULT([yes, patching libtool to always build dylibs]) AC_MSG_RESULT([yes, patching libtool to always build dylibs])
mv libtool libtool.old mv libtool libtool.old
sed -e 's/^deplibs_check_method.*/deplibs_check_method=pass_all/g' \ ${SED} -e 's/^deplibs_check_method.*/deplibs_check_method=pass_all/g' \
-e 's|^archive_cmds.*|archive_cmds="$CC -dynamiclib \\$allow_undefined_flag -o \\$lib \\$libobjs \\$deplibs\\$linker_flags -install_name \\$rpath/\\$soname \\$verstring"|g' \
-e 's|^library_names_spec.*|library_names_spec="\\$libname\\$release\\$versuffix.dylib \\$libname\\$release\\${major}.dylib \\$libname.dylib"|g' \ -e 's|^library_names_spec.*|library_names_spec="\\$libname\\$release\\$versuffix.dylib \\$libname\\$release\\${major}.dylib \\$libname.dylib"|g' \
-e 's|^soname_spec.*|soname_spec="\\$libname\\$release\\$major.dylib"|g' \ -e 's|^soname_spec.*|soname_spec="\\$libname\\$release\\$major.dylib"|g' \
< libtool.old > libtool < libtool.old > libtool
@ -1075,8 +1070,8 @@ dnl if Mac OSX, also scrub /sw/include
dnl GIVEN_CFLAGS=$(echo $GIVEN_CFLAGS | sed -e "s;-I/sw/include ;;" | sed -e "s;-I/sw/include$;;") dnl GIVEN_CFLAGS=$(echo $GIVEN_CFLAGS | sed -e "s;-I/sw/include ;;" | sed -e "s;-I/sw/include$;;")
case $host_os in case $host_os in
darwin*) darwin*)
GTKHTML_CFLAGS=$(echo $GTKHTML_CFLAGS | sed -e "s;-I/sw/include ;;" | sed -e "s;-I/sw/include$;;") GTKHTML_CFLAGS=$(echo $GTKHTML_CFLAGS | ${SED} -e "s;-I/sw/include ;;" | ${SED} -e "s;-I/sw/include$;;")
GTKHTML_CFLAGS=$(echo $GTKHTML_CFLAGS | sed -e "s;-I/sw/include/gtkhtml ;;" | sed -e "s;-I/sw/includ/gtkhtmle$;;") GTKHTML_CFLAGS=$(echo $GTKHTML_CFLAGS | ${SED} -e "s;-I/sw/include/gtkhtml ;;" | ${SED} -e "s;-I/sw/includ/gtkhtmle$;;")
;; ;;
esac esac
AC_SUBST(GTKHTML_CFLAGS) AC_SUBST(GTKHTML_CFLAGS)