Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 650608
Collapse All | Expand All

(-)make-4.2.1/configure.ac (-10 / +16 lines)
Lines 160-181 AC_FUNC_ALLOCA Link Here
160
AC_FUNC_CLOSEDIR_VOID
160
AC_FUNC_CLOSEDIR_VOID
161
161
162
# See if the user wants to add (or not) GNU Guile support
162
# See if the user wants to add (or not) GNU Guile support
163
PKG_PROG_PKG_CONFIG
164
AC_ARG_WITH([guile], [AS_HELP_STRING([--with-guile],
163
AC_ARG_WITH([guile], [AS_HELP_STRING([--with-guile],
165
            [Support GNU Guile for embedded scripting])])
164
            [Support GNU Guile for embedded scripting])])
166
165
167
# For some strange reason, at least on Ubuntu, each version of Guile
166
# Annoyingly, each version of Guile comes with it's own PC file so we have to
168
# comes with it's own PC file so we have to specify them as individual
167
# specify them as individual packages.  Ugh.
169
# packages.  Ugh.
168
PKG_PROG_PKG_CONFIG
169
170
AS_IF([test "x$with_guile" != xno],
170
AS_IF([test "x$with_guile" != xno],
171
[ PKG_CHECK_MODULES([GUILE], [guile-2.0], [have_guile=yes],
171
[ guile_versions="2.2 2.0 1.8"
172
  [PKG_CHECK_MODULES([GUILE], [guile-1.8], [have_guile=yes],
172
  guile_version=no
173
    [have_guile=no])])
173
  have_guile=no
174
  AC_MSG_CHECKING([for GNU Guile])
175
  for v in $guile_versions; do
176
    PKG_CHECK_EXISTS([guile-$v], [guile_version=$v; have_guile=yes; break], [])
177
  done
178
  AC_MSG_RESULT([$guile_version])
179
  if test "$have_guile" = yes; then
180
    PKG_CHECK_MODULES(GUILE, [guile-$guile_version])
181
    AC_DEFINE([HAVE_GUILE], [1], [Embed GNU Guile support])
182
  fi
174
])
183
])
175
184
176
AS_IF([test "$have_guile" = yes],
177
      [AC_DEFINE([HAVE_GUILE], [1], [Embed GNU Guile support])])
178
179
AM_CONDITIONAL([HAVE_GUILE], [test "$have_guile" = yes])
185
AM_CONDITIONAL([HAVE_GUILE], [test "$have_guile" = yes])
180
186
181
AC_FUNC_GETLOADAVG
187
AC_FUNC_GETLOADAVG
(-)make-4.2.1/configure (-173 / +57 lines)
Lines 745-751 infodir Link Here
745
docdir
745
docdir
746
oldincludedir
746
oldincludedir
747
includedir
747
includedir
748
runstatedir
749
localstatedir
748
localstatedir
750
sharedstatedir
749
sharedstatedir
751
sysconfdir
750
sysconfdir
Lines 835-841 datadir='${datarootdir}' Link Here
835
sysconfdir='${prefix}/etc'
834
sysconfdir='${prefix}/etc'
836
sharedstatedir='${prefix}/com'
835
sharedstatedir='${prefix}/com'
837
localstatedir='${prefix}/var'
836
localstatedir='${prefix}/var'
838
runstatedir='${localstatedir}/run'
839
includedir='${prefix}/include'
837
includedir='${prefix}/include'
840
oldincludedir='/usr/include'
838
oldincludedir='/usr/include'
841
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Lines 1088-1102 do Link Here
1088
  | -silent | --silent | --silen | --sile | --sil)
1086
  | -silent | --silent | --silen | --sile | --sil)
1089
    silent=yes ;;
1087
    silent=yes ;;
1090
1088
1091
  -runstatedir | --runstatedir | --runstatedi | --runstated \
1092
  | --runstate | --runstat | --runsta | --runst | --runs \
1093
  | --run | --ru | --r)
1094
    ac_prev=runstatedir ;;
1095
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097
  | --run=* | --ru=* | --r=*)
1098
    runstatedir=$ac_optarg ;;
1099
1100
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101
    ac_prev=sbindir ;;
1090
    ac_prev=sbindir ;;
1102
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Lines 1234-1240 fi Link Here
1234
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235
		datadir sysconfdir sharedstatedir localstatedir includedir \
1224
		datadir sysconfdir sharedstatedir localstatedir includedir \
1236
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237
		libdir localedir mandir runstatedir
1226
		libdir localedir mandir
1238
do
1227
do
1239
  eval ac_val=\$$ac_var
