]> git.donarmstrong.com Git - lilypond.git/blob - aclocal.m4
patch::: 1.1.53.jbr1
[lilypond.git] / aclocal.m4
1 dnl WARNING WARNING WARNING WARNING
2 dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
3 dnl WARNING WARNING WARNING WARNING
4 dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
5 dnl aclocal.m4   -*-shell-script-*-
6 dnl StepMake subroutines for configure.in
7
8 AC_DEFUN(AC_STEPMAKE_COMPILE, [
9     # -O is necessary to get inlining
10     OPTIMIZE=""
11     CXXFLAGS=${CXXFLAGS:-""}
12     CFLAGS=${CFLAGS:-""}
13     checking_b=yes
14     optimise_b=no
15     profile_b=no
16     debug_b=yes
17
18     AC_ARG_ENABLE(checking,
19     [  enable-checking         set runtime checks (assert calls). Default: on],
20     [checking_b=$enableval] )
21
22     # actually, the default is: tja='-O' to get inlining...
23     # off=''  --jcn
24
25     #actually, that sucks.
26     #  tja looks like a typo.  Default is optimisation off. --hwn
27     
28     AC_ARG_ENABLE(optimise,
29     [  enable-optimise         use maximal speed optimisations. Default: off],
30     [optimise_b=$enableval])
31     
32     AC_ARG_ENABLE(profiling, 
33     [  enable-profiling        compile with gprof support. Default: off],
34     [profile_b=$enableval])
35     
36     AC_ARG_ENABLE(debugging,
37     [  enable-debugging        set debug info. Default: on],
38     [debug_b=$enableval])
39
40     AC_ARG_ENABLE(mingw-prefix,
41     [  enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)],
42     [MINGWPREFIX=$enableval],
43     [MINGWPREFIX=no])
44
45     if test "$printing_b" = no; then
46         # ugh
47         AC_DEFINE(NPRINT)
48         DEFINES="$DEFINES -DNPRINT"
49     fi
50         
51     if test "$checking_b" = no; then
52         # ugh
53         AC_DEFINE(NDEBUG)
54         DEFINES="$DEFINES -DNDEBUG"
55     fi
56
57     if test "$optimise_b" = yes; then
58         OPTIMIZE="-O2 -finline-functions"
59     fi
60
61     if test "$optimise_b" = no; then
62         OPTIMIZE=""
63     fi
64
65     if test $profile_b = yes; then
66         EXTRA_LIBES="-pg"
67         OPTIMIZE="$OPTIMIZE -pg"
68     fi
69
70     if test $debug_b = yes; then        
71         OPTIMIZE="$OPTIMIZE -g"
72     fi
73
74     # however, C++ support in mingw32 v 0.1.4 is still flaky
75     if test x$MINGWPREFIX != xno; then 
76         ICFLAGS="-I$MINGWPREFIX/include"
77         ILDFLAGS="-$MINGWPREFIX/lib"
78     fi
79
80     AC_PROG_CC
81     LD='$(CC)'
82     AC_SUBST(LD)
83
84     CFLAGS="$CFLAGS $OPTIMIZE"
85     CPPFLAGS=${CPPFLAGS:-""}
86     AC_SUBST(CFLAGS)
87     AC_SUBST(CPPFLAGS)
88     AC_SUBST(LDFLAGS)
89     AC_SUBST(ICFLAGS)
90     AC_SUBST(ILDFLAGS)
91     AC_SUBST(DEFINES)
92     AC_SUBST(EXTRA_LIBES)
93 ])
94
95 AC_DEFUN(AC_STEPMAKE_CXX, [
96     AC_LANG_CPLUSPLUS
97     AC_PROG_CXX
98
99     AC_CHECK_HEADER(FlexLexer.h, true,
100         AC_STEPMAKE_WARN(can"\'"t find flex header. Please install Flex headers correctly))
101
102     CPPFLAGS="$CPPFLAGS $DEFINES"
103     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
104     LDFLAGS=$EXTRA_LIBES
105
106     AC_SUBST(CXXFLAGS)
107     AC_SUBST(CXX)
108     LD='$(CXX)'
109     AC_SUBST(LD)
110 ])
111
112 AC_DEFUN(AC_STEPMAKE_CXXTEMPLATE, [
113     AC_CACHE_CHECK([whether explicit instantiation is needed],
114         lily_cv_need_explicit_instantiation,
115         AC_TRY_LINK([
116     template <class T> struct foo { static int baz; };
117     template <class T> int foo<T>::baz = 1;
118     ], [ return foo<int>::baz; ],
119             lily_cv_need_explicit_instantiation=no,
120             lily_cv_need_explicit_instantiation=yes))
121     if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
122         AC_DEFINE(NEED_EXPLICIT_INSTANTIATION)
123     fi
124 ])
125
126 AC_DEFUN(AC_STEPMAKE_DATADIR, [
127     if test "$datadir" = "\${prefix}/share"; then
128             datadir='${prefix}/share/'$package
129     fi
130     DIR_DATADIR=${datadir}
131     presome=${prefix}
132     if test "$prefix" = "NONE"; then
133             presome=${ac_default_prefix}
134     fi
135     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
136     AC_SUBST(datadir)
137     AC_SUBST(DIR_DATADIR)
138     AC_DEFINE_UNQUOTED(DIR_DATADIR, "${DIR_DATADIR}")
139 ])
140
141 AC_DEFUN(AC_STEPMAKE_END, [
142     AC_OUTPUT($CONFIGFILE.make:config.make.in)
143
144     rm -f GNUmakefile
145     cp make/toplevel.make.in ./GNUmakefile
146     chmod 444 GNUmakefile
147 ])
148
149 AC_DEFUN(AC_STEPMAKE_GXX, [
150     # ugh autoconf
151     # urg, egcs: how to check for egcs >= 1.1?
152     changequote(<<, >>)dnl
153     if $CXX --version | grep '2\.8' > /dev/null ||
154         $CXX --version | grep 'egcs' > /dev/null
155     changequote([, ])dnl
156     then
157             true
158     else
159             AC_STEPMAKE_WARN(can\'t find g++ 2.8 or egcs 1.1)
160     fi
161 ])
162
163 AC_DEFUN(AC_STEPMAKE_GUILE, [
164     # on some systems, -lguile succeeds for guile-1.3
165     # others need readline, dl (or even more)
166     # urg, must check for different functions in libguile
167     # to force new check iso reading from cache
168
169     # gh_scm2doubles,gh_doubles2scm are new in 1.3
170     GUILE_FLAGS
171     AC_CHECK_LIB(guile, gh_scm2doubles,
172       [LIBS="`echo $GUILE_LDFLAGS | sed -e 's/-L[[/-_a-zA-Z0-9]]\+ //g'` $LIBS"
173       AC_DEFINE(HAVE_LIBGUILE)], , $GUILE_LDFLAGS dnl
174     )
175     if test "$ac_cv_lib_guile_gh_scm2doubles" != yes ; then
176         AC_STEPMAKE_WARN(You should install guile 1.3 or newer)
177     fi
178 ])
179
180 AC_DEFUN(AC_STEPMAKE_INIT, [
181
182     . $srcdir/VERSION
183     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
184     if test x$MY_PATCH_LEVEL != x; then
185         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
186     fi
187
188     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
189     changequote(<<, >>)dnl
190     PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
191     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
192     changequote([, ])dnl
193
194     # No versioning on directory names of sub-packages 
195     # urg, urg
196     stepmake=${datadir}/stepmake
197     presome=${prefix}
198     if test "$prefix" = "NONE"; then
199             presome=${ac_default_prefix}
200     fi
201     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
202
203     AC_MSG_CHECKING(Package)
204     if test "x$PACKAGE" = "xSTEPMAKE"; then
205         AC_MSG_RESULT(Stepmake package!)
206         (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
207         (cd stepmake; rm -f bin; ln -s ../bin .)
208         AC_CONFIG_AUX_DIR(bin)
209         stepmake=stepmake
210     else
211         AC_MSG_RESULT($PACKAGE)
212         AC_MSG_CHECKING(for stepmake)
213         # Check for installed stepmake
214         if test -d $stepmake; then
215             AC_MSG_RESULT($stepmake)
216         else
217             stepmake='$(depth)'/stepmake
218             AC_MSG_RESULT(./stepmake  ($datadir/stepmake not found))
219         fi
220         AC_CONFIG_AUX_DIR(\
221           $HOME/usr/local/share/stepmake/bin\
222           $HOME/usr/local/lib/stepmake/bin\
223           $HOME/usr/share/stepmake/bin\
224           $HOME/usr/lib/stepmake/bin\
225           /usr/local/share/stepmake/bin\
226           /usr/local/lib/stepmake/bin\
227           /usr/share/stepmake/bin\
228           /usr/lib/stepmake/bin\
229           stepmake/bin\
230         )
231     fi
232
233     AC_SUBST(stepmake)
234     AC_SUBST(package)
235     AC_SUBST(PACKAGE)
236     AC_SUBST(PACKAGE_NAME)
237     AC_DEFINE_UNQUOTED(PACKAGE, "${PACKAGE_NAME}")
238     AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
239
240     if test "$package_depth" = "" ; then
241         package_depth="."
242     else
243         package_depth="../$package_depth"
244     fi
245     export package_depth
246     AC_SUBST(package_depth)
247
248     AUTOGENERATE="This file was automatically generated by configure"
249     AC_SUBST(AUTOGENERATE)
250     absolute_builddir="`pwd`"
251     AC_SUBST(absolute_builddir)
252
253     STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
254     if test "x$STATE_VECTOR" != "x"; then
255         STATE_VECTOR="\$(depth)/$STATE_VECTOR"
256     fi
257     AC_SUBST(STATE_VECTOR)
258
259     CONFIGSUFFIX=
260     AC_ARG_ENABLE(config,
261     [  enable-config=FILE      put configure settings in config-FILE.make],
262     [CONFIGSUFFIX=$enableval])
263
264     if test "$CONFIGSUFFIX" != "" ; then
265         CONFIGFILE=config-$CONFIGSUFFIX
266     else
267         CONFIGFILE=config
268     fi
269     AC_SUBST(CONFIGSUFFIX)
270      
271     AC_CANONICAL_HOST
272     AC_CHECK_PROGS(MAKE, gmake make, error)
273     AC_CHECK_PROGS(FIND, find, error)
274
275 dnl system supplied INSTALL is unsafe; use our own install.
276 dnl    AC_PROG_INSTALL
277 dnl    if test "$INSTALL" = "bin/install-sh"; then
278 dnl     export INSTALL="\$\(depth\)/bin/install-sh"
279 dnl    fi
280
281     AC_CHECK_PROGS(TAR, tar, error)
282
283     if test "x`uname`" = "xHP-UX"; then
284         AC_PATH_PROG(BASH, bash, /bin/sh)
285         AC_STEPMAKE_WARN(avoiding buggy /bin/sh)
286         AC_PATH_PROG(SHELL, bash, /bin/ksh)
287     else
288         AC_PATH_PROG(BASH, bash, /bin/sh)
289         SHELL=/bin/sh
290         AC_SUBST(SHELL)
291     fi
292
293
294     AC_PATH_PROG(PYTHON, ${PYTHON:-python}, -echo no python)
295     AC_SUBST(PYTHON)
296
297     if test $MAKE != "error" ; then
298         $MAKE -v 2> /dev/null | grep GNU > /dev/null
299         if test "$?" = 1
300         then
301                 AC_STEPMAKE_WARN(Please install *GNU* make) 
302         fi
303     fi 
304
305     AC_CHECK_SEARCH_RESULT($PYTHON, python, You should install Python)
306
307     if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
308         LN=cp # hard link does not work under cygnus-nt
309         LN_S='cp -r' # symbolic link does not work for native nt
310         ZIP="zip -r -9" #
311         DOTEXE=.exe
312         # urg
313         # DIRSEP='\\'
314         # PATHSEP=';'
315         #
316         # cygwin fixes all these things.  
317         # it seems these were used because of dos-style TEXINPUTS and
318         # MFINPUTS needed for miktex.
319         # but this breaks parsing of all other cygwin/unix style paths.
320         #
321         # if your (mik)tex breaks, make a:
322         #    /usr/local/bin/tex:
323         #    #!/bin/sh
324         #    TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex $*
325         #
326         # and
327         #
328         #    /usr/local/bin/mf:
329         #    #!/bin/sh
330         #    MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf $*
331         #
332         # this way, you may have buildscripts/out/lilypond-profile 
333         # 'automatically' sourced from /usr/etc/profile.d/ too.
334         #
335         DIRSEP='/'
336         PATHSEP=':'
337         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
338     else
339         DIRSEP='/'
340         PATHSEP=':'
341         LN=ln
342         LN_S='ln -s'
343         ZIP="zip -r -9"
344         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
345     fi
346     AC_SUBST(DOTEXE)
347     AC_SUBST(ZIP)
348     AC_SUBST(LN)
349     AC_SUBST(LN_S)
350     AC_SUBST(INSTALL)
351     AC_DEFINE_UNQUOTED(DIRSEP, '${DIRSEP}')
352     AC_DEFINE_UNQUOTED(PATHSEP, '${PATHSEP}')
353     AC_SUBST(PATHSEP)
354     AC_SUBST(DIRSEP)
355   
356    
357     AC_STEPMAKE_DATADIR
358 ])
359
360 AC_DEFUN(AC_STEPMAKE_LEXYACC, [
361     # ugh, automake: we want (and check for) bison
362     AC_PROG_YACC
363     # ugh, automake: we want (and check for) flex
364     # AC_PROG_LEX
365     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
366
367     # AC_DECL_YYTEXT
368     # ugh, ugh
369     ac_cv_prog_lex_root=lex.yy
370
371     AC_CHECK_PROGS(BISON, bison, error)
372     AC_CHECK_PROGS(FLEX, flex, error)
373     AC_CHECK_SEARCH_RESULT($BISON, bison,  Please install Bison, 1.25 or newer)
374     AC_CHECK_SEARCH_RESULT($FLEX,  flex, Please install Flex, 2.5 or newer)
375
376     if test $BISON != "error"; then
377         bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
378         if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
379             AC_STEPMAKE_WARN(Your bison is a bit old (1.$bison_version). You might have to install 1.25)
380         fi      
381     fi
382
383     AC_SUBST(BISON)
384     AC_SUBST(FLEX)
385 ])
386
387 AC_DEFUN(AC_STEPMAKE_LIB, [
388     AC_CHECK_PROGS(AR, ar, error)
389     AC_PROG_RANLIB
390
391     AC_SUBST(AR)
392     AC_SUBST(RANLIB)
393 ])
394
395 AC_DEFUN(AC_STEPMAKE_LIBTOOL, [
396     # libtool.info ...
397     # **Never** try to set library version numbers so that they correspond
398     # to the release number of your package.  This is an abuse that only
399     # fosters misunderstanding of the purpose of library versions.
400
401     REVISION=$PATCH_LEVEL
402     # CURRENT=$MINOR_VERSION
403     CURRENT=`expr $MINOR_VERSION + 1`
404     # AGE=$(expr $MAJOR_VERSION + 1)
405     AGE=$MAJOR_VERSION
406     AC_SUBST(CURRENT)
407     AC_SUBST(REVISION)
408     AC_SUBST(AGE)
409 ])
410
411 AC_DEFUN(AC_STEPMAKE_LOCALE, [
412     lang=English
413     ALL_LINGUAS="en nl"
414
415     # with/enable ??
416     AC_ARG_WITH(localedir,
417     [  with-localedir=LOCALE   use LOCALE as locale dir. Default: PREFIX/share/locale ],
418     localedir=$with_localedir,
419     localedir='${prefix}/share/locale')
420
421     AC_ARG_WITH(lang,
422     [  with-lang=LANG          use LANG as language to emit messages],
423     language=$with_lang,
424     language=English)
425
426     AC_MSG_CHECKING(language)    
427     case "$language" in
428       En* | en* | Am* | am* | US* | us*)
429             lang=English;;
430       NL | nl | Du* | du* | Ned* | ned*)
431             lang=Dutch;;
432       "")
433             lang=English;;
434       *)
435             lang=unknown;;
436     esac
437     AC_MSG_RESULT($lang)
438
439     if test "$lang" = "unknown" ; then
440         AC_STEPMAKE_WARN($language not supported; available are: $ALL_LINGUAS)
441     fi
442
443 ])
444
445 AC_DEFUN(AC_STEPMAKE_GETTEXT, [
446     DIR_LOCALEDIR=${localedir}
447     presome=${prefix}
448     if test "$prefix" = "NONE"; then
449             presome=${ac_default_prefix}
450     fi
451     DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
452     AC_SUBST(localedir)
453     AC_SUBST(DIR_LOCALEDIR)
454     AC_DEFINE_UNQUOTED(DIR_LOCALEDIR, "${DIR_LOCALEDIR}")
455
456     AC_CHECK_LIB(intl, gettext)
457     AC_CHECK_FUNCS(gettext)
458 ])
459
460 AC_DEFUN(AC_STEPMAKE_MAN, [
461     AC_CHECK_PROGS(GROFF, groff ditroff, -echo no groff)
462     AC_CHECK_PROGS(TROFF, troff, -echo no troff)
463     AC_CHECK_PROGS(TBL, tbl, cat)
464 ])
465
466 AC_DEFUN(AC_STEPMAKE_MSGFMT, [
467     # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
468     AC_CHECK_PROGS(MSGFMT, msgfmt, \$(SHELL) \$(step-bindir)/fake-msgfmt.sh )
469     AC_MSG_CHECKING(whether msgfmt accepts -o)
470     msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
471     if test "$msgfmt_output" = ""; then
472         AC_MSG_RESULT(yes)
473     else
474         # urg
475         MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
476         AC_MSG_RESULT(no)
477         AC_STEPMAKE_WARN(please install msgfmt from GNU gettext)
478     fi
479     if test ! -n "$MSGFMT"; then
480         AC_STEPMAKE_WARN(please install msgfmt from GNU gettext)
481     fi
482 ])
483
484 #why has this been dropped?
485 AC_DEFUN(XXAC_STEPMAKE_TEXMF_DIRS, [
486     AC_ARG_ENABLE(tex-prefix,
487     [  enable-tex-prefix=DIR   set the tex-directory to find TeX subdirectories. (default: PREFIX)],
488     [TEXPREFIX=$enableval],
489     [TEXPREFIX=auto] )
490     
491     AC_ARG_ENABLE(tex-dir,
492     [  enable-tex-dir=DIR      set the directory to put $PACKAGE_NAME TeX files in. ],
493     [TEXDIR=$enableval],
494     [TEXDIR=auto] )
495
496     AC_ARG_ENABLE(mf-dir,
497     [  enable-mf-dir=DIR       set the directory to put $PACKAGE_NAME MetaFont files in. ],
498     [MFDIR=$enableval],
499     [MFDIR=auto])
500
501     if test "x$TEXPREFIX" = xauto ; then
502         AC_TEX_PREFIX(TEXPREFIX)
503     else
504      find_texprefix=$TEXPREFIX
505     fi
506
507     if test "x$MFDIR" = xauto; then
508         AC_MF_SUBDIR(MFDIR)
509     fi
510         
511     if test "x$TEXDIR" = xauto ; then
512         AC_TEX_SUBDIR(TEXDIR)
513     fi
514     AC_SUBST(TEXPREFIX)
515     AC_SUBST(TEXDIR)
516     AC_SUBST(MFDIR)
517 ])
518
519 AC_DEFUN(AC_STEPMAKE_TEXMF_DIRS, [
520     AC_ARG_ENABLE(tex-tfmdir,
521     [  enable-tex-tfmdir=DIR   set the tex-directory where cmr10.tfm lives (default: use kpsewhich)],
522     [TFMDIR=$enableval],
523     [TFMDIR=auto] )
524
525     AC_CHECK_PROGS(KPSEWHICH, kpsewhich, no)
526     AC_MSG_CHECKING(for TeX TFM directory)
527     if test "x$TFMDIR" = xauto ; then
528         if test "x$TEX_TFMDIR" = "x" ; then
529             if test "x$KPSEWHICH" != "xno" ; then
530                 CMR10=`kpsewhich tfm cmr10.tfm`
531                 TEX_TFMDIR=`dirname $CMR10`
532             else
533                 AC_STEPMAKE_WARN(Please set TEX_TFMDIR (to where cmr10.tfm lives):
534         TEX_TFMDIR=/usr/local/TeX/lib/tex/fonts ./configure)
535             fi
536         fi
537     fi
538     AC_MSG_RESULT($TEX_TFMDIR)
539     AC_SUBST(TEX_TFMDIR)
540 ])
541
542 AC_DEFUN(AC_STEPMAKE_TEXMF, [
543     # urg, never know what names these teTeX guys will think up
544
545     AC_CHECK_PROGS(METAFONT, mf, no)
546     if test "x$METAFONT" = "xno"; then
547         AC_CHECK_PROGS(MFONT, mfont, -echo no mf or mfont)
548         METAFONT=$MFONT
549     fi
550
551     AC_CHECK_PROGS(METAPOST, mp, no)
552     if test "x$METAPOST" = "xno"; then
553         AC_CHECK_PROGS(MPOST, mpost, -echo no mp or mpost)
554
555         METAPOST=$MPOST
556     fi
557
558     AC_CHECK_PROGS(INIMETAFONT, inimf, no)
559     if test "x$INIMETAFONT" = "xno"; then
560         AC_CHECK_PROGS(INIMFONT, inimfont, -echo no inimf or inimfont)
561         INIMETAFONT=$INIMFONT
562     fi
563
564     AC_CHECK_PROGS(INIMETAPOST, inimp, no)
565     if test "x$INIMETAPOST" = "xno"; then
566         AC_CHECK_PROGS(INIMPOST, inimpost, -echo no inimp or inimpost)
567         INIMETAPOST=$INIMPOST
568     fi
569
570     AC_MSG_CHECKING(for working metafont mode)
571     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
572     for MFMODE in $modelist; do
573         $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
574         if test -f mfput.tfm; then
575             break;
576         fi
577     done
578     rm -f mfput.*
579     AC_MSG_RESULT($MFMODE)
580
581     AC_SUBST(METAFONT)
582     AC_SUBST(METAPOST)
583     AC_SUBST(MFMODE)
584     AC_SUBST(INIMETAFONT)
585     AC_SUBST(INIMETAPOST)
586 ])
587
588 AC_DEFUN(AC_STEPMAKE_WARN, [
589     AC_MSG_WARN($1)
590     warn_b=yes
591 ])
592
593 AC_DEFUN(AC_STEPMAKE_YODL, [
594     if test "x$YODL" = "x"; then 
595         AC_CHECK_PROGS(STRIPROFF, striproff, -echo no striproff)
596         AC_CHECK_PROGS(YODL, yodl, -echo no yodl)
597         AC_CHECK_PROGS(YODL2HTML, yodl2html, -echo no yodl)
598         AC_CHECK_PROGS(YODL2LATEX, yodl2latex, )
599         AC_CHECK_PROGS(YODL2MAN, yodl2man, -echo no yodl)
600         AC_CHECK_PROGS(YODL2MSLESS, yodl2msless, -echo no yodl)
601         AC_CHECK_PROGS(YODL2TEXINFO, yodl2texinfo, -echo no yodl)
602         AC_CHECK_PROGS(YODL2TXT, yodl2txt, -echo no yodl)
603         YODL2LESS_DIR='$(bindir)/'
604     else
605         AC_SUBST(STRIPROFF)
606         AC_SUBST(YODL)
607         AC_SUBST(YODL2HTML)
608         AC_SUBST(YODL2LATEX)
609         AC_SUBST(YODL2LESS_DIR)
610         AC_SUBST(YODL2MAN)
611         AC_SUBST(YODL2MSLESS)
612         AC_SUBST(YODL2TEXINFO)
613         AC_SUBST(YODL2TXT)
614         export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
615     fi
616     if test "x$YODL" = "-echo no yodl"; then
617         AC_STEPMAKE_WARN(Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl))
618     fi    
619 ])
620
621 dnl should cache result.
622 dnl should  look in $prefix first.
623 dnl should probably assume TDS
624
625 AC_DEFUN(AC_TEX_PREFIX, [
626     
627
628     AC_MSG_CHECKING(TeX/MF root dir directory)    
629
630     find_root_prefix="$prefix"
631     
632
633     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
634     find_texpostfix="";
635     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
636         find_texprefix="$find_root_prefix$postfix"
637         if test -d $find_texprefix; then
638             find_texpostfix=$postfix
639             break;
640         fi
641     done
642     
643     if test "x$find_texpostfix" = x; then
644         find_texpostfix='/lib/texmf/tex'
645         AC_STEPMAKE_WARN(Cannot determine the TeX-directory. Please use --enable-tex-prefix)
646     fi
647
648     find_texprefix="$find_root_prefix/$find_texpostfix"
649
650     # only assign if variablename not empty
651     if test x != "x[$]$1"; then
652         $1='${prefix}'/"$find_texpostfix"
653     fi
654     AC_MSG_RESULT($find_texprefix)
655
656 ])
657  
658
659 # find a directory inside a prefix, 
660 # $1 the prefix (expanded version)
661 # $2 variable to assign
662 # $3 the directory name 
663 # $4 description
664 AC_DEFUN(AC_FIND_DIR_IN_PREFIX, [
665     
666     AC_MSG_CHECKING($4 directory)    
667     find_dirdir=`(cd $1; 
668       $FIND ./ -type d -a -name $3 -print |sort|head -1|sed 's#^\./##')`
669     
670
671     if test "x$find_dirdir" = x; then
672        find_dirdir="/$3";
673        AC_STEPMAKE_WARN(Cannot determine $4 subdirectory. Please set from command-line)
674         true
675     fi
676     $2=$find_dirdir
677     AC_MSG_RESULT($1/$find_dirdir)
678 ])
679
680 # ugh.  this is hopeless
681 AC_DEFUN(AC_KPSE_TEX_DIR, [
682         kpse_paths=`(kpsepath -n latex tex; kpsepath -n tex tex) | sed 's/:/ /g' | tr ' ' '\012' |sort | uniq -d`
683         kpse_syspaths=`echo $kpse_paths | grep '!'| sed 's/!//g'`
684         echo $kpse_paths
685         if test -w "$kpse_syspaths";
686         then
687                 dir=`echo $kpse_syspaths | head -1`
688         else
689                 dir=`echo $kpse_paths | grep -v '!'| head -1`
690         fi
691         if test "$prefix" = "NONE"; then
692                 local_prefix=$ac_default_prefix
693                 local_prefix_quote='${prefix}'
694
695         else
696                 local_prefix=$prefix
697                 local_prefix_quote=$prefix
698         fi
699         echo $local_prefix_quote = $local_prefix
700         echo $dir
701         echo $dir  | sed 's!'$local_prefix'!\$local_prefix_quote!g'
702 ])
703
704 AC_DEFUN(AC_TEX_SUBDIR, [
705 dnl    AC_REQUIRE([AC_TEX_PREFIX])
706     AC_FIND_DIR_IN_PREFIX($find_texprefix, $1, tex,TeX input)
707     $1="$TEXPREFIX/$$1"
708 ])
709
710 AC_DEFUN(AC_MF_SUBDIR, [
711 dnl     AC_REQUIRE([AC_TEX_PREFIX])
712     AC_FIND_DIR_IN_PREFIX($find_texprefix, $1, source, MF input)
713     $1="$TEXPREFIX/$$1"
714 ])
715
716 AC_DEFUN(AC_CHECK_SEARCH_RESULT, [
717         result="`echo \"$1\" | grep echo`"
718         if test "x$1" = "xerror" -o "x$result" != "x"; then
719                 AC_STEPMAKE_WARN(can\'t find $2. $3)
720         fi
721 ])
722
723 dnl   GUILE_FLAGS --- set flags for compiling and linking with Guile
724 dnl
725 dnl   This macro runs the `guile-config' script, installed with Guile,
726 dnl   to find out where Guile's header files and libraries are
727 dnl   installed.  It sets two variables, marked for substitution, as
728 dnl   by AC_SUBST.
729 dnl   
730 dnl     GUILE_CFLAGS --- flags to pass to a C or C++ compiler to build
731 dnl             code that uses Guile header files.  This is almost
732 dnl             always just a -I flag.
733 dnl   
734 dnl     GUILE_LDFLAGS --- flags to pass to the linker to link a
735 dnl             program against Guile.  This includes `-lguile' for
736 dnl             the Guile library itself, any libraries that Guile
737 dnl             itself requires (like -lqthreads), and so on.  It may
738 dnl             also include a -L flag to tell the compiler where to
739 dnl             find the libraries.
740
741 AC_DEFUN([GUILE_FLAGS],[
742 ## The GUILE_FLAGS macro.
743   ## First, let's just see if we can find Guile at all.
744   AC_MSG_CHECKING(for Guile)
745   guile-config link > /dev/null || {
746     echo "configure: cannot find guile-config; is Guile installed?" 1>&2
747     exit 1
748   }
749   GUILE_CFLAGS="`guile-config compile`"
750   GUILE_LDFLAGS="`guile-config link`"
751   AC_SUBST(GUILE_CFLAGS)
752   AC_SUBST(GUILE_LDFLAGS)
753   AC_MSG_RESULT(yes)
754 ])
755
756
757 # Configure paths for GTK+
758 # Owen Taylor     97-11-3
759
760 dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
761 dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
762 dnl
763 AC_DEFUN(AM_PATH_GTK,
764 [dnl 
765 dnl Get the cflags and libraries from the gtk-config script
766 dnl
767   AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
768   min_gtk_version=ifelse([$1], ,1.1.1,$1)
769   AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
770   no_gtk=""
771   if test "$GTK_CONFIG" != "no" ; then
772     GTK_CFLAGS=`$GTK_CONFIG --cflags`
773     GTK_LIBS=`$GTK_CONFIG --libs`
774     ac_save_CFLAGS="$CFLAGS"
775     ac_save_LIBS="$LIBS"
776     ac_save_CXXFLAGS="$CXXFLAGS"
777     CFLAGS="$CFLAGS $GTK_CFLAGS"
778     CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
779     LIBS="$LIBS $GTK_LIBS"
780 dnl
781 dnl Now check if the installed GTK is sufficiently new. (Also sanity
782 dnl checks the results of gtk-config to some extent)
783 dnl
784     AC_TRY_RUN([
785 #include <gtk/gtk.h>
786 #include <stdio.h>
787
788 int 
789 main ()
790 {
791   int major, minor, micro;
792
793   if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
794      printf("%s, bad version string\n", "$min_gtk_version");
795      exit(1);
796    }
797
798    return !((gtk_major_version > major) ||
799             ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
800             ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
801 }
802 ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
803      CFLAGS="$ac_save_CFLAGS"
804      CXXFLAGS="$ac_save_CXXFLAGS"
805      LIBS="$ac_save_LIBS"
806   else
807      no_gtk=yes
808   fi
809   if test "x$no_gtk" = x ; then
810      AC_MSG_RESULT(yes)
811      ifelse([$2], , :, [$2])     
812   else
813      AC_MSG_RESULT(no)
814      GTK_CFLAGS=""
815      GTK_LIBS=""
816      ifelse([$3], , :, [$3])
817   fi
818   CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
819   AC_SUBST(CXXFLAGS)
820   AC_SUBST(GTK_CFLAGS)
821   AC_SUBST(GTK_LIBS)
822 ])
823
824
825 # Configure paths for GTK--
826 # Erik Andersen 30 May 1998
827 # Modified by Tero Pulkkinen (added the compiler checks... I hope they work..)
828
829 dnl Test for GTK__, and define GTK___CFLAGS and GTK___LIBS
830 dnl   to be used as follows:
831 dnl AM_PATH_GTKMM([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
832 dnl
833
834 dnl Get the cflags and libraries from the gtkmm-config script
835 dnl
836 AC_ARG_WITH(gtkmm-prefix,[  --with-gtkmm-prefix=PREFIX
837                           Prefix where GTK-- is installed (optional)],
838             gtkmm_config_prefix="$withval", gtkmm_config_prefix="")
839 AC_ARG_WITH(gtkmm-exec-prefix,[  --with-gtkmm-exec-prefix=PREFIX
840                           Exec prefix where GTK-- is installed (optional)],
841             gtkmm_config_exec_prefix="$withval", gtkmm_config_exec_prefix="")
842 AC_ARG_ENABLE(gtkmmtest, [  --disable-gtkmmtest     Do not try to compile and run a test GTK-- program],
843                     , enable_gtkmmtest=yes)
844
845   if test x$gtkmm_config_exec_prefix != x ; then
846      gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix"
847      if test x${GTKMM_CONFIG+set} != xset ; then
848         GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config
849      fi
850   fi
851   if test x$gtkmm_config_prefix != x ; then
852      gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix"
853      if test x${GTKMM_CONFIG+set} != xset ; then
854         GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config
855      fi
856   fi
857
858
859 AC_DEFUN(AM_PATH_GTKMM,
860 [dnl 
861
862 dnl
863 dnl Check if the installed GTK-- is sufficiently new.
864 dnl
865   AC_PATH_PROG(GTKMM_CONFIG, gtkmm-config, no)
866   min_gtkmm_version=ifelse([$1], ,0.9.14,$1)
867
868   AC_MSG_CHECKING(for GTK-- - version >= $min_gtkmm_version)
869   no_gtkmm=""
870   if test "$GTKMM_CONFIG" = "no" ; then
871     no_gtkmm=yes
872   else
873     AC_LANG_SAVE
874     AC_LANG_CPLUSPLUS
875
876     GTK___CFLAGS=`$GTKMM_CONFIG $gtkmm_config_args --cflags`
877     GTK___LIBS=`$GTKMM_CONFIG $gtkmm_config_args --libs`
878     gtkmm_config_major_version=`$GTKMM_CONFIG $gtkmm_config_args --version | \
879            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
880     gtkmm_config_minor_version=`$GTKMM_CONFIG $gtkmm_config_args --version | \
881            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
882     gtkmm_config_micro_version=`$GTKMM_CONFIG $gtkmm_config_args --version | \
883            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
884     if test "x$enable_gtkmmtest" = "xyes" ; then
885       ac_save_CXXFLAGS="$CXXFLAGS"
886       ac_save_LIBS="$LIBS"
887       CXXFLAGS="$CXXFLAGS $GTK___CFLAGS"
888       LIBS="$LIBS $GTK___LIBS"
889 dnl
890 dnl Now check if the installed GTK-- is sufficiently new. (Also sanity
891 dnl checks the results of gtkmm-config to some extent
892 dnl
893       rm -f conf.gtkmmtest
894       AC_TRY_RUN([
895 #include <gtk--.h>
896 #include <stdio.h>
897 #include <stdlib.h>
898
899 int 
900 main ()
901 {
902   int major, minor, micro;
903   char *tmp_version;
904
905   system ("touch conf.gtkmmtest");
906
907   /* HP/UX 0 (%@#!) writes to sscanf strings */
908   tmp_version = g_strdup("$min_gtkmm_version");
909   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
910      printf("%s, bad version string\n", "$min_gtkmm_version");
911      exit(1);
912    }
913
914   if ((gtkmm_major_version != $gtkmm_config_major_version) ||
915       (gtkmm_minor_version != $gtkmm_config_minor_version) ||
916       (gtkmm_micro_version != $gtkmm_config_micro_version))
917     {
918       printf("\n*** 'gtkmm-config --version' returned %d.%d.%d, but GTK-- (%d.%d.%d)\n", 
919              $gtkmm_config_major_version, $gtkmm_config_minor_version, $gtkmm_config_micro_version,
920              gtkmm_major_version, gtkmm_minor_version, gtkmm_micro_version);
921       printf ("*** was found! If gtkmm-config was correct, then it is best\n");
922       printf ("*** to remove the old version of GTK--. You may also be able to fix the error\n");
923       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
924       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
925       printf("*** required on your system.\n");
926       printf("*** If gtkmm-config was wrong, set the environment variable GTKMM_CONFIG\n");
927       printf("*** to point to the correct copy of gtkmm-config, and remove the file config.cache\n");
928       printf("*** before re-running configure\n");
929     } 
930 /* GTK-- does not have the GTKMM_*_VERSION constants */
931 /* 
932   else if ((gtkmm_major_version != GTKMM_MAJOR_VERSION) ||
933            (gtkmm_minor_version != GTKMM_MINOR_VERSION) ||
934            (gtkmm_micro_version != GTKMM_MICRO_VERSION))
935     {
936       printf("*** GTK-- header files (version %d.%d.%d) do not match\n",
937              GTKMM_MAJOR_VERSION, GTKMM_MINOR_VERSION, GTKMM_MICRO_VERSION);
938       printf("*** library (version %d.%d.%d)\n",
939              gtkmm_major_version, gtkmm_minor_version, gtkmm_micro_version);
940     }
941 */
942   else
943     {
944       if ((gtkmm_major_version > major) ||
945         ((gtkmm_major_version == major) && (gtkmm_minor_version > minor)) ||
946         ((gtkmm_major_version == major) && (gtkmm_minor_version == minor) && (gtkmm_micro_version >= micro)))
947       {
948         return 0;
949        }
950      else
951       {
952         printf("\n*** An old version of GTK-- (%d.%d.%d) was found.\n",
953                gtkmm_major_version, gtkmm_minor_version, gtkmm_micro_version);
954         printf("*** You need a version of GTK-- newer than %d.%d.%d. The latest version of\n",
955                major, minor, micro);
956         printf("*** GTK-- is always available from ftp://ftp.gtk.org.\n");
957         printf("***\n");
958         printf("*** If you have already installed a sufficiently new version, this error\n");
959         printf("*** probably means that the wrong copy of the gtkmm-config shell script is\n");
960         printf("*** being found. The easiest way to fix this is to remove the old version\n");
961         printf("*** of GTK--, but you can also set the GTKMM_CONFIG environment to point to the\n");
962         printf("*** correct copy of gtkmm-config. (In this case, you will have to\n");
963         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
964         printf("*** so that the correct libraries are found at run-time))\n");
965       }
966     }
967   return 1;
968 }
969 ],, no_gtkmm=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
970        CXXFLAGS="$ac_save_CXXFLAGS"
971        LIBS="$ac_save_LIBS"
972      fi
973   fi
974   if test "x$no_gtkmm" = x ; then
975      AC_MSG_RESULT(yes)
976      ifelse([$2], , :, [$2])     
977   else
978      AC_MSG_RESULT(no)
979      if test "$GTKMM_CONFIG" = "no" ; then
980        echo "*** The gtkmm-config script installed by GTK-- could not be found"
981        echo "*** If GTK-- was installed in PREFIX, make sure PREFIX/bin is in"
982        echo "*** your path, or set the GTK_CONFIG environment variable to the"
983        echo "*** full path to gtk-config."
984        echo "*** The gtkmm-config script was not available in GTK-- versions"
985        echo "*** prior to 0.9.12. Perhaps you need to update your installed"
986        echo "*** version to 0.9.12 or newer"
987      else
988        if test -f conf.gtkmmtest ; then
989         :
990        else
991           echo "*** Could not run GTK-- test program, checking why..."
992           CXXFLAGS="$CFLAGS $GTKMM_CXXFLAGS"
993           LIBS="$LIBS $GTK___LIBS"
994           AC_TRY_LINK([
995 #include <gtk--.h>
996 #include <stdio.h>
997 ],      [ return ((gtkmm_major_version) || (gtkmm_minor_version) || (gtkmm_micro_version)); ],
998         [ echo "*** The test program compiled, but did not run. This usually means"
999           echo "*** that the run-time linker is not finding GTK-- or finding the wrong"
1000           echo "*** version of GTK--. If it is not finding GTK--, you'll need to set your"
1001           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1002           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
1003           echo "*** is required on your system"
1004           echo "***"
1005           echo "*** If you have an old version installed, it is best to remove it, although"
1006           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
1007         [ echo "*** The test program failed to compile or link. See the file config.log for the"
1008           echo "*** exact error that occured. This usually means GTK-- was incorrectly installed"
1009           echo "*** or that you have moved GTK-- since it was installed. In the latter case, you"
1010           echo "*** may want to edit the gtkmm-config script: $GTKMM_CONFIG" ])
1011           CXXFLAGS="$ac_save_CXXFLAGS"
1012           LIBS="$ac_save_LIBS"
1013        fi
1014      fi
1015      GTK___CFLAGS=""
1016      GTK__LIBS=""
1017      ifelse([$3], , :, [$3])
1018      AC_LANG_RESTORE
1019   fi
1020   AC_SUBST(GTK___CFLAGS)
1021   AC_SUBST(GTK___LIBS)
1022   rm -f conf.gtkmmtest
1023 ])
1024
1025 # Configure paths for GTK--DRAW
1026 # Derek Quinn Wyatt   98-08-21  (adapted from Jan Nieuwenhuizen's code)
1027
1028 dnl AM_PATH_GTK__DRAW([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
1029 dnl Test for GTK--DRAW, and define GTK___CFLAGS and GTK___LIBS
1030 dnl
1031 AC_DEFUN(AM_PATH_GTK__DRAW,
1032 [dnl 
1033 dnl Get the cflags and libraries from the gtk__-config script
1034 dnl
1035   AC_PATH_PROG(GTKMM_CONFIG, gtkmm-config, no)
1036   min_gtk___version=ifelse([$1], ,0.0.5,$1)
1037   AC_MSG_CHECKING(for GTK--DRAW - version >= $min_gtk___version)
1038   no_gtk__=""
1039   if test "$GTKMM_CONFIG" != "no" ; then
1040     GTK___CFLAGS=`$GTKMM_CONFIG --cflags`
1041     GTK___LIBS=`$GTKMM_CONFIG --libs`
1042     GTK___DLIBS="$GTK___LIBS -lgtkmmdraw"
1043     GTK___LIBS="$GTK___DLIBS"
1044     ac_save_CFLAGS="$CFLAGS"
1045     ac_save_LIBS="$LIBS"
1046     ac_save_CXXFLAGS="$CXXFLAGS"
1047     CFLAGS="$CFLAGS $GTK___CFLAGS"
1048     CXXFLAGS="$CXXFLAGS $GTK___CFLAGS"
1049     LIBS="$LIBS $GTK___LIBS"
1050 dnl
1051 dnl Now check if the installed GTK__ is sufficiently new. (Also sanity
1052 dnl checks the results of gtk__-config to some extent)
1053 dnl
1054     AC_TRY_RUN([
1055 #include <gtk--.h>
1056 #include <stdio.h>
1057
1058 int 
1059 main ()
1060 {
1061   // urg
1062   return 0;
1063 }
1064 ],, no_gtk__=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
1065      CFLAGS="$ac_save_CFLAGS"
1066      CXXFLAGS="$ac_save_CXXFLAGS"
1067      LIBS="$ac_save_LIBS"
1068   else
1069      no_gtk__=yes
1070   fi
1071   if test "x$no_gtk__" = x ; then
1072      AC_MSG_RESULT(yes)
1073      ifelse([$2], , :, [$2])     
1074   else
1075      AC_MSG_RESULT(no)
1076      GTK___CFLAGS=""
1077      GTK___LIBS=""
1078      ifelse([$3], , :, [$3])
1079   fi
1080   CXXFLAGS="$CXXFLAGS $GTK___CFLAGS"
1081   AC_SUBST(CXXFLAGS)
1082   AC_SUBST(GTK___CFLAGS)
1083   AC_SUBST(GTK___LIBS)
1084 ])
1085
1086 dnl   GUILE_FLAGS --- set flags for compiling and linking with Guile
1087 dnl
1088 dnl   This macro runs the `guile-config' script, installed with Guile,
1089 dnl   to find out where Guile's header files and libraries are
1090 dnl   installed.  It sets two variables, marked for substitution, as
1091 dnl   by AC_SUBST.
1092 dnl   
1093 dnl     GUILE_CFLAGS --- flags to pass to a C or C++ compiler to build
1094 dnl             code that uses Guile header files.  This is almost
1095 dnl             always just a -I flag.
1096 dnl   
1097 dnl     GUILE_LDFLAGS --- flags to pass to the linker to link a
1098 dnl             program against Guile.  This includes `-lguile' for
1099 dnl             the Guile library itself, any libraries that Guile
1100 dnl             itself requires (like -lqthreads), and so on.  It may
1101 dnl             also include a -L flag to tell the compiler where to
1102 dnl             find the libraries.
1103
1104 AC_DEFUN([GUILE_FLAGS],[
1105 ## The GUILE_FLAGS macro.
1106   ## First, let's just see if we can find Guile at all.
1107   AC_MSG_CHECKING(for Guile)
1108   guile-config link > /dev/null || {
1109     echo "configure: cannot find guile-config; is Guile installed?" 1>&2
1110     exit 1
1111   }
1112   GUILE_CFLAGS="`guile-config compile`"
1113   GUILE_LDFLAGS="`guile-config link`"
1114   AC_SUBST(GUILE_CFLAGS)
1115   AC_SUBST(GUILE_LDFLAGS)
1116   AC_MSG_RESULT(yes)
1117 ])
1118