source: trunk/configure @ 3790

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

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: 431e0a227dbfe6172d265d9d79a2b5b258c5bc18
end hash code: 1d6dc964379103ffc27725c649e22416e1cd233b

commit 1d6dc964379103ffc27725c649e22416e1cd233b
Author: Brad Bell <bradbell@…>
Date: Sat Feb 20 18:34:50 2016 -0700

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