1228
  eval ac_val=\$$ac_var
1240
  # Remove trailing slashes.
1229
  # Remove trailing slashes.
Lines 1387-1393 Fine tuning of the installation director Link Here
1387
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1376
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1377
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1378
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1390
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1391
  --libdir=DIR            object code libraries [EPREFIX/lib]
1379
  --libdir=DIR            object code libraries [EPREFIX/lib]
1392
  --includedir=DIR        C header files [PREFIX/include]
1380
  --includedir=DIR        C header files [PREFIX/include]
1393
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1381
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
Lines 8043-8049 else Link Here
8043
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8031
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8044
    since some C++ compilers masquerading as C compilers
8032
    since some C++ compilers masquerading as C compilers
8045
    incorrectly reject 9223372036854775807.  */
8033
    incorrectly reject 9223372036854775807.  */
8046
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8034
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8047
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8035
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8048
		       && LARGE_OFF_T % 2147483647 == 1)
8036
		       && LARGE_OFF_T % 2147483647 == 1)
8049
		      ? 1 : -1];
8037
		      ? 1 : -1];
Lines 8089-8095 else Link Here
8089
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8077
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8090
    since some C++ compilers masquerading as C compilers
8078
    since some C++ compilers masquerading as C compilers
8091
    incorrectly reject 9223372036854775807.  */
8079
    incorrectly reject 9223372036854775807.  */
8092
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8080
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8093
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8081
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8094
		       && LARGE_OFF_T % 2147483647 == 1)
8082
		       && LARGE_OFF_T % 2147483647 == 1)
8095
		      ? 1 : -1];
8083
		      ? 1 : -1];
Lines 8113-8119 rm -f core conftest.err conftest.$ac_obj Link Here
8113
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8101
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8114
    since some C++ compilers masquerading as C compilers
8102
    since some C++ compilers masquerading as C compilers
8115
    incorrectly reject 9223372036854775807.  */
8103
    incorrectly reject 9223372036854775807.  */
8116
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8104
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8117
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8105
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8118
		       && LARGE_OFF_T % 2147483647 == 1)
8106
		       && LARGE_OFF_T % 2147483647 == 1)
8119
		      ? 1 : -1];
8107
		      ? 1 : -1];
Lines 8158-8164 else Link Here
8158
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8146
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8159
    since some C++ compilers masquerading as C compilers
8147
    since some C++ compilers masquerading as C compilers
8160
    incorrectly reject 9223372036854775807.  */
8148
    incorrectly reject 9223372036854775807.  */
8161
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8149
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8162
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8150
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8163
		       && LARGE_OFF_T % 2147483647 == 1)
8151
		       && LARGE_OFF_T % 2147483647 == 1)
8164
		      ? 1 : -1];
8152
		      ? 1 : -1];
Lines 8182-8188 rm -f core conftest.err conftest.$ac_obj Link Here
8182
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8170
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8183
    since some C++ compilers masquerading as C compilers
8171
    since some C++ compilers masquerading as C compilers
8184
    incorrectly reject 9223372036854775807.  */
8172
    incorrectly reject 9223372036854775807.  */
8185
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8173
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8186
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8174
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8187
		       && LARGE_OFF_T % 2147483647 == 1)
8175
		       && LARGE_OFF_T % 2147483647 == 1)
8188
		      ? 1 : -1];
8176
		      ? 1 : -1];
Lines 9694-9699 fi Link Here
9694
9682
9695
# See if the user wants to add (or not) GNU Guile support
9683
# See if the user wants to add (or not) GNU Guile support
9696
9684
9685
# Check whether --with-guile was given.
9686
if test "${with_guile+set}" = set; then :
9687
  withval=$with_guile;
9688
fi
9689
9690
9691
# Annoyingly, each version of Guile comes with it's own PC file so we have to
9692
# specify them as individual packages.  Ugh.
9693
9697
9694
9698
9695
9699
9696
Lines 9814-9888 $as_echo "no" >&6; } Link Here
9814
	fi
9811
	fi
9815
fi
9812
fi
9816
9813
9817
# Check whether --with-guile was given.
9818
if test "${with_guile+set}" = set; then :
9819
  withval=$with_guile;
9820
fi
9821
9822
9823
# For some strange reason, at least on Ubuntu, each version of Guile
9824
# comes with it's own PC file so we have to specify them as individual
9825
# packages.  Ugh.
9826
if test "x$with_guile" != xno; then :
9814
if test "x$with_guile" != xno; then :
9827
9815
   guile_versions="2.2 2.0 1.8"
9828
pkg_failed=no
9816
  guile_version=no
