Commit 0c9fef1cd48386e189ce11df7077c2ee33873a32
1 parent
abc3e558
stop configure with an error in GammaLib library is not found
Showing
1 changed file
with
15 additions
and
4 deletions
configure.ac
| @@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
| 17 | # | 17 | # |
| 18 | # Process this file with autoconf to produce a configure script | 18 | # Process this file with autoconf to produce a configure script |
| 19 | 19 | ||
| 20 | -AC_INIT([ctatools], [0.2.3], [knodlseder@cesr.fr], [ctatools]) | 20 | +AC_INIT([ctatools], [0.2.4], [knodlseder@cesr.fr], [ctatools]) |
| 21 | AC_CONFIG_SRCDIR([src/ctselect/ctselect.cpp]) | 21 | AC_CONFIG_SRCDIR([src/ctselect/ctselect.cpp]) |
| 22 | AC_CONFIG_MACRO_DIR([m4]) | 22 | AC_CONFIG_MACRO_DIR([m4]) |
| 23 | AC_CONFIG_HEADERS([config.h]) | 23 | AC_CONFIG_HEADERS([config.h]) |
| @@ -267,6 +267,11 @@ if test "x$has_gammalib" = "xyes"; then | @@ -267,6 +267,11 @@ if test "x$has_gammalib" = "xyes"; then | ||
| 267 | AC_SUBST(LIBS_GAMMALIB) | 267 | AC_SUBST(LIBS_GAMMALIB) |
| 268 | AC_SUBST(LIBDIR_GAMMALIB) | 268 | AC_SUBST(LIBDIR_GAMMALIB) |
| 269 | AC_SUBST(INCDIR_GAMMALIB) | 269 | AC_SUBST(INCDIR_GAMMALIB) |
| 270 | +else | ||
| 271 | + AC_MSG_ERROR([No suitable GammaLib library found. | ||
| 272 | +ctatools require GammaLib for compilation, so please install GammaLib before or, | ||
| 273 | +if you think that it is installed, provide the location of the gammalib library | ||
| 274 | +and header files by setting the LDFLAGS and CPPFLAGS environnment variables.]) | ||
| 270 | fi | 275 | fi |
| 271 | 276 | ||
| 272 | 277 | ||
| @@ -382,7 +387,13 @@ fi | @@ -382,7 +387,13 @@ fi | ||
| 382 | 387 | ||
| 383 | # Dump next step information | 388 | # Dump next step information |
| 384 | echo | 389 | echo |
| 385 | -echo "Now type 'make'" | ||
| 386 | -echo | ||
| 387 | - | 390 | +if test "x$has_gammalib" = "xyes"; then |
| 391 | + echo "Now type 'make'" | ||
| 392 | + echo | ||
| 393 | +else | ||
| 394 | + AC_MSG_ERROR([No suitable GammaLib library found. ctatools require GammaLib | ||
| 395 | +for compilation, so please install GammaLib before or provide the | ||
| 396 | +location of the library and header files using the LDFLAGS and CPPFLAGS | ||
| 397 | +environnment variables.]) | ||
| 398 | +fi | ||
| 388 | 399 |