source: trunk/configure @ 3803

Last change on this file since 3803 was 3803, checked in by bradbell, 4 years ago

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: d75b0cba62a41b958b974a326168299773bc4614
end hash code: 8dd8b10d36b325a3f4bbf3c03f1ea00e288331ae

commit 8dd8b10d36b325a3f4bbf3c03f1ea00e288331ae
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 20:25:17 2016 -0700

  1. replace multiple */test_one.sh.in by one bin/test_one.sh.
  2. remove test_one.sh.in from auto-tools build.

commit e524af11d04938103d42963e393b3637616dc278
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 10:02:38 2016 -0700

Move solve.cpp -> ipopt_solve.cpp so has same name as its directory.

commit 4714099e4eef9226536760e206f988440eec2f48
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 09:50:37 2016 -0700

Use system include option to supress all warnings in eigen and fadbad source.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 266.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cppad 20160318.
4#
5# Report bugs to <cppad@list.coin-or.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62        expr "X$arg" : "X\\(.*\\)$as_nl";
63        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""        $as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218         /*)
219           for as_base in sh bash ksh sh5; do
220             # Try only shells that exist, to save several forks.
221             as_shell=$as_dir/$as_base
222             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229           done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: cppad@list.coin-or.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334         X"$as_dir" : 'X\(//\)[^/]' \| \
335         X"$as_dir" : 'X\(//\)$' \| \
336         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339            s//\1/
340            q
341          }
342          /^X\(\/\/\)[^/].*/{
343            s//\1/
344            q
345          }
346          /^X\(\/\/\)$/{
347            s//\1/
348            q
349          }
350          /^X\(\/\).*/{
351            s//\1/
352            q
353          }
354          s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443         X"$0" : 'X\(//\)$' \| \
444         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447            s//\1/
448            q
449          }
450          /^X\/\(\/\/\)$/{
451            s//\1/
452            q
453          }
454          /^X\/\(\/\).*/{
455            s//\1/
456            q
457          }
458          s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T=' ';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='cppad'
582PACKAGE_TARNAME='cppad'
583PACKAGE_VERSION='20160318'
584PACKAGE_STRING='cppad 20160318'
585PACKAGE_BUGREPORT='cppad@list.coin-or.org'
586PACKAGE_URL=''
587
588ac_default_prefix=${HOME}
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_unique_file="cppad/cppad.hpp"
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630ipopt_prefix
631eigen_prefix
632adolc_prefix
633cppad_SOURCE_DIR
634cppad_pkgconfig_requires
635cppad_pkgconfig_libs
636cppad_pkgconfig_cflags
637cppad_url
638cppad_version
639cppad_description
640CPPAD_IPOPT_LIBS
641CPPAD_IPOPT_LD_PATH
642BTHREAD_LIB
643CppAD_BTHREAD_FALSE
644CppAD_BTHREAD_TRUE
645DL_LIB
646PTHREAD_LIB
647CppAD_PTHREAD_FALSE
648CppAD_PTHREAD_TRUE
649ABS_TOP_SRCDIR
650ABS_TOP_BUILDDIR
651FCLIBS
652host_os
653host_vendor
654host_cpu
655host
656build_os
657build_vendor
658build_cpu
659build
660CppAD_MS_COMPILER_FALSE
661CppAD_MS_COMPILER_TRUE
662RANLIB
663cppad_has_gettimeofday
664cppad_cppadvector
665cppad_size_t_not_unsigned_int
666EGREP
667GREP
668CPP
669cppad_has_high_resolution_clock
670cppad_use_cplusplus_2011
671cppad_has_cstdint_8_to_64
672cppad_has_rvalue
673cppad_has_nullptr
674cppad_has_mkstemp
675cppad_has_colpack
676cppad_cxx_flags
677CppAD_HAVE_AR_FALSE
678CppAD_HAVE_AR_TRUE
679CppAD_PKG_CONFIG_FALSE
680CppAD_PKG_CONFIG_TRUE
681have_pkg_config
682ac_ct_FC
683FCFLAGS
684FC
685am__fastdepCXX_FALSE
686am__fastdepCXX_TRUE
687CXXDEPMODE
688ac_ct_CXX
689CXXFLAGS
690CXX
691cppad_tape_id_type
692TAPE_ID_TYPE
693cppad_tape_addr_type
694TAPE_ADDR_TYPE
695cppad_max_num_threads
696MAX_NUM_THREADS
697CppAD_OPENMP_FALSE
698CppAD_OPENMP_TRUE
699OPENMP_FLAGS
700CXX_FLAGS_EIGEN
701CXX_FLAGS_FADBAD
702CXX_FLAGS
703BOOST_INCLUDE
704CppAD_BOOST_DIR_FALSE
705CppAD_BOOST_DIR_TRUE
706BOOST_DIR
707CppAD_IPOPT_FALSE
708CppAD_IPOPT_TRUE
709IPOPT_DIR
710CppAD_SACADO_FALSE
711CppAD_SACADO_TRUE
712SACADO_DIR
713CppAD_FADBAD_FALSE
714CppAD_FADBAD_TRUE
715FADBAD_DIR
716EIGEN_INCLUDE
717CppAD_EIGEN_DIR_FALSE
718CppAD_EIGEN_DIR_TRUE
719EIGEN_DIR
720CppAD_ADOLC_FALSE
721CppAD_ADOLC_TRUE
722ADOLC_DIR
723CppAD_POSTFIX_FALSE
724CppAD_POSTFIX_TRUE
725POSTFIX_DIR
726cppad_deprecated
727CppAD_DEPRECATED_FALSE
728CppAD_DEPRECATED_TRUE
729cppad_eigenvector
730cppad_boostvector
731cppad_stdvector
732CppAD_DOCUMENTATION_FALSE
733CppAD_DOCUMENTATION_TRUE
734am__fastdepCC_FALSE
735am__fastdepCC_TRUE
736CCDEPMODE
737am__nodep
738AMDEPBACKSLASH
739AMDEP_FALSE
740AMDEP_TRUE
741am__quote
742am__include
743DEPDIR
744OBJEXT
745EXEEXT
746ac_ct_CC
747CPPFLAGS
748LDFLAGS
749CFLAGS
750CC
751ac_ct_AR
752AR
753am__untar
754am__tar
755AMTAR
756am__leading_dot
757SET_MAKE
758AWK
759mkdir_p
760MKDIR_P
761INSTALL_STRIP_PROGRAM
762STRIP
763install_sh
764MAKEINFO
765AUTOHEADER
766AUTOMAKE
767AUTOCONF
768ACLOCAL
769VERSION
770PACKAGE
771CYGPATH_W
772am__isrc
773INSTALL_DATA
774INSTALL_SCRIPT
775INSTALL_PROGRAM
776MAINT
777MAINTAINER_MODE_FALSE
778MAINTAINER_MODE_TRUE
779AM_BACKSLASH
780AM_DEFAULT_VERBOSITY
781AM_DEFAULT_V
782AM_V
783target_alias
784host_alias
785build_alias
786LIBS
787ECHO_T
788ECHO_N
789ECHO_C
790DEFS
791mandir
792localedir
793libdir
794psdir
795pdfdir
796dvidir
797htmldir
798infodir
799docdir
800oldincludedir
801includedir
802localstatedir
803sharedstatedir
804sysconfdir
805datadir
806datarootdir
807libexecdir
808sbindir
809bindir
810program_transform_name
811prefix
812exec_prefix
813PACKAGE_URL
814PACKAGE_BUGREPORT
815PACKAGE_STRING
816PACKAGE_VERSION
817PACKAGE_TARNAME
818PACKAGE_NAME
819PATH_SEPARATOR
820SHELL'
821ac_subst_files=''
822ac_user_opts='
823enable_option_checking
824enable_silent_rules
825enable_maintainer_mode
826enable_dependency_tracking
827with_SpeedExample
828with_profiling
829with_Speed
830with_Introduction
831with_Example
832with_TestMore
833with_PrintFor
834with_sparse_set
835with_sparse_list
836enable_msvc
837with_Documentation
838with_stdvector
839with_boostvector
840with_eigenvector
841with_deprecated
842'
843      ac_precious_vars='build_alias
844host_alias
845target_alias
846CC
847CFLAGS
848LDFLAGS
849LIBS
850CPPFLAGS
851POSTFIX_DIR
852ADOLC_DIR
853EIGEN_DIR
854FADBAD_DIR
855SACADO_DIR
856IPOPT_DIR
857BOOST_DIR
858CXX_FLAGS
859OPENMP_FLAGS
860MAX_NUM_THREADS
861TAPE_ADDR_TYPE
862TAPE_ID_TYPE
863CXX
864CXXFLAGS
865CCC
866FC
867FCFLAGS
868CPP'
869
870
871# Initialize some variables set by options.
872ac_init_help=
873ac_init_version=false
874ac_unrecognized_opts=
875ac_unrecognized_sep=
876# The variables have the same names as the options, with
877# dashes changed to underlines.
878cache_file=/dev/null
879exec_prefix=NONE
880no_create=
881no_recursion=
882prefix=NONE
883program_prefix=NONE
884program_suffix=NONE
885program_transform_name=s,x,x,
886silent=
887site=
888srcdir=
889verbose=
890x_includes=NONE
891x_libraries=NONE
892
893# Installation directory options.
894# These are left unexpanded so users can "make install exec_prefix=/foo"
895# and all the variables that are supposed to be based on exec_prefix
896# by default will actually change.
897# Use braces instead of parens because sh, perl, etc. also accept them.
898# (The list follows the same order as the GNU Coding Standards.)
899bindir='${exec_prefix}/bin'
900sbindir='${exec_prefix}/sbin'
901libexecdir='${exec_prefix}/libexec'
902datarootdir='${prefix}/share'
903datadir='${datarootdir}'
904sysconfdir='${prefix}/etc'
905sharedstatedir='${prefix}/com'
906localstatedir='${prefix}/var'
907includedir='${prefix}/include'
908oldincludedir='/usr/include'
909docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910infodir='${datarootdir}/info'
911htmldir='${docdir}'
912dvidir='${docdir}'
913pdfdir='${docdir}'
914psdir='${docdir}'
915libdir='${exec_prefix}/lib'
916localedir='${datarootdir}/locale'
917mandir='${datarootdir}/man'
918
919ac_prev=
920ac_dashdash=
921for ac_option
922do
923  # If the previous option needs an argument, assign it.
924  if test -n "$ac_prev"; then
925    eval $ac_prev=\$ac_option
926    ac_prev=
927    continue
928  fi
929
930  case $ac_option in
931  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932  *=)   ac_optarg= ;;
933  *)    ac_optarg=yes ;;
934  esac
935
936  # Accept the important Cygnus configure options, so we can diagnose typos.
937
938  case $ac_dashdash$ac_option in
939  --)
940    ac_dashdash=yes ;;
941
942  -bindir | --bindir | --bindi | --bind | --bin | --bi)
943    ac_prev=bindir ;;
944  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945    bindir=$ac_optarg ;;
946
947  -build | --build | --buil | --bui | --bu)
948    ac_prev=build_alias ;;
949  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950    build_alias=$ac_optarg ;;
951
952  -cache-file | --cache-file | --cache-fil | --cache-fi \
953  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954    ac_prev=cache_file ;;
955  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957    cache_file=$ac_optarg ;;
958
959  --config-cache | -C)
960    cache_file=config.cache ;;
961
962  -datadir | --datadir | --datadi | --datad)
963    ac_prev=datadir ;;
964  -datadir=* | --datadir=* | --datadi=* | --datad=*)
965    datadir=$ac_optarg ;;
966
967  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968  | --dataroo | --dataro | --datar)
969    ac_prev=datarootdir ;;
970  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972    datarootdir=$ac_optarg ;;
973
974  -disable-* | --disable-*)
975    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976    # Reject names that are not valid shell variable names.
977    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978      as_fn_error $? "invalid feature name: $ac_useropt"
979    ac_useropt_orig=$ac_useropt
980    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981    case $ac_user_opts in
982      *"
983"enable_$ac_useropt"
984"*) ;;
985      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
986         ac_unrecognized_sep=', ';;
987    esac
988    eval enable_$ac_useropt=no ;;
989
990  -docdir | --docdir | --docdi | --doc | --do)
991    ac_prev=docdir ;;
992  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993    docdir=$ac_optarg ;;
994
995  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996    ac_prev=dvidir ;;
997  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998    dvidir=$ac_optarg ;;
999
1000  -enable-* | --enable-*)
1001    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002    # Reject names that are not valid shell variable names.
1003    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004      as_fn_error $? "invalid feature name: $ac_useropt"
1005    ac_useropt_orig=$ac_useropt
1006    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007    case $ac_user_opts in
1008      *"
1009"enable_$ac_useropt"
1010"*) ;;
1011      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012         ac_unrecognized_sep=', ';;
1013    esac
1014    eval enable_$ac_useropt=\$ac_optarg ;;
1015
1016  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018  | --exec | --exe | --ex)
1019    ac_prev=exec_prefix ;;
1020  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022  | --exec=* | --exe=* | --ex=*)
1023    exec_prefix=$ac_optarg ;;
1024
1025  -gas | --gas | --ga | --g)
1026    # Obsolete; use --with-gas.
1027    with_gas=yes ;;
1028
1029  -help | --help | --hel | --he | -h)
1030    ac_init_help=long ;;
1031  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032    ac_init_help=recursive ;;
1033  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034    ac_init_help=short ;;
1035
1036  -host | --host | --hos | --ho)
1037    ac_prev=host_alias ;;
1038  -host=* | --host=* | --hos=* | --ho=*)
1039    host_alias=$ac_optarg ;;
1040
1041  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042    ac_prev=htmldir ;;
1043  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044  | --ht=*)
1045    htmldir=$ac_optarg ;;
1046
1047  -includedir | --includedir | --includedi | --included | --include \
1048  | --includ | --inclu | --incl | --inc)
1049    ac_prev=includedir ;;
1050  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051  | --includ=* | --inclu=* | --incl=* | --inc=*)
1052    includedir=$ac_optarg ;;
1053
1054  -infodir | --infodir | --infodi | --infod | --info | --inf)
1055    ac_prev=infodir ;;
1056  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057    infodir=$ac_optarg ;;
1058
1059  -libdir | --libdir | --libdi | --libd)
1060    ac_prev=libdir ;;
1061  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062    libdir=$ac_optarg ;;
1063
1064  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065  | --libexe | --libex | --libe)
1066    ac_prev=libexecdir ;;
1067  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068  | --libexe=* | --libex=* | --libe=*)
1069    libexecdir=$ac_optarg ;;
1070
1071  -localedir | --localedir | --localedi | --localed | --locale)
1072    ac_prev=localedir ;;
1073  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074    localedir=$ac_optarg ;;
1075
1076  -localstatedir | --localstatedir | --localstatedi | --localstated \
1077  | --localstate | --localstat | --localsta | --localst | --locals)
1078    ac_prev=localstatedir ;;
1079  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081    localstatedir=$ac_optarg ;;
1082
1083  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084    ac_prev=mandir ;;
1085  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086    mandir=$ac_optarg ;;
1087
1088  -nfp | --nfp | --nf)
1089    # Obsolete; use --without-fp.
1090    with_fp=no ;;
1091
1092  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093  | --no-cr | --no-c | -n)
1094    no_create=yes ;;
1095
1096  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098    no_recursion=yes ;;
1099
1100  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102  | --oldin | --oldi | --old | --ol | --o)
1103    ac_prev=oldincludedir ;;
1104  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107    oldincludedir=$ac_optarg ;;
1108
1109  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110    ac_prev=prefix ;;
1111  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112    prefix=$ac_optarg ;;
1113
1114  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115  | --program-pre | --program-pr | --program-p)
1116    ac_prev=program_prefix ;;
1117  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119    program_prefix=$ac_optarg ;;
1120
1121  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122  | --program-suf | --program-su | --program-s)
1123    ac_prev=program_suffix ;;
1124  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126    program_suffix=$ac_optarg ;;
1127
1128  -program-transform-name | --program-transform-name \
1129  | --program-transform-nam | --program-transform-na \
1130  | --program-transform-n | --program-transform- \
1131  | --program-transform | --program-transfor \
1132  | --program-transfo | --program-transf \
1133  | --program-trans | --program-tran \
1134  | --progr-tra | --program-tr | --program-t)
1135    ac_prev=program_transform_name ;;
1136  -program-transform-name=* | --program-transform-name=* \
1137  | --program-transform-nam=* | --program-transform-na=* \
1138  | --program-transform-n=* | --program-transform-=* \
1139  | --program-transform=* | --program-transfor=* \
1140  | --program-transfo=* | --program-transf=* \
1141  | --program-trans=* | --program-tran=* \
1142  | --progr-tra=* | --program-tr=* | --program-t=*)
1143    program_transform_name=$ac_optarg ;;
1144
1145  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146    ac_prev=pdfdir ;;
1147  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148    pdfdir=$ac_optarg ;;
1149
1150  -psdir | --psdir | --psdi | --psd | --ps)
1151    ac_prev=psdir ;;
1152  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153    psdir=$ac_optarg ;;
1154
1155  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156  | -silent | --silent | --silen | --sile | --sil)
1157    silent=yes ;;
1158
1159  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160    ac_prev=sbindir ;;
1161  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162  | --sbi=* | --sb=*)
1163    sbindir=$ac_optarg ;;
1164
1165  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167  | --sharedst | --shareds | --shared | --share | --shar \
1168  | --sha | --sh)
1169    ac_prev=sharedstatedir ;;
1170  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173  | --sha=* | --sh=*)
1174    sharedstatedir=$ac_optarg ;;
1175
1176  -site | --site | --sit)
1177    ac_prev=site ;;
1178  -site=* | --site=* | --sit=*)
1179    site=$ac_optarg ;;
1180
1181  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182    ac_prev=srcdir ;;
1183  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184    srcdir=$ac_optarg ;;
1185
1186  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187  | --syscon | --sysco | --sysc | --sys | --sy)
1188    ac_prev=sysconfdir ;;
1189  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191    sysconfdir=$ac_optarg ;;
1192
1193  -target | --target | --targe | --targ | --tar | --ta | --t)
1194    ac_prev=target_alias ;;
1195  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196    target_alias=$ac_optarg ;;
1197
1198  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199    verbose=yes ;;
1200
1201  -version | --version | --versio | --versi | --vers | -V)
1202    ac_init_version=: ;;
1203
1204  -with-* | --with-*)
1205    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206    # Reject names that are not valid shell variable names.
1207    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208      as_fn_error $? "invalid package name: $ac_useropt"
1209    ac_useropt_orig=$ac_useropt
1210    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211    case $ac_user_opts in
1212      *"
1213"with_$ac_useropt"
1214"*) ;;
1215      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216         ac_unrecognized_sep=', ';;
1217    esac
1218    eval with_$ac_useropt=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224      as_fn_error $? "invalid package name: $ac_useropt"
1225    ac_useropt_orig=$ac_useropt
1226    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227    case $ac_user_opts in
1228      *"
1229"with_$ac_useropt"
1230"*) ;;
1231      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232         ac_unrecognized_sep=', ';;
1233    esac
1234    eval with_$ac_useropt=no ;;
1235
1236  --x)
1237    # Obsolete; use --with-x.
1238    with_x=yes ;;
1239
1240  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241  | --x-incl | --x-inc | --x-in | --x-i)
1242    ac_prev=x_includes ;;
1243  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245    x_includes=$ac_optarg ;;
1246
1247  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249    ac_prev=x_libraries ;;
1250  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252    x_libraries=$ac_optarg ;;
1253
1254  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255Try \`$0 --help' for more information"
1256    ;;
1257
1258  *=*)
1259    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260    # Reject names that are not valid shell variable names.
1261    case $ac_envvar in #(
1262      '' | [0-9]* | *[!_$as_cr_alnum]* )
1263      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264    esac
1265    eval $ac_envvar=\$ac_optarg
1266    export $ac_envvar ;;
1267
1268  *)
1269    # FIXME: should be removed in autoconf 3.0.
1270    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1274    ;;
1275
1276  esac
1277done
1278
1279if test -n "$ac_prev"; then
1280  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281  as_fn_error $? "missing argument to $ac_option"
1282fi
1283
1284if test -n "$ac_unrecognized_opts"; then
1285  case $enable_option_checking in
1286    no) ;;
1287    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289  esac
1290fi
1291
1292# Check all directory arguments for consistency.
1293for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294                datadir sysconfdir sharedstatedir localstatedir includedir \
1295                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296                libdir localedir mandir
1297do
1298  eval ac_val=\$$ac_var
1299  # Remove trailing slashes.
1300  case $ac_val in
1301    */ )
1302      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303      eval $ac_var=\$ac_val;;
1304  esac
1305  # Be sure to have absolute directory names.
1306  case $ac_val in
1307    [\\/$]* | ?:[\\/]* )  continue;;
1308    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309  esac
1310  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1311done
1312
1313# There might be people who depend on the old broken behavior: `$host'
1314# used to hold the argument of --host etc.
1315# FIXME: To remove some day.
1316build=$build_alias
1317host=$host_alias
1318target=$target_alias
1319
1320# FIXME: To remove some day.
1321if test "x$host_alias" != x; then
1322  if test "x$build_alias" = x; then
1323    cross_compiling=maybe
1324  elif test "x$build_alias" != "x$host_alias"; then
1325    cross_compiling=yes
1326  fi
1327fi
1328
1329ac_tool_prefix=
1330test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332test "$silent" = yes && exec 6>/dev/null
1333
1334
1335ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336ac_ls_di=`ls -di .` &&
1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338  as_fn_error $? "working directory cannot be determined"
1339test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340  as_fn_error $? "pwd does not report name of working directory"
1341
1342
1343# Find the source files, if location was not specified.
1344if test -z "$srcdir"; then
1345  ac_srcdir_defaulted=yes
1346  # Try the directory containing this script, then the parent directory.
1347  ac_confdir=`$as_dirname -- "$as_myself" ||
1348$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349         X"$as_myself" : 'X\(//\)[^/]' \| \
1350         X"$as_myself" : 'X\(//\)$' \| \
1351         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352$as_echo X"$as_myself" |
1353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354            s//\1/
1355            q
1356          }
1357          /^X\(\/\/\)[^/].*/{
1358            s//\1/
1359            q
1360          }
1361          /^X\(\/\/\)$/{
1362            s//\1/
1363            q
1364          }
1365          /^X\(\/\).*/{
1366            s//\1/
1367            q
1368          }
1369          s/.*/./; q'`
1370  srcdir=$ac_confdir
1371  if test ! -r "$srcdir/$ac_unique_file"; then
1372    srcdir=..
1373  fi
1374else
1375  ac_srcdir_defaulted=no
1376fi
1377if test ! -r "$srcdir/$ac_unique_file"; then
1378  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1380fi
1381ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382ac_abs_confdir=`(
1383        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384        pwd)`
1385# When building in place, set srcdir=.
1386if test "$ac_abs_confdir" = "$ac_pwd"; then
1387  srcdir=.
1388fi
1389# Remove unnecessary trailing slashes from srcdir.
1390# Double slashes in file names in object file debugging info
1391# mess up M-x gdb in Emacs.
1392case $srcdir in
1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394esac
1395for ac_var in $ac_precious_vars; do
1396  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_env_${ac_var}_value=\$${ac_var}
1398  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400done
1401
1402#
1403# Report the --help message.
1404#
1405if test "$ac_init_help" = "long"; then
1406  # Omit some internal or obsolete options to make the list less imposing.
1407  # This message is too long to be a string in the A/UX 3.1 sh.
1408  cat <<_ACEOF
1409\`configure' configures cppad 20160318 to adapt to many kinds of systems.
1410
1411Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414VAR=VALUE.  See below for descriptions of some of the useful variables.
1415
1416Defaults for the options are specified in brackets.
1417
1418Configuration:
1419  -h, --help              display this help and exit
1420      --help=short        display options specific to this package
1421      --help=recursive    display the short help of all the included packages
1422  -V, --version           display version information and exit
1423  -q, --quiet, --silent   do not print \`checking ...' messages
1424      --cache-file=FILE   cache test results in FILE [disabled]
1425  -C, --config-cache      alias for \`--cache-file=config.cache'
1426  -n, --no-create         do not create output files
1427      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1428
1429Installation directories:
1430  --prefix=PREFIX         install architecture-independent files in PREFIX
1431                          [$ac_default_prefix]
1432  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1433                          [PREFIX]
1434
1435By default, \`make install' will install all the files in
1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1437an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438for instance \`--prefix=\$HOME'.
1439
1440For better control, use the options below.
1441
1442Fine tuning of the installation directories:
1443  --bindir=DIR            user executables [EPREFIX/bin]
1444  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1445  --libexecdir=DIR        program executables [EPREFIX/libexec]
1446  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1447  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1448  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1449  --libdir=DIR            object code libraries [EPREFIX/lib]
1450  --includedir=DIR        C header files [PREFIX/include]
1451  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1452  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1453  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1454  --infodir=DIR           info documentation [DATAROOTDIR/info]
1455  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1456  --mandir=DIR            man documentation [DATAROOTDIR/man]
1457  --docdir=DIR            documentation root [DATAROOTDIR/doc/cppad]
1458  --htmldir=DIR           html documentation [DOCDIR]
1459  --dvidir=DIR            dvi documentation [DOCDIR]
1460  --pdfdir=DIR            pdf documentation [DOCDIR]
1461  --psdir=DIR             ps documentation [DOCDIR]
1462_ACEOF
1463
1464  cat <<\_ACEOF
1465
1466Program names:
1467  --program-prefix=PREFIX            prepend PREFIX to installed program names
1468  --program-suffix=SUFFIX            append SUFFIX to installed program names
1469  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1470
1471System types:
1472  --build=BUILD     configure for building on BUILD [guessed]
1473  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478  case $ac_init_help in
1479     short | recursive ) echo "Configuration of cppad 20160318:";;
1480   esac
1481  cat <<\_ACEOF
1482
1483Optional Features:
1484  --disable-option-checking  ignore unrecognized --enable/--with options
1485  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487  --enable-silent-rules   less verbose build output (undo: "make V=1")
1488  --disable-silent-rules  verbose build output (undo: "make V=0")
1489  --enable-maintainer-mode
1490                          enable make rules and dependencies not useful (and
1491                          sometimes confusing) to the casual installer
1492  --enable-dependency-tracking
1493                          do not reject slow dependency extractors
1494  --disable-dependency-tracking
1495                          speeds up one-time build
1496  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1497
1498Optional Packages:
1499  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1500  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1501  --with-SpeedExample     is not necessary, see install instructions.
1502  --with-profiling        is not necessary, see install instructions.
1503  --with-Speed            is not necessary, see install instructions.
1504  --with-Introduction     is not necessary, see install instructions.
1505  --with-Example          is not necessary, see install instructions.
1506  --with-TestMore         is not necessary, see install instructions.
1507  --with-PrintFor         is not necessary, see install instructions.
1508  --with-sparse_set       no longer available
1509  --with-sparse_list      no longer necessary
1510  --with-Documentation    default is no
1511  --with-stdvector        default is no
1512  --with-boostvector      default is no
1513  --with-eigenvector      default is no
1514  --with-deprecated       include an implicit AD<Base> constructor from any
1515                          type
1516
1517Some influential environment variables:
1518  CC          C compiler command
1519  CFLAGS      C compiler flags
1520  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521              nonstandard directory <lib dir>
1522  LIBS        libraries to pass to the linker, e.g. -l<library>
1523  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524              you have headers in a nonstandard directory <include dir>
1525  POSTFIX_DIR postfix directory for CppAD installation
1526  ADOLC_DIR   value of configure prefix directory during Adolc install
1527  EIGEN_DIR   value of configure prefix directory during Eigen install
1528  FADBAD_DIR  parent directory directly above FADBAD++ directory
1529  SACADO_DIR  value of the configure prefix directory during Sacado install
1530  IPOPT_DIR   value of the configure prefix directory during Ipopt install
1531  BOOST_DIR   parent directory directly above boost directory
1532  CXX_FLAGS   CXXFLAGS is ignored, use CXX_FLAGS for compiler flags
1533  OPENMP_FLAGS
1534              flags that instruct compiler to interpret OpenMP directrives
1535  MAX_NUM_THREADS
1536              maximum number of threads that can be used with CppAD
1537  TAPE_ADDR_TYPE
1538              type used for addresses in AD tapes
1539  TAPE_ID_TYPE
1540              type used for addresses in AD tapes
1541  CXX         C++ compiler command
1542  CXXFLAGS    C++ compiler flags
1543  FC          Fortran compiler command
1544  FCFLAGS     Fortran compiler flags
1545  CPP         C preprocessor
1546
1547Use these variables to override the choices made by `configure' or to help
1548it to find libraries and programs with nonstandard names/locations.
1549
1550Report bugs to <cppad@list.coin-or.org>.
1551_ACEOF
1552ac_status=$?
1553fi
1554
1555if test "$ac_init_help" = "recursive"; then
1556  # If there are subdirs, report their specific --help.
1557  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558    test -d "$ac_dir" ||
1559      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560      continue
1561    ac_builddir=.
1562
1563case "$ac_dir" in
1564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565*)
1566  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567  # A ".." for each directory in $ac_dir_suffix.
1568  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569  case $ac_top_builddir_sub in
1570  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572  esac ;;
1573esac
1574ac_abs_top_builddir=$ac_pwd
1575ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576# for backward compatibility:
1577ac_top_builddir=$ac_top_build_prefix
1578
1579case $srcdir in
1580  .)  # We are building in place.
1581    ac_srcdir=.
1582    ac_top_srcdir=$ac_top_builddir_sub
1583    ac_abs_top_srcdir=$ac_pwd ;;
1584  [\\/]* | ?:[\\/]* )  # Absolute name.
1585    ac_srcdir=$srcdir$ac_dir_suffix;
1586    ac_top_srcdir=$srcdir
1587    ac_abs_top_srcdir=$srcdir ;;
1588  *) # Relative name.
1589    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590    ac_top_srcdir=$ac_top_build_prefix$srcdir
1591    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592esac
1593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595    cd "$ac_dir" || { ac_status=$?; continue; }
1596    # Check for guested configure.
1597    if test -f "$ac_srcdir/configure.gnu"; then
1598      echo &&
1599      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600    elif test -f "$ac_srcdir/configure"; then
1601      echo &&
1602      $SHELL "$ac_srcdir/configure" --help=recursive
1603    else
1604      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605    fi || ac_status=$?
1606    cd "$ac_pwd" || { ac_status=$?; break; }
1607  done
1608fi
1609
1610test -n "$ac_init_help" && exit $ac_status
1611if $ac_init_version; then
1612  cat <<\_ACEOF
1613cppad configure 20160318
1614generated by GNU Autoconf 2.69
1615
1616Copyright (C) 2012 Free Software Foundation, Inc.
1617This configure script is free software; the Free Software Foundation
1618gives unlimited permission to copy, distribute and modify it.
1619_ACEOF
1620  exit
1621fi
1622
1623## ------------------------ ##
1624## Autoconf initialization. ##
1625## ------------------------ ##
1626
1627# ac_fn_c_try_compile LINENO
1628# --------------------------
1629# Try to compile conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_compile ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  rm -f conftest.$ac_objext
1634  if { { ac_try="$ac_compile"
1635case "(($ac_try" in
1636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637  *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641  (eval "$ac_compile") 2>conftest.err
1642  ac_status=$?
1643  if test -s conftest.err; then
1644    grep -v '^ *+' conftest.err >conftest.er1
1645    cat conftest.er1 >&5
1646    mv -f conftest.er1 conftest.err
1647  fi
1648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649  test $ac_status = 0; } && {
1650         test -z "$ac_c_werror_flag" ||
1651         test ! -s conftest.err
1652       } && test -s conftest.$ac_objext; then :
1653  ac_retval=0
1654else
1655  $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658        ac_retval=1
1659fi
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661  as_fn_set_status $ac_retval
1662
1663} # ac_fn_c_try_compile
1664
1665# ac_fn_cxx_try_compile LINENO
1666# ----------------------------
1667# Try to compile conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_cxx_try_compile ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  rm -f conftest.$ac_objext
1672  if { { ac_try="$ac_compile"
1673case "(($ac_try" in
1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675  *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679  (eval "$ac_compile") 2>conftest.err
1680  ac_status=$?
1681  if test -s conftest.err; then
1682    grep -v '^ *+' conftest.err >conftest.er1
1683    cat conftest.er1 >&5
1684    mv -f conftest.er1 conftest.err
1685  fi
1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687  test $ac_status = 0; } && {
1688         test -z "$ac_cxx_werror_flag" ||
1689         test ! -s conftest.err
1690       } && test -s conftest.$ac_objext; then :
1691  ac_retval=0
1692else
1693  $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696        ac_retval=1
1697fi
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699  as_fn_set_status $ac_retval
1700
1701} # ac_fn_cxx_try_compile
1702
1703# ac_fn_fc_try_compile LINENO
1704# ---------------------------
1705# Try to compile conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_fc_try_compile ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  rm -f conftest.$ac_objext
1710  if { { ac_try="$ac_compile"
1711case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_compile") 2>conftest.err
1718  ac_status=$?
1719  if test -s conftest.err; then
1720    grep -v '^ *+' conftest.err >conftest.er1
1721    cat conftest.er1 >&5
1722    mv -f conftest.er1 conftest.err
1723  fi
1724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725  test $ac_status = 0; } && {
1726         test -z "$ac_fc_werror_flag" ||
1727         test ! -s conftest.err
1728       } && test -s conftest.$ac_objext; then :
1729  ac_retval=0
1730else
1731  $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734        ac_retval=1
1735fi
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_fc_try_compile
1740
1741# ac_fn_c_try_run LINENO
1742# ----------------------
1743# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744# that executables *can* be run.
1745ac_fn_c_try_run ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  if { { ac_try="$ac_link"
1749case "(($ac_try" in
1750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751  *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755  (eval "$ac_link") 2>&5
1756  ac_status=$?
1757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759  { { case "(($ac_try" in
1760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761  *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765  (eval "$ac_try") 2>&5
1766  ac_status=$?
1767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768  test $ac_status = 0; }; }; then :
1769  ac_retval=0
1770else
1771  $as_echo "$as_me: program exited with status $ac_status" >&5
1772       $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775       ac_retval=$ac_status
1776fi
1777  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779  as_fn_set_status $ac_retval
1780
1781} # ac_fn_c_try_run
1782
1783# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1784# --------------------------------------------
1785# Tries to find the compile-time value of EXPR in a program that includes
1786# INCLUDES, setting VAR accordingly. Returns whether the value could be
1787# computed
1788ac_fn_c_compute_int ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  if test "$cross_compiling" = yes; then
1792    # Depending upon the size, compute the lo and hi bounds.
1793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h.  */
1795$4
1796int
1797main ()
1798{
1799static int test_array [1 - 2 * !(($2) >= 0)];
1800test_array [0] = 0;
1801return test_array [0];
1802
1803  ;
1804  return 0;
1805}
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808  ac_lo=0 ac_mid=0
1809  while :; do
1810    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813int
1814main ()
1815{
1816static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1817test_array [0] = 0;
1818return test_array [0];
1819
1820  ;
1821  return 0;
1822}
1823_ACEOF
1824if ac_fn_c_try_compile "$LINENO"; then :
1825  ac_hi=$ac_mid; break
1826else
1827  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1828                        if test $ac_lo -le $ac_mid; then
1829                          ac_lo= ac_hi=
1830                          break
1831                        fi
1832                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1833fi
1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835  done
1836else
1837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839$4
1840int
1841main ()
1842{
1843static int test_array [1 - 2 * !(($2) < 0)];
1844test_array [0] = 0;
1845return test_array [0];
1846
1847  ;
1848  return 0;
1849}
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"; then :
1852  ac_hi=-1 ac_mid=-1
1853  while :; do
1854    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h.  */
1856$4
1857int
1858main ()
1859{
1860static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1861test_array [0] = 0;
1862return test_array [0];
1863
1864  ;
1865  return 0;
1866}
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"; then :
1869  ac_lo=$ac_mid; break
1870else
1871  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1872                        if test $ac_mid -le $ac_hi; then
1873                          ac_lo= ac_hi=
1874                          break
1875                        fi
1876                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1877fi
1878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879  done
1880else
1881  ac_lo= ac_hi=
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884fi
1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886# Binary search between lo and hi bounds.
1887while test "x$ac_lo" != "x$ac_hi"; do
1888  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h.  */
1891$4
1892int
1893main ()
1894{
1895static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1896test_array [0] = 0;
1897return test_array [0];
1898
1899  ;
1900  return 0;
1901}
1902_ACEOF
1903if ac_fn_c_try_compile "$LINENO"; then :
1904  ac_hi=$ac_mid
1905else
1906  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1907fi
1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909done
1910case $ac_lo in #((
1911?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1912'') ac_retval=1 ;;
1913esac
1914  else
1915    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h.  */
1917$4
1918static long int longval () { return $2; }
1919static unsigned long int ulongval () { return $2; }
1920#include <stdio.h>
1921#include <stdlib.h>
1922int
1923main ()
1924{
1925
1926  FILE *f = fopen ("conftest.val", "w");
1927  if (! f)
1928    return 1;
1929  if (($2) < 0)
1930    {
1931      long int i = longval ();
1932      if (i != ($2))
1933        return 1;
1934      fprintf (f, "%ld", i);
1935    }
1936  else
1937    {
1938      unsigned long int i = ulongval ();
1939      if (i != ($2))
1940        return 1;
1941      fprintf (f, "%lu", i);
1942    }
1943  /* Do not output a trailing newline, as this causes \r\n confusion
1944     on some platforms.  */
1945  return ferror (f) || fclose (f) != 0;
1946
1947  ;
1948  return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_run "$LINENO"; then :
1952  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1953else
1954  ac_retval=1
1955fi
1956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1957  conftest.$ac_objext conftest.beam conftest.$ac_ext
1958rm -f conftest.val
1959
1960  fi
1961  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962  as_fn_set_status $ac_retval
1963
1964} # ac_fn_c_compute_int
1965
1966# ac_fn_c_try_cpp LINENO
1967# ----------------------
1968# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1969ac_fn_c_try_cpp ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  if { { ac_try="$ac_cpp conftest.$ac_ext"
1973case "(($ac_try" in
1974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975  *) ac_try_echo=$ac_try;;
1976esac
1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978$as_echo "$ac_try_echo"; } >&5
1979  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1980  ac_status=$?
1981  if test -s conftest.err; then
1982    grep -v '^ *+' conftest.err >conftest.er1
1983    cat conftest.er1 >&5
1984    mv -f conftest.er1 conftest.err
1985  fi
1986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987  test $ac_status = 0; } > conftest.i && {
1988         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1989         test ! -s conftest.err
1990       }; then :
1991  ac_retval=0
1992else
1993  $as_echo "$as_me: failed program was:" >&5
1994sed 's/^/| /' conftest.$ac_ext >&5
1995
1996    ac_retval=1
1997fi
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999  as_fn_set_status $ac_retval
2000
2001} # ac_fn_c_try_cpp
2002
2003# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2004# -------------------------------------------------------
2005# Tests whether HEADER exists and can be compiled using the include files in
2006# INCLUDES, setting the cache variable VAR accordingly.
2007ac_fn_c_check_header_compile ()
2008{
2009  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011$as_echo_n "checking for $2... " >&6; }
2012if eval \${$3+:} false; then :
2013  $as_echo_n "(cached) " >&6
2014else
2015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h.  */
2017$4
2018#include <$2>
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021  eval "$3=yes"
2022else
2023  eval "$3=no"
2024fi
2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026fi
2027eval ac_res=\$$3
2028               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029$as_echo "$ac_res" >&6; }
2030  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031
2032} # ac_fn_c_check_header_compile
2033
2034# ac_fn_c_try_link LINENO
2035# -----------------------
2036# Try to link conftest.$ac_ext, and return whether this succeeded.
2037ac_fn_c_try_link ()
2038{
2039  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040  rm -f conftest.$ac_objext conftest$ac_exeext
2041  if { { ac_try="$ac_link"
2042case "(($ac_try" in
2043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044  *) ac_try_echo=$ac_try;;
2045esac
2046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047$as_echo "$ac_try_echo"; } >&5
2048  (eval "$ac_link") 2>conftest.err
2049  ac_status=$?
2050  if test -s conftest.err; then
2051    grep -v '^ *+' conftest.err >conftest.er1
2052    cat conftest.er1 >&5
2053    mv -f conftest.er1 conftest.err
2054  fi
2055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056  test $ac_status = 0; } && {
2057         test -z "$ac_c_werror_flag" ||
2058         test ! -s conftest.err
2059       } && test -s conftest$ac_exeext && {
2060         test "$cross_compiling" = yes ||
2061         test -x conftest$ac_exeext
2062       }; then :
2063  ac_retval=0
2064else
2065  $as_echo "$as_me: failed program was:" >&5
2066sed 's/^/| /' conftest.$ac_ext >&5
2067
2068        ac_retval=1
2069fi
2070  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2071  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2072  # interfere with the next link command; also delete a directory that is
2073  # left behind by Apple's compiler.  We do this before executing the actions.
2074  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076  as_fn_set_status $ac_retval
2077
2078} # ac_fn_c_try_link
2079
2080# ac_fn_c_check_func LINENO FUNC VAR
2081# ----------------------------------
2082# Tests whether FUNC exists, setting the cache variable VAR accordingly
2083ac_fn_c_check_func ()
2084{
2085  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087$as_echo_n "checking for $2... " >&6; }
2088if eval \${$3+:} false; then :
2089  $as_echo_n "(cached) " >&6
2090else
2091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2094   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2095#define $2 innocuous_$2
2096
2097/* System header to define __stub macros and hopefully few prototypes,
2098    which can conflict with char $2 (); below.
2099    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2100    <limits.h> exists even on freestanding compilers.  */
2101
2102#ifdef __STDC__
2103# include <limits.h>
2104#else
2105# include <assert.h>
2106#endif
2107
2108#undef $2
2109
2110/* Override any GCC internal prototype to avoid an error.
2111   Use char because int might match the return type of a GCC
2112   builtin and then its argument prototype would still apply.  */
2113#ifdef __cplusplus
2114extern "C"
2115#endif
2116char $2 ();
2117/* The GNU C library defines this for functions which it implements
2118    to always fail with ENOSYS.  Some functions are actually named
2119    something starting with __ and the normal name is an alias.  */
2120#if defined __stub_$2 || defined __stub___$2
2121choke me
2122#endif
2123
2124int
2125main ()
2126{
2127return $2 ();
2128  ;
2129  return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_link "$LINENO"; then :
2133  eval "$3=yes"
2134else
2135  eval "$3=no"
2136fi
2137rm -f core conftest.err conftest.$ac_objext \
2138    conftest$ac_exeext conftest.$ac_ext
2139fi
2140eval ac_res=\$$3
2141               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142$as_echo "$ac_res" >&6; }
2143  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144
2145} # ac_fn_c_check_func
2146
2147# ac_fn_cxx_try_link LINENO
2148# -------------------------
2149# Try to link conftest.$ac_ext, and return whether this succeeded.
2150ac_fn_cxx_try_link ()
2151{
2152  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153  rm -f conftest.$ac_objext conftest$ac_exeext
2154  if { { ac_try="$ac_link"
2155case "(($ac_try" in
2156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157  *) ac_try_echo=$ac_try;;
2158esac
2159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160$as_echo "$ac_try_echo"; } >&5
2161  (eval "$ac_link") 2>conftest.err
2162  ac_status=$?
2163  if test -s conftest.err; then
2164    grep -v '^ *+' conftest.err >conftest.er1
2165    cat conftest.er1 >&5
2166    mv -f conftest.er1 conftest.err
2167  fi
2168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169  test $ac_status = 0; } && {
2170         test -z "$ac_cxx_werror_flag" ||
2171         test ! -s conftest.err
2172       } && test -s conftest$ac_exeext && {
2173         test "$cross_compiling" = yes ||
2174         test -x conftest$ac_exeext
2175       }; then :
2176  ac_retval=0
2177else
2178  $as_echo "$as_me: failed program was:" >&5
2179sed 's/^/| /' conftest.$ac_ext >&5
2180
2181        ac_retval=1
2182fi
2183  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2184  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2185  # interfere with the next link command; also delete a directory that is
2186  # left behind by Apple's compiler.  We do this before executing the actions.
2187  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2188  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189  as_fn_set_status $ac_retval
2190
2191} # ac_fn_cxx_try_link
2192
2193# ac_fn_fc_try_link LINENO
2194# ------------------------
2195# Try to link conftest.$ac_ext, and return whether this succeeded.
2196ac_fn_fc_try_link ()
2197{
2198  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199  rm -f conftest.$ac_objext conftest$ac_exeext
2200  if { { ac_try="$ac_link"
2201case "(($ac_try" in
2202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203  *) ac_try_echo=$ac_try;;
2204esac
2205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206$as_echo "$ac_try_echo"; } >&5
2207  (eval "$ac_link") 2>conftest.err
2208  ac_status=$?
2209  if test -s conftest.err; then
2210    grep -v '^ *+' conftest.err >conftest.er1
2211    cat conftest.er1 >&5
2212    mv -f conftest.er1 conftest.err
2213  fi
2214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215  test $ac_status = 0; } && {
2216         test -z "$ac_fc_werror_flag" ||
2217         test ! -s conftest.err
2218       } && test -s conftest$ac_exeext && {
2219         test "$cross_compiling" = yes ||
2220         test -x conftest$ac_exeext
2221       }; then :
2222  ac_retval=0
2223else
2224  $as_echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227        ac_retval=1
2228fi
2229  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2230  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2231  # interfere with the next link command; also delete a directory that is
2232  # left behind by Apple's compiler.  We do this before executing the actions.
2233  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2234  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235  as_fn_set_status $ac_retval
2236
2237} # ac_fn_fc_try_link
2238cat >config.log <<_ACEOF
2239This file contains any messages produced by compilers while
2240running configure, to aid debugging if configure makes a mistake.
2241
2242It was created by cppad $as_me 20160318, which was
2243generated by GNU Autoconf 2.69.  Invocation command line was
2244
2245  $ $0 $@
2246
2247_ACEOF
2248exec 5>>config.log
2249{
2250cat <<_ASUNAME
2251## --------- ##
2252## Platform. ##
2253## --------- ##
2254
2255hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2256uname -m = `(uname -m) 2>/dev/null || echo unknown`
2257uname -r = `(uname -r) 2>/dev/null || echo unknown`
2258uname -s = `(uname -s) 2>/dev/null || echo unknown`
2259uname -v = `(uname -v) 2>/dev/null || echo unknown`
2260
2261/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2262/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2263
2264/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2265/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2266/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2267/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2268/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2269/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2270/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2271
2272_ASUNAME
2273
2274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277  IFS=$as_save_IFS
2278  test -z "$as_dir" && as_dir=.
2279    $as_echo "PATH: $as_dir"
2280  done
2281IFS=$as_save_IFS
2282
2283} >&5
2284
2285cat >&5 <<_ACEOF
2286
2287
2288## ----------- ##
2289## Core tests. ##
2290## ----------- ##
2291
2292_ACEOF
2293
2294
2295# Keep a trace of the command line.
2296# Strip out --no-create and --no-recursion so they do not pile up.
2297# Strip out --silent because we don't want to record it for future runs.
2298# Also quote any args containing shell meta-characters.
2299# Make two passes to allow for proper duplicate-argument suppression.
2300ac_configure_args=
2301ac_configure_args0=
2302ac_configure_args1=
2303ac_must_keep_next=false
2304for ac_pass in 1 2
2305do
2306  for ac_arg
2307  do
2308    case $ac_arg in
2309    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2310    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2311    | -silent | --silent | --silen | --sile | --sil)
2312      continue ;;
2313    *\'*)
2314      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2315    esac
2316    case $ac_pass in
2317    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2318    2)
2319      as_fn_append ac_configure_args1 " '$ac_arg'"
2320      if test $ac_must_keep_next = true; then
2321        ac_must_keep_next=false # Got value, back to normal.
2322      else
2323        case $ac_arg in
2324          *=* | --config-cache | -C | -disable-* | --disable-* \
2325          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2326          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2327          | -with-* | --with-* | -without-* | --without-* | --x)
2328            case "$ac_configure_args0 " in
2329              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2330            esac
2331            ;;
2332          -* ) ac_must_keep_next=true ;;
2333        esac
2334      fi
2335      as_fn_append ac_configure_args " '$ac_arg'"
2336      ;;
2337    esac
2338  done
2339done
2340{ ac_configure_args0=; unset ac_configure_args0;}
2341{ ac_configure_args1=; unset ac_configure_args1;}
2342
2343# When interrupted or exit'd, cleanup temporary files, and complete
2344# config.log.  We remove comments because anyway the quotes in there
2345# would cause problems or look ugly.
2346# WARNING: Use '\'' to represent an apostrophe within the trap.
2347# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2348trap 'exit_status=$?
2349  # Save into config.log some information that might help in debugging.
2350  {
2351    echo
2352
2353    $as_echo "## ---------------- ##
2354## Cache variables. ##
2355## ---------------- ##"
2356    echo
2357    # The following way of writing the cache mishandles newlines in values,
2358(
2359  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2360    eval ac_val=\$$ac_var
2361    case $ac_val in #(
2362    *${as_nl}*)
2363      case $ac_var in #(
2364      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2365$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2366      esac
2367      case $ac_var in #(
2368      _ | IFS | as_nl) ;; #(
2369      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2370      *) { eval $ac_var=; unset $ac_var;} ;;
2371      esac ;;
2372    esac
2373  done
2374  (set) 2>&1 |
2375    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2376    *${as_nl}ac_space=\ *)
2377      sed -n \
2378        "s/'\''/'\''\\\\'\'''\''/g;
2379          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2380      ;; #(
2381    *)
2382      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2383      ;;
2384    esac |
2385    sort
2386)
2387    echo
2388
2389    $as_echo "## ----------------- ##
2390## Output variables. ##
2391## ----------------- ##"
2392    echo
2393    for ac_var in $ac_subst_vars
2394    do
2395      eval ac_val=\$$ac_var
2396      case $ac_val in
2397      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2398      esac
2399      $as_echo "$ac_var='\''$ac_val'\''"
2400    done | sort
2401    echo
2402
2403    if test -n "$ac_subst_files"; then
2404      $as_echo "## ------------------- ##
2405## File substitutions. ##
2406## ------------------- ##"
2407      echo
2408      for ac_var in $ac_subst_files
2409      do
2410        eval ac_val=\$$ac_var
2411        case $ac_val in
2412        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413        esac
2414        $as_echo "$ac_var='\''$ac_val'\''"
2415      done | sort
2416      echo
2417    fi
2418
2419    if test -s confdefs.h; then
2420      $as_echo "## ----------- ##
2421## confdefs.h. ##
2422## ----------- ##"
2423      echo
2424      cat confdefs.h
2425      echo
2426    fi
2427    test "$ac_signal" != 0 &&
2428      $as_echo "$as_me: caught signal $ac_signal"
2429    $as_echo "$as_me: exit $exit_status"
2430  } >&5
2431  rm -f core *.core core.conftest.* &&
2432    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2433    exit $exit_status
2434' 0
2435for ac_signal in 1 2 13 15; do
2436  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2437done
2438ac_signal=0
2439
2440# confdefs.h avoids OS command line length limits that DEFS can exceed.
2441rm -f -r conftest* confdefs.h
2442
2443$as_echo "/* confdefs.h */" > confdefs.h
2444
2445# Predefined preprocessor variables.
2446
2447cat >>confdefs.h <<_ACEOF
2448#define PACKAGE_NAME "$PACKAGE_NAME"
2449_ACEOF
2450
2451cat >>confdefs.h <<_ACEOF
2452#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2453_ACEOF
2454
2455cat >>confdefs.h <<_ACEOF
2456#define PACKAGE_VERSION "$PACKAGE_VERSION"
2457_ACEOF
2458
2459cat >>confdefs.h <<_ACEOF
2460#define PACKAGE_STRING "$PACKAGE_STRING"
2461_ACEOF
2462
2463cat >>confdefs.h <<_ACEOF
2464#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2465_ACEOF
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_URL "$PACKAGE_URL"
2469_ACEOF
2470
2471
2472# Let the site file select an alternate cache file if it wants to.
2473# Prefer an explicitly selected file to automatically selected ones.
2474ac_site_file1=NONE
2475ac_site_file2=NONE
2476if test -n "$CONFIG_SITE"; then
2477  # We do not want a PATH search for config.site.
2478  case $CONFIG_SITE in #((
2479    -*)  ac_site_file1=./$CONFIG_SITE;;
2480    */*) ac_site_file1=$CONFIG_SITE;;
2481    *)   ac_site_file1=./$CONFIG_SITE;;
2482  esac
2483elif test "x$prefix" != xNONE; then
2484  ac_site_file1=$prefix/share/config.site
2485  ac_site_file2=$prefix/etc/config.site
2486else
2487  ac_site_file1=$ac_default_prefix/share/config.site
2488  ac_site_file2=$ac_default_prefix/etc/config.site
2489fi
2490for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2491do
2492  test "x$ac_site_file" = xNONE && continue
2493  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2494    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2495$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2496    sed 's/^/| /' "$ac_site_file" >&5
2497    . "$ac_site_file" \
2498      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2500as_fn_error $? "failed to load site script $ac_site_file
2501See \`config.log' for more details" "$LINENO" 5; }
2502  fi
2503done
2504
2505if test -r "$cache_file"; then
2506  # Some versions of bash will fail to source /dev/null (special files
2507  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2508  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2509    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2510$as_echo "$as_me: loading cache $cache_file" >&6;}
2511    case $cache_file in
2512      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2513      *)                      . "./$cache_file";;
2514    esac
2515  fi
2516else
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2518$as_echo "$as_me: creating cache $cache_file" >&6;}
2519  >$cache_file
2520fi
2521
2522# Check that the precious variables saved in the cache have kept the same
2523# value.
2524ac_cache_corrupted=false
2525for ac_var in $ac_precious_vars; do
2526  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2527  eval ac_new_set=\$ac_env_${ac_var}_set
2528  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2529  eval ac_new_val=\$ac_env_${ac_var}_value
2530  case $ac_old_set,$ac_new_set in
2531    set,)
2532      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2533$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2534      ac_cache_corrupted=: ;;
2535    ,set)
2536      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2537$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2538      ac_cache_corrupted=: ;;
2539    ,);;
2540    *)
2541      if test "x$ac_old_val" != "x$ac_new_val"; then
2542        # differences in whitespace do not lead to failure.
2543        ac_old_val_w=`echo x $ac_old_val`
2544        ac_new_val_w=`echo x $ac_new_val`
2545        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2546          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2547$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2548          ac_cache_corrupted=:
2549        else
2550          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2551$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2552          eval $ac_var=\$ac_old_val
2553        fi
2554        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2555$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2556        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2557$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2558      fi;;
2559  esac
2560  # Pass precious variables to config.status.
2561  if test "$ac_new_set" = set; then
2562    case $ac_new_val in
2563    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2564    *) ac_arg=$ac_var=$ac_new_val ;;
2565    esac
2566    case " $ac_configure_args " in
2567      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2568      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2569    esac
2570  fi
2571done
2572if $ac_cache_corrupted; then
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2576$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2577  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2578fi
2579## -------------------- ##
2580## Main body of script. ##
2581## -------------------- ##
2582
2583ac_ext=c
2584ac_cpp='$CPP $CPPFLAGS'
2585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589
2590# Check whether --enable-silent-rules was given.
2591if test "${enable_silent_rules+set}" = set; then :
2592  enableval=$enable_silent_rules;
2593fi
2594
2595case $enable_silent_rules in # (((
2596  yes) AM_DEFAULT_VERBOSITY=0;;
2597   no) AM_DEFAULT_VERBOSITY=1;;
2598    *) AM_DEFAULT_VERBOSITY=0;;
2599esac
2600am_make=${MAKE-make}
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2602$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2603if ${am_cv_make_support_nested_variables+:} false; then :
2604  $as_echo_n "(cached) " >&6
2605else
2606  if $as_echo 'TRUE=$(BAR$(V))
2607BAR0=false
2608BAR1=true
2609V=1
2610am__doit:
2611        @$(TRUE)
2612.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2613  am_cv_make_support_nested_variables=yes
2614else
2615  am_cv_make_support_nested_variables=no
2616fi
2617fi
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2619$as_echo "$am_cv_make_support_nested_variables" >&6; }
2620if test $am_cv_make_support_nested_variables = yes; then
2621    AM_V='$(V)'
2622  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2623else
2624  AM_V=$AM_DEFAULT_VERBOSITY
2625  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2626fi
2627AM_BACKSLASH='\'
2628
2629
2630
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2632$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2633    # Check whether --enable-maintainer-mode was given.
2634if test "${enable_maintainer_mode+set}" = set; then :
2635  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2636else
2637  USE_MAINTAINER_MODE=no
2638fi
2639
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2641$as_echo "$USE_MAINTAINER_MODE" >&6; }
2642   if test $USE_MAINTAINER_MODE = yes; then
2643  MAINTAINER_MODE_TRUE=
2644  MAINTAINER_MODE_FALSE='#'
2645else
2646  MAINTAINER_MODE_TRUE='#'
2647  MAINTAINER_MODE_FALSE=
2648fi
2649
2650  MAINT=$MAINTAINER_MODE_TRUE
2651
2652
2653
2654
2655
2656am__api_version='1.15'
2657
2658ac_aux_dir=
2659for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2660  if test -f "$ac_dir/install-sh"; then
2661    ac_aux_dir=$ac_dir
2662    ac_install_sh="$ac_aux_dir/install-sh -c"
2663    break
2664  elif test -f "$ac_dir/install.sh"; then
2665    ac_aux_dir=$ac_dir
2666    ac_install_sh="$ac_aux_dir/install.sh -c"
2667    break
2668  elif test -f "$ac_dir/shtool"; then
2669    ac_aux_dir=$ac_dir
2670    ac_install_sh="$ac_aux_dir/shtool install -c"
2671    break
2672  fi
2673done
2674if test -z "$ac_aux_dir"; then
2675  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2676fi
2677
2678# These three variables are undocumented and unsupported,
2679# and are intended to be withdrawn in a future Autoconf release.
2680# They can cause serious problems if a builder's source tree is in a directory
2681# whose full name contains unusual characters.
2682ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2683ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2684ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2685
2686
2687# Find a good install program.  We prefer a C program (faster),
2688# so one script is as good as another.  But avoid the broken or
2689# incompatible versions:
2690# SysV /etc/install, /usr/sbin/install
2691# SunOS /usr/etc/install
2692# IRIX /sbin/install
2693# AIX /bin/install
2694# AmigaOS /C/install, which installs bootblocks on floppy discs
2695# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2696# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2697# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2698# OS/2's system install, which has a completely different semantic
2699# ./install, which can be erroneously created by make from ./install.sh.
2700# Reject install programs that cannot install multiple files.
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2702$as_echo_n "checking for a BSD-compatible install... " >&6; }
2703if test -z "$INSTALL"; then
2704if ${ac_cv_path_install+:} false; then :
2705  $as_echo_n "(cached) " >&6
2706else
2707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710  IFS=$as_save_IFS
2711  test -z "$as_dir" && as_dir=.
2712    # Account for people who put trailing slashes in PATH elements.
2713case $as_dir/ in #((
2714  ./ | .// | /[cC]/* | \
2715  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2716  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2717  /usr/ucb/* ) ;;
2718  *)
2719    # OSF1 and SCO ODT 3.0 have their own names for install.
2720    # Don't use installbsd from OSF since it installs stuff as root
2721    # by default.
2722    for ac_prog in ginstall scoinst install; do
2723      for ac_exec_ext in '' $ac_executable_extensions; do
2724        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2725          if test $ac_prog = install &&
2726            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2727            # AIX install.  It has an incompatible calling convention.
2728            :
2729          elif test $ac_prog = install &&
2730            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731            # program-specific install script used by HP pwplus--don't use.
2732            :
2733          else
2734            rm -rf conftest.one conftest.two conftest.dir
2735            echo one > conftest.one
2736            echo two > conftest.two
2737            mkdir conftest.dir
2738            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2739              test -s conftest.one && test -s conftest.two &&
2740              test -s conftest.dir/conftest.one &&
2741              test -s conftest.dir/conftest.two
2742            then
2743              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2744              break 3
2745            fi
2746          fi
2747        fi
2748      done
2749    done
2750    ;;
2751esac
2752
2753  done
2754IFS=$as_save_IFS
2755
2756rm -rf conftest.one conftest.two conftest.dir
2757
2758fi
2759  if test "${ac_cv_path_install+set}" = set; then
2760    INSTALL=$ac_cv_path_install
2761  else
2762    # As a last resort, use the slow shell script.  Don't cache a
2763    # value for INSTALL within a source directory, because that will
2764    # break other packages using the cache if that directory is
2765    # removed, or if the value is a relative name.
2766    INSTALL=$ac_install_sh
2767  fi
2768fi
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2770$as_echo "$INSTALL" >&6; }
2771
2772# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2773# It thinks the first close brace ends the variable substitution.
2774test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2775
2776test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2777
2778test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2779
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2781$as_echo_n "checking whether build environment is sane... " >&6; }
2782# Reject unsafe characters in $srcdir or the absolute working directory
2783# name.  Accept space and tab only in the latter.
2784am_lf='
2785'
2786case `pwd` in
2787  *[\\\"\#\$\&\'\`$am_lf]*)
2788    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2789esac
2790case $srcdir in
2791  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2792    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2793esac
2794
2795# Do 'set' in a subshell so we don't clobber the current shell's
2796# arguments.  Must try -L first in case configure is actually a
2797# symlink; some systems play weird games with the mod time of symlinks
2798# (eg FreeBSD returns the mod time of the symlink's containing
2799# directory).
2800if (
2801   am_has_slept=no
2802   for am_try in 1 2; do
2803     echo "timestamp, slept: $am_has_slept" > conftest.file
2804     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2805     if test "$*" = "X"; then
2806        # -L didn't work.
2807        set X `ls -t "$srcdir/configure" conftest.file`
2808     fi
2809     if test "$*" != "X $srcdir/configure conftest.file" \
2810        && test "$*" != "X conftest.file $srcdir/configure"; then
2811
2812        # If neither matched, then we have a broken ls.  This can happen
2813        # if, for instance, CONFIG_SHELL is bash and it inherits a
2814        # broken ls alias from the environment.  This has actually
2815        # happened.  Such a system could not be considered "sane".
2816        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2817  alias in your environment" "$LINENO" 5
2818     fi
2819     if test "$2" = conftest.file || test $am_try -eq 2; then
2820       break
2821     fi
2822     # Just in case.
2823     sleep 1
2824     am_has_slept=yes
2825   done
2826   test "$2" = conftest.file
2827   )
2828then
2829   # Ok.
2830   :
2831else
2832   as_fn_error $? "newly created file is older than distributed files!
2833Check your system clock" "$LINENO" 5
2834fi
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836$as_echo "yes" >&6; }
2837# If we didn't sleep, we still need to ensure time stamps of config.status and
2838# generated files are strictly newer.
2839am_sleep_pid=
2840if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2841  ( sleep 1 ) &
2842  am_sleep_pid=$!
2843fi
2844
2845rm -f conftest.file
2846
2847test "$program_prefix" != NONE &&
2848  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2849# Use a double $ so make ignores it.
2850test "$program_suffix" != NONE &&
2851  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2852# Double any \ or $.
2853# By default was `s,x,x', remove it if useless.
2854ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2855program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2856
2857# Expand $ac_aux_dir to an absolute path.
2858am_aux_dir=`cd "$ac_aux_dir" && pwd`
2859
2860if test x"${MISSING+set}" != xset; then
2861  case $am_aux_dir in
2862  *\ * | *\     *)
2863    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2864  *)
2865    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2866  esac
2867fi
2868# Use eval to expand $SHELL
2869if eval "$MISSING --is-lightweight"; then
2870  am_missing_run="$MISSING "
2871else
2872  am_missing_run=
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2874$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2875fi
2876
2877if test x"${install_sh+set}" != xset; then
2878  case $am_aux_dir in
2879  *\ * | *\     *)
2880    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2881  *)
2882    install_sh="\${SHELL} $am_aux_dir/install-sh"
2883  esac
2884fi
2885
2886# Installed binaries are usually stripped using 'strip' when the user
2887# run "make install-strip".  However 'strip' might not be the right
2888# tool to use in cross-compilation environments, therefore Automake
2889# will honor the 'STRIP' environment variable to overrule this program.
2890if test "$cross_compiling" != no; then
2891  if test -n "$ac_tool_prefix"; then
2892  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2893set dummy ${ac_tool_prefix}strip; ac_word=$2
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895$as_echo_n "checking for $ac_word... " >&6; }
2896if ${ac_cv_prog_STRIP+:} false; then :
2897  $as_echo_n "(cached) " >&6
2898else
2899  if test -n "$STRIP"; then
2900  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_exec_ext in '' $ac_executable_extensions; do
2908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914  done
2915IFS=$as_save_IFS
2916
2917fi
2918fi
2919STRIP=$ac_cv_prog_STRIP
2920if test -n "$STRIP"; then
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2922$as_echo "$STRIP" >&6; }
2923else
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
2926fi
2927
2928
2929fi
2930if test -z "$ac_cv_prog_STRIP"; then
2931  ac_ct_STRIP=$STRIP
2932  # Extract the first word of "strip", so it can be a program name with args.
2933set dummy strip; ac_word=$2
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935$as_echo_n "checking for $ac_word... " >&6; }
2936if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2937  $as_echo_n "(cached) " >&6
2938else
2939  if test -n "$ac_ct_STRIP"; then
2940  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2941else
2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945  IFS=$as_save_IFS
2946  test -z "$as_dir" && as_dir=.
2947    for ac_exec_ext in '' $ac_executable_extensions; do
2948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949    ac_cv_prog_ac_ct_STRIP="strip"
2950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951    break 2
2952  fi
2953done
2954  done
2955IFS=$as_save_IFS
2956
2957fi
2958fi
2959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2960if test -n "$ac_ct_STRIP"; then
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2962$as_echo "$ac_ct_STRIP" >&6; }
2963else
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
2966fi
2967
2968  if test "x$ac_ct_STRIP" = x; then
2969    STRIP=":"
2970  else
2971    case $cross_compiling:$ac_tool_warned in
2972yes:)
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975ac_tool_warned=yes ;;
2976esac
2977    STRIP=$ac_ct_STRIP
2978  fi
2979else
2980  STRIP="$ac_cv_prog_STRIP"
2981fi
2982
2983fi
2984INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2985
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2987$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2988if test -z "$MKDIR_P"; then
2989  if ${ac_cv_path_mkdir+:} false; then :
2990  $as_echo_n "(cached) " >&6
2991else
2992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2994do
2995  IFS=$as_save_IFS
2996  test -z "$as_dir" && as_dir=.
2997    for ac_prog in mkdir gmkdir; do
2998         for ac_exec_ext in '' $ac_executable_extensions; do
2999           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3000           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3001             'mkdir (GNU coreutils) '* | \
3002             'mkdir (coreutils) '* | \
3003             'mkdir (fileutils) '4.1*)
3004               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3005               break 3;;
3006           esac
3007         done
3008       done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013
3014  test -d ./--version && rmdir ./--version
3015  if test "${ac_cv_path_mkdir+set}" = set; then
3016    MKDIR_P="$ac_cv_path_mkdir -p"
3017  else
3018    # As a last resort, use the slow shell script.  Don't cache a
3019    # value for MKDIR_P within a source directory, because that will
3020    # break other packages using the cache if that directory is
3021    # removed, or if the value is a relative name.
3022    MKDIR_P="$ac_install_sh -d"
3023  fi
3024fi
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3026$as_echo "$MKDIR_P" >&6; }
3027
3028for ac_prog in gawk mawk nawk awk
3029do
3030  # Extract the first word of "$ac_prog", so it can be a program name with args.
3031set dummy $ac_prog; ac_word=$2
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033$as_echo_n "checking for $ac_word... " >&6; }
3034if ${ac_cv_prog_AWK+:} false; then :
3035  $as_echo_n "(cached) " >&6
3036else
3037  if test -n "$AWK"; then
3038  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043  IFS=$as_save_IFS
3044  test -z "$as_dir" && as_dir=.
3045    for ac_exec_ext in '' $ac_executable_extensions; do
3046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047    ac_cv_prog_AWK="$ac_prog"
3048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049    break 2
3050  fi
3051done
3052  done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
3057AWK=$ac_cv_prog_AWK
3058if test -n "$AWK"; then
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3060$as_echo "$AWK" >&6; }
3061else
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064fi
3065
3066
3067  test -n "$AWK" && break
3068done
3069
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3071$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3072set x ${MAKE-make}
3073ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3074if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3075  $as_echo_n "(cached) " >&6
3076else
3077  cat >conftest.make <<\_ACEOF
3078SHELL = /bin/sh
3079all:
3080        @echo '@@@%%%=$(MAKE)=@@@%%%'
3081_ACEOF
3082# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3083case `${MAKE-make} -f conftest.make 2>/dev/null` in
3084  *@@@%%%=?*=@@@%%%*)
3085    eval ac_cv_prog_make_${ac_make}_set=yes;;
3086  *)
3087    eval ac_cv_prog_make_${ac_make}_set=no;;
3088esac
3089rm -f conftest.make
3090fi
3091if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093$as_echo "yes" >&6; }
3094  SET_MAKE=
3095else
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
3098  SET_MAKE="MAKE=${MAKE-make}"
3099fi
3100
3101rm -rf .tst 2>/dev/null
3102mkdir .tst 2>/dev/null
3103if test -d .tst; then
3104  am__leading_dot=.
3105else
3106  am__leading_dot=_
3107fi
3108rmdir .tst 2>/dev/null
3109
3110if test "`cd $srcdir && pwd`" != "`pwd`"; then
3111  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3112  # is not polluted with repeated "-I."
3113  am__isrc=' -I$(srcdir)'
3114  # test to see if srcdir already configured
3115  if test -f $srcdir/config.status; then
3116    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3117  fi
3118fi
3119
3120# test whether we have cygpath
3121if test -z "$CYGPATH_W"; then
3122  if (cygpath --version) >/dev/null 2>/dev/null; then
3123    CYGPATH_W='cygpath -w'
3124  else
3125    CYGPATH_W=echo
3126  fi
3127fi
3128
3129
3130# Define the identity of the package.
3131 PACKAGE='cppad'
3132 VERSION='20160318'
3133
3134
3135cat >>confdefs.h <<_ACEOF
3136#define PACKAGE "$PACKAGE"
3137_ACEOF
3138
3139
3140cat >>confdefs.h <<_ACEOF
3141#define VERSION "$VERSION"
3142_ACEOF
3143
3144# Some tools Automake needs.
3145
3146ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3147
3148
3149AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3150
3151
3152AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3153
3154
3155AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3156
3157
3158MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3159
3160# For better backward compatibility.  To be removed once Automake 1.9.x
3161# dies out for good.  For more background, see:
3162# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3163# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3164mkdir_p='$(MKDIR_P)'
3165
3166# We need awk for the "check" target (and possibly the TAP driver).  The
3167# system "awk" is bad on some platforms.
3168# Always define AMTAR for backward compatibility.  Yes, it's still used
3169# in the wild :-(  We should find a proper way to deprecate it ...
3170AMTAR='$${TAR-tar}'
3171
3172
3173# We'll loop over all known methods to create a tar archive until one works.
3174_am_tools='gnutar  pax cpio none'
3175
3176am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3177
3178
3179
3180
3181
3182
3183# POSIX will say in a future version that running "rm -f" with no argument
3184# is OK; and we want to be able to make that assumption in our Makefile
3185# recipes.  So use an aggressive probe to check that the usage we want is
3186# actually supported "in the wild" to an acceptable degree.
3187# See automake bug#10828.
3188# To make any issue more visible, cause the running configure to be aborted
3189# by default if the 'rm' program in use doesn't match our expectations; the
3190# user can still override this though.
3191if rm -f && rm -fr && rm -rf; then : OK; else
3192  cat >&2 <<'END'
3193Oops!
3194
3195Your 'rm' program seems unable to run without file operands specified
3196on the command line, even when the '-f' option is present.  This is contrary
3197to the behaviour of most rm programs out there, and not conforming with
3198the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3199
3200Please tell bug-automake@gnu.org about your system, including the value
3201of your $PATH and any error possibly output before this message.  This
3202can help us improve future automake versions.
3203
3204END
3205  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3206    echo 'Configuration will proceed anyway, since you have set the' >&2
3207    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3208    echo >&2
3209  else
3210    cat >&2 <<'END'
3211Aborting the configuration process, to ensure you take notice of the issue.
3212
3213You can download and install GNU coreutils to get an 'rm' implementation
3214that behaves properly: <http://www.gnu.org/software/coreutils/>.
3215
3216If you want to complete the configuration process using your problematic
3217'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3218to "yes", and re-run configure.
3219
3220END
3221    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3222  fi
3223fi
3224
3225
3226# check if we have ar program
3227have_ar='yes'
3228DEPDIR="${am__leading_dot}deps"
3229
3230ac_config_commands="$ac_config_commands depfiles"
3231
3232
3233am_make=${MAKE-make}
3234cat > confinc << 'END'
3235am__doit:
3236        @echo this is the am__doit target
3237.PHONY: am__doit
3238END
3239# If we don't find an include directive, just comment out the code.
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3241$as_echo_n "checking for style of include used by $am_make... " >&6; }
3242am__include="#"
3243am__quote=
3244_am_result=none
3245# First try GNU make style include.
3246echo "include confinc" > confmf
3247# Ignore all kinds of additional output from 'make'.
3248case `$am_make -s -f confmf 2> /dev/null` in #(
3249*the\ am__doit\ target*)
3250  am__include=include
3251  am__quote=
3252  _am_result=GNU
3253  ;;
3254esac
3255# Now try BSD make style include.
3256if test "$am__include" = "#"; then
3257   echo '.include "confinc"' > confmf
3258   case `$am_make -s -f confmf 2> /dev/null` in #(
3259   *the\ am__doit\ target*)
3260     am__include=.include
3261     am__quote="\""
3262     _am_result=BSD
3263     ;;
3264   esac
3265fi
3266
3267
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3269$as_echo "$_am_result" >&6; }
3270rm -f confinc confmf
3271
3272# Check whether --enable-dependency-tracking was given.
3273if test "${enable_dependency_tracking+set}" = set; then :
3274  enableval=$enable_dependency_tracking;
3275fi
3276
3277if test "x$enable_dependency_tracking" != xno; then
3278  am_depcomp="$ac_aux_dir/depcomp"
3279  AMDEPBACKSLASH='\'
3280  am__nodep='_no'
3281fi
3282 if test "x$enable_dependency_tracking" != xno; then
3283  AMDEP_TRUE=
3284  AMDEP_FALSE='#'
3285else
3286  AMDEP_TRUE='#'
3287  AMDEP_FALSE=
3288fi
3289
3290
3291ac_ext=c
3292ac_cpp='$CPP $CPPFLAGS'
3293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296if test -n "$ac_tool_prefix"; then
3297  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3298set dummy ${ac_tool_prefix}gcc; ac_word=$2
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300$as_echo_n "checking for $ac_word... " >&6; }
3301if ${ac_cv_prog_CC+:} false; then :
3302  $as_echo_n "(cached) " >&6
3303else
3304  if test -n "$CC"; then
3305  ac_cv_prog_CC="$CC" # Let the user override the test.
3306else
3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310  IFS=$as_save_IFS
3311  test -z "$as_dir" && as_dir=.
3312    for ac_exec_ext in '' $ac_executable_extensions; do
3313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316    break 2
3317  fi
3318done
3319  done
3320IFS=$as_save_IFS
3321
3322fi
3323fi
3324CC=$ac_cv_prog_CC
3325if test -n "$CC"; then
3326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327$as_echo "$CC" >&6; }
3328else
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331fi
3332
3333
3334fi
3335if test -z "$ac_cv_prog_CC"; then
3336  ac_ct_CC=$CC
3337  # Extract the first word of "gcc", so it can be a program name with args.
3338set dummy gcc; ac_word=$2
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340$as_echo_n "checking for $ac_word... " >&6; }
3341if ${ac_cv_prog_ac_ct_CC+:} false; then :
3342  $as_echo_n "(cached) " >&6
3343else
3344  if test -n "$ac_ct_CC"; then
3345  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3346else
3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348for as_dir in $PATH
3349do
3350  IFS=$as_save_IFS
3351  test -z "$as_dir" && as_dir=.
3352    for ac_exec_ext in '' $ac_executable_extensions; do
3353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354    ac_cv_prog_ac_ct_CC="gcc"
3355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356    break 2
3357  fi
3358done
3359  done
3360IFS=$as_save_IFS
3361
3362fi
3363fi
3364ac_ct_CC=$ac_cv_prog_ac_ct_CC
3365if test -n "$ac_ct_CC"; then
3366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3367$as_echo "$ac_ct_CC" >&6; }
3368else
3369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370$as_echo "no" >&6; }
3371fi
3372
3373  if test "x$ac_ct_CC" = x; then
3374    CC=""
3375  else
3376    case $cross_compiling:$ac_tool_warned in
3377yes:)
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380ac_tool_warned=yes ;;
3381esac
3382    CC=$ac_ct_CC
3383  fi
3384else
3385  CC="$ac_cv_prog_CC"
3386fi
3387
3388if test -z "$CC"; then
3389          if test -n "$ac_tool_prefix"; then
3390    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3391set dummy ${ac_tool_prefix}cc; ac_word=$2
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393$as_echo_n "checking for $ac_word... " >&6; }
3394if ${ac_cv_prog_CC+:} false; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397  if test -n "$CC"; then
3398  ac_cv_prog_CC="$CC" # Let the user override the test.
3399else
3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403  IFS=$as_save_IFS
3404  test -z "$as_dir" && as_dir=.
3405    for ac_exec_ext in '' $ac_executable_extensions; do
3406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407    ac_cv_prog_CC="${ac_tool_prefix}cc"
3408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409    break 2
3410  fi
3411done
3412  done
3413IFS=$as_save_IFS
3414
3415fi
3416fi
3417CC=$ac_cv_prog_CC
3418if test -n "$CC"; then
3419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420$as_echo "$CC" >&6; }
3421else
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
3424fi
3425
3426
3427  fi
3428fi
3429if test -z "$CC"; then
3430  # Extract the first word of "cc", so it can be a program name with args.
3431set dummy cc; ac_word=$2
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433$as_echo_n "checking for $ac_word... " >&6; }
3434if ${ac_cv_prog_CC+:} false; then :
3435  $as_echo_n "(cached) " >&6
3436else
3437  if test -n "$CC"; then
3438  ac_cv_prog_CC="$CC" # Let the user override the test.
3439else
3440  ac_prog_rejected=no
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444  IFS=$as_save_IFS
3445  test -z "$as_dir" && as_dir=.
3446    for ac_exec_ext in '' $ac_executable_extensions; do
3447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449       ac_prog_rejected=yes
3450       continue
3451     fi
3452    ac_cv_prog_CC="cc"
3453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457  done
3458IFS=$as_save_IFS
3459
3460if test $ac_prog_rejected = yes; then
3461  # We found a bogon in the path, so make sure we never use it.
3462  set dummy $ac_cv_prog_CC
3463  shift
3464  if test $# != 0; then
3465    # We chose a different compiler from the bogus one.
3466    # However, it has the same basename, so the bogon will be chosen
3467    # first if we set CC to just the basename; use the full file name.
3468    shift
3469    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3470  fi
3471fi
3472fi
3473fi
3474CC=$ac_cv_prog_CC
3475if test -n "$CC"; then
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477$as_echo "$CC" >&6; }
3478else
3479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480$as_echo "no" >&6; }
3481fi
3482
3483
3484fi
3485if test -z "$CC"; then
3486  if test -n "$ac_tool_prefix"; then
3487  for ac_prog in cl.exe
3488  do
3489    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492$as_echo_n "checking for $ac_word... " >&6; }
3493if ${ac_cv_prog_CC+:} false; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  if test -n "$CC"; then
3497  ac_cv_prog_CC="$CC" # Let the user override the test.
3498else
3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500for as_dir in $PATH
3501do
3502  IFS=$as_save_IFS
3503  test -z "$as_dir" && as_dir=.
3504    for ac_exec_ext in '' $ac_executable_extensions; do
3505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508    break 2
3509  fi
3510done
3511  done
3512IFS=$as_save_IFS
3513
3514fi
3515fi
3516CC=$ac_cv_prog_CC
3517if test -n "$CC"; then
3518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519$as_echo "$CC" >&6; }
3520else
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522$as_echo "no" >&6; }
3523fi
3524
3525
3526    test -n "$CC" && break
3527  done
3528fi
3529if test -z "$CC"; then
3530  ac_ct_CC=$CC
3531  for ac_prog in cl.exe
3532do
3533  # Extract the first word of "$ac_prog", so it can be a program name with args.
3534set dummy $ac_prog; ac_word=$2
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536$as_echo_n "checking for $ac_word... " >&6; }
3537if ${ac_cv_prog_ac_ct_CC+:} false; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540  if test -n "$ac_ct_CC"; then
3541  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542else
3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544for as_dir in $PATH
3545do
3546  IFS=$as_save_IFS
3547  test -z "$as_dir" && as_dir=.
3548    for ac_exec_ext in '' $ac_executable_extensions; do
3549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550    ac_cv_prog_ac_ct_CC="$ac_prog"
3551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552    break 2
3553  fi
3554done
3555  done
3556IFS=$as_save_IFS
3557
3558fi
3559fi
3560ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561if test -n "$ac_ct_CC"; then
3562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563$as_echo "$ac_ct_CC" >&6; }
3564else
3565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566$as_echo "no" >&6; }
3567fi
3568
3569
3570  test -n "$ac_ct_CC" && break
3571done
3572
3573  if test "x$ac_ct_CC" = x; then
3574    CC=""
3575  else
3576    case $cross_compiling:$ac_tool_warned in
3577yes:)
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3580ac_tool_warned=yes ;;
3581esac
3582    CC=$ac_ct_CC
3583  fi
3584fi
3585
3586fi
3587
3588
3589test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591as_fn_error $? "no acceptable C compiler found in \$PATH
3592See \`config.log' for more details" "$LINENO" 5; }
3593
3594# Provide some information about the compiler.
3595$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3596set X $ac_compile
3597ac_compiler=$2
3598for ac_option in --version -v -V -qversion; do
3599  { { ac_try="$ac_compiler $ac_option >&5"
3600case "(($ac_try" in
3601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602  *) ac_try_echo=$ac_try;;
3603esac
3604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605$as_echo "$ac_try_echo"; } >&5
3606  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3607  ac_status=$?
3608  if test -s conftest.err; then
3609    sed '10a\
3610... rest of stderr output deleted ...
3611         10q' conftest.err >conftest.er1
3612    cat conftest.er1 >&5
3613  fi
3614  rm -f conftest.er1 conftest.err
3615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616  test $ac_status = 0; }
3617done
3618
3619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h.  */
3621
3622int
3623main ()
3624{
3625
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630ac_clean_files_save=$ac_clean_files
3631ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3632# Try to create an executable without -o first, disregard a.out.
3633# It will help us diagnose broken compilers, and finding out an intuition
3634# of exeext.
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3636$as_echo_n "checking whether the C compiler works... " >&6; }
3637ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3638
3639# The possible output files:
3640ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3641
3642ac_rmfiles=
3643for ac_file in $ac_files
3644do
3645  case $ac_file in
3646    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3647    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3648  esac
3649done
3650rm -f $ac_rmfiles
3651
3652if { { ac_try="$ac_link_default"
3653case "(($ac_try" in
3654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655  *) ac_try_echo=$ac_try;;
3656esac
3657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658$as_echo "$ac_try_echo"; } >&5
3659  (eval "$ac_link_default") 2>&5
3660  ac_status=$?
3661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662  test $ac_status = 0; }; then :
3663  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3664# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3665# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3666# so that the user can short-circuit this test for compilers unknown to
3667# Autoconf.
3668for ac_file in $ac_files ''
3669do
3670  test -f "$ac_file" || continue
3671  case $ac_file in
3672    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3673        ;;
3674    [ab].out )
3675        # We found the default executable, but exeext='' is most
3676        # certainly right.
3677        break;;
3678    *.* )
3679        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3680        then :; else
3681           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682        fi
3683        # We set ac_cv_exeext here because the later test for it is not
3684        # safe: cross compilers may not add the suffix if given an `-o'
3685        # argument, so we may need to know it at that point already.
3686        # Even if this section looks crufty: it has the advantage of
3687        # actually working.
3688        break;;
3689    * )
3690        break;;
3691  esac
3692done
3693test "$ac_cv_exeext" = no && ac_cv_exeext=
3694
3695else
3696  ac_file=''
3697fi
3698if test -z "$ac_file"; then :
3699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700$as_echo "no" >&6; }
3701$as_echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706as_fn_error 77 "C compiler cannot create executables
3707See \`config.log' for more details" "$LINENO" 5; }
3708else
3709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3710$as_echo "yes" >&6; }
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3713$as_echo_n "checking for C compiler default output file name... " >&6; }
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3715$as_echo "$ac_file" >&6; }
3716ac_exeext=$ac_cv_exeext
3717
3718rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3719ac_clean_files=$ac_clean_files_save
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3721$as_echo_n "checking for suffix of executables... " >&6; }
3722if { { ac_try="$ac_link"
3723case "(($ac_try" in
3724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725  *) ac_try_echo=$ac_try;;
3726esac
3727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728$as_echo "$ac_try_echo"; } >&5
3729  (eval "$ac_link") 2>&5
3730  ac_status=$?
3731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732  test $ac_status = 0; }; then :
3733  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3734# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3735# work properly (i.e., refer to `conftest.exe'), while it won't with
3736# `rm'.
3737for ac_file in conftest.exe conftest conftest.*; do
3738  test -f "$ac_file" || continue
3739  case $ac_file in
3740    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3742          break;;
3743    * ) break;;
3744  esac
3745done
3746else
3747  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3750See \`config.log' for more details" "$LINENO" 5; }
3751fi
3752rm -f conftest conftest$ac_cv_exeext
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3754$as_echo "$ac_cv_exeext" >&6; }
3755
3756rm -f conftest.$ac_ext
3757EXEEXT=$ac_cv_exeext
3758ac_exeext=$EXEEXT
3759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761#include <stdio.h>
3762int
3763main ()
3764{
3765FILE *f = fopen ("conftest.out", "w");
3766 return ferror (f) || fclose (f) != 0;
3767
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772ac_clean_files="$ac_clean_files conftest.out"
3773# Check that the compiler produces executables we can run.  If not, either
3774# the compiler is broken, or we cross compile.
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3776$as_echo_n "checking whether we are cross compiling... " >&6; }
3777if test "$cross_compiling" != yes; then
3778  { { ac_try="$ac_link"
3779case "(($ac_try" in
3780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781  *) ac_try_echo=$ac_try;;
3782esac
3783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784$as_echo "$ac_try_echo"; } >&5
3785  (eval "$ac_link") 2>&5
3786  ac_status=$?
3787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788  test $ac_status = 0; }
3789  if { ac_try='./conftest$ac_cv_exeext'
3790  { { case "(($ac_try" in
3791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792  *) ac_try_echo=$ac_try;;
3793esac
3794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795$as_echo "$ac_try_echo"; } >&5
3796  (eval "$ac_try") 2>&5
3797  ac_status=$?
3798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799  test $ac_status = 0; }; }; then
3800    cross_compiling=no
3801  else
3802    if test "$cross_compiling" = maybe; then
3803        cross_compiling=yes
3804    else
3805        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807as_fn_error $? "cannot run C compiled programs.
3808If you meant to cross compile, use \`--host'.
3809See \`config.log' for more details" "$LINENO" 5; }
3810    fi
3811  fi
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3814$as_echo "$cross_compiling" >&6; }
3815
3816rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3817ac_clean_files=$ac_clean_files_save
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3819$as_echo_n "checking for suffix of object files... " >&6; }
3820if ${ac_cv_objext+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h.  */
3825
3826int
3827main ()
3828{
3829
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834rm -f conftest.o conftest.obj
3835if { { ac_try="$ac_compile"
3836case "(($ac_try" in
3837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838  *) ac_try_echo=$ac_try;;
3839esac
3840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841$as_echo "$ac_try_echo"; } >&5
3842  (eval "$ac_compile") 2>&5
3843  ac_status=$?
3844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845  test $ac_status = 0; }; then :
3846  for ac_file in conftest.o conftest.obj conftest.*; do
3847  test -f "$ac_file" || continue;
3848  case $ac_file in
3849    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3850    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3851       break;;
3852  esac
3853done
3854else
3855  $as_echo "$as_me: failed program was:" >&5
3856sed 's/^/| /' conftest.$ac_ext >&5
3857
3858{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860as_fn_error $? "cannot compute suffix of object files: cannot compile
3861See \`config.log' for more details" "$LINENO" 5; }
3862fi
3863rm -f conftest.$ac_cv_objext conftest.$ac_ext
3864fi
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3866$as_echo "$ac_cv_objext" >&6; }
3867OBJEXT=$ac_cv_objext
3868ac_objext=$OBJEXT
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3870$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3871if ${ac_cv_c_compiler_gnu+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h.  */
3876
3877int
3878main ()
3879{
3880#ifndef __GNUC__
3881       choke me
3882#endif
3883
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888if ac_fn_c_try_compile "$LINENO"; then :
3889  ac_compiler_gnu=yes
3890else
3891  ac_compiler_gnu=no
3892fi
3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894ac_cv_c_compiler_gnu=$ac_compiler_gnu
3895
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3898$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3899if test $ac_compiler_gnu = yes; then
3900  GCC=yes
3901else
3902  GCC=
3903fi
3904ac_test_CFLAGS=${CFLAGS+set}
3905ac_save_CFLAGS=$CFLAGS
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3907$as_echo_n "checking whether $CC accepts -g... " >&6; }
3908if ${ac_cv_prog_cc_g+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  ac_save_c_werror_flag=$ac_c_werror_flag
3912   ac_c_werror_flag=yes
3913   ac_cv_prog_cc_g=no
3914   CFLAGS="-g"
3915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916/* end confdefs.h.  */
3917
3918int
3919main ()
3920{
3921
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926if ac_fn_c_try_compile "$LINENO"; then :
3927  ac_cv_prog_cc_g=yes
3928else
3929  CFLAGS=""
3930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h.  */
3932
3933int
3934main ()
3935{
3936
3937  ;
3938  return 0;
3939}
3940_ACEOF
3941if ac_fn_c_try_compile "$LINENO"; then :
3942
3943else
3944  ac_c_werror_flag=$ac_save_c_werror_flag
3945         CFLAGS="-g"
3946         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947/* end confdefs.h.  */
3948
3949int
3950main ()
3951{
3952
3953  ;
3954  return 0;
3955}
3956_ACEOF
3957if ac_fn_c_try_compile "$LINENO"; then :
3958  ac_cv_prog_cc_g=yes
3959fi
3960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961fi
3962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963fi
3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965   ac_c_werror_flag=$ac_save_c_werror_flag
3966fi
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3968$as_echo "$ac_cv_prog_cc_g" >&6; }
3969if test "$ac_test_CFLAGS" = set; then
3970  CFLAGS=$ac_save_CFLAGS
3971elif test $ac_cv_prog_cc_g = yes; then
3972  if test "$GCC" = yes; then
3973    CFLAGS="-g -O2"
3974  else
3975    CFLAGS="-g"
3976  fi
3977else
3978  if test "$GCC" = yes; then
3979    CFLAGS="-O2"
3980  else
3981    CFLAGS=
3982  fi
3983fi
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3985$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3986if ${ac_cv_prog_cc_c89+:} false; then :
3987  $as_echo_n "(cached) " >&6
3988else
3989  ac_cv_prog_cc_c89=no
3990ac_save_CC=$CC
3991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h.  */
3993#include <stdarg.h>
3994#include <stdio.h>
3995struct stat;
3996/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3997struct buf { int x; };
3998FILE * (*rcsopen) (struct buf *, struct stat *, int);
3999static char *e (p, i)
4000     char **p;
4001     int i;
4002{
4003  return p[i];
4004}
4005static char *f (char * (*g) (char **, int), char **p, ...)
4006{
4007  char *s;
4008  va_list v;
4009  va_start (v,p);
4010  s = g (p, va_arg (v,int));
4011  va_end (v);
4012  return s;
4013}
4014
4015/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4016   function prototypes and stuff, but not '\xHH' hex character constants.
4017   These don't provoke an error unfortunately, instead are silently treated
4018   as 'x'.  The following induces an error, until -std is added to get
4019   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4020   array size at least.  It's necessary to write '\x00'==0 to get something
4021   that's true only with -std.  */
4022int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4023
4024/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4025   inside strings and character constants.  */
4026#define FOO(x) 'x'
4027int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4028
4029int test (int i, double x);
4030struct s1 {int (*f) (int a);};
4031struct s2 {int (*f) (double a);};
4032int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4033int argc;
4034char **argv;
4035int
4036main ()
4037{
4038return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4044        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045do
4046  CC="$ac_save_CC $ac_arg"
4047  if ac_fn_c_try_compile "$LINENO"; then :
4048  ac_cv_prog_cc_c89=$ac_arg
4049fi
4050rm -f core conftest.err conftest.$ac_objext
4051  test "x$ac_cv_prog_cc_c89" != "xno" && break
4052done
4053rm -f conftest.$ac_ext
4054CC=$ac_save_CC
4055
4056fi
4057# AC_CACHE_VAL
4058case "x$ac_cv_prog_cc_c89" in
4059  x)
4060    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4061$as_echo "none needed" >&6; } ;;
4062  xno)
4063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4064$as_echo "unsupported" >&6; } ;;
4065  *)
4066    CC="$CC $ac_cv_prog_cc_c89"
4067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4068$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4069esac
4070if test "x$ac_cv_prog_cc_c89" != xno; then :
4071
4072fi
4073
4074ac_ext=c
4075ac_cpp='$CPP $CPPFLAGS'
4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079
4080ac_ext=c
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4086$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4087if ${am_cv_prog_cc_c_o+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h.  */
4092
4093int
4094main ()
4095{
4096
4097  ;
4098  return 0;
4099}
4100_ACEOF
4101  # Make sure it works both with $CC and with simple cc.
4102  # Following AC_PROG_CC_C_O, we do the test twice because some
4103  # compilers refuse to overwrite an existing .o file with -o,
4104  # though they will create one.
4105  am_cv_prog_cc_c_o=yes
4106  for am_i in 1 2; do
4107    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4108   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4109   ac_status=$?
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); } \
4112         && test -f conftest2.$ac_objext; then
4113      : OK
4114    else
4115      am_cv_prog_cc_c_o=no
4116      break
4117    fi
4118  done
4119  rm -f core conftest*
4120  unset am_i
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4123$as_echo "$am_cv_prog_cc_c_o" >&6; }
4124if test "$am_cv_prog_cc_c_o" != yes; then
4125   # Losing compiler, so override with the script.
4126   # FIXME: It is wrong to rewrite CC.
4127   # But if we don't then we get into trouble of one sort or another.
4128   # A longer-term fix would be to have automake use am__CC in this case,
4129   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4130   CC="$am_aux_dir/compile $CC"
4131fi
4132ac_ext=c
4133ac_cpp='$CPP $CPPFLAGS'
4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
4138
4139depcc="$CC"   am_compiler_list=
4140
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4142$as_echo_n "checking dependency style of $depcc... " >&6; }
4143if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4147  # We make a subdir and do the tests there.  Otherwise we can end up
4148  # making bogus files that we don't know about and never remove.  For
4149  # instance it was reported that on HP-UX the gcc test will end up
4150  # making a dummy file named 'D' -- because '-MD' means "put the output
4151  # in D".
4152  rm -rf conftest.dir
4153  mkdir conftest.dir
4154  # Copy depcomp to subdir because otherwise we won't find it if we're
4155  # using a relative directory.
4156  cp "$am_depcomp" conftest.dir
4157  cd conftest.dir
4158  # We will build objects and dependencies in a subdirectory because
4159  # it helps to detect inapplicable dependency modes.  For instance
4160  # both Tru64's cc and ICC support -MD to output dependencies as a
4161  # side effect of compilation, but ICC will put the dependencies in
4162  # the current directory while Tru64 will put them in the object
4163  # directory.
4164  mkdir sub
4165
4166  am_cv_CC_dependencies_compiler_type=none
4167  if test "$am_compiler_list" = ""; then
4168     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4169  fi
4170  am__universal=false
4171  case " $depcc " in #(
4172     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4173     esac
4174
4175  for depmode in $am_compiler_list; do
4176    # Setup a source with many dependencies, because some compilers
4177    # like to wrap large dependency lists on column 80 (with \), and
4178    # we should not choose a depcomp mode which is confused by this.
4179    #
4180    # We need to recreate these files for each test, as the compiler may
4181    # overwrite some of them when testing with obscure command lines.
4182    # This happens at least with the AIX C compiler.
4183    : > sub/conftest.c
4184    for i in 1 2 3 4 5 6; do
4185      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4186      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4187      # Solaris 10 /bin/sh.
4188      echo '/* dummy */' > sub/conftst$i.h
4189    done
4190    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4191
4192    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4193    # mode.  It turns out that the SunPro C++ compiler does not properly
4194    # handle '-M -o', and we need to detect this.  Also, some Intel
4195    # versions had trouble with output in subdirs.
4196    am__obj=sub/conftest.${OBJEXT-o}
4197    am__minus_obj="-o $am__obj"
4198    case $depmode in
4199    gcc)
4200      # This depmode causes a compiler race in universal mode.
4201      test "$am__universal" = false || continue
4202      ;;
4203    nosideeffect)
4204      # After this tag, mechanisms are not by side-effect, so they'll
4205      # only be used when explicitly requested.
4206      if test "x$enable_dependency_tracking" = xyes; then
4207        continue
4208      else
4209        break
4210      fi
4211      ;;
4212    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4213      # This compiler won't grok '-c -o', but also, the minuso test has
4214      # not run yet.  These depmodes are late enough in the game, and
4215      # so weak that their functioning should not be impacted.
4216      am__obj=conftest.${OBJEXT-o}
4217      am__minus_obj=
4218      ;;
4219    none) break ;;
4220    esac
4221    if depmode=$depmode \
4222       source=sub/conftest.c object=$am__obj \
4223       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4224       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4225         >/dev/null 2>conftest.err &&
4226       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4227       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4228       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4229       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4230      # icc doesn't choke on unknown options, it will just issue warnings
4231      # or remarks (even with -Werror).  So we grep stderr for any message
4232      # that says an option was ignored or not supported.
4233      # When given -MP, icc 7.0 and 7.1 complain thusly:
4234      #   icc: Command line warning: ignoring option '-M'; no argument required
4235      # The diagnosis changed in icc 8.0:
4236      #   icc: Command line remark: option '-MP' not supported
4237      if (grep 'ignoring option' conftest.err ||
4238          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4239        am_cv_CC_dependencies_compiler_type=$depmode
4240        break
4241      fi
4242    fi
4243  done
4244
4245  cd ..
4246  rm -rf conftest.dir
4247else
4248  am_cv_CC_dependencies_compiler_type=none
4249fi
4250
4251fi
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4253$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4254CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4255
4256 if
4257  test "x$enable_dependency_tracking" != xno \
4258  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4259  am__fastdepCC_TRUE=
4260  am__fastdepCC_FALSE='#'
4261else
4262  am__fastdepCC_TRUE='#'
4263  am__fastdepCC_FALSE=
4264fi
4265
4266
4267
4268if test -n "$ac_tool_prefix"; then
4269  for ac_prog in ar lib "link -lib"
4270  do
4271    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
4275if ${ac_cv_prog_AR+:} false; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  if test -n "$AR"; then
4279  ac_cv_prog_AR="$AR" # Let the user override the test.
4280else
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284  IFS=$as_save_IFS
4285  test -z "$as_dir" && as_dir=.
4286    for ac_exec_ext in '' $ac_executable_extensions; do
4287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290    break 2
4291  fi
4292done
4293  done
4294IFS=$as_save_IFS
4295
4296fi
4297fi
4298AR=$ac_cv_prog_AR
4299if test -n "$AR"; then
4300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4301$as_echo "$AR" >&6; }
4302else
4303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304$as_echo "no" >&6; }
4305fi
4306
4307
4308    test -n "$AR" && break
4309  done
4310fi
4311if test -z "$AR"; then
4312  ac_ct_AR=$AR
4313  for ac_prog in ar lib "link -lib"
4314do
4315  # Extract the first word of "$ac_prog", so it can be a program name with args.
4316set dummy $ac_prog; ac_word=$2
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318$as_echo_n "checking for $ac_word... " >&6; }
4319if ${ac_cv_prog_ac_ct_AR+:} false; then :
4320  $as_echo_n "(cached) " >&6
4321else
4322  if test -n "$ac_ct_AR"; then
4323  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4324else
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328  IFS=$as_save_IFS
4329  test -z "$as_dir" && as_dir=.
4330    for ac_exec_ext in '' $ac_executable_extensions; do
4331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332    ac_cv_prog_ac_ct_AR="$ac_prog"
4333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334    break 2
4335  fi
4336done
4337  done
4338IFS=$as_save_IFS
4339
4340fi
4341fi
4342ac_ct_AR=$ac_cv_prog_ac_ct_AR
4343if test -n "$ac_ct_AR"; then
4344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4345$as_echo "$ac_ct_AR" >&6; }
4346else
4347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
4349fi
4350
4351
4352  test -n "$ac_ct_AR" && break
4353done
4354
4355  if test "x$ac_ct_AR" = x; then
4356    AR="false"
4357  else
4358    case $cross_compiling:$ac_tool_warned in
4359yes:)
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4362ac_tool_warned=yes ;;
4363esac
4364    AR=$ac_ct_AR
4365  fi
4366fi
4367
4368: ${AR=ar}
4369
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4371$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4372if ${am_cv_ar_interface+:} false; then :
4373  $as_echo_n "(cached) " >&6
4374else
4375  ac_ext=c
4376ac_cpp='$CPP $CPPFLAGS'
4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381   am_cv_ar_interface=ar
4382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383/* end confdefs.h.  */
4384int some_variable = 0;
4385_ACEOF
4386if ac_fn_c_try_compile "$LINENO"; then :
4387  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4388      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4389  (eval $am_ar_try) 2>&5
4390  ac_status=$?
4391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392  test $ac_status = 0; }
4393      if test "$ac_status" -eq 0; then
4394        am_cv_ar_interface=ar
4395      else
4396        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4397        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4398  (eval $am_ar_try) 2>&5
4399  ac_status=$?
4400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401  test $ac_status = 0; }
4402        if test "$ac_status" -eq 0; then
4403          am_cv_ar_interface=lib
4404        else
4405          am_cv_ar_interface=unknown
4406        fi
4407      fi
4408      rm -f conftest.lib libconftest.a
4409
4410fi
4411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412   ac_ext=c
4413ac_cpp='$CPP $CPPFLAGS'
4414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417
4418fi
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4420$as_echo "$am_cv_ar_interface" >&6; }
4421
4422case $am_cv_ar_interface in
4423ar)
4424  ;;
4425lib)
4426  # Microsoft lib, so override with the ar-lib wrapper script.
4427  # FIXME: It is wrong to rewrite AR.
4428  # But if we don't then we get into trouble of one sort or another.
4429  # A longer-term fix would be to have automake use am__AR in this case,
4430  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4431  # similar.
4432  AR="$am_aux_dir/ar-lib $AR"
4433  ;;
4434unknown)
4435  have_ar='no'
4436  ;;
4437esac
4438
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: have_ar = $have_ar" >&5
4440$as_echo "$as_me: have_ar = $have_ar" >&6;}
4441
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: *** Check command line arguments that are longer used ****" >&5
4443$as_echo "$as_me: *** Check command line arguments that are longer used ****" >&6;}
4444
4445if test "$CPP_ERROR_WARN" != "" ; then
4446    as_fn_error $? "The CPP_ERROR_WARN configure option is now CXX_FLAGS" "$LINENO" 5
4447fi
4448
4449# Check whether --with-SpeedExample was given.
4450if test "${with_SpeedExample+set}" = set; then :
4451  withval=$with_SpeedExample; SpeedExample="yes"
4452else
4453  SpeedExample="no"
4454
4455fi
4456
4457if test "$SpeedExample" = "yes" ; then
4458    as_fn_error $? "--with-SpeedExample not necessary, see install instructions." "$LINENO" 5
4459fi
4460
4461# Check whether --with-profiling was given.
4462if test "${with_profiling+set}" = set; then :
4463  withval=$with_profiling; profiling="yes"
4464else
4465  profiling="no"
4466
4467fi
4468
4469if test "$profiling" = "yes" ; then
4470    as_fn_error $? "--with-profiling not necessary, see install instructions." "$LINENO" 5
4471fi
4472
4473# Check whether --with-Speed was given.
4474if test "${with_Speed+set}" = set; then :
4475  withval=$with_Speed; Speed="yes"
4476else
4477  Speed="no"
4478
4479fi
4480
4481if test "$Speed" = "yes" ; then
4482    as_fn_error $? "--with-Speed not necessary, see install instructions." "$LINENO" 5
4483fi
4484
4485# Check whether --with-Introduction was given.
4486if test "${with_Introduction+set}" = set; then :
4487  withval=$with_Introduction; Introduction="yes"
4488else
4489  Introduction="no"
4490
4491fi
4492
4493if test "$Introduction" = "yes" ; then
4494    as_fn_error $? "--with-Introduction not necessary, see install instructions." "$LINENO" 5
4495fi
4496
4497# Check whether --with-Example was given.
4498if test "${with_Example+set}" = set; then :
4499  withval=$with_Example; Example="yes"
4500else
4501  Example="no"
4502
4503fi
4504
4505if test "$Example" = "yes" ; then
4506    as_fn_error $? "--with-Example not necessary, see install instructions." "$LINENO" 5
4507fi
4508
4509# Check whether --with-TestMore was given.
4510if test "${with_TestMore+set}" = set; then :
4511  withval=$with_TestMore; TestMore="yes"
4512else
4513  TestMore="no"
4514
4515fi
4516
4517if test "$TestMore" = "yes" ; then
4518    as_fn_error $? "--with-TestMore not necessary, see install instructions." "$LINENO" 5
4519fi
4520
4521# Check whether --with-PrintFor was given.
4522if test "${with_PrintFor+set}" = set; then :
4523  withval=$with_PrintFor; PrintFor="yes"
4524else
4525  PrintFor="no"
4526
4527fi
4528
4529if test "$PrintFor" = "yes" ; then
4530    as_fn_error $? "--with-PrintFor not necessary, see install instructions." "$LINENO" 5
4531fi
4532
4533# Check whether --with-sparse_set was given.
4534if test "${with_sparse_set+set}" = set; then :
4535  withval=$with_sparse_set; sparse_set="yes"
4536else
4537  sparse_set="no"
4538
4539fi
4540
4541if test "$sparse_set" = "yes" ; then
4542        as_fn_error $? "--with-sparse_set is no longer available" "$LINENO" 5
4543fi
4544
4545# Check whether --with-sparse_list was given.
4546if test "${with_sparse_list+set}" = set; then :
4547  withval=$with_sparse_list; sparse_set="yes"
4548else
4549  sparse_set="no"
4550
4551fi
4552
4553if test "$sparse_set" = "yes" ; then
4554        as_fn_error $? "--with-sparse_set is no longer necessary" "$LINENO" 5
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: ******  Check command line arguments that are used ***********" >&5
4557$as_echo "$as_me: ******  Check command line arguments that are used ***********" >&6;}
4558
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-msvc" >&5
4560$as_echo_n "checking --enable-msvc... " >&6; }
4561# Check whether --enable-msvc was given.
4562if test "${enable_msvc+set}" = set; then :
4563  enableval=$enable_msvc; enable_msvc=$enableval
4564else
4565  enable_msvc=no
4566
4567fi
4568
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_msvc" >&5
4570$as_echo "$enable_msvc" >&6; }
4571
4572
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --prefix" >&5
4574$as_echo_n "checking --prefix... " >&6; }
4575if test "$prefix" = "NONE" ; then
4576        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOME" >&5
4577$as_echo "$HOME" >&6; }
4578else
4579        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $prefix" >&5
4580$as_echo "$prefix" >&6; }
4581fi
4582
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-Documentation" >&5
4584$as_echo_n "checking --with-Documentation... " >&6; }
4585
4586# Check whether --with-Documentation was given.
4587if test "${with_Documentation+set}" = set; then :
4588  withval=$with_Documentation; Documentation="yes"
4589else
4590  Documentation="no"
4591
4592fi
4593
4594 if test "$Documentation" = "yes"; then
4595  CppAD_DOCUMENTATION_TRUE=
4596  CppAD_DOCUMENTATION_FALSE='#'
4597else
4598  CppAD_DOCUMENTATION_TRUE='#'
4599  CppAD_DOCUMENTATION_FALSE=
4600fi
4601
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Documentation" >&5
4603$as_echo "$Documentation" >&6; }
4604
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-stdvector" >&5
4606$as_echo_n "checking --with-stdvector... " >&6; }
4607
4608# Check whether --with-stdvector was given.
4609if test "${with_stdvector+set}" = set; then :
4610  withval=$with_stdvector; stdvector="yes"
4611else
4612  stdvector="no"
4613
4614fi
4615
4616if test "$stdvector" = "yes" ; then
4617        cppad_stdvector=1
4618
4619else
4620        cppad_stdvector=0
4621
4622fi
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $stdvector" >&5
4624$as_echo "$stdvector" >&6; }
4625
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-boostvector" >&5
4627$as_echo_n "checking --with-boostvector... " >&6; }
4628
4629# Check whether --with-boostvector was given.
4630if test "${with_boostvector+set}" = set; then :
4631  withval=$with_boostvector; boostvector="yes"
4632else
4633  boostvector="no"
4634
4635fi
4636
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boostvector" >&5
4638$as_echo "$boostvector" >&6; }
4639if test "$boostvector" = "yes" ; then
4640        if test "$stdvector" != "no" ; then
4641                as_fn_error $? "cannot --with both stdvector and boostvector" "$LINENO" 5
4642        fi
4643        cppad_boostvector=1
4644
4645else
4646        cppad_boostvector=0
4647
4648fi
4649
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-eigenvector" >&5
4651$as_echo_n "checking --with-eigenvector... " >&6; }
4652
4653# Check whether --with-eigenvector was given.
4654if test "${with_eigenvector+set}" = set; then :
4655  withval=$with_eigenvector; eigenvector="yes"
4656else
4657  eigenvector="no"
4658
4659fi
4660
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $eigenvector" >&5
4662$as_echo "$eigenvector" >&6; }
4663if test "$eigenvector" = "yes" ; then
4664        if test "$stdvector" != "no" ; then
4665                as_fn_error $? "cannot --with both stdvector and eigenvector" "$LINENO" 5
4666        fi
4667        if test "$boostvector" != "no" ; then
4668                as_fn_error $? "cannot --with both boostvector and eigenvector" "$LINENO" 5
4669        fi
4670        cppad_eigenvector=1
4671
4672else
4673        cppad_eigenvector=0
4674
4675fi
4676
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-deprecated" >&5
4678$as_echo_n "checking --with-deprecated... " >&6; }
4679
4680# Check whether --with-deprecated was given.
4681if test "${with_deprecated+set}" = set; then :
4682  withval=$with_deprecated; deprecated="yes"
4683else
4684  deprecated="no"
4685
4686fi
4687
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $deprecated" >&5
4689$as_echo "$deprecated" >&6; }
4690 if test "$deprecated" = 'yes' ; then
4691  CppAD_DEPRECATED_TRUE=
4692  CppAD_DEPRECATED_FALSE='#'
4693else
4694  CppAD_DEPRECATED_TRUE='#'
4695  CppAD_DEPRECATED_FALSE=
4696fi
4697
4698if test "$deprecated" = "yes" ; then
4699        cppad_deprecated="1"
4700
4701else
4702        cppad_deprecated="0"
4703
4704fi
4705
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSTFIX_DIR" >&5
4707$as_echo_n "checking POSTFIX_DIR... " >&6; }
4708
4709 if test "$POSTFIX_DIR" != ""; then
4710  CppAD_POSTFIX_TRUE=
4711  CppAD_POSTFIX_FALSE='#'
4712else
4713  CppAD_POSTFIX_TRUE='#'
4714  CppAD_POSTFIX_FALSE=
4715fi
4716
4717if test "$POSTFIX_DIR" != "" ; then
4718        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTFIX_DIR" >&5
4719$as_echo "$POSTFIX_DIR" >&6; }
4720else
4721        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722$as_echo "no" >&6; }
4723fi
4724
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ADOLC_DIR" >&5
4726$as_echo_n "checking ADOLC_DIR... " >&6; }
4727
4728 if test "$ADOLC_DIR" != ""; then
4729  CppAD_ADOLC_TRUE=
4730  CppAD_ADOLC_FALSE='#'
4731else
4732  CppAD_ADOLC_TRUE='#'
4733  CppAD_ADOLC_FALSE=
4734fi
4735
4736if test "$ADOLC_DIR" != "" ; then
4737        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ADOLC_DIR" >&5
4738$as_echo "$ADOLC_DIR" >&6; }
4739        if test "$have_ar" = "no"; then
4740                as_fn_error $? "ar is missing and ADOLC_DIR is present" "$LINENO" 5
4741        fi
4742else
4743        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744$as_echo "no" >&6; }
4745fi
4746
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EIGEN_DIR" >&5
4748$as_echo_n "checking EIGEN_DIR... " >&6; }
4749
4750 if test "$EIGEN_DIR" != ""; then
4751  CppAD_EIGEN_DIR_TRUE=
4752  CppAD_EIGEN_DIR_FALSE='#'
4753else
4754  CppAD_EIGEN_DIR_TRUE='#'
4755  CppAD_EIGEN_DIR_FALSE=
4756fi
4757
4758if test "$EIGEN_DIR" != "" ; then
4759        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EIGEN_DIR" >&5
4760$as_echo "$EIGEN_DIR" >&6; }
4761        EIGEN_INCLUDE=-I$EIGEN_DIR/include
4762
4763else
4764        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765$as_echo "no" >&6; }
4766
4767fi
4768
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FADBAD_DIR" >&5
4770$as_echo_n "checking FADBAD_DIR... " >&6; }
4771
4772 if test "$FADBAD_DIR" != ""; then
4773  CppAD_FADBAD_TRUE=
4774  CppAD_FADBAD_FALSE='#'
4775else
4776  CppAD_FADBAD_TRUE='#'
4777  CppAD_FADBAD_FALSE=
4778fi
4779
4780if test "$FADBAD_DIR" != "" ; then
4781        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FADBAD_DIR" >&5
4782$as_echo "$FADBAD_DIR" >&6; }
4783        if test "$have_ar" = "no"; then
4784                as_fn_error $? "ar is missing and FADBAD_DIR is present" "$LINENO" 5
4785        fi
4786else
4787        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788$as_echo "no" >&6; }
4789fi
4790
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SACADO_DIR" >&5
4792$as_echo_n "checking SACADO_DIR... " >&6; }
4793
4794 if test "$SACADO_DIR" != ""; then
4795  CppAD_SACADO_TRUE=
4796  CppAD_SACADO_FALSE='#'
4797else
4798  CppAD_SACADO_TRUE='#'
4799  CppAD_SACADO_FALSE=
4800fi
4801
4802if test "$SACADO_DIR" != "" ; then
4803        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SACADO_DIR" >&5
4804$as_echo "$SACADO_DIR" >&6; }
4805        if test "$have_ar" = "no"; then
4806                as_fn_error $? "ar is missing and SACADO_DIR is present" "$LINENO" 5
4807        fi
4808else
4809        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810$as_echo "no" >&6; }
4811fi
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPOPT_DIR" >&5
4814$as_echo_n "checking IPOPT_DIR... " >&6; }
4815
4816 if test "$IPOPT_DIR" != ""; then
4817  CppAD_IPOPT_TRUE=
4818  CppAD_IPOPT_FALSE='#'
4819else
4820  CppAD_IPOPT_TRUE='#'
4821  CppAD_IPOPT_FALSE=
4822fi
4823
4824if test "$IPOPT_DIR" != "" ; then
4825        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPOPT_DIR" >&5
4826$as_echo "$IPOPT_DIR" >&6; }
4827        if test "$have_ar" = "no"; then
4828                as_fn_error $? "ar is missing and IPOPT_DIR is present" "$LINENO" 5
4829        fi
4830else
4831        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832$as_echo "no" >&6; }
4833fi
4834
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking BOOST_DIR" >&5
4836$as_echo_n "checking BOOST_DIR... " >&6; }
4837
4838 if test "$BOOST_DIR" != ""; then
4839  CppAD_BOOST_DIR_TRUE=
4840  CppAD_BOOST_DIR_FALSE='#'
4841else
4842  CppAD_BOOST_DIR_TRUE='#'
4843  CppAD_BOOST_DIR_FALSE=
4844fi
4845
4846if test "$BOOST_DIR" != "" ; then
4847        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_DIR" >&5
4848$as_echo "$BOOST_DIR" >&6; }
4849        BOOST_INCLUDE=-I$BOOST_DIR/include
4850
4851else
4852        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853$as_echo "no" >&6; }
4854
4855fi
4856
4857#
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXX_FLAGS" >&5
4859$as_echo_n "checking CXX_FLAGS... " >&6; }
4860
4861# cxx_flags for fadbad and eigen
4862if test "$CXX_FLAGS" != "" ; then
4863        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FLAGS" >&5
4864$as_echo "$CXX_FLAGS" >&6; }
4865        cxx_flags_fadbad=`echo "$CXX_FLAGS" | sed -e 's|-Wshadow||'`
4866        cxx_flags_eigen="$cxx_flags_fadbda -Wno-long-long"
4867else
4868        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869$as_echo "no" >&6; }
4870        cxx_flags_fadbad=""
4871        cxx_flags_eigen=""
4872fi
4873CXX_FLAGS_FADBAD="$cxx_flags_fadbad"
4874
4875CXX_FLAGS_EIGEN="$cxx_flags_eigen"
4876
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OPENMP_FLAGS" >&5
4879$as_echo_n "checking OPENMP_FLAGS... " >&6; }
4880
4881if test "$OPENMP_FLAGS" != "" ; then
4882        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENMP_FLAGS" >&5
4883$as_echo "$OPENMP_FLAGS" >&6; }
4884else
4885        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886$as_echo "no" >&6; }
4887fi
4888 if test "$OPENMP_FLAGS" != ""; then
4889  CppAD_OPENMP_TRUE=
4890  CppAD_OPENMP_FALSE='#'
4891else
4892  CppAD_OPENMP_TRUE='#'
4893  CppAD_OPENMP_FALSE=
4894fi
4895
4896
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MAX_NUM_THREADS" >&5
4898$as_echo_n "checking MAX_NUM_THREADS... " >&6; }
4899
4900if test "$MAX_NUM_THREADS" != "" ; then
4901        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAX_NUM_THREADS" >&5
4902$as_echo "$MAX_NUM_THREADS" >&6; }
4903        if test "$MAX_NUM_THREADS" -lt "4" ; then
4904                as_fn_error $? " MAX_NUM_THREADS=$MAX_NUM_THREADS is less than 4
4905                " "$LINENO" 5
4906        fi
4907        max_num_threads="$MAX_NUM_THREADS"
4908else
4909        max_num_threads="48"
4910        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using default value $max_num_threads" >&5
4911$as_echo "no, using default value $max_num_threads" >&6; }
4912fi
4913cppad_max_num_threads=$max_num_threads
4914
4915
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TAPE_ADDR_TYPE" >&5
4917$as_echo_n "checking TAPE_ADDR_TYPE... " >&6; }
4918
4919if test "$TAPE_ADDR_TYPE" == "" ; then
4920        addr_t="unsigned int"
4921else
4922        addr_t="$TAPE_ADDR_TYPE"
4923fi
4924cppad_tape_addr_type=$addr_t
4925
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $addr_t" >&5
4927$as_echo "$addr_t" >&6; }
4928ok="no"
4929if test "$addr_t" == "size_t" ; then
4930        ok="yes"
4931fi
4932if test "$addr_t" == "int" ; then
4933        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TAPE_ADDR_TYPE=int is for CppAD developers (not users)
4934        " >&5
4935$as_echo "$as_me: WARNING: TAPE_ADDR_TYPE=int is for CppAD developers (not users)
4936        " >&2;}
4937        ok="yes"
4938fi
4939if test "$addr_t" == "unsigned int" ; then
4940        ok="yes"
4941fi
4942if test "$addr_t" == "unsigned short int" ; then
4943        ok="yes"
4944fi
4945if test "$ok" == "no" ; then
4946        as_fn_error $? "$addr_t is not a valid choice for TAPE_ADDR_TYPE
4947        " "$LINENO" 5
4948fi
4949
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TAPE_ID_TYPE" >&5
4951$as_echo_n "checking TAPE_ID_TYPE... " >&6; }
4952
4953if test "$TAPE_ID_TYPE" == "" ; then
4954        tape_id_t="unsigned int"
4955else
4956        tape_id_t="$TAPE_ID_TYPE"
4957fi
4958cppad_tape_id_type=$tape_id_t
4959
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tape_id_t" >&5
4961$as_echo "$tape_id_t" >&6; }
4962ok="no"
4963if test "$tape_id_t" == "size_t" ; then
4964        ok="yes"
4965fi
4966if test "$tape_id_t" == "int" ; then
4967        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TAPE_ID_TYPE=int is for CppAD developers (not users)
4968        " >&5
4969$as_echo "$as_me: WARNING: TAPE_ID_TYPE=int is for CppAD developers (not users)
4970        " >&2;}
4971        ok="yes"
4972fi
4973if test "$tape_id_t" == "unsigned int" ; then
4974        ok="yes"
4975fi
4976if test "$tape_id_t" == "unsigned short int" ; then
4977        ok="yes"
4978fi
4979if test "$ok" == "no" ; then
4980        as_fn_error $? "$tape_id_t is not a valid choice for TAPE_ID_TYPE
4981        " "$LINENO" 5
4982fi
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: ********** End Checking Command Line arguments ***************" >&5
4984$as_echo "$as_me: ********** End Checking Command Line arguments ***************" >&6;}
4985
4986if test "$enable_msvc" == "no"
4987then
4988        cxx_list="g++ clang++ CC pgCC icpc gpp cxx cc++"
4989        cc_list="gcc clang cc pgcc icc"
4990        fc_list="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77"
4991else
4992                cxx_list="icl cl g++"
4993        cc_list="icl cl gcc"
4994        fc_list="ifort gfortran"
4995fi
4996
4997ac_ext=cpp
4998ac_cpp='$CXXCPP $CPPFLAGS'
4999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5002if test -z "$CXX"; then
5003  if test -n "$CCC"; then
5004    CXX=$CCC
5005  else
5006    if test -n "$ac_tool_prefix"; then
5007  for ac_prog in $cxx_list
5008  do
5009    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5010set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if ${ac_cv_prog_CXX+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  if test -n "$CXX"; then
5017  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022  IFS=$as_save_IFS
5023  test -z "$as_dir" && as_dir=.
5024    for ac_exec_ext in '' $ac_executable_extensions; do
5025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028    break 2
5029  fi
5030done
5031  done
5032IFS=$as_save_IFS
5033
5034fi
5035fi
5036CXX=$ac_cv_prog_CXX
5037if test -n "$CXX"; then
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5039$as_echo "$CXX" >&6; }
5040else
5041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
5043fi
5044
5045
5046    test -n "$CXX" && break
5047  done
5048fi
5049if test -z "$CXX"; then
5050  ac_ct_CXX=$CXX
5051  for ac_prog in $cxx_list
5052do
5053  # Extract the first word of "$ac_prog", so it can be a program name with args.
5054set dummy $ac_prog; ac_word=$2
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056$as_echo_n "checking for $ac_word... " >&6; }
5057if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060  if test -n "$ac_ct_CXX"; then
5061  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5062else
5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066  IFS=$as_save_IFS
5067  test -z "$as_dir" && as_dir=.
5068    for ac_exec_ext in '' $ac_executable_extensions; do
5069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070    ac_cv_prog_ac_ct_CXX="$ac_prog"
5071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072    break 2
5073  fi
5074done
5075  done
5076IFS=$as_save_IFS
5077
5078fi
5079fi
5080ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5081if test -n "$ac_ct_CXX"; then
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5083$as_echo "$ac_ct_CXX" >&6; }
5084else
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086$as_echo "no" >&6; }
5087fi
5088
5089
5090  test -n "$ac_ct_CXX" && break
5091done
5092
5093  if test "x$ac_ct_CXX" = x; then
5094    CXX="g++"
5095  else
5096    case $cross_compiling:$ac_tool_warned in
5097yes:)
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100ac_tool_warned=yes ;;
5101esac
5102    CXX=$ac_ct_CXX
5103  fi
5104fi
5105
5106  fi
5107fi
5108# Provide some information about the compiler.
5109$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5110set X $ac_compile
5111ac_compiler=$2
5112for ac_option in --version -v -V -qversion; do
5113  { { ac_try="$ac_compiler $ac_option >&5"
5114case "(($ac_try" in
5115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116  *) ac_try_echo=$ac_try;;
5117esac
5118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5119$as_echo "$ac_try_echo"; } >&5
5120  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5121  ac_status=$?
5122  if test -s conftest.err; then
5123    sed '10a\
5124... rest of stderr output deleted ...
5125         10q' conftest.err >conftest.er1
5126    cat conftest.er1 >&5
5127  fi
5128  rm -f conftest.er1 conftest.err
5129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130  test $ac_status = 0; }
5131done
5132
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5134$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5135if ${ac_cv_cxx_compiler_gnu+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h.  */
5140
5141int
5142main ()
5143{
5144#ifndef __GNUC__
5145       choke me
5146#endif
5147
5148  ;
5149  return 0;
5150}
5151_ACEOF
5152if ac_fn_cxx_try_compile "$LINENO"; then :
5153  ac_compiler_gnu=yes
5154else
5155  ac_compiler_gnu=no
5156fi
5157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5159
5160fi
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5162$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5163if test $ac_compiler_gnu = yes; then
5164  GXX=yes
5165else
5166  GXX=
5167fi
5168ac_test_CXXFLAGS=${CXXFLAGS+set}
5169ac_save_CXXFLAGS=$CXXFLAGS
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5171$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5172if ${ac_cv_prog_cxx_g+:} false; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5176   ac_cxx_werror_flag=yes
5177   ac_cv_prog_cxx_g=no
5178   CXXFLAGS="-g"
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180/* end confdefs.h.  */
5181
5182int
5183main ()
5184{
5185
5186  ;
5187  return 0;
5188}
5189_ACEOF
5190if ac_fn_cxx_try_compile "$LINENO"; then :
5191  ac_cv_prog_cxx_g=yes
5192else
5193  CXXFLAGS=""
5194      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195/* end confdefs.h.  */
5196
5197int
5198main ()
5199{
5200
5201  ;
5202  return 0;
5203}
5204_ACEOF
5205if ac_fn_cxx_try_compile "$LINENO"; then :
5206
5207else
5208  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5209         CXXFLAGS="-g"
5210         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212
5213int
5214main ()
5215{
5216
5217  ;
5218  return 0;
5219}
5220_ACEOF
5221if ac_fn_cxx_try_compile "$LINENO"; then :
5222  ac_cv_prog_cxx_g=yes
5223fi
5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225fi
5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227fi
5228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5230fi
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5232$as_echo "$ac_cv_prog_cxx_g" >&6; }
5233if test "$ac_test_CXXFLAGS" = set; then
5234  CXXFLAGS=$ac_save_CXXFLAGS
5235elif test $ac_cv_prog_cxx_g = yes; then
5236  if test "$GXX" = yes; then
5237    CXXFLAGS="-g -O2"
5238  else
5239    CXXFLAGS="-g"
5240  fi
5241else
5242  if test "$GXX" = yes; then
5243    CXXFLAGS="-O2"
5244  else
5245    CXXFLAGS=
5246  fi
5247fi
5248ac_ext=c
5249ac_cpp='$CPP $CPPFLAGS'
5250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252ac_compiler_gnu=$ac_cv_c_compiler_gnu
5253
5254depcc="$CXX"  am_compiler_list=
5255
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5257$as_echo_n "checking dependency style of $depcc... " >&6; }
5258if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5262  # We make a subdir and do the tests there.  Otherwise we can end up
5263  # making bogus files that we don't know about and never remove.  For
5264  # instance it was reported that on HP-UX the gcc test will end up
5265  # making a dummy file named 'D' -- because '-MD' means "put the output
5266  # in D".
5267  rm -rf conftest.dir
5268  mkdir conftest.dir
5269  # Copy depcomp to subdir because otherwise we won't find it if we're
5270  # using a relative directory.
5271  cp "$am_depcomp" conftest.dir
5272  cd conftest.dir
5273  # We will build objects and dependencies in a subdirectory because
5274  # it helps to detect inapplicable dependency modes.  For instance
5275  # both Tru64's cc and ICC support -MD to output dependencies as a
5276  # side effect of compilation, but ICC will put the dependencies in
5277  # the current directory while Tru64 will put them in the object
5278  # directory.
5279  mkdir sub
5280
5281  am_cv_CXX_dependencies_compiler_type=none
5282  if test "$am_compiler_list" = ""; then
5283     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5284  fi
5285  am__universal=false
5286  case " $depcc " in #(
5287     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5288     esac
5289
5290  for depmode in $am_compiler_list; do
5291    # Setup a source with many dependencies, because some compilers
5292    # like to wrap large dependency lists on column 80 (with \), and
5293    # we should not choose a depcomp mode which is confused by this.
5294    #
5295    # We need to recreate these files for each test, as the compiler may
5296    # overwrite some of them when testing with obscure command lines.
5297    # This happens at least with the AIX C compiler.
5298    : > sub/conftest.c
5299    for i in 1 2 3 4 5 6; do
5300      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5301      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5302      # Solaris 10 /bin/sh.
5303      echo '/* dummy */' > sub/conftst$i.h
5304    done
5305    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5306
5307    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5308    # mode.  It turns out that the SunPro C++ compiler does not properly
5309    # handle '-M -o', and we need to detect this.  Also, some Intel
5310    # versions had trouble with output in subdirs.
5311    am__obj=sub/conftest.${OBJEXT-o}
5312    am__minus_obj="-o $am__obj"
5313    case $depmode in
5314    gcc)
5315      # This depmode causes a compiler race in universal mode.
5316      test "$am__universal" = false || continue
5317      ;;
5318    nosideeffect)
5319      # After this tag, mechanisms are not by side-effect, so they'll
5320      # only be used when explicitly requested.
5321      if test "x$enable_dependency_tracking" = xyes; then
5322        continue
5323      else
5324        break
5325      fi
5326      ;;
5327    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5328      # This compiler won't grok '-c -o', but also, the minuso test has
5329      # not run yet.  These depmodes are late enough in the game, and
5330      # so weak that their functioning should not be impacted.
5331      am__obj=conftest.${OBJEXT-o}
5332      am__minus_obj=
5333      ;;
5334    none) break ;;
5335    esac
5336    if depmode=$depmode \
5337       source=sub/conftest.c object=$am__obj \
5338       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5339       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5340         >/dev/null 2>conftest.err &&
5341       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5342       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5343       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5344       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5345      # icc doesn't choke on unknown options, it will just issue warnings
5346      # or remarks (even with -Werror).  So we grep stderr for any message
5347      # that says an option was ignored or not supported.
5348      # When given -MP, icc 7.0 and 7.1 complain thusly:
5349      #   icc: Command line warning: ignoring option '-M'; no argument required
5350      # The diagnosis changed in icc 8.0:
5351      #   icc: Command line remark: option '-MP' not supported
5352      if (grep 'ignoring option' conftest.err ||
5353          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5354        am_cv_CXX_dependencies_compiler_type=$depmode
5355        break
5356      fi
5357    fi
5358  done
5359
5360  cd ..
5361  rm -rf conftest.dir
5362else
5363  am_cv_CXX_dependencies_compiler_type=none
5364fi
5365
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5368$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5369CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5370
5371 if
5372  test "x$enable_dependency_tracking" != xno \
5373  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5374  am__fastdepCXX_TRUE=
5375  am__fastdepCXX_FALSE='#'
5376else
5377  am__fastdepCXX_TRUE='#'
5378  am__fastdepCXX_FALSE=
5379fi
5380
5381
5382CXXFLAGS=""
5383
5384
5385ac_ext=c
5386ac_cpp='$CPP $CPPFLAGS'
5387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389ac_compiler_gnu=$ac_cv_c_compiler_gnu
5390if test -n "$ac_tool_prefix"; then
5391  for ac_prog in $cc_list
5392  do
5393    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5394set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396$as_echo_n "checking for $ac_word... " >&6; }
5397if ${ac_cv_prog_CC+:} false; then :
5398  $as_echo_n "(cached) " >&6
5399else
5400  if test -n "$CC"; then
5401  ac_cv_prog_CC="$CC" # Let the user override the test.
5402else
5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406  IFS=$as_save_IFS
5407  test -z "$as_dir" && as_dir=.
5408    for ac_exec_ext in '' $ac_executable_extensions; do
5409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412    break 2
5413  fi
5414done
5415  done
5416IFS=$as_save_IFS
5417
5418fi
5419fi
5420CC=$ac_cv_prog_CC
5421if test -n "$CC"; then
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5423$as_echo "$CC" >&6; }
5424else
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426$as_echo "no" >&6; }
5427fi
5428
5429
5430    test -n "$CC" && break
5431  done
5432fi
5433if test -z "$CC"; then
5434  ac_ct_CC=$CC
5435  for ac_prog in $cc_list
5436do
5437  # Extract the first word of "$ac_prog", so it can be a program name with args.
5438set dummy $ac_prog; ac_word=$2
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440$as_echo_n "checking for $ac_word... " >&6; }
5441if ${ac_cv_prog_ac_ct_CC+:} false; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  if test -n "$ac_ct_CC"; then
5445  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5446else
5447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448for as_dir in $PATH
5449do
5450  IFS=$as_save_IFS
5451  test -z "$as_dir" && as_dir=.
5452    for ac_exec_ext in '' $ac_executable_extensions; do
5453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454    ac_cv_prog_ac_ct_CC="$ac_prog"
5455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456    break 2
5457  fi
5458done
5459  done
5460IFS=$as_save_IFS
5461
5462fi
5463fi
5464ac_ct_CC=$ac_cv_prog_ac_ct_CC
5465if test -n "$ac_ct_CC"; then
5466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5467$as_echo "$ac_ct_CC" >&6; }
5468else
5469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470$as_echo "no" >&6; }
5471fi
5472
5473
5474  test -n "$ac_ct_CC" && break
5475done
5476
5477  if test "x$ac_ct_CC" = x; then
5478    CC=""
5479  else
5480    case $cross_compiling:$ac_tool_warned in
5481yes:)
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484ac_tool_warned=yes ;;
5485esac
5486    CC=$ac_ct_CC
5487  fi
5488fi
5489
5490
5491test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5493as_fn_error $? "no acceptable C compiler found in \$PATH
5494See \`config.log' for more details" "$LINENO" 5; }
5495
5496# Provide some information about the compiler.
5497$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5498set X $ac_compile
5499ac_compiler=$2
5500for ac_option in --version -v -V -qversion; do
5501  { { ac_try="$ac_compiler $ac_option >&5"
5502case "(($ac_try" in
5503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504  *) ac_try_echo=$ac_try;;
5505esac
5506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5507$as_echo "$ac_try_echo"; } >&5
5508  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5509  ac_status=$?
5510  if test -s conftest.err; then
5511    sed '10a\
5512... rest of stderr output deleted ...
5513         10q' conftest.err >conftest.er1
5514    cat conftest.er1 >&5
5515  fi
5516  rm -f conftest.er1 conftest.err
5517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5518  test $ac_status = 0; }
5519done
5520
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5522$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5523if ${ac_cv_c_compiler_gnu+:} false; then :
5524  $as_echo_n "(cached) " >&6
5525else
5526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h.  */
5528
5529int
5530main ()
5531{
5532#ifndef __GNUC__
5533       choke me
5534#endif
5535
5536  ;
5537  return 0;
5538}
5539_ACEOF
5540if ac_fn_c_try_compile "$LINENO"; then :
5541  ac_compiler_gnu=yes
5542else
5543  ac_compiler_gnu=no
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546ac_cv_c_compiler_gnu=$ac_compiler_gnu
5547
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5550$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5551if test $ac_compiler_gnu = yes; then
5552  GCC=yes
5553else
5554  GCC=
5555fi
5556ac_test_CFLAGS=${CFLAGS+set}
5557ac_save_CFLAGS=$CFLAGS
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5559$as_echo_n "checking whether $CC accepts -g... " >&6; }
5560if ${ac_cv_prog_cc_g+:} false; then :
5561  $as_echo_n "(cached) " >&6
5562else
5563  ac_save_c_werror_flag=$ac_c_werror_flag
5564   ac_c_werror_flag=yes
5565   ac_cv_prog_cc_g=no
5566   CFLAGS="-g"
5567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569
5570int
5571main ()
5572{
5573
5574  ;
5575  return 0;
5576}
5577_ACEOF
5578if ac_fn_c_try_compile "$LINENO"; then :
5579  ac_cv_prog_cc_g=yes
5580else
5581  CFLAGS=""
5582      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h.  */
5584
5585int
5586main ()
5587{
5588
5589  ;
5590  return 0;
5591}
5592_ACEOF
5593if ac_fn_c_try_compile "$LINENO"; then :
5594
5595else
5596  ac_c_werror_flag=$ac_save_c_werror_flag
5597         CFLAGS="-g"
5598         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h.  */
5600
5601int
5602main ()
5603{
5604
5605  ;
5606  return 0;
5607}
5608_ACEOF
5609if ac_fn_c_try_compile "$LINENO"; then :
5610  ac_cv_prog_cc_g=yes
5611fi
5612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613fi
5614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615fi
5616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617   ac_c_werror_flag=$ac_save_c_werror_flag
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5620$as_echo "$ac_cv_prog_cc_g" >&6; }
5621if test "$ac_test_CFLAGS" = set; then
5622  CFLAGS=$ac_save_CFLAGS
5623elif test $ac_cv_prog_cc_g = yes; then
5624  if test "$GCC" = yes; then
5625    CFLAGS="-g -O2"
5626  else
5627    CFLAGS="-g"
5628  fi
5629else
5630  if test "$GCC" = yes; then
5631    CFLAGS="-O2"
5632  else
5633    CFLAGS=
5634  fi
5635fi
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5637$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5638if ${ac_cv_prog_cc_c89+:} false; then :
5639  $as_echo_n "(cached) " >&6
5640else
5641  ac_cv_prog_cc_c89=no
5642ac_save_CC=$CC
5643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h.  */
5645#include <stdarg.h>
5646#include <stdio.h>
5647struct stat;
5648/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5649struct buf { int x; };
5650FILE * (*rcsopen) (struct buf *, struct stat *, int);
5651static char *e (p, i)
5652     char **p;
5653     int i;
5654{
5655  return p[i];
5656}
5657static char *f (char * (*g) (char **, int), char **p, ...)
5658{
5659  char *s;
5660  va_list v;
5661  va_start (v,p);
5662  s = g (p, va_arg (v,int));
5663  va_end (v);
5664  return s;
5665}
5666
5667/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5668   function prototypes and stuff, but not '\xHH' hex character constants.
5669   These don't provoke an error unfortunately, instead are silently treated
5670   as 'x'.  The following induces an error, until -std is added to get
5671   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5672   array size at least.  It's necessary to write '\x00'==0 to get something
5673   that's true only with -std.  */
5674int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5675
5676/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5677   inside strings and character constants.  */
5678#define FOO(x) 'x'
5679int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5680
5681int test (int i, double x);
5682struct s1 {int (*f) (int a);};
5683struct s2 {int (*f) (double a);};
5684int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5685int argc;
5686char **argv;
5687int
5688main ()
5689{
5690return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5691  ;
5692  return 0;
5693}
5694_ACEOF
5695for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5696        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5697do
5698  CC="$ac_save_CC $ac_arg"
5699  if ac_fn_c_try_compile "$LINENO"; then :
5700  ac_cv_prog_cc_c89=$ac_arg
5701fi
5702rm -f core conftest.err conftest.$ac_objext
5703  test "x$ac_cv_prog_cc_c89" != "xno" && break
5704done
5705rm -f conftest.$ac_ext
5706CC=$ac_save_CC
5707
5708fi
5709# AC_CACHE_VAL
5710case "x$ac_cv_prog_cc_c89" in
5711  x)
5712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5713$as_echo "none needed" >&6; } ;;
5714  xno)
5715    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5716$as_echo "unsupported" >&6; } ;;
5717  *)
5718    CC="$CC $ac_cv_prog_cc_c89"
5719    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5720$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5721esac
5722if test "x$ac_cv_prog_cc_c89" != xno; then :
5723
5724fi
5725
5726ac_ext=c
5727ac_cpp='$CPP $CPPFLAGS'
5728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731
5732ac_ext=c
5733ac_cpp='$CPP $CPPFLAGS'
5734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5738$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5739if ${am_cv_prog_cc_c_o+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h.  */
5744
5745int
5746main ()
5747{
5748
5749  ;
5750  return 0;
5751}
5752_ACEOF
5753  # Make sure it works both with $CC and with simple cc.
5754  # Following AC_PROG_CC_C_O, we do the test twice because some
5755  # compilers refuse to overwrite an existing .o file with -o,
5756  # though they will create one.
5757  am_cv_prog_cc_c_o=yes
5758  for am_i in 1 2; do
5759    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5760   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); } \
5764         && test -f conftest2.$ac_objext; then
5765      : OK
5766    else
5767      am_cv_prog_cc_c_o=no
5768      break
5769    fi
5770  done
5771  rm -f core conftest*
5772  unset am_i
5773fi
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5775$as_echo "$am_cv_prog_cc_c_o" >&6; }
5776if test "$am_cv_prog_cc_c_o" != yes; then
5777   # Losing compiler, so override with the script.
5778   # FIXME: It is wrong to rewrite CC.
5779   # But if we don't then we get into trouble of one sort or another.
5780   # A longer-term fix would be to have automake use am__CC in this case,
5781   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5782   CC="$am_aux_dir/compile $CC"
5783fi
5784ac_ext=c
5785ac_cpp='$CPP $CPPFLAGS'
5786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789
5790
5791depcc="$CC"   am_compiler_list=
5792
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5794$as_echo_n "checking dependency style of $depcc... " >&6; }
5795if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5796  $as_echo_n "(cached) " >&6
5797else
5798  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5799  # We make a subdir and do the tests there.  Otherwise we can end up
5800  # making bogus files that we don't know about and never remove.  For
5801  # instance it was reported that on HP-UX the gcc test will end up
5802  # making a dummy file named 'D' -- because '-MD' means "put the output
5803  # in D".
5804  rm -rf conftest.dir
5805  mkdir conftest.dir
5806  # Copy depcomp to subdir because otherwise we won't find it if we're
5807  # using a relative directory.
5808  cp "$am_depcomp" conftest.dir
5809  cd conftest.dir
5810  # We will build objects and dependencies in a subdirectory because
5811  # it helps to detect inapplicable dependency modes.  For instance
5812  # both Tru64's cc and ICC support -MD to output dependencies as a
5813  # side effect of compilation, but ICC will put the dependencies in
5814  # the current directory while Tru64 will put them in the object
5815  # directory.
5816  mkdir sub
5817
5818  am_cv_CC_dependencies_compiler_type=none
5819  if test "$am_compiler_list" = ""; then
5820     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5821  fi
5822  am__universal=false
5823  case " $depcc " in #(
5824     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5825     esac
5826
5827  for depmode in $am_compiler_list; do
5828    # Setup a source with many dependencies, because some compilers
5829    # like to wrap large dependency lists on column 80 (with \), and
5830    # we should not choose a depcomp mode which is confused by this.
5831    #
5832    # We need to recreate these files for each test, as the compiler may
5833    # overwrite some of them when testing with obscure command lines.
5834    # This happens at least with the AIX C compiler.
5835    : > sub/conftest.c
5836    for i in 1 2 3 4 5 6; do
5837      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5838      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5839      # Solaris 10 /bin/sh.
5840      echo '/* dummy */' > sub/conftst$i.h
5841    done
5842    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5843
5844    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5845    # mode.  It turns out that the SunPro C++ compiler does not properly
5846    # handle '-M -o', and we need to detect this.  Also, some Intel
5847    # versions had trouble with output in subdirs.
5848    am__obj=sub/conftest.${OBJEXT-o}
5849    am__minus_obj="-o $am__obj"
5850    case $depmode in
5851    gcc)
5852      # This depmode causes a compiler race in universal mode.
5853      test "$am__universal" = false || continue
5854      ;;
5855    nosideeffect)
5856      # After this tag, mechanisms are not by side-effect, so they'll
5857      # only be used when explicitly requested.
5858      if test "x$enable_dependency_tracking" = xyes; then
5859        continue
5860      else
5861        break
5862      fi
5863      ;;
5864    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5865      # This compiler won't grok '-c -o', but also, the minuso test has
5866      # not run yet.  These depmodes are late enough in the game, and
5867      # so weak that their functioning should not be impacted.
5868      am__obj=conftest.${OBJEXT-o}
5869      am__minus_obj=
5870      ;;
5871    none) break ;;
5872    esac
5873    if depmode=$depmode \
5874       source=sub/conftest.c object=$am__obj \
5875       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5876       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5877         >/dev/null 2>conftest.err &&
5878       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5879       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5880       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5881       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5882      # icc doesn't choke on unknown options, it will just issue warnings
5883      # or remarks (even with -Werror).  So we grep stderr for any message
5884      # that says an option was ignored or not supported.
5885      # When given -MP, icc 7.0 and 7.1 complain thusly:
5886      #   icc: Command line warning: ignoring option '-M'; no argument required
5887      # The diagnosis changed in icc 8.0:
5888      #   icc: Command line remark: option '-MP' not supported
5889      if (grep 'ignoring option' conftest.err ||
5890          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5891        am_cv_CC_dependencies_compiler_type=$depmode
5892        break
5893      fi
5894    fi
5895  done
5896
5897  cd ..
5898  rm -rf conftest.dir
5899else
5900  am_cv_CC_dependencies_compiler_type=none
5901fi
5902
5903fi
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5905$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5906CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5907
5908 if
5909  test "x$enable_dependency_tracking" != xno \
5910  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5911  am__fastdepCC_TRUE=
5912  am__fastdepCC_FALSE='#'
5913else
5914  am__fastdepCC_TRUE='#'
5915  am__fastdepCC_FALSE=
5916fi
5917
5918
5919CFLAGS=""
5920
5921
5922ac_ext=${ac_fc_srcext-f}
5923ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5924ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5925ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5926if test -n "$ac_tool_prefix"; then
5927  for ac_prog in $fc_list
5928  do
5929    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932$as_echo_n "checking for $ac_word... " >&6; }
5933if ${ac_cv_prog_FC+:} false; then :
5934  $as_echo_n "(cached) " >&6
5935else
5936  if test -n "$FC"; then
5937  ac_cv_prog_FC="$FC" # Let the user override the test.
5938else
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942  IFS=$as_save_IFS
5943  test -z "$as_dir" && as_dir=.
5944    for ac_exec_ext in '' $ac_executable_extensions; do
5945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948    break 2
5949  fi
5950done
5951  done
5952IFS=$as_save_IFS
5953
5954fi
5955fi
5956FC=$ac_cv_prog_FC
5957if test -n "$FC"; then
5958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
5959$as_echo "$FC" >&6; }
5960else
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962$as_echo "no" >&6; }
5963fi
5964
5965
5966    test -n "$FC" && break
5967  done
5968fi
5969if test -z "$FC"; then
5970  ac_ct_FC=$FC
5971  for ac_prog in $fc_list
5972do
5973  # Extract the first word of "$ac_prog", so it can be a program name with args.
5974set dummy $ac_prog; ac_word=$2
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976$as_echo_n "checking for $ac_word... " >&6; }
5977if ${ac_cv_prog_ac_ct_FC+:} false; then :
5978  $as_echo_n "(cached) " >&6
5979else
5980  if test -n "$ac_ct_FC"; then
5981  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986  IFS=$as_save_IFS
5987  test -z "$as_dir" && as_dir=.
5988    for ac_exec_ext in '' $ac_executable_extensions; do
5989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990    ac_cv_prog_ac_ct_FC="$ac_prog"
5991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992    break 2
5993  fi
5994done
5995  done
5996IFS=$as_save_IFS
5997
5998fi
5999fi
6000ac_ct_FC=$ac_cv_prog_ac_ct_FC
6001if test -n "$ac_ct_FC"; then
6002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
6003$as_echo "$ac_ct_FC" >&6; }
6004else
6005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006$as_echo "no" >&6; }
6007fi
6008
6009
6010  test -n "$ac_ct_FC" && break
6011done
6012
6013  if test "x$ac_ct_FC" = x; then
6014    FC=""
6015  else
6016    case $cross_compiling:$ac_tool_warned in
6017yes:)
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6020ac_tool_warned=yes ;;
6021esac
6022    FC=$ac_ct_FC
6023  fi
6024fi
6025
6026
6027# Provide some information about the compiler.
6028$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
6029set X $ac_compile
6030ac_compiler=$2
6031for ac_option in --version -v -V -qversion; do
6032  { { ac_try="$ac_compiler $ac_option >&5"
6033case "(($ac_try" in
6034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035  *) ac_try_echo=$ac_try;;
6036esac
6037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6038$as_echo "$ac_try_echo"; } >&5
6039  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6040  ac_status=$?
6041  if test -s conftest.err; then
6042    sed '10a\
6043... rest of stderr output deleted ...
6044         10q' conftest.err >conftest.er1
6045    cat conftest.er1 >&5
6046  fi
6047  rm -f conftest.er1 conftest.err
6048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6049  test $ac_status = 0; }
6050done
6051rm -f a.out
6052
6053# If we don't use `.F' as extension, the preprocessor is not run on the
6054# input file.  (Note that this only needs to work for GNU compilers.)
6055ac_save_ext=$ac_ext
6056ac_ext=F
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
6058$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
6059if ${ac_cv_fc_compiler_gnu+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  cat > conftest.$ac_ext <<_ACEOF
6063      program main
6064#ifndef __GNUC__
6065       choke me
6066#endif
6067
6068      end
6069_ACEOF
6070if ac_fn_fc_try_compile "$LINENO"; then :
6071  ac_compiler_gnu=yes
6072else
6073  ac_compiler_gnu=no
6074fi
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076ac_cv_fc_compiler_gnu=$ac_compiler_gnu
6077
6078fi
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
6080$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
6081ac_ext=$ac_save_ext
6082ac_test_FCFLAGS=${FCFLAGS+set}
6083ac_save_FCFLAGS=$FCFLAGS
6084FCFLAGS=
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
6086$as_echo_n "checking whether $FC accepts -g... " >&6; }
6087if ${ac_cv_prog_fc_g+:} false; then :
6088  $as_echo_n "(cached) " >&6
6089else
6090  FCFLAGS=-g
6091cat > conftest.$ac_ext <<_ACEOF
6092      program main
6093
6094      end
6095_ACEOF
6096if ac_fn_fc_try_compile "$LINENO"; then :
6097  ac_cv_prog_fc_g=yes
6098else
6099  ac_cv_prog_fc_g=no
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102
6103fi
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
6105$as_echo "$ac_cv_prog_fc_g" >&6; }
6106if test "$ac_test_FCFLAGS" = set; then
6107  FCFLAGS=$ac_save_FCFLAGS
6108elif test $ac_cv_prog_fc_g = yes; then
6109  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6110    FCFLAGS="-g -O2"
6111  else
6112    FCFLAGS="-g"
6113  fi
6114else
6115  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6116    FCFLAGS="-O2"
6117  else
6118    FCFLAGS=
6119  fi
6120fi
6121
6122if test $ac_compiler_gnu = yes; then
6123  GFC=yes
6124else
6125  GFC=
6126fi
6127ac_ext=c
6128ac_cpp='$CPP $CPPFLAGS'
6129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133
6134# Extract the first word of "pkg-config", so it can be a program name with args.
6135set dummy pkg-config; ac_word=$2
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137$as_echo_n "checking for $ac_word... " >&6; }
6138if ${ac_cv_prog_have_pkg_config+:} false; then :
6139  $as_echo_n "(cached) " >&6
6140else
6141  if test -n "$have_pkg_config"; then
6142  ac_cv_prog_have_pkg_config="$have_pkg_config" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147  IFS=$as_save_IFS
6148  test -z "$as_dir" && as_dir=.
6149    for ac_exec_ext in '' $ac_executable_extensions; do
6150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151    ac_cv_prog_have_pkg_config="yes"
6152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153    break 2
6154  fi
6155done
6156  done
6157IFS=$as_save_IFS
6158
6159  test -z "$ac_cv_prog_have_pkg_config" && ac_cv_prog_have_pkg_config="no"
6160fi
6161fi
6162have_pkg_config=$ac_cv_prog_have_pkg_config
6163if test -n "$have_pkg_config"; then
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pkg_config" >&5
6165$as_echo "$have_pkg_config" >&6; }
6166else
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168$as_echo "no" >&6; }
6169fi
6170
6171
6172 if test "$have_pkg_config" = "yes"; then
6173  CppAD_PKG_CONFIG_TRUE=
6174  CppAD_PKG_CONFIG_FALSE='#'
6175else
6176  CppAD_PKG_CONFIG_TRUE='#'
6177  CppAD_PKG_CONFIG_FALSE=
6178fi
6179
6180
6181 if test "$have_ar" = 'yes' ; then
6182  CppAD_HAVE_AR_TRUE=
6183  CppAD_HAVE_AR_FALSE='#'
6184else
6185  CppAD_HAVE_AR_TRUE='#'
6186  CppAD_HAVE_AR_FALSE=
6187fi
6188
6189if test "$have_ar" = 'no'; then
6190        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot build any libraries because ar is missing; e.g,, speed/* not built
6191        " >&5
6192$as_echo "$as_me: WARNING: cannot build any libraries because ar is missing; e.g,, speed/* not built
6193        " >&2;}
6194fi
6195
6196cppad_cxx_flags="-g -O0"
6197
6198
6199cppad_has_colpack=0
6200
6201
6202cppad_has_mkstemp=1
6203
6204
6205cppad_has_nullptr=0
6206
6207cppad_has_rvalue=0
6208
6209cppad_has_cstdint_8_to_64=0
6210
6211cppad_use_cplusplus_2011=0
6212
6213cppad_has_high_resolution_clock=0
6214
6215
6216ac_ext=c
6217ac_cpp='$CPP $CPPFLAGS'
6218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6222$as_echo_n "checking how to run the C preprocessor... " >&6; }
6223# On Suns, sometimes $CPP names a directory.
6224if test -n "$CPP" && test -d "$CPP"; then
6225  CPP=
6226fi
6227if test -z "$CPP"; then
6228  if ${ac_cv_prog_CPP+:} false; then :
6229  $as_echo_n "(cached) " >&6
6230else
6231      # Double quotes because CPP needs to be expanded
6232    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6233    do
6234      ac_preproc_ok=false
6235for ac_c_preproc_warn_flag in '' yes
6236do
6237  # Use a header file that comes with gcc, so configuring glibc
6238  # with a fresh cross-compiler works.
6239  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6240  # <limits.h> exists even on freestanding compilers.
6241  # On the NeXT, cc -E runs the code through the compiler's parser,
6242  # not just through cpp. "Syntax error" is here to catch this case.
6243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245#ifdef __STDC__
6246# include <limits.h>
6247#else
6248# include <assert.h>
6249#endif
6250                     Syntax error
6251_ACEOF
6252if ac_fn_c_try_cpp "$LINENO"; then :
6253
6254else
6255  # Broken: fails on valid input.
6256continue
6257fi
6258rm -f conftest.err conftest.i conftest.$ac_ext
6259
6260  # OK, works on sane cases.  Now check whether nonexistent headers
6261  # can be detected and how.
6262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263/* end confdefs.h.  */
6264#include <ac_nonexistent.h>
6265_ACEOF
6266if ac_fn_c_try_cpp "$LINENO"; then :
6267  # Broken: success on invalid input.
6268continue
6269else
6270  # Passes both tests.
6271ac_preproc_ok=:
6272break
6273fi
6274rm -f conftest.err conftest.i conftest.$ac_ext
6275
6276done
6277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6278rm -f conftest.i conftest.err conftest.$ac_ext
6279if $ac_preproc_ok; then :
6280  break
6281fi
6282
6283    done
6284    ac_cv_prog_CPP=$CPP
6285
6286fi
6287  CPP=$ac_cv_prog_CPP
6288else
6289  ac_cv_prog_CPP=$CPP
6290fi
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6292$as_echo "$CPP" >&6; }
6293ac_preproc_ok=false
6294for ac_c_preproc_warn_flag in '' yes
6295do
6296  # Use a header file that comes with gcc, so configuring glibc
6297  # with a fresh cross-compiler works.
6298  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6299  # <limits.h> exists even on freestanding compilers.
6300  # On the NeXT, cc -E runs the code through the compiler's parser,
6301  # not just through cpp. "Syntax error" is here to catch this case.
6302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h.  */
6304#ifdef __STDC__
6305# include <limits.h>
6306#else
6307# include <assert.h>
6308#endif
6309                     Syntax error
6310_ACEOF
6311if ac_fn_c_try_cpp "$LINENO"; then :
6312
6313else
6314  # Broken: fails on valid input.
6315continue
6316fi
6317rm -f conftest.err conftest.i conftest.$ac_ext
6318
6319  # OK, works on sane cases.  Now check whether nonexistent headers
6320  # can be detected and how.
6321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322/* end confdefs.h.  */
6323#include <ac_nonexistent.h>
6324_ACEOF
6325if ac_fn_c_try_cpp "$LINENO"; then :
6326  # Broken: success on invalid input.
6327continue
6328else
6329  # Passes both tests.
6330ac_preproc_ok=:
6331break
6332fi
6333rm -f conftest.err conftest.i conftest.$ac_ext
6334
6335done
6336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6337rm -f conftest.i conftest.err conftest.$ac_ext
6338if $ac_preproc_ok; then :
6339
6340else
6341  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6343as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6344See \`config.log' for more details" "$LINENO" 5; }
6345fi
6346
6347ac_ext=c
6348ac_cpp='$CPP $CPPFLAGS'
6349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351ac_compiler_gnu=$ac_cv_c_compiler_gnu
6352
6353
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6355$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6356if ${ac_cv_path_GREP+:} false; then :
6357  $as_echo_n "(cached) " >&6
6358else
6359  if test -z "$GREP"; then
6360  ac_path_GREP_found=false
6361  # Loop through the user's path and test for each of PROGNAME-LIST
6362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6364do
6365  IFS=$as_save_IFS
6366  test -z "$as_dir" && as_dir=.
6367    for ac_prog in grep ggrep; do
6368    for ac_exec_ext in '' $ac_executable_extensions; do
6369      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6370      as_fn_executable_p "$ac_path_GREP" || continue
6371# Check for GNU ac_path_GREP and select it if it is found.
6372  # Check for GNU $ac_path_GREP
6373case `"$ac_path_GREP" --version 2>&1` in
6374*GNU*)
6375  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6376*)
6377  ac_count=0
6378  $as_echo_n 0123456789 >"conftest.in"
6379  while :
6380  do
6381    cat "conftest.in" "conftest.in" >"conftest.tmp"
6382    mv "conftest.tmp" "conftest.in"
6383    cp "conftest.in" "conftest.nl"
6384    $as_echo 'GREP' >> "conftest.nl"
6385    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6386    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6387    as_fn_arith $ac_count + 1 && ac_count=$as_val
6388    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6389      # Best one so far, save it but keep looking for a better one
6390      ac_cv_path_GREP="$ac_path_GREP"
6391      ac_path_GREP_max=$ac_count
6392    fi
6393    # 10*(2^10) chars as input seems more than enough
6394    test $ac_count -gt 10 && break
6395  done
6396  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6397esac
6398
6399      $ac_path_GREP_found && break 3
6400    done
6401  done
6402  done
6403IFS=$as_save_IFS
6404  if test -z "$ac_cv_path_GREP"; then
6405    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6406  fi
6407else
6408  ac_cv_path_GREP=$GREP
6409fi
6410
6411fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6413$as_echo "$ac_cv_path_GREP" >&6; }
6414 GREP="$ac_cv_path_GREP"
6415
6416
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6418$as_echo_n "checking for egrep... " >&6; }
6419if ${ac_cv_path_EGREP+:} false; then :
6420  $as_echo_n "(cached) " >&6
6421else
6422  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6423   then ac_cv_path_EGREP="$GREP -E"
6424   else
6425     if test -z "$EGREP"; then
6426  ac_path_EGREP_found=false
6427  # Loop through the user's path and test for each of PROGNAME-LIST
6428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6430do
6431  IFS=$as_save_IFS
6432  test -z "$as_dir" && as_dir=.
6433    for ac_prog in egrep; do
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6436      as_fn_executable_p "$ac_path_EGREP" || continue
6437# Check for GNU ac_path_EGREP and select it if it is found.
6438  # Check for GNU $ac_path_EGREP
6439case `"$ac_path_EGREP" --version 2>&1` in
6440*GNU*)
6441  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6442*)
6443  ac_count=0
6444  $as_echo_n 0123456789 >"conftest.in"
6445  while :
6446  do
6447    cat "conftest.in" "conftest.in" >"conftest.tmp"
6448    mv "conftest.tmp" "conftest.in"
6449    cp "conftest.in" "conftest.nl"
6450    $as_echo 'EGREP' >> "conftest.nl"
6451    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6452    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6453    as_fn_arith $ac_count + 1 && ac_count=$as_val
6454    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6455      # Best one so far, save it but keep looking for a better one
6456      ac_cv_path_EGREP="$ac_path_EGREP"
6457      ac_path_EGREP_max=$ac_count
6458    fi
6459    # 10*(2^10) chars as input seems more than enough
6460    test $ac_count -gt 10 && break
6461  done
6462  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6463esac
6464
6465      $ac_path_EGREP_found && break 3
6466    done
6467  done
6468  done
6469IFS=$as_save_IFS
6470  if test -z "$ac_cv_path_EGREP"; then
6471    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6472  fi
6473else
6474  ac_cv_path_EGREP=$EGREP
6475fi
6476
6477   fi
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6480$as_echo "$ac_cv_path_EGREP" >&6; }
6481 EGREP="$ac_cv_path_EGREP"
6482
6483
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6485$as_echo_n "checking for ANSI C header files... " >&6; }
6486if ${ac_cv_header_stdc+:} false; then :
6487  $as_echo_n "(cached) " >&6
6488else
6489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490/* end confdefs.h.  */
6491#include <stdlib.h>
6492#include <stdarg.h>
6493#include <string.h>
6494#include <float.h>
6495
6496int
6497main ()
6498{
6499
6500  ;
6501  return 0;
6502}
6503_ACEOF
6504if ac_fn_c_try_compile "$LINENO"; then :
6505  ac_cv_header_stdc=yes
6506else
6507  ac_cv_header_stdc=no
6508fi
6509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510
6511if test $ac_cv_header_stdc = yes; then
6512  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h.  */
6515#include <string.h>
6516
6517_ACEOF
6518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6519  $EGREP "memchr" >/dev/null 2>&1; then :
6520
6521else
6522  ac_cv_header_stdc=no
6523fi
6524rm -f conftest*
6525
6526fi
6527
6528if test $ac_cv_header_stdc = yes; then
6529  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h.  */
6532#include <stdlib.h>
6533
6534_ACEOF
6535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6536  $EGREP "free" >/dev/null 2>&1; then :
6537
6538else
6539  ac_cv_header_stdc=no
6540fi
6541rm -f conftest*
6542
6543fi
6544
6545if test $ac_cv_header_stdc = yes; then
6546  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6547  if test "$cross_compiling" = yes; then :
6548  :
6549else
6550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h.  */
6552#include <ctype.h>
6553#include <stdlib.h>
6554#if ((' ' & 0x0FF) == 0x020)
6555# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6556# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6557#else
6558# define ISLOWER(c) \
6559                   (('a' <= (c) && (c) <= 'i') \
6560                     || ('j' <= (c) && (c) <= 'r') \
6561                     || ('s' <= (c) && (c) <= 'z'))
6562# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6563#endif
6564
6565#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6566int
6567main ()
6568{
6569  int i;
6570  for (i = 0; i < 256; i++)
6571    if (XOR (islower (i), ISLOWER (i))
6572        || toupper (i) != TOUPPER (i))
6573      return 2;
6574  return 0;
6575}
6576_ACEOF
6577if ac_fn_c_try_run "$LINENO"; then :
6578
6579else
6580  ac_cv_header_stdc=no
6581fi
6582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6583  conftest.$ac_objext conftest.beam conftest.$ac_ext
6584fi
6585
6586fi
6587fi
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6589$as_echo "$ac_cv_header_stdc" >&6; }
6590if test $ac_cv_header_stdc = yes; then
6591
6592$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6593
6594fi
6595
6596# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6597for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6598                  inttypes.h stdint.h unistd.h
6599do :
6600  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6601ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6602"
6603if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6604  cat >>confdefs.h <<_ACEOF
6605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6606_ACEOF
6607
6608fi
6609
6610done
6611
6612
6613# The cast to long int works around a bug in the HP C Compiler
6614# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6615# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6616# This bug is HP SR number 8606223364.
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
6618$as_echo_n "checking size of size_t... " >&6; }
6619if ${ac_cv_sizeof_size_t+:} false; then :
6620  $as_echo_n "(cached) " >&6
6621else
6622  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
6623
6624else
6625  if test "$ac_cv_type_size_t" = yes; then
6626     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6628as_fn_error 77 "cannot compute sizeof (size_t)
6629See \`config.log' for more details" "$LINENO" 5; }
6630   else
6631     ac_cv_sizeof_size_t=0
6632   fi
6633fi
6634
6635fi
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
6637$as_echo "$ac_cv_sizeof_size_t" >&6; }
6638
6639
6640
6641cat >>confdefs.h <<_ACEOF
6642#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
6643_ACEOF
6644
6645
6646# The cast to long int works around a bug in the HP C Compiler
6647# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6648# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6649# This bug is HP SR number 8606223364.
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
6651$as_echo_n "checking size of unsigned int... " >&6; }
6652if ${ac_cv_sizeof_unsigned_int+:} false; then :
6653  $as_echo_n "(cached) " >&6
6654else
6655  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
6656
6657else
6658  if test "$ac_cv_type_unsigned_int" = yes; then
6659     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6661as_fn_error 77 "cannot compute sizeof (unsigned int)
6662See \`config.log' for more details" "$LINENO" 5; }
6663   else
6664     ac_cv_sizeof_unsigned_int=0
6665   fi
6666fi
6667
6668fi
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
6670$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
6671
6672
6673
6674cat >>confdefs.h <<_ACEOF
6675#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
6676_ACEOF
6677
6678
6679if test "$ac_cv_sizeof_size_t" != "$ac_cv_sizeof_unsigned_int" ; then
6680        cppad_size_t_not_unsigned_int=1
6681
6682else
6683        cppad_size_t_not_unsigned_int=0
6684
6685fi
6686
6687if test "$stdvector$boostvector$eigenvector" = "nonono" ; then
6688        cppad_cppadvector=1
6689
6690else
6691        cppad_cppadvector=0
6692
6693fi
6694
6695ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6696if test "x$ac_cv_func_gettimeofday" = xyes; then :
6697  gettimeofday="yes"
6698else
6699  gettimeofday="no"
6700
6701fi
6702
6703if test "$gettimeofday" = "yes" ; then
6704        cppad_has_gettimeofday=1
6705
6706else
6707        cppad_has_gettimeofday=0
6708
6709fi
6710
6711
6712if test -n "$ac_tool_prefix"; then
6713  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6714set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716$as_echo_n "checking for $ac_word... " >&6; }
6717if ${ac_cv_prog_RANLIB+:} false; then :
6718  $as_echo_n "(cached) " >&6
6719else
6720  if test -n "$RANLIB"; then
6721  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6722else
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726  IFS=$as_save_IFS
6727  test -z "$as_dir" && as_dir=.
6728    for ac_exec_ext in '' $ac_executable_extensions; do
6729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732    break 2
6733  fi
6734done
6735  done
6736IFS=$as_save_IFS
6737
6738fi
6739fi
6740RANLIB=$ac_cv_prog_RANLIB
6741if test -n "$RANLIB"; then
6742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6743$as_echo "$RANLIB" >&6; }
6744else
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746$as_echo "no" >&6; }
6747fi
6748
6749
6750fi
6751if test -z "$ac_cv_prog_RANLIB"; then
6752  ac_ct_RANLIB=$RANLIB
6753  # Extract the first word of "ranlib", so it can be a program name with args.
6754set dummy ranlib; ac_word=$2
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756$as_echo_n "checking for $ac_word... " >&6; }
6757if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6758  $as_echo_n "(cached) " >&6
6759else
6760  if test -n "$ac_ct_RANLIB"; then
6761  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6762else
6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766  IFS=$as_save_IFS
6767  test -z "$as_dir" && as_dir=.
6768    for ac_exec_ext in '' $ac_executable_extensions; do
6769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770    ac_cv_prog_ac_ct_RANLIB="ranlib"
6771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772    break 2
6773  fi
6774done
6775  done
6776IFS=$as_save_IFS
6777
6778fi
6779fi
6780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6781if test -n "$ac_ct_RANLIB"; then
6782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6783$as_echo "$ac_ct_RANLIB" >&6; }
6784else
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786$as_echo "no" >&6; }
6787fi
6788
6789  if test "x$ac_ct_RANLIB" = x; then
6790    RANLIB=":"
6791  else
6792    case $cross_compiling:$ac_tool_warned in
6793yes:)
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796ac_tool_warned=yes ;;
6797esac
6798    RANLIB=$ac_ct_RANLIB
6799  fi
6800else
6801  RANLIB="$ac_cv_prog_RANLIB"
6802fi
6803
6804
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Microsoft C++ compiler" >&5
6806$as_echo_n "checking whether using Microsoft C++ compiler... " >&6; }
6807 if test "$CXX" == "cl" || test "$CXX" == "icl"; then
6808  CppAD_MS_COMPILER_TRUE=
6809  CppAD_MS_COMPILER_FALSE='#'
6810else
6811  CppAD_MS_COMPILER_TRUE='#'
6812  CppAD_MS_COMPILER_FALSE=
6813fi
6814
6815if test "$CXX" == "cl" || test "$CXX" == "icl"; then
6816        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6817$as_echo "yes" >&6; }
6818else
6819        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
6821fi
6822
6823
6824
6825
6826
6827ac_ext=c
6828ac_cpp='$CPP $CPPFLAGS'
6829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6833$as_echo_n "checking how to run the C preprocessor... " >&6; }
6834# On Suns, sometimes $CPP names a directory.
6835if test -n "$CPP" && test -d "$CPP"; then
6836  CPP=
6837fi
6838if test -z "$CPP"; then
6839  if ${ac_cv_prog_CPP+:} false; then :
6840  $as_echo_n "(cached) " >&6
6841else
6842      # Double quotes because CPP needs to be expanded
6843    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6844    do
6845      ac_preproc_ok=false
6846for ac_c_preproc_warn_flag in '' yes
6847do
6848  # Use a header file that comes with gcc, so configuring glibc
6849  # with a fresh cross-compiler works.
6850  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851  # <limits.h> exists even on freestanding compilers.
6852  # On the NeXT, cc -E runs the code through the compiler's parser,
6853  # not just through cpp. "Syntax error" is here to catch this case.
6854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855/* end confdefs.h.  */
6856#ifdef __STDC__
6857# include <limits.h>
6858#else
6859# include <assert.h>
6860#endif
6861                     Syntax error
6862_ACEOF
6863if ac_fn_c_try_cpp "$LINENO"; then :
6864
6865else
6866  # Broken: fails on valid input.
6867continue
6868fi
6869rm -f conftest.err conftest.i conftest.$ac_ext
6870
6871  # OK, works on sane cases.  Now check whether nonexistent headers
6872  # can be detected and how.
6873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874/* end confdefs.h.  */
6875#include <ac_nonexistent.h>
6876_ACEOF
6877if ac_fn_c_try_cpp "$LINENO"; then :
6878  # Broken: success on invalid input.
6879continue
6880else
6881  # Passes both tests.
6882ac_preproc_ok=:
6883break
6884fi
6885rm -f conftest.err conftest.i conftest.$ac_ext
6886
6887done
6888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6889rm -f conftest.i conftest.err conftest.$ac_ext
6890if $ac_preproc_ok; then :
6891  break
6892fi
6893
6894    done
6895    ac_cv_prog_CPP=$CPP
6896
6897fi
6898  CPP=$ac_cv_prog_CPP
6899else
6900  ac_cv_prog_CPP=$CPP
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6903$as_echo "$CPP" >&6; }
6904ac_preproc_ok=false
6905for ac_c_preproc_warn_flag in '' yes
6906do
6907  # Use a header file that comes with gcc, so configuring glibc
6908  # with a fresh cross-compiler works.
6909  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6910  # <limits.h> exists even on freestanding compilers.
6911  # On the NeXT, cc -E runs the code through the compiler's parser,
6912  # not just through cpp. "Syntax error" is here to catch this case.
6913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915#ifdef __STDC__
6916# include <limits.h>
6917#else
6918# include <assert.h>
6919#endif
6920                     Syntax error
6921_ACEOF
6922if ac_fn_c_try_cpp "$LINENO"; then :
6923
6924else
6925  # Broken: fails on valid input.
6926continue
6927fi
6928rm -f conftest.err conftest.i conftest.$ac_ext
6929
6930  # OK, works on sane cases.  Now check whether nonexistent headers
6931  # can be detected and how.
6932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933/* end confdefs.h.  */
6934#include <ac_nonexistent.h>
6935_ACEOF
6936if ac_fn_c_try_cpp "$LINENO"; then :
6937  # Broken: success on invalid input.
6938continue
6939else
6940  # Passes both tests.
6941ac_preproc_ok=:
6942break
6943fi
6944rm -f conftest.err conftest.i conftest.$ac_ext
6945
6946done
6947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6948rm -f conftest.i conftest.err conftest.$ac_ext
6949if $ac_preproc_ok; then :
6950
6951else
6952  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6954as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6955See \`config.log' for more details" "$LINENO" 5; }
6956fi
6957
6958ac_ext=c
6959ac_cpp='$CPP $CPPFLAGS'
6960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962ac_compiler_gnu=$ac_cv_c_compiler_gnu
6963
6964
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6966$as_echo_n "checking for inline... " >&6; }
6967if ${ac_cv_c_inline+:} false; then :
6968  $as_echo_n "(cached) " >&6
6969else
6970  ac_cv_c_inline=no
6971for ac_kw in inline __inline__ __inline; do
6972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974#ifndef __cplusplus
6975typedef int foo_t;
6976static $ac_kw foo_t static_foo () {return 0; }
6977$ac_kw foo_t foo () {return 0; }
6978#endif
6979
6980_ACEOF
6981if ac_fn_c_try_compile "$LINENO"; then :
6982  ac_cv_c_inline=$ac_kw
6983fi
6984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985  test "$ac_cv_c_inline" != no && break
6986done
6987
6988fi
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6990$as_echo "$ac_cv_c_inline" >&6; }
6991
6992case $ac_cv_c_inline in
6993  inline | yes) ;;
6994  *)
6995    case $ac_cv_c_inline in
6996      no) ac_val=;;
6997      *) ac_val=$ac_cv_c_inline;;
6998    esac
6999    cat >>confdefs.h <<_ACEOF
7000#ifndef __cplusplus
7001#define inline $ac_val
7002#endif
7003_ACEOF
7004    ;;
7005esac
7006
7007
7008# Make sure we can run config.sub.
7009$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7010  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7011
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7013$as_echo_n "checking build system type... " >&6; }
7014if ${ac_cv_build+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  ac_build_alias=$build_alias
7018test "x$ac_build_alias" = x &&
7019  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7020test "x$ac_build_alias" = x &&
7021  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7022ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7023  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7024
7025fi
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7027$as_echo "$ac_cv_build" >&6; }
7028case $ac_cv_build in
7029*-*-*) ;;
7030*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7031esac
7032build=$ac_cv_build
7033ac_save_IFS=$IFS; IFS='-'
7034set x $ac_cv_build
7035shift
7036build_cpu=$1
7037build_vendor=$2
7038shift; shift
7039# Remember, the first character of IFS is used to create $*,
7040# except with old shells:
7041build_os=$*
7042IFS=$ac_save_IFS
7043case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7044
7045
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7047$as_echo_n "checking host system type... " >&6; }
7048if ${ac_cv_host+:} false; then :
7049  $as_echo_n "(cached) " >&6
7050else
7051  if test "x$host_alias" = x; then
7052  ac_cv_host=$ac_cv_build
7053else
7054  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7055    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7056fi
7057
7058fi
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7060$as_echo "$ac_cv_host" >&6; }
7061case $ac_cv_host in
7062*-*-*) ;;
7063*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7064esac
7065host=$ac_cv_host
7066ac_save_IFS=$IFS; IFS='-'
7067set x $ac_cv_host
7068shift
7069host_cpu=$1
7070host_vendor=$2
7071shift; shift
7072# Remember, the first character of IFS is used to create $*,
7073# except with old shells:
7074host_os=$*
7075IFS=$ac_save_IFS
7076case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7077
7078
7079
7080ac_ext=${ac_fc_srcext-f}
7081ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7082ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7083ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7085$as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7086if ${ac_cv_prog_fc_v+:} false; then :
7087  $as_echo_n "(cached) " >&6
7088else
7089  cat > conftest.$ac_ext <<_ACEOF
7090      program main
7091
7092      end
7093_ACEOF
7094if ac_fn_fc_try_compile "$LINENO"; then :
7095  ac_cv_prog_fc_v=
7096# Try some options frequently used verbose output
7097for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7098  cat > conftest.$ac_ext <<_ACEOF
7099      program main
7100
7101      end
7102_ACEOF
7103
7104# Compile and link our simple test program by passing a flag (argument
7105# 1 to this macro) to the Fortran compiler in order to get
7106# "verbose" output that we can then parse for the Fortran linker
7107# flags.
7108ac_save_FCFLAGS=$FCFLAGS
7109FCFLAGS="$FCFLAGS $ac_verb"
7110eval "set x $ac_link"
7111shift
7112$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7113# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7114# LIBRARY_PATH; skip all such settings.
7115ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7116  sed '/^Driving:/d; /^Configured with:/d;
7117      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
7118$as_echo "$ac_fc_v_output" >&5
7119FCFLAGS=$ac_save_FCFLAGS
7120
7121rm -rf conftest*
7122
7123# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7124# /foo, /bar, and /baz are search directories for the Fortran linker.
7125# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7126ac_fc_v_output="`echo $ac_fc_v_output |
7127        grep 'LPATH is:' |
7128        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7129
7130# FIXME: we keep getting bitten by quoted arguments; a more general fix
7131#        that detects unbalanced quotes in FLIBS should be implemented
7132#        and (ugh) tested at some point.
7133case $ac_fc_v_output in
7134  # With xlf replace commas with spaces,
7135  # and remove "-link" and closing parenthesis.
7136  *xlfentry*)
7137    ac_fc_v_output=`echo $ac_fc_v_output |
7138      sed '
7139        s/,/ /g
7140        s/ -link / /g
7141        s/) *$//
7142      '
7143    ` ;;
7144
7145  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7146  # $LIBS confuse us, and the libraries appear later in the output anyway).
7147  *mGLOB_options_string*)
7148    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7149
7150  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7151  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7152  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7153  *-cmdline\ * | *-ignore\ * | *-def\ *)
7154    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7155        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7156        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7157        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7158
7159  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
7160  *fort77*f2c*gcc*)
7161    ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n '
7162        /:[      ]\+Running[     ]\{1,\}"gcc"/{
7163          /"-c"/d
7164          /[.]c"*/d
7165          s/^.*"gcc"/"gcc"/
7166          s/"//gp
7167        }'` ;;
7168
7169  # If we are using Cray Fortran then delete quotes.
7170  *cft90*)
7171    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7172esac
7173
7174
7175  # look for -l* and *.a constructs in the output
7176  for ac_arg in $ac_fc_v_output; do
7177     case $ac_arg in
7178        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7179          ac_cv_prog_fc_v=$ac_verb
7180          break 2 ;;
7181     esac
7182  done
7183done
7184if test -z "$ac_cv_prog_fc_v"; then
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7186$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7187fi
7188else
7189  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7190$as_echo "$as_me: WARNING: compilation failed" >&2;}
7191fi
7192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7193
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7196$as_echo "$ac_cv_prog_fc_v" >&6; }
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7198$as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7199if ${ac_cv_fc_libs+:} false; then :
7200  $as_echo_n "(cached) " >&6
7201else
7202  if test "x$FCLIBS" != "x"; then
7203  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7204else
7205
7206cat > conftest.$ac_ext <<_ACEOF
7207      program main
7208
7209      end
7210_ACEOF
7211
7212# Compile and link our simple test program by passing a flag (argument
7213# 1 to this macro) to the Fortran compiler in order to get
7214# "verbose" output that we can then parse for the Fortran linker
7215# flags.
7216ac_save_FCFLAGS=$FCFLAGS
7217FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7218eval "set x $ac_link"
7219shift
7220$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7221# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7222# LIBRARY_PATH; skip all such settings.
7223ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7224  sed '/^Driving:/d; /^Configured with:/d;
7225      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
7226$as_echo "$ac_fc_v_output" >&5
7227FCFLAGS=$ac_save_FCFLAGS
7228
7229rm -rf conftest*
7230
7231# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7232# /foo, /bar, and /baz are search directories for the Fortran linker.
7233# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7234ac_fc_v_output="`echo $ac_fc_v_output |
7235        grep 'LPATH is:' |
7236        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7237
7238# FIXME: we keep getting bitten by quoted arguments; a more general fix
7239#        that detects unbalanced quotes in FLIBS should be implemented
7240#        and (ugh) tested at some point.
7241case $ac_fc_v_output in
7242  # With xlf replace commas with spaces,
7243  # and remove "-link" and closing parenthesis.
7244  *xlfentry*)
7245    ac_fc_v_output=`echo $ac_fc_v_output |
7246      sed '
7247        s/,/ /g
7248        s/ -link / /g
7249        s/) *$//
7250      '
7251    ` ;;
7252
7253  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7254  # $LIBS confuse us, and the libraries appear later in the output anyway).
7255  *mGLOB_options_string*)
7256    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7257
7258  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7259  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7260  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7261  *-cmdline\ * | *-ignore\ * | *-def\ *)
7262    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7263        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7264        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7265        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7266
7267  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
7268  *fort77*f2c*gcc*)
7269    ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n '
7270        /:[      ]\+Running[     ]\{1,\}"gcc"/{
7271          /"-c"/d
7272          /[.]c"*/d
7273          s/^.*"gcc"/"gcc"/
7274          s/"//gp
7275        }'` ;;
7276
7277  # If we are using Cray Fortran then delete quotes.
7278  *cft90*)
7279    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7280esac
7281
7282
7283
7284ac_cv_fc_libs=
7285
7286# Save positional arguments (if any)
7287ac_save_positional="$@"
7288
7289set X $ac_fc_v_output
7290while test $# != 1; do
7291  shift
7292  ac_arg=$1
7293  case $ac_arg in
7294        [\\/]*.a | ?:[\\/]*.a)
7295            ac_exists=false
7296  for ac_i in $ac_cv_fc_libs; do
7297    if test x"$ac_arg" = x"$ac_i"; then
7298      ac_exists=true
7299      break
7300    fi
7301  done
7302
7303  if test x"$ac_exists" = xtrue; then :
7304
7305else
7306  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7307fi
7308          ;;
7309        -bI:*)
7310            ac_exists=false
7311  for ac_i in $ac_cv_fc_libs; do
7312    if test x"$ac_arg" = x"$ac_i"; then
7313      ac_exists=true
7314      break
7315    fi
7316  done
7317
7318  if test x"$ac_exists" = xtrue; then :
7319
7320else
7321  if test "$ac_compiler_gnu" = yes; then
7322  for ac_link_opt in $ac_arg; do
7323    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7324  done
7325else
7326  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7327fi
7328fi
7329          ;;
7330          # Ignore these flags.
7331        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7332          |-LANG:=* | -LIST:* | -LNO:* | -link)
7333          ;;
7334        -lkernel32)
7335          case $host_os in
7336          *cygwin*) ;;
7337          *) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7338            ;;
7339          esac
7340          ;;
7341        -[LRuYz])
7342          # These flags, when seen by themselves, take an argument.
7343          # We remove the space between option and argument and re-iterate
7344          # unless we find an empty arg or a new option (starting with -)
7345          case $2 in
7346             "" | -*);;
7347             *)
7348                ac_arg="$ac_arg$2"
7349                shift; shift
7350                set X $ac_arg "$@"
7351                ;;
7352          esac
7353          ;;
7354        -YP,*)
7355          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7356              ac_exists=false
7357  for ac_i in $ac_cv_fc_libs; do
7358    if test x"$ac_j" = x"$ac_i"; then
7359      ac_exists=true
7360      break
7361    fi
7362  done
7363
7364  if test x"$ac_exists" = xtrue; then :
7365
7366else
7367  ac_arg="$ac_arg $ac_j"
7368                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7369fi
7370          done
7371          ;;
7372        -[lLR]*)
7373            ac_exists=false
7374  for ac_i in $ac_cv_fc_libs; do
7375    if test x"$ac_arg" = x"$ac_i"; then
7376      ac_exists=true
7377      break
7378    fi
7379  done
7380
7381  if test x"$ac_exists" = xtrue; then :
7382
7383else
7384  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7385fi
7386          ;;
7387        -zallextract*| -zdefaultextract)
7388          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7389          ;;
7390          # Ignore everything else.
7391  esac
7392done
7393# restore positional arguments
7394set X $ac_save_positional; shift
7395
7396# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
7397# then we insist that the "run path" must be an absolute path (i.e. it
7398# must begin with a "/").
7399case `(uname -sr) 2>/dev/null` in
7400   "SunOS 5"*)
7401      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
7402                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
7403      test "x$ac_ld_run_path" != x &&
7404        if test "$ac_compiler_gnu" = yes; then
7405  for ac_link_opt in $ac_ld_run_path; do
7406    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7407  done
7408else
7409  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
7410fi
7411      ;;
7412esac
7413fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
7414
7415fi
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
7417$as_echo "$ac_cv_fc_libs" >&6; }
7418FCLIBS="$ac_cv_fc_libs"
7419
7420
7421ac_ext=c
7422ac_cpp='$CPP $CPPFLAGS'
7423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7425ac_compiler_gnu=$ac_cv_c_compiler_gnu
7426
7427
7428abs_top_builddir=`pwd`
7429ABS_TOP_BUILDDIR="$abs_top_builddir"
7430
7431abs_top_srcdir=`cd $srcdir ; pwd`
7432ABS_TOP_SRCDIR="$abs_top_srcdir"
7433
7434
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_wait in -lpthread" >&5
7436$as_echo_n "checking for pthread_barrier_wait in -lpthread... " >&6; }
7437if ${ac_cv_lib_pthread_pthread_barrier_wait+:} false; then :
7438  $as_echo_n "(cached) " >&6
7439else
7440  ac_check_lib_save_LIBS=$LIBS
7441LIBS="-lpthread  $LIBS"
7442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h.  */
7444
7445/* Override any GCC internal prototype to avoid an error.
7446   Use char because int might match the return type of a GCC
7447   builtin and then its argument prototype would still apply.  */
7448#ifdef __cplusplus
7449extern "C"
7450#endif
7451char pthread_barrier_wait ();
7452int
7453main ()
7454{
7455return pthread_barrier_wait ();
7456  ;
7457  return 0;
7458}
7459_ACEOF
7460if ac_fn_c_try_link "$LINENO"; then :
7461  ac_cv_lib_pthread_pthread_barrier_wait=yes
7462else
7463  ac_cv_lib_pthread_pthread_barrier_wait=no
7464fi
7465rm -f core conftest.err conftest.$ac_objext \
7466    conftest$ac_exeext conftest.$ac_ext
7467LIBS=$ac_check_lib_save_LIBS
7468fi
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_barrier_wait" >&5
7470$as_echo "$ac_cv_lib_pthread_pthread_barrier_wait" >&6; }
7471if test "x$ac_cv_lib_pthread_pthread_barrier_wait" = xyes; then :
7472  pthread="yes"
7473else
7474  pthread="no"
7475
7476fi
7477
7478 if test "$pthread" = "yes"; then
7479  CppAD_PTHREAD_TRUE=
7480  CppAD_PTHREAD_FALSE='#'
7481else
7482  CppAD_PTHREAD_TRUE='#'
7483  CppAD_PTHREAD_FALSE=
7484fi
7485
7486if test "$pthread" == "yes" ; then
7487        PTHREAD_LIB="-lpthread"
7488
7489else
7490        PTHREAD_LIB=""
7491
7492fi
7493
7494DL_LIB=""
7495
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7497$as_echo_n "checking for dlopen in -ldl... " >&6; }
7498if ${ac_cv_lib_dl_dlopen+:} false; then :
7499  $as_echo_n "(cached) " >&6
7500else
7501  ac_check_lib_save_LIBS=$LIBS
7502LIBS="-ldl  $LIBS"
7503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h.  */
7505
7506/* Override any GCC internal prototype to avoid an error.
7507   Use char because int might match the return type of a GCC
7508   builtin and then its argument prototype would still apply.  */
7509#ifdef __cplusplus
7510extern "C"
7511#endif
7512char dlopen ();
7513int
7514main ()
7515{
7516return dlopen ();
7517  ;
7518  return 0;
7519}
7520_ACEOF
7521if ac_fn_c_try_link "$LINENO"; then :
7522  ac_cv_lib_dl_dlopen=yes
7523else
7524  ac_cv_lib_dl_dlopen=no
7525fi
7526rm -f core conftest.err conftest.$ac_objext \
7527    conftest$ac_exeext conftest.$ac_ext
7528LIBS=$ac_check_lib_save_LIBS
7529fi
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7531$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7532if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7533  DL_LIB="-ldl"
7534else
7535  DL_LIB=""
7536
7537fi
7538
7539ac_ext=cpp
7540ac_cpp='$CXXCPP $CPPFLAGS'
7541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7544
7545LDFLAGS_save=$LDFLAGS
7546CXXFLAGS_save=$CXXFLAGS
7547boost_thread_found='no'
7548if test "$BOOST_DIR" != '' ; then
7549        CXXFLAGS="-I$BOOST_DIR/include $CXXFLAGS"
7550fi
7551if test "$BOOST_DIR" == '' && test "$boost_thread_found" == 'no' ; then
7552        bthread_lib='-lboost_thread-mt'
7553        LDFLAGS="$LDFLAGS_save $bthread_lib"
7554
7555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h.  */
7557# include <boost/thread.hpp>
7558int
7559main ()
7560{
7561boost::barrier wait(1);
7562
7563  ;
7564  return 0;
7565}
7566_ACEOF
7567if ac_fn_cxx_try_link "$LINENO"; then :
7568  boost_thread_found='yes'
7569else
7570  boost_thread_found='no'
7571
7572fi
7573rm -f core conftest.err conftest.$ac_objext \
7574    conftest$ac_exeext conftest.$ac_ext
7575fi
7576if test "$BOOST_DIR" != '' && test "$boost_thread_found" == 'no' ; then
7577        bthread_lib="$BOOST_DIR/lib/libboost_thread-mt.so"
7578        LDFLAGS="$LDFLAGS_save $bthread_lib"
7579        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h.  */
7581# include <boost/thread.hpp>
7582int
7583main ()
7584{
7585boost::barrier wait(1);
7586
7587  ;
7588  return 0;
7589}
7590_ACEOF
7591if ac_fn_cxx_try_link "$LINENO"; then :
7592  boost_thread_found='yes'
7593else
7594  boost_thread_found='no'
7595
7596fi
7597rm -f core conftest.err conftest.$ac_objext \
7598    conftest$ac_exeext conftest.$ac_ext
7599fi
7600if test "$BOOST_DIR" != '' && test "$boost_thread_found" == 'no' ; then
7601        bthread_lib="$BOOST_DIR/lib/libboost_thread-mt.a"
7602        LDFLAGS="$LDFLAGS_save $bthread_lib"
7603        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604/* end confdefs.h.  */
7605# include <boost/thread.hpp>
7606int
7607main ()
7608{
7609boost::barrier wait(1);
7610
7611  ;
7612  return 0;
7613}
7614_ACEOF
7615if ac_fn_cxx_try_link "$LINENO"; then :
7616  boost_thread_found='yes'
7617else
7618  boost_thread_found='no'
7619
7620fi
7621rm -f core conftest.err conftest.$ac_objext \
7622    conftest$ac_exeext conftest.$ac_ext
7623fi
7624if test "$BOOST_DIR" == '' && test "$boost_thread_found" == 'no' ; then
7625        bthread_lib='-lboost_thread'
7626        LDFLAGS="$LDFLAGS_save $bthread_lib"
7627        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h.  */
7629# include <boost/thread.hpp>
7630int
7631main ()
7632{
7633boost::barrier wait(1);
7634
7635  ;
7636  return 0;
7637}
7638_ACEOF
7639if ac_fn_cxx_try_link "$LINENO"; then :
7640  boost_thread_found='yes'
7641else
7642  boost_thread_found='no'
7643
7644fi
7645rm -f core conftest.err conftest.$ac_objext \
7646    conftest$ac_exeext conftest.$ac_ext
7647fi
7648if test "$BOOST_DIR" != '' && test "$boost_thread_found" == 'no' ; then
7649        bthread_lib="$BOOST_DIR/lib/libboost_thread.so"
7650        LDFLAGS="$LDFLAGS_save $bthread_lib"
7651        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652/* end confdefs.h.  */
7653# include <boost/thread.hpp>
7654int
7655main ()
7656{
7657boost::barrier wait(1);
7658
7659  ;
7660  return 0;
7661}
7662_ACEOF
7663if ac_fn_cxx_try_link "$LINENO"; then :
7664  boost_thread_found='yes'
7665else
7666  boost_thread_found='no'
7667
7668fi
7669rm -f core conftest.err conftest.$ac_objext \
7670    conftest$ac_exeext conftest.$ac_ext
7671fi
7672if test "$BOOST_DIR" != '' && test "$boost_thread_found" == 'no' ; then
7673        bthread_lib="$BOOST_DIR/lib/libboost_thread.a"
7674        LDFLAGS="$LDFLAGS_save $bthread_lib"
7675        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h.  */
7677# include <boost/thread.hpp>
7678int
7679main ()
7680{
7681boost::barrier wait(1);
7682
7683  ;
7684  return 0;
7685}
7686_ACEOF
7687if ac_fn_cxx_try_link "$LINENO"; then :
7688  boost_thread_found='yes'
7689else
7690  boost_thread_found='no'
7691
7692fi
7693rm -f core conftest.err conftest.$ac_objext \
7694    conftest$ac_exeext conftest.$ac_ext
7695fi
7696 if test "$boost_thread_found" = 'yes'; then
7697  CppAD_BTHREAD_TRUE=
7698  CppAD_BTHREAD_FALSE='#'
7699else
7700  CppAD_BTHREAD_TRUE='#'
7701  CppAD_BTHREAD_FALSE=
7702fi
7703
7704if test "$boost_thread_found" == 'yes' ; then
7705        BTHREAD_LIB="$bthread_lib"
7706
7707        { $as_echo "$as_me:${as_lineno-$LINENO}: result: boost::thread library... yes" >&5
7708$as_echo "boost::thread library... yes" >&6; }
7709else
7710        BTHREAD_LIB=''
7711
7712        { $as_echo "$as_me:${as_lineno-$LINENO}: result: boost::thread library... no" >&5
7713$as_echo "boost::thread library... no" >&6; }
7714fi
7715LDFLAGS=$LDFLAGS_save
7716CXXFLAGS=$CXXFLAGS_save
7717ac_ext=c
7718ac_cpp='$CPP $CPPFLAGS'
7719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7721ac_compiler_gnu=$ac_cv_c_compiler_gnu
7722
7723#
7724if test -e $IPOPT_DIR/lib/coin ; then
7725        IPOPT_LIBS="-L $IPOPT_DIR/lib/coin -L $IPOPT_DIR/lib/coin/ThirdParty"
7726        IPOPT_LD_PATH="$IPOPT_DIR/lib/coin:$IPOPT_DIR/lib/coin/ThirdParty"
7727else
7728        IPOPT_LIBS="-L $IPOPT_DIR/lib"
7729        IPOPT_LD_PATH="$IPOPT_DIR/lib"
7730fi
7731CPPAD_IPOPT_LD_PATH="$IPOPT_LD_PATH"
7732
7733#
7734CPPAD_IPOPT_LIBS="$IPOPT_LIBS -lipopt"
7735
7736if test "$have_pkg_config" == "yes"; then
7737                PKG_CONFIG_PATH="$IPOPT_DIR/lib/pkgconfig:$IPOPT_DIR/share/pkgconfig"
7738        PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$IPOPT_DIR/lib64/pkgconfig"
7739        export PKG_CONFIG_PATH
7740        if pkg-config --libs ipopt >& /dev/null ; then
7741                CPPAD_IPOPT_LIBS=`pkg-config --libs ipopt`
7742        else
7743                                ac_ext=${ac_fc_srcext-f}
7744ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7745ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7746ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7747
7748                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddot in -lblas" >&5
7749$as_echo_n "checking for ddot in -lblas... " >&6; }
7750if ${ac_cv_lib_blas_ddot+:} false; then :
7751  $as_echo_n "(cached) " >&6
7752else
7753  ac_check_lib_save_LIBS=$LIBS
7754LIBS="-lblas  $LIBS"
7755cat > conftest.$ac_ext <<_ACEOF
7756      program main
7757      call ddot
7758      end
7759_ACEOF
7760if ac_fn_fc_try_link "$LINENO"; then :
7761  ac_cv_lib_blas_ddot=yes
7762else
7763  ac_cv_lib_blas_ddot=no
7764fi
7765rm -f core conftest.err conftest.$ac_objext \
7766    conftest$ac_exeext conftest.$ac_ext
7767LIBS=$ac_check_lib_save_LIBS
7768fi
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_ddot" >&5
7770$as_echo "$ac_cv_lib_blas_ddot" >&6; }
7771if test "x$ac_cv_lib_blas_ddot" = xyes; then :
7772  CPPAD_IPOPT_LIBS="$CPPAD_IPOPT_LIBS -lblas"
7773fi
7774
7775                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgesv in -llapack" >&5
7776$as_echo_n "checking for dgesv in -llapack... " >&6; }
7777if ${ac_cv_lib_lapack_dgesv+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  ac_check_lib_save_LIBS=$LIBS
7781LIBS="-llapack  $LIBS"
7782cat > conftest.$ac_ext <<_ACEOF
7783      program main
7784      call dgesv
7785      end
7786_ACEOF
7787if ac_fn_fc_try_link "$LINENO"; then :
7788  ac_cv_lib_lapack_dgesv=yes
7789else
7790  ac_cv_lib_lapack_dgesv=no
7791fi
7792rm -f core conftest.err conftest.$ac_objext \
7793    conftest$ac_exeext conftest.$ac_ext
7794LIBS=$ac_check_lib_save_LIBS
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_dgesv" >&5
7797$as_echo "$ac_cv_lib_lapack_dgesv" >&6; }
7798if test "x$ac_cv_lib_lapack_dgesv" = xyes; then :
7799  CPPAD_IPOPT_LIBS="$CPPAD_IPOPT_LIBS -llapack"
7800fi
7801
7802                ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808        fi
7809else
7810                ac_ext=${ac_fc_srcext-f}
7811ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7812ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7813ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7814
7815        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddot in -lblas" >&5
7816$as_echo_n "checking for ddot in -lblas... " >&6; }
7817if ${ac_cv_lib_blas_ddot+:} false; then :
7818  $as_echo_n "(cached) " >&6
7819else
7820  ac_check_lib_save_LIBS=$LIBS
7821LIBS="-lblas  $LIBS"
7822cat > conftest.$ac_ext <<_ACEOF
7823      program main
7824      call ddot
7825      end
7826_ACEOF
7827if ac_fn_fc_try_link "$LINENO"; then :
7828  ac_cv_lib_blas_ddot=yes
7829else
7830  ac_cv_lib_blas_ddot=no
7831fi
7832rm -f core conftest.err conftest.$ac_objext \
7833    conftest$ac_exeext conftest.$ac_ext
7834LIBS=$ac_check_lib_save_LIBS
7835fi
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_ddot" >&5
7837$as_echo "$ac_cv_lib_blas_ddot" >&6; }
7838if test "x$ac_cv_lib_blas_ddot" = xyes; then :
7839  CPPAD_IPOPT_LIBS="$CPPAD_IPOPT_LIBS -lblas"
7840fi
7841
7842                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgesv in -llapack" >&5
7843$as_echo_n "checking for dgesv in -llapack... " >&6; }
7844if ${ac_cv_lib_lapack_dgesv+:} false; then :
7845  $as_echo_n "(cached) " >&6
7846else
7847  ac_check_lib_save_LIBS=$LIBS
7848LIBS="-llapack  $LIBS"
7849cat > conftest.$ac_ext <<_ACEOF
7850      program main
7851      call dgesv
7852      end
7853_ACEOF
7854if ac_fn_fc_try_link "$LINENO"; then :
7855  ac_cv_lib_lapack_dgesv=yes
7856else
7857  ac_cv_lib_lapack_dgesv=no
7858fi
7859rm -f core conftest.err conftest.$ac_objext \
7860    conftest$ac_exeext conftest.$ac_ext
7861LIBS=$ac_check_lib_save_LIBS
7862fi
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_dgesv" >&5
7864$as_echo "$ac_cv_lib_lapack_dgesv" >&6; }
7865if test "x$ac_cv_lib_lapack_dgesv" = xyes; then :
7866  CPPAD_IPOPT_LIBS="$CPPAD_IPOPT_LIBS -llapack"
7867fi
7868
7869        ac_ext=c
7870ac_cpp='$CPP $CPPFLAGS'
7871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7873ac_compiler_gnu=$ac_cv_c_compiler_gnu
7874
7875fi
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cppad_ipopt_nlp libraries: $CPPAD_IPOPT_LIBS" >&5
7877$as_echo "cppad_ipopt_nlp libraries: $CPPAD_IPOPT_LIBS" >&6; }
7878cppad_description="Differentiation of C++ Algorithms"
7879
7880cppad_version=${PACKAGE_VERSION}
7881
7882cppad_url="http://www.coin-or.org/CppAD"
7883
7884if test "$prefix" == "NONE" ; then
7885        cppad_pkgconfig_cflags_value="-I$HOME/include"
7886        cppad_pkgconfig_libs_value="-L$HOME/lib"
7887else
7888        cppad_pkgconfig_cflags_value="-I$prefix/include"
7889        cppad_pkgconfig_libs_value="-L$prefix/lib"
7890fi
7891if test "$POSTFIX_DIR" != "" ; then
7892        cppad_pkgconfig_cflags_value="$cppad_cflags_value/$POSTFIX_DIR"
7893        cppad_pkgconfig_libs_value="$cppad_pkgconfig_libs_value/$POSTFIX_DIR"
7894fi
7895if test "$IPOPT_DIR" == "" ; then
7896        cppad_pkgconfig_libs_value=""
7897        cppad_pkgconfig_requires_value=""
7898else
7899        cppad_pkgconfig_libs_value="$cppad_pkgconfig_libs_value -lcppad_ipopt"
7900        cppad_pkgconfig_requires_value="ipopt"
7901fi
7902cppad_pkgconfig_cflags="$cppad_pkgconfig_cflags_value"
7903
7904cppad_pkgconfig_libs="$cppad_pkgconfig_libs_value"
7905
7906cppad_pkgconfig_requires="$cppad_pkgconfig_requires_value"
7907
7908cppad_SOURCE_DIR=${ABS_TOP_SRCDIR}
7909
7910adolc_prefix=${ADOLC_DIR}
7911
7912eigen_prefix=${EIGEN_DIR}
7913
7914ipopt_prefix=${IPOPT_DIR}
7915
7916ac_config_files="$ac_config_files cppad/configure.hpp cppad_ipopt/example/test.sh cppad_ipopt/speed/test.sh cppad_ipopt/test/test.sh example/ipopt_solve/test.sh pkgconfig/cppad.pc pkgconfig/cppad-uninstalled.pc makefile compare_c/makefile cppad_ipopt/src/makefile cppad_ipopt/example/makefile cppad_ipopt/speed/makefile cppad_ipopt/test/makefile example/makefile example/atomic/makefile example/ipopt_solve/makefile introduction/get_started/makefile introduction/exp_apx/makefile multi_thread/makefile multi_thread/test_multi/makefile print_for/makefile speed/adolc/makefile speed/cppad/makefile speed/double/makefile speed/example/makefile speed/fadbad/makefile speed/profile/makefile speed/profile/gprof.sed speed/sacado/makefile speed/src/makefile test_more/makefile"
7917
7918
7919ac_config_commands="$ac_config_commands example_ipopt_solve_test.sh"
7920
7921ac_config_commands="$ac_config_commands cppad_ipopt_example_test.sh"
7922
7923ac_config_commands="$ac_config_commands cppad_ipopt_speed_test.sh"
7924
7925ac_config_commands="$ac_config_commands cppad_ipopt_test_test.sh"
7926
7927
7928cat >confcache <<\_ACEOF
7929# This file is a shell script that caches the results of configure
7930# tests run on this system so they can be shared between configure
7931# scripts and configure runs, see configure's option --config-cache.
7932# It is not useful on other systems.  If it contains results you don't
7933# want to keep, you may remove or edit it.
7934#
7935# config.status only pays attention to the cache file if you give it
7936# the --recheck option to rerun configure.
7937#
7938# `ac_cv_env_foo' variables (set or unset) will be overridden when
7939# loading this file, other *unset* `ac_cv_foo' will be assigned the
7940# following values.
7941
7942_ACEOF
7943
7944# The following way of writing the cache mishandles newlines in values,
7945# but we know of no workaround that is simple, portable, and efficient.
7946# So, we kill variables containing newlines.
7947# Ultrix sh set writes to stderr and can't be redirected directly,
7948# and sets the high bit in the cache file unless we assign to the vars.
7949(
7950  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7951    eval ac_val=\$$ac_var
7952    case $ac_val in #(
7953    *${as_nl}*)
7954      case $ac_var in #(
7955      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7956$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7957      esac
7958      case $ac_var in #(
7959      _ | IFS | as_nl) ;; #(
7960      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7961      *) { eval $ac_var=; unset $ac_var;} ;;
7962      esac ;;
7963    esac
7964  done
7965
7966  (set) 2>&1 |
7967    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7968    *${as_nl}ac_space=\ *)
7969      # `set' does not quote correctly, so add quotes: double-quote
7970      # substitution turns \\\\ into \\, and sed turns \\ into \.
7971      sed -n \
7972        "s/'/'\\\\''/g;
7973          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7974      ;; #(
7975    *)
7976      # `set' quotes correctly as required by POSIX, so do not add quotes.
7977      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7978      ;;
7979    esac |
7980    sort
7981) |
7982  sed '
7983     /^ac_cv_env_/b end
7984     t clear
7985     :clear
7986     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7987     t end
7988     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7989     :end' >>confcache
7990if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7991  if test -w "$cache_file"; then
7992    if test "x$cache_file" != "x/dev/null"; then
7993      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7994$as_echo "$as_me: updating cache $cache_file" >&6;}
7995      if test ! -f "$cache_file" || test -h "$cache_file"; then
7996        cat confcache >"$cache_file"
7997      else
7998        case $cache_file in #(
7999        */* | ?:*)
8000          mv -f confcache "$cache_file"$$ &&
8001          mv -f "$cache_file"$$ "$cache_file" ;; #(
8002        *)
8003          mv -f confcache "$cache_file" ;;
8004        esac
8005      fi
8006    fi
8007  else
8008    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8009$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8010  fi
8011fi
8012rm -f confcache
8013
8014test "x$prefix" = xNONE && prefix=$ac_default_prefix
8015# Let make expand exec_prefix.
8016test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8017
8018# Transform confdefs.h into DEFS.
8019# Protect against shell expansion while executing Makefile rules.
8020# Protect against Makefile macro expansion.
8021#
8022# If the first sed substitution is executed (which looks for macros that
8023# take arguments), then branch to the quote section.  Otherwise,
8024# look for a macro that doesn't take arguments.
8025ac_script='
8026:mline
8027/\\$/{
8028 N
8029 s,\\\n,,
8030 b mline
8031}
8032t clear
8033:clear
8034s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
8035t quote
8036s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
8037t quote
8038b any
8039:quote
8040s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8041s/\[/\\&/g
8042s/\]/\\&/g
8043s/\$/$$/g
8044H
8045:any
8046${
8047        g
8048        s/^\n//
8049        s/\n/ /g
8050        p
8051}
8052'
8053DEFS=`sed -n "$ac_script" confdefs.h`
8054
8055
8056ac_libobjs=
8057ac_ltlibobjs=
8058U=
8059for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8060  # 1. Remove the extension, and $U if already installed.
8061  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8062  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8063  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8064  #    will be set to the directory where LIBOBJS objects are built.
8065  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8066  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8067done
8068LIBOBJS=$ac_libobjs
8069
8070LTLIBOBJS=$ac_ltlibobjs
8071
8072
8073if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8074  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8075Usually this means the macro was only invoked conditionally." "$LINENO" 5
8076fi
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8078$as_echo_n "checking that generated files are newer than configure... " >&6; }
8079   if test -n "$am_sleep_pid"; then
8080     # Hide warnings about reused PIDs.
8081     wait $am_sleep_pid 2>/dev/null
8082   fi
8083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8084$as_echo "done" >&6; }
8085 if test -n "$EXEEXT"; then
8086  am__EXEEXT_TRUE=
8087  am__EXEEXT_FALSE='#'
8088else
8089  am__EXEEXT_TRUE='#'
8090  am__EXEEXT_FALSE=
8091fi
8092
8093if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8094  as_fn_error $? "conditional \"AMDEP\" was never defined.
8095Usually this means the macro was only invoked conditionally." "$LINENO" 5
8096fi
8097if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8098  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8099Usually this means the macro was only invoked conditionally." "$LINENO" 5
8100fi
8101if test -z "${CppAD_DOCUMENTATION_TRUE}" && test -z "${CppAD_DOCUMENTATION_FALSE}"; then
8102  as_fn_error $? "conditional \"CppAD_DOCUMENTATION\" was never defined.
8103Usually this means the macro was only invoked conditionally." "$LINENO" 5
8104fi
8105if test -z "${CppAD_DEPRECATED_TRUE}" && test -z "${CppAD_DEPRECATED_FALSE}"; then
8106  as_fn_error $? "conditional \"CppAD_DEPRECATED\" was never defined.
8107Usually this means the macro was only invoked conditionally." "$LINENO" 5
8108fi
8109if test -z "${CppAD_POSTFIX_TRUE}" && test -z "${CppAD_POSTFIX_FALSE}"; then
8110  as_fn_error $? "conditional \"CppAD_POSTFIX\" was never defined.
8111Usually this means the macro was only invoked conditionally." "$LINENO" 5
8112fi
8113if test -z "${CppAD_ADOLC_TRUE}" && test -z "${CppAD_ADOLC_FALSE}"; then
8114  as_fn_error $? "conditional \"CppAD_ADOLC\" was never defined.
8115Usually this means the macro was only invoked conditionally." "$LINENO" 5
8116fi
8117if test -z "${CppAD_EIGEN_DIR_TRUE}" && test -z "${CppAD_EIGEN_DIR_FALSE}"; then
8118  as_fn_error $? "conditional \"CppAD_EIGEN_DIR\" was never defined.
8119Usually this means the macro was only invoked conditionally." "$LINENO" 5
8120fi
8121if test -z "${CppAD_FADBAD_TRUE}" && test -z "${CppAD_FADBAD_FALSE}"; then
8122  as_fn_error $? "conditional \"CppAD_FADBAD\" was never defined.
8123Usually this means the macro was only invoked conditionally." "$LINENO" 5
8124fi
8125if test -z "${CppAD_SACADO_TRUE}" && test -z "${CppAD_SACADO_FALSE}"; then
8126  as_fn_error $? "conditional \"CppAD_SACADO\" was never defined.
8127Usually this means the macro was only invoked conditionally." "$LINENO" 5
8128fi
8129if test -z "${CppAD_IPOPT_TRUE}" && test -z "${CppAD_IPOPT_FALSE}"; then
8130  as_fn_error $? "conditional \"CppAD_IPOPT\" was never defined.
8131Usually this means the macro was only invoked conditionally." "$LINENO" 5
8132fi
8133if test -z "${CppAD_BOOST_DIR_TRUE}" && test -z "${CppAD_BOOST_DIR_FALSE}"; then
8134  as_fn_error $? "conditional \"CppAD_BOOST_DIR\" was never defined.
8135Usually this means the macro was only invoked conditionally." "$LINENO" 5
8136fi
8137if test -z "${CppAD_OPENMP_TRUE}" && test -z "${CppAD_OPENMP_FALSE}"; then
8138  as_fn_error $? "conditional \"CppAD_OPENMP\" was never defined.
8139Usually this means the macro was only invoked conditionally." "$LINENO" 5
8140fi
8141if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8142  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8143Usually this means the macro was only invoked conditionally." "$LINENO" 5
8144fi
8145if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8146  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8147Usually this means the macro was only invoked conditionally." "$LINENO" 5
8148fi
8149if test -z "${CppAD_PKG_CONFIG_TRUE}" && test -z "${CppAD_PKG_CONFIG_FALSE}"; then
8150  as_fn_error $? "conditional \"CppAD_PKG_CONFIG\" was never defined.
8151Usually this means the macro was only invoked conditionally." "$LINENO" 5
8152fi
8153if test -z "${CppAD_HAVE_AR_TRUE}" && test -z "${CppAD_HAVE_AR_FALSE}"; then
8154  as_fn_error $? "conditional \"CppAD_HAVE_AR\" was never defined.
8155Usually this means the macro was only invoked conditionally." "$LINENO" 5
8156fi
8157if test -z "${CppAD_MS_COMPILER_TRUE}" && test -z "${CppAD_MS_COMPILER_FALSE}"; then
8158  as_fn_error $? "conditional \"CppAD_MS_COMPILER\" was never defined.
8159Usually this means the macro was only invoked conditionally." "$LINENO" 5
8160fi
8161if test -z "${CppAD_PTHREAD_TRUE}" && test -z "${CppAD_PTHREAD_FALSE}"; then
8162  as_fn_error $? "conditional \"CppAD_PTHREAD\" was never defined.
8163Usually this means the macro was only invoked conditionally." "$LINENO" 5
8164fi
8165if test -z "${CppAD_BTHREAD_TRUE}" && test -z "${CppAD_BTHREAD_FALSE}"; then
8166  as_fn_error $? "conditional \"CppAD_BTHREAD\" was never defined.
8167Usually this means the macro was only invoked conditionally." "$LINENO" 5
8168fi
8169
8170: "${CONFIG_STATUS=./config.status}"
8171ac_write_fail=0
8172ac_clean_files_save=$ac_clean_files
8173ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8175$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8176as_write_fail=0
8177cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8178#! $SHELL
8179# Generated by $as_me.
8180# Run this file to recreate the current configuration.
8181# Compiler output produced by configure, useful for debugging
8182# configure, is in config.log if it exists.
8183
8184debug=false
8185ac_cs_recheck=false
8186ac_cs_silent=false
8187
8188SHELL=\${CONFIG_SHELL-$SHELL}
8189export SHELL
8190_ASEOF
8191cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8192## -------------------- ##
8193## M4sh Initialization. ##
8194## -------------------- ##
8195
8196# Be more Bourne compatible
8197DUALCASE=1; export DUALCASE # for MKS sh
8198if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8199  emulate sh
8200  NULLCMD=:
8201  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8202  # is contrary to our usage.  Disable this feature.
8203  alias -g '${1+"$@"}'='"$@"'
8204  setopt NO_GLOB_SUBST
8205else
8206  case `(set -o) 2>/dev/null` in #(
8207  *posix*) :
8208    set -o posix ;; #(
8209  *) :
8210     ;;
8211esac
8212fi
8213
8214
8215as_nl='
8216'
8217export as_nl
8218# Printing a long string crashes Solaris 7 /usr/bin/printf.
8219as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8221as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8222# Prefer a ksh shell builtin over an external printf program on Solaris,
8223# but without wasting forks for bash or zsh.
8224if test -z "$BASH_VERSION$ZSH_VERSION" \
8225    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8226  as_echo='print -r --'
8227  as_echo_n='print -rn --'
8228elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8229  as_echo='printf %s\n'
8230  as_echo_n='printf %s'
8231else
8232  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8233    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8234    as_echo_n='/usr/ucb/echo -n'
8235  else
8236    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8237    as_echo_n_body='eval
8238      arg=$1;
8239      case $arg in #(
8240      *"$as_nl"*)
8241        expr "X$arg" : "X\\(.*\\)$as_nl";
8242        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8243      esac;
8244      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8245    '
8246    export as_echo_n_body
8247    as_echo_n='sh -c $as_echo_n_body as_echo'
8248  fi
8249  export as_echo_body
8250  as_echo='sh -c $as_echo_body as_echo'
8251fi
8252
8253# The user is always right.
8254if test "${PATH_SEPARATOR+set}" != set; then
8255  PATH_SEPARATOR=:
8256  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8257    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8258      PATH_SEPARATOR=';'
8259  }
8260fi
8261
8262
8263# IFS
8264# We need space, tab and new line, in precisely that order.  Quoting is
8265# there to prevent editors from complaining about space-tab.
8266# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8267# splitting by setting IFS to empty value.)
8268IFS=" ""        $as_nl"
8269
8270# Find who we are.  Look in the path if we contain no directory separator.
8271as_myself=
8272case $0 in #((
8273  *[\\/]* ) as_myself=$0 ;;
8274  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277  IFS=$as_save_IFS
8278  test -z "$as_dir" && as_dir=.
8279    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8280  done
8281IFS=$as_save_IFS
8282
8283     ;;
8284esac
8285# We did not find ourselves, most probably we were run as `sh COMMAND'
8286# in which case we are not to be found in the path.
8287if test "x$as_myself" = x; then
8288  as_myself=$0
8289fi
8290if test ! -f "$as_myself"; then
8291  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8292  exit 1
8293fi
8294
8295# Unset variables that we do not need and which cause bugs (e.g. in
8296# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8297# suppresses any "Segmentation fault" message there.  '((' could
8298# trigger a bug in pdksh 5.2.14.
8299for as_var in BASH_ENV ENV MAIL MAILPATH
8300do eval test x\${$as_var+set} = xset \
8301  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8302done
8303PS1='$ '
8304PS2='> '
8305PS4='+ '
8306
8307# NLS nuisances.
8308LC_ALL=C
8309export LC_ALL
8310LANGUAGE=C
8311export LANGUAGE
8312
8313# CDPATH.
8314(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8315
8316
8317# as_fn_error STATUS ERROR [LINENO LOG_FD]
8318# ----------------------------------------
8319# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8320# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8321# script with STATUS, using 1 if that was 0.
8322as_fn_error ()
8323{
8324  as_status=$1; test $as_status -eq 0 && as_status=1
8325  if test "$4"; then
8326    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8327    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8328  fi
8329  $as_echo "$as_me: error: $2" >&2
8330  as_fn_exit $as_status
8331} # as_fn_error
8332
8333
8334# as_fn_set_status STATUS
8335# -----------------------
8336# Set $? to STATUS, without forking.
8337as_fn_set_status ()
8338{
8339  return $1
8340} # as_fn_set_status
8341
8342# as_fn_exit STATUS
8343# -----------------
8344# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8345as_fn_exit ()
8346{
8347  set +e
8348  as_fn_set_status $1
8349  exit $1
8350} # as_fn_exit
8351
8352# as_fn_unset VAR
8353# ---------------
8354# Portably unset VAR.
8355as_fn_unset ()
8356{
8357  { eval $1=; unset $1;}
8358}
8359as_unset=as_fn_unset
8360# as_fn_append VAR VALUE
8361# ----------------------
8362# Append the text in VALUE to the end of the definition contained in VAR. Take
8363# advantage of any shell optimizations that allow amortized linear growth over
8364# repeated appends, instead of the typical quadratic growth present in naive
8365# implementations.
8366if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8367  eval 'as_fn_append ()
8368  {
8369    eval $1+=\$2
8370  }'
8371else
8372  as_fn_append ()
8373  {
8374    eval $1=\$$1\$2
8375  }
8376fi # as_fn_append
8377
8378# as_fn_arith ARG...
8379# ------------------
8380# Perform arithmetic evaluation on the ARGs, and store the result in the
8381# global $as_val. Take advantage of shells that can avoid forks. The arguments
8382# must be portable across $(()) and expr.
8383if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8384  eval 'as_fn_arith ()
8385  {
8386    as_val=$(( $* ))
8387  }'
8388else
8389  as_fn_arith ()
8390  {
8391    as_val=`expr "$@" || test $? -eq 1`
8392  }
8393fi # as_fn_arith
8394
8395
8396if expr a : '\(a\)' >/dev/null 2>&1 &&
8397   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8398  as_expr=expr
8399else
8400  as_expr=false
8401fi
8402
8403if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8404  as_basename=basename
8405else
8406  as_basename=false
8407fi
8408
8409if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8410  as_dirname=dirname
8411else
8412  as_dirname=false
8413fi
8414
8415as_me=`$as_basename -- "$0" ||
8416$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8417         X"$0" : 'X\(//\)$' \| \
8418         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8419$as_echo X/"$0" |
8420    sed '/^.*\/\([^/][^/]*\)\/*$/{
8421            s//\1/
8422            q
8423          }
8424          /^X\/\(\/\/\)$/{
8425            s//\1/
8426            q
8427          }
8428          /^X\/\(\/\).*/{
8429            s//\1/
8430            q
8431          }
8432          s/.*/./; q'`
8433
8434# Avoid depending upon Character Ranges.
8435as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8436as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8437as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8438as_cr_digits='0123456789'
8439as_cr_alnum=$as_cr_Letters$as_cr_digits
8440
8441ECHO_C= ECHO_N= ECHO_T=
8442case `echo -n x` in #(((((
8443-n*)
8444  case `echo 'xy\c'` in
8445  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8446  xy)  ECHO_C='\c';;
8447  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8448       ECHO_T=' ';;
8449  esac;;
8450*)
8451  ECHO_N='-n';;
8452esac
8453
8454rm -f conf$$ conf$$.exe conf$$.file
8455if test -d conf$$.dir; then
8456  rm -f conf$$.dir/conf$$.file
8457else
8458  rm -f conf$$.dir
8459  mkdir conf$$.dir 2>/dev/null
8460fi
8461if (echo >conf$$.file) 2>/dev/null; then
8462  if ln -s conf$$.file conf$$ 2>/dev/null; then
8463    as_ln_s='ln -s'
8464    # ... but there are two gotchas:
8465    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8466    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8467    # In both cases, we have to default to `cp -pR'.
8468    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8469      as_ln_s='cp -pR'
8470  elif ln conf$$.file conf$$ 2>/dev/null; then
8471    as_ln_s=ln
8472  else
8473    as_ln_s='cp -pR'
8474  fi
8475else
8476  as_ln_s='cp -pR'
8477fi
8478rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8479rmdir conf$$.dir 2>/dev/null
8480
8481
8482# as_fn_mkdir_p
8483# -------------
8484# Create "$as_dir" as a directory, including parents if necessary.
8485as_fn_mkdir_p ()
8486{
8487
8488  case $as_dir in #(
8489  -*) as_dir=./$as_dir;;
8490  esac
8491  test -d "$as_dir" || eval $as_mkdir_p || {
8492    as_dirs=
8493    while :; do
8494      case $as_dir in #(
8495      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8496      *) as_qdir=$as_dir;;
8497      esac
8498      as_dirs="'$as_qdir' $as_dirs"
8499      as_dir=`$as_dirname -- "$as_dir" ||
8500$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8501         X"$as_dir" : 'X\(//\)[^/]' \| \
8502         X"$as_dir" : 'X\(//\)$' \| \
8503         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8504$as_echo X"$as_dir" |
8505    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8506            s//\1/
8507            q
8508          }
8509          /^X\(\/\/\)[^/].*/{
8510            s//\1/
8511            q
8512          }
8513          /^X\(\/\/\)$/{
8514            s//\1/
8515            q
8516          }
8517          /^X\(\/\).*/{
8518            s//\1/
8519            q
8520          }
8521          s/.*/./; q'`
8522      test -d "$as_dir" && break
8523    done
8524    test -z "$as_dirs" || eval "mkdir $as_dirs"
8525  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8526
8527
8528} # as_fn_mkdir_p
8529if mkdir -p . 2>/dev/null; then
8530  as_mkdir_p='mkdir -p "$as_dir"'
8531else
8532  test -d ./-p && rmdir ./-p
8533  as_mkdir_p=false
8534fi
8535
8536
8537# as_fn_executable_p FILE
8538# -----------------------
8539# Test if FILE is an executable regular file.
8540as_fn_executable_p ()
8541{
8542  test -f "$1" && test -x "$1"
8543} # as_fn_executable_p
8544as_test_x='test -x'
8545as_executable_p=as_fn_executable_p
8546
8547# Sed expression to map a string onto a valid CPP name.
8548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8549
8550# Sed expression to map a string onto a valid variable name.
8551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8552
8553
8554exec 6>&1
8555## ----------------------------------- ##
8556## Main body of $CONFIG_STATUS script. ##
8557## ----------------------------------- ##
8558_ASEOF
8559test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8560
8561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8562# Save the log message, to keep $0 and so on meaningful, and to
8563# report actual input values of CONFIG_FILES etc. instead of their
8564# values after options handling.
8565ac_log="
8566This file was extended by cppad $as_me 20160318, which was
8567generated by GNU Autoconf 2.69.  Invocation command line was
8568
8569  CONFIG_FILES    = $CONFIG_FILES
8570  CONFIG_HEADERS  = $CONFIG_HEADERS
8571  CONFIG_LINKS    = $CONFIG_LINKS
8572  CONFIG_COMMANDS = $CONFIG_COMMANDS
8573  $ $0 $@
8574
8575on `(hostname || uname -n) 2>/dev/null | sed 1q`
8576"
8577
8578_ACEOF
8579
8580case $ac_config_files in *"
8581"*) set x $ac_config_files; shift; ac_config_files=$*;;
8582esac
8583
8584
8585
8586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8587# Files that config.status was made for.
8588config_files="$ac_config_files"
8589config_commands="$ac_config_commands"
8590
8591_ACEOF
8592
8593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8594ac_cs_usage="\
8595\`$as_me' instantiates files and other configuration actions
8596from templates according to the current configuration.  Unless the files
8597and actions are specified as TAGs, all are instantiated by default.
8598
8599Usage: $0 [OPTION]... [TAG]...
8600
8601  -h, --help       print this help, then exit
8602  -V, --version    print version number and configuration settings, then exit
8603      --config     print configuration, then exit
8604  -q, --quiet, --silent
8605                   do not print progress messages
8606  -d, --debug      don't remove temporary files
8607      --recheck    update $as_me by reconfiguring in the same conditions
8608      --file=FILE[:TEMPLATE]
8609                   instantiate the configuration file FILE
8610
8611Configuration files:
8612$config_files
8613
8614Configuration commands:
8615$config_commands
8616
8617Report bugs to <cppad@list.coin-or.org>."
8618
8619_ACEOF
8620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8621ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8622ac_cs_version="\\
8623cppad config.status 20160318
8624configured by $0, generated by GNU Autoconf 2.69,
8625  with options \\"\$ac_cs_config\\"
8626
8627Copyright (C) 2012 Free Software Foundation, Inc.
8628This config.status script is free software; the Free Software Foundation
8629gives unlimited permission to copy, distribute and modify it."
8630
8631ac_pwd='$ac_pwd'
8632srcdir='$srcdir'
8633INSTALL='$INSTALL'
8634MKDIR_P='$MKDIR_P'
8635AWK='$AWK'
8636test -n "\$AWK" || AWK=awk
8637_ACEOF
8638
8639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8640# The default lists apply if the user does not specify any file.
8641ac_need_defaults=:
8642while test $# != 0
8643do
8644  case $1 in
8645  --*=?*)
8646    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8647    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8648    ac_shift=:
8649    ;;
8650  --*=)
8651    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8652    ac_optarg=
8653    ac_shift=:
8654    ;;
8655  *)
8656    ac_option=$1
8657    ac_optarg=$2
8658    ac_shift=shift
8659    ;;
8660  esac
8661
8662  case $ac_option in
8663  # Handling of the options.
8664  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8665    ac_cs_recheck=: ;;
8666  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8667    $as_echo "$ac_cs_version"; exit ;;
8668  --config | --confi | --conf | --con | --co | --c )
8669    $as_echo "$ac_cs_config"; exit ;;
8670  --debug | --debu | --deb | --de | --d | -d )
8671    debug=: ;;
8672  --file | --fil | --fi | --f )
8673    $ac_shift
8674    case $ac_optarg in
8675    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8676    '') as_fn_error $? "missing file argument" ;;
8677    esac
8678    as_fn_append CONFIG_FILES " '$ac_optarg'"
8679    ac_need_defaults=false;;
8680  --he | --h |  --help | --hel | -h )
8681    $as_echo "$ac_cs_usage"; exit ;;
8682  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8683  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8684    ac_cs_silent=: ;;
8685
8686  # This is an error.
8687  -*) as_fn_error $? "unrecognized option: \`$1'
8688Try \`$0 --help' for more information." ;;
8689
8690  *) as_fn_append ac_config_targets " $1"
8691     ac_need_defaults=false ;;
8692
8693  esac
8694  shift
8695done
8696
8697ac_configure_extra_args=
8698
8699if $ac_cs_silent; then
8700  exec 6>/dev/null
8701  ac_configure_extra_args="$ac_configure_extra_args --silent"
8702fi
8703
8704_ACEOF
8705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8706if \$ac_cs_recheck; then
8707  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8708  shift
8709  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8710  CONFIG_SHELL='$SHELL'
8711  export CONFIG_SHELL
8712  exec "\$@"
8713fi
8714
8715_ACEOF
8716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8717exec 5>>config.log
8718{
8719  echo
8720  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8721## Running $as_me. ##
8722_ASBOX
8723  $as_echo "$ac_log"
8724} >&5
8725
8726_ACEOF
8727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8728#
8729# INIT-COMMANDS
8730#
8731AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8732
8733
8734
8735
8736
8737_ACEOF
8738
8739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8740
8741# Handling of arguments.
8742for ac_config_target in $ac_config_targets
8743do
8744  case $ac_config_target in
8745    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8746    "cppad/configure.hpp") CONFIG_FILES="$CONFIG_FILES cppad/configure.hpp" ;;
8747    "cppad_ipopt/example/test.sh") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/example/test.sh" ;;
8748    "cppad_ipopt/speed/test.sh") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/speed/test.sh" ;;
8749    "cppad_ipopt/test/test.sh") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/test/test.sh" ;;
8750    "example/ipopt_solve/test.sh") CONFIG_FILES="$CONFIG_FILES example/ipopt_solve/test.sh" ;;
8751    "pkgconfig/cppad.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/cppad.pc" ;;
8752    "pkgconfig/cppad-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/cppad-uninstalled.pc" ;;
8753    "makefile") CONFIG_FILES="$CONFIG_FILES makefile" ;;
8754    "compare_c/makefile") CONFIG_FILES="$CONFIG_FILES compare_c/makefile" ;;
8755    "cppad_ipopt/src/makefile") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/src/makefile" ;;
8756    "cppad_ipopt/example/makefile") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/example/makefile" ;;
8757    "cppad_ipopt/speed/makefile") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/speed/makefile" ;;
8758    "cppad_ipopt/test/makefile") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/test/makefile" ;;
8759    "example/makefile") CONFIG_FILES="$CONFIG_FILES example/makefile" ;;
8760    "example/atomic/makefile") CONFIG_FILES="$CONFIG_FILES example/atomic/makefile" ;;
8761    "example/ipopt_solve/makefile") CONFIG_FILES="$CONFIG_FILES example/ipopt_solve/makefile" ;;
8762    "introduction/get_started/makefile") CONFIG_FILES="$CONFIG_FILES introduction/get_started/makefile" ;;
8763    "introduction/exp_apx/makefile") CONFIG_FILES="$CONFIG_FILES introduction/exp_apx/makefile" ;;
8764    "multi_thread/makefile") CONFIG_FILES="$CONFIG_FILES multi_thread/makefile" ;;
8765    "multi_thread/test_multi/makefile") CONFIG_FILES="$CONFIG_FILES multi_thread/test_multi/makefile" ;;
8766    "print_for/makefile") CONFIG_FILES="$CONFIG_FILES print_for/makefile" ;;
8767    "speed/adolc/makefile") CONFIG_FILES="$CONFIG_FILES speed/adolc/makefile" ;;
8768    "speed/cppad/makefile") CONFIG_FILES="$CONFIG_FILES speed/cppad/makefile" ;;
8769    "speed/double/makefile") CONFIG_FILES="$CONFIG_FILES speed/double/makefile" ;;
8770    "speed/example/makefile") CONFIG_FILES="$CONFIG_FILES speed/example/makefile" ;;
8771    "speed/fadbad/makefile") CONFIG_FILES="$CONFIG_FILES speed/fadbad/makefile" ;;
8772    "speed/profile/makefile") CONFIG_FILES="$CONFIG_FILES speed/profile/makefile" ;;
8773    "speed/profile/gprof.sed") CONFIG_FILES="$CONFIG_FILES speed/profile/gprof.sed" ;;
8774    "speed/sacado/makefile") CONFIG_FILES="$CONFIG_FILES speed/sacado/makefile" ;;
8775    "speed/src/makefile") CONFIG_FILES="$CONFIG_FILES speed/src/makefile" ;;
8776    "test_more/makefile") CONFIG_FILES="$CONFIG_FILES test_more/makefile" ;;
8777    "example_ipopt_solve_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS example_ipopt_solve_test.sh" ;;
8778    "cppad_ipopt_example_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS cppad_ipopt_example_test.sh" ;;
8779    "cppad_ipopt_speed_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS cppad_ipopt_speed_test.sh" ;;
8780    "cppad_ipopt_test_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS cppad_ipopt_test_test.sh" ;;
8781
8782  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8783  esac
8784done
8785
8786
8787# If the user did not use the arguments to specify the items to instantiate,
8788# then the envvar interface is used.  Set only those that are not.
8789# We use the long form for the default assignment because of an extremely
8790# bizarre bug on SunOS 4.1.3.
8791if $ac_need_defaults; then
8792  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8793  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8794fi
8795
8796# Have a temporary directory for convenience.  Make it in the build tree
8797# simply because there is no reason against having it here, and in addition,
8798# creating and moving files from /tmp can sometimes cause problems.
8799# Hook for its removal unless debugging.
8800# Note that there is a small window in which the directory will not be cleaned:
8801# after its creation but before its name has been assigned to `$tmp'.
8802$debug ||
8803{
8804  tmp= ac_tmp=
8805  trap 'exit_status=$?
8806  : "${ac_tmp:=$tmp}"
8807  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8808' 0
8809  trap 'as_fn_exit 1' 1 2 13 15
8810}
8811# Create a (secure) tmp directory for tmp files.
8812
8813{
8814  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8815  test -d "$tmp"
8816}  ||
8817{
8818  tmp=./conf$$-$RANDOM
8819  (umask 077 && mkdir "$tmp")
8820} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8821ac_tmp=$tmp
8822
8823# Set up the scripts for CONFIG_FILES section.
8824# No need to generate them if there are no CONFIG_FILES.
8825# This happens for instance with `./config.status config.h'.
8826if test -n "$CONFIG_FILES"; then
8827
8828
8829ac_cr=`echo X | tr X '\015'`
8830# On cygwin, bash can eat \r inside `` if the user requested igncr.
8831# But we know of no other shell where ac_cr would be empty at this
8832# point, so we can use a bashism as a fallback.
8833if test "x$ac_cr" = x; then
8834  eval ac_cr=\$\'\\r\'
8835fi
8836ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8837if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8838  ac_cs_awk_cr='\\r'
8839else
8840  ac_cs_awk_cr=$ac_cr
8841fi
8842
8843echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8844_ACEOF
8845
8846
8847{
8848  echo "cat >conf$$subs.awk <<_ACEOF" &&
8849  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8850  echo "_ACEOF"
8851} >conf$$subs.sh ||
8852  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8853ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8854ac_delim='%!_!# '
8855for ac_last_try in false false false false false :; do
8856  . ./conf$$subs.sh ||
8857    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8858
8859  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8860  if test $ac_delim_n = $ac_delim_num; then
8861    break
8862  elif $ac_last_try; then
8863    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8864  else
8865    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8866  fi
8867done
8868rm -f conf$$subs.sh
8869
8870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8871cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8872_ACEOF
8873sed -n '
8874h
8875s/^/S["/; s/!.*/"]=/
8876p
8877g
8878s/^[^!]*!//
8879:repl
8880t repl
8881s/'"$ac_delim"'$//
8882t delim
8883:nl
8884h
8885s/\(.\{148\}\)..*/\1/
8886t more1
8887s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8888p
8889n
8890b repl
8891:more1
8892s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8893p
8894g
8895s/.\{148\}//
8896t nl
8897:delim
8898h
8899s/\(.\{148\}\)..*/\1/
8900t more2
8901s/["\\]/\\&/g; s/^/"/; s/$/"/
8902p
8903b
8904:more2
8905s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8906p
8907g
8908s/.\{148\}//
8909t delim
8910' <conf$$subs.awk | sed '
8911/^[^""]/{
8912  N
8913  s/\n//
8914}
8915' >>$CONFIG_STATUS || ac_write_fail=1
8916rm -f conf$$subs.awk
8917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8918_ACAWK
8919cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8920  for (key in S) S_is_set[key] = 1
8921  FS = ""
8922
8923}
8924{
8925  line = $ 0
8926  nfields = split(line, field, "@")
8927  substed = 0
8928  len = length(field[1])
8929  for (i = 2; i < nfields; i++) {
8930    key = field[i]
8931    keylen = length(key)
8932    if (S_is_set[key]) {
8933      value = S[key]
8934      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8935      len += length(value) + length(field[++i])
8936      substed = 1
8937    } else
8938      len += 1 + keylen
8939  }
8940
8941  print line
8942}
8943
8944_ACAWK
8945_ACEOF
8946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8947if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8948  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8949else
8950  cat
8951fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8952  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8953_ACEOF
8954
8955# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8956# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8957# trailing colons and then remove the whole line if VPATH becomes empty
8958# (actually we leave an empty line to preserve line numbers).
8959if test "x$srcdir" = x.; then
8960  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8961h
8962s///
8963s/^/:/
8964s/[      ]*$/:/
8965s/:\$(srcdir):/:/g
8966s/:\${srcdir}:/:/g
8967s/:@srcdir@:/:/g
8968s/^:*//
8969s/:*$//
8970x
8971s/\(=[   ]*\).*/\1/
8972G
8973s/\n//
8974s/^[^=]*=[       ]*$//
8975}'
8976fi
8977
8978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8979fi # test -n "$CONFIG_FILES"
8980
8981
8982eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
8983shift
8984for ac_tag
8985do
8986  case $ac_tag in
8987  :[FHLC]) ac_mode=$ac_tag; continue;;
8988  esac
8989  case $ac_mode$ac_tag in
8990  :[FHL]*:*);;
8991  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8992  :[FH]-) ac_tag=-:-;;
8993  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8994  esac
8995  ac_save_IFS=$IFS
8996  IFS=:
8997  set x $ac_tag
8998  IFS=$ac_save_IFS
8999  shift
9000  ac_file=$1
9001  shift
9002
9003  case $ac_mode in
9004  :L) ac_source=$1;;
9005  :[FH])
9006    ac_file_inputs=
9007    for ac_f
9008    do
9009      case $ac_f in
9010      -) ac_f="$ac_tmp/stdin";;
9011      *) # Look for the file first in the build tree, then in the source tree
9012         # (if the path is not absolute).  The absolute path cannot be DOS-style,
9013         # because $ac_f cannot contain `:'.
9014         test -f "$ac_f" ||
9015           case $ac_f in
9016           [\\/$]*) false;;
9017           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9018           esac ||
9019           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9020      esac
9021      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9022      as_fn_append ac_file_inputs " '$ac_f'"
9023    done
9024
9025    # Let's still pretend it is `configure' which instantiates (i.e., don't
9026    # use $as_me), people would be surprised to read:
9027    #    /* config.h.  Generated by config.status.  */
9028    configure_input='Generated from '`
9029          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9030        `' by configure.'
9031    if test x"$ac_file" != x-; then
9032      configure_input="$ac_file.  $configure_input"
9033      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9034$as_echo "$as_me: creating $ac_file" >&6;}
9035    fi
9036    # Neutralize special characters interpreted by sed in replacement strings.
9037    case $configure_input in #(
9038    *\&* | *\|* | *\\* )
9039       ac_sed_conf_input=`$as_echo "$configure_input" |
9040       sed 's/[\\\\&|]/\\\\&/g'`;; #(
9041    *) ac_sed_conf_input=$configure_input;;
9042    esac
9043
9044    case $ac_tag in
9045    *:-:* | *:-) cat >"$ac_tmp/stdin" \
9046      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9047    esac
9048    ;;
9049  esac
9050
9051  ac_dir=`$as_dirname -- "$ac_file" ||
9052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9053         X"$ac_file" : 'X\(//\)[^/]' \| \
9054         X"$ac_file" : 'X\(//\)$' \| \
9055         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9056$as_echo X"$ac_file" |
9057    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9058            s//\1/
9059            q
9060          }
9061          /^X\(\/\/\)[^/].*/{
9062            s//\1/
9063            q
9064          }
9065          /^X\(\/\/\)$/{
9066            s//\1/
9067            q
9068          }
9069          /^X\(\/\).*/{
9070            s//\1/
9071            q
9072          }
9073          s/.*/./; q'`
9074  as_dir="$ac_dir"; as_fn_mkdir_p
9075  ac_builddir=.
9076
9077case "$ac_dir" in
9078.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9079*)
9080  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9081  # A ".." for each directory in $ac_dir_suffix.
9082  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9083  case $ac_top_builddir_sub in
9084  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9085  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9086  esac ;;
9087esac
9088ac_abs_top_builddir=$ac_pwd
9089ac_abs_builddir=$ac_pwd$ac_dir_suffix
9090# for backward compatibility:
9091ac_top_builddir=$ac_top_build_prefix
9092
9093case $srcdir in
9094  .)  # We are building in place.
9095    ac_srcdir=.
9096    ac_top_srcdir=$ac_top_builddir_sub
9097    ac_abs_top_srcdir=$ac_pwd ;;
9098  [\\/]* | ?:[\\/]* )  # Absolute name.
9099    ac_srcdir=$srcdir$ac_dir_suffix;
9100    ac_top_srcdir=$srcdir
9101    ac_abs_top_srcdir=$srcdir ;;
9102  *) # Relative name.
9103    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9104    ac_top_srcdir=$ac_top_build_prefix$srcdir
9105    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9106esac
9107ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9108
9109
9110  case $ac_mode in
9111  :F)
9112  #
9113  # CONFIG_FILE
9114  #
9115
9116  case $INSTALL in
9117  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9118  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9119  esac
9120  ac_MKDIR_P=$MKDIR_P
9121  case $MKDIR_P in
9122  [\\/$]* | ?:[\\/]* ) ;;
9123  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9124  esac
9125_ACEOF
9126
9127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9128# If the template does not know about datarootdir, expand it.
9129# FIXME: This hack should be removed a few years after 2.60.
9130ac_datarootdir_hack=; ac_datarootdir_seen=
9131ac_sed_dataroot='
9132/datarootdir/ {
9133  p
9134  q
9135}
9136/@datadir@/p
9137/@docdir@/p
9138/@infodir@/p
9139/@localedir@/p
9140/@mandir@/p'
9141case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9142*datarootdir*) ac_datarootdir_seen=yes;;
9143*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9144  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9145$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9146_ACEOF
9147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9148  ac_datarootdir_hack='
9149  s&@datadir@&$datadir&g
9150  s&@docdir@&$docdir&g
9151  s&@infodir@&$infodir&g
9152  s&@localedir@&$localedir&g
9153  s&@mandir@&$mandir&g
9154  s&\\\${datarootdir}&$datarootdir&g' ;;
9155esac
9156_ACEOF
9157
9158# Neutralize VPATH when `$srcdir' = `.'.
9159# Shell code in configure.ac might set extrasub.
9160# FIXME: do we really want to maintain this feature?
9161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9162ac_sed_extra="$ac_vpsub
9163$extrasub
9164_ACEOF
9165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9166:t
9167/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9168s|@configure_input@|$ac_sed_conf_input|;t t
9169s&@top_builddir@&$ac_top_builddir_sub&;t t
9170s&@top_build_prefix@&$ac_top_build_prefix&;t t
9171s&@srcdir@&$ac_srcdir&;t t
9172s&@abs_srcdir@&$ac_abs_srcdir&;t t
9173s&@top_srcdir@&$ac_top_srcdir&;t t
9174s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9175s&@builddir@&$ac_builddir&;t t
9176s&@abs_builddir@&$ac_abs_builddir&;t t
9177s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9178s&@INSTALL@&$ac_INSTALL&;t t
9179s&@MKDIR_P@&$ac_MKDIR_P&;t t
9180$ac_datarootdir_hack
9181"
9182eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9183  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9184
9185test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9186  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9187  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9188      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9189  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9190which seems to be undefined.  Please make sure it is defined" >&5
9191$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9192which seems to be undefined.  Please make sure it is defined" >&2;}
9193
9194  rm -f "$ac_tmp/stdin"
9195  case $ac_file in
9196  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9197  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9198  esac \
9199  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9200 ;;
9201
9202
9203  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9204$as_echo "$as_me: executing $ac_file commands" >&6;}
9205 ;;
9206  esac
9207
9208
9209  case $ac_file$ac_mode in
9210    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9211  # Older Autoconf quotes --file arguments for eval, but not when files
9212  # are listed without --file.  Let's play safe and only enable the eval
9213  # if we detect the quoting.
9214  case $CONFIG_FILES in
9215  *\'*) eval set x "$CONFIG_FILES" ;;
9216  *)   set x $CONFIG_FILES ;;
9217  esac
9218  shift
9219  for mf
9220  do
9221    # Strip MF so we end up with the name of the file.
9222    mf=`echo "$mf" | sed -e 's/:.*$//'`
9223    # Check whether this is an Automake generated Makefile or not.
9224    # We used to match only the files named 'Makefile.in', but
9225    # some people rename them; so instead we look at the file content.
9226    # Grep'ing the first line is not enough: some people post-process
9227    # each Makefile.in and add a new line on top of each file to say so.
9228    # Grep'ing the whole file is not good either: AIX grep has a line
9229    # limit of 2048, but all sed's we know have understand at least 4000.
9230    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9231      dirpart=`$as_dirname -- "$mf" ||
9232$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9233         X"$mf" : 'X\(//\)[^/]' \| \
9234         X"$mf" : 'X\(//\)$' \| \
9235         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9236$as_echo X"$mf" |
9237    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9238            s//\1/
9239            q
9240          }
9241          /^X\(\/\/\)[^/].*/{
9242            s//\1/
9243            q
9244          }
9245          /^X\(\/\/\)$/{
9246            s//\1/
9247            q
9248          }
9249          /^X\(\/\).*/{
9250            s//\1/
9251            q
9252          }
9253          s/.*/./; q'`
9254    else
9255      continue
9256    fi
9257    # Extract the definition of DEPDIR, am__include, and am__quote
9258    # from the Makefile without running 'make'.
9259    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9260    test -z "$DEPDIR" && continue
9261    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9262    test -z "$am__include" && continue
9263    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9264    # Find all dependency output files, they are included files with
9265    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9266    # simplest approach to changing $(DEPDIR) to its actual value in the
9267    # expansion.
9268    for file in `sed -n "
9269      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9270         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9271      # Make sure the directory exists.
9272      test -f "$dirpart/$file" && continue
9273      fdir=`$as_dirname -- "$file" ||
9274$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9275         X"$file" : 'X\(//\)[^/]' \| \
9276         X"$file" : 'X\(//\)$' \| \
9277         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9278$as_echo X"$file" |
9279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9280            s//\1/
9281            q
9282          }
9283          /^X\(\/\/\)[^/].*/{
9284            s//\1/
9285            q
9286          }
9287          /^X\(\/\/\)$/{
9288            s//\1/
9289            q
9290          }
9291          /^X\(\/\).*/{
9292            s//\1/
9293            q
9294          }
9295          s/.*/./; q'`
9296      as_dir=$dirpart/$fdir; as_fn_mkdir_p
9297      # echo "creating $dirpart/$file"
9298      echo '# dummy' > "$dirpart/$file"
9299    done
9300  done
9301}
9302 ;;
9303    "example_ipopt_solve_test.sh":C) chmod +x example/ipopt_solve/test.sh ;;
9304    "cppad_ipopt_example_test.sh":C) chmod +x cppad_ipopt/example/test.sh ;;
9305    "cppad_ipopt_speed_test.sh":C) chmod +x cppad_ipopt/speed/test.sh ;;
9306    "cppad_ipopt_test_test.sh":C) chmod +x cppad_ipopt/test/test.sh ;;
9307
9308  esac
9309done # for ac_tag
9310
9311
9312as_fn_exit 0
9313_ACEOF
9314ac_clean_files=$ac_clean_files_save
9315
9316test $ac_write_fail = 0 ||
9317  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9318
9319
9320# configure is writing to config.log, and then calls config.status.
9321# config.status does its own redirection, appending to config.log.
9322# Unfortunately, on DOS this fails, as config.log is still kept open
9323# by configure, so config.status won't be able to write to it; its
9324# output is simply discarded.  So we exec the FD to /dev/null,
9325# effectively closing config.log, so it can be properly (re)opened and
9326# appended to by config.status.  When coming back to configure, we
9327# need to make the FD available again.
9328if test "$no_create" != yes; then
9329  ac_cs_success=:
9330  ac_config_status_args=
9331  test "$silent" = yes &&
9332    ac_config_status_args="$ac_config_status_args --quiet"
9333  exec 5>/dev/null
9334  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9335  exec 5>>config.log
9336  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9337  # would make configure fail if this is the last instruction.
9338  $ac_cs_success || as_fn_exit 1
9339fi
9340if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9341  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9342$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9343fi
9344
Note: See TracBrowser for help on using the repository browser.