source: trunk/configure.ac @ 406

Last change on this file since 406 was 406, checked in by kulshres, 8 years ago

Merge branch 'cuda' of 'gitclone'

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

The following commits were merged:

commit b62001306013a3cff8685cd41355db4bbcdbdfe1
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue Feb 12 10:46:48 2013 +0100

Add examples to build system, copyrights and multi-include protection

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit ce0f1c68301992d307136ac114af10b0a05e8915
Author: Alina Koniaeva <alinak@…>
Date: Thu Jul 12 16:19:38 2012 +0200

sqrt and log function changed in the header file adoublecuda.h

Signed-off-by: Alina Koniaeva <alinak@…>

commit eed8665516916084e3b7dd0a783938f814d26391
Author: Alina Koniaeva <alinak@…>
Date: Thu Jul 12 16:18:34 2012 +0200

Examples for the use of ADOL-C with Cuda

Signed-off-by: Alina Koniaeva <alinak@…>

commit c1dff45b95768c536366cd688281488721279c3d
Author: Alina Koniaeva <alinak@…>
Date: Thu Jul 12 16:13:34 2012 +0200

Documentation for the use of ADOL-C with Cuda

Signed-off-by: Alina Koniaeva <alinak@…>

commit 7d3ffd136d5785162beeb7e7f1063e50d236f001
Author: Alina Koniaeva <alinak@…>
Date: Fri Jun 1 16:52:05 2012 +0200

Example for the use of ADOL-C with Cuda

Signed-off-by: Alina Koniaeva <alinak@…>

commit e59c0d04e59e01e3c498f6e3e60aa1371ed0fbc2
Author: Alina Koniaeva <alinak@…>
Date: Fri Jun 1 16:51:20 2012 +0200

Headerfile adoublecuda.h included in makefile

Signed-off-by: Alina Koniaeva <alinak@…>

commit 3a81a3ae62be40673cd6d915e5aa56e57996e918
Author: Alina Koniaeva <alinak@…>
Date: Fri Jun 1 16:50:37 2012 +0200

Headerfile for the use of ADOL-C with Cuda

Signed-off-by: Alina Koniaeva <alinak@…>

  • Property svn:keywords set to Author Date Id Revision
