commit | author | age
|
45edef
|
1 |
# -*- Autoconf -*- |
JS |
2 |
# Process this file with autoconf to produce a configure script. |
|
3 |
|
|
4 |
AC_PREREQ([2.68]) |
|
5 |
AC_INIT([CreateCfgFile], [1.0.0], [help@polhemus.com]) |
|
6 |
AM_INIT_AUTOMAKE |
|
7 |
AC_CONFIG_SRCDIR([src/Quaternion.cpp]) |
|
8 |
AC_CONFIG_HEADERS([config.h]) |
|
9 |
|
|
10 |
# Checks for programs. |
|
11 |
AC_PROG_CXX |
|
12 |
AC_PROG_CC |
|
13 |
|
|
14 |
# Checks for libraries. |
|
15 |
have_g4lib=no |
|
16 |
AC_SEARCH_LIBS([g4_read_source_cfg_file],[G4SrcCfg],[have_g4lib=yes]) |
|
17 |
AC_SEARCH_LIBS([sqrt],[m]) |
|
18 |
|
|
19 |
if test "x${have_g4lib}" = xno; then |
|
20 |
AC_MSG_ERROR([ |
|
21 |
-------------------------------------------------------------------------- |
|
22 |
The CreateSrcCfg Application requires the G4SrcCfg lib to build and run. Stopping.... |
|
23 |
Check 'config.log' for more information. |
|
24 |
--------------------------------------------------------------------------]) |
|
25 |
fi |
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
# Checks for header files. |
|
30 |
AC_CHECK_HEADERS([stdlib.h string.h G4SrcCfgIncl.h],[], |
|
31 |
[AC_MSG_ERROR(["Failure finding required header file -- Terminating configure"])]) |
|
32 |
|
|
33 |
|
|
34 |
# Checks for typedefs, structures, and compiler characteristics. |
|
35 |
AC_HEADER_STDBOOL |
|
36 |
|
|
37 |
# Checks for library functions. |
|
38 |
AC_FUNC_STRTOD |
|
39 |
AC_CHECK_FUNCS([sqrt],[], |
|
40 |
[AC_MSG_ERROR(["Failure finding required function -- Terminating configure"])]) |
|
41 |
|
|
42 |
# Check for GTK+ |
|
43 |
PKG_CHECK_MODULES([GTK],[gtk+-3.0]) |
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
AC_CONFIG_FILES([Makefile |
|
48 |
src/Makefile]) |
|
49 |
|
|
50 |
AC_OUTPUT |