LEFT | RIGHT |
(no file at all) | |
1 dnl configure.ac -*-shell-script-*- | 1 dnl configure.ac -*-shell-script-*- |
2 dnl Process this file with autoconf to produce a configure script. | 2 dnl Process this file with autoconf to produce a configure script. |
3 | 3 |
4 AC_PREREQ(2.60) | 4 AC_PREREQ(2.60) |
5 | 5 |
6 # Bootstrap the init process. | 6 # Bootstrap the init process. |
7 AC_INIT | 7 AC_INIT |
8 | 8 |
9 # Bootstrap StepMake configure | 9 # Bootstrap StepMake configure |
10 AC_CONFIG_AUX_DIR([config]) | 10 AC_CONFIG_AUX_DIR([config]) |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 save_CXXFLAGS="$CXXFLAGS" | 206 save_CXXFLAGS="$CXXFLAGS" |
207 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS" | 207 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS" |
208 AC_CHECK_TYPES([scm_t_hash_fold_fn, scm_t_hash_handle_fn], | 208 AC_CHECK_TYPES([scm_t_hash_fold_fn, scm_t_hash_handle_fn], |
209 [AC_DEFINE(HAVE_GUILE_HASH_FUNC)], [], | 209 [AC_DEFINE(HAVE_GUILE_HASH_FUNC)], [], |
210 [#include <libguile.h>]) | 210 [#include <libguile.h>]) |
211 AC_CHECK_TYPES([scm_t_subr], | 211 AC_CHECK_TYPES([scm_t_subr], |
212 [AC_DEFINE(HAVE_GUILE_SUBR_TYPE)], [], | 212 [AC_DEFINE(HAVE_GUILE_SUBR_TYPE)], [], |
213 [#include <libguile.h>]) | 213 [#include <libguile.h>]) |
214 CXXFLAGS="$save_CXXFLAGS" | 214 CXXFLAGS="$save_CXXFLAGS" |
215 | 215 |
| 216 # -Wcast-function-type was added to GCC in version 8. The Guile |
| 217 # interface tends to trigger this warning, so disable it. |
| 218 # g++ -Wno-whatever may compile even when the compiler does not |
| 219 # support the warning, so we have to check for the warning itself. |
| 220 AC_MSG_CHECKING([if $CXX supports -Wcast-function-type]) |
| 221 save_CXXFLAGS="$CXXFLAGS" |
| 222 CXXFLAGS=-Wcast-function-type |
| 223 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
| 224 [AC_MSG_RESULT([yes]) |
| 225 CXXFLAGS="$save_CXXFLAGS -Wno-cast-function-type"], |
| 226 [AC_MSG_RESULT([no]) |
| 227 CXXFLAGS="$save_CXXFLAGS"]) |
| 228 |
216 ## Check for usable cxxabi | 229 ## Check for usable cxxabi |
217 save_LIBS="$LIBS" | 230 save_LIBS="$LIBS" |
218 LIBS="$LIBS $CXXABI_LIBS" | 231 LIBS="$LIBS $CXXABI_LIBS" |
219 AC_MSG_CHECKING(for usable C++ demangler) | 232 AC_MSG_CHECKING(for usable C++ demangler) |
220 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <cxxabi.h>], | 233 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <cxxabi.h>], |
221 [abi::__cxa_demangle ("", 0, 0, 0)])], | 234 [abi::__cxa_demangle ("", 0, 0, 0)])], |
222 [AC_DEFINE(HAVE_CXA_DEMANGLE) | 235 [AC_DEFINE(HAVE_CXA_DEMANGLE) |
223 AC_MSG_RESULT(yes)],[ | 236 AC_MSG_RESULT(yes)],[ |
224 LIBS="$LIBS -lsupc++" | 237 LIBS="$LIBS -lsupc++" |
225 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <cxxabi.h>], | 238 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <cxxabi.h>], |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 405 |
393 Type: | 406 Type: |
394 make$mc all to build LilyPond | 407 make$mc all to build LilyPond |
395 make$mc install to install LilyPond | 408 make$mc install to install LilyPond |
396 make$mc help to see all possible targets | 409 make$mc help to see all possible targets |
397 | 410 |
398 Edit local.make for local Makefile overrides. | 411 Edit local.make for local Makefile overrides. |
399 | 412 |
400 | 413 |
401 EOF | 414 EOF |
LEFT | RIGHT |