OLD | NEW |
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 save_CXXFLAGS="$CXXFLAGS" | 200 save_CXXFLAGS="$CXXFLAGS" |
201 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS" | 201 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS" |
202 AC_CHECK_TYPES([scm_t_hash_fold_fn, scm_t_hash_handle_fn], | 202 AC_CHECK_TYPES([scm_t_hash_fold_fn, scm_t_hash_handle_fn], |
203 [AC_DEFINE(HAVE_GUILE_HASH_FUNC)], [], | 203 [AC_DEFINE(HAVE_GUILE_HASH_FUNC)], [], |
204 [#include <libguile.h>]) | 204 [#include <libguile.h>]) |
205 AC_CHECK_TYPES([scm_t_subr], | 205 AC_CHECK_TYPES([scm_t_subr], |
206 [AC_DEFINE(HAVE_GUILE_SUBR_TYPE)], [], | 206 [AC_DEFINE(HAVE_GUILE_SUBR_TYPE)], [], |
207 [#include <libguile.h>]) | 207 [#include <libguile.h>]) |
208 CXXFLAGS="$save_CXXFLAGS" | 208 CXXFLAGS="$save_CXXFLAGS" |
209 | 209 |
| 210 # Check if the compiler understands -Werror=unknown-warning-option. |
| 211 # This is important for Clang which otherwise just warns about unknown |
| 212 # options. Unfortunately GCC doesn't support this options, so we just |
| 213 # can't add it for all cases |
| 214 AC_MSG_CHECKING([whether $CXX supports -Werror=unknown-warning-option]) |
| 215 save_CXXFLAGS="$CXXFLAGS" |
| 216 CXXFLAGS="-Werror=unknown-warning-option" |
| 217 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
| 218 [AC_MSG_RESULT([yes]) |
| 219 test_CXXFLAGS="-Werror=unknown-warning-option"], |
| 220 [AC_MSG_RESULT([no]) |
| 221 test_CXXFLAGS=""]) |
| 222 CXXFLAGS="$save_CXXFLAGS" |
| 223 |
210 # -Wcast-function-type was added to GCC in version 8. The Guile | 224 # -Wcast-function-type was added to GCC in version 8. The Guile |
211 # interface tends to trigger this warning, so disable it. | 225 # interface tends to trigger this warning, so disable it. |
212 # g++ -Wno-whatever may compile even when the compiler does not | 226 # g++ -Wno-whatever may compile even when the compiler does not |
213 # support the warning, so we have to check for the warning itself. | 227 # support the warning, so we have to check for the warning itself. |
214 AC_MSG_CHECKING([whether $CXX supports -Wcast-function-type]) | 228 AC_MSG_CHECKING([whether $CXX supports -Wcast-function-type]) |
215 save_CXXFLAGS="$CXXFLAGS" | 229 save_CXXFLAGS="$CXXFLAGS" |
216 CXXFLAGS=-Wcast-function-type | 230 CXXFLAGS="$test_CXXFLAGS -Wcast-function-type" |
217 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], | 231 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
218 [AC_MSG_RESULT([yes]) | 232 [AC_MSG_RESULT([yes]) |
219 CXXFLAGS="$save_CXXFLAGS -Wno-cast-function-type"], | 233 CXXFLAGS="$save_CXXFLAGS -Wno-cast-function-type"], |
220 [AC_MSG_RESULT([no]) | 234 [AC_MSG_RESULT([no]) |
221 CXXFLAGS="$save_CXXFLAGS"]) | 235 CXXFLAGS="$save_CXXFLAGS"]) |
222 | 236 |
223 # -Wsequence-point in GCC version 7 has become very noisy for the | 237 # -Wsequence-point in GCC version 7 has become very noisy for the |
224 # Guile 1.8 interface, so disable it. | 238 # Guile 1.8 interface, so disable it. |
225 # g++ -Wno-whatever may compile even when the compiler does not | 239 # g++ -Wno-whatever may compile even when the compiler does not |
226 # support the warning, so we have to check for the warning itself. | 240 # support the warning, so we have to check for the warning itself. |
227 if test "$GUILEv2" != "yes"; then | 241 if test "$GUILEv2" != "yes"; then |
228 AC_MSG_CHECKING([whether $CXX supports -Wsequence-point]) | 242 AC_MSG_CHECKING([whether $CXX supports -Wsequence-point]) |
229 save_CXXFLAGS="$CXXFLAGS" | 243 save_CXXFLAGS="$CXXFLAGS" |
230 CXXFLAGS=-Wsequence-point | 244 CXXFLAGS="$test_CXXFLAGS -Wsequence-point" |
231 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], | 245 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
232 [AC_MSG_RESULT([yes]) | 246 [AC_MSG_RESULT([yes]) |
233 CXXFLAGS="$save_CXXFLAGS -Wno-sequence-point"], | 247 CXXFLAGS="$save_CXXFLAGS -Wno-sequence-point"], |
234 [AC_MSG_RESULT([no]) | 248 [AC_MSG_RESULT([no]) |
235 CXXFLAGS="$save_CXXFLAGS"]) | 249 CXXFLAGS="$save_CXXFLAGS"]) |
236 fi | 250 fi |
237 | 251 |
238 ## Check for usable cxxabi | 252 ## Check for usable cxxabi |
239 save_LIBS="$LIBS" | 253 save_LIBS="$LIBS" |
240 LIBS="$LIBS $CXXABI_LIBS" | 254 LIBS="$LIBS $CXXABI_LIBS" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 | 422 |
409 Type: | 423 Type: |
410 make$mc all to build LilyPond | 424 make$mc all to build LilyPond |
411 make$mc install to install LilyPond | 425 make$mc install to install LilyPond |
412 make$mc help to see all possible targets | 426 make$mc help to see all possible targets |
413 | 427 |
414 Edit local.make for local Makefile overrides. | 428 Edit local.make for local Makefile overrides. |
415 | 429 |
416 | 430 |
417 EOF | 431 EOF |
OLD | NEW |