-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
55 lines (40 loc) · 1.22 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#
# Copyright (C) 2015 Felix Salfelder
AC_PREREQ([2.57])
dnl Read version from file
m4_define([QUCS_VERSION], m4_esyscmd([tr -d '\n' < VERSION]))
AC_INIT([qucs], [QUCS_VERSION], [[email protected]])
AC_CANONICAL_HOST
# AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Options
# hmm maybe the default should be --disable-doc
AC_ARG_ENABLE([doc],
AS_HELP_STRING([--disable-doc], [Disable doc subpackage]))
AM_CONDITIONAL([ENABLE_DOC], [test "$enable_doc" != no])
AM_CONDITIONAL([QUCS_TEST], [test -f "$srcdir/qucs-test/run.py"])
dnl Check for MacOSX.
case $host_os in
*darwin*) MACOSX=yes ;;
*) MACOSX=no ;;
esac
AM_CONDITIONAL(COND_MACOSX, test x$MACOSX = xyes)
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
# Create Output
PYTHON=python
AC_SUBST([PYTHON])
AC_CONFIG_SUBDIRS([qucs
qucs-core])
AS_IF([test -d "$srcdir/qucs-doc"],
AC_CONFIG_SUBDIRS([qucs-doc])
)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT