source: stable/20130000/configure @ 2757

Last change on this file since 2757 was 2757, checked in by bradbell, 7 years ago
  1. Relevant part of bug fix to limits.cpp in trunk

between revision 2755 and 2756.

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