9829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9817
  have_guile=no
9830
$as_echo_n "checking for GUILE... " >&6; }
9818
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Guile" >&5
9831
9819
$as_echo_n "checking for GNU Guile... " >&6; }
9832
if test -n "$GUILE_CFLAGS"; then
9820
  for v in $guile_versions; do
9833
    pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9834
 elif test -n "$PKG_CONFIG"; then
9835
    if test -n "$PKG_CONFIG" && \
9836
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
9837
  ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
9838
  ac_status=$?
9839
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9840
  test $ac_status = 0; }; then
9841
  pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.0" 2>/dev/null`
9842
		      test "x$?" != "x0" && pkg_failed=yes
9843
else
9844
  pkg_failed=yes
9845
fi
9846
 else
9847
    pkg_failed=untried
9848
fi
9849
if test -n "$GUILE_LIBS"; then
9850
    pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9851
 elif test -n "$PKG_CONFIG"; then
9852
    if test -n "$PKG_CONFIG" && \
9821
    if test -n "$PKG_CONFIG" && \
9853
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
9822
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
9854
  ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
9823
  ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
9855
  ac_status=$?
9824
  ac_status=$?
9856
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9825
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9857
  test $ac_status = 0; }; then
9826
  test $ac_status = 0; }; then
9858
  pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.0" 2>/dev/null`
9827
  guile_version=$v; have_guile=yes; break
9859
		      test "x$?" != "x0" && pkg_failed=yes
9860
else
9861
  pkg_failed=yes
9862
fi
9863
 else
9864
    pkg_failed=untried
9865
fi
9866
9867
9868
9869
if test $pkg_failed = yes; then
9870
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871
$as_echo "no" >&6; }
9872
9873
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9874
        _pkg_short_errors_supported=yes
9875
else
9876
        _pkg_short_errors_supported=no
9877
fi
9828
fi
9878
        if test $_pkg_short_errors_supported = yes; then
9829
  done
9879
	        GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.0" 2>&1`
9830
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_version" >&5
9880
        else
9831
$as_echo "$guile_version" >&6; }
9881
	        GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.0" 2>&1`
9832
  if test "$have_guile" = yes; then
9882
        fi
9883
	# Put the nasty error message in config.log where it belongs
9884
	echo "$GUILE_PKG_ERRORS" >&5
9885
9886
9833
9887
pkg_failed=no
9834
pkg_failed=no
9888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
Lines 9892-9903 if test -n "$GUILE_CFLAGS"; then Link Here
9892
    pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9839
    pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9893
 elif test -n "$PKG_CONFIG"; then
9840
 elif test -n "$PKG_CONFIG"; then
9894
    if test -n "$PKG_CONFIG" && \
9841
    if test -n "$PKG_CONFIG" && \
9895
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9842
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
9896
  ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9843
  ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
9897
  ac_status=$?
9844
  ac_status=$?
9898
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9845
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9899
  test $ac_status = 0; }; then
9846
  test $ac_status = 0; }; then
9900
  pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
9847
  pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$guile_version" 2>/dev/null`
9901
		      test "x$?" != "x0" && pkg_failed=yes
9848
		      test "x$?" != "x0" && pkg_failed=yes
9902
else
9849
else
9903
  pkg_failed=yes
9850
  pkg_failed=yes
Lines 9909-9920 if test -n "$GUILE_LIBS"; then Link Here
9909
    pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9856
    pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9910
 elif test -n "$PKG_CONFIG"; then
9857
 elif test -n "$PKG_CONFIG"; then
9911
    if test -n "$PKG_CONFIG" && \
9858
    if test -n "$PKG_CONFIG" && \
9912
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9859
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
9913
  ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9860
  ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
9914
  ac_status=$?
9861
  ac_status=$?
9915
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9862
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9916
  test $ac_status = 0; }; then
9863
  test $ac_status = 0; }; then
9917
  pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
9864
  pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$guile_version" 2>/dev/null`
9918
		      test "x$?" != "x0" && pkg_failed=yes
9865
		      test "x$?" != "x0" && pkg_failed=yes
9919
else
9866
else
9920
  pkg_failed=yes
9867
  pkg_failed=yes
Lines 9935-10047 else Link Here
9935
        _pkg_short_errors_supported=no
9882
        _pkg_short_errors_supported=no
9936
fi
9883
fi
9937
        if test $_pkg_short_errors_supported = yes; then
9884
        if test $_pkg_short_errors_supported = yes; then
9938
	        GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
9885
	        GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-$guile_version" 2>&1`
9939
        else
9886
        else
9940
	        GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
9887
	        GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-$guile_version" 2>&1`
