|
Last change
on this file since 157 was
152,
checked in by guyru, 5 years ago
|
|
add a check for wxwidgets to the configure.ac
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
|
File size:
756 bytes
|
| Line | |
|---|
| 1 | AC_INIT([Open Yahtzee],[1.9],[guyrutenberg@gmail.com],[openyahtzee]) |
|---|
| 2 | |
|---|
| 3 | AM_INIT_AUTOMAKE([-Wall -Werror]) |
|---|
| 4 | AC_CONFIG_SRCDIR([src/openyahtzee.cpp]) |
|---|
| 5 | AC_CONFIG_HEADER([config.h]) |
|---|
| 6 | |
|---|
| 7 | dnl AC_LANG_CPLUSPLUS |
|---|
| 8 | AC_PROG_CXX |
|---|
| 9 | dnl AM_PROG_LIBTOOL |
|---|
| 10 | |
|---|
| 11 | AM_OPTIONS_WXCONFIG |
|---|
| 12 | #Detect wxWidgets |
|---|
| 13 | MIN_WX_VERSION="2.8.0" |
|---|
| 14 | AM_PATH_WXCONFIG($MIN_WX_VERSION, wxWin=1) |
|---|
| 15 | if test "$wxWin" != 1; then |
|---|
| 16 | AC_MSG_ERROR([ |
|---|
| 17 | wxWidgets must be installed on your system |
|---|
| 18 | but wx-config script couldn't be found. |
|---|
| 19 | |
|---|
| 20 | Please check that wx-config is in path, the directory |
|---|
| 21 | where wxWidgets libraries are installed (returned by |
|---|
| 22 | 'wx-config --libs' command) is in LD_LIBRARY_PATH or |
|---|
| 23 | equivalent variable and wxWidgets version is $MIN_WX_VERSION or above. |
|---|
| 24 | ]) |
|---|
| 25 | fi |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | AC_CONFIG_FILES([Makefile src/Makefile]) |
|---|
| 29 | AC_OUTPUT |
|---|
Note: See
TracBrowser
for help on using the repository browser.