-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
133 lines (105 loc) · 2.87 KB
/
configure.ac
File metadata and controls
133 lines (105 loc) · 2.87 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([OPTPP], [2.4], [http://software.sandia.gov/bugzilla])
AC_CONFIG_SRCDIR([src/globals.C])
AC_CONFIG_HEADER([include/OPT++_config.h])
AC_CONFIG_AUX_DIR([config])
# Ask Bill about the next line
#AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_DISABLE_SHARED
AM_INIT_AUTOMAKE([1.9.2 foreign])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_F77
# Talk to Bill about the following block
#AC_PROG_CC([cc xlc gcc])
#if test X${build_os} = Xcygwin ; then
# cpp_compilers="g++ gcc"
#else
# cpp_compilers="CC cxx xlC c++ g++"
#fi
#AC_PROG_CXX($cpp_compilers)
AC_PROG_INSTALL
AC_PROG_LIBTOOL
# Check whether we're building as part of DAKOTA.
AC_MSG_CHECKING([whether dakota_config.h.in exists])
if test -f "$srcdir/../Dakota/dakota_config.h.in" -o \
-f "$srcdir/../../dakota_config.h.in"; then
AC_MSG_RESULT([yes])
AC_DEFINE([DAKOTA_OPTPP],[1],[Identifier for non-standalone builds.])
else
AC_MSG_RESULT([no])
fi
AC_LANG([C++])
# Checks for libraries.
# Checks for header files.
AC_CXX_HAVE_STD
AC_LANG_PUSH([C])
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h float.h stddef.h stdlib.h string.h \
sys/param.h sys/types.h sys/time.h sys/times.h \
sys/resource.h unistd.h values.h])
AC_LANG_POP([C])
# Checks for typedefs, structures, and compiler characteristics.
AC_LANG_PUSH([C])
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
AC_LANG_POP([C])
AC_CXX_COMPILER_VENDOR([CXX_VENDOR])
AC_CXX_CPPFLAGS_STD_LANG([CXXFLAGS])
AC_CXX_NAMESPACES
AC_CXX_HAVE_SSTREAM
AC_ARG_ENABLE(warnings,
AS_HELP_STRING([--enable-warnings],[Turn on most compiler warnings]),
[
AX_CXXFLAGS_WARN_ALL_ANSI
AX_CFLAGS_WARN_ALL_ANSI
],
)
case "$ac_cv_cxx_compiler_vendor" in
compaq)
AX_CXXFLAGS_OSF_OPTION([-tlocal])
;;
sgi)
AX_CXXFLAGS_IRIX_OPTION([-ptused])
AX_CXXFLAGS_IRIX_OPTION([-FE:eliminate_duplicate_inline_copies])
AX_CXXFLAGS_IRIX_OPTION([-FE:template_in_elf_section])
;;
*)
;;
esac
# Talk to Bill about the following block
#case "$build_os" in
# *cygwin*)
# CXXFLAGS="${CXXFLAGS} -DCYGWIN"
# ;;
# *)
# ;;
#esac
# Checks for library functions.
AC_LANG_PUSH([C])
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([gettimeofday times strstr floor pow sqrt])
AC_CHECK_LIB([m], [floor])
AC_LANG_POP([C])
OPTPP_OPTIONS
# Output files.
AC_CONFIG_FILES([Makefile docs/Makefile newmat11/Makefile
src/Makefile src/Base/Makefile
src/Constraints/Makefile src/GSS/Makefile
src/Newton/Makefile src/PDS/Makefile
src/UserInterface/Makefile src/Utils/Makefile
tests/Makefile tests/constraints/Makefile
tests/hock/Makefile tests/npsol/Makefile
tests/parallel/Makefile tests/uncon/Makefile
tests/xml/Makefile])
AC_OUTPUT