-
Notifications
You must be signed in to change notification settings - Fork 99
/
configure
executable file
·724 lines (706 loc) · 19.4 KB
/
configure
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
#! /usr/bin/env bash
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
# SPDX-FileCopyrightText: Bradley M. Bell <[email protected]>
# SPDX-FileContributor: 2003-24 Bradley M. Bell
set -e -u
echo $0 $*
# # ----------------------------------------------------------------------------
# {xrst_begin configure app}
# {xrst_spell
# adouble
# ansi
# badiff
# boostvector
# cl
# cxx
# cygdrive
# dist
# eigenvector
# fortran
# ip
# linux
# msvc
# nmake
# stdvector
# sys
# ublas
# usr
# }
# {xrst_comment_ch #}
#
# Configure Test and Installation Script
# ######################################
#
# Deprecated 2012-12-26
# *********************
# This install procedure is deprecated.
# You should use the :ref:`cmake-name` instructions to
# configure and install CppAD.
#
# Distribution Directory
# **********************
# You must first obtain a copy of the CppAD distribution directory
# using the :ref:`download-name` instructions.
# We refer to the corresponding
# :ref:`download@Distribution Directory` as
# *dist_dir* .
#
# Build Directory
# ***************
# Create the directory *dist_dir* / ``build`` ,
# which will be referred to as the build directory below.
# (The build directory can be in any location
# so long as it is not the *dist_dir* .)
#
# Configure
# *********
# Execute the following command in the build directory:
#
# | ../ ``configure`` \\
# | |tab| ``--help`` \\
# | |tab| ``--prefix`` = *prefix_dir* \\
# | |tab| ``--with-`` *package* ``vector`` \\
# | |tab| ``--enable-msvc`` \\
# | |tab| ``--with-clang`` \\
# | |tab| ``--with-verbose-make`` \\
# | |tab| ``MAX_NUM_THREADS`` = *max_num_threads* \\
# | |tab| ``CXX_FLAGS`` = *cxx_flags* \\
# | |tab| ``POSTFIX_DIR`` = *postfix_dir* \\
# | |tab| ``ADOLC_DIR`` = *adolc_dir* \\
# | |tab| ``FADBAD_DIR`` = *fadbad_dir* \\
# | |tab| ``SADADO_DIR`` = *sacado_dir* \\
# | |tab| ``IPOPT_DIR`` = *ipopt_dir* \\
# | |tab| ``TAPE_ADDR_TYPE`` = *tape_addr_type* \\
# | |tab| ``TAPE_ID_TYPE`` = *tape_id_type*
#
# where only the ``configure`` line need appear; i.e.,
# the entries in all of the other lines are optional.
# The text in italic above is replaced values that you choose
# (see discussion below).
#
# make
# ****
# The following command, in the build directory,
# creates the file ``include/cppad/configure.hpp`` in
# the source directory and then builds
# some object libraries that are used by the tests
# ::
#
# make
#
# Examples and Tests
# ==================
# The following command will build and run all the correctness and speed tests.
# ::
#
# make test
#
# prefix_dir
# **********
# The default value for prefix directory is ``$HOME``
# i.e., by default the CppAD include files
# will :ref:`install<configure@make install>` below ``$HOME`` .
# If you want to install elsewhere, you will have to use this option.
# As an example of using the ``--prefix`` = *prefix_dir* option,
# if you specify
# ::
#
# ./configure --prefix=/usr/local
#
# the CppAD include files will be installed in the directory
#
# / ``usr/local/include/cppad``
#
# --with-<package>vector
# **********************
# The :ref:`CPPAD_TESTVECTOR<testvector-name>`
# template class is used for many of the CppAD examples and tests.
# The default for this template class is
#
# |tab| ``CppAD::vector<`` *Scalar* > .
#
# If one, and only one, of the following command line arguments is specified:
# ::
#
# --with-stdvector
# --with-boostvector
# --with-eigenvector
#
# the corresponding of the following template classes is used
#
# | |tab| ``std::vector<`` *Scalar* >
# | |tab| ``boost::numeric::ublas::vector<`` *Scalar* >
# | |tab| ``Eigen::matrix<`` *Scalar* , ``Eigen::Dynamic`` , 1>
#
# --enable-msvc
# *************
# If this flag is present, the Microsoft ``cl`` compiler will be
# placed at the front of a list of compilers to search for.
# In addition, nmake_ make files will be generated; i.e.,
# you will use ``nmake`` instead of ``make`` to build, test, and install.
# The resulting C++, C, and Fortran compiler orders work Coin-OR specific;
# see
# `Building with Visual Studio in MSys2
# <https://coin-or.github.io/user_introduction.html#building-with-visual-studio-in-msys2>`_ .
#
# .. _nmake: https://learn.microsoft.com/en-us/cpp/build/reference/nmake-reference?view=msvc-170
#
# --with-clang
# ************
# If this flag is present, ``clang++`` ( ``clang`` )
# will be used for the C++ (C) compiler.
# This option cannot appear when the --enable-msvc option appears.
#
# --with-verbose-make
# *******************
# This will create verbose output during the make commands.
#
# max_num_threads
# ***************
# this specifies the value for the preprocessor symbol
# :ref:`multi_thread@CPPAD_MAX_NUM_THREADS` .
# It must be greater than or equal to four; i.e.,
# *max_num_threads* >= 4 .
# The default value for this option is 64.
#
# cxx_flags
# *********
# If the command line argument *cxx_flags* is present,
# it specifies compiler flags.
# For example,
#
# ``CXX_FLAGS`` = ``"-Wall -ansi"``
#
# would specify that warning flags ``-Wall``
# and ``-ansi`` should be included
# in all the C++ compile commands.
# The error and warning flags chosen must be valid options
# for the C++ compiler.
# The default value for *cxx_flags* is the
# empty string.
#
# postfix_dir
# ***********
# The default value for this directory is empty; i.e., there
# is no postfix directory.
# As an example of using the ``POSTFIX_DIR`` = *postfix_dir* option,
# if you specify
# ::
#
# ./configure --prefix=/usr/local POSTFIX_DIR=coin
#
# the CppAD include files will be
# :ref:`installed<configure@make install>` in the directory
#
# / ``usr/local/include/coin-or/cppad``
#
# adolc_dir
# *********
# The default value for this directory is empty; i.e., there
# is no adolc directory.
# If you have
# `ADOL-C <https://github.com/coin-or/ADOL-C>`_
# installed on your system, you can
# specify a value for *adolc_dir* in the
# :ref:`configure@Configure` command line.
# The value of *adolc_dir* must be such that
#
# *adolc_dir* / ``include/adolc/adouble.h``
#
# is a valid way to reference ``adouble.h`` .
# In this case, you can run the Adolc speed correctness tests
# by executing the following commands starting in the build directory
#
# make check_speed_adolc
#
# Note that these speed tests assume Adolc has been configure with
# its sparse matrix computations enabled using
#
# ``--with-colpack`` = *colpack_dir*
#
# where *colpack_dir* is the same as *adolc_dir* .
#
# Linux
# =====
# If you are using Linux,
# you may have to add *adolc_dir* / ``lib`` to ``LD_LIBRARY_PATH`` .
# For example, if you use the ``bash`` shell to run your programs,
# you could include
#
# | |tab| ``LD_LIBRARY_PATH`` = *adolc_dir* / ``lib:$`` { ``LD_LIBRARY_PATH`` }
# | |tab| ``export LD_LIBRARY_PATH``
#
# in your ``$HOME/.bash_profile`` file.
#
# Cygwin
# ======
# If you are using Cygwin,
# you will have to add to following lines to the file
# ``.bash_profile`` in your home directory:
#
# | |tab| ``PATH`` = *adolc_dir* / ``bin:$`` { ``PATH`` }
# | |tab| ``export PATH``
#
# in order for Adolc to run properly.
# If *adolc_dir* begins with a disk specification,
# you must use the Cygwin format for the disk specification.
# For example,
# if ``d:/adolc_base`` is the proper directory,
# ``/cygdrive/d/adolc_base`` should be used for *adolc_dir* .
#
# fadbad_dir
# **********
# The default value for this directory is empty; i.e., there
# is no fadbad directory.
# If you have
# `Fadbad 2.1 <http://uning.dk//>`_
# installed on your system, you can
# specify a value for *fadbad_dir* .
# It must be such that
#
# *fadbad_dir* / ``include/FADBAD`` ++/ ``badiff.h``
#
# is a valid reference to ``badiff.h`` .
# In this case, you can run the Fadbad speed correctness tests
# by executing the following commands starting in the build directory:
#
# make check_speed_fadbad
#
#
# ipopt_dir
# *********
# The default value for this directory is empty; i.e., there
# is no ipopt directory.
# If you have
# `Ipopt <https://coin-or.github.io/Ipopt>`_
# installed on your system, you can
# specify a value for *ipopt_dir* .
# It must be such that
#
# *ipopt_dir* / ``include/coin-or/IpIpoptApplication.hpp``
#
# is a valid reference to ``IpIpoptApplication.hpp`` .
# In this case, the CppAD interface to Ipopt
# examples can be built and tested
# by executing the following commands starting in the build directory:
#
# make check_cppad_ipopt
#
# Once this has been done, you can execute the program
# ``cppad_ipopt_speed`` in the ``build/cppad_ipopt/speed`` directory;
# see ``ipopt_ode_speed.cpp`` .
#
# sacado_dir
# **********
# The default value for this directory is empty; i.e., there
# is no sacado directory.
# If you have
# `Sacado <https://trilinos.github.io/sacado.html>`_
# installed on your system, you can
# specify a value for *sacado_dir* .
# It must be such that
#
# *sacado_dir* / ``include/Sacado.hpp``
#
# is a valid reference to ``Sacado.hpp`` .
# In this case, you can run the Sacado speed correctness tests
# by executing the following commands starting in the build directory:
# ::
#
# make check_speed_sacado
#
# tape_addr_type
# **************
# The default value for this type is ``size_t`` .
# If the command line argument *tape_addr_type* is present,
# it specifies the type used for address in the AD recordings (tapes).
# The valid values for this argument are
# ``unsigned short int`` ,
# ``unsigned int`` ,
# ``size_t`` .
# The smaller the value of *sizeof* ( ``tape_addr_type`` ) ,
# the less memory is used.
# On the other hand, the value
#
# ``std::numeric_limits<`` *tape_addr_type* >:: ``max`` ()
#
# must be larger than any of the following:
# :ref:`fun_property@size_op` ,
# :ref:`fun_property@size_op_arg` ,
# :ref:`size_par<fun_property@size_text>` ,
# :ref:`fun_property@size_par` ,
# :ref:`size_par<fun_property@size_VecAD>` .
#
# tape_id_type
# ************
# The default value for this type is ``size_t`` .
# If the command line argument *tape_id_type* is present,
# it specifies the type used for identifying tapes.
# The valid values for this argument are
# ``unsigned short int`` ,
# ``unsigned int`` ,
# ``size_t`` .
# The smaller the value of *sizeof* ( ``tape_id_type`` ) ,
# the less memory is used.
# On the other hand, the value
#
# ``std::numeric_limits<`` *tape_id_type* >:: ``max`` ()
#
# must be larger than the maximum number of tapes per thread
# times :ref:`configure@max_num_threads` .
#
# make install
# ************
# Once you are satisfied that the tests are giving correct results,
# you can install CppAD into easy to use directories by executing the command
# ::
#
# make install
#
# This will install CppAD in the location specified by
# :ref:`configure@prefix_dir` .
# You must have permission to write in the *prefix_dir*
# directory to execute this command.
# You may optionally specify a destination directory for the install; i.e.,
#
# ``make install DESTDIR`` = *DestinationDirectory*
#
# {xrst_end configure}
# ----------------------------------------------------------------------------
function print_variable {
echo "$1 = ${!1}"
}
# ----------------------------------------------------------------------------
#
# --help
if echo " $* " | grep ' --help ' > /dev/null
then
cat << EOF
usage: <path_to_configure>/configure \\
[--help] \\
[--prefix=<prefix_dir>] \\
[--with-<package>vector] \\
[--enable-msvc] \\
[--with-clang] \\
[--with-verbose-make] \\
[MAX_NUM_THREADS=max_num_threads] \\
[CXX_FLAGS=cxx_flags] \\
[POSTFIX_DIR=postfix_dir] \\
[ADOLC_DIR=adolc_dir] \\
[FADBAD_DIR=fadbad_dir] \\
[SACADO_DIR=sacado_dir] \\
[IPOPT_DIR=ipopt_dir] \\
[TAPE_ADDR_TYPE=tape_addr_type] \\
[TAPE_ID_TYPE=tape_id_type]
The --help option just prints this message and exits.
<package> is one of he following: boost, eigen, std
EOF
exit 0
fi
# ----------------------------------------------------------------------------
first_executable() {
first_executable_result=''
while [ "$first_executable_result" == '' ] && [ "$1" != '' ]
do
if which $1 >& /dev/null
then
first_executable_result="$(which $1)"
fi
shift
done
}
# ----------------------------------------------------------------------------
#
prefix="$HOME"
testvector='cppad'
enable_msvc='no'
with_clang='n0'
with_verbose_make='no'
max_num_threads='64'
cxx_flags=''
postfix_dir='NOTFOUND'
adolc_dir='NOTFOUND'
fadbad_dir='NOTFOUND'
sacado_dir='NOTFOUND'
ipopt_dir='NOTFOUND'
tape_addr_type='size_t'
tape_id_type='size_t'
while [ "$#" != 0 ]
do
case "$1" in
--prefix=*)
prefix=$( echo $1 | sed -e 's|^--prefix=||' )
;;
--with-boostvector)
testvector='boost'
;;
--with-eigenvector)
testvector='eigen'
;;
--with-stdvector)
testvector='std'
;;
--with-clang)
with_clang='yes'
;;
--enable-msvc)
enable_msvc='yes'
;;
--with-verbose-make)
with_verbose_make='yes'
;;
MAX_NUM_THREADS=*)
max_num_threads=$( echo $1 | sed -e 's|MAX_NUM_THREADS=||' )
;;
CXX_FLAGS=*)
cxx_flags=$( echo $1 | sed -e 's|CXX_FLAGS=||' )
;;
POSTFIX_DIR=*)
postfix_dir=$( echo $1 | sed -e 's|POSTFIX_DIR=||' )
;;
ADOLC_DIR=*)
adolc_dir=$( echo $1 | sed -e 's|ADOLC_DIR=||' )
;;
FADBAD_DIR=*)
fadbad_dir=$( echo $1 | sed -e 's|FADBAD_DIR=||' )
;;
SACADO_DIR=*)
sacado_dir=$( echo $1 | sed -e 's|SACADO_DIR=||' )
;;
IPOPT_DIR=*)
ipopt_dir=$( echo $1 | sed -e 's|IPOPT_DIR=||' )
;;
TAPE_ADDR_TYPE=*)
tape_addr_type=$( echo $1 | sed -e 's|TAPE_ADDR_TYPE=||' )
;;
TAPE_ID_TYPE=*)
tape_id_type=$( echo $1 | sed -e 's|TAPE_ID_TYPE=||' )
;;
*)
echo "configure: '$1' is not a valid option. Use following to get help:"
echo "$0 --help"
exit 1
esac
shift
done
if [ "$with_clang" == 'yes' ] && [ "$enable_msvc" == 'yes' ]
then
echo 'configure: cannot specify both --enable-mcvc and --with-clang'
exit 1
fi
# ----------------------------------------------------------------------------
# type_makefile
if [ "$enable_msvc" == 'yes' ]
then
type_makefile='NMake Makefiles'
else
if [[ $(uname -s) =~ ^MSYS_.* ]]
then
type_makefile='MSYS Makefiles'
else
type_makefile='Unix Makefiles'
fi
fi
#
# cxx_standard_year
if echo $cxx_flags | grep 'std=c++' > /dev/null
then
cxx_standard_year=$(echo $cxx_flags | sed -e 's|.*std=c++\([0-9]*\).*|\1|')
print_variable cxx_standard_year
if [ "$cxx_standard_year" -lt 17 ]
then
if [ "$sacado_dir" != 'NOTFOUND' ]
then
echo 'Sacado requires c++17 or greater'
exit 1
fi
fi
fi
#
# cmake_cxx_compiler
cmake_cxx_compiler=''
if [ "$enable_msvc" == 'yes' ]
then
first_executable icl cl g++
else
first_executable g++ clang++ CC pgCC icpc gpp cxx cc++
fi
if [ "$with_clang" == 'yes' ]
then
cmake_cxx_compiler='-D CMAKE_CXX_COMPILER=clang++'
elif [ "$first_executable_result" != '' ]
then
cmake_cxx_compiler="-D CMAKE_CXX_COMPILER=$first_executable_result"
fi
#
# cmake_c_compiler
cmake_c_compiler=''
if [ "$enable_msvc" == 'yes' ]
then
first_executable icl cl gcc
else
first_executable gcc clang cc pgcc icc
fi
if [ "$with_clang" == 'yes' ]
then
cmake_c_compiler='-D CMAKE_C_COMPLIER=clang'
elif [ "$first_executable_result" != '' ]
then
cmake_c_compiler="-D CMAKE_C_COMPILER=$first_executable_result"
fi
#
# CMAKE_Fortran_COMPILER
cmake_fortran_compiler=''
if [ "$enable_msvc" == 'yes' ]
then
first_executable ifort gfortran
else
first_executable gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77
fi
if [ "$first_executable_result" != '' ]
then
cmake_fortran_compiler="-D CMAKE_Fortan_COMPILER=$first_executable_result"
fi
#
# source_dir
source_dir=$( echo $0 | sed -e 's|/configure$||' )
if [ "$source_dir" == "$0" ] || [ "$source_dir" == '.' ]
then
echo 'configure: cannot run configure in the current working directory'
pwd
exit 1
fi
PKG_CONFIG_PATH=''
#
# include_$package, PKG_CONFIG_PATH
for package in adolc ipopt
do
package_dir="${package}_dir"
if [ "${!package_dir}" == NOTFOUND ]
then
declare include_${package}='false'
else
declare include_${package}='true'
pc_file="$package.pc"
if [ "$package" == eigen ]
then
pc_file='eigen3.pc'
fi
pc_path=$(find ${!package_dir} -name "$pc_file" | head -1)
if [ "$pc_path" == '' ]
then
echo "$package_dir = ${!package_dir}"
echo "But cannot find $pc_file below that directory"
exit 1
fi
pc_dir=$(echo $pc_path | sed -e "s|/$pc_file||")
if [ -z ${PKG_CONFIG_PATH+x} ]
then
export PKG_CONFIG_PATH="$pc_dir"
elif [ "$PKG_CONFIG_PATH" == '' ]
then
export PKG_CONFIG_PATH="$pc_dir"
else
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$pc_dir"
fi
fi
print_variable PKG_CONFIG_PATH
done
#
# cppad_cxx_flags
cppad_cxx_flags=$( echo " $cxx_flags " | sed -e 's| -g ||' )
#
# cmake_install_libdirs
cmake_install_libdirs='lib;lib64'
if [ -d '/usr/lib64' ]
then
cmake_install_libdirs='lib64;lib'
fi
list='
build.ninja
CMakeCache.txt
CMakeFiles
'
for name in $list
do
if [ -e "$name" ]
then
echo_eval rm -r $name
fi
done
echo cmake \
-U .+ \
-S "$source_dir" \
-B . \
\
-D CMAKE_VERBOSE_MAKEFILE=$with_verbose_make \
-G "'$type_makefile'" \
\
$cmake_c_compiler \
$cmake_fortran_compiler \
\
-D cppad_prefix="$prefix" \
-D cppad_postfix="$postfix_dir" \
\
-D cmake_install_includedirs=include \
-D cmake_install_libdirs=$cmake_install_libdirs \
\
-D cmake_install_datadir=share \
-D cmake_install_docdir=share/doc \
\
-D include_adolc=$include_adolc \
-D include_ipopt=$include_ipopt \
-D include_cppadcg=false \
\
-D colpack_prefix='NOTFOUND' \
-D fadbad_prefix="$fadbad_dir" \
-D sacado_prefix="$sacado_dir" \
\
-D cppad_cxx_flags="$cxx_flags" \
-D cppad_profile_flag='' \
-D cppad_testvector="$testvector" \
-D cppad_max_num_threads="$max_num_threads" \
-D cppad_tape_id_type="$tape_id_type" \
-D cppad_tape_addr_type="$tape_addr_type" \
-D cppad_debug_which='debug_none' \
-D cppad_debug_and_release='true'
#
cmake \
-U .+ \
-S "$source_dir" \
-B . \
\
-D CMAKE_VERBOSE_MAKEFILE=$with_verbose_make \
-G "$type_makefile" \
\
$cmake_cxx_compiler \
$cmake_fortran_compiler \
\
-D cppad_prefix="$prefix" \
-D cppad_postfix="$postfix_dir" \
\
-D cmake_install_includedirs=include \
-D cmake_install_libdirs=$cmake_install_libdirs \
\
-D cmake_install_datadir=share \
-D cmake_install_docdir=share/doc \
\
-D include_adolc=$include_adolc \
-D include_ipopt=$include_adolc \
-D include_cppadcg=false \
\
-D colpack_prefix='NOTFOUND' \
-D fadbad_prefix="$fadbad_dir" \
-D sacado_prefix="$sacado_dir" \
\
-D cppad_cxx_flags="$cxx_flags" \
-D cppad_profile_flag='' \
-D cppad_testvector="$testvector" \
-D cppad_max_num_threads="$max_num_threads" \
-D cppad_tape_id_type="$tape_id_type" \
-D cppad_tape_addr_type="$tape_addr_type" \
-D cppad_debug_which='debug_none' \
-D cppad_debug_and_release='true'
# ----------------------------------------------------------------------------
echo 'configure: OK'
exit 0