9941
        fi
9888
        fi
9942
	# Put the nasty error message in config.log where it belongs
9889
	# Put the nasty error message in config.log where it belongs
9943
	echo "$GUILE_PKG_ERRORS" >&5
9890
	echo "$GUILE_PKG_ERRORS" >&5
9944
9891
9945
	have_guile=no
9892
	as_fn_error $? "Package requirements (guile-$guile_version) were not met:
9946
elif test $pkg_failed = untried; then
9947
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948
$as_echo "no" >&6; }
9949
	have_guile=no
9950
else
9951
	GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9952
	GUILE_LIBS=$pkg_cv_GUILE_LIBS
9953
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9954
$as_echo "yes" >&6; }
9955
	have_guile=yes
9956
fi
9957
elif test $pkg_failed = untried; then
9958
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959
$as_echo "no" >&6; }
9960
9893
9961
pkg_failed=no
9894
$GUILE_PKG_ERRORS
9962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9963
$as_echo_n "checking for GUILE... " >&6; }
9964
9965
if test -n "$GUILE_CFLAGS"; then
9966
    pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9967
 elif test -n "$PKG_CONFIG"; then
9968
    if test -n "$PKG_CONFIG" && \
9969
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9970
  ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9971
  ac_status=$?
9972
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9973
  test $ac_status = 0; }; then
9974
  pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
9975
		      test "x$?" != "x0" && pkg_failed=yes
9976
else
9977
  pkg_failed=yes
9978
fi
9979
 else
9980
    pkg_failed=untried
9981
fi
9982
if test -n "$GUILE_LIBS"; then
9983
    pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9984
 elif test -n "$PKG_CONFIG"; then
9985
    if test -n "$PKG_CONFIG" && \
9986
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9987
  ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9988
  ac_status=$?
9989
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9990
  test $ac_status = 0; }; then
9991
  pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
9992
		      test "x$?" != "x0" && pkg_failed=yes
9993
else
9994
  pkg_failed=yes
9995
fi
9996
 else
9997
    pkg_failed=untried
9998
fi
9999
9895
9896
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9897
installed software in a non-standard prefix.
10000
9898
10001
9899
Alternatively, you may set the environment variables GUILE_CFLAGS
10002
if test $pkg_failed = yes; then
9900
and GUILE_LIBS to avoid the need to call pkg-config.
10003
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901
See the pkg-config man page for more details." "$LINENO" 5
10004
$as_echo "no" >&6; }
10005
10006
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10007
        _pkg_short_errors_supported=yes
10008
else
10009
        _pkg_short_errors_supported=no
10010
fi
10011
        if test $_pkg_short_errors_supported = yes; then
10012
	        GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
10013
        else
10014
	        GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
10015
        fi
10016
	# Put the nasty error message in config.log where it belongs
10017
	echo "$GUILE_PKG_ERRORS" >&5
10018
10019
	have_guile=no
10020
elif test $pkg_failed = untried; then
9902
elif test $pkg_failed = untried; then
10021
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022
$as_echo "no" >&6; }
9904
$as_echo "no" >&6; }
10023
	have_guile=no
9905
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10024
else
9906
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10025
	GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9907
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10026
	GUILE_LIBS=$pkg_cv_GUILE_LIBS
9908
is in your PATH or set the PKG_CONFIG environment variable to the full
10027
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9909
path to pkg-config.
10028
$as_echo "yes" >&6; }
9910
10029
	have_guile=yes
9911
Alternatively, you may set the environment variables GUILE_CFLAGS
10030
fi
9912
and GUILE_LIBS to avoid the need to call pkg-config.
9913
See the pkg-config man page for more details.
9914
9915
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9916
See \`config.log' for more details" "$LINENO" 5; }
10031
else
9917
else
10032
	GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9918
	GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
10033
	GUILE_LIBS=$pkg_cv_GUILE_LIBS
9919
	GUILE_LIBS=$pkg_cv_GUILE_LIBS
10034
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9920
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10035
$as_echo "yes" >&6; }
9921
$as_echo "yes" >&6; }
10036
	have_guile=yes
10037
fi
10038
9922
10039
fi
9923
fi
10040
9924
10041
if test "$have_guile" = yes; then :
10042
10043
$as_echo "#define HAVE_GUILE 1" >>confdefs.h
9925
$as_echo "#define HAVE_GUILE 1" >>confdefs.h
10044
9926
9927
  fi
9928
10045
fi
9929
fi
10046
9930
10047
 if test "$have_guile" = yes; then
9931
 if test "$have_guile" = yes; then

Return to bug 650608