File size: 20.1 KB
Line 
1##############################################################################
2# configure.ac -- Process this file with autoconf to produce configure
3# Revision: $Id: configure.ac 406 2013-02-12 10:01:12Z kulshres $
4#
5# Copyright (C) Andrea Walther, Andreas Kowarz
6#               
7# contains patches from the COIN OR libtool
8#
9##############################################################################
10define([ADOLC_VER], [2])
11define([ADOLC_SUB], [4])
12define([ADOLC_LVL], [0])
13
14AC_PREREQ(2.67)
15AC_INIT(adolc,
16        ADOLC_VER.ADOLC_SUB.ADOLC_LVL-trunk,
17        [adol-c@list.coin-or.org])
18config_flags="$*"
19AC_REVISION($Revision: 406 $)
20AC_CONFIG_SRCDIR([ADOL-C/src/adouble.cpp])
21AC_CONFIG_AUX_DIR(autoconf)
22AC_CONFIG_HEADERS([ADOL-C/src/config.h])
23AC_PREFIX_DEFAULT(${HOME}/adolc_base)
24AM_INIT_AUTOMAKE([1.11 dist-bzip2 foreign])
25AM_SILENT_RULES([yes])
26
27if test "x$CFLAGS" == x ; then
28    ac_shell_cflags="not_set"
29else
30    ac_shell_cflags="$CFLAGS"
31fi
32if test "x$CXXFLAGS" == x ; then
33    ac_shell_cxxflags="not_set"
34else
35    ac_shell_cxxflags="$CXXFLAGS"
36fi
37libdir_set_on_cmd="no"
38for i in $config_flags ; do
39    case $i in
40    -libdir | --libdir | --libdi | --libd | -libdir=* | --libdir=* | --libdi=* | --libd=*)
41            libdir_set_on_cmd="yes"
42            break
43            ;;
44    esac
45done
46
47# checks for programs
48AC_PROG_CXX
49AC_PROG_CC
50AC_PROG_CPP
51AC_PROG_INSTALL
52AC_PROG_LN_S
53AC_PROG_MAKE_SET
54AC_LIBTOOL_WIN32_DLL
55AC_PROG_LIBTOOL
56
57AC_CHECK_SIZEOF([void *])
58if test "x$ac_cv_sizeof_void_p" = "x8" ; then
59   _lib=lib64
60else
61   _lib=lib
62fi
63if test "x$libdir_set_on_cmd" = "xno" ; then
64   libdir='${exec_prefix}/${_lib}'
65   AC_SUBST(_lib)
66   AC_SUBST(libdir)
67fi
68
69# checks for header files
70AC_HEADER_STDC
71AC_HEADER_TIME
72AC_HEADER_STDBOOL
73AC_CHECK_HEADERS([stddef.h stdlib.h stdio.h string.h unistd.h sys/timeb.h])
74
75# checks for types
76AC_C_CONST
77AC_C_INLINE
78AC_TYPE_SIZE_T
79AC_STRUCT_TM
80
81# Checks for library functions
82AC_FUNC_MALLOC
83AC_FUNC_REALLOC
84
85# Checks for libraries and fuctions
86AC_SEARCH_LIBS([pow], [m])
87AC_CHECK_FUNCS([floor fmax fmin ftime pow sqrt strchr strtol trunc])
88
89# substitutions
90AC_SUBST(ac_aux_dir)
91
92# ADOL-C configuration
93AC_DEFINE(ADOLC_VERSION,ADOLC_VER,[ADOL-C Version])
94AC_DEFINE(ADOLC_SUBVERSION,ADOLC_SUB,[ADOL-C Subversion])
95AC_DEFINE(ADOLC_PATCHLEVEL,ADOLC_LVL,[ADOL-C Patchlevel])
96ADOLC_VERSION=ADOLC_VER
97ADOLC_SUBVERSION=ADOLC_SUB
98ADOLC_PATCHLEVEL=ADOLC_LVL
99AC_SUBST(ADOLC_VERSION)
100AC_SUBST(ADOLC_SUBVERSION)
101AC_SUBST(ADOLC_PATCHLEVEL)
102
103AC_MSG_CHECKING(whether to use calloc or malloc for memory allocation)
104AC_ARG_ENABLE(use-calloc,[AS_HELP_STRING([--disable-use-calloc],
105  [disable use of calloc and use malloc instead for memory allocation [default=calloc is used]])],
106  [use_calloc=$enableval],[use_calloc=yes])
107
108if test x$use_calloc = xyes ; then
109AC_MSG_RESULT(calloc)
110AC_DEFINE(ADOLC_USE_CALLOC,1,[Use calloc instead of malloc for memory allocation])
111else
112AC_MSG_RESULT(malloc)
113fi
114
115AC_MSG_CHECKING(whether to enable atrig/erf functions)
116AC_ARG_ENABLE(atrig-erf,[AS_HELP_STRING([--enable-atrig-erf],
117  [enable atrig and erf functions in ADOL-C [default=no]])],
118  [use_atrig_erf=$enableval],[use_atrig_erf=no])
119AC_MSG_RESULT($use_atrig_erf)
120
121if test x$use_atrig_erf = xyes ; then
122  ATRIG_ERF_FALSE="// "
123  ATRIG_ERF_TRUE=""
124else
125  ATRIG_ERF_FALSE=""
126  ATRIG_ERF_TRUE="// "
127fi
128AC_SUBST(ATRIG_ERF_FALSE)
129AC_SUBST(ATRIG_ERF_TRUE)
130
131AC_MSG_CHECKING(whether to use 32-bit or 64-bit locations)
132AC_ARG_ENABLE(ulong,[AS_HELP_STRING([--enable-ulong],
133  [enable 64-bit locations (only available on 64-bit systems) [default=32-bit]])],
134  [use_ulong=$enableval],[use_ulong=no])
135
136if test x$use_ulong = xyes -a 0$ac_cv_sizeof_void_p -ge 8 ; then
137  UINT_TYPE=uint64_t
138  AC_MSG_RESULT(64-bit)
139else
140  UINT_TYPE=uint32_t
141  AC_MSG_RESULT(32-bit)
142fi
143AC_SUBST(UINT_TYPE)
144
145AC_MSG_CHECKING(whether to use single or double precision)
146AC_ARG_ENABLE(double,[AS_HELP_STRING([--disable-double],
147  [disable double precision arithmetic [untested, default=double is enabled]])],
148  [use_double=$enableval],[use_double=yes])
149
150if test x$use_double = xno ; then
151  REAL_TYPE=float
152  echo
153  echo -n "using ${REAL_TYPE} is not well tested, please report bugs if you find any..."
154else
155  REAL_TYPE=double
156fi
157AC_MSG_RESULT($REAL_TYPE)
158AC_SUBST(REAL_TYPE)
159
160AC_MSG_CHECKING(whether to enable advanced branching operations)
161AC_ARG_ENABLE(advanced-branching, [AS_HELP_STRING([--enable-advanced-branching],
162  [enable advanced branching operations to reduce retaping [default=no].
163The boolean valued comparison operators with two adouble arguments will
164not return boolean results but the active results may be used to automatically
165switch branches in conjunction with condassign or advector (see manual).])],
166  [use_advbranch=$enableval],[use_advbranch=no])
167AC_MSG_RESULT($use_advbranch)
168
169if test x$use_advbranch = xyes ; then
170  ADVBRANCH_TRUE=""
171  ADVBRANCH_FALSE="// "
172else
173  ADVBRANCH_TRUE="// "
174  ADVBRANCH_FALSE=""
175fi
176AC_SUBST(ADVBRANCH_TRUE)
177AC_SUBST(ADVBRANCH_FALSE)
178
179AC_MSG_CHECKING(whether to use ADOL-C debug mode)
180AC_ARG_ENABLE(debug,
181              [
182AS_HELP_STRING([--enable-debug],[enable ADOL-C debug mode [default=no]])],
183  [
184  adolc_debug=$enableval
185   AC_MSG_RESULT($adolc_debug)
186   ],
187  [
188   adolc_debug=no
189   AC_MSG_RESULT(no)
190   ])
191
192AC_MSG_CHECKING(whether to use ADOL-C hard debug mode)
193AC_ARG_ENABLE(harddebug,
194              [
195AS_HELP_STRING([--enable-harddebug],[enable ADOL-C hard debug mode
196 [default=no]])],
197  [
198   adolc_harddebug=$enableval
199   AC_MSG_RESULT($adolc_harddebug)
200   ],
201  [
202   adolc_harddebug=no
203   AC_MSG_RESULT(no)
204   ])
205
206if test x$adolc_harddebug == xyes ; then
207adolc_debug=yes
208AC_DEFINE(ADOLC_HARDDEBUG,1,[ADOL-C hard debug mode])
209fi
210
211if test x$adolc_debug == xyes ; then
212AC_DEFINE(ADOLC_DEBUG,1,[ADOL-C debug mode])
213fi
214
215AC_MSG_CHECKING(whether the default adouble constructor should initialize the value to 0)
216AC_ARG_ENABLE(stdczero,
217              [
218AS_HELP_STRING([--disable-stdczero],[adouble default constructor does not initialze the value to zero
219(improves performance but yields incorrect results for implicit array initializations, see manual) [default=enabled]])],
220  [
221  adolc_stdczero=no
222  AC_MSG_RESULT(no)
223  ],
224  [
225  adolc_stdczero=yes
226  AC_MSG_RESULT(yes)
227  ])
228
229if test x$adolc_stdczero == xyes; then
230AC_DEFINE(ADOLC_ADOUBLE_STDCZERO,1,[ADOL-C adouble zeroing mode])
231fi
232
233AC_MSG_CHECKING(whether errno is thread save)
234AC_ARG_ENABLE(tserrno,
235              [
236AS_HELP_STRING([--enable-tserrno],[use errno as thread number cache [default=no]])],
237  [
238  adolc_tserrno=$enableval
239  AC_MSG_RESULT($adolc_tserrno)
240   ],
241  [
242  adolc_tserrno=no
243  AC_MSG_RESULT(no)
244  ])
245
246if test x$adolc_tserrno == xyes ; then
247AC_DEFINE(ADOLC_THREADSAVE_ERRNO,1,[ADOL-C thread save errno mode])
248fi
249
250AC_MSG_CHECKING(which flag to use to enable OpenMP)
251AC_ARG_WITH(openmp-flag,
252            [AS_HELP_STRING([--with-openmp-flag=FLAG],
253                            [use FLAG to enable OpenMP at compile time [default=none]])],
254            [ac_adolc_openmpflag=$withval
255             AC_MSG_RESULT($ac_adolc_openmpflag)],
256            [ac_adolc_openmpflag=""
257             AC_MSG_RESULT(none)])
258
259
260# ADOL-C Sparse facility
261AC_MSG_CHECKING(whether to build sparse drivers)
262AC_ARG_ENABLE(sparse,
263            [
264AS_HELP_STRING([--enable-sparse],[build sparse drivers [default=disabled]])],
265            [sparse=$enableval
266             AC_MSG_RESULT($sparse)],
267            [sparse="no"
268             AC_MSG_RESULT(no)])
269
270AC_ARG_WITH(colpack,
271        [
272AS_HELP_STRING([--with-colpack=DIR],[path to the colpack library and headers [default=system libraries]])],
273[
274colpack=$withval
275COLPACK_CFLAGS="$ac_adolc_openmpflag -I$colpack/include"
276COLPACK_LIBDIR="$colpack/${_lib}"
277COLPACK_LIBS="$ac_adolc_openmpflag -L$COLPACK_LIBDIR -lColPack"
278],
279[
280COLPACK_CFLAGS="$ac_adolc_openmpflag"
281COLPACK_LIBDIR=""
282COLPACK_LIBS="-lColPack"
283])
284
285AC_LANG_PUSH([C++])
286save_CPPFLAGS="$CPPFLAGS"
287save_LIBS="$LIBS"
288CPPFLAGS="$CPPFLAGS $COLPACK_CFLAGS"
289LIBS="$COLPACK_LIBS $LIBS"
290AC_CHECK_HEADER([ColPack/ColPackHeaders.h],[have_colpackheaders=yes],[have_colpackheaders=no])
291if test x$have_colpackheaders = xyes ; then
292   AC_MSG_CHECKING(for libColPack in $COLPACK_LIBDIR)
293   AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <ColPack/ColPackHeaders.h>],
294                        [ColPack::GraphColoring g])],
295                       [have_colpack=yes],
296                       [have_colpack=no])
297   AC_MSG_RESULT($have_colpack)
298else
299    have_colpack=no
300fi
301CPPFLAGS="$save_CPPFLAGS"
302LIBS="$save_LIBS"
303AC_LANG_POP([C++])
304
305AM_CONDITIONAL(HAVE_LIBCOLPACK,[test x$have_colpack = xyes])
306if test x$have_colpack = xyes; then
307   sparse=yes
308   echo "will build sparse drivers as linking with -lColPack succeeded"
309fi
310AM_CONDITIONAL(SPARSE,[test x${sparse} = xyes])
311
312if test x$sparse = xyes && test x$have_colpack = xyes; then
313        AC_DEFINE(HAVE_LIBCOLPACK,[1],[Define 1 if ColPack is available])
314else
315        COLPACK_CFLAGS=""
316        COLPACK_LIBS=""
317fi
318AC_SUBST(COLPACK_CFLAGS)
319AC_SUBST(COLPACK_LIBS)
320
321# ADOL-C Examples
322AC_MSG_CHECKING(whether to build documented examples)
323AC_ARG_ENABLE(docexa,
324            [
325AS_HELP_STRING([--enable-docexa],[build documented examples [default=disabled]])],
326            [docexa=$enableval
327             AC_MSG_RESULT(yes)],
328            [docexa="no"
329             AC_MSG_RESULT(no)])
330AM_CONDITIONAL(DOCEXA,[test x${docexa} = xyes])
331
332AC_MSG_CHECKING(whether to build additional examples)
333AC_ARG_ENABLE(addexa,
334            [AS_HELP_STRING([--enable-addexa],
335                            [build additional examples [default=disabled]])],
336            [addexa=$enableval
337             AC_MSG_RESULT(yes)],
338            [addexa="no"
339             AC_MSG_RESULT(no)])
340AM_CONDITIONAL(ADDEXA,[test x${addexa} = xyes])
341
342AC_MSG_CHECKING(whether to build parallel example)
343AC_ARG_ENABLE(parexa,
344            [AS_HELP_STRING([--enable-parexa],
345                            [build parallel example [default=disabled], if enabled -with-openmp-flag=FLAG required])],
346            [parexa=$enableval
347             AC_MSG_RESULT(yes)],
348            [parexa="no"
349             AC_MSG_RESULT(no)])
350AM_CONDITIONAL(PAREXA,[test x${parexa} = xyes])
351
352# ADOL-C Compilation flags
353AC_MSG_CHECKING(which CFLAGS to use)
354AC_ARG_WITH(cflags,
355            [AS_HELP_STRING([--with-cflags=FLAGS],
356                            [use CFLAGS=FLAGS (default: -O2)])],
357            [ac_adolc_cflags="$withval"
358             if test x${adolc_debug} == xyes ||
359                test x${adolc_harddebug} == xyes ; then
360                ac_adolc_cflags="$ac_adolc_cflags -g -O0"
361             fi
362             ac_adolc_cflags="$ac_adolc_cflags $ac_adolc_openmpflag"
363             AC_SUBST(ac_adolc_cflags)
364             AC_MSG_RESULT($ac_adolc_cflags)],
365            [if test "$ac_shell_cflags" = "not_set"; then
366                ac_adolc_cflags="-O2"
367                if test x${adolc_debug} == xyes ||
368                   test x${adolc_harddebug} == xyes ; then
369                   ac_adolc_cflags="-g -O3 -Wall -ansi"
370                fi
371             else
372                ac_adolc_cflags="$CFLAGS"
373             fi
374             ac_adolc_cflags="$ac_adolc_cflags $ac_adolc_openmpflag"
375
376             AC_SUBST(ac_adolc_cflags)
377             AC_MSG_RESULT($ac_adolc_cflags)])
378
379AC_MSG_CHECKING(which CXXFLAGS to use)
380AC_ARG_WITH(cxxflags,
381            [AS_HELP_STRING([--with-cxxflags=FLAGS],
382                            [use CXXFLAGS=FLAGS (default: -O2)])],
383            [ac_adolc_cxxflags="$withval"
384             if test x${adolc_debug} == xyes ||
385                test x${adolc_harddebug} == xyes ; then
386                ac_adolc_cxxflags="$ac_adolc_cxxflags -g -O0"
387             fi
388             ac_adolc_cxxflags="$ac_adolc_cxxflags $ac_adolc_openmpflag"
389             AC_SUBST(ac_adolc_cxxflags)
390             AC_MSG_RESULT($ac_adolc_cxxflags)],
391            [if test "$ac_shell_cxxflags" = "not_set"; then
392                ac_adolc_cxxflags="-O2"
393                if test x${adolc_debug} == xyes ||
394                   test x${adolc_harddebug} == xyes ; then
395                   ac_adolc_cxxflags="-g -O0 -Wall"
396                fi
397             else
398                ac_adolc_cxxflags="$CXXFLAGS"
399             fi
400             ac_adolc_cxxflags="$ac_adolc_cxxflags $ac_adolc_openmpflag"
401            AC_SUBST(ac_adolc_cxxflags)
402             AC_MSG_RESULT($ac_adolc_cxxflags)])
403
404###########################################################################
405#                      COIN_PATCH_LIBTOOL_CYGWIN                          #
406###########################################################################
407
408# Patches to libtool for cygwin. Lots for cl, a few for GCC.
409# For cl:
410# - cygpath is not correctly quoted in fix_srcfile_path
411# - paths generated for .lib files is not run through cygpath -w
412
413#
414# REQUIRED FOR COMPILATION WITH CYGWIN !!!
415#
416 
417
418AC_DEFUN([AC_COIN_PATCH_LIBTOOL_CYGWIN],
419[ case "$CXX" in
420    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
421      AC_MSG_NOTICE(Applying patches to libtool for cl compiler)
422      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
423          -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
424          -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
425          -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
426          -e 's%lib /OUT:%lib -OUT:%' \
427          -e "s%cygpath -w%$CYGPATH_W%" \
428          -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo '"$mydos2unix"'\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
429          -e 's/$AR t/lib -nologo -list/' \
430          -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
431          -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
432          -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \
433      libtool > conftest.bla
434
435      mv conftest.bla libtool
436      chmod 755 libtool
437      ;;
438    *)
439      AC_MSG_NOTICE(Applying patches to libtool for GNU compiler)
440      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
441          -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
442          -e 's|libext="lib"|libext="a"|' \
443      libtool > conftest.bla
444
445      mv conftest.bla libtool
446      chmod 755 libtool
447      ;;
448  esac ]) # COIN_PATCH_LIBTOOL_CYGWIN
449 
450
451# output
452AC_CONFIG_FILES(Makefile
453                ADOL-C/Makefile
454                ADOL-C/include/Makefile
455                ADOL-C/include/adolc/Makefile
456                ADOL-C/include/adolc/adolc_settings.h
457                ADOL-C/include/adolc/drivers/Makefile
458                ADOL-C/include/adolc/sparse/Makefile
459                ADOL-C/include/adolc/tapedoc/Makefile
460                ADOL-C/src/Makefile
461                ADOL-C/src/drivers/Makefile
462                ADOL-C/src/sparse/Makefile
463                ADOL-C/src/tapedoc/Makefile
464                ADOL-C/doc/version.tex
465                ADOL-C/examples/Makefile
466                ADOL-C/examples/additional_examples/Makefile
467                ADOL-C/examples/additional_examples/cuda/Makefile
468                ADOL-C/examples/additional_examples/clock/Makefile
469                ADOL-C/examples/additional_examples/checkpointing/Makefile
470                ADOL-C/examples/additional_examples/ext_diff_func/Makefile
471                ADOL-C/examples/additional_examples/fixpoint_exam/Makefile
472                ADOL-C/examples/additional_examples/hessmat/Makefile
473                ADOL-C/examples/additional_examples/lufact/Makefile
474                ADOL-C/examples/additional_examples/openmp_exam/Makefile
475                ADOL-C/examples/additional_examples/scal/Makefile
476                ADOL-C/examples/additional_examples/speelpenning/Makefile
477                ADOL-C/examples/additional_examples/taylor/Makefile
478                ADOL-C/examples/additional_examples/detexam/Makefile
479                ADOL-C/examples/additional_examples/helm/Makefile
480                ADOL-C/examples/additional_examples/lighthouse/Makefile
481                ADOL-C/examples/additional_examples/ode/Makefile
482                ADOL-C/examples/additional_examples/sparse/Makefile
483                ADOL-C/examples/additional_examples/tapesave/Makefile
484                ADOL-C/examples/additional_examples/pow/Makefile
485                ADOL-C/examples/additional_examples/timing/Makefile
486                ADOL-C/test/Makefile
487                MSVisualStudio/v10/sparse/config.h
488                MSVisualStudio/v10/nosparse/config.h
489                MSVisualStudio/v10/x64/sparse/config.h
490                MSVisualStudio/v10/x64/nosparse/config.h
491                adolc.spec
492)
493
494AC_OUTPUT
495
496#call libtool for cygwin
497AC_COIN_PATCH_LIBTOOL_CYGWIN
498warn=false
499# echo configuration
500echo \
501"
502-----------------------------------------------------------------------------
503Configuration:
504
505  C compiler:                         ${CC}
506  C++ compiler:                       ${CXX}
507  Linker:                             ${LD}
508  Source code location:               `pwd`
509  Install path:                       ${prefix}
510 
511  CFLAGS:                             ${ac_adolc_cflags}
512  CXXFLAGS:                           ${ac_adolc_cxxflags}
513
514  Use ADOL-C debug mode:              ${adolc_debug}
515  Use ADOL-C hard debug mode:         ${adolc_harddebug}
516  Zero value in adouble default ctor: ${adolc_stdczero}"
517
518if [[ "x${ac_adolc_openmpflag}" != "x" ]] ; then
519    echo \
520"  Access thread number via errno:     ${adolc_tserrno}"
521fi
522
523echo \
524"  Use ADOL-C safe extern mode:        ${adolc_safe_extern}
525
526  Build sparse drivers:               ${sparse}
527  Build with ColPack:                 ${have_colpack}"
528if test x$sparse = xyes && test x$have_colpack = xno; then
529    echo -e \
530"  \033@<:@1;31mCompressed sparse structures will not be available
531  Only sparsity patterns can be computed\033@<:@0m"
532    warn=true
533fi
534echo
535
536echo \
537"  Build documented examples:          ${docexa}
538  Build additional examples:          ${addexa}
539
540  See ADOL-C/src/config.h for further configuration information.
541-----------------------------------------------------------------------------"
542
543# check for make install problems resulting from missing write permission
544pdir=${prefix}
545writable=true
546while test "x${pdir}" != "x/" ; do
547    if test -e ${pdir} && test ! -w ${pdir}; then
548        writable=false
549        break
550    elif test ! -e ${pdir} ; then
551        pdir=`dirname ${pdir}`
552    else
553        break
554    fi
555done
556if test "x${pdir}" == "x/" ; then
557    writable=false
558fi
559if ! ${writable} ; then
560    echo -e \
561"  \033@<:@1;31mPrefix ${prefix} not writable
562  please run ./configure --prefix=DIR
563  with a writable directory path otherwise administrator privilages
564  will be required to run \`make install'\033@<:@0m"
565    warn=true
566fi
567
568case ${prefix} in
569   ${HOME}|${HOME}/*)
570if $warn ; then
571    for (( i=5; i>0; i-- )); do
572        echo -ne "\rPlease read the above messages carefully, continuing in ${i} seconds"
573        sleep 1
574    done
575    echo -e "\rPlease read the above messages carefully                                 "
576fi
577echo \
578"
579*****************************************************************************
580
581  To successfully compile and run programs using the ADOL-C shared library do
582  the following things:
583     compiling:
584        * add \"-I${prefix}/include\" to your compiler call
585     linking:
586        * add \"-L${prefix}/${_lib} -ladolc\" to your linker call
587        * extend your linker call by \"-Wl,--rpath -Wl,${prefix}/${_lib}\"
588          (if you wish to skip the point \"executing\")
589     executing (do one of the following things):
590        * add ${prefix}/${_lib} to your LD_LIBRARY_PATH variable
591        * ask your system administrator for adding ${prefix}/${_lib} to
592          the global file containing library search paths (/etc/ld.so.conf)
593
594     (or use the static library by replacing
595        \"-L${prefix}/${_lib} -ladolc\" with
596        \"${prefix}/${_lib}/libadolc.a\" when linking)
597
598  See README for instructions on how to change to a nonlocal installation!
599
600*****************************************************************************
601"
602;;
603esac
Note: See TracBrowser for help on using the repository browser.