source: stable/2.4/configure.ac @ 398

Last change on this file since 398 was 398, checked in by kulshres, 7 years ago

update version and regenerate files

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

  • 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 398 2013-01-29 10:26:39Z 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-stable,
17        [adol-c@list.coin-or.org])
18config_flags="$*"
19AC_REVISION($Revision: 398 $)
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/clock/Makefile
468                ADOL-C/examples/additional_examples/checkpointing/Makefile
469                ADOL-C/examples/additional_examples/ext_diff_func/Makefile
470                ADOL-C/examples/additional_examples/fixpoint_exam/Makefile
471                ADOL-C/examples/additional_examples/hessmat/Makefile
472                ADOL-C/examples/additional_examples/lufact/Makefile
473                ADOL-C/examples/additional_examples/openmp_exam/Makefile
474                ADOL-C/examples/additional_examples/scal/Makefile
475                ADOL-C/examples/additional_examples/speelpenning/Makefile
476                ADOL-C/examples/additional_examples/taylor/Makefile
477                ADOL-C/examples/additional_examples/detexam/Makefile
478                ADOL-C/examples/additional_examples/helm/Makefile
479                ADOL-C/examples/additional_examples/lighthouse/Makefile
480                ADOL-C/examples/additional_examples/ode/Makefile
481                ADOL-C/examples/additional_examples/sparse/Makefile
482                ADOL-C/examples/additional_examples/tapesave/Makefile
483                ADOL-C/examples/additional_examples/pow/Makefile
484                ADOL-C/examples/additional_examples/timing/Makefile
485                ADOL-C/test/Makefile
486                MSVisualStudio/v10/sparse/config.h
487                MSVisualStudio/v10/nosparse/config.h
488                MSVisualStudio/v10/x64/sparse/config.h
489                MSVisualStudio/v10/x64/nosparse/config.h
490                adolc.spec
491)
492
493AC_OUTPUT
494
495#call libtool for cygwin
496AC_COIN_PATCH_LIBTOOL_CYGWIN
497warn=false
498# echo configuration
499echo \
500"
501-----------------------------------------------------------------------------
502Configuration:
503
504  C compiler:                         ${CC}
505  C++ compiler:                       ${CXX}
506  Linker:                             ${LD}
507  Source code location:               `pwd`
508  Install path:                       ${prefix}
509 
510  CFLAGS:                             ${ac_adolc_cflags}
511  CXXFLAGS:                           ${ac_adolc_cxxflags}
512
513  Use ADOL-C debug mode:              ${adolc_debug}
514  Use ADOL-C hard debug mode:         ${adolc_harddebug}
515  Zero value in adouble default ctor: ${adolc_stdczero}"
516
517if [[ "x${ac_adolc_openmpflag}" != "x" ]] ; then
518    echo \
519"  Access thread number via errno:     ${adolc_tserrno}"
520fi
521
522echo \
523"  Use ADOL-C safe extern mode:        ${adolc_safe_extern}
524
525  Build sparse drivers:               ${sparse}
526  Build with ColPack:                 ${have_colpack}"
527if test x$sparse = xyes && test x$have_colpack = xno; then
528    echo -e \
529"  \033@<:@1;31mCompressed sparse structures will not be available
530  Only sparsity patterns can be computed\033@<:@0m"
531    warn=true
532fi
533echo
534
535echo \
536"  Build documented examples:          ${docexa}
537  Build additional examples:          ${addexa}
538
539  See ADOL-C/src/config.h for further configuration information.
540-----------------------------------------------------------------------------"
541
542# check for make install problems resulting from missing write permission
543pdir=${prefix}
544writable=true
545while test "x${pdir}" != "x/" ; do
546    if test -e ${pdir} && test ! -w ${pdir}; then
547        writable=false
548        break
549    elif test ! -e ${pdir} ; then
550        pdir=`dirname ${pdir}`
551    else
552        break
553    fi
554done
555if test "x${pdir}" == "x/" ; then
556    writable=false
557fi
558if ! ${writable} ; then
559    echo -e \
560"  \033@<:@1;31mPrefix ${prefix} not writable
561  please run ./configure --prefix=DIR
562  with a writable directory path otherwise administrator privilages
563  will be required to run \`make install'\033@<:@0m"
564    warn=true
565fi
566
567case ${prefix} in
568   ${HOME}|${HOME}/*)
569if $warn ; then
570    for (( i=5; i>0; i-- )); do
571        echo -ne "\rPlease read the above messages carefully, continuing in ${i} seconds"
572        sleep 1
573    done
574    echo -e "\rPlease read the above messages carefully                                 "
575fi
576echo \
577"
578*****************************************************************************
579
580  To successfully compile and run programs using the ADOL-C shared library do
581  the following things:
582     compiling:
583        * add \"-I${prefix}/include\" to your compiler call
584     linking:
585        * add \"-L${prefix}/${_lib} -ladolc\" to your linker call
586        * extend your linker call by \"-Wl,--rpath -Wl,${prefix}/${_lib}\"
587          (if you wish to skip the point \"executing\")
588     executing (do one of the following things):
589        * add ${prefix}/${_lib} to your LD_LIBRARY_PATH variable
590        * ask your system administrator for adding ${prefix}/${_lib} to
591          the global file containing library search paths (/etc/ld.so.conf)
592
593     (or use the static library by replacing
594        \"-L${prefix}/${_lib} -ladolc\" with
595        \"${prefix}/${_lib}/libadolc.a\" when linking)
596
597  See README for instructions on how to change to a nonlocal installation!
598
599*****************************************************************************
600"
601;;
602esac
Note: See TracBrowser for help on using the repository browser.