mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
more patches from rob
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1400 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
a1bae140d8
commit
4fb3c2c397
25
Makefile.config.finish
Normal file
25
Makefile.config.finish
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
|
||||||
|
# This file is used at the end of the configure run. It handles
|
||||||
|
# setting up the runtime paths that will be embedded into the gnucash
|
||||||
|
# binary. It can't be done using AC_OUTPUT because we'd need to
|
||||||
|
# expand a variable that's defined in terms of ${prefix} before
|
||||||
|
# AC_OUTPUT, and prefix isn't guaranteed to be defined until AC_OUTPUT
|
||||||
|
# is called.
|
||||||
|
|
||||||
|
# We use a makefile because it gives us the proper variable expansions
|
||||||
|
# for free.
|
||||||
|
|
||||||
|
all:
|
||||||
|
perl -p \
|
||||||
|
-e "s|\@GNC_RUNTIME_SHAREDIR\@|${GNC_SHAREDIR}|o;" \
|
||||||
|
-e "s|\@GNC_RUNTIME_CONFIGDIR\@|${GNC_SHAREDIR}|o" \
|
||||||
|
< src/scm/startup/init.scm.in > src/scm/startup/init.scm
|
||||||
|
perl -p \
|
||||||
|
-e "s|\@GNC_RUNTIME_SHAREDIR\@|${GNC_SHAREDIR}|o;" \
|
||||||
|
-e "s|\@GNC_RUNTIME_CONFIGDIR\@|${GNC_SHAREDIR}|o" \
|
||||||
|
< src/guile/gnucash.h.in > src/guile/gnucash.h
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# tab-width: 2
|
||||||
|
# End:
|
222
configure
vendored
222
configure
vendored
@ -2287,27 +2287,29 @@ fi
|
|||||||
|
|
||||||
# Set GUILELIBS according to the set of libraries needed to link
|
# Set GUILELIBS according to the set of libraries needed to link
|
||||||
# with guile.
|
# with guile.
|
||||||
echo $ac_n "checking for gh_enter in -lguile""... $ac_c" 1>&6
|
|
||||||
echo "configure:2292: checking for gh_enter in -lguile" >&5
|
# If readline exists, just assume that guile needs it. It probably does.
|
||||||
ac_lib_var=`echo guile'_'gh_enter | sed 'y%./+-%__p_%'`
|
echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
||||||
|
echo "configure:2294: checking for readline in -lreadline" >&5
|
||||||
|
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-lguile $LIBS"
|
LIBS="-lreadline $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2300 "configure"
|
#line 2302 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
/* We use char because int might match the return type of a gcc2
|
/* We use char because int might match the return type of a gcc2
|
||||||
builtin and then its argument prototype would still apply. */
|
builtin and then its argument prototype would still apply. */
|
||||||
char gh_enter();
|
char readline();
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
gh_enter()
|
readline()
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
@ -2322,182 +2324,130 @@ LIBS="$ac_save_LIBS"
|
|||||||
fi
|
fi
|
||||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||||
echo "$ac_t""yes" 1>&6
|
echo "$ac_t""yes" 1>&6
|
||||||
GUILELIBS="$GUILELIBS -lguile"
|
ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
||||||
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
||||||
|
cat >> confdefs.h <<EOF
|
||||||
|
#define $ac_tr_lib 1
|
||||||
|
EOF
|
||||||
|
|
||||||
|
LIBS="-lreadline $LIBS"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "$ac_t""no" 1>&6
|
echo "$ac_t""no" 1>&6
|
||||||
echo $ac_n "checking for gh_define in -lguile""... $ac_c" 1>&6
|
fi
|
||||||
echo "configure:2330: checking for gh_define in -lguile" >&5
|
|
||||||
ac_lib_var=`echo guile'_'gh_define | 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="-lguile $LIBS"
|
|
||||||
cat > conftest.$ac_ext <<EOF
|
|
||||||
#line 2338 "configure"
|
|
||||||
#include "confdefs.h"
|
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
|
||||||
/* We use char because int might match the return type of a gcc2
|
|
||||||
builtin and then its argument prototype would still apply. */
|
|
||||||
char gh_define();
|
|
||||||
|
|
||||||
|
|
||||||
|
# Have to use AC_TRY_LINK here because AC_CHECK_LIB caches the
|
||||||
|
# results, so one failure makes all further attempts fail.
|
||||||
|
|
||||||
|
echo $ac_n "checking for guile""... $ac_c" 1>&6
|
||||||
|
echo "configure:2345: checking for guile" >&5
|
||||||
|
|
||||||
|
GNC_LIBS_SAFE=${LIBS}
|
||||||
|
|
||||||
|
GNC_TEST_LIBS="-lguile"
|
||||||
|
LIBS="${LIBS} ${GNC_LIBS_HELPER} ${GNC_TEST_LIBS}"
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
#line 2352 "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
#include<guile/gh.h>
|
||||||
int main() {
|
int main() {
|
||||||
gh_define()
|
gh_eval_file;
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
GUILELIBS="$GUILELIBS ${GNC_TEST_LIBS}"
|
||||||
else
|
else
|
||||||
echo "configure: failed program was:" >&5
|
echo "configure: failed program was:" >&5
|
||||||
cat conftest.$ac_ext >&5
|
cat conftest.$ac_ext >&5
|
||||||
rm -rf conftest*
|
|
||||||
eval "ac_cv_lib_$ac_lib_var=no"
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
LIBS="$ac_save_LIBS"
|
LIBS="${LIBS_SAFE}"
|
||||||
|
|
||||||
fi
|
if test x"${GUILELIBS}" == x;
|
||||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
then
|
||||||
echo "$ac_t""yes" 1>&6
|
GNC_TEST_LIBS="-lguile -lqthreads"
|
||||||
GUILELIBS="$GUILELIBS -lguile -ldl -lreadline"
|
LIBS="${LIBS} ${GNC_LIBS_HELPER} ${GNC_TEST_LIBS}"
|
||||||
else
|
cat > conftest.$ac_ext <<EOF
|
||||||
echo "$ac_t""no" 1>&6
|
#line 2374 "configure"
|
||||||
echo $ac_n "checking for gh_eval_file in -lguile""... $ac_c" 1>&6
|
|
||||||
echo "configure:2368: checking for gh_eval_file in -lguile" >&5
|
|
||||||
ac_lib_var=`echo guile'_'gh_eval_file | 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="-lguile $LIBS"
|
|
||||||
cat > conftest.$ac_ext <<EOF
|
|
||||||
#line 2376 "configure"
|
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
#include<guile/gh.h>
|
||||||
/* We use char because int might match the return type of a gcc2
|
|
||||||
builtin and then its argument prototype would still apply. */
|
|
||||||
char gh_eval_file();
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
gh_eval_file()
|
gh_eval_file;
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
GUILELIBS="$GUILELIBS ${GNC_TEST_LIBS}"
|
||||||
else
|
else
|
||||||
echo "configure: failed program was:" >&5
|
echo "configure: failed program was:" >&5
|
||||||
cat conftest.$ac_ext >&5
|
cat conftest.$ac_ext >&5
|
||||||
rm -rf conftest*
|
|
||||||
eval "ac_cv_lib_$ac_lib_var=no"
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
LIBS="$ac_save_LIBS"
|
LIBS="${LIBS_SAFE}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
||||||
echo "$ac_t""yes" 1>&6
|
|
||||||
GUILELIBS="$GUILELIBS -lguile -ltermcap"
|
|
||||||
else
|
|
||||||
echo "$ac_t""no" 1>&6
|
|
||||||
echo $ac_n "checking for gh_eval_file in -lguile""... $ac_c" 1>&6
|
|
||||||
echo "configure:2406: checking for gh_eval_file in -lguile" >&5
|
|
||||||
ac_lib_var=`echo guile'_'gh_eval_file | 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="-lguile -ldl -lreadline -ltermcap $LIBS"
|
|
||||||
cat > conftest.$ac_ext <<EOF
|
|
||||||
#line 2414 "configure"
|
|
||||||
#include "confdefs.h"
|
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
|
||||||
/* We use char because int might match the return type of a gcc2
|
|
||||||
builtin and then its argument prototype would still apply. */
|
|
||||||
char gh_eval_file();
|
|
||||||
|
|
||||||
|
if test x"${GUILELIBS}" == x;
|
||||||
|
then
|
||||||
|
GNC_TEST_LIBS="-lguile -ltermcap"
|
||||||
|
LIBS="${LIBS} ${GNC_LIBS_HELPER} ${GNC_TEST_LIBS}"
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
#line 2397 "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
#include<guile/gh.h>
|
||||||
int main() {
|
int main() {
|
||||||
gh_eval_file()
|
gh_eval_file;
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
GUILELIBS="$GUILELIBS ${GNC_TEST_LIBS}"
|
||||||
else
|
else
|
||||||
echo "configure: failed program was:" >&5
|
echo "configure: failed program was:" >&5
|
||||||
cat conftest.$ac_ext >&5
|
cat conftest.$ac_ext >&5
|
||||||
rm -rf conftest*
|
|
||||||
eval "ac_cv_lib_$ac_lib_var=no"
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
LIBS="$ac_save_LIBS"
|
LIBS="${LIBS_SAFE}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
||||||
echo "$ac_t""yes" 1>&6
|
|
||||||
GUILELIBS="$GUILELIBS -lguile -ldl -lreadline -ltermcap"
|
|
||||||
else
|
|
||||||
echo "$ac_t""no" 1>&6
|
|
||||||
echo $ac_n "checking for gh_eval_file in -lguile""... $ac_c" 1>&6
|
|
||||||
echo "configure:2444: checking for gh_eval_file in -lguile" >&5
|
|
||||||
ac_lib_var=`echo guile'_'gh_eval_file | 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="-lguile -ldl -lreadline -ltermcap -lqthreads $LIBS"
|
|
||||||
cat > conftest.$ac_ext <<EOF
|
|
||||||
#line 2452 "configure"
|
|
||||||
#include "confdefs.h"
|
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
|
||||||
/* We use char because int might match the return type of a gcc2
|
|
||||||
builtin and then its argument prototype would still apply. */
|
|
||||||
char gh_eval_file();
|
|
||||||
|
|
||||||
|
if test x"${GUILELIBS}" == x;
|
||||||
|
then
|
||||||
|
GNC_TEST_LIBS="-lguile -lqthreads -ltermcap"
|
||||||
|
LIBS="${LIBS} ${GNC_LIBS_HELPER} ${GNC_TEST_LIBS}"
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
#line 2420 "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
#include<guile/gh.h>
|
||||||
int main() {
|
int main() {
|
||||||
gh_eval_file()
|
gh_eval_file;
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
GUILELIBS="$GUILELIBS ${GNC_TEST_LIBS}"
|
||||||
else
|
else
|
||||||
echo "configure: failed program was:" >&5
|
echo "configure: failed program was:" >&5
|
||||||
cat conftest.$ac_ext >&5
|
cat conftest.$ac_ext >&5
|
||||||
rm -rf conftest*
|
|
||||||
eval "ac_cv_lib_$ac_lib_var=no"
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
LIBS="$ac_save_LIBS"
|
LIBS="${LIBS_SAFE}"
|
||||||
|
|
||||||
fi
|
|
||||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
||||||
echo "$ac_t""yes" 1>&6
|
|
||||||
GUILELIBS="$GUILELIBS -lguile -ldl -lreadline -ltermcap -lqthreads"
|
|
||||||
else
|
|
||||||
echo "$ac_t""no" 1>&6
|
|
||||||
{ echo "configure: error: cannot link with guile" 1>&2; exit 1; }
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
if test x"${GUILELIBS}" == x;
|
||||||
|
then
|
||||||
-ltermcap
|
{ echo "configure: error: Cannot link with guile. Do you have guile 1.3 installed?" 1>&2; exit 1; }
|
||||||
fi
|
|
||||||
|
|
||||||
-ldl -lreadline
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
echo "$ac_t""yes" 1>&6
|
||||||
|
|
||||||
### Plotutils
|
### Plotutils
|
||||||
|
|
||||||
echo $ac_n "checking for openpl in -lplot""... $ac_c" 1>&6
|
echo $ac_n "checking for openpl in -lplot""... $ac_c" 1>&6
|
||||||
echo "configure:2501: checking for openpl in -lplot" >&5
|
echo "configure:2451: checking for openpl in -lplot" >&5
|
||||||
ac_lib_var=`echo plot'_'openpl | sed 'y%./+-%__p_%'`
|
ac_lib_var=`echo plot'_'openpl | sed 'y%./+-%__p_%'`
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
@ -2505,7 +2455,7 @@ else
|
|||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-lplot $X_PRE_LIBS $MOTIF_LIBS $X_EXTRA_LIBS -lXaw $X_LIBS $LIBS"
|
LIBS="-lplot $X_PRE_LIBS $MOTIF_LIBS $X_EXTRA_LIBS -lXaw $X_LIBS $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2509 "configure"
|
#line 2459 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
/* We use char because int might match the return type of a gcc2
|
/* We use char because int might match the return type of a gcc2
|
||||||
@ -2516,7 +2466,7 @@ int main() {
|
|||||||
openpl()
|
openpl()
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
@ -2698,10 +2648,8 @@ trap 'rm -fr `echo "Makefile
|
|||||||
src/Makefile
|
src/Makefile
|
||||||
src/engine/Makefile
|
src/engine/Makefile
|
||||||
src/guile/Makefile
|
src/guile/Makefile
|
||||||
src/guile/gnucash.h
|
|
||||||
src/scm/Makefile
|
src/scm/Makefile
|
||||||
src/scm/startup/Makefile
|
src/scm/startup/Makefile
|
||||||
src/scm/startup/init.scm
|
|
||||||
src/gnome/Makefile
|
src/gnome/Makefile
|
||||||
src/motif/Makefile
|
src/motif/Makefile
|
||||||
src/qt/Makefile
|
src/qt/Makefile
|
||||||
@ -2812,10 +2760,8 @@ CONFIG_FILES=\${CONFIG_FILES-"Makefile
|
|||||||
src/Makefile
|
src/Makefile
|
||||||
src/engine/Makefile
|
src/engine/Makefile
|
||||||
src/guile/Makefile
|
src/guile/Makefile
|
||||||
src/guile/gnucash.h
|
|
||||||
src/scm/Makefile
|
src/scm/Makefile
|
||||||
src/scm/startup/Makefile
|
src/scm/startup/Makefile
|
||||||
src/scm/startup/init.scm
|
|
||||||
src/gnome/Makefile
|
src/gnome/Makefile
|
||||||
src/motif/Makefile
|
src/motif/Makefile
|
||||||
src/qt/Makefile
|
src/qt/Makefile
|
||||||
@ -3006,3 +2952,7 @@ test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|||||||
|
|
||||||
|
|
||||||
chmod +x gnucash
|
chmod +x gnucash
|
||||||
|
|
||||||
|
make -f Makefile.config.finish prefix=${prefix} \
|
||||||
|
GNC_SHAREDIR=${GNC_SHAREDIR} \
|
||||||
|
GNC_CONFIGDIR=${GNC_SHAREDIR}
|
||||||
|
73
configure.in
73
configure.in
@ -154,25 +154,60 @@ AC_SUBST(XMHTML_INC)
|
|||||||
|
|
||||||
# Set GUILELIBS according to the set of libraries needed to link
|
# Set GUILELIBS according to the set of libraries needed to link
|
||||||
# with guile.
|
# with guile.
|
||||||
AC_CHECK_LIB(guile, gh_enter,
|
|
||||||
GUILELIBS="$GUILELIBS -lguile",
|
# If readline exists, just assume that guile needs it. It probably does.
|
||||||
AC_CHECK_LIB(guile, gh_define,
|
AC_CHECK_LIB(readline, readline)
|
||||||
GUILELIBS="$GUILELIBS -lguile -ldl -lreadline",
|
|
||||||
AC_CHECK_LIB(guile, gh_eval_file,
|
# Have to use AC_TRY_LINK here because AC_CHECK_LIB caches the
|
||||||
GUILELIBS="$GUILELIBS -lguile -ltermcap",
|
# results, so one failure makes all further attempts fail.
|
||||||
AC_CHECK_LIB(guile, gh_eval_file,
|
|
||||||
GUILELIBS="$GUILELIBS -lguile -ldl -lreadline -ltermcap",
|
AC_MSG_CHECKING([for guile])
|
||||||
AC_CHECK_LIB(guile, gh_eval_file,
|
|
||||||
GUILELIBS="$GUILELIBS -lguile -ldl -lreadline -ltermcap -lqthreads",
|
GNC_LIBS_SAFE=${LIBS}
|
||||||
AC_MSG_ERROR(cannot link with guile),
|
|
||||||
-ldl -lreadline -ltermcap -lqthreads),
|
GNC_TEST_LIBS="-lguile"
|
||||||
-ldl -lreadline -ltermcap)
|
LIBS="${LIBS} ${GNC_LIBS_HELPER} ${GNC_TEST_LIBS}"
|
||||||
-ltermcap)
|
AC_TRY_LINK([#include<guile/gh.h>], [gh_eval_file;],
|
||||||
-ldl -lreadline)
|
GUILELIBS="$GUILELIBS ${GNC_TEST_LIBS}")
|
||||||
)
|
LIBS="${LIBS_SAFE}"
|
||||||
|
|
||||||
|
if test x"${GUILELIBS}" == x;
|
||||||
|
then
|
||||||
|
GNC_TEST_LIBS="-lguile -lqthreads"
|
||||||
|
LIBS="${LIBS} ${GNC_LIBS_HELPER} ${GNC_TEST_LIBS}"
|
||||||
|
AC_TRY_LINK([#include<guile/gh.h>], [gh_eval_file;],
|
||||||
|
GUILELIBS="$GUILELIBS ${GNC_TEST_LIBS}")
|
||||||
|
LIBS="${LIBS_SAFE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x"${GUILELIBS}" == x;
|
||||||
|
then
|
||||||
|
GNC_TEST_LIBS="-lguile -ltermcap"
|
||||||
|
LIBS="${LIBS} ${GNC_LIBS_HELPER} ${GNC_TEST_LIBS}"
|
||||||
|
AC_TRY_LINK([#include<guile/gh.h>], [gh_eval_file;],
|
||||||
|
GUILELIBS="$GUILELIBS ${GNC_TEST_LIBS}")
|
||||||
|
LIBS="${LIBS_SAFE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x"${GUILELIBS}" == x;
|
||||||
|
then
|
||||||
|
GNC_TEST_LIBS="-lguile -lqthreads -ltermcap"
|
||||||
|
LIBS="${LIBS} ${GNC_LIBS_HELPER} ${GNC_TEST_LIBS}"
|
||||||
|
AC_TRY_LINK([#include<guile/gh.h>], [gh_eval_file;],
|
||||||
|
GUILELIBS="$GUILELIBS ${GNC_TEST_LIBS}")
|
||||||
|
LIBS="${LIBS_SAFE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x"${GUILELIBS}" == x;
|
||||||
|
then
|
||||||
|
AC_MSG_ERROR(Cannot link with guile. Do you have guile 1.3 installed?)
|
||||||
|
fi
|
||||||
|
|
||||||
AC_SUBST(GUILE_INC)
|
AC_SUBST(GUILE_INC)
|
||||||
AC_SUBST(GUILELIBS)
|
AC_SUBST(GUILELIBS)
|
||||||
|
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
|
||||||
### Plotutils
|
### Plotutils
|
||||||
|
|
||||||
AC_CHECK_LIB(plot, openpl,
|
AC_CHECK_LIB(plot, openpl,
|
||||||
@ -237,10 +272,8 @@ AC_OUTPUT(Makefile
|
|||||||
src/Makefile
|
src/Makefile
|
||||||
src/engine/Makefile
|
src/engine/Makefile
|
||||||
src/guile/Makefile
|
src/guile/Makefile
|
||||||
src/guile/gnucash.h
|
|
||||||
src/scm/Makefile
|
src/scm/Makefile
|
||||||
src/scm/startup/Makefile
|
src/scm/startup/Makefile
|
||||||
src/scm/startup/init.scm
|
|
||||||
src/gnome/Makefile
|
src/gnome/Makefile
|
||||||
src/motif/Makefile
|
src/motif/Makefile
|
||||||
src/qt/Makefile
|
src/qt/Makefile
|
||||||
@ -254,3 +287,7 @@ AC_OUTPUT(Makefile
|
|||||||
lib/ComboBox-1.33/Makefile)
|
lib/ComboBox-1.33/Makefile)
|
||||||
|
|
||||||
chmod +x gnucash
|
chmod +x gnucash
|
||||||
|
|
||||||
|
make -f Makefile.config.finish prefix=${prefix} \
|
||||||
|
GNC_SHAREDIR=${GNC_SHAREDIR} \
|
||||||
|
GNC_CONFIGDIR=${GNC_SHAREDIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user