Annotation of rpl/configure, revision 1.35

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.29      bertrand    3: # Generated by GNU Autoconf 2.65 for rpl 4.0.18.
1.15      bertrand    4: #
1.1       bertrand    5: #
                      6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.15      bertrand    7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
                      8: # Inc.
                      9: #
                     10: #
1.1       bertrand   11: # This configure script is free software; the Free Software Foundation
                     12: # gives unlimited permission to copy, distribute and modify it.
1.15      bertrand   13: ## -------------------- ##
                     14: ## M4sh Initialization. ##
                     15: ## -------------------- ##
1.1       bertrand   16: 
                     17: # Be more Bourne compatible
                     18: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand   19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand   20:   emulate sh
                     21:   NULLCMD=:
1.15      bertrand   22:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand   23:   # is contrary to our usage.  Disable this feature.
                     24:   alias -g '${1+"$@"}'='"$@"'
                     25:   setopt NO_GLOB_SUBST
                     26: else
1.15      bertrand   27:   case `(set -o) 2>/dev/null` in #(
                     28:   *posix*) :
                     29:     set -o posix ;; #(
                     30:   *) :
                     31:      ;;
1.1       bertrand   32: esac
                     33: fi
                     34: 
                     35: 
1.15      bertrand   36: as_nl='
                     37: '
                     38: export as_nl
                     39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                     43: # Prefer a ksh shell builtin over an external printf program on Solaris,
                     44: # but without wasting forks for bash or zsh.
                     45: if test -z "$BASH_VERSION$ZSH_VERSION" \
                     46:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                     47:   as_echo='print -r --'
                     48:   as_echo_n='print -rn --'
                     49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                     50:   as_echo='printf %s\n'
                     51:   as_echo_n='printf %s'
                     52: else
                     53:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                     54:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                     55:     as_echo_n='/usr/ucb/echo -n'
                     56:   else
                     57:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                     58:     as_echo_n_body='eval
                     59:       arg=$1;
                     60:       case $arg in #(
                     61:       *"$as_nl"*)
                     62:    expr "X$arg" : "X\\(.*\\)$as_nl";
                     63:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                     64:       esac;
                     65:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                     66:     '
                     67:     export as_echo_n_body
                     68:     as_echo_n='sh -c $as_echo_n_body as_echo'
                     69:   fi
                     70:   export as_echo_body
                     71:   as_echo='sh -c $as_echo_body as_echo'
                     72: fi
1.14      bertrand   73: 
                     74: # The user is always right.
                     75: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand   76:   PATH_SEPARATOR=:
                     77:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                     78:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                     79:       PATH_SEPARATOR=';'
                     80:   }
1.1       bertrand   81: fi
                     82: 
                     83: 
                     84: # IFS
                     85: # We need space, tab and new line, in precisely that order.  Quoting is
                     86: # there to prevent editors from complaining about space-tab.
                     87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     88: # splitting by setting IFS to empty value.)
                     89: IFS=" ""   $as_nl"
                     90: 
                     91: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand   92: case $0 in #((
1.1       bertrand   93:   *[\\/]* ) as_myself=$0 ;;
                     94:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     95: for as_dir in $PATH
                     96: do
                     97:   IFS=$as_save_IFS
                     98:   test -z "$as_dir" && as_dir=.
1.15      bertrand   99:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    100:   done
1.1       bertrand  101: IFS=$as_save_IFS
                    102: 
                    103:      ;;
                    104: esac
                    105: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    106: # in which case we are not to be found in the path.
                    107: if test "x$as_myself" = x; then
                    108:   as_myself=$0
                    109: fi
                    110: if test ! -f "$as_myself"; then
1.15      bertrand  111:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    112:   exit 1
1.1       bertrand  113: fi
                    114: 
1.15      bertrand  115: # Unset variables that we do not need and which cause bugs (e.g. in
                    116: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    117: # suppresses any "Segmentation fault" message there.  '((' could
                    118: # trigger a bug in pdksh 5.2.14.
                    119: for as_var in BASH_ENV ENV MAIL MAILPATH
                    120: do eval test x\${$as_var+set} = xset \
                    121:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand  122: done
                    123: PS1='$ '
                    124: PS2='> '
                    125: PS4='+ '
                    126: 
                    127: # NLS nuisances.
1.15      bertrand  128: LC_ALL=C
                    129: export LC_ALL
                    130: LANGUAGE=C
                    131: export LANGUAGE
1.1       bertrand  132: 
                    133: # CDPATH.
1.15      bertrand  134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       bertrand  135: 
                    136: if test "x$CONFIG_SHELL" = x; then
1.15      bertrand  137:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    138:   emulate sh
                    139:   NULLCMD=:
                    140:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    141:   # is contrary to our usage.  Disable this feature.
                    142:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    143:   setopt NO_GLOB_SUBST
1.1       bertrand  144: else
1.15      bertrand  145:   case \`(set -o) 2>/dev/null\` in #(
                    146:   *posix*) :
                    147:     set -o posix ;; #(
                    148:   *) :
                    149:      ;;
                    150: esac
1.1       bertrand  151: fi
1.15      bertrand  152: "
                    153:   as_required="as_fn_return () { (exit \$1); }
                    154: as_fn_success () { as_fn_return 0; }
                    155: as_fn_failure () { as_fn_return 1; }
                    156: as_fn_ret_success () { return 0; }
                    157: as_fn_ret_failure () { return 1; }
1.1       bertrand  158: 
                    159: exitcode=0
1.15      bertrand  160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    165: 
                    166: else
                    167:   exitcode=1; echo positional parameters were not saved.
                    168: fi
                    169: test x\$exitcode = x0 || exit 1"
                    170:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    171:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    172:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    173:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    174: test \$(( 1 + 1 )) = 2 || exit 1"
                    175:   if (eval "$as_required") 2>/dev/null; then :
                    176:   as_have_required=yes
1.14      bertrand  177: else
1.15      bertrand  178:   as_have_required=no
1.14      bertrand  179: fi
1.15      bertrand  180:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14      bertrand  181: 
                    182: else
1.15      bertrand  183:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    184: as_found=false
1.1       bertrand  185: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    186: do
                    187:   IFS=$as_save_IFS
                    188:   test -z "$as_dir" && as_dir=.
1.15      bertrand  189:   as_found=:
                    190:   case $as_dir in #(
1.1       bertrand  191:     /*)
                    192:       for as_base in sh bash ksh sh5; do
1.15      bertrand  193:         # Try only shells that exist, to save several forks.
                    194:         as_shell=$as_dir/$as_base
                    195:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    196:            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    197:   CONFIG_SHELL=$as_shell as_have_required=yes
                    198:           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    199:   break 2
                    200: fi
                    201: fi
1.1       bertrand  202:       done;;
                    203:        esac
1.15      bertrand  204:   as_found=false
1.1       bertrand  205: done
1.15      bertrand  206: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    207:          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    208:   CONFIG_SHELL=$SHELL as_have_required=yes
                    209: fi; }
1.1       bertrand  210: IFS=$as_save_IFS
                    211: 
                    212: 
1.15      bertrand  213:       if test "x$CONFIG_SHELL" != x; then :
                    214:   # We cannot yet assume a decent shell, so we have to provide a
                    215:    # neutralization value for shells without unset; and this also
                    216:    # works around shells that cannot unset nonexistent variables.
                    217:    BASH_ENV=/dev/null
                    218:    ENV=/dev/null
                    219:    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    220:    export CONFIG_SHELL
                    221:    exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
                    222: fi
                    223: 
                    224:     if test x$as_have_required = xno; then :
                    225:   $as_echo "$0: This script requires a shell more modern than all"
                    226:   $as_echo "$0: the shells that I found on your system."
                    227:   if test x${ZSH_VERSION+set} = xset ; then
                    228:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    229:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    230:   else
                    231:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    232: $0: including any error possibly output before this
                    233: $0: message. Then install a modern shell, or manually run
                    234: $0: the script under such a shell if you do have one."
                    235:   fi
                    236:   exit 1
                    237: fi
1.1       bertrand  238: fi
                    239: fi
1.15      bertrand  240: SHELL=${CONFIG_SHELL-/bin/sh}
                    241: export SHELL
                    242: # Unset more variables known to interfere with behavior of common tools.
                    243: CLICOLOR_FORCE= GREP_OPTIONS=
                    244: unset CLICOLOR_FORCE GREP_OPTIONS
1.14      bertrand  245: 
1.15      bertrand  246: ## --------------------- ##
                    247: ## M4sh Shell Functions. ##
                    248: ## --------------------- ##
                    249: # as_fn_unset VAR
                    250: # ---------------
                    251: # Portably unset VAR.
                    252: as_fn_unset ()
                    253: {
                    254:   { eval $1=; unset $1;}
                    255: }
                    256: as_unset=as_fn_unset
                    257: 
                    258: # as_fn_set_status STATUS
                    259: # -----------------------
                    260: # Set $? to STATUS, without forking.
                    261: as_fn_set_status ()
                    262: {
                    263:   return $1
                    264: } # as_fn_set_status
                    265: 
                    266: # as_fn_exit STATUS
                    267: # -----------------
                    268: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    269: as_fn_exit ()
                    270: {
                    271:   set +e
                    272:   as_fn_set_status $1
                    273:   exit $1
                    274: } # as_fn_exit
                    275: 
                    276: # as_fn_mkdir_p
                    277: # -------------
                    278: # Create "$as_dir" as a directory, including parents if necessary.
                    279: as_fn_mkdir_p ()
                    280: {
1.14      bertrand  281: 
1.15      bertrand  282:   case $as_dir in #(
                    283:   -*) as_dir=./$as_dir;;
                    284:   esac
                    285:   test -d "$as_dir" || eval $as_mkdir_p || {
                    286:     as_dirs=
                    287:     while :; do
                    288:       case $as_dir in #(
                    289:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    290:       *) as_qdir=$as_dir;;
                    291:       esac
                    292:       as_dirs="'$as_qdir' $as_dirs"
                    293:       as_dir=`$as_dirname -- "$as_dir" ||
                    294: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    295:     X"$as_dir" : 'X\(//\)[^/]' \| \
                    296:     X"$as_dir" : 'X\(//\)$' \| \
                    297:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    298: $as_echo X"$as_dir" |
                    299:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    300:        s//\1/
                    301:        q
                    302:      }
                    303:      /^X\(\/\/\)[^/].*/{
                    304:        s//\1/
                    305:        q
                    306:      }
                    307:      /^X\(\/\/\)$/{
                    308:        s//\1/
                    309:        q
                    310:      }
                    311:      /^X\(\/\).*/{
                    312:        s//\1/
                    313:        q
                    314:      }
                    315:      s/.*/./; q'`
                    316:       test -d "$as_dir" && break
                    317:     done
                    318:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                    319:   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
1.1       bertrand  320: 
                    321: 
1.15      bertrand  322: } # as_fn_mkdir_p
                    323: # as_fn_append VAR VALUE
                    324: # ----------------------
                    325: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    326: # advantage of any shell optimizations that allow amortized linear growth over
                    327: # repeated appends, instead of the typical quadratic growth present in naive
                    328: # implementations.
                    329: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    330:   eval 'as_fn_append ()
                    331:   {
                    332:     eval $1+=\$2
                    333:   }'
1.14      bertrand  334: else
1.15      bertrand  335:   as_fn_append ()
                    336:   {
                    337:     eval $1=\$$1\$2
                    338:   }
                    339: fi # as_fn_append
1.1       bertrand  340: 
1.15      bertrand  341: # as_fn_arith ARG...
                    342: # ------------------
                    343: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    344: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    345: # must be portable across $(()) and expr.
                    346: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    347:   eval 'as_fn_arith ()
                    348:   {
                    349:     as_val=$(( $* ))
                    350:   }'
1.1       bertrand  351: else
1.15      bertrand  352:   as_fn_arith ()
                    353:   {
                    354:     as_val=`expr "$@" || test $? -eq 1`
                    355:   }
                    356: fi # as_fn_arith
1.14      bertrand  357: 
                    358: 
1.15      bertrand  359: # as_fn_error ERROR [LINENO LOG_FD]
                    360: # ---------------------------------
                    361: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    362: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                    363: # script with status $?, using 1 if that was 0.
                    364: as_fn_error ()
                    365: {
                    366:   as_status=$?; test $as_status -eq 0 && as_status=1
                    367:   if test "$3"; then
                    368:     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    369:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
                    370:   fi
                    371:   $as_echo "$as_me: error: $1" >&2
                    372:   as_fn_exit $as_status
                    373: } # as_fn_error
1.14      bertrand  374: 
1.15      bertrand  375: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    376:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    377:   as_expr=expr
1.1       bertrand  378: else
1.15      bertrand  379:   as_expr=false
1.14      bertrand  380: fi
                    381: 
1.15      bertrand  382: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    383:   as_basename=basename
1.1       bertrand  384: else
1.15      bertrand  385:   as_basename=false
1.14      bertrand  386: fi
                    387: 
1.15      bertrand  388: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    389:   as_dirname=dirname
1.1       bertrand  390: else
1.15      bertrand  391:   as_dirname=false
1.1       bertrand  392: fi
                    393: 
1.15      bertrand  394: as_me=`$as_basename -- "$0" ||
                    395: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    396:     X"$0" : 'X\(//\)$' \| \
                    397:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    398: $as_echo X/"$0" |
                    399:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    400:        s//\1/
                    401:        q
                    402:      }
                    403:      /^X\/\(\/\/\)$/{
                    404:        s//\1/
                    405:        q
                    406:      }
                    407:      /^X\/\(\/\).*/{
                    408:        s//\1/
                    409:        q
                    410:      }
                    411:      s/.*/./; q'`
1.1       bertrand  412: 
1.15      bertrand  413: # Avoid depending upon Character Ranges.
                    414: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    415: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    416: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    417: as_cr_digits='0123456789'
                    418: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand  419: 
                    420: 
1.15      bertrand  421:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    422:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    423:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    424:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    425:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.1       bertrand  426:   sed -n '
                    427:     p
                    428:     /[$]LINENO/=
                    429:   ' <$as_myself |
                    430:     sed '
                    431:       s/[$]LINENO.*/&-/
                    432:       t lineno
                    433:       b
                    434:       :lineno
                    435:       N
                    436:       :loop
                    437:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    438:       t loop
                    439:       s/-\n.*//
                    440:     ' >$as_me.lineno &&
                    441:   chmod +x "$as_me.lineno" ||
1.15      bertrand  442:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1       bertrand  443: 
                    444:   # Don't try to exec as it changes $[0], causing all sort of problems
                    445:   # (the dirname of $[0] is not the place where we might find the
                    446:   # original and so on.  Autoconf is especially sensitive to this).
                    447:   . "./$as_me.lineno"
                    448:   # Exit status is that of the last command.
                    449:   exit
                    450: }
                    451: 
1.15      bertrand  452: ECHO_C= ECHO_N= ECHO_T=
                    453: case `echo -n x` in #(((((
                    454: -n*)
                    455:   case `echo 'xy\c'` in
1.1       bertrand  456:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand  457:   xy)  ECHO_C='\c';;
                    458:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    459:        ECHO_T='    ';;
1.1       bertrand  460:   esac;;
                    461: *)
                    462:   ECHO_N='-n';;
                    463: esac
                    464: 
                    465: rm -f conf$$ conf$$.exe conf$$.file
                    466: if test -d conf$$.dir; then
                    467:   rm -f conf$$.dir/conf$$.file
                    468: else
                    469:   rm -f conf$$.dir
1.15      bertrand  470:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand  471: fi
1.15      bertrand  472: if (echo >conf$$.file) 2>/dev/null; then
                    473:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    474:     as_ln_s='ln -s'
                    475:     # ... but there are two gotchas:
                    476:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    477:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    478:     # In both cases, we have to default to `cp -p'.
                    479:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    480:       as_ln_s='cp -p'
                    481:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    482:     as_ln_s=ln
                    483:   else
1.1       bertrand  484:     as_ln_s='cp -p'
1.15      bertrand  485:   fi
1.1       bertrand  486: else
                    487:   as_ln_s='cp -p'
                    488: fi
                    489: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    490: rmdir conf$$.dir 2>/dev/null
                    491: 
                    492: if mkdir -p . 2>/dev/null; then
1.15      bertrand  493:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand  494: else
                    495:   test -d ./-p && rmdir ./-p
                    496:   as_mkdir_p=false
                    497: fi
                    498: 
                    499: if test -x / >/dev/null 2>&1; then
                    500:   as_test_x='test -x'
                    501: else
                    502:   if ls -dL / >/dev/null 2>&1; then
                    503:     as_ls_L_option=L
                    504:   else
                    505:     as_ls_L_option=
                    506:   fi
                    507:   as_test_x='
                    508:     eval sh -c '\''
                    509:       if test -d "$1"; then
1.15      bertrand  510:    test -d "$1/.";
1.1       bertrand  511:       else
1.15      bertrand  512:    case $1 in #(
                    513:    -*)set "./$1";;
1.1       bertrand  514:    esac;
1.15      bertrand  515:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand  516:    ???[sx]*):;;*)false;;esac;fi
                    517:     '\'' sh
                    518:   '
                    519: fi
                    520: as_executable_p=$as_test_x
                    521: 
                    522: # Sed expression to map a string onto a valid CPP name.
                    523: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    524: 
                    525: # Sed expression to map a string onto a valid variable name.
                    526: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    527: 
                    528: 
1.15      bertrand  529: test -n "$DJDIR" || exec 7<&0 </dev/null
                    530: exec 6>&1
1.1       bertrand  531: 
                    532: # Name of the host.
                    533: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    534: # so uname gets run too.
                    535: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    536: 
                    537: #
                    538: # Initializations.
                    539: #
                    540: ac_default_prefix=/usr/local
                    541: ac_clean_files=
                    542: ac_config_libobj_dir=.
                    543: LIBOBJS=
                    544: cross_compiling=no
                    545: subdirs=
                    546: MFLAGS=
                    547: MAKEFLAGS=
                    548: 
                    549: # Identity of this package.
                    550: PACKAGE_NAME='rpl'
                    551: PACKAGE_TARNAME='rpl'
1.29      bertrand  552: PACKAGE_VERSION='4.0.18'
                    553: PACKAGE_STRING='rpl 4.0.18'
1.1       bertrand  554: PACKAGE_BUGREPORT=''
1.15      bertrand  555: PACKAGE_URL=''
1.1       bertrand  556: 
                    557: ac_default_prefix=/usr/local
                    558: # Factoring default headers for most tests.
                    559: ac_includes_default="\
                    560: #include <stdio.h>
                    561: #ifdef HAVE_SYS_TYPES_H
                    562: # include <sys/types.h>
                    563: #endif
                    564: #ifdef HAVE_SYS_STAT_H
                    565: # include <sys/stat.h>
                    566: #endif
                    567: #ifdef STDC_HEADERS
                    568: # include <stdlib.h>
                    569: # include <stddef.h>
                    570: #else
                    571: # ifdef HAVE_STDLIB_H
                    572: #  include <stdlib.h>
                    573: # endif
                    574: #endif
                    575: #ifdef HAVE_STRING_H
                    576: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    577: #  include <memory.h>
                    578: # endif
                    579: # include <string.h>
                    580: #endif
                    581: #ifdef HAVE_STRINGS_H
                    582: # include <strings.h>
                    583: #endif
                    584: #ifdef HAVE_INTTYPES_H
                    585: # include <inttypes.h>
                    586: #endif
                    587: #ifdef HAVE_STDINT_H
                    588: # include <stdint.h>
                    589: #endif
                    590: #ifdef HAVE_UNISTD_H
                    591: # include <unistd.h>
                    592: #endif"
                    593: 
1.15      bertrand  594: enable_option_checking=no
                    595: ac_subst_vars='am__EXEEXT_FALSE
                    596: am__EXEEXT_TRUE
                    597: LTLIBOBJS
                    598: LIBOBJS
1.30      bertrand  599: EXT_SQL
1.24      bertrand  600: MALLOC
1.15      bertrand  601: DATE_FR
                    602: FINAL_ENCODING
                    603: OPENSSL
                    604: SQLITE
                    605: ICONV
                    606: FILE
                    607: GNUPLOT
                    608: GPP
                    609: GSL
                    610: UNITS
                    611: READLINE
                    612: NCURSES
1.35    ! bertrand  613: BROKEN_SIGINFO
1.34      bertrand  614: IPV6
1.33      bertrand  615: SEMUN
                    616: SEMAPHORES_SYSV
1.17      bertrand  617: SEMAPHORES_NOMMES
                    618: NESTED_FUNCTIONS
                    619: EXPORT_DYNAMIC
1.33      bertrand  620: C_STANDARD
1.15      bertrand  621: OS
                    622: GNUPLOT_COMPILATION
                    623: subdirs
                    624: EGREP
                    625: GREP
                    626: libPgSQLlib
                    627: libPgSQLinc
                    628: POSTGRESQL_SUPPORT
                    629: libMySQLlib
                    630: libMySQLinc
                    631: MYSQL_SUPPORT
                    632: DATE
                    633: includeX
                    634: libX
                    635: MOTIF_SUPPORT
                    636: DEBUG
                    637: EXPERIMENTAL_CODE
                    638: VIM_SUPPORT
                    639: POSTSCRIPT_SUPPORT
                    640: FORCE_GNUPLOT_PATH
                    641: GNUPLOT_SUPPORT
                    642: VIM
                    643: GNUPLOT_P
                    644: GV
                    645: GS
                    646: DVIPS
                    647: LATEX
                    648: TEX
                    649: SED
                    650: RANLIB
                    651: LN_S
                    652: RUNPATH
                    653: PROFILAGE
                    654: X_EXTRA_LIBS
                    655: X_LIBS
                    656: X_PRE_LIBS
                    657: X_CFLAGS
                    658: CPP
                    659: XMKMF
                    660: ac_ct_FC
                    661: FCFLAGS
                    662: FC
                    663: ac_ct_F77
                    664: FFLAGS
                    665: F77
                    666: am__fastdepCXX_FALSE
                    667: am__fastdepCXX_TRUE
                    668: CXXDEPMODE
                    669: ac_ct_CXX
                    670: CXXFLAGS
                    671: CXX
                    672: am__fastdepCC_FALSE
                    673: am__fastdepCC_TRUE
                    674: CCDEPMODE
                    675: AMDEPBACKSLASH
                    676: AMDEP_FALSE
                    677: AMDEP_TRUE
                    678: am__quote
                    679: am__include
                    680: DEPDIR
                    681: OBJEXT
                    682: EXEEXT
                    683: ac_ct_CC
                    684: CPPFLAGS
                    685: LDFLAGS
                    686: CFLAGS
                    687: CC
                    688: am__untar
                    689: am__tar
                    690: AMTAR
                    691: am__leading_dot
                    692: SET_MAKE
                    693: AWK
                    694: mkdir_p
                    695: MKDIR_P
                    696: INSTALL_STRIP_PROGRAM
                    697: STRIP
                    698: install_sh
                    699: MAKEINFO
                    700: AUTOHEADER
                    701: AUTOMAKE
                    702: AUTOCONF
                    703: ACLOCAL
                    704: VERSION
                    705: PACKAGE
                    706: CYGPATH_W
                    707: am__isrc
                    708: INSTALL_DATA
                    709: INSTALL_SCRIPT
                    710: INSTALL_PROGRAM
                    711: target_os
                    712: target_vendor
                    713: target_cpu
                    714: target
                    715: host_os
                    716: host_vendor
                    717: host_cpu
                    718: host
                    719: build_os
                    720: build_vendor
                    721: build_cpu
                    722: build
                    723: target_alias
                    724: host_alias
                    725: build_alias
                    726: LIBS
                    727: ECHO_T
                    728: ECHO_N
                    729: ECHO_C
                    730: DEFS
                    731: mandir
                    732: localedir
                    733: libdir
                    734: psdir
                    735: pdfdir
                    736: dvidir
                    737: htmldir
                    738: infodir
                    739: docdir
                    740: oldincludedir
                    741: includedir
                    742: localstatedir
                    743: sharedstatedir
                    744: sysconfdir
                    745: datadir
                    746: datarootdir
                    747: libexecdir
                    748: sbindir
                    749: bindir
                    750: program_transform_name
                    751: prefix
                    752: exec_prefix
                    753: PACKAGE_URL
                    754: PACKAGE_BUGREPORT
                    755: PACKAGE_STRING
                    756: PACKAGE_VERSION
                    757: PACKAGE_TARNAME
                    758: PACKAGE_NAME
1.14      bertrand  759: PATH_SEPARATOR
1.15      bertrand  760: SHELL'
                    761: ac_subst_files=''
                    762: ac_user_opts='
                    763: enable_option_checking
                    764: enable_dependency_tracking
                    765: with_x
                    766: enable_optimization
1.30      bertrand  767: enable_full_static
1.15      bertrand  768: enable_final_encoding
                    769: enable_tex
                    770: enable_vim
                    771: enable_embedded_gnuplot
                    772: enable_gnuplot
                    773: enable_motif
                    774: enable_experimental
                    775: enable_debug
                    776: enable_profile
                    777: enable_final_run_path
                    778: with_mysql
                    779: with_postgresql
                    780: with_openssl_arch
                    781: '
                    782:       ac_precious_vars='build_alias
1.1       bertrand  783: host_alias
                    784: target_alias
                    785: CC
                    786: CFLAGS
                    787: LDFLAGS
1.15      bertrand  788: LIBS
1.1       bertrand  789: CPPFLAGS
                    790: CXX
                    791: CXXFLAGS
1.15      bertrand  792: CCC
1.1       bertrand  793: F77
                    794: FFLAGS
                    795: FC
                    796: FCFLAGS
                    797: XMKMF
                    798: CPP'
                    799: ac_subdirs_all='tools/$NCURSES
                    800: tools/$READLINE
                    801: tools/$GSL
                    802: tools/$GPP
                    803: tools/$FILE
                    804: tools/$ICONV
1.9       bertrand  805: tools/$SQLITE
1.17      bertrand  806: tools/$UNITS
1.1       bertrand  807: tools/$GNUPLOT'
                    808: 
                    809: # Initialize some variables set by options.
                    810: ac_init_help=
                    811: ac_init_version=false
1.15      bertrand  812: ac_unrecognized_opts=
                    813: ac_unrecognized_sep=
1.1       bertrand  814: # The variables have the same names as the options, with
                    815: # dashes changed to underlines.
                    816: cache_file=/dev/null
                    817: exec_prefix=NONE
                    818: no_create=
                    819: no_recursion=
                    820: prefix=NONE
                    821: program_prefix=NONE
                    822: program_suffix=NONE
                    823: program_transform_name=s,x,x,
                    824: silent=
                    825: site=
                    826: srcdir=
                    827: verbose=
                    828: x_includes=NONE
                    829: x_libraries=NONE
                    830: 
                    831: # Installation directory options.
                    832: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    833: # and all the variables that are supposed to be based on exec_prefix
                    834: # by default will actually change.
                    835: # Use braces instead of parens because sh, perl, etc. also accept them.
                    836: # (The list follows the same order as the GNU Coding Standards.)
                    837: bindir='${exec_prefix}/bin'
                    838: sbindir='${exec_prefix}/sbin'
                    839: libexecdir='${exec_prefix}/libexec'
                    840: datarootdir='${prefix}/share'
                    841: datadir='${datarootdir}'
                    842: sysconfdir='${prefix}/etc'
                    843: sharedstatedir='${prefix}/com'
                    844: localstatedir='${prefix}/var'
                    845: includedir='${prefix}/include'
                    846: oldincludedir='/usr/include'
                    847: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    848: infodir='${datarootdir}/info'
                    849: htmldir='${docdir}'
                    850: dvidir='${docdir}'
                    851: pdfdir='${docdir}'
                    852: psdir='${docdir}'
                    853: libdir='${exec_prefix}/lib'
                    854: localedir='${datarootdir}/locale'
                    855: mandir='${datarootdir}/man'
                    856: 
                    857: ac_prev=
                    858: ac_dashdash=
                    859: for ac_option
                    860: do
                    861:   # If the previous option needs an argument, assign it.
                    862:   if test -n "$ac_prev"; then
                    863:     eval $ac_prev=\$ac_option
                    864:     ac_prev=
                    865:     continue
                    866:   fi
                    867: 
                    868:   case $ac_option in
                    869:   *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    870:   *)   ac_optarg=yes ;;
                    871:   esac
                    872: 
                    873:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    874: 
                    875:   case $ac_dashdash$ac_option in
                    876:   --)
                    877:     ac_dashdash=yes ;;
                    878: 
                    879:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    880:     ac_prev=bindir ;;
                    881:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    882:     bindir=$ac_optarg ;;
                    883: 
                    884:   -build | --build | --buil | --bui | --bu)
                    885:     ac_prev=build_alias ;;
                    886:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    887:     build_alias=$ac_optarg ;;
                    888: 
                    889:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    890:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    891:     ac_prev=cache_file ;;
                    892:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    893:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    894:     cache_file=$ac_optarg ;;
                    895: 
                    896:   --config-cache | -C)
                    897:     cache_file=config.cache ;;
                    898: 
                    899:   -datadir | --datadir | --datadi | --datad)
                    900:     ac_prev=datadir ;;
                    901:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    902:     datadir=$ac_optarg ;;
                    903: 
                    904:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    905:   | --dataroo | --dataro | --datar)
                    906:     ac_prev=datarootdir ;;
                    907:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    908:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    909:     datarootdir=$ac_optarg ;;
                    910: 
                    911:   -disable-* | --disable-*)
1.15      bertrand  912:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  913:     # Reject names that are not valid shell variable names.
1.15      bertrand  914:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                    915:       as_fn_error "invalid feature name: $ac_useropt"
                    916:     ac_useropt_orig=$ac_useropt
                    917:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    918:     case $ac_user_opts in
                    919:       *"
                    920: "enable_$ac_useropt"
                    921: "*) ;;
                    922:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    923:     ac_unrecognized_sep=', ';;
                    924:     esac
                    925:     eval enable_$ac_useropt=no ;;
1.1       bertrand  926: 
                    927:   -docdir | --docdir | --docdi | --doc | --do)
                    928:     ac_prev=docdir ;;
                    929:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    930:     docdir=$ac_optarg ;;
                    931: 
                    932:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    933:     ac_prev=dvidir ;;
                    934:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    935:     dvidir=$ac_optarg ;;
                    936: 
                    937:   -enable-* | --enable-*)
1.15      bertrand  938:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  939:     # Reject names that are not valid shell variable names.
1.15      bertrand  940:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                    941:       as_fn_error "invalid feature name: $ac_useropt"
                    942:     ac_useropt_orig=$ac_useropt
                    943:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    944:     case $ac_user_opts in
                    945:       *"
                    946: "enable_$ac_useropt"
                    947: "*) ;;
                    948:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    949:     ac_unrecognized_sep=', ';;
                    950:     esac
                    951:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  952: 
                    953:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    954:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    955:   | --exec | --exe | --ex)
                    956:     ac_prev=exec_prefix ;;
                    957:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    958:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    959:   | --exec=* | --exe=* | --ex=*)
                    960:     exec_prefix=$ac_optarg ;;
                    961: 
                    962:   -gas | --gas | --ga | --g)
                    963:     # Obsolete; use --with-gas.
                    964:     with_gas=yes ;;
                    965: 
                    966:   -help | --help | --hel | --he | -h)
                    967:     ac_init_help=long ;;
                    968:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    969:     ac_init_help=recursive ;;
                    970:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    971:     ac_init_help=short ;;
                    972: 
                    973:   -host | --host | --hos | --ho)
                    974:     ac_prev=host_alias ;;
                    975:   -host=* | --host=* | --hos=* | --ho=*)
                    976:     host_alias=$ac_optarg ;;
                    977: 
                    978:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                    979:     ac_prev=htmldir ;;
                    980:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                    981:   | --ht=*)
                    982:     htmldir=$ac_optarg ;;
                    983: 
                    984:   -includedir | --includedir | --includedi | --included | --include \
                    985:   | --includ | --inclu | --incl | --inc)
                    986:     ac_prev=includedir ;;
                    987:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    988:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    989:     includedir=$ac_optarg ;;
                    990: 
                    991:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    992:     ac_prev=infodir ;;
                    993:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    994:     infodir=$ac_optarg ;;
                    995: 
                    996:   -libdir | --libdir | --libdi | --libd)
                    997:     ac_prev=libdir ;;
                    998:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    999:     libdir=$ac_optarg ;;
                   1000: 
                   1001:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1002:   | --libexe | --libex | --libe)
                   1003:     ac_prev=libexecdir ;;
                   1004:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1005:   | --libexe=* | --libex=* | --libe=*)
                   1006:     libexecdir=$ac_optarg ;;
                   1007: 
                   1008:   -localedir | --localedir | --localedi | --localed | --locale)
                   1009:     ac_prev=localedir ;;
                   1010:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1011:     localedir=$ac_optarg ;;
                   1012: 
                   1013:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1014:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1015:     ac_prev=localstatedir ;;
                   1016:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1017:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1018:     localstatedir=$ac_optarg ;;
                   1019: 
                   1020:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1021:     ac_prev=mandir ;;
                   1022:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1023:     mandir=$ac_optarg ;;
                   1024: 
                   1025:   -nfp | --nfp | --nf)
                   1026:     # Obsolete; use --without-fp.
                   1027:     with_fp=no ;;
                   1028: 
                   1029:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1030:   | --no-cr | --no-c | -n)
                   1031:     no_create=yes ;;
                   1032: 
                   1033:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1034:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1035:     no_recursion=yes ;;
                   1036: 
                   1037:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1038:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1039:   | --oldin | --oldi | --old | --ol | --o)
                   1040:     ac_prev=oldincludedir ;;
                   1041:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1042:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1043:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1044:     oldincludedir=$ac_optarg ;;
                   1045: 
                   1046:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1047:     ac_prev=prefix ;;
                   1048:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1049:     prefix=$ac_optarg ;;
                   1050: 
                   1051:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1052:   | --program-pre | --program-pr | --program-p)
                   1053:     ac_prev=program_prefix ;;
                   1054:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1055:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1056:     program_prefix=$ac_optarg ;;
                   1057: 
                   1058:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1059:   | --program-suf | --program-su | --program-s)
                   1060:     ac_prev=program_suffix ;;
                   1061:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1062:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1063:     program_suffix=$ac_optarg ;;
                   1064: 
                   1065:   -program-transform-name | --program-transform-name \
                   1066:   | --program-transform-nam | --program-transform-na \
                   1067:   | --program-transform-n | --program-transform- \
                   1068:   | --program-transform | --program-transfor \
                   1069:   | --program-transfo | --program-transf \
                   1070:   | --program-trans | --program-tran \
                   1071:   | --progr-tra | --program-tr | --program-t)
                   1072:     ac_prev=program_transform_name ;;
                   1073:   -program-transform-name=* | --program-transform-name=* \
                   1074:   | --program-transform-nam=* | --program-transform-na=* \
                   1075:   | --program-transform-n=* | --program-transform-=* \
                   1076:   | --program-transform=* | --program-transfor=* \
                   1077:   | --program-transfo=* | --program-transf=* \
                   1078:   | --program-trans=* | --program-tran=* \
                   1079:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1080:     program_transform_name=$ac_optarg ;;
                   1081: 
                   1082:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1083:     ac_prev=pdfdir ;;
                   1084:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1085:     pdfdir=$ac_optarg ;;
                   1086: 
                   1087:   -psdir | --psdir | --psdi | --psd | --ps)
                   1088:     ac_prev=psdir ;;
                   1089:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1090:     psdir=$ac_optarg ;;
                   1091: 
                   1092:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1093:   | -silent | --silent | --silen | --sile | --sil)
                   1094:     silent=yes ;;
                   1095: 
                   1096:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1097:     ac_prev=sbindir ;;
                   1098:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1099:   | --sbi=* | --sb=*)
                   1100:     sbindir=$ac_optarg ;;
                   1101: 
                   1102:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1103:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1104:   | --sharedst | --shareds | --shared | --share | --shar \
                   1105:   | --sha | --sh)
                   1106:     ac_prev=sharedstatedir ;;
                   1107:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1108:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1109:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1110:   | --sha=* | --sh=*)
                   1111:     sharedstatedir=$ac_optarg ;;
                   1112: 
                   1113:   -site | --site | --sit)
                   1114:     ac_prev=site ;;
                   1115:   -site=* | --site=* | --sit=*)
                   1116:     site=$ac_optarg ;;
                   1117: 
                   1118:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1119:     ac_prev=srcdir ;;
                   1120:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1121:     srcdir=$ac_optarg ;;
                   1122: 
                   1123:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1124:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1125:     ac_prev=sysconfdir ;;
                   1126:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1127:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1128:     sysconfdir=$ac_optarg ;;
                   1129: 
                   1130:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1131:     ac_prev=target_alias ;;
                   1132:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1133:     target_alias=$ac_optarg ;;
                   1134: 
                   1135:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1136:     verbose=yes ;;
                   1137: 
                   1138:   -version | --version | --versio | --versi | --vers | -V)
                   1139:     ac_init_version=: ;;
                   1140: 
                   1141:   -with-* | --with-*)
1.15      bertrand 1142:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1143:     # Reject names that are not valid shell variable names.
1.15      bertrand 1144:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1145:       as_fn_error "invalid package name: $ac_useropt"
                   1146:     ac_useropt_orig=$ac_useropt
                   1147:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1148:     case $ac_user_opts in
                   1149:       *"
                   1150: "with_$ac_useropt"
                   1151: "*) ;;
                   1152:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1153:     ac_unrecognized_sep=', ';;
                   1154:     esac
                   1155:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1156: 
                   1157:   -without-* | --without-*)
1.15      bertrand 1158:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1159:     # Reject names that are not valid shell variable names.
1.15      bertrand 1160:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1161:       as_fn_error "invalid package name: $ac_useropt"
                   1162:     ac_useropt_orig=$ac_useropt
                   1163:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1164:     case $ac_user_opts in
                   1165:       *"
                   1166: "with_$ac_useropt"
                   1167: "*) ;;
                   1168:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1169:     ac_unrecognized_sep=', ';;
                   1170:     esac
                   1171:     eval with_$ac_useropt=no ;;
1.1       bertrand 1172: 
                   1173:   --x)
                   1174:     # Obsolete; use --with-x.
                   1175:     with_x=yes ;;
                   1176: 
                   1177:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1178:   | --x-incl | --x-inc | --x-in | --x-i)
                   1179:     ac_prev=x_includes ;;
                   1180:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1181:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1182:     x_includes=$ac_optarg ;;
                   1183: 
                   1184:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1185:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1186:     ac_prev=x_libraries ;;
                   1187:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1188:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1189:     x_libraries=$ac_optarg ;;
                   1190: 
1.15      bertrand 1191:   -*) as_fn_error "unrecognized option: \`$ac_option'
                   1192: Try \`$0 --help' for more information."
1.1       bertrand 1193:     ;;
                   1194: 
                   1195:   *=*)
                   1196:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1197:     # Reject names that are not valid shell variable names.
1.15      bertrand 1198:     case $ac_envvar in #(
                   1199:       '' | [0-9]* | *[!_$as_cr_alnum]* )
                   1200:       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
                   1201:     esac
1.1       bertrand 1202:     eval $ac_envvar=\$ac_optarg
                   1203:     export $ac_envvar ;;
                   1204: 
                   1205:   *)
                   1206:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1207:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1208:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1209:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1       bertrand 1210:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
                   1211:     ;;
                   1212: 
                   1213:   esac
                   1214: done
                   1215: 
                   1216: if test -n "$ac_prev"; then
                   1217:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.15      bertrand 1218:   as_fn_error "missing argument to $ac_option"
                   1219: fi
                   1220: 
                   1221: if test -n "$ac_unrecognized_opts"; then
                   1222:   case $enable_option_checking in
                   1223:     no) ;;
                   1224:     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
                   1225:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1226:   esac
1.1       bertrand 1227: fi
                   1228: 
1.15      bertrand 1229: # Check all directory arguments for consistency.
1.1       bertrand 1230: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1231:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1232:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1233:        libdir localedir mandir
                   1234: do
                   1235:   eval ac_val=\$$ac_var
1.15      bertrand 1236:   # Remove trailing slashes.
                   1237:   case $ac_val in
                   1238:     */ )
                   1239:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1240:       eval $ac_var=\$ac_val;;
                   1241:   esac
                   1242:   # Be sure to have absolute directory names.
1.1       bertrand 1243:   case $ac_val in
                   1244:     [\\/$]* | ?:[\\/]* )  continue;;
                   1245:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1246:   esac
1.15      bertrand 1247:   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1248: done
                   1249: 
                   1250: # There might be people who depend on the old broken behavior: `$host'
                   1251: # used to hold the argument of --host etc.
                   1252: # FIXME: To remove some day.
                   1253: build=$build_alias
                   1254: host=$host_alias
                   1255: target=$target_alias
                   1256: 
                   1257: # FIXME: To remove some day.
                   1258: if test "x$host_alias" != x; then
                   1259:   if test "x$build_alias" = x; then
                   1260:     cross_compiling=maybe
1.15      bertrand 1261:     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1.1       bertrand 1262:     If a cross compiler is detected then cross compile mode will be used." >&2
                   1263:   elif test "x$build_alias" != "x$host_alias"; then
                   1264:     cross_compiling=yes
                   1265:   fi
                   1266: fi
                   1267: 
                   1268: ac_tool_prefix=
                   1269: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1270: 
                   1271: test "$silent" = yes && exec 6>/dev/null
                   1272: 
                   1273: 
                   1274: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1275: ac_ls_di=`ls -di .` &&
                   1276: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.15      bertrand 1277:   as_fn_error "working directory cannot be determined"
1.1       bertrand 1278: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.15      bertrand 1279:   as_fn_error "pwd does not report name of working directory"
1.1       bertrand 1280: 
                   1281: 
                   1282: # Find the source files, if location was not specified.
                   1283: if test -z "$srcdir"; then
                   1284:   ac_srcdir_defaulted=yes
                   1285:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1286:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1287: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1288:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1289:     X"$as_myself" : 'X\(//\)$' \| \
                   1290:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1291: $as_echo X"$as_myself" |
1.1       bertrand 1292:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1293:        s//\1/
                   1294:        q
                   1295:      }
                   1296:      /^X\(\/\/\)[^/].*/{
                   1297:        s//\1/
                   1298:        q
                   1299:      }
                   1300:      /^X\(\/\/\)$/{
                   1301:        s//\1/
                   1302:        q
                   1303:      }
                   1304:      /^X\(\/\).*/{
                   1305:        s//\1/
                   1306:        q
                   1307:      }
                   1308:      s/.*/./; q'`
                   1309:   srcdir=$ac_confdir
                   1310:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1311:     srcdir=..
                   1312:   fi
                   1313: else
                   1314:   ac_srcdir_defaulted=no
                   1315: fi
                   1316: if test ! -r "$srcdir/$ac_unique_file"; then
                   1317:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.15      bertrand 1318:   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1319: fi
                   1320: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1321: ac_abs_confdir=`(
1.15      bertrand 1322:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1.1       bertrand 1323:    pwd)`
                   1324: # When building in place, set srcdir=.
                   1325: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1326:   srcdir=.
                   1327: fi
                   1328: # Remove unnecessary trailing slashes from srcdir.
                   1329: # Double slashes in file names in object file debugging info
                   1330: # mess up M-x gdb in Emacs.
                   1331: case $srcdir in
                   1332: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1333: esac
                   1334: for ac_var in $ac_precious_vars; do
                   1335:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1336:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1337:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1338:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1339: done
                   1340: 
                   1341: #
                   1342: # Report the --help message.
                   1343: #
                   1344: if test "$ac_init_help" = "long"; then
                   1345:   # Omit some internal or obsolete options to make the list less imposing.
                   1346:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1347:   cat <<_ACEOF
1.29      bertrand 1348: \`configure' configures rpl 4.0.18 to adapt to many kinds of systems.
1.1       bertrand 1349: 
                   1350: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1351: 
                   1352: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1353: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1354: 
                   1355: Defaults for the options are specified in brackets.
                   1356: 
                   1357: Configuration:
                   1358:   -h, --help              display this help and exit
                   1359:       --help=short        display options specific to this package
                   1360:       --help=recursive    display the short help of all the included packages
                   1361:   -V, --version           display version information and exit
                   1362:   -q, --quiet, --silent   do not print \`checking...' messages
                   1363:       --cache-file=FILE   cache test results in FILE [disabled]
                   1364:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1365:   -n, --no-create         do not create output files
                   1366:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1367: 
                   1368: Installation directories:
                   1369:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1370:                           [$ac_default_prefix]
1.1       bertrand 1371:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1372:                           [PREFIX]
1.1       bertrand 1373: 
                   1374: By default, \`make install' will install all the files in
                   1375: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1376: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1377: for instance \`--prefix=\$HOME'.
                   1378: 
                   1379: For better control, use the options below.
                   1380: 
                   1381: Fine tuning of the installation directories:
1.15      bertrand 1382:   --bindir=DIR            user executables [EPREFIX/bin]
                   1383:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1384:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1385:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1386:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1387:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1388:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1389:   --includedir=DIR        C header files [PREFIX/include]
                   1390:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1391:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1392:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1393:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1394:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1395:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1396:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1397:   --htmldir=DIR           html documentation [DOCDIR]
                   1398:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1399:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1400:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1401: _ACEOF
                   1402: 
                   1403:   cat <<\_ACEOF
                   1404: 
                   1405: Program names:
                   1406:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1407:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1408:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1409: 
                   1410: X features:
                   1411:   --x-includes=DIR    X include files are in DIR
                   1412:   --x-libraries=DIR   X library files are in DIR
                   1413: 
                   1414: System types:
                   1415:   --build=BUILD     configure for building on BUILD [guessed]
                   1416:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1417:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1418: _ACEOF
                   1419: fi
                   1420: 
                   1421: if test -n "$ac_init_help"; then
                   1422:   case $ac_init_help in
1.29      bertrand 1423:      short | recursive ) echo "Configuration of rpl 4.0.18:";;
1.1       bertrand 1424:    esac
                   1425:   cat <<\_ACEOF
                   1426: 
                   1427: Optional Features:
1.15      bertrand 1428:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1429:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1430:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1431:   --disable-dependency-tracking  speeds up one-time build
                   1432:   --enable-dependency-tracking   do not reject slow dependency extractors
                   1433:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.30      bertrand 1434:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1435:   --enable-final-encoding force final encoding [default=guessed]
                   1436:   --enable-tex            provide the TeX support [default=guessed]
                   1437:   --enable-vim            provide the vim support [default=guessed]
                   1438:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1439:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1440:   --enable-motif          provide the Motif support [default=guessed]
                   1441:   --enable-experimental   enable experimental code [default=no]
                   1442:   --enable-debug          enable debug code [default=no]
                   1443:   --enable-profile        enable profile code [default=no]
                   1444:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1445: 
                   1446: Optional Packages:
                   1447:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1448:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1449:   --with-x                use the X Window System
                   1450:   --with-mysql=PATH         specify directory for installed mysql
                   1451:   --with-postgresql=PATH    specify directory for installed postgresql
1.15      bertrand 1452:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1453: 
                   1454: Some influential environment variables:
                   1455:   CC          C compiler command
                   1456:   CFLAGS      C compiler flags
                   1457:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1458:               nonstandard directory <lib dir>
                   1459:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1460:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1461:               you have headers in a nonstandard directory <include dir>
                   1462:   CXX         C++ compiler command
                   1463:   CXXFLAGS    C++ compiler flags
                   1464:   F77         Fortran 77 compiler command
                   1465:   FFLAGS      Fortran 77 compiler flags
                   1466:   FC          Fortran compiler command
                   1467:   FCFLAGS     Fortran compiler flags
                   1468:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1469:   CPP         C preprocessor
                   1470: 
                   1471: Use these variables to override the choices made by `configure' or to help
                   1472: it to find libraries and programs with nonstandard names/locations.
                   1473: 
1.15      bertrand 1474: Report bugs to the package provider.
1.1       bertrand 1475: _ACEOF
                   1476: ac_status=$?
                   1477: fi
                   1478: 
                   1479: if test "$ac_init_help" = "recursive"; then
                   1480:   # If there are subdirs, report their specific --help.
                   1481:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1482:     test -d "$ac_dir" ||
                   1483:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1484:       continue
1.1       bertrand 1485:     ac_builddir=.
                   1486: 
                   1487: case "$ac_dir" in
                   1488: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1489: *)
1.15      bertrand 1490:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1491:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1492:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1493:   case $ac_top_builddir_sub in
                   1494:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1495:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1496:   esac ;;
                   1497: esac
                   1498: ac_abs_top_builddir=$ac_pwd
                   1499: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1500: # for backward compatibility:
                   1501: ac_top_builddir=$ac_top_build_prefix
                   1502: 
                   1503: case $srcdir in
                   1504:   .)  # We are building in place.
                   1505:     ac_srcdir=.
                   1506:     ac_top_srcdir=$ac_top_builddir_sub
                   1507:     ac_abs_top_srcdir=$ac_pwd ;;
                   1508:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1509:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1510:     ac_top_srcdir=$srcdir
                   1511:     ac_abs_top_srcdir=$srcdir ;;
                   1512:   *) # Relative name.
                   1513:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1514:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1515:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1516: esac
                   1517: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1518: 
                   1519:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1520:     # Check for guested configure.
                   1521:     if test -f "$ac_srcdir/configure.gnu"; then
                   1522:       echo &&
                   1523:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1524:     elif test -f "$ac_srcdir/configure"; then
                   1525:       echo &&
                   1526:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1527:     else
1.15      bertrand 1528:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1529:     fi || ac_status=$?
                   1530:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1531:   done
                   1532: fi
                   1533: 
                   1534: test -n "$ac_init_help" && exit $ac_status
                   1535: if $ac_init_version; then
                   1536:   cat <<\_ACEOF
1.29      bertrand 1537: rpl configure 4.0.18
1.15      bertrand 1538: generated by GNU Autoconf 2.65
1.1       bertrand 1539: 
1.15      bertrand 1540: Copyright (C) 2009 Free Software Foundation, Inc.
1.1       bertrand 1541: This configure script is free software; the Free Software Foundation
                   1542: gives unlimited permission to copy, distribute and modify it.
                   1543: _ACEOF
                   1544:   exit
                   1545: fi
                   1546: 
1.15      bertrand 1547: ## ------------------------ ##
                   1548: ## Autoconf initialization. ##
                   1549: ## ------------------------ ##
                   1550: 
                   1551: # ac_fn_c_try_compile LINENO
                   1552: # --------------------------
                   1553: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1554: ac_fn_c_try_compile ()
                   1555: {
                   1556:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1557:   rm -f conftest.$ac_objext
                   1558:   if { { ac_try="$ac_compile"
                   1559: case "(($ac_try" in
                   1560:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1561:   *) ac_try_echo=$ac_try;;
                   1562: esac
                   1563: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1564: $as_echo "$ac_try_echo"; } >&5
                   1565:   (eval "$ac_compile") 2>conftest.err
                   1566:   ac_status=$?
                   1567:   if test -s conftest.err; then
                   1568:     grep -v '^ *+' conftest.err >conftest.er1
                   1569:     cat conftest.er1 >&5
                   1570:     mv -f conftest.er1 conftest.err
                   1571:   fi
                   1572:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1573:   test $ac_status = 0; } && {
                   1574:     test -z "$ac_c_werror_flag" ||
                   1575:     test ! -s conftest.err
                   1576:        } && test -s conftest.$ac_objext; then :
                   1577:   ac_retval=0
                   1578: else
                   1579:   $as_echo "$as_me: failed program was:" >&5
                   1580: sed 's/^/| /' conftest.$ac_ext >&5
                   1581: 
                   1582:    ac_retval=1
                   1583: fi
                   1584:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1585:   as_fn_set_status $ac_retval
1.1       bertrand 1586: 
1.15      bertrand 1587: } # ac_fn_c_try_compile
1.1       bertrand 1588: 
1.15      bertrand 1589: # ac_fn_cxx_try_compile LINENO
                   1590: # ----------------------------
                   1591: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1592: ac_fn_cxx_try_compile ()
1.1       bertrand 1593: {
1.15      bertrand 1594:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1595:   rm -f conftest.$ac_objext
                   1596:   if { { ac_try="$ac_compile"
                   1597: case "(($ac_try" in
                   1598:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1599:   *) ac_try_echo=$ac_try;;
                   1600: esac
                   1601: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1602: $as_echo "$ac_try_echo"; } >&5
                   1603:   (eval "$ac_compile") 2>conftest.err
                   1604:   ac_status=$?
                   1605:   if test -s conftest.err; then
                   1606:     grep -v '^ *+' conftest.err >conftest.er1
                   1607:     cat conftest.er1 >&5
                   1608:     mv -f conftest.er1 conftest.err
                   1609:   fi
                   1610:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1611:   test $ac_status = 0; } && {
                   1612:     test -z "$ac_cxx_werror_flag" ||
                   1613:     test ! -s conftest.err
                   1614:        } && test -s conftest.$ac_objext; then :
                   1615:   ac_retval=0
                   1616: else
                   1617:   $as_echo "$as_me: failed program was:" >&5
                   1618: sed 's/^/| /' conftest.$ac_ext >&5
                   1619: 
                   1620:    ac_retval=1
                   1621: fi
                   1622:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1623:   as_fn_set_status $ac_retval
1.1       bertrand 1624: 
1.15      bertrand 1625: } # ac_fn_cxx_try_compile
1.1       bertrand 1626: 
1.15      bertrand 1627: # ac_fn_f77_try_compile LINENO
                   1628: # ----------------------------
                   1629: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1630: ac_fn_f77_try_compile ()
                   1631: {
                   1632:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1633:   rm -f conftest.$ac_objext
                   1634:   if { { ac_try="$ac_compile"
                   1635: case "(($ac_try" in
                   1636:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1637:   *) ac_try_echo=$ac_try;;
                   1638: esac
                   1639: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1640: $as_echo "$ac_try_echo"; } >&5
                   1641:   (eval "$ac_compile") 2>conftest.err
                   1642:   ac_status=$?
                   1643:   if test -s conftest.err; then
                   1644:     grep -v '^ *+' conftest.err >conftest.er1
                   1645:     cat conftest.er1 >&5
                   1646:     mv -f conftest.er1 conftest.err
                   1647:   fi
                   1648:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1649:   test $ac_status = 0; } && {
                   1650:     test -z "$ac_f77_werror_flag" ||
                   1651:     test ! -s conftest.err
                   1652:        } && test -s conftest.$ac_objext; then :
                   1653:   ac_retval=0
                   1654: else
                   1655:   $as_echo "$as_me: failed program was:" >&5
                   1656: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1657: 
1.15      bertrand 1658:    ac_retval=1
                   1659: fi
                   1660:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1661:   as_fn_set_status $ac_retval
1.1       bertrand 1662: 
1.15      bertrand 1663: } # ac_fn_f77_try_compile
1.1       bertrand 1664: 
1.15      bertrand 1665: # ac_fn_fc_try_compile LINENO
                   1666: # ---------------------------
                   1667: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1668: ac_fn_fc_try_compile ()
                   1669: {
                   1670:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1671:   rm -f conftest.$ac_objext
                   1672:   if { { ac_try="$ac_compile"
                   1673: case "(($ac_try" in
                   1674:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1675:   *) ac_try_echo=$ac_try;;
                   1676: esac
                   1677: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1678: $as_echo "$ac_try_echo"; } >&5
                   1679:   (eval "$ac_compile") 2>conftest.err
                   1680:   ac_status=$?
                   1681:   if test -s conftest.err; then
                   1682:     grep -v '^ *+' conftest.err >conftest.er1
                   1683:     cat conftest.er1 >&5
                   1684:     mv -f conftest.er1 conftest.err
                   1685:   fi
                   1686:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1687:   test $ac_status = 0; } && {
                   1688:     test -z "$ac_fc_werror_flag" ||
                   1689:     test ! -s conftest.err
                   1690:        } && test -s conftest.$ac_objext; then :
                   1691:   ac_retval=0
                   1692: else
                   1693:   $as_echo "$as_me: failed program was:" >&5
                   1694: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1695: 
1.15      bertrand 1696:    ac_retval=1
                   1697: fi
                   1698:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1699:   as_fn_set_status $ac_retval
1.1       bertrand 1700: 
1.15      bertrand 1701: } # ac_fn_fc_try_compile
1.1       bertrand 1702: 
1.15      bertrand 1703: # ac_fn_c_try_cpp LINENO
                   1704: # ----------------------
                   1705: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1706: ac_fn_c_try_cpp ()
                   1707: {
                   1708:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1709:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1710: case "(($ac_try" in
                   1711:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1712:   *) ac_try_echo=$ac_try;;
                   1713: esac
                   1714: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1715: $as_echo "$ac_try_echo"; } >&5
                   1716:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1717:   ac_status=$?
                   1718:   if test -s conftest.err; then
                   1719:     grep -v '^ *+' conftest.err >conftest.er1
                   1720:     cat conftest.er1 >&5
                   1721:     mv -f conftest.er1 conftest.err
                   1722:   fi
                   1723:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1724:   test $ac_status = 0; } >/dev/null && {
                   1725:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1726:     test ! -s conftest.err
                   1727:        }; then :
                   1728:   ac_retval=0
                   1729: else
                   1730:   $as_echo "$as_me: failed program was:" >&5
                   1731: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1732: 
1.15      bertrand 1733:     ac_retval=1
                   1734: fi
                   1735:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1736:   as_fn_set_status $ac_retval
1.1       bertrand 1737: 
1.15      bertrand 1738: } # ac_fn_c_try_cpp
1.1       bertrand 1739: 
1.15      bertrand 1740: # ac_fn_c_try_link LINENO
                   1741: # -----------------------
                   1742: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1743: ac_fn_c_try_link ()
                   1744: {
                   1745:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1746:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1747:   if { { ac_try="$ac_link"
                   1748: case "(($ac_try" in
                   1749:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1750:   *) ac_try_echo=$ac_try;;
                   1751: esac
                   1752: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1753: $as_echo "$ac_try_echo"; } >&5
                   1754:   (eval "$ac_link") 2>conftest.err
                   1755:   ac_status=$?
                   1756:   if test -s conftest.err; then
                   1757:     grep -v '^ *+' conftest.err >conftest.er1
                   1758:     cat conftest.er1 >&5
                   1759:     mv -f conftest.er1 conftest.err
                   1760:   fi
                   1761:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1762:   test $ac_status = 0; } && {
                   1763:     test -z "$ac_c_werror_flag" ||
                   1764:     test ! -s conftest.err
                   1765:        } && test -s conftest$ac_exeext && {
                   1766:     test "$cross_compiling" = yes ||
                   1767:     $as_test_x conftest$ac_exeext
                   1768:        }; then :
                   1769:   ac_retval=0
                   1770: else
                   1771:   $as_echo "$as_me: failed program was:" >&5
                   1772: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1773: 
1.15      bertrand 1774:    ac_retval=1
                   1775: fi
                   1776:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1777:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1778:   # interfere with the next link command; also delete a directory that is
                   1779:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1780:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1781:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1782:   as_fn_set_status $ac_retval
1.1       bertrand 1783: 
1.15      bertrand 1784: } # ac_fn_c_try_link
1.1       bertrand 1785: 
1.15      bertrand 1786: # ac_fn_c_check_func LINENO FUNC VAR
                   1787: # ----------------------------------
                   1788: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1789: ac_fn_c_check_func ()
                   1790: {
                   1791:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1792:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1793: $as_echo_n "checking for $2... " >&6; }
                   1794: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   1795:   $as_echo_n "(cached) " >&6
                   1796: else
                   1797:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1798: /* end confdefs.h.  */
                   1799: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1800:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1801: #define $2 innocuous_$2
1.1       bertrand 1802: 
1.15      bertrand 1803: /* System header to define __stub macros and hopefully few prototypes,
                   1804:     which can conflict with char $2 (); below.
                   1805:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1806:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1807: 
1.15      bertrand 1808: #ifdef __STDC__
                   1809: # include <limits.h>
                   1810: #else
                   1811: # include <assert.h>
                   1812: #endif
1.1       bertrand 1813: 
1.15      bertrand 1814: #undef $2
1.1       bertrand 1815: 
1.15      bertrand 1816: /* Override any GCC internal prototype to avoid an error.
                   1817:    Use char because int might match the return type of a GCC
                   1818:    builtin and then its argument prototype would still apply.  */
                   1819: #ifdef __cplusplus
                   1820: extern "C"
                   1821: #endif
                   1822: char $2 ();
                   1823: /* The GNU C library defines this for functions which it implements
                   1824:     to always fail with ENOSYS.  Some functions are actually named
                   1825:     something starting with __ and the normal name is an alias.  */
                   1826: #if defined __stub_$2 || defined __stub___$2
                   1827: choke me
                   1828: #endif
1.1       bertrand 1829: 
1.15      bertrand 1830: int
                   1831: main ()
                   1832: {
                   1833: return $2 ();
                   1834:   ;
                   1835:   return 0;
                   1836: }
1.1       bertrand 1837: _ACEOF
1.15      bertrand 1838: if ac_fn_c_try_link "$LINENO"; then :
                   1839:   eval "$3=yes"
                   1840: else
                   1841:   eval "$3=no"
                   1842: fi
                   1843: rm -f core conftest.err conftest.$ac_objext \
                   1844:     conftest$ac_exeext conftest.$ac_ext
                   1845: fi
                   1846: eval ac_res=\$$3
                   1847:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1848: $as_echo "$ac_res" >&6; }
                   1849:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 1850: 
1.15      bertrand 1851: } # ac_fn_c_check_func
1.1       bertrand 1852: 
1.33      bertrand 1853: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1854: # -------------------------------------------
                   1855: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1856: # variable VAR accordingly.
                   1857: ac_fn_c_check_type ()
                   1858: {
                   1859:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1860:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1861: $as_echo_n "checking for $2... " >&6; }
                   1862: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   1863:   $as_echo_n "(cached) " >&6
                   1864: else
                   1865:   eval "$3=no"
                   1866:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1867: /* end confdefs.h.  */
                   1868: $4
                   1869: int
                   1870: main ()
                   1871: {
                   1872: if (sizeof ($2))
                   1873:     return 0;
                   1874:   ;
                   1875:   return 0;
                   1876: }
                   1877: _ACEOF
                   1878: if ac_fn_c_try_compile "$LINENO"; then :
                   1879:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1880: /* end confdefs.h.  */
                   1881: $4
                   1882: int
                   1883: main ()
                   1884: {
                   1885: if (sizeof (($2)))
                   1886:        return 0;
                   1887:   ;
                   1888:   return 0;
                   1889: }
                   1890: _ACEOF
                   1891: if ac_fn_c_try_compile "$LINENO"; then :
                   1892: 
                   1893: else
                   1894:   eval "$3=yes"
                   1895: fi
                   1896: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1897: fi
                   1898: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1899: fi
                   1900: eval ac_res=\$$3
                   1901:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1902: $as_echo "$ac_res" >&6; }
                   1903:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1904: 
                   1905: } # ac_fn_c_check_type
                   1906: 
1.15      bertrand 1907: # ac_fn_c_try_run LINENO
                   1908: # ----------------------
                   1909: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1910: # that executables *can* be run.
                   1911: ac_fn_c_try_run ()
                   1912: {
                   1913:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1914:   if { { ac_try="$ac_link"
                   1915: case "(($ac_try" in
                   1916:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1917:   *) ac_try_echo=$ac_try;;
                   1918: esac
                   1919: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1920: $as_echo "$ac_try_echo"; } >&5
                   1921:   (eval "$ac_link") 2>&5
                   1922:   ac_status=$?
                   1923:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1924:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1925:   { { case "(($ac_try" in
                   1926:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1927:   *) ac_try_echo=$ac_try;;
                   1928: esac
                   1929: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1930: $as_echo "$ac_try_echo"; } >&5
                   1931:   (eval "$ac_try") 2>&5
                   1932:   ac_status=$?
                   1933:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1934:   test $ac_status = 0; }; }; then :
                   1935:   ac_retval=0
                   1936: else
                   1937:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1938:        $as_echo "$as_me: failed program was:" >&5
                   1939: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1940: 
1.15      bertrand 1941:        ac_retval=$ac_status
                   1942: fi
                   1943:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1944:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1945:   as_fn_set_status $ac_retval
1.1       bertrand 1946: 
1.15      bertrand 1947: } # ac_fn_c_try_run
1.1       bertrand 1948: 
1.15      bertrand 1949: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1950: # --------------------------------------------
                   1951: # Tries to find the compile-time value of EXPR in a program that includes
                   1952: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1953: # computed
                   1954: ac_fn_c_compute_int ()
                   1955: {
                   1956:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1957:   if test "$cross_compiling" = yes; then
                   1958:     # Depending upon the size, compute the lo and hi bounds.
                   1959: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1960: /* end confdefs.h.  */
                   1961: $4
                   1962: int
                   1963: main ()
                   1964: {
                   1965: static int test_array [1 - 2 * !(($2) >= 0)];
                   1966: test_array [0] = 0
1.1       bertrand 1967: 
1.15      bertrand 1968:   ;
                   1969:   return 0;
                   1970: }
1.1       bertrand 1971: _ACEOF
1.15      bertrand 1972: if ac_fn_c_try_compile "$LINENO"; then :
                   1973:   ac_lo=0 ac_mid=0
                   1974:   while :; do
                   1975:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1976: /* end confdefs.h.  */
                   1977: $4
                   1978: int
                   1979: main ()
                   1980: {
                   1981: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   1982: test_array [0] = 0
1.1       bertrand 1983: 
1.15      bertrand 1984:   ;
                   1985:   return 0;
                   1986: }
                   1987: _ACEOF
                   1988: if ac_fn_c_try_compile "$LINENO"; then :
                   1989:   ac_hi=$ac_mid; break
                   1990: else
                   1991:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   1992:            if test $ac_lo -le $ac_mid; then
                   1993:              ac_lo= ac_hi=
                   1994:              break
                   1995:            fi
                   1996:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   1997: fi
                   1998: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1999:   done
                   2000: else
                   2001:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2002: /* end confdefs.h.  */
                   2003: $4
                   2004: int
                   2005: main ()
                   2006: {
                   2007: static int test_array [1 - 2 * !(($2) < 0)];
                   2008: test_array [0] = 0
1.1       bertrand 2009: 
1.15      bertrand 2010:   ;
                   2011:   return 0;
                   2012: }
1.1       bertrand 2013: _ACEOF
1.15      bertrand 2014: if ac_fn_c_try_compile "$LINENO"; then :
                   2015:   ac_hi=-1 ac_mid=-1
                   2016:   while :; do
                   2017:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2018: /* end confdefs.h.  */
                   2019: $4
                   2020: int
                   2021: main ()
                   2022: {
                   2023: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2024: test_array [0] = 0
1.1       bertrand 2025: 
1.15      bertrand 2026:   ;
                   2027:   return 0;
                   2028: }
                   2029: _ACEOF
                   2030: if ac_fn_c_try_compile "$LINENO"; then :
                   2031:   ac_lo=$ac_mid; break
                   2032: else
                   2033:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2034:            if test $ac_mid -le $ac_hi; then
                   2035:              ac_lo= ac_hi=
                   2036:              break
                   2037:            fi
                   2038:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2039: fi
                   2040: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2041:   done
1.1       bertrand 2042: else
1.15      bertrand 2043:   ac_lo= ac_hi=
                   2044: fi
                   2045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2046: fi
1.15      bertrand 2047: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2048: # Binary search between lo and hi bounds.
                   2049: while test "x$ac_lo" != "x$ac_hi"; do
                   2050:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2051:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2052: /* end confdefs.h.  */
                   2053: $4
                   2054: int
                   2055: main ()
                   2056: {
                   2057: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2058: test_array [0] = 0
1.1       bertrand 2059: 
1.15      bertrand 2060:   ;
                   2061:   return 0;
                   2062: }
                   2063: _ACEOF
                   2064: if ac_fn_c_try_compile "$LINENO"; then :
                   2065:   ac_hi=$ac_mid
1.1       bertrand 2066: else
1.15      bertrand 2067:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2068: fi
1.15      bertrand 2069: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2070: done
                   2071: case $ac_lo in #((
                   2072: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2073: '') ac_retval=1 ;;
                   2074: esac
                   2075:   else
                   2076:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2077: /* end confdefs.h.  */
                   2078: $4
                   2079: static long int longval () { return $2; }
                   2080: static unsigned long int ulongval () { return $2; }
                   2081: #include <stdio.h>
                   2082: #include <stdlib.h>
                   2083: int
                   2084: main ()
                   2085: {
1.1       bertrand 2086: 
1.15      bertrand 2087:   FILE *f = fopen ("conftest.val", "w");
                   2088:   if (! f)
                   2089:     return 1;
                   2090:   if (($2) < 0)
                   2091:     {
                   2092:       long int i = longval ();
                   2093:       if (i != ($2))
                   2094:    return 1;
                   2095:       fprintf (f, "%ld", i);
                   2096:     }
                   2097:   else
                   2098:     {
                   2099:       unsigned long int i = ulongval ();
                   2100:       if (i != ($2))
                   2101:    return 1;
                   2102:       fprintf (f, "%lu", i);
                   2103:     }
                   2104:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2105:      on some platforms.  */
                   2106:   return ferror (f) || fclose (f) != 0;
                   2107: 
                   2108:   ;
                   2109:   return 0;
                   2110: }
                   2111: _ACEOF
                   2112: if ac_fn_c_try_run "$LINENO"; then :
                   2113:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2114: else
                   2115:   ac_retval=1
1.14      bertrand 2116: fi
1.15      bertrand 2117: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2118:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2119: rm -f conftest.val
1.14      bertrand 2120: 
1.15      bertrand 2121:   fi
                   2122:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   2123:   as_fn_set_status $ac_retval
1.14      bertrand 2124: 
1.15      bertrand 2125: } # ac_fn_c_compute_int
1.1       bertrand 2126: 
1.15      bertrand 2127: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2128: # -------------------------------------------------------
                   2129: # Tests whether HEADER exists and can be compiled using the include files in
                   2130: # INCLUDES, setting the cache variable VAR accordingly.
                   2131: ac_fn_c_check_header_compile ()
                   2132: {
                   2133:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2134:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2135: $as_echo_n "checking for $2... " >&6; }
                   2136: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2137:   $as_echo_n "(cached) " >&6
                   2138: else
                   2139:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2140: /* end confdefs.h.  */
                   2141: $4
                   2142: #include <$2>
                   2143: _ACEOF
                   2144: if ac_fn_c_try_compile "$LINENO"; then :
                   2145:   eval "$3=yes"
                   2146: else
                   2147:   eval "$3=no"
                   2148: fi
                   2149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2150: fi
                   2151: eval ac_res=\$$3
                   2152:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2153: $as_echo "$ac_res" >&6; }
                   2154:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2155: 
1.15      bertrand 2156: } # ac_fn_c_check_header_compile
1.1       bertrand 2157: 
1.15      bertrand 2158: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2159: # -------------------------------------------------------
                   2160: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2161: # the include files in INCLUDES and setting the cache variable VAR
                   2162: # accordingly.
                   2163: ac_fn_c_check_header_mongrel ()
                   2164: {
                   2165:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2166:   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2167:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2168: $as_echo_n "checking for $2... " >&6; }
                   2169: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2170:   $as_echo_n "(cached) " >&6
                   2171: fi
                   2172: eval ac_res=\$$3
                   2173:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2174: $as_echo "$ac_res" >&6; }
                   2175: else
                   2176:   # Is the header compilable?
                   2177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2178: $as_echo_n "checking $2 usability... " >&6; }
                   2179: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2180: /* end confdefs.h.  */
                   2181: $4
                   2182: #include <$2>
                   2183: _ACEOF
                   2184: if ac_fn_c_try_compile "$LINENO"; then :
                   2185:   ac_header_compiler=yes
                   2186: else
                   2187:   ac_header_compiler=no
                   2188: fi
                   2189: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2191: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2192: 
1.15      bertrand 2193: # Is the header present?
                   2194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2195: $as_echo_n "checking $2 presence... " >&6; }
                   2196: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2197: /* end confdefs.h.  */
                   2198: #include <$2>
                   2199: _ACEOF
                   2200: if ac_fn_c_try_cpp "$LINENO"; then :
                   2201:   ac_header_preproc=yes
                   2202: else
                   2203:   ac_header_preproc=no
                   2204: fi
                   2205: rm -f conftest.err conftest.$ac_ext
                   2206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2207: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2208: 
1.15      bertrand 2209: # So?  What about this header?
                   2210: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2211:   yes:no: )
                   2212:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2213: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2214:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2215: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2216:     ;;
                   2217:   no:yes:* )
                   2218:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2219: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2220:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2221: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2222:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2223: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2224:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2225: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2226:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2227: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2228:     ;;
                   2229: esac
                   2230:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2231: $as_echo_n "checking for $2... " >&6; }
                   2232: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
                   2233:   $as_echo_n "(cached) " >&6
                   2234: else
                   2235:   eval "$3=\$ac_header_compiler"
                   2236: fi
                   2237: eval ac_res=\$$3
                   2238:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2239: $as_echo "$ac_res" >&6; }
                   2240: fi
                   2241:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2242: 
1.15      bertrand 2243: } # ac_fn_c_check_header_mongrel
                   2244: cat >config.log <<_ACEOF
                   2245: This file contains any messages produced by compilers while
                   2246: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2247: 
1.29      bertrand 2248: It was created by rpl $as_me 4.0.18, which was
1.15      bertrand 2249: generated by GNU Autoconf 2.65.  Invocation command line was
1.1       bertrand 2250: 
1.15      bertrand 2251:   $ $0 $@
1.1       bertrand 2252: 
1.15      bertrand 2253: _ACEOF
                   2254: exec 5>>config.log
                   2255: {
                   2256: cat <<_ASUNAME
                   2257: ## --------- ##
                   2258: ## Platform. ##
                   2259: ## --------- ##
1.1       bertrand 2260: 
1.15      bertrand 2261: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2262: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2263: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2264: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2265: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2266: 
1.15      bertrand 2267: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2268: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2269: 
1.15      bertrand 2270: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2271: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2272: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2273: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2274: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2275: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2276: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2277: 
1.15      bertrand 2278: _ASUNAME
1.1       bertrand 2279: 
1.15      bertrand 2280: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2281: for as_dir in $PATH
                   2282: do
                   2283:   IFS=$as_save_IFS
                   2284:   test -z "$as_dir" && as_dir=.
                   2285:     $as_echo "PATH: $as_dir"
                   2286:   done
                   2287: IFS=$as_save_IFS
1.1       bertrand 2288: 
1.15      bertrand 2289: } >&5
1.1       bertrand 2290: 
1.15      bertrand 2291: cat >&5 <<_ACEOF
1.1       bertrand 2292: 
                   2293: 
1.15      bertrand 2294: ## ----------- ##
                   2295: ## Core tests. ##
                   2296: ## ----------- ##
1.1       bertrand 2297: 
1.15      bertrand 2298: _ACEOF
1.1       bertrand 2299: 
                   2300: 
1.15      bertrand 2301: # Keep a trace of the command line.
                   2302: # Strip out --no-create and --no-recursion so they do not pile up.
                   2303: # Strip out --silent because we don't want to record it for future runs.
                   2304: # Also quote any args containing shell meta-characters.
                   2305: # Make two passes to allow for proper duplicate-argument suppression.
                   2306: ac_configure_args=
                   2307: ac_configure_args0=
                   2308: ac_configure_args1=
                   2309: ac_must_keep_next=false
                   2310: for ac_pass in 1 2
                   2311: do
                   2312:   for ac_arg
                   2313:   do
                   2314:     case $ac_arg in
                   2315:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2316:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2317:     | -silent | --silent | --silen | --sile | --sil)
                   2318:       continue ;;
                   2319:     *\'*)
                   2320:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2321:     esac
                   2322:     case $ac_pass in
                   2323:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2324:     2)
                   2325:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2326:       if test $ac_must_keep_next = true; then
                   2327:    ac_must_keep_next=false # Got value, back to normal.
                   2328:       else
                   2329:    case $ac_arg in
                   2330:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2331:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2332:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2333:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2334:        case "$ac_configure_args0 " in
                   2335:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2336:        esac
                   2337:        ;;
                   2338:      -* ) ac_must_keep_next=true ;;
                   2339:    esac
                   2340:       fi
                   2341:       as_fn_append ac_configure_args " '$ac_arg'"
                   2342:       ;;
                   2343:     esac
                   2344:   done
                   2345: done
                   2346: { ac_configure_args0=; unset ac_configure_args0;}
                   2347: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2348: 
1.15      bertrand 2349: # When interrupted or exit'd, cleanup temporary files, and complete
                   2350: # config.log.  We remove comments because anyway the quotes in there
                   2351: # would cause problems or look ugly.
                   2352: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2353: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2354: trap 'exit_status=$?
                   2355:   # Save into config.log some information that might help in debugging.
                   2356:   {
                   2357:     echo
1.1       bertrand 2358: 
1.15      bertrand 2359:     cat <<\_ASBOX
                   2360: ## ---------------- ##
                   2361: ## Cache variables. ##
                   2362: ## ---------------- ##
                   2363: _ASBOX
                   2364:     echo
                   2365:     # The following way of writing the cache mishandles newlines in values,
                   2366: (
                   2367:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2368:     eval ac_val=\$$ac_var
                   2369:     case $ac_val in #(
                   2370:     *${as_nl}*)
                   2371:       case $ac_var in #(
                   2372:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2373: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2374:       esac
                   2375:       case $ac_var in #(
                   2376:       _ | IFS | as_nl) ;; #(
                   2377:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2378:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2379:       esac ;;
                   2380:     esac
                   2381:   done
                   2382:   (set) 2>&1 |
                   2383:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2384:     *${as_nl}ac_space=\ *)
                   2385:       sed -n \
                   2386:    "s/'\''/'\''\\\\'\'''\''/g;
                   2387:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2388:       ;; #(
                   2389:     *)
                   2390:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2391:       ;;
                   2392:     esac |
                   2393:     sort
                   2394: )
                   2395:     echo
1.1       bertrand 2396: 
1.15      bertrand 2397:     cat <<\_ASBOX
                   2398: ## ----------------- ##
                   2399: ## Output variables. ##
                   2400: ## ----------------- ##
                   2401: _ASBOX
                   2402:     echo
                   2403:     for ac_var in $ac_subst_vars
                   2404:     do
                   2405:       eval ac_val=\$$ac_var
                   2406:       case $ac_val in
                   2407:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2408:       esac
                   2409:       $as_echo "$ac_var='\''$ac_val'\''"
                   2410:     done | sort
                   2411:     echo
1.1       bertrand 2412: 
1.15      bertrand 2413:     if test -n "$ac_subst_files"; then
                   2414:       cat <<\_ASBOX
                   2415: ## ------------------- ##
                   2416: ## File substitutions. ##
                   2417: ## ------------------- ##
                   2418: _ASBOX
                   2419:       echo
                   2420:       for ac_var in $ac_subst_files
                   2421:       do
                   2422:    eval ac_val=\$$ac_var
                   2423:    case $ac_val in
                   2424:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2425:    esac
                   2426:    $as_echo "$ac_var='\''$ac_val'\''"
                   2427:       done | sort
                   2428:       echo
1.14      bertrand 2429:     fi
                   2430: 
1.15      bertrand 2431:     if test -s confdefs.h; then
                   2432:       cat <<\_ASBOX
                   2433: ## ----------- ##
                   2434: ## confdefs.h. ##
                   2435: ## ----------- ##
                   2436: _ASBOX
                   2437:       echo
                   2438:       cat confdefs.h
                   2439:       echo
                   2440:     fi
                   2441:     test "$ac_signal" != 0 &&
                   2442:       $as_echo "$as_me: caught signal $ac_signal"
                   2443:     $as_echo "$as_me: exit $exit_status"
                   2444:   } >&5
                   2445:   rm -f core *.core core.conftest.* &&
                   2446:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2447:     exit $exit_status
                   2448: ' 0
                   2449: for ac_signal in 1 2 13 15; do
                   2450:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2451: done
                   2452: ac_signal=0
1.14      bertrand 2453: 
1.15      bertrand 2454: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2455: rm -f -r conftest* confdefs.h
1.14      bertrand 2456: 
1.15      bertrand 2457: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2458: 
1.15      bertrand 2459: # Predefined preprocessor variables.
1.14      bertrand 2460: 
1.15      bertrand 2461: cat >>confdefs.h <<_ACEOF
                   2462: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2463: _ACEOF
1.14      bertrand 2464: 
1.15      bertrand 2465: cat >>confdefs.h <<_ACEOF
                   2466: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2467: _ACEOF
                   2468: 
1.15      bertrand 2469: cat >>confdefs.h <<_ACEOF
                   2470: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2471: _ACEOF
1.14      bertrand 2472: 
1.15      bertrand 2473: cat >>confdefs.h <<_ACEOF
                   2474: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2475: _ACEOF
                   2476: 
1.15      bertrand 2477: cat >>confdefs.h <<_ACEOF
                   2478: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2479: _ACEOF
1.14      bertrand 2480: 
1.15      bertrand 2481: cat >>confdefs.h <<_ACEOF
                   2482: #define PACKAGE_URL "$PACKAGE_URL"
                   2483: _ACEOF
1.14      bertrand 2484: 
                   2485: 
1.15      bertrand 2486: # Let the site file select an alternate cache file if it wants to.
                   2487: # Prefer an explicitly selected file to automatically selected ones.
                   2488: ac_site_file1=NONE
                   2489: ac_site_file2=NONE
                   2490: if test -n "$CONFIG_SITE"; then
                   2491:   ac_site_file1=$CONFIG_SITE
                   2492: elif test "x$prefix" != xNONE; then
                   2493:   ac_site_file1=$prefix/share/config.site
                   2494:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2495: else
1.15      bertrand 2496:   ac_site_file1=$ac_default_prefix/share/config.site
                   2497:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2498: fi
1.15      bertrand 2499: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2500: do
                   2501:   test "x$ac_site_file" = xNONE && continue
                   2502:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2503:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2504: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2505:     sed 's/^/| /' "$ac_site_file" >&5
                   2506:     . "$ac_site_file"
                   2507:   fi
                   2508: done
1.14      bertrand 2509: 
1.15      bertrand 2510: if test -r "$cache_file"; then
                   2511:   # Some versions of bash will fail to source /dev/null (special files
                   2512:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2513:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2514:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2515: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2516:     case $cache_file in
                   2517:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2518:       *)                      . "./$cache_file";;
                   2519:     esac
                   2520:   fi
1.14      bertrand 2521: else
1.15      bertrand 2522:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2523: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2524:   >$cache_file
1.14      bertrand 2525: fi
                   2526: 
1.15      bertrand 2527: # Check that the precious variables saved in the cache have kept the same
                   2528: # value.
                   2529: ac_cache_corrupted=false
                   2530: for ac_var in $ac_precious_vars; do
                   2531:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2532:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2533:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2534:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2535:   case $ac_old_set,$ac_new_set in
                   2536:     set,)
                   2537:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2538: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2539:       ac_cache_corrupted=: ;;
                   2540:     ,set)
                   2541:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2542: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2543:       ac_cache_corrupted=: ;;
                   2544:     ,);;
                   2545:     *)
                   2546:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2547:    # differences in whitespace do not lead to failure.
                   2548:    ac_old_val_w=`echo x $ac_old_val`
                   2549:    ac_new_val_w=`echo x $ac_new_val`
                   2550:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2551:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2552: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2553:      ac_cache_corrupted=:
                   2554:    else
                   2555:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2556: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2557:      eval $ac_var=\$ac_old_val
                   2558:    fi
                   2559:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2560: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2561:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2562: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2563:       fi;;
                   2564:   esac
                   2565:   # Pass precious variables to config.status.
                   2566:   if test "$ac_new_set" = set; then
                   2567:     case $ac_new_val in
                   2568:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2569:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2570:     esac
                   2571:     case " $ac_configure_args " in
                   2572:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2573:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2574:     esac
1.14      bertrand 2575:   fi
                   2576: done
1.15      bertrand 2577: if $ac_cache_corrupted; then
                   2578:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2579: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2580:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2581: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   2582:   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
                   2583: fi
                   2584: ## -------------------- ##
                   2585: ## Main body of script. ##
                   2586: ## -------------------- ##
1.14      bertrand 2587: 
1.15      bertrand 2588: ac_ext=c
                   2589: ac_cpp='$CPP $CPPFLAGS'
                   2590: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2591: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2592: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2593: 
                   2594: 
1.15      bertrand 2595: ac_aux_dir=
                   2596: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   2597:   for ac_t in install-sh install.sh shtool; do
                   2598:     if test -f "$ac_dir/$ac_t"; then
                   2599:       ac_aux_dir=$ac_dir
                   2600:       ac_install_sh="$ac_aux_dir/$ac_t -c"
                   2601:       break 2
                   2602:     fi
                   2603:   done
1.14      bertrand 2604: done
1.15      bertrand 2605: if test -z "$ac_aux_dir"; then
                   2606:   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
                   2607: fi
1.14      bertrand 2608: 
1.15      bertrand 2609: # These three variables are undocumented and unsupported,
                   2610: # and are intended to be withdrawn in a future Autoconf release.
                   2611: # They can cause serious problems if a builder's source tree is in a directory
                   2612: # whose full name contains unusual characters.
                   2613: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2614: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2615: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2616: 
                   2617: 
1.15      bertrand 2618: # Make sure we can run config.sub.
                   2619: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   2620:   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2621: 
1.15      bertrand 2622: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2623: $as_echo_n "checking build system type... " >&6; }
                   2624: if test "${ac_cv_build+set}" = set; then :
                   2625:   $as_echo_n "(cached) " >&6
1.14      bertrand 2626: else
1.15      bertrand 2627:   ac_build_alias=$build_alias
                   2628: test "x$ac_build_alias" = x &&
                   2629:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2630: test "x$ac_build_alias" = x &&
                   2631:   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
                   2632: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   2633:   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2634: 
                   2635: fi
1.15      bertrand 2636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2637: $as_echo "$ac_cv_build" >&6; }
                   2638: case $ac_cv_build in
                   2639: *-*-*) ;;
                   2640: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
                   2641: esac
                   2642: build=$ac_cv_build
                   2643: ac_save_IFS=$IFS; IFS='-'
                   2644: set x $ac_cv_build
                   2645: shift
                   2646: build_cpu=$1
                   2647: build_vendor=$2
                   2648: shift; shift
                   2649: # Remember, the first character of IFS is used to create $*,
                   2650: # except with old shells:
                   2651: build_os=$*
                   2652: IFS=$ac_save_IFS
                   2653: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2654: 
                   2655: 
1.15      bertrand 2656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2657: $as_echo_n "checking host system type... " >&6; }
                   2658: if test "${ac_cv_host+set}" = set; then :
                   2659:   $as_echo_n "(cached) " >&6
1.14      bertrand 2660: else
1.15      bertrand 2661:   if test "x$host_alias" = x; then
                   2662:   ac_cv_host=$ac_cv_build
1.14      bertrand 2663: else
1.15      bertrand 2664:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   2665:     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2666: fi
                   2667: 
                   2668: fi
1.15      bertrand 2669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2670: $as_echo "$ac_cv_host" >&6; }
                   2671: case $ac_cv_host in
                   2672: *-*-*) ;;
                   2673: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
                   2674: esac
                   2675: host=$ac_cv_host
                   2676: ac_save_IFS=$IFS; IFS='-'
                   2677: set x $ac_cv_host
                   2678: shift
                   2679: host_cpu=$1
                   2680: host_vendor=$2
                   2681: shift; shift
                   2682: # Remember, the first character of IFS is used to create $*,
                   2683: # except with old shells:
                   2684: host_os=$*
                   2685: IFS=$ac_save_IFS
                   2686: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2687: 
                   2688: 
1.15      bertrand 2689: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2690: $as_echo_n "checking target system type... " >&6; }
                   2691: if test "${ac_cv_target+set}" = set; then :
                   2692:   $as_echo_n "(cached) " >&6
                   2693: else
                   2694:   if test "x$target_alias" = x; then
                   2695:   ac_cv_target=$ac_cv_host
1.14      bertrand 2696: else
1.15      bertrand 2697:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
                   2698:     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
                   2699: fi
1.14      bertrand 2700: 
                   2701: fi
1.15      bertrand 2702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2703: $as_echo "$ac_cv_target" >&6; }
                   2704: case $ac_cv_target in
                   2705: *-*-*) ;;
                   2706: *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
                   2707: esac
                   2708: target=$ac_cv_target
                   2709: ac_save_IFS=$IFS; IFS='-'
                   2710: set x $ac_cv_target
                   2711: shift
                   2712: target_cpu=$1
                   2713: target_vendor=$2
                   2714: shift; shift
                   2715: # Remember, the first character of IFS is used to create $*,
                   2716: # except with old shells:
                   2717: target_os=$*
                   2718: IFS=$ac_save_IFS
                   2719: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2720: 
1.14      bertrand 2721: 
1.15      bertrand 2722: # The aliases save the names the user supplied, while $host etc.
                   2723: # will get canonicalized.
                   2724: test -n "$target_alias" &&
                   2725:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2726:     NONENONEs,x,x, &&
                   2727:   program_prefix=${target_alias}-
1.1       bertrand 2728: 
1.15      bertrand 2729: am__api_version='1.11'
1.1       bertrand 2730: 
1.14      bertrand 2731: # Find a good install program.  We prefer a C program (faster),
                   2732: # so one script is as good as another.  But avoid the broken or
                   2733: # incompatible versions:
                   2734: # SysV /etc/install, /usr/sbin/install
                   2735: # SunOS /usr/etc/install
                   2736: # IRIX /sbin/install
                   2737: # AIX /bin/install
                   2738: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2739: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2740: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2741: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2742: # OS/2's system install, which has a completely different semantic
                   2743: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2744: # Reject install programs that cannot install multiple files.
                   2745: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2746: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2747: if test -z "$INSTALL"; then
1.15      bertrand 2748: if test "${ac_cv_path_install+set}" = set; then :
                   2749:   $as_echo_n "(cached) " >&6
1.14      bertrand 2750: else
                   2751:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2752: for as_dir in $PATH
                   2753: do
                   2754:   IFS=$as_save_IFS
                   2755:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2756:     # Account for people who put trailing slashes in PATH elements.
                   2757: case $as_dir/ in #((
                   2758:   ./ | .// | /[cC]/* | \
1.14      bertrand 2759:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2760:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2761:   /usr/ucb/* ) ;;
                   2762:   *)
                   2763:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2764:     # Don't use installbsd from OSF since it installs stuff as root
                   2765:     # by default.
                   2766:     for ac_prog in ginstall scoinst install; do
                   2767:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2768:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2769:      if test $ac_prog = install &&
                   2770:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2771:        # AIX install.  It has an incompatible calling convention.
                   2772:        :
                   2773:      elif test $ac_prog = install &&
                   2774:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2775:        # program-specific install script used by HP pwplus--don't use.
                   2776:        :
                   2777:      else
1.15      bertrand 2778:        rm -rf conftest.one conftest.two conftest.dir
                   2779:        echo one > conftest.one
                   2780:        echo two > conftest.two
                   2781:        mkdir conftest.dir
                   2782:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2783:          test -s conftest.one && test -s conftest.two &&
                   2784:          test -s conftest.dir/conftest.one &&
                   2785:          test -s conftest.dir/conftest.two
                   2786:        then
                   2787:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2788:          break 3
                   2789:        fi
1.14      bertrand 2790:      fi
                   2791:    fi
                   2792:       done
                   2793:     done
                   2794:     ;;
                   2795: esac
1.15      bertrand 2796: 
                   2797:   done
1.14      bertrand 2798: IFS=$as_save_IFS
1.1       bertrand 2799: 
1.15      bertrand 2800: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2801: 
1.14      bertrand 2802: fi
                   2803:   if test "${ac_cv_path_install+set}" = set; then
                   2804:     INSTALL=$ac_cv_path_install
                   2805:   else
                   2806:     # As a last resort, use the slow shell script.  Don't cache a
                   2807:     # value for INSTALL within a source directory, because that will
                   2808:     # break other packages using the cache if that directory is
                   2809:     # removed, or if the value is a relative name.
                   2810:     INSTALL=$ac_install_sh
                   2811:   fi
                   2812: fi
1.15      bertrand 2813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2814: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2815: 
1.14      bertrand 2816: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2817: # It thinks the first close brace ends the variable substitution.
                   2818: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2819: 
1.14      bertrand 2820: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2821: 
1.14      bertrand 2822: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2823: 
1.15      bertrand 2824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2825: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2826: # Just in case
                   2827: sleep 1
                   2828: echo timestamp > conftest.file
                   2829: # Reject unsafe characters in $srcdir or the absolute working directory
                   2830: # name.  Accept space and tab only in the latter.
                   2831: am_lf='
                   2832: '
                   2833: case `pwd` in
                   2834:   *[\\\"\#\$\&\'\`$am_lf]*)
                   2835:     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
                   2836: esac
                   2837: case $srcdir in
                   2838:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
                   2839:     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
                   2840: esac
                   2841: 
                   2842: # Do `set' in a subshell so we don't clobber the current shell's
                   2843: # arguments.  Must try -L first in case configure is actually a
                   2844: # symlink; some systems play weird games with the mod time of symlinks
                   2845: # (eg FreeBSD returns the mod time of the symlink's containing
                   2846: # directory).
                   2847: if (
                   2848:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2849:    if test "$*" = "X"; then
                   2850:       # -L didn't work.
                   2851:       set X `ls -t "$srcdir/configure" conftest.file`
                   2852:    fi
                   2853:    rm -f conftest.file
                   2854:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2855:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2856: 
                   2857:       # If neither matched, then we have a broken ls.  This can happen
                   2858:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2859:       # broken ls alias from the environment.  This has actually
                   2860:       # happened.  Such a system could not be considered "sane".
                   2861:       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
                   2862: alias in your environment" "$LINENO" 5
                   2863:    fi
                   2864: 
                   2865:    test "$2" = conftest.file
                   2866:    )
                   2867: then
                   2868:    # Ok.
                   2869:    :
1.14      bertrand 2870: else
1.15      bertrand 2871:    as_fn_error "newly created file is older than distributed files!
                   2872: Check your system clock" "$LINENO" 5
1.14      bertrand 2873: fi
1.15      bertrand 2874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2875: $as_echo "yes" >&6; }
                   2876: test "$program_prefix" != NONE &&
                   2877:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2878: # Use a double $ so make ignores it.
                   2879: test "$program_suffix" != NONE &&
                   2880:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2881: # Double any \ or $.
                   2882: # By default was `s,x,x', remove it if useless.
                   2883: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2884: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2885: 
                   2886: # expand $ac_aux_dir to an absolute path
                   2887: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2888: 
1.15      bertrand 2889: if test x"${MISSING+set}" != xset; then
                   2890:   case $am_aux_dir in
                   2891:   *\ * | *\    *)
                   2892:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2893:   *)
1.15      bertrand 2894:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2895:   esac
1.14      bertrand 2896: fi
1.15      bertrand 2897: # Use eval to expand $SHELL
                   2898: if eval "$MISSING --run true"; then
                   2899:   am_missing_run="$MISSING --run "
1.14      bertrand 2900: else
1.15      bertrand 2901:   am_missing_run=
                   2902:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2903: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2904: fi
                   2905: 
                   2906: if test x"${install_sh}" != xset; then
                   2907:   case $am_aux_dir in
                   2908:   *\ * | *\    *)
                   2909:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2910:   *)
                   2911:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2912:   esac
1.14      bertrand 2913: fi
1.15      bertrand 2914: 
                   2915: # Installed binaries are usually stripped using `strip' when the user
                   2916: # run `make install-strip'.  However `strip' might not be the right
                   2917: # tool to use in cross-compilation environments, therefore Automake
                   2918: # will honor the `STRIP' environment variable to overrule this program.
                   2919: if test "$cross_compiling" != no; then
                   2920:   if test -n "$ac_tool_prefix"; then
                   2921:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2922: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2924: $as_echo_n "checking for $ac_word... " >&6; }
                   2925: if test "${ac_cv_prog_STRIP+set}" = set; then :
                   2926:   $as_echo_n "(cached) " >&6
1.14      bertrand 2927: else
1.15      bertrand 2928:   if test -n "$STRIP"; then
                   2929:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2930: else
                   2931: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2932: for as_dir in $PATH
                   2933: do
                   2934:   IFS=$as_save_IFS
                   2935:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2936:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2937:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2938:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2939:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2940:     break 2
                   2941:   fi
                   2942: done
1.15      bertrand 2943:   done
1.14      bertrand 2944: IFS=$as_save_IFS
1.1       bertrand 2945: 
1.14      bertrand 2946: fi
                   2947: fi
1.15      bertrand 2948: STRIP=$ac_cv_prog_STRIP
                   2949: if test -n "$STRIP"; then
                   2950:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   2951: $as_echo "$STRIP" >&6; }
1.14      bertrand 2952: else
1.15      bertrand 2953:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2954: $as_echo "no" >&6; }
1.14      bertrand 2955: fi
1.1       bertrand 2956: 
                   2957: 
1.14      bertrand 2958: fi
1.15      bertrand 2959: if test -z "$ac_cv_prog_STRIP"; then
                   2960:   ac_ct_STRIP=$STRIP
                   2961:   # Extract the first word of "strip", so it can be a program name with args.
                   2962: set dummy strip; ac_word=$2
                   2963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2964: $as_echo_n "checking for $ac_word... " >&6; }
                   2965: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
                   2966:   $as_echo_n "(cached) " >&6
1.14      bertrand 2967: else
1.15      bertrand 2968:   if test -n "$ac_ct_STRIP"; then
                   2969:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 2970: else
1.14      bertrand 2971: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2972: for as_dir in $PATH
1.1       bertrand 2973: do
1.14      bertrand 2974:   IFS=$as_save_IFS
                   2975:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2976:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2977:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2978:     ac_cv_prog_ac_ct_STRIP="strip"
                   2979:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2980:     break 2
1.1       bertrand 2981:   fi
                   2982: done
1.15      bertrand 2983:   done
1.14      bertrand 2984: IFS=$as_save_IFS
1.1       bertrand 2985: 
1.14      bertrand 2986: fi
                   2987: fi
1.15      bertrand 2988: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   2989: if test -n "$ac_ct_STRIP"; then
                   2990:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   2991: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 2992: else
1.15      bertrand 2993:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2994: $as_echo "no" >&6; }
1.1       bertrand 2995: fi
                   2996: 
1.15      bertrand 2997:   if test "x$ac_ct_STRIP" = x; then
                   2998:     STRIP=":"
1.14      bertrand 2999:   else
                   3000:     case $cross_compiling:$ac_tool_warned in
                   3001: yes:)
1.15      bertrand 3002: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3003: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3004: ac_tool_warned=yes ;;
                   3005: esac
1.15      bertrand 3006:     STRIP=$ac_ct_STRIP
1.1       bertrand 3007:   fi
1.14      bertrand 3008: else
1.15      bertrand 3009:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3010: fi
                   3011: 
1.15      bertrand 3012: fi
                   3013: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3014: 
1.15      bertrand 3015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3016: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3017: if test -z "$MKDIR_P"; then
                   3018:   if test "${ac_cv_path_mkdir+set}" = set; then :
                   3019:   $as_echo_n "(cached) " >&6
1.14      bertrand 3020: else
1.15      bertrand 3021:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3022: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3023: do
                   3024:   IFS=$as_save_IFS
                   3025:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3026:     for ac_prog in mkdir gmkdir; do
                   3027:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3028:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3029:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3030:         'mkdir (GNU coreutils) '* | \
                   3031:         'mkdir (coreutils) '* | \
                   3032:         'mkdir (fileutils) '4.1*)
                   3033:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3034:           break 3;;
                   3035:       esac
                   3036:     done
                   3037:        done
                   3038:   done
1.14      bertrand 3039: IFS=$as_save_IFS
1.1       bertrand 3040: 
                   3041: fi
1.15      bertrand 3042: 
                   3043:   test -d ./--version && rmdir ./--version
                   3044:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3045:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3046:   else
                   3047:     # As a last resort, use the slow shell script.  Don't cache a
                   3048:     # value for MKDIR_P within a source directory, because that will
                   3049:     # break other packages using the cache if that directory is
                   3050:     # removed, or if the value is a relative name.
                   3051:     MKDIR_P="$ac_install_sh -d"
                   3052:   fi
1.14      bertrand 3053: fi
1.15      bertrand 3054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3055: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3056: 
1.15      bertrand 3057: mkdir_p="$MKDIR_P"
                   3058: case $mkdir_p in
                   3059:   [\\/$]* | ?:[\\/]*) ;;
                   3060:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3061: esac
1.1       bertrand 3062: 
1.15      bertrand 3063: for ac_prog in gawk mawk nawk awk
                   3064: do
                   3065:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3066: set dummy $ac_prog; ac_word=$2
                   3067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3068: $as_echo_n "checking for $ac_word... " >&6; }
                   3069: if test "${ac_cv_prog_AWK+set}" = set; then :
                   3070:   $as_echo_n "(cached) " >&6
1.1       bertrand 3071: else
1.15      bertrand 3072:   if test -n "$AWK"; then
                   3073:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3074: else
1.14      bertrand 3075: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3076: for as_dir in $PATH
                   3077: do
                   3078:   IFS=$as_save_IFS
                   3079:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3080:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3081:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3082:     ac_cv_prog_AWK="$ac_prog"
                   3083:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3084:     break 2
                   3085:   fi
                   3086: done
1.15      bertrand 3087:   done
1.14      bertrand 3088: IFS=$as_save_IFS
                   3089: 
                   3090: fi
1.1       bertrand 3091: fi
1.15      bertrand 3092: AWK=$ac_cv_prog_AWK
                   3093: if test -n "$AWK"; then
                   3094:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3095: $as_echo "$AWK" >&6; }
1.14      bertrand 3096: else
1.15      bertrand 3097:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3098: $as_echo "no" >&6; }
1.1       bertrand 3099: fi
                   3100: 
                   3101: 
1.15      bertrand 3102:   test -n "$AWK" && break
                   3103: done
1.1       bertrand 3104: 
1.15      bertrand 3105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3106: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3107: set x ${MAKE-make}
                   3108: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
                   3109: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
                   3110:   $as_echo_n "(cached) " >&6
1.14      bertrand 3111: else
1.15      bertrand 3112:   cat >conftest.make <<\_ACEOF
                   3113: SHELL = /bin/sh
                   3114: all:
                   3115:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3116: _ACEOF
                   3117: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   3118: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3119:   *@@@%%%=?*=@@@%%%*)
                   3120:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3121:   *)
                   3122:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3123: esac
                   3124: rm -f conftest.make
                   3125: fi
                   3126: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3127:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3128: $as_echo "yes" >&6; }
                   3129:   SET_MAKE=
1.1       bertrand 3130: else
1.15      bertrand 3131:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3132: $as_echo "no" >&6; }
                   3133:   SET_MAKE="MAKE=${MAKE-make}"
                   3134: fi
1.1       bertrand 3135: 
1.15      bertrand 3136: rm -rf .tst 2>/dev/null
                   3137: mkdir .tst 2>/dev/null
                   3138: if test -d .tst; then
                   3139:   am__leading_dot=.
                   3140: else
                   3141:   am__leading_dot=_
1.14      bertrand 3142: fi
1.15      bertrand 3143: rmdir .tst 2>/dev/null
                   3144: 
                   3145: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3146:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3147:   # is not polluted with repeated "-I."
                   3148:   am__isrc=' -I$(srcdir)'
                   3149:   # test to see if srcdir already configured
                   3150:   if test -f $srcdir/config.status; then
                   3151:     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
                   3152:   fi
1.1       bertrand 3153: fi
1.15      bertrand 3154: 
                   3155: # test whether we have cygpath
                   3156: if test -z "$CYGPATH_W"; then
                   3157:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3158:     CYGPATH_W='cygpath -w'
                   3159:   else
                   3160:     CYGPATH_W=echo
                   3161:   fi
1.1       bertrand 3162: fi
                   3163: 
                   3164: 
1.15      bertrand 3165: # Define the identity of the package.
                   3166:  PACKAGE='rpl'
1.29      bertrand 3167:  VERSION='4.0.18'
1.15      bertrand 3168: 
                   3169: 
                   3170: cat >>confdefs.h <<_ACEOF
                   3171: #define PACKAGE "$PACKAGE"
                   3172: _ACEOF
                   3173: 
                   3174: 
                   3175: cat >>confdefs.h <<_ACEOF
                   3176: #define VERSION "$VERSION"
                   3177: _ACEOF
                   3178: 
                   3179: # Some tools Automake needs.
                   3180: 
                   3181: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3182: 
                   3183: 
                   3184: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3185: 
                   3186: 
                   3187: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3188: 
                   3189: 
                   3190: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3191: 
                   3192: 
                   3193: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3194: 
                   3195: # We need awk for the "check" target.  The system "awk" is bad on
                   3196: # some platforms.
                   3197: # Always define AMTAR for backward compatibility.
                   3198: 
                   3199: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3200: 
                   3201: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3202: 
                   3203: 
                   3204: 
                   3205: 
1.1       bertrand 3206: 
                   3207: 
1.15      bertrand 3208: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3209: 
                   3210: 
1.27      bertrand 3211: NCURSES=ncurses-5.7-20100619
1.15      bertrand 3212: READLINE=readline-6.1
1.30      bertrand 3213: UNITS=units-1.88
1.15      bertrand 3214: GSL=gsl-1.14
                   3215: GPP=gpp-2.24
                   3216: GNUPLOT=gnuplot-4.4.0
                   3217: FILE=file-5.03
                   3218: ICONV=libiconv-1.13.1
1.31      bertrand 3219: SQLITE=sqlite-3.7.0.1
1.26      bertrand 3220: OPENSSL=openssl-1.0.0a
1.14      bertrand 3221: 
1.15      bertrand 3222: ac_ext=c
                   3223: ac_cpp='$CPP $CPPFLAGS'
                   3224: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3225: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3226: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3227: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3228:   for ac_prog in gcc
1.15      bertrand 3229:   do
                   3230:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3231: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3233: $as_echo_n "checking for $ac_word... " >&6; }
                   3234: if test "${ac_cv_prog_CC+set}" = set; then :
                   3235:   $as_echo_n "(cached) " >&6
1.1       bertrand 3236: else
1.15      bertrand 3237:   if test -n "$CC"; then
                   3238:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3239: else
                   3240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3241: for as_dir in $PATH
                   3242: do
                   3243:   IFS=$as_save_IFS
                   3244:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3245:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3246:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3247:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3248:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3249:     break 2
                   3250:   fi
                   3251: done
1.15      bertrand 3252:   done
1.1       bertrand 3253: IFS=$as_save_IFS
                   3254: 
                   3255: fi
                   3256: fi
1.15      bertrand 3257: CC=$ac_cv_prog_CC
                   3258: if test -n "$CC"; then
                   3259:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3260: $as_echo "$CC" >&6; }
1.1       bertrand 3261: else
1.15      bertrand 3262:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3263: $as_echo "no" >&6; }
1.1       bertrand 3264: fi
                   3265: 
                   3266: 
1.15      bertrand 3267:     test -n "$CC" && break
                   3268:   done
                   3269: fi
                   3270: if test -z "$CC"; then
                   3271:   ac_ct_CC=$CC
1.23      bertrand 3272:   for ac_prog in gcc
1.15      bertrand 3273: do
                   3274:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3275: set dummy $ac_prog; ac_word=$2
                   3276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3277: $as_echo_n "checking for $ac_word... " >&6; }
                   3278: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
                   3279:   $as_echo_n "(cached) " >&6
1.1       bertrand 3280: else
1.15      bertrand 3281:   if test -n "$ac_ct_CC"; then
                   3282:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3283: else
                   3284: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3285: for as_dir in $PATH
                   3286: do
                   3287:   IFS=$as_save_IFS
                   3288:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3289:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3290:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3291:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3292:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3293:     break 2
                   3294:   fi
                   3295: done
1.15      bertrand 3296:   done
1.1       bertrand 3297: IFS=$as_save_IFS
                   3298: 
                   3299: fi
                   3300: fi
1.15      bertrand 3301: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3302: if test -n "$ac_ct_CC"; then
                   3303:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3304: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3305: else
1.15      bertrand 3306:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3307: $as_echo "no" >&6; }
1.1       bertrand 3308: fi
                   3309: 
                   3310: 
1.15      bertrand 3311:   test -n "$ac_ct_CC" && break
                   3312: done
1.1       bertrand 3313: 
1.15      bertrand 3314:   if test "x$ac_ct_CC" = x; then
                   3315:     CC=""
                   3316:   else
                   3317:     case $cross_compiling:$ac_tool_warned in
                   3318: yes:)
                   3319: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3320: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3321: ac_tool_warned=yes ;;
                   3322: esac
                   3323:     CC=$ac_ct_CC
1.1       bertrand 3324:   fi
                   3325: fi
                   3326: 
                   3327: 
1.15      bertrand 3328: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3329: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3330: as_fn_error "no acceptable C compiler found in \$PATH
                   3331: See \`config.log' for more details." "$LINENO" 5; }
1.1       bertrand 3332: 
1.15      bertrand 3333: # Provide some information about the compiler.
                   3334: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3335: set X $ac_compile
                   3336: ac_compiler=$2
                   3337: for ac_option in --version -v -V -qversion; do
                   3338:   { { ac_try="$ac_compiler $ac_option >&5"
                   3339: case "(($ac_try" in
                   3340:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3341:   *) ac_try_echo=$ac_try;;
                   3342: esac
                   3343: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3344: $as_echo "$ac_try_echo"; } >&5
                   3345:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3346:   ac_status=$?
                   3347:   if test -s conftest.err; then
                   3348:     sed '10a\
                   3349: ... rest of stderr output deleted ...
                   3350:          10q' conftest.err >conftest.er1
                   3351:     cat conftest.er1 >&5
1.1       bertrand 3352:   fi
1.15      bertrand 3353:   rm -f conftest.er1 conftest.err
                   3354:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3355:   test $ac_status = 0; }
1.1       bertrand 3356: done
                   3357: 
1.15      bertrand 3358: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3359: /* end confdefs.h.  */
                   3360: 
                   3361: int
                   3362: main ()
                   3363: {
1.14      bertrand 3364: 
1.15      bertrand 3365:   ;
                   3366:   return 0;
                   3367: }
                   3368: _ACEOF
                   3369: ac_clean_files_save=$ac_clean_files
                   3370: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3371: # Try to create an executable without -o first, disregard a.out.
                   3372: # It will help us diagnose broken compilers, and finding out an intuition
                   3373: # of exeext.
                   3374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3375: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3376: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3377: 
1.15      bertrand 3378: # The possible output files:
                   3379: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3380: 
1.15      bertrand 3381: ac_rmfiles=
                   3382: for ac_file in $ac_files
1.1       bertrand 3383: do
1.15      bertrand 3384:   case $ac_file in
                   3385:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3386:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3387:   esac
1.1       bertrand 3388: done
1.15      bertrand 3389: rm -f $ac_rmfiles
                   3390: 
                   3391: if { { ac_try="$ac_link_default"
                   3392: case "(($ac_try" in
                   3393:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3394:   *) ac_try_echo=$ac_try;;
                   3395: esac
                   3396: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3397: $as_echo "$ac_try_echo"; } >&5
                   3398:   (eval "$ac_link_default") 2>&5
                   3399:   ac_status=$?
                   3400:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3401:   test $ac_status = 0; }; then :
                   3402:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3403: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3404: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3405: # so that the user can short-circuit this test for compilers unknown to
                   3406: # Autoconf.
                   3407: for ac_file in $ac_files ''
                   3408: do
                   3409:   test -f "$ac_file" || continue
                   3410:   case $ac_file in
                   3411:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3412:    ;;
                   3413:     [ab].out )
                   3414:    # We found the default executable, but exeext='' is most
                   3415:    # certainly right.
                   3416:    break;;
                   3417:     *.* )
                   3418:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3419:    then :; else
                   3420:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3421:    fi
                   3422:    # We set ac_cv_exeext here because the later test for it is not
                   3423:    # safe: cross compilers may not add the suffix if given an `-o'
                   3424:    # argument, so we may need to know it at that point already.
                   3425:    # Even if this section looks crufty: it has the advantage of
                   3426:    # actually working.
                   3427:    break;;
                   3428:     * )
                   3429:    break;;
                   3430:   esac
1.14      bertrand 3431: done
1.15      bertrand 3432: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3433: 
1.14      bertrand 3434: else
1.15      bertrand 3435:   ac_file=''
1.1       bertrand 3436: fi
1.15      bertrand 3437: if test -z "$ac_file"; then :
                   3438:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3439: $as_echo "no" >&6; }
                   3440: $as_echo "$as_me: failed program was:" >&5
                   3441: sed 's/^/| /' conftest.$ac_ext >&5
                   3442: 
                   3443: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3444: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3445: { as_fn_set_status 77
                   3446: as_fn_error "C compiler cannot create executables
                   3447: See \`config.log' for more details." "$LINENO" 5; }; }
                   3448: else
                   3449:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3450: $as_echo "yes" >&6; }
                   3451: fi
                   3452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3453: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3455: $as_echo "$ac_file" >&6; }
                   3456: ac_exeext=$ac_cv_exeext
1.1       bertrand 3457: 
1.15      bertrand 3458: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3459: ac_clean_files=$ac_clean_files_save
                   3460: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3461: $as_echo_n "checking for suffix of executables... " >&6; }
                   3462: if { { ac_try="$ac_link"
                   3463: case "(($ac_try" in
                   3464:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3465:   *) ac_try_echo=$ac_try;;
                   3466: esac
                   3467: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3468: $as_echo "$ac_try_echo"; } >&5
                   3469:   (eval "$ac_link") 2>&5
                   3470:   ac_status=$?
                   3471:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3472:   test $ac_status = 0; }; then :
                   3473:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3474: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3475: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3476: # `rm'.
                   3477: for ac_file in conftest.exe conftest conftest.*; do
                   3478:   test -f "$ac_file" || continue
                   3479:   case $ac_file in
                   3480:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3481:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3482:      break;;
                   3483:     * ) break;;
                   3484:   esac
                   3485: done
1.14      bertrand 3486: else
1.15      bertrand 3487:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3488: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3489: as_fn_error "cannot compute suffix of executables: cannot compile and link
                   3490: See \`config.log' for more details." "$LINENO" 5; }
                   3491: fi
                   3492: rm -f conftest conftest$ac_cv_exeext
                   3493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3494: $as_echo "$ac_cv_exeext" >&6; }
                   3495: 
                   3496: rm -f conftest.$ac_ext
                   3497: EXEEXT=$ac_cv_exeext
                   3498: ac_exeext=$EXEEXT
                   3499: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3500: /* end confdefs.h.  */
1.15      bertrand 3501: #include <stdio.h>
1.14      bertrand 3502: int
                   3503: main ()
                   3504: {
1.15      bertrand 3505: FILE *f = fopen ("conftest.out", "w");
                   3506:  return ferror (f) || fclose (f) != 0;
                   3507: 
1.14      bertrand 3508:   ;
                   3509:   return 0;
                   3510: }
                   3511: _ACEOF
1.15      bertrand 3512: ac_clean_files="$ac_clean_files conftest.out"
                   3513: # Check that the compiler produces executables we can run.  If not, either
                   3514: # the compiler is broken, or we cross compile.
                   3515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3516: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3517: if test "$cross_compiling" != yes; then
                   3518:   { { ac_try="$ac_link"
1.1       bertrand 3519: case "(($ac_try" in
                   3520:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3521:   *) ac_try_echo=$ac_try;;
                   3522: esac
1.15      bertrand 3523: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3524: $as_echo "$ac_try_echo"; } >&5
                   3525:   (eval "$ac_link") 2>&5
                   3526:   ac_status=$?
                   3527:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3528:   test $ac_status = 0; }
                   3529:   if { ac_try='./conftest$ac_cv_exeext'
                   3530:   { { case "(($ac_try" in
                   3531:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3532:   *) ac_try_echo=$ac_try;;
                   3533: esac
                   3534: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3535: $as_echo "$ac_try_echo"; } >&5
                   3536:   (eval "$ac_try") 2>&5
1.1       bertrand 3537:   ac_status=$?
1.15      bertrand 3538:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3539:   test $ac_status = 0; }; }; then
                   3540:     cross_compiling=no
                   3541:   else
                   3542:     if test "$cross_compiling" = maybe; then
                   3543:    cross_compiling=yes
                   3544:     else
                   3545:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3546: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3547: as_fn_error "cannot run C compiled programs.
                   3548: If you meant to cross compile, use \`--host'.
                   3549: See \`config.log' for more details." "$LINENO" 5; }
                   3550:     fi
                   3551:   fi
1.14      bertrand 3552: fi
1.15      bertrand 3553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3554: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3555: 
1.15      bertrand 3556: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3557: ac_clean_files=$ac_clean_files_save
                   3558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3559: $as_echo_n "checking for suffix of object files... " >&6; }
                   3560: if test "${ac_cv_objext+set}" = set; then :
                   3561:   $as_echo_n "(cached) " >&6
1.14      bertrand 3562: else
1.15      bertrand 3563:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3564: /* end confdefs.h.  */
                   3565: 
                   3566: int
                   3567: main ()
                   3568: {
1.15      bertrand 3569: 
1.1       bertrand 3570:   ;
                   3571:   return 0;
                   3572: }
                   3573: _ACEOF
1.15      bertrand 3574: rm -f conftest.o conftest.obj
                   3575: if { { ac_try="$ac_compile"
1.1       bertrand 3576: case "(($ac_try" in
                   3577:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3578:   *) ac_try_echo=$ac_try;;
                   3579: esac
1.15      bertrand 3580: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3581: $as_echo "$ac_try_echo"; } >&5
                   3582:   (eval "$ac_compile") 2>&5
1.1       bertrand 3583:   ac_status=$?
1.15      bertrand 3584:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3585:   test $ac_status = 0; }; then :
                   3586:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3587:   test -f "$ac_file" || continue;
                   3588:   case $ac_file in
                   3589:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3590:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3591:        break;;
                   3592:   esac
                   3593: done
1.14      bertrand 3594: else
1.15      bertrand 3595:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3596: sed 's/^/| /' conftest.$ac_ext >&5
                   3597: 
1.15      bertrand 3598: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3599: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3600: as_fn_error "cannot compute suffix of object files: cannot compile
                   3601: See \`config.log' for more details." "$LINENO" 5; }
1.14      bertrand 3602: fi
1.15      bertrand 3603: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3604: fi
                   3605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3606: $as_echo "$ac_cv_objext" >&6; }
                   3607: OBJEXT=$ac_cv_objext
                   3608: ac_objext=$OBJEXT
                   3609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3610: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
                   3611: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
                   3612:   $as_echo_n "(cached) " >&6
                   3613: else
                   3614:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3615: /* end confdefs.h.  */
                   3616: 
                   3617: int
                   3618: main ()
                   3619: {
                   3620: #ifndef __GNUC__
                   3621:        choke me
                   3622: #endif
1.14      bertrand 3623: 
1.15      bertrand 3624:   ;
                   3625:   return 0;
                   3626: }
                   3627: _ACEOF
                   3628: if ac_fn_c_try_compile "$LINENO"; then :
                   3629:   ac_compiler_gnu=yes
1.14      bertrand 3630: else
1.15      bertrand 3631:   ac_compiler_gnu=no
1.14      bertrand 3632: fi
1.15      bertrand 3633: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3634: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3635: 
1.15      bertrand 3636: fi
                   3637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3638: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3639: if test $ac_compiler_gnu = yes; then
                   3640:   GCC=yes
1.14      bertrand 3641: else
1.15      bertrand 3642:   GCC=
1.14      bertrand 3643: fi
1.15      bertrand 3644: ac_test_CFLAGS=${CFLAGS+set}
                   3645: ac_save_CFLAGS=$CFLAGS
                   3646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3647: $as_echo_n "checking whether $CC accepts -g... " >&6; }
                   3648: if test "${ac_cv_prog_cc_g+set}" = set; then :
                   3649:   $as_echo_n "(cached) " >&6
                   3650: else
                   3651:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3652:    ac_c_werror_flag=yes
                   3653:    ac_cv_prog_cc_g=no
                   3654:    CFLAGS="-g"
                   3655:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3656: /* end confdefs.h.  */
1.14      bertrand 3657: 
1.15      bertrand 3658: int
                   3659: main ()
                   3660: {
1.14      bertrand 3661: 
1.15      bertrand 3662:   ;
                   3663:   return 0;
                   3664: }
                   3665: _ACEOF
                   3666: if ac_fn_c_try_compile "$LINENO"; then :
                   3667:   ac_cv_prog_cc_g=yes
                   3668: else
                   3669:   CFLAGS=""
                   3670:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3671: /* end confdefs.h.  */
1.14      bertrand 3672: 
1.15      bertrand 3673: int
                   3674: main ()
                   3675: {
1.14      bertrand 3676: 
1.15      bertrand 3677:   ;
                   3678:   return 0;
                   3679: }
                   3680: _ACEOF
                   3681: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3682: 
1.15      bertrand 3683: else
                   3684:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3685:     CFLAGS="-g"
                   3686:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3687: /* end confdefs.h.  */
1.14      bertrand 3688: 
1.15      bertrand 3689: int
                   3690: main ()
                   3691: {
1.14      bertrand 3692: 
1.15      bertrand 3693:   ;
                   3694:   return 0;
                   3695: }
                   3696: _ACEOF
                   3697: if ac_fn_c_try_compile "$LINENO"; then :
                   3698:   ac_cv_prog_cc_g=yes
                   3699: fi
                   3700: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3701: fi
                   3702: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3703: fi
                   3704: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3705:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3706: fi
                   3707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3708: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3709: if test "$ac_test_CFLAGS" = set; then
                   3710:   CFLAGS=$ac_save_CFLAGS
                   3711: elif test $ac_cv_prog_cc_g = yes; then
                   3712:   if test "$GCC" = yes; then
                   3713:     CFLAGS="-g -O2"
                   3714:   else
                   3715:     CFLAGS="-g"
                   3716:   fi
                   3717: else
                   3718:   if test "$GCC" = yes; then
                   3719:     CFLAGS="-O2"
                   3720:   else
                   3721:     CFLAGS=
                   3722:   fi
                   3723: fi
                   3724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3725: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
                   3726: if test "${ac_cv_prog_cc_c89+set}" = set; then :
                   3727:   $as_echo_n "(cached) " >&6
1.1       bertrand 3728: else
1.15      bertrand 3729:   ac_cv_prog_cc_c89=no
                   3730: ac_save_CC=$CC
                   3731: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3732: /* end confdefs.h.  */
1.15      bertrand 3733: #include <stdarg.h>
                   3734: #include <stdio.h>
                   3735: #include <sys/types.h>
                   3736: #include <sys/stat.h>
                   3737: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3738: struct buf { int x; };
                   3739: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3740: static char *e (p, i)
                   3741:      char **p;
                   3742:      int i;
                   3743: {
                   3744:   return p[i];
                   3745: }
                   3746: static char *f (char * (*g) (char **, int), char **p, ...)
                   3747: {
                   3748:   char *s;
                   3749:   va_list v;
                   3750:   va_start (v,p);
                   3751:   s = g (p, va_arg (v,int));
                   3752:   va_end (v);
                   3753:   return s;
                   3754: }
                   3755: 
                   3756: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3757:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3758:    These don't provoke an error unfortunately, instead are silently treated
                   3759:    as 'x'.  The following induces an error, until -std is added to get
                   3760:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3761:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3762:    that's true only with -std.  */
                   3763: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3764: 
1.15      bertrand 3765: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3766:    inside strings and character constants.  */
                   3767: #define FOO(x) 'x'
                   3768: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3769: 
1.15      bertrand 3770: int test (int i, double x);
                   3771: struct s1 {int (*f) (int a);};
                   3772: struct s2 {int (*f) (double a);};
                   3773: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3774: int argc;
                   3775: char **argv;
1.14      bertrand 3776: int
                   3777: main ()
                   3778: {
1.15      bertrand 3779: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3780:   ;
                   3781:   return 0;
                   3782: }
                   3783: _ACEOF
1.15      bertrand 3784: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3785:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3786: do
                   3787:   CC="$ac_save_CC $ac_arg"
                   3788:   if ac_fn_c_try_compile "$LINENO"; then :
                   3789:   ac_cv_prog_cc_c89=$ac_arg
                   3790: fi
                   3791: rm -f core conftest.err conftest.$ac_objext
                   3792:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3793: done
                   3794: rm -f conftest.$ac_ext
                   3795: CC=$ac_save_CC
                   3796: 
                   3797: fi
                   3798: # AC_CACHE_VAL
                   3799: case "x$ac_cv_prog_cc_c89" in
                   3800:   x)
                   3801:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3802: $as_echo "none needed" >&6; } ;;
                   3803:   xno)
                   3804:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3805: $as_echo "unsupported" >&6; } ;;
                   3806:   *)
                   3807:     CC="$CC $ac_cv_prog_cc_c89"
                   3808:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3809: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3810: esac
1.15      bertrand 3811: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3812: 
                   3813: fi
                   3814: 
1.15      bertrand 3815: ac_ext=c
                   3816: ac_cpp='$CPP $CPPFLAGS'
                   3817: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3818: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3819: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3820: DEPDIR="${am__leading_dot}deps"
                   3821: 
                   3822: ac_config_commands="$ac_config_commands depfiles"
                   3823: 
                   3824: 
                   3825: am_make=${MAKE-make}
                   3826: cat > confinc << 'END'
                   3827: am__doit:
                   3828:    @echo this is the am__doit target
                   3829: .PHONY: am__doit
                   3830: END
                   3831: # If we don't find an include directive, just comment out the code.
                   3832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3833: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3834: am__include="#"
                   3835: am__quote=
                   3836: _am_result=none
                   3837: # First try GNU make style include.
                   3838: echo "include confinc" > confmf
                   3839: # Ignore all kinds of additional output from `make'.
                   3840: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3841: *the\ am__doit\ target*)
                   3842:   am__include=include
                   3843:   am__quote=
                   3844:   _am_result=GNU
                   3845:   ;;
                   3846: esac
                   3847: # Now try BSD make style include.
                   3848: if test "$am__include" = "#"; then
                   3849:    echo '.include "confinc"' > confmf
                   3850:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3851:    *the\ am__doit\ target*)
                   3852:      am__include=.include
                   3853:      am__quote="\""
                   3854:      _am_result=BSD
                   3855:      ;;
                   3856:    esac
1.14      bertrand 3857: fi
                   3858: 
                   3859: 
1.15      bertrand 3860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3861: $as_echo "$_am_result" >&6; }
                   3862: rm -f confinc confmf
                   3863: 
                   3864: # Check whether --enable-dependency-tracking was given.
                   3865: if test "${enable_dependency_tracking+set}" = set; then :
                   3866:   enableval=$enable_dependency_tracking;
                   3867: fi
                   3868: 
                   3869: if test "x$enable_dependency_tracking" != xno; then
                   3870:   am_depcomp="$ac_aux_dir/depcomp"
                   3871:   AMDEPBACKSLASH='\'
                   3872: fi
                   3873:  if test "x$enable_dependency_tracking" != xno; then
                   3874:   AMDEP_TRUE=
                   3875:   AMDEP_FALSE='#'
1.1       bertrand 3876: else
1.15      bertrand 3877:   AMDEP_TRUE='#'
                   3878:   AMDEP_FALSE=
1.14      bertrand 3879: fi
1.1       bertrand 3880: 
1.14      bertrand 3881: 
                   3882: 
1.15      bertrand 3883: depcc="$CC"   am_compiler_list=
1.14      bertrand 3884: 
1.15      bertrand 3885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3886: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   3887: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
                   3888:   $as_echo_n "(cached) " >&6
1.14      bertrand 3889: else
1.15      bertrand 3890:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3891:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3892:   # making bogus files that we don't know about and never remove.  For
                   3893:   # instance it was reported that on HP-UX the gcc test will end up
                   3894:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3895:   # in D'.
                   3896:   mkdir conftest.dir
                   3897:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3898:   # using a relative directory.
                   3899:   cp "$am_depcomp" conftest.dir
                   3900:   cd conftest.dir
                   3901:   # We will build objects and dependencies in a subdirectory because
                   3902:   # it helps to detect inapplicable dependency modes.  For instance
                   3903:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3904:   # side effect of compilation, but ICC will put the dependencies in
                   3905:   # the current directory while Tru64 will put them in the object
                   3906:   # directory.
                   3907:   mkdir sub
1.14      bertrand 3908: 
1.15      bertrand 3909:   am_cv_CC_dependencies_compiler_type=none
                   3910:   if test "$am_compiler_list" = ""; then
                   3911:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3912:   fi
                   3913:   am__universal=false
                   3914:   case " $depcc " in #(
                   3915:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3916:      esac
1.14      bertrand 3917: 
1.15      bertrand 3918:   for depmode in $am_compiler_list; do
                   3919:     # Setup a source with many dependencies, because some compilers
                   3920:     # like to wrap large dependency lists on column 80 (with \), and
                   3921:     # we should not choose a depcomp mode which is confused by this.
                   3922:     #
                   3923:     # We need to recreate these files for each test, as the compiler may
                   3924:     # overwrite some of them when testing with obscure command lines.
                   3925:     # This happens at least with the AIX C compiler.
                   3926:     : > sub/conftest.c
                   3927:     for i in 1 2 3 4 5 6; do
                   3928:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3929:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3930:       # Solaris 8's {/usr,}/bin/sh.
                   3931:       touch sub/conftst$i.h
                   3932:     done
                   3933:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3934: 
1.15      bertrand 3935:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3936:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3937:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3938:     # versions had trouble with output in subdirs
                   3939:     am__obj=sub/conftest.${OBJEXT-o}
                   3940:     am__minus_obj="-o $am__obj"
                   3941:     case $depmode in
                   3942:     gcc)
                   3943:       # This depmode causes a compiler race in universal mode.
                   3944:       test "$am__universal" = false || continue
                   3945:       ;;
                   3946:     nosideeffect)
                   3947:       # after this tag, mechanisms are not by side-effect, so they'll
                   3948:       # only be used when explicitly requested
                   3949:       if test "x$enable_dependency_tracking" = xyes; then
                   3950:    continue
                   3951:       else
                   3952:    break
                   3953:       fi
                   3954:       ;;
                   3955:     msvisualcpp | msvcmsys)
                   3956:       # This compiler won't grok `-c -o', but also, the minuso test has
                   3957:       # not run yet.  These depmodes are late enough in the game, and
                   3958:       # so weak that their functioning should not be impacted.
                   3959:       am__obj=conftest.${OBJEXT-o}
                   3960:       am__minus_obj=
                   3961:       ;;
                   3962:     none) break ;;
                   3963:     esac
                   3964:     if depmode=$depmode \
                   3965:        source=sub/conftest.c object=$am__obj \
                   3966:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   3967:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   3968:          >/dev/null 2>conftest.err &&
                   3969:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   3970:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   3971:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   3972:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   3973:       # icc doesn't choke on unknown options, it will just issue warnings
                   3974:       # or remarks (even with -Werror).  So we grep stderr for any message
                   3975:       # that says an option was ignored or not supported.
                   3976:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   3977:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   3978:       # The diagnosis changed in icc 8.0:
                   3979:       #   icc: Command line remark: option '-MP' not supported
                   3980:       if (grep 'ignoring option' conftest.err ||
                   3981:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   3982:         am_cv_CC_dependencies_compiler_type=$depmode
                   3983:         break
                   3984:       fi
                   3985:     fi
                   3986:   done
1.14      bertrand 3987: 
1.15      bertrand 3988:   cd ..
                   3989:   rm -rf conftest.dir
1.14      bertrand 3990: else
1.15      bertrand 3991:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 3992: fi
                   3993: 
1.15      bertrand 3994: fi
                   3995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   3996: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   3997: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 3998: 
1.15      bertrand 3999:  if
                   4000:   test "x$enable_dependency_tracking" != xno \
                   4001:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4002:   am__fastdepCC_TRUE=
                   4003:   am__fastdepCC_FALSE='#'
1.1       bertrand 4004: else
1.15      bertrand 4005:   am__fastdepCC_TRUE='#'
                   4006:   am__fastdepCC_FALSE=
                   4007: fi
                   4008: 
1.1       bertrand 4009: 
                   4010: 
1.30      bertrand 4011: EXT_SQL=
                   4012: 
1.15      bertrand 4013: if test x"$CC" != x""; then
                   4014:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4015:            awk -F. '{ printf("%s", $1);}'`
                   4016:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4017:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4018:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4019:        OPTIMISATION_C=-O3
                   4020:    else
1.23      bertrand 4021:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4022:                then
1.15      bertrand 4023:            OPTIMISATION_C=-O3
                   4024:        else
1.23      bertrand 4025:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4026:                OPTIMISATION_C=-O2
                   4027:            else
                   4028:                as_fn_error "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
                   4029:            fi
1.15      bertrand 4030:        fi
                   4031:    fi
1.14      bertrand 4032: fi
                   4033: 
1.15      bertrand 4034: if test "x$CC" != xcc; then
                   4035:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4036: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4037: else
1.15      bertrand 4038:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4039: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4040: fi
1.15      bertrand 4041: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4042:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4043: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
                   4044:   $as_echo_n "(cached) " >&6
1.1       bertrand 4045: else
1.15      bertrand 4046:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4047: /* end confdefs.h.  */
                   4048: 
                   4049: int
                   4050: main ()
                   4051: {
1.15      bertrand 4052: 
1.1       bertrand 4053:   ;
                   4054:   return 0;
                   4055: }
                   4056: _ACEOF
1.15      bertrand 4057: # Make sure it works both with $CC and with simple cc.
                   4058: # We do the test twice because some compilers refuse to overwrite an
                   4059: # existing .o file with -o, though they will create one.
                   4060: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4061: rm -f conftest2.*
                   4062: if { { case "(($ac_try" in
                   4063:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4064:   *) ac_try_echo=$ac_try;;
                   4065: esac
                   4066: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4067: $as_echo "$ac_try_echo"; } >&5
                   4068:   (eval "$ac_try") 2>&5
                   4069:   ac_status=$?
                   4070:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4071:   test $ac_status = 0; } &&
                   4072:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4073:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4074:   *) ac_try_echo=$ac_try;;
                   4075: esac
                   4076: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4077: $as_echo "$ac_try_echo"; } >&5
                   4078:   (eval "$ac_try") 2>&5
                   4079:   ac_status=$?
                   4080:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4081:   test $ac_status = 0; };
                   4082: then
                   4083:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4084:   if test "x$CC" != xcc; then
                   4085:     # Test first that cc exists at all.
                   4086:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4087:   { { case "(($ac_try" in
                   4088:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4089:   *) ac_try_echo=$ac_try;;
                   4090: esac
                   4091: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4092: $as_echo "$ac_try_echo"; } >&5
                   4093:   (eval "$ac_try") 2>&5
                   4094:   ac_status=$?
                   4095:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4096:   test $ac_status = 0; }; }; then
                   4097:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4098:       rm -f conftest2.*
                   4099:       if { { case "(($ac_try" in
                   4100:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4101:   *) ac_try_echo=$ac_try;;
                   4102: esac
                   4103: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4104: $as_echo "$ac_try_echo"; } >&5
                   4105:   (eval "$ac_try") 2>&5
                   4106:   ac_status=$?
                   4107:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4108:   test $ac_status = 0; } &&
                   4109:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4110:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4111:   *) ac_try_echo=$ac_try;;
                   4112: esac
1.15      bertrand 4113: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4114: $as_echo "$ac_try_echo"; } >&5
                   4115:   (eval "$ac_try") 2>&5
1.14      bertrand 4116:   ac_status=$?
1.15      bertrand 4117:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4118:   test $ac_status = 0; };
                   4119:       then
                   4120:    # cc works too.
                   4121:    :
                   4122:       else
                   4123:    # cc exists but doesn't like -o.
                   4124:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4125:       fi
                   4126:     fi
                   4127:   fi
1.1       bertrand 4128: else
1.15      bertrand 4129:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4130: fi
                   4131: rm -f core conftest*
1.14      bertrand 4132: 
1.1       bertrand 4133: fi
1.15      bertrand 4134: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4135:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4136: $as_echo "yes" >&6; }
                   4137: else
                   4138:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4139: $as_echo "no" >&6; }
                   4140: 
                   4141: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4142: 
                   4143: fi
1.15      bertrand 4144: 
                   4145: # FIXME: we rely on the cache variable name because
                   4146: # there is no other way.
                   4147: set dummy $CC
                   4148: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4149: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4150: if test "$am_t" != yes; then
                   4151:    # Losing compiler, so override with the script.
                   4152:    # FIXME: It is wrong to rewrite CC.
                   4153:    # But if we don't then we get into trouble of one sort or another.
                   4154:    # A longer-term fix would be to have automake use am__CC in this case,
                   4155:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4156:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4157: fi
1.14      bertrand 4158: 
                   4159: 
1.15      bertrand 4160: 
                   4161: if test "$GCC" != yes; then
                   4162:    as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
                   4163: fi
                   4164: 
                   4165: ac_ext=cpp
                   4166: ac_cpp='$CXXCPP $CPPFLAGS'
                   4167: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4168: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4169: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4170: if test -z "$CXX"; then
                   4171:   if test -n "$CCC"; then
                   4172:     CXX=$CCC
                   4173:   else
                   4174:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4175:   for ac_prog in g++
1.15      bertrand 4176:   do
                   4177:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4178: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4179: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4180: $as_echo_n "checking for $ac_word... " >&6; }
                   4181: if test "${ac_cv_prog_CXX+set}" = set; then :
                   4182:   $as_echo_n "(cached) " >&6
1.1       bertrand 4183: else
1.15      bertrand 4184:   if test -n "$CXX"; then
                   4185:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4186: else
1.15      bertrand 4187: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4188: for as_dir in $PATH
                   4189: do
                   4190:   IFS=$as_save_IFS
                   4191:   test -z "$as_dir" && as_dir=.
                   4192:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4193:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4194:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4195:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4196:     break 2
                   4197:   fi
                   4198: done
                   4199:   done
                   4200: IFS=$as_save_IFS
1.14      bertrand 4201: 
                   4202: fi
                   4203: fi
1.15      bertrand 4204: CXX=$ac_cv_prog_CXX
                   4205: if test -n "$CXX"; then
                   4206:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4207: $as_echo "$CXX" >&6; }
1.14      bertrand 4208: else
1.15      bertrand 4209:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4210: $as_echo "no" >&6; }
1.14      bertrand 4211: fi
                   4212: 
                   4213: 
1.15      bertrand 4214:     test -n "$CXX" && break
                   4215:   done
                   4216: fi
                   4217: if test -z "$CXX"; then
                   4218:   ac_ct_CXX=$CXX
1.23      bertrand 4219:   for ac_prog in g++
1.15      bertrand 4220: do
                   4221:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4222: set dummy $ac_prog; ac_word=$2
                   4223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4224: $as_echo_n "checking for $ac_word... " >&6; }
                   4225: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
                   4226:   $as_echo_n "(cached) " >&6
                   4227: else
                   4228:   if test -n "$ac_ct_CXX"; then
                   4229:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4230: else
                   4231: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4232: for as_dir in $PATH
                   4233: do
                   4234:   IFS=$as_save_IFS
                   4235:   test -z "$as_dir" && as_dir=.
                   4236:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4237:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4238:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4239:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4240:     break 2
                   4241:   fi
                   4242: done
                   4243:   done
                   4244: IFS=$as_save_IFS
1.14      bertrand 4245: 
1.15      bertrand 4246: fi
                   4247: fi
                   4248: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4249: if test -n "$ac_ct_CXX"; then
                   4250:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4251: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4252: else
1.15      bertrand 4253:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4254: $as_echo "no" >&6; }
1.14      bertrand 4255: fi
                   4256: 
                   4257: 
1.15      bertrand 4258:   test -n "$ac_ct_CXX" && break
                   4259: done
1.14      bertrand 4260: 
1.15      bertrand 4261:   if test "x$ac_ct_CXX" = x; then
                   4262:     CXX="g++"
                   4263:   else
                   4264:     case $cross_compiling:$ac_tool_warned in
                   4265: yes:)
                   4266: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4267: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4268: ac_tool_warned=yes ;;
                   4269: esac
                   4270:     CXX=$ac_ct_CXX
                   4271:   fi
                   4272: fi
1.1       bertrand 4273: 
1.15      bertrand 4274:   fi
                   4275: fi
                   4276: # Provide some information about the compiler.
                   4277: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4278: set X $ac_compile
                   4279: ac_compiler=$2
                   4280: for ac_option in --version -v -V -qversion; do
                   4281:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4282: case "(($ac_try" in
                   4283:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4284:   *) ac_try_echo=$ac_try;;
                   4285: esac
1.15      bertrand 4286: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4287: $as_echo "$ac_try_echo"; } >&5
                   4288:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4289:   ac_status=$?
1.15      bertrand 4290:   if test -s conftest.err; then
                   4291:     sed '10a\
                   4292: ... rest of stderr output deleted ...
                   4293:          10q' conftest.err >conftest.er1
                   4294:     cat conftest.er1 >&5
                   4295:   fi
                   4296:   rm -f conftest.er1 conftest.err
                   4297:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4298:   test $ac_status = 0; }
                   4299: done
                   4300: 
                   4301: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4302: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
                   4303: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
                   4304:   $as_echo_n "(cached) " >&6
1.14      bertrand 4305: else
1.15      bertrand 4306:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4307: /* end confdefs.h.  */
1.1       bertrand 4308: 
                   4309: int
                   4310: main ()
                   4311: {
1.15      bertrand 4312: #ifndef __GNUC__
                   4313:        choke me
                   4314: #endif
1.1       bertrand 4315: 
                   4316:   ;
                   4317:   return 0;
                   4318: }
                   4319: _ACEOF
1.15      bertrand 4320: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4321:   ac_compiler_gnu=yes
1.1       bertrand 4322: else
1.15      bertrand 4323:   ac_compiler_gnu=no
1.1       bertrand 4324: fi
1.14      bertrand 4325: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4326: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4327: 
1.15      bertrand 4328: fi
                   4329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4330: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4331: if test $ac_compiler_gnu = yes; then
                   4332:   GXX=yes
                   4333: else
                   4334:   GXX=
                   4335: fi
                   4336: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4337: ac_save_CXXFLAGS=$CXXFLAGS
                   4338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4339: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
                   4340: if test "${ac_cv_prog_cxx_g+set}" = set; then :
                   4341:   $as_echo_n "(cached) " >&6
                   4342: else
                   4343:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4344:    ac_cxx_werror_flag=yes
                   4345:    ac_cv_prog_cxx_g=no
                   4346:    CXXFLAGS="-g"
                   4347:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4348: /* end confdefs.h.  */
1.15      bertrand 4349: 
1.1       bertrand 4350: int
                   4351: main ()
                   4352: {
1.14      bertrand 4353: 
1.1       bertrand 4354:   ;
                   4355:   return 0;
                   4356: }
                   4357: _ACEOF
1.15      bertrand 4358: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4359:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4360: else
1.15      bertrand 4361:   CXXFLAGS=""
                   4362:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4363: /* end confdefs.h.  */
1.1       bertrand 4364: 
1.14      bertrand 4365: int
                   4366: main ()
                   4367: {
1.1       bertrand 4368: 
1.14      bertrand 4369:   ;
                   4370:   return 0;
                   4371: }
                   4372: _ACEOF
1.15      bertrand 4373: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4374: 
                   4375: else
1.15      bertrand 4376:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4377:     CXXFLAGS="-g"
                   4378:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4379: /* end confdefs.h.  */
1.1       bertrand 4380: 
1.14      bertrand 4381: int
                   4382: main ()
                   4383: {
1.1       bertrand 4384: 
1.14      bertrand 4385:   ;
                   4386:   return 0;
                   4387: }
                   4388: _ACEOF
1.15      bertrand 4389: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4390:   ac_cv_prog_cxx_g=yes
                   4391: fi
                   4392: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4393: fi
                   4394: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4395: fi
                   4396: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4397:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4398: fi
                   4399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4400: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4401: if test "$ac_test_CXXFLAGS" = set; then
                   4402:   CXXFLAGS=$ac_save_CXXFLAGS
                   4403: elif test $ac_cv_prog_cxx_g = yes; then
                   4404:   if test "$GXX" = yes; then
                   4405:     CXXFLAGS="-g -O2"
                   4406:   else
                   4407:     CXXFLAGS="-g"
                   4408:   fi
                   4409: else
                   4410:   if test "$GXX" = yes; then
                   4411:     CXXFLAGS="-O2"
                   4412:   else
                   4413:     CXXFLAGS=
                   4414:   fi
                   4415: fi
                   4416: ac_ext=c
                   4417: ac_cpp='$CPP $CPPFLAGS'
                   4418: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4419: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4420: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4421: 
                   4422: depcc="$CXX"  am_compiler_list=
                   4423: 
                   4424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4425: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   4426: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
                   4427:   $as_echo_n "(cached) " >&6
                   4428: else
                   4429:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4430:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4431:   # making bogus files that we don't know about and never remove.  For
                   4432:   # instance it was reported that on HP-UX the gcc test will end up
                   4433:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4434:   # in D'.
                   4435:   mkdir conftest.dir
                   4436:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4437:   # using a relative directory.
                   4438:   cp "$am_depcomp" conftest.dir
                   4439:   cd conftest.dir
                   4440:   # We will build objects and dependencies in a subdirectory because
                   4441:   # it helps to detect inapplicable dependency modes.  For instance
                   4442:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4443:   # side effect of compilation, but ICC will put the dependencies in
                   4444:   # the current directory while Tru64 will put them in the object
                   4445:   # directory.
                   4446:   mkdir sub
                   4447: 
                   4448:   am_cv_CXX_dependencies_compiler_type=none
                   4449:   if test "$am_compiler_list" = ""; then
                   4450:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4451:   fi
                   4452:   am__universal=false
                   4453:   case " $depcc " in #(
                   4454:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4455:      esac
                   4456: 
                   4457:   for depmode in $am_compiler_list; do
                   4458:     # Setup a source with many dependencies, because some compilers
                   4459:     # like to wrap large dependency lists on column 80 (with \), and
                   4460:     # we should not choose a depcomp mode which is confused by this.
                   4461:     #
                   4462:     # We need to recreate these files for each test, as the compiler may
                   4463:     # overwrite some of them when testing with obscure command lines.
                   4464:     # This happens at least with the AIX C compiler.
                   4465:     : > sub/conftest.c
                   4466:     for i in 1 2 3 4 5 6; do
                   4467:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4468:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4469:       # Solaris 8's {/usr,}/bin/sh.
                   4470:       touch sub/conftst$i.h
                   4471:     done
                   4472:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4473: 
                   4474:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4475:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4476:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4477:     # versions had trouble with output in subdirs
                   4478:     am__obj=sub/conftest.${OBJEXT-o}
                   4479:     am__minus_obj="-o $am__obj"
                   4480:     case $depmode in
                   4481:     gcc)
                   4482:       # This depmode causes a compiler race in universal mode.
                   4483:       test "$am__universal" = false || continue
                   4484:       ;;
                   4485:     nosideeffect)
                   4486:       # after this tag, mechanisms are not by side-effect, so they'll
                   4487:       # only be used when explicitly requested
                   4488:       if test "x$enable_dependency_tracking" = xyes; then
                   4489:    continue
                   4490:       else
                   4491:    break
                   4492:       fi
                   4493:       ;;
                   4494:     msvisualcpp | msvcmsys)
                   4495:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4496:       # not run yet.  These depmodes are late enough in the game, and
                   4497:       # so weak that their functioning should not be impacted.
                   4498:       am__obj=conftest.${OBJEXT-o}
                   4499:       am__minus_obj=
                   4500:       ;;
                   4501:     none) break ;;
                   4502:     esac
                   4503:     if depmode=$depmode \
                   4504:        source=sub/conftest.c object=$am__obj \
                   4505:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4506:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4507:          >/dev/null 2>conftest.err &&
                   4508:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4509:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4510:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4511:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4512:       # icc doesn't choke on unknown options, it will just issue warnings
                   4513:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4514:       # that says an option was ignored or not supported.
                   4515:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4516:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4517:       # The diagnosis changed in icc 8.0:
                   4518:       #   icc: Command line remark: option '-MP' not supported
                   4519:       if (grep 'ignoring option' conftest.err ||
                   4520:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4521:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4522:         break
                   4523:       fi
                   4524:     fi
                   4525:   done
                   4526: 
                   4527:   cd ..
                   4528:   rm -rf conftest.dir
                   4529: else
                   4530:   am_cv_CXX_dependencies_compiler_type=none
                   4531: fi
                   4532: 
                   4533: fi
                   4534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4535: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4536: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4537: 
                   4538:  if
                   4539:   test "x$enable_dependency_tracking" != xno \
                   4540:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4541:   am__fastdepCXX_TRUE=
                   4542:   am__fastdepCXX_FALSE='#'
                   4543: else
                   4544:   am__fastdepCXX_TRUE='#'
                   4545:   am__fastdepCXX_FALSE=
                   4546: fi
                   4547: 
                   4548: 
                   4549: 
                   4550: if test "$GXX" != yes; then
                   4551:    as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
                   4552: fi
                   4553: 
                   4554: ac_ext=f
                   4555: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4556: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4557: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4558: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4559:   for ac_prog in gfortran
1.15      bertrand 4560:   do
                   4561:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4562: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4564: $as_echo_n "checking for $ac_word... " >&6; }
                   4565: if test "${ac_cv_prog_F77+set}" = set; then :
                   4566:   $as_echo_n "(cached) " >&6
                   4567: else
                   4568:   if test -n "$F77"; then
                   4569:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4570: else
                   4571: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4572: for as_dir in $PATH
                   4573: do
                   4574:   IFS=$as_save_IFS
                   4575:   test -z "$as_dir" && as_dir=.
                   4576:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4577:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4578:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4579:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4580:     break 2
                   4581:   fi
                   4582: done
                   4583:   done
                   4584: IFS=$as_save_IFS
                   4585: 
                   4586: fi
                   4587: fi
                   4588: F77=$ac_cv_prog_F77
                   4589: if test -n "$F77"; then
                   4590:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4591: $as_echo "$F77" >&6; }
                   4592: else
                   4593:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4594: $as_echo "no" >&6; }
                   4595: fi
                   4596: 
                   4597: 
                   4598:     test -n "$F77" && break
                   4599:   done
                   4600: fi
                   4601: if test -z "$F77"; then
                   4602:   ac_ct_F77=$F77
1.23      bertrand 4603:   for ac_prog in gfortran
1.15      bertrand 4604: do
                   4605:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4606: set dummy $ac_prog; ac_word=$2
                   4607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4608: $as_echo_n "checking for $ac_word... " >&6; }
                   4609: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
                   4610:   $as_echo_n "(cached) " >&6
                   4611: else
                   4612:   if test -n "$ac_ct_F77"; then
                   4613:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4614: else
                   4615: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4616: for as_dir in $PATH
                   4617: do
                   4618:   IFS=$as_save_IFS
                   4619:   test -z "$as_dir" && as_dir=.
                   4620:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4621:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4622:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4623:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4624:     break 2
                   4625:   fi
                   4626: done
                   4627:   done
                   4628: IFS=$as_save_IFS
                   4629: 
                   4630: fi
                   4631: fi
                   4632: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4633: if test -n "$ac_ct_F77"; then
                   4634:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4635: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4636: else
1.15      bertrand 4637:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4638: $as_echo "no" >&6; }
                   4639: fi
                   4640: 
                   4641: 
                   4642:   test -n "$ac_ct_F77" && break
                   4643: done
1.1       bertrand 4644: 
1.15      bertrand 4645:   if test "x$ac_ct_F77" = x; then
                   4646:     F77=""
                   4647:   else
                   4648:     case $cross_compiling:$ac_tool_warned in
                   4649: yes:)
                   4650: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4651: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4652: ac_tool_warned=yes ;;
                   4653: esac
                   4654:     F77=$ac_ct_F77
                   4655:   fi
1.14      bertrand 4656: fi
1.1       bertrand 4657: 
                   4658: 
1.15      bertrand 4659: # Provide some information about the compiler.
                   4660: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4661: set X $ac_compile
                   4662: ac_compiler=$2
                   4663: for ac_option in --version -v -V -qversion; do
                   4664:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4665: case "(($ac_try" in
                   4666:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4667:   *) ac_try_echo=$ac_try;;
                   4668: esac
1.15      bertrand 4669: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4670: $as_echo "$ac_try_echo"; } >&5
                   4671:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4672:   ac_status=$?
1.15      bertrand 4673:   if test -s conftest.err; then
                   4674:     sed '10a\
                   4675: ... rest of stderr output deleted ...
                   4676:          10q' conftest.err >conftest.er1
                   4677:     cat conftest.er1 >&5
                   4678:   fi
                   4679:   rm -f conftest.er1 conftest.err
                   4680:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4681:   test $ac_status = 0; }
                   4682: done
                   4683: rm -f a.out
                   4684: 
                   4685: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4686: # input file.  (Note that this only needs to work for GNU compilers.)
                   4687: ac_save_ext=$ac_ext
                   4688: ac_ext=F
                   4689: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4690: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
                   4691: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
                   4692:   $as_echo_n "(cached) " >&6
1.1       bertrand 4693: else
1.15      bertrand 4694:   cat > conftest.$ac_ext <<_ACEOF
                   4695:       program main
                   4696: #ifndef __GNUC__
                   4697:        choke me
                   4698: #endif
1.14      bertrand 4699: 
1.15      bertrand 4700:       end
                   4701: _ACEOF
                   4702: if ac_fn_f77_try_compile "$LINENO"; then :
                   4703:   ac_compiler_gnu=yes
                   4704: else
                   4705:   ac_compiler_gnu=no
1.1       bertrand 4706: fi
1.15      bertrand 4707: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4708: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4709: 
                   4710: fi
1.15      bertrand 4711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4712: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4713: ac_ext=$ac_save_ext
                   4714: ac_test_FFLAGS=${FFLAGS+set}
                   4715: ac_save_FFLAGS=$FFLAGS
                   4716: FFLAGS=
                   4717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4718: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
                   4719: if test "${ac_cv_prog_f77_g+set}" = set; then :
                   4720:   $as_echo_n "(cached) " >&6
                   4721: else
                   4722:   FFLAGS=-g
                   4723: cat > conftest.$ac_ext <<_ACEOF
                   4724:       program main
1.1       bertrand 4725: 
1.15      bertrand 4726:       end
1.14      bertrand 4727: _ACEOF
1.15      bertrand 4728: if ac_fn_f77_try_compile "$LINENO"; then :
                   4729:   ac_cv_prog_f77_g=yes
1.1       bertrand 4730: else
1.15      bertrand 4731:   ac_cv_prog_f77_g=no
1.1       bertrand 4732: fi
1.15      bertrand 4733: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4734: 
                   4735: fi
1.15      bertrand 4736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4737: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4738: if test "$ac_test_FFLAGS" = set; then
                   4739:   FFLAGS=$ac_save_FFLAGS
                   4740: elif test $ac_cv_prog_f77_g = yes; then
                   4741:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4742:     FFLAGS="-g -O2"
                   4743:   else
                   4744:     FFLAGS="-g"
                   4745:   fi
                   4746: else
                   4747:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4748:     FFLAGS="-O2"
                   4749:   else
                   4750:     FFLAGS=
                   4751:   fi
1.1       bertrand 4752: fi
                   4753: 
1.15      bertrand 4754: if test $ac_compiler_gnu = yes; then
                   4755:   G77=yes
1.1       bertrand 4756: else
1.15      bertrand 4757:   G77=
1.1       bertrand 4758: fi
1.15      bertrand 4759: ac_ext=c
                   4760: ac_cpp='$CPP $CPPFLAGS'
                   4761: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4762: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4763: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4764: 
                   4765: 
1.15      bertrand 4766: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
                   4767:    as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
                   4768: fi
1.14      bertrand 4769: 
1.15      bertrand 4770: ac_ext=${ac_fc_srcext-f}
                   4771: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4772: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4773: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4774: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4775:   for ac_prog in gfortran
1.15      bertrand 4776:   do
                   4777:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4778: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4780: $as_echo_n "checking for $ac_word... " >&6; }
                   4781: if test "${ac_cv_prog_FC+set}" = set; then :
                   4782:   $as_echo_n "(cached) " >&6
                   4783: else
                   4784:   if test -n "$FC"; then
                   4785:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4786: else
1.15      bertrand 4787: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4788: for as_dir in $PATH
                   4789: do
                   4790:   IFS=$as_save_IFS
                   4791:   test -z "$as_dir" && as_dir=.
                   4792:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4793:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4794:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4795:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4796:     break 2
                   4797:   fi
                   4798: done
                   4799:   done
                   4800: IFS=$as_save_IFS
1.1       bertrand 4801: 
                   4802: fi
1.15      bertrand 4803: fi
                   4804: FC=$ac_cv_prog_FC
                   4805: if test -n "$FC"; then
                   4806:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4807: $as_echo "$FC" >&6; }
1.14      bertrand 4808: else
1.15      bertrand 4809:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4810: $as_echo "no" >&6; }
1.14      bertrand 4811: fi
                   4812: 
1.1       bertrand 4813: 
1.15      bertrand 4814:     test -n "$FC" && break
                   4815:   done
                   4816: fi
                   4817: if test -z "$FC"; then
                   4818:   ac_ct_FC=$FC
1.23      bertrand 4819:   for ac_prog in gfortran
1.15      bertrand 4820: do
                   4821:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4822: set 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; }
                   4825: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
                   4826:   $as_echo_n "(cached) " >&6
                   4827: else
                   4828:   if test -n "$ac_ct_FC"; then
                   4829:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4830: else
                   4831: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4832: for as_dir in $PATH
                   4833: do
                   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_ac_ct_FC="$ac_prog"
                   4839:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4840:     break 2
                   4841:   fi
                   4842: done
                   4843:   done
                   4844: IFS=$as_save_IFS
1.1       bertrand 4845: 
1.15      bertrand 4846: fi
                   4847: fi
                   4848: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4849: if test -n "$ac_ct_FC"; then
                   4850:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4851: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4852: else
1.15      bertrand 4853:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4854: $as_echo "no" >&6; }
1.1       bertrand 4855: fi
1.14      bertrand 4856: 
1.1       bertrand 4857: 
1.15      bertrand 4858:   test -n "$ac_ct_FC" && break
                   4859: done
1.1       bertrand 4860: 
1.15      bertrand 4861:   if test "x$ac_ct_FC" = x; then
                   4862:     FC=""
                   4863:   else
                   4864:     case $cross_compiling:$ac_tool_warned in
                   4865: yes:)
                   4866: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4867: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4868: ac_tool_warned=yes ;;
1.14      bertrand 4869: esac
1.15      bertrand 4870:     FC=$ac_ct_FC
                   4871:   fi
1.14      bertrand 4872: fi
                   4873: 
                   4874: 
1.15      bertrand 4875: # Provide some information about the compiler.
                   4876: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4877: set X $ac_compile
                   4878: ac_compiler=$2
                   4879: for ac_option in --version -v -V -qversion; do
                   4880:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4881: case "(($ac_try" in
                   4882:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4883:   *) ac_try_echo=$ac_try;;
                   4884: esac
1.15      bertrand 4885: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4886: $as_echo "$ac_try_echo"; } >&5
                   4887:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4888:   ac_status=$?
1.15      bertrand 4889:   if test -s conftest.err; then
                   4890:     sed '10a\
                   4891: ... rest of stderr output deleted ...
                   4892:          10q' conftest.err >conftest.er1
                   4893:     cat conftest.er1 >&5
                   4894:   fi
                   4895:   rm -f conftest.er1 conftest.err
                   4896:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4897:   test $ac_status = 0; }
                   4898: done
                   4899: rm -f a.out
                   4900: 
                   4901: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4902: # input file.  (Note that this only needs to work for GNU compilers.)
                   4903: ac_save_ext=$ac_ext
                   4904: ac_ext=F
                   4905: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4906: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
                   4907: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
                   4908:   $as_echo_n "(cached) " >&6
1.14      bertrand 4909: else
1.15      bertrand 4910:   cat > conftest.$ac_ext <<_ACEOF
                   4911:       program main
                   4912: #ifndef __GNUC__
                   4913:        choke me
                   4914: #endif
1.14      bertrand 4915: 
1.15      bertrand 4916:       end
                   4917: _ACEOF
                   4918: if ac_fn_fc_try_compile "$LINENO"; then :
                   4919:   ac_compiler_gnu=yes
                   4920: else
                   4921:   ac_compiler_gnu=no
1.14      bertrand 4922: fi
                   4923: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4924: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4925: 
1.15      bertrand 4926: fi
                   4927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   4928: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   4929: ac_ext=$ac_save_ext
                   4930: ac_test_FCFLAGS=${FCFLAGS+set}
                   4931: ac_save_FCFLAGS=$FCFLAGS
                   4932: FCFLAGS=
                   4933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   4934: $as_echo_n "checking whether $FC accepts -g... " >&6; }
                   4935: if test "${ac_cv_prog_fc_g+set}" = set; then :
                   4936:   $as_echo_n "(cached) " >&6
                   4937: else
                   4938:   FCFLAGS=-g
                   4939: cat > conftest.$ac_ext <<_ACEOF
                   4940:       program main
1.1       bertrand 4941: 
1.15      bertrand 4942:       end
1.1       bertrand 4943: _ACEOF
1.15      bertrand 4944: if ac_fn_fc_try_compile "$LINENO"; then :
                   4945:   ac_cv_prog_fc_g=yes
1.1       bertrand 4946: else
1.15      bertrand 4947:   ac_cv_prog_fc_g=no
1.1       bertrand 4948: fi
1.14      bertrand 4949: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4950: 
1.15      bertrand 4951: fi
                   4952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   4953: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   4954: if test "$ac_test_FCFLAGS" = set; then
                   4955:   FCFLAGS=$ac_save_FCFLAGS
                   4956: elif test $ac_cv_prog_fc_g = yes; then
                   4957:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4958:     FCFLAGS="-g -O2"
                   4959:   else
                   4960:     FCFLAGS="-g"
                   4961:   fi
1.1       bertrand 4962: else
1.15      bertrand 4963:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4964:     FCFLAGS="-O2"
                   4965:   else
                   4966:     FCFLAGS=
                   4967:   fi
1.1       bertrand 4968: fi
                   4969: 
1.15      bertrand 4970: ac_ext=c
                   4971: ac_cpp='$CPP $CPPFLAGS'
                   4972: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4973: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4974: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4975: 
                   4976: 
1.15      bertrand 4977: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
                   4978:    as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 4979: fi
                   4980: 
1.15      bertrand 4981: if test x"$FC" != x""; then
                   4982:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4983:            awk -F. '{ printf("%s", $1);}'`
                   4984:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4985:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4986:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4987:        OPTIMISATION_F=-O3
                   4988:    else
1.23      bertrand 4989:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 4990:            OPTIMISATION_F=-O3
                   4991:        else
1.23      bertrand 4992:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4993:                OPTIMISATION_F=-O2
                   4994:            else
                   4995:                as_fn_error "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
                   4996:            fi
1.14      bertrand 4997:        fi
                   4998:    fi
                   4999: fi
1.1       bertrand 5000: 
                   5001: 
1.15      bertrand 5002: ac_ext=c
                   5003: ac_cpp='$CPP $CPPFLAGS'
                   5004: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5005: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5006: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5008: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5009: # On Suns, sometimes $CPP names a directory.
                   5010: if test -n "$CPP" && test -d "$CPP"; then
                   5011:   CPP=
                   5012: fi
                   5013: if test -z "$CPP"; then
                   5014:   if test "${ac_cv_prog_CPP+set}" = set; then :
                   5015:   $as_echo_n "(cached) " >&6
                   5016: else
                   5017:       # Double quotes because CPP needs to be expanded
                   5018:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5019:     do
                   5020:       ac_preproc_ok=false
                   5021: for ac_c_preproc_warn_flag in '' yes
                   5022: do
                   5023:   # Use a header file that comes with gcc, so configuring glibc
                   5024:   # with a fresh cross-compiler works.
                   5025:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5026:   # <limits.h> exists even on freestanding compilers.
                   5027:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5028:   # not just through cpp. "Syntax error" is here to catch this case.
                   5029:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5030: /* end confdefs.h.  */
1.15      bertrand 5031: #ifdef __STDC__
                   5032: # include <limits.h>
                   5033: #else
                   5034: # include <assert.h>
                   5035: #endif
                   5036:             Syntax error
1.1       bertrand 5037: _ACEOF
1.15      bertrand 5038: if ac_fn_c_try_cpp "$LINENO"; then :
                   5039: 
1.1       bertrand 5040: else
1.15      bertrand 5041:   # Broken: fails on valid input.
                   5042: continue
1.1       bertrand 5043: fi
1.15      bertrand 5044: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5045: 
1.15      bertrand 5046:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5047:   # can be detected and how.
                   5048:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5049: /* end confdefs.h.  */
                   5050: #include <ac_nonexistent.h>
                   5051: _ACEOF
                   5052: if ac_fn_c_try_cpp "$LINENO"; then :
                   5053:   # Broken: success on invalid input.
                   5054: continue
                   5055: else
                   5056:   # Passes both tests.
                   5057: ac_preproc_ok=:
                   5058: break
1.1       bertrand 5059: fi
1.15      bertrand 5060: rm -f conftest.err conftest.$ac_ext
1.14      bertrand 5061: 
1.15      bertrand 5062: done
                   5063: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5064: rm -f conftest.err conftest.$ac_ext
                   5065: if $ac_preproc_ok; then :
                   5066:   break
1.1       bertrand 5067: fi
                   5068: 
1.15      bertrand 5069:     done
                   5070:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5071: 
1.15      bertrand 5072: fi
                   5073:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5074: else
1.15      bertrand 5075:   ac_cv_prog_CPP=$CPP
                   5076: fi
                   5077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5078: $as_echo "$CPP" >&6; }
                   5079: ac_preproc_ok=false
                   5080: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5081: do
1.15      bertrand 5082:   # Use a header file that comes with gcc, so configuring glibc
                   5083:   # with a fresh cross-compiler works.
                   5084:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5085:   # <limits.h> exists even on freestanding compilers.
                   5086:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5087:   # not just through cpp. "Syntax error" is here to catch this case.
                   5088:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5089: /* end confdefs.h.  */
                   5090: #ifdef __STDC__
                   5091: # include <limits.h>
                   5092: #else
                   5093: # include <assert.h>
                   5094: #endif
                   5095:             Syntax error
                   5096: _ACEOF
                   5097: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5098: 
1.15      bertrand 5099: else
                   5100:   # Broken: fails on valid input.
                   5101: continue
                   5102: fi
                   5103: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5104: 
1.15      bertrand 5105:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5106:   # can be detected and how.
                   5107:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5108: /* end confdefs.h.  */
                   5109: #include <ac_nonexistent.h>
                   5110: _ACEOF
                   5111: if ac_fn_c_try_cpp "$LINENO"; then :
                   5112:   # Broken: success on invalid input.
                   5113: continue
                   5114: else
                   5115:   # Passes both tests.
                   5116: ac_preproc_ok=:
                   5117: break
                   5118: fi
                   5119: rm -f conftest.err conftest.$ac_ext
1.1       bertrand 5120: 
                   5121: done
1.15      bertrand 5122: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5123: rm -f conftest.err conftest.$ac_ext
                   5124: if $ac_preproc_ok; then :
1.1       bertrand 5125: 
1.15      bertrand 5126: else
                   5127:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5128: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5129: as_fn_error "C preprocessor \"$CPP\" fails sanity check
                   5130: See \`config.log' for more details." "$LINENO" 5; }
                   5131: fi
1.14      bertrand 5132: 
1.15      bertrand 5133: ac_ext=c
                   5134: ac_cpp='$CPP $CPPFLAGS'
                   5135: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5136: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5137: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5138: 
                   5139: 
1.15      bertrand 5140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5141: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5142: 
                   5143: 
1.15      bertrand 5144: # Check whether --with-x was given.
                   5145: if test "${with_x+set}" = set; then :
                   5146:   withval=$with_x;
1.1       bertrand 5147: fi
1.14      bertrand 5148: 
1.15      bertrand 5149: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5150: if test "x$with_x" = xno; then
                   5151:   # The user explicitly disabled X.
                   5152:   have_x=disabled
1.1       bertrand 5153: else
1.15      bertrand 5154:   case $x_includes,$x_libraries in #(
                   5155:     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5156:     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
                   5157:   $as_echo_n "(cached) " >&6
1.1       bertrand 5158: else
1.15      bertrand 5159:   # One or both of the vars are not set, and there is no cached value.
                   5160: ac_x_includes=no ac_x_libraries=no
                   5161: rm -f -r conftest.dir
                   5162: if mkdir conftest.dir; then
                   5163:   cd conftest.dir
                   5164:   cat >Imakefile <<'_ACEOF'
                   5165: incroot:
                   5166:    @echo incroot='${INCROOT}'
                   5167: usrlibdir:
                   5168:    @echo usrlibdir='${USRLIBDIR}'
                   5169: libdir:
                   5170:    @echo libdir='${LIBDIR}'
                   5171: _ACEOF
                   5172:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
                   5173:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   5174:     for ac_var in incroot usrlibdir libdir; do
                   5175:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5176:     done
                   5177:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5178:     for ac_extension in a so sl dylib la dll; do
                   5179:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5180:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5181:    ac_im_usrlibdir=$ac_im_libdir; break
                   5182:       fi
                   5183:     done
                   5184:     # Screen out bogus values from the imake configuration.  They are
                   5185:     # bogus both because they are the default anyway, and because
                   5186:     # using them would break gcc on systems where it needs fixed includes.
                   5187:     case $ac_im_incroot in
                   5188:    /usr/include) ac_x_includes= ;;
                   5189:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5190:     esac
                   5191:     case $ac_im_usrlibdir in
                   5192:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5193:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5194:     esac
                   5195:   fi
                   5196:   cd ..
                   5197:   rm -f -r conftest.dir
                   5198: fi
                   5199: 
                   5200: # Standard set of common directories for X headers.
                   5201: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5202: ac_x_header_dirs='
                   5203: /usr/X11/include
                   5204: /usr/X11R7/include
                   5205: /usr/X11R6/include
                   5206: /usr/X11R5/include
                   5207: /usr/X11R4/include
1.1       bertrand 5208: 
1.15      bertrand 5209: /usr/include/X11
                   5210: /usr/include/X11R7
                   5211: /usr/include/X11R6
                   5212: /usr/include/X11R5
                   5213: /usr/include/X11R4
1.1       bertrand 5214: 
1.15      bertrand 5215: /usr/local/X11/include
                   5216: /usr/local/X11R7/include
                   5217: /usr/local/X11R6/include
                   5218: /usr/local/X11R5/include
                   5219: /usr/local/X11R4/include
1.1       bertrand 5220: 
1.15      bertrand 5221: /usr/local/include/X11
                   5222: /usr/local/include/X11R7
                   5223: /usr/local/include/X11R6
                   5224: /usr/local/include/X11R5
                   5225: /usr/local/include/X11R4
1.1       bertrand 5226: 
1.15      bertrand 5227: /usr/X386/include
                   5228: /usr/x386/include
                   5229: /usr/XFree86/include/X11
1.1       bertrand 5230: 
1.15      bertrand 5231: /usr/include
                   5232: /usr/local/include
                   5233: /usr/unsupported/include
                   5234: /usr/athena/include
                   5235: /usr/local/x11r5/include
                   5236: /usr/lpp/Xamples/include
1.1       bertrand 5237: 
1.15      bertrand 5238: /usr/openwin/include
                   5239: /usr/openwin/share/include'
1.1       bertrand 5240: 
1.15      bertrand 5241: if test "$ac_x_includes" = no; then
                   5242:   # Guess where to find include files, by looking for Xlib.h.
                   5243:   # First, try using that file with no special directory specified.
                   5244:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5245: /* end confdefs.h.  */
                   5246: #include <X11/Xlib.h>
                   5247: _ACEOF
                   5248: if ac_fn_c_try_cpp "$LINENO"; then :
                   5249:   # We can compile using X headers with no special include directory.
                   5250: ac_x_includes=
1.1       bertrand 5251: else
1.15      bertrand 5252:   for ac_dir in $ac_x_header_dirs; do
                   5253:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5254:     ac_x_includes=$ac_dir
                   5255:     break
                   5256:   fi
                   5257: done
1.1       bertrand 5258: fi
1.15      bertrand 5259: rm -f conftest.err conftest.$ac_ext
                   5260: fi # $ac_x_includes = no
1.1       bertrand 5261: 
1.15      bertrand 5262: if test "$ac_x_libraries" = no; then
                   5263:   # Check for the libraries.
                   5264:   # See if we find them without any special options.
                   5265:   # Don't add to $LIBS permanently.
                   5266:   ac_save_LIBS=$LIBS
                   5267:   LIBS="-lX11 $LIBS"
                   5268:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5269: /* end confdefs.h.  */
1.15      bertrand 5270: #include <X11/Xlib.h>
1.14      bertrand 5271: int
                   5272: main ()
                   5273: {
1.15      bertrand 5274: XrmInitialize ()
1.14      bertrand 5275:   ;
                   5276:   return 0;
                   5277: }
1.1       bertrand 5278: _ACEOF
1.15      bertrand 5279: if ac_fn_c_try_link "$LINENO"; then :
                   5280:   LIBS=$ac_save_LIBS
                   5281: # We can link X programs with no special library path.
                   5282: ac_x_libraries=
1.1       bertrand 5283: else
1.15      bertrand 5284:   LIBS=$ac_save_LIBS
                   5285: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5286: do
                   5287:   # Don't even attempt the hair of trying to link an X program!
                   5288:   for ac_extension in a so sl dylib la dll; do
                   5289:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5290:       ac_x_libraries=$ac_dir
                   5291:       break 2
                   5292:     fi
                   5293:   done
                   5294: done
                   5295: fi
                   5296: rm -f core conftest.err conftest.$ac_objext \
                   5297:     conftest$ac_exeext conftest.$ac_ext
                   5298: fi # $ac_x_libraries = no
1.1       bertrand 5299: 
1.15      bertrand 5300: case $ac_x_includes,$ac_x_libraries in #(
                   5301:   no,* | *,no | *\'*)
                   5302:     # Didn't find X, or a directory has "'" in its name.
                   5303:     ac_cv_have_x="have_x=no";; #(
                   5304:   *)
                   5305:     # Record where we found X for the cache.
                   5306:     ac_cv_have_x="have_x=yes\
                   5307:    ac_x_includes='$ac_x_includes'\
                   5308:    ac_x_libraries='$ac_x_libraries'"
                   5309: esac
1.1       bertrand 5310: fi
1.15      bertrand 5311: ;; #(
                   5312:     *) have_x=yes;;
                   5313:   esac
                   5314:   eval "$ac_cv_have_x"
                   5315: fi # $with_x != no
1.1       bertrand 5316: 
1.15      bertrand 5317: if test "$have_x" != yes; then
                   5318:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5319: $as_echo "$have_x" >&6; }
                   5320:   no_x=yes
1.14      bertrand 5321: else
1.15      bertrand 5322:   # If each of the values was on the command line, it overrides each guess.
                   5323:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5324:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5325:   # Update the cache value to reflect the command line values.
                   5326:   ac_cv_have_x="have_x=yes\
                   5327:    ac_x_includes='$x_includes'\
                   5328:    ac_x_libraries='$x_libraries'"
                   5329:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5330: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5331: fi
1.1       bertrand 5332: 
1.15      bertrand 5333: if test "$no_x" = yes; then
                   5334:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5335: 
1.15      bertrand 5336: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5337: 
1.15      bertrand 5338:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5339: else
1.15      bertrand 5340:   if test -n "$x_includes"; then
                   5341:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5342:   fi
                   5343: 
                   5344:   # It would also be nice to do this for all -L options, not just this one.
                   5345:   if test -n "$x_libraries"; then
                   5346:     X_LIBS="$X_LIBS -L$x_libraries"
                   5347:     # For Solaris; some versions of Sun CC require a space after -R and
                   5348:     # others require no space.  Words are not sufficient . . . .
                   5349:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5350: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5351:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5352:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5353:     ac_c_werror_flag=yes
                   5354:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5355: /* end confdefs.h.  */
1.1       bertrand 5356: 
1.15      bertrand 5357: int
                   5358: main ()
                   5359: {
1.1       bertrand 5360: 
1.15      bertrand 5361:   ;
                   5362:   return 0;
                   5363: }
                   5364: _ACEOF
                   5365: if ac_fn_c_try_link "$LINENO"; then :
                   5366:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5367: $as_echo "no" >&6; }
                   5368:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5369: else
1.15      bertrand 5370:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5371:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5372: /* end confdefs.h.  */
1.1       bertrand 5373: 
1.14      bertrand 5374: int
                   5375: main ()
                   5376: {
1.15      bertrand 5377: 
                   5378:   ;
1.14      bertrand 5379:   return 0;
                   5380: }
                   5381: _ACEOF
1.15      bertrand 5382: if ac_fn_c_try_link "$LINENO"; then :
                   5383:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5384: $as_echo "yes" >&6; }
                   5385:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5386: else
1.15      bertrand 5387:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5388: $as_echo "neither works" >&6; }
1.14      bertrand 5389: fi
1.15      bertrand 5390: rm -f core conftest.err conftest.$ac_objext \
                   5391:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5392: fi
1.15      bertrand 5393: rm -f core conftest.err conftest.$ac_objext \
                   5394:     conftest$ac_exeext conftest.$ac_ext
                   5395:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5396:     LIBS=$ac_xsave_LIBS
                   5397:   fi
1.1       bertrand 5398: 
1.15      bertrand 5399:   # Check for system-dependent libraries X programs must link with.
                   5400:   # Do this before checking for the system-independent R6 libraries
                   5401:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5402: 
1.15      bertrand 5403:   if test "$ISC" = yes; then
                   5404:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5405:   else
                   5406:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5407:     # libraries were built with DECnet support.  And Karl Berry says
                   5408:     # the Alpha needs dnet_stub (dnet does not exist).
                   5409:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5410:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5411: /* end confdefs.h.  */
1.1       bertrand 5412: 
1.15      bertrand 5413: /* Override any GCC internal prototype to avoid an error.
                   5414:    Use char because int might match the return type of a GCC
                   5415:    builtin and then its argument prototype would still apply.  */
                   5416: #ifdef __cplusplus
                   5417: extern "C"
                   5418: #endif
                   5419: char XOpenDisplay ();
                   5420: int
                   5421: main ()
                   5422: {
                   5423: return XOpenDisplay ();
                   5424:   ;
                   5425:   return 0;
                   5426: }
1.1       bertrand 5427: _ACEOF
1.15      bertrand 5428: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5429: 
                   5430: else
1.15      bertrand 5431:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5432: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
                   5433: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
                   5434:   $as_echo_n "(cached) " >&6
                   5435: else
                   5436:   ac_check_lib_save_LIBS=$LIBS
                   5437: LIBS="-ldnet  $LIBS"
                   5438: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5439: /* end confdefs.h.  */
1.14      bertrand 5440: 
1.15      bertrand 5441: /* Override any GCC internal prototype to avoid an error.
                   5442:    Use char because int might match the return type of a GCC
                   5443:    builtin and then its argument prototype would still apply.  */
                   5444: #ifdef __cplusplus
                   5445: extern "C"
                   5446: #endif
                   5447: char dnet_ntoa ();
                   5448: int
                   5449: main ()
                   5450: {
                   5451: return dnet_ntoa ();
                   5452:   ;
                   5453:   return 0;
                   5454: }
1.1       bertrand 5455: _ACEOF
1.15      bertrand 5456: if ac_fn_c_try_link "$LINENO"; then :
                   5457:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5458: else
1.15      bertrand 5459:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5460: fi
1.15      bertrand 5461: rm -f core conftest.err conftest.$ac_objext \
                   5462:     conftest$ac_exeext conftest.$ac_ext
                   5463: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5464: fi
1.15      bertrand 5465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5466: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
                   5467: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
                   5468:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5469: fi
                   5470: 
1.15      bertrand 5471:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5472:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5473: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
                   5474: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
                   5475:   $as_echo_n "(cached) " >&6
1.14      bertrand 5476: else
1.15      bertrand 5477:   ac_check_lib_save_LIBS=$LIBS
                   5478: LIBS="-ldnet_stub  $LIBS"
                   5479: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5480: /* end confdefs.h.  */
1.15      bertrand 5481: 
                   5482: /* Override any GCC internal prototype to avoid an error.
                   5483:    Use char because int might match the return type of a GCC
                   5484:    builtin and then its argument prototype would still apply.  */
                   5485: #ifdef __cplusplus
                   5486: extern "C"
                   5487: #endif
                   5488: char dnet_ntoa ();
1.1       bertrand 5489: int
                   5490: main ()
                   5491: {
1.15      bertrand 5492: return dnet_ntoa ();
1.1       bertrand 5493:   ;
                   5494:   return 0;
                   5495: }
                   5496: _ACEOF
1.15      bertrand 5497: if ac_fn_c_try_link "$LINENO"; then :
                   5498:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5499: else
1.15      bertrand 5500:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5501: fi
                   5502: rm -f core conftest.err conftest.$ac_objext \
                   5503:     conftest$ac_exeext conftest.$ac_ext
                   5504: LIBS=$ac_check_lib_save_LIBS
                   5505: fi
                   5506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5507: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
                   5508: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
                   5509:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5510: fi
1.14      bertrand 5511: 
1.15      bertrand 5512:     fi
1.1       bertrand 5513: fi
1.15      bertrand 5514: rm -f core conftest.err conftest.$ac_objext \
                   5515:     conftest$ac_exeext conftest.$ac_ext
                   5516:     LIBS="$ac_xsave_LIBS"
                   5517: 
                   5518:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5519:     # to get the SysV transport functions.
                   5520:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5521:     # needs -lnsl.
                   5522:     # The nsl library prevents programs from opening the X display
                   5523:     # on Irix 5.2, according to T.E. Dickey.
                   5524:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5525:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5526:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
                   5527: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1.1       bertrand 5528: 
                   5529: fi
                   5530: 
1.15      bertrand 5531:     if test $ac_cv_func_gethostbyname = no; then
                   5532:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5533: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
                   5534: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
                   5535:   $as_echo_n "(cached) " >&6
1.1       bertrand 5536: else
1.15      bertrand 5537:   ac_check_lib_save_LIBS=$LIBS
                   5538: LIBS="-lnsl  $LIBS"
                   5539: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5540: /* end confdefs.h.  */
1.15      bertrand 5541: 
                   5542: /* Override any GCC internal prototype to avoid an error.
                   5543:    Use char because int might match the return type of a GCC
                   5544:    builtin and then its argument prototype would still apply.  */
                   5545: #ifdef __cplusplus
                   5546: extern "C"
                   5547: #endif
                   5548: char gethostbyname ();
1.1       bertrand 5549: int
                   5550: main ()
                   5551: {
1.15      bertrand 5552: return gethostbyname ();
1.1       bertrand 5553:   ;
                   5554:   return 0;
                   5555: }
                   5556: _ACEOF
1.15      bertrand 5557: if ac_fn_c_try_link "$LINENO"; then :
                   5558:   ac_cv_lib_nsl_gethostbyname=yes
                   5559: else
                   5560:   ac_cv_lib_nsl_gethostbyname=no
                   5561: fi
                   5562: rm -f core conftest.err conftest.$ac_objext \
                   5563:     conftest$ac_exeext conftest.$ac_ext
                   5564: LIBS=$ac_check_lib_save_LIBS
                   5565: fi
                   5566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5567: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
                   5568: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
                   5569:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5570: fi
                   5571: 
                   5572:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5573:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5574: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
                   5575: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
                   5576:   $as_echo_n "(cached) " >&6
                   5577: else
                   5578:   ac_check_lib_save_LIBS=$LIBS
                   5579: LIBS="-lbsd  $LIBS"
                   5580: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5581: /* end confdefs.h.  */
1.15      bertrand 5582: 
                   5583: /* Override any GCC internal prototype to avoid an error.
                   5584:    Use char because int might match the return type of a GCC
                   5585:    builtin and then its argument prototype would still apply.  */
                   5586: #ifdef __cplusplus
                   5587: extern "C"
                   5588: #endif
                   5589: char gethostbyname ();
1.1       bertrand 5590: int
                   5591: main ()
                   5592: {
1.15      bertrand 5593: return gethostbyname ();
1.1       bertrand 5594:   ;
                   5595:   return 0;
                   5596: }
                   5597: _ACEOF
1.15      bertrand 5598: if ac_fn_c_try_link "$LINENO"; then :
                   5599:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5600: else
1.15      bertrand 5601:   ac_cv_lib_bsd_gethostbyname=no
                   5602: fi
                   5603: rm -f core conftest.err conftest.$ac_objext \
                   5604:     conftest$ac_exeext conftest.$ac_ext
                   5605: LIBS=$ac_check_lib_save_LIBS
                   5606: fi
                   5607: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5608: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
                   5609: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
                   5610:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5611: fi
                   5612: 
                   5613:       fi
                   5614:     fi
                   5615: 
                   5616:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5617:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5618:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5619:     # on later versions), says Simon Leinen: it contains gethostby*
                   5620:     # variants that don't use the name server (or something).  -lsocket
                   5621:     # must be given before -lnsl if both are needed.  We assume that
                   5622:     # if connect needs -lnsl, so does gethostbyname.
                   5623:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
                   5624: if test "x$ac_cv_func_connect" = x""yes; then :
1.14      bertrand 5625: 
1.1       bertrand 5626: fi
                   5627: 
1.15      bertrand 5628:     if test $ac_cv_func_connect = no; then
                   5629:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5630: $as_echo_n "checking for connect in -lsocket... " >&6; }
                   5631: if test "${ac_cv_lib_socket_connect+set}" = set; then :
                   5632:   $as_echo_n "(cached) " >&6
1.14      bertrand 5633: else
1.15      bertrand 5634:   ac_check_lib_save_LIBS=$LIBS
                   5635: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5636: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5637: /* end confdefs.h.  */
1.1       bertrand 5638: 
1.15      bertrand 5639: /* Override any GCC internal prototype to avoid an error.
                   5640:    Use char because int might match the return type of a GCC
                   5641:    builtin and then its argument prototype would still apply.  */
                   5642: #ifdef __cplusplus
                   5643: extern "C"
                   5644: #endif
                   5645: char connect ();
1.14      bertrand 5646: int
                   5647: main ()
                   5648: {
1.15      bertrand 5649: return connect ();
1.14      bertrand 5650:   ;
                   5651:   return 0;
                   5652: }
                   5653: _ACEOF
1.15      bertrand 5654: if ac_fn_c_try_link "$LINENO"; then :
                   5655:   ac_cv_lib_socket_connect=yes
                   5656: else
                   5657:   ac_cv_lib_socket_connect=no
                   5658: fi
                   5659: rm -f core conftest.err conftest.$ac_objext \
                   5660:     conftest$ac_exeext conftest.$ac_ext
                   5661: LIBS=$ac_check_lib_save_LIBS
                   5662: fi
                   5663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5664: $as_echo "$ac_cv_lib_socket_connect" >&6; }
                   5665: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
                   5666:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5667: fi
                   5668: 
                   5669:     fi
                   5670: 
                   5671:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5672:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
                   5673: if test "x$ac_cv_func_remove" = x""yes; then :
                   5674: 
                   5675: fi
                   5676: 
                   5677:     if test $ac_cv_func_remove = no; then
                   5678:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5679: $as_echo_n "checking for remove in -lposix... " >&6; }
                   5680: if test "${ac_cv_lib_posix_remove+set}" = set; then :
                   5681:   $as_echo_n "(cached) " >&6
                   5682: else
                   5683:   ac_check_lib_save_LIBS=$LIBS
                   5684: LIBS="-lposix  $LIBS"
                   5685: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5686: /* end confdefs.h.  */
1.15      bertrand 5687: 
                   5688: /* Override any GCC internal prototype to avoid an error.
                   5689:    Use char because int might match the return type of a GCC
                   5690:    builtin and then its argument prototype would still apply.  */
                   5691: #ifdef __cplusplus
                   5692: extern "C"
                   5693: #endif
                   5694: char remove ();
1.1       bertrand 5695: int
                   5696: main ()
                   5697: {
1.15      bertrand 5698: return remove ();
1.1       bertrand 5699:   ;
                   5700:   return 0;
                   5701: }
                   5702: _ACEOF
1.15      bertrand 5703: if ac_fn_c_try_link "$LINENO"; then :
                   5704:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5705: else
1.15      bertrand 5706:   ac_cv_lib_posix_remove=no
                   5707: fi
                   5708: rm -f core conftest.err conftest.$ac_objext \
                   5709:     conftest$ac_exeext conftest.$ac_ext
                   5710: LIBS=$ac_check_lib_save_LIBS
                   5711: fi
                   5712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5713: $as_echo "$ac_cv_lib_posix_remove" >&6; }
                   5714: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
                   5715:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5716: fi
1.1       bertrand 5717: 
1.15      bertrand 5718:     fi
1.14      bertrand 5719: 
1.15      bertrand 5720:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5721:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
                   5722: if test "x$ac_cv_func_shmat" = x""yes; then :
1.14      bertrand 5723: 
                   5724: fi
                   5725: 
1.15      bertrand 5726:     if test $ac_cv_func_shmat = no; then
                   5727:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5728: $as_echo_n "checking for shmat in -lipc... " >&6; }
                   5729: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
                   5730:   $as_echo_n "(cached) " >&6
                   5731: else
                   5732:   ac_check_lib_save_LIBS=$LIBS
                   5733: LIBS="-lipc  $LIBS"
                   5734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5735: /* end confdefs.h.  */
1.15      bertrand 5736: 
                   5737: /* Override any GCC internal prototype to avoid an error.
                   5738:    Use char because int might match the return type of a GCC
                   5739:    builtin and then its argument prototype would still apply.  */
                   5740: #ifdef __cplusplus
                   5741: extern "C"
                   5742: #endif
                   5743: char shmat ();
1.1       bertrand 5744: int
                   5745: main ()
                   5746: {
1.15      bertrand 5747: return shmat ();
1.1       bertrand 5748:   ;
                   5749:   return 0;
                   5750: }
                   5751: _ACEOF
1.15      bertrand 5752: if ac_fn_c_try_link "$LINENO"; then :
                   5753:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5754: else
1.15      bertrand 5755:   ac_cv_lib_ipc_shmat=no
                   5756: fi
                   5757: rm -f core conftest.err conftest.$ac_objext \
                   5758:     conftest$ac_exeext conftest.$ac_ext
                   5759: LIBS=$ac_check_lib_save_LIBS
                   5760: fi
                   5761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5762: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
                   5763: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
                   5764:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5765: fi
1.14      bertrand 5766: 
1.15      bertrand 5767:     fi
                   5768:   fi
1.1       bertrand 5769: 
1.15      bertrand 5770:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5771:   ac_save_LDFLAGS=$LDFLAGS
                   5772:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5773:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5774:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5775:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5776:   # These have to be linked with before -lX11, unlike the other
                   5777:   # libraries we check for below, so use a different variable.
                   5778:   # John Interrante, Karl Berry
                   5779:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5780: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
                   5781: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
                   5782:   $as_echo_n "(cached) " >&6
1.1       bertrand 5783: else
1.15      bertrand 5784:   ac_check_lib_save_LIBS=$LIBS
                   5785: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5786: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5787: /* end confdefs.h.  */
1.15      bertrand 5788: 
                   5789: /* Override any GCC internal prototype to avoid an error.
                   5790:    Use char because int might match the return type of a GCC
                   5791:    builtin and then its argument prototype would still apply.  */
                   5792: #ifdef __cplusplus
                   5793: extern "C"
                   5794: #endif
                   5795: char IceConnectionNumber ();
1.1       bertrand 5796: int
                   5797: main ()
                   5798: {
1.15      bertrand 5799: return IceConnectionNumber ();
1.1       bertrand 5800:   ;
                   5801:   return 0;
                   5802: }
                   5803: _ACEOF
1.15      bertrand 5804: if ac_fn_c_try_link "$LINENO"; then :
                   5805:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5806: else
1.15      bertrand 5807:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5808: fi
                   5809: rm -f core conftest.err conftest.$ac_objext \
                   5810:     conftest$ac_exeext conftest.$ac_ext
                   5811: LIBS=$ac_check_lib_save_LIBS
                   5812: fi
                   5813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5814: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
                   5815: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
                   5816:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5817: fi
                   5818: 
                   5819:   LDFLAGS=$ac_save_LDFLAGS
                   5820: 
                   5821: fi
                   5822: 
1.14      bertrand 5823: 
1.15      bertrand 5824: if test "$ac_x_includes" != "no"; then
                   5825:    if test x"$ac_x_includes" != x; then
                   5826:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5827:        includeX="-I$ac_x_includes"
                   5828:    fi
1.1       bertrand 5829: fi
1.15      bertrand 5830: if test "$ac_x_libraries" != "no"; then
                   5831:    if test x"$ac_x_libraries" != x; then
                   5832:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5833:    fi
1.1       bertrand 5834: fi
1.15      bertrand 5835: 
                   5836: # Check whether --enable-optimization was given.
                   5837: if test "${enable_optimization+set}" = set; then :
                   5838:   enableval=$enable_optimization;
                   5839: if test "$enableval" = "no"; then
                   5840:    CFLAGS=
                   5841:    FFLAGS=
                   5842:    CXXFLAGS=
                   5843:    FCFLAGS=
                   5844: else
                   5845:    CFLAGS="$CFLAGS $enable_optimization"
                   5846:    FFLAGS="$FFLAGS $enable_optimization"
                   5847:    FCFLAGS="$FCFLAGS $enable_optimization"
1.1       bertrand 5848: fi
1.15      bertrand 5849: else
1.14      bertrand 5850: 
1.15      bertrand 5851:    CFLAGS="$CFLAGS $OPTIMISATION_C"
                   5852:    FFLAGS="$FFLAGS $OPTIMISATION_F"
                   5853:    FCFLAGS="$FCFLAGS $OPTIMISATION_F"
1.1       bertrand 5854: 
                   5855: 
1.15      bertrand 5856: fi
1.1       bertrand 5857: 
                   5858: 
1.30      bertrand 5859: # Check whether --enable-full-static was given.
                   5860: if test "${enable_full_static+set}" = set; then :
                   5861:   enableval=$enable_full_static;
                   5862: if test "$enableval" = "no"; then
                   5863:    STATIC=no
                   5864: else
                   5865:    STATIC=yes
                   5866: fi
                   5867: else
                   5868:   STATIC=no
                   5869: fi
                   5870: 
                   5871: 
1.15      bertrand 5872: # Check whether --enable-final-encoding was given.
                   5873: if test "${enable_final_encoding+set}" = set; then :
                   5874:   enableval=$enable_final_encoding;
                   5875: if test "$enableval" = "no"; then
                   5876:    FINAL_ENCODING="\$(shell locale charmap | \
                   5877:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35    ! bertrand 5878:    FORCED_FINAL_ENCODING=0
1.1       bertrand 5879: else
1.15      bertrand 5880:    FINAL_ENCODING="$enable_final_encoding"
1.35    ! bertrand 5881:    FORCED_FINAL_ENCODING=1
1.15      bertrand 5882: fi
1.1       bertrand 5883: else
1.35    ! bertrand 5884: 
        !          5885: FORCED_FINAL_ENCODING=0
        !          5886: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 5887:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   5888: fi
                   5889: 
1.14      bertrand 5890: 
1.15      bertrand 5891: # Check whether --enable-tex was given.
                   5892: if test "${enable_tex+set}" = set; then :
                   5893:   enableval=$enable_tex;
                   5894: if test "$enableval" = "no"; then
                   5895:    TEX_SUPPORT=no
                   5896: else
                   5897:    TEX_SUPPORT=yes
1.1       bertrand 5898: fi
1.15      bertrand 5899: else
                   5900:   TEX_SUPPORT=guessed
                   5901: fi
                   5902: 
1.14      bertrand 5903: 
1.15      bertrand 5904: # Check whether --enable-vim was given.
                   5905: if test "${enable_vim+set}" = set; then :
                   5906:   enableval=$enable_vim;
                   5907: if test "$enableval" = "no"; then
                   5908:    VIM_SUPPORT=no
                   5909: else
                   5910:    VIM_SUPPORT=yes
                   5911: fi
                   5912: else
                   5913:   VIM_SUPPORT=guessed
1.1       bertrand 5914: fi
                   5915: 
1.15      bertrand 5916: 
                   5917: # Check whether --enable-embedded-gnuplot was given.
                   5918: if test "${enable_embedded_gnuplot+set}" = set; then :
                   5919:   enableval=$enable_embedded_gnuplot;
                   5920: if test "$enableval" = "no"; then
                   5921:    MYGNUPLOT=no
                   5922: else
                   5923:    MYGNUPLOT=yes
                   5924: fi
1.1       bertrand 5925: else
                   5926: 
1.15      bertrand 5927: MYGNUPLOT=yes
                   5928: fi
                   5929: 
1.14      bertrand 5930: 
1.15      bertrand 5931: # Check whether --enable-gnuplot was given.
                   5932: if test "${enable_gnuplot+set}" = set; then :
                   5933:   enableval=$enable_gnuplot;
                   5934: if test "$enableval" = "no"; then
                   5935:    GNUPLOT_SUPPORT=no
                   5936:    MYGNUPLOT=no
                   5937:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5938: else
                   5939:    GNUPLOT_SUPPORT=yes
                   5940:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5941: fi
1.1       bertrand 5942: else
                   5943: 
1.15      bertrand 5944: if test "$MYGNUPLOT" = "yes"; then
                   5945:    GNUPLOT_SUPPORT=yes
                   5946:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5947: else
                   5948:    GNUPLOT_SUPPORT=guessed
                   5949:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5950: fi
1.1       bertrand 5951: fi
                   5952: 
1.15      bertrand 5953: 
                   5954: # Check whether --enable-motif was given.
                   5955: if test "${enable_motif+set}" = set; then :
                   5956:   enableval=$enable_motif;
                   5957: if test "$enableval" = "no"; then
                   5958:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   5959: else
                   5960:    CFLAGS_ORIG=$CFLAGS
                   5961:    LIBS_ORIG=$LIBS
                   5962:    CFLAGS="$CFLAGS $X_CFLAGS"
                   5963:    LIBS="$LIB $X_LIBS"
                   5964:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   5965: $as_echo_n "checking for main in -lXm... " >&6; }
                   5966: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   5967:   $as_echo_n "(cached) " >&6
1.1       bertrand 5968: else
1.15      bertrand 5969:   ac_check_lib_save_LIBS=$LIBS
                   5970: LIBS="-lXm  $LIBS"
                   5971: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5972: /* end confdefs.h.  */
1.14      bertrand 5973: 
                   5974: 
1.1       bertrand 5975: int
                   5976: main ()
                   5977: {
1.15      bertrand 5978: return main ();
1.1       bertrand 5979:   ;
                   5980:   return 0;
                   5981: }
                   5982: _ACEOF
1.15      bertrand 5983: if ac_fn_c_try_link "$LINENO"; then :
                   5984:   ac_cv_lib_Xm_main=yes
                   5985: else
                   5986:   ac_cv_lib_Xm_main=no
                   5987: fi
                   5988: rm -f core conftest.err conftest.$ac_objext \
                   5989:     conftest$ac_exeext conftest.$ac_ext
                   5990: LIBS=$ac_check_lib_save_LIBS
                   5991: fi
                   5992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   5993: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   5994: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   5995:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 5996: else
1.15      bertrand 5997:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   5998: fi
1.14      bertrand 5999: 
1.15      bertrand 6000:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6001:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
                   6002: Motif flag is disabled.
                   6003: " >&5
                   6004: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
                   6005: Motif flag is disabled.
                   6006: " >&2;}
                   6007:    fi
                   6008:    LIBS=$LIBS_ORIG
                   6009:    CFLAGS=$CFLAGS_ORIG
                   6010: fi
                   6011: else
                   6012:   MOTIF_SUPPORT=guessed
1.1       bertrand 6013: fi
                   6014: 
1.15      bertrand 6015: 
                   6016: # Check whether --enable-experimental was given.
                   6017: if test "${enable_experimental+set}" = set; then :
                   6018:   enableval=$enable_experimental;
                   6019: if test "$enableval" = "no"; then
                   6020:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6021: else
                   6022:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6023: fi
1.14      bertrand 6024: else
1.15      bertrand 6025:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6026: fi
                   6027: 
1.1       bertrand 6028: 
1.15      bertrand 6029: # Check whether --enable-debug was given.
                   6030: if test "${enable_debug+set}" = set; then :
                   6031:   enableval=$enable_debug;
                   6032: if test "$enableval" = "no"; then
1.24      bertrand 6033:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
                   6034:    MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.15      bertrand 6035: else
1.24      bertrand 6036:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
                   6037:    MALLOC=""
1.15      bertrand 6038: fi
                   6039: else
1.24      bertrand 6040:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
                   6041:    MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.14      bertrand 6042: fi
1.1       bertrand 6043: 
1.15      bertrand 6044: 
                   6045: # Check whether --enable-profile was given.
                   6046: if test "${enable_profile+set}" = set; then :
                   6047:   enableval=$enable_profile;
                   6048: if test "$enableval" = "no"; then
                   6049:    PROFILAGE=""
                   6050: else
                   6051:    PROFILAGE="-pg"
                   6052: fi
                   6053: else
                   6054:   PROFILAGE=""
1.1       bertrand 6055: fi
                   6056: 
1.14      bertrand 6057: 
                   6058: 
1.15      bertrand 6059: 
                   6060: if test ! -d tools; then
                   6061:    mkdir tools
                   6062: fi
                   6063: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6064:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6065:            (cd "$srcdir/tools" && tar -xf -)
                   6066: fi
                   6067: if test ! -d "$srcdir"/tools/$READLINE; then
                   6068:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6069:            (cd "$srcdir/tools" && tar -xf -)
                   6070: fi
                   6071: if test ! -d "$srcdir"/tools/$UNITS; then
                   6072:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6073:            (cd "$srcdir/tools" && tar -xf -)
                   6074: fi
                   6075: if test ! -d "$srcdir"/tools/$GSL; then
                   6076:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6077:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6078:    if test $(uname) = "OS/2"; then
                   6079:        (cd "$srcdir"/tools/$GSL; \
                   6080:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6081:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6082:                \mv -f $TMP ltmain.sh)
                   6083:    fi
1.15      bertrand 6084: fi
                   6085: if test ! -d "$srcdir"/tools/$GPP; then
                   6086:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6087:            (cd "$srcdir/tools" && tar -xf -)
                   6088: fi
                   6089: if test ! -d "$srcdir"/tools/$FILE; then
                   6090:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6091:            (cd "$srcdir/tools" && tar -xf - )
                   6092:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6093: fi
                   6094: if test ! -d "$srcdir"/tools/$ICONV; then
                   6095:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6096:            (cd "$srcdir/tools" && tar -xf -)
                   6097: fi
                   6098: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6099:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6100:            (cd "$srcdir/tools" && tar -xf -)
1.31      bertrand 6101:    (cd "$srcdir/tools"/$SQLITE && gunzip -c ../$SQLITE.diff.gz | patch -p1)
1.15      bertrand 6102: fi
                   6103: if test ! -d tools/$OPENSSL; then
                   6104:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6105:            (cd tools && tar -xf -)
1.1       bertrand 6106: fi
                   6107: 
                   6108: 
                   6109: 
1.15      bertrand 6110: # Check whether --enable-final-run-path was given.
                   6111: if test "${enable_final_run_path+set}" = set; then :
                   6112:   enableval=$enable_final_run_path;
                   6113:    if test "x$enable_final_run_path" = "x"; then
                   6114:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6115: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
                   6116:        as_fn_error "\"You should specify final path !\"" "$LINENO" 5
                   6117:    else
                   6118:        RUNPATH="$enable_final_run_path"
                   6119:    fi
1.1       bertrand 6120: 
                   6121: else
1.15      bertrand 6122:   RUNPATH="\${prefix}"
1.1       bertrand 6123: 
                   6124: fi
                   6125: 
1.15      bertrand 6126: 
                   6127: 
                   6128: 
                   6129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6130: $as_echo_n "checking whether ln -s works... " >&6; }
                   6131: LN_S=$as_ln_s
                   6132: if test "$LN_S" = "ln -s"; then
                   6133:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6134: $as_echo "yes" >&6; }
                   6135: else
                   6136:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6137: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6138: fi
                   6139: 
1.15      bertrand 6140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6141: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6142: set x ${MAKE-make}
                   6143: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
                   6144: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
                   6145:   $as_echo_n "(cached) " >&6
1.1       bertrand 6146: else
1.15      bertrand 6147:   cat >conftest.make <<\_ACEOF
                   6148: SHELL = /bin/sh
                   6149: all:
                   6150:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6151: _ACEOF
1.15      bertrand 6152: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   6153: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6154:   *@@@%%%=?*=@@@%%%*)
                   6155:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6156:   *)
                   6157:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6158: esac
1.15      bertrand 6159: rm -f conftest.make
                   6160: fi
                   6161: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6162:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6163: $as_echo "yes" >&6; }
                   6164:   SET_MAKE=
                   6165: else
                   6166:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6167: $as_echo "no" >&6; }
                   6168:   SET_MAKE="MAKE=${MAKE-make}"
                   6169: fi
1.1       bertrand 6170: 
1.15      bertrand 6171: if test -n "$ac_tool_prefix"; then
                   6172:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6173: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6175: $as_echo_n "checking for $ac_word... " >&6; }
                   6176: if test "${ac_cv_prog_RANLIB+set}" = set; then :
                   6177:   $as_echo_n "(cached) " >&6
                   6178: else
                   6179:   if test -n "$RANLIB"; then
                   6180:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6181: else
1.15      bertrand 6182: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6183: for as_dir in $PATH
                   6184: do
                   6185:   IFS=$as_save_IFS
                   6186:   test -z "$as_dir" && as_dir=.
                   6187:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6188:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6189:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6190:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6191:     break 2
                   6192:   fi
                   6193: done
                   6194:   done
                   6195: IFS=$as_save_IFS
1.1       bertrand 6196: 
                   6197: fi
1.15      bertrand 6198: fi
                   6199: RANLIB=$ac_cv_prog_RANLIB
                   6200: if test -n "$RANLIB"; then
                   6201:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6202: $as_echo "$RANLIB" >&6; }
                   6203: else
                   6204:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6205: $as_echo "no" >&6; }
                   6206: fi
                   6207: 
1.1       bertrand 6208: 
1.15      bertrand 6209: fi
                   6210: if test -z "$ac_cv_prog_RANLIB"; then
                   6211:   ac_ct_RANLIB=$RANLIB
                   6212:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6213: set dummy ranlib; ac_word=$2
                   6214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6215: $as_echo_n "checking for $ac_word... " >&6; }
                   6216: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
                   6217:   $as_echo_n "(cached) " >&6
                   6218: else
                   6219:   if test -n "$ac_ct_RANLIB"; then
                   6220:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6221: else
                   6222: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6223: for as_dir in $PATH
                   6224: do
                   6225:   IFS=$as_save_IFS
                   6226:   test -z "$as_dir" && as_dir=.
                   6227:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6228:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6229:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6230:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6231:     break 2
                   6232:   fi
                   6233: done
1.14      bertrand 6234:   done
1.15      bertrand 6235: IFS=$as_save_IFS
                   6236: 
                   6237: fi
                   6238: fi
                   6239: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6240: if test -n "$ac_ct_RANLIB"; then
                   6241:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6242: $as_echo "$ac_ct_RANLIB" >&6; }
                   6243: else
                   6244:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6245: $as_echo "no" >&6; }
                   6246: fi
                   6247: 
                   6248:   if test "x$ac_ct_RANLIB" = x; then
                   6249:     RANLIB=":"
                   6250:   else
                   6251:     case $cross_compiling:$ac_tool_warned in
                   6252: yes:)
                   6253: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6254: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6255: ac_tool_warned=yes ;;
                   6256: esac
                   6257:     RANLIB=$ac_ct_RANLIB
                   6258:   fi
1.14      bertrand 6259: else
1.15      bertrand 6260:   RANLIB="$ac_cv_prog_RANLIB"
                   6261: fi
1.1       bertrand 6262: 
                   6263: 
1.15      bertrand 6264: # Extract the first word of "nawk", so it can be a program name with args.
                   6265: set dummy nawk; ac_word=$2
                   6266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6267: $as_echo_n "checking for $ac_word... " >&6; }
                   6268: if test "${ac_cv_prog_AWK+set}" = set; then :
                   6269:   $as_echo_n "(cached) " >&6
                   6270: else
                   6271:   if test -n "$AWK"; then
                   6272:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6273: else
                   6274: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6275: for as_dir in $PATH
                   6276: do
                   6277:   IFS=$as_save_IFS
                   6278:   test -z "$as_dir" && as_dir=.
                   6279:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6280:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6281:     ac_cv_prog_AWK="yes"
                   6282:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6283:     break 2
                   6284:   fi
                   6285: done
                   6286:   done
                   6287: IFS=$as_save_IFS
1.1       bertrand 6288: 
1.15      bertrand 6289:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6290: fi
                   6291: fi
                   6292: AWK=$ac_cv_prog_AWK
                   6293: if test -n "$AWK"; then
                   6294:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6295: $as_echo "$AWK" >&6; }
1.1       bertrand 6296: else
1.15      bertrand 6297:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6298: $as_echo "no" >&6; }
                   6299: fi
                   6300: 
1.1       bertrand 6301: 
1.15      bertrand 6302: if test "$AWK" = no; then
                   6303:    as_fn_error "Can not find nawk !" "$LINENO" 5
1.1       bertrand 6304: fi
                   6305: 
1.15      bertrand 6306: # Extract the first word of "sed", so it can be a program name with args.
                   6307: set dummy sed; ac_word=$2
                   6308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6309: $as_echo_n "checking for $ac_word... " >&6; }
                   6310: if test "${ac_cv_prog_SED+set}" = set; then :
                   6311:   $as_echo_n "(cached) " >&6
                   6312: else
                   6313:   if test -n "$SED"; then
                   6314:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6315: else
                   6316: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6317: for as_dir in $PATH
                   6318: do
                   6319:   IFS=$as_save_IFS
                   6320:   test -z "$as_dir" && as_dir=.
                   6321:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6322:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6323:     ac_cv_prog_SED="yes"
                   6324:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6325:     break 2
                   6326:   fi
                   6327: done
1.14      bertrand 6328:   done
1.15      bertrand 6329: IFS=$as_save_IFS
1.1       bertrand 6330: 
1.15      bertrand 6331:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6332: fi
1.15      bertrand 6333: fi
                   6334: SED=$ac_cv_prog_SED
                   6335: if test -n "$SED"; then
                   6336:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6337: $as_echo "$SED" >&6; }
                   6338: else
                   6339:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6340: $as_echo "no" >&6; }
1.14      bertrand 6341: fi
1.1       bertrand 6342: 
                   6343: 
1.15      bertrand 6344: if test "$SED" = no; then
                   6345:    as_fn_error "Can not find sed !" "$LINENO" 5
                   6346: fi
1.14      bertrand 6347: 
1.15      bertrand 6348: if test "$TEX_SUPPORT" = guessed; then
                   6349:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6350: 
1.15      bertrand 6351:    # Extract the first word of "tex", so it can be a program name with args.
                   6352: set dummy tex; ac_word=$2
                   6353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6354: $as_echo_n "checking for $ac_word... " >&6; }
                   6355: if test "${ac_cv_prog_TEX+set}" = set; then :
                   6356:   $as_echo_n "(cached) " >&6
1.1       bertrand 6357: else
1.15      bertrand 6358:   if test -n "$TEX"; then
                   6359:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6360: else
1.15      bertrand 6361: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6362: for as_dir in $PATH
                   6363: do
                   6364:   IFS=$as_save_IFS
                   6365:   test -z "$as_dir" && as_dir=.
                   6366:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6367:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6368:     ac_cv_prog_TEX="yes"
                   6369:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6370:     break 2
                   6371:   fi
                   6372: done
                   6373:   done
                   6374: IFS=$as_save_IFS
1.1       bertrand 6375: 
1.15      bertrand 6376:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6377: fi
                   6378: fi
1.15      bertrand 6379: TEX=$ac_cv_prog_TEX
                   6380: if test -n "$TEX"; then
                   6381:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6382: $as_echo "$TEX" >&6; }
                   6383: else
                   6384:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6385: $as_echo "no" >&6; }
1.1       bertrand 6386: fi
1.14      bertrand 6387: 
                   6388: 
1.15      bertrand 6389:    if test "$TEX" = no; then
                   6390:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6391: Download at http://tex.loria.fr/
                   6392: " >&5
                   6393: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6394: Download at http://tex.loria.fr/
                   6395: " >&2;}
                   6396:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6397:    fi
1.14      bertrand 6398: 
1.15      bertrand 6399:    # Extract the first word of "latex", so it can be a program name with args.
                   6400: set dummy latex; ac_word=$2
                   6401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6402: $as_echo_n "checking for $ac_word... " >&6; }
                   6403: if test "${ac_cv_prog_LATEX+set}" = set; then :
                   6404:   $as_echo_n "(cached) " >&6
1.1       bertrand 6405: else
1.15      bertrand 6406:   if test -n "$LATEX"; then
                   6407:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6408: else
1.15      bertrand 6409: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6410: for as_dir in $PATH
                   6411: do
                   6412:   IFS=$as_save_IFS
                   6413:   test -z "$as_dir" && as_dir=.
                   6414:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6415:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6416:     ac_cv_prog_LATEX="yes"
                   6417:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6418:     break 2
                   6419:   fi
                   6420: done
                   6421:   done
                   6422: IFS=$as_save_IFS
1.1       bertrand 6423: 
1.15      bertrand 6424:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6425: fi
                   6426: fi
1.15      bertrand 6427: LATEX=$ac_cv_prog_LATEX
                   6428: if test -n "$LATEX"; then
                   6429:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6430: $as_echo "$LATEX" >&6; }
                   6431: else
                   6432:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6433: $as_echo "no" >&6; }
                   6434: fi
1.14      bertrand 6435: 
1.1       bertrand 6436: 
1.15      bertrand 6437:    if test "$LATEX" = no; then
                   6438:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6439: Download at http://tex.loria.fr/
                   6440: " >&5
                   6441: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6442: Download at http://tex.loria.fr/
                   6443: " >&2;}
                   6444:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6445:    fi
1.1       bertrand 6446: 
1.15      bertrand 6447:    # Extract the first word of "dvips", so it can be a program name with args.
                   6448: set dummy dvips; ac_word=$2
                   6449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6450: $as_echo_n "checking for $ac_word... " >&6; }
                   6451: if test "${ac_cv_prog_DVIPS+set}" = set; then :
                   6452:   $as_echo_n "(cached) " >&6
                   6453: else
                   6454:   if test -n "$DVIPS"; then
                   6455:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6456: else
                   6457: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6458: for as_dir in $PATH
                   6459: do
                   6460:   IFS=$as_save_IFS
                   6461:   test -z "$as_dir" && as_dir=.
                   6462:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6463:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6464:     ac_cv_prog_DVIPS="yes"
                   6465:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6466:     break 2
                   6467:   fi
                   6468: done
                   6469:   done
                   6470: IFS=$as_save_IFS
1.1       bertrand 6471: 
1.15      bertrand 6472:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6473: fi
1.1       bertrand 6474: fi
1.15      bertrand 6475: DVIPS=$ac_cv_prog_DVIPS
                   6476: if test -n "$DVIPS"; then
                   6477:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6478: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6479: else
1.15      bertrand 6480:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6481: $as_echo "no" >&6; }
                   6482: fi
1.1       bertrand 6483: 
                   6484: 
1.15      bertrand 6485:    if test "$DVIPS" = no; then
                   6486:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6487: Download at http://tex.loria.fr/
                   6488: " >&5
                   6489: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6490: Download at http://tex.loria.fr/
                   6491: " >&2;}
                   6492:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6493:    fi
1.1       bertrand 6494: 
1.15      bertrand 6495:    # Extract the first word of "gs", so it can be a program name with args.
                   6496: set dummy gs; ac_word=$2
                   6497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6498: $as_echo_n "checking for $ac_word... " >&6; }
                   6499: if test "${ac_cv_prog_GS+set}" = set; then :
                   6500:   $as_echo_n "(cached) " >&6
                   6501: else
                   6502:   if test -n "$GS"; then
                   6503:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6504: else
1.15      bertrand 6505: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6506: for as_dir in $PATH
                   6507: do
                   6508:   IFS=$as_save_IFS
                   6509:   test -z "$as_dir" && as_dir=.
                   6510:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6511:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6512:     ac_cv_prog_GS="yes"
                   6513:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6514:     break 2
                   6515:   fi
                   6516: done
                   6517:   done
                   6518: IFS=$as_save_IFS
1.1       bertrand 6519: 
1.15      bertrand 6520:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6521: fi
                   6522: fi
                   6523: GS=$ac_cv_prog_GS
                   6524: if test -n "$GS"; then
                   6525:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6526: $as_echo "$GS" >&6; }
                   6527: else
                   6528:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6529: $as_echo "no" >&6; }
1.1       bertrand 6530: fi
                   6531: 
1.15      bertrand 6532: 
                   6533:    if test "$GS" = no; then
                   6534:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6535: Download at http://ftp.lip6.fr/
                   6536: " >&5
                   6537: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6538: Download at http://ftp.lip6.fr/
                   6539: " >&2;}
                   6540:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6541:    fi
                   6542: 
                   6543:    # Extract the first word of "gv", so it can be a program name with args.
                   6544: set dummy gv; ac_word=$2
                   6545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6546: $as_echo_n "checking for $ac_word... " >&6; }
                   6547: if test "${ac_cv_prog_GV+set}" = set; then :
                   6548:   $as_echo_n "(cached) " >&6
                   6549: else
                   6550:   if test -n "$GV"; then
                   6551:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6552: else
                   6553: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6554: for as_dir in $PATH
                   6555: do
                   6556:   IFS=$as_save_IFS
                   6557:   test -z "$as_dir" && as_dir=.
                   6558:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6559:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6560:     ac_cv_prog_GV="yes"
                   6561:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6562:     break 2
                   6563:   fi
                   6564: done
1.14      bertrand 6565:   done
1.15      bertrand 6566: IFS=$as_save_IFS
1.1       bertrand 6567: 
1.15      bertrand 6568:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6569: fi
1.1       bertrand 6570: fi
1.15      bertrand 6571: GV=$ac_cv_prog_GV
                   6572: if test -n "$GV"; then
                   6573:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6574: $as_echo "$GV" >&6; }
                   6575: else
                   6576:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6577: $as_echo "no" >&6; }
1.1       bertrand 6578: fi
1.14      bertrand 6579: 
                   6580: 
1.15      bertrand 6581:    if test "$GV" = no; then
                   6582:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6583: Download at http://ftp.lip6.fr/
                   6584: " >&5
                   6585: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6586: Download at http://ftp.lip6.fr/
                   6587: " >&2;}
                   6588:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6589:    fi
1.1       bertrand 6590: else
1.15      bertrand 6591:    if test "$TEX_SUPPORT" = no; then
                   6592:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6593:    else
                   6594:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6595:    fi
1.1       bertrand 6596: fi
                   6597: 
1.15      bertrand 6598: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6599:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6600: set dummy gnuplot; ac_word=$2
                   6601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6602: $as_echo_n "checking for $ac_word... " >&6; }
                   6603: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
                   6604:   $as_echo_n "(cached) " >&6
1.14      bertrand 6605: else
1.15      bertrand 6606:   if test -n "$GNUPLOT_P"; then
                   6607:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6608: else
1.15      bertrand 6609: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6610: for as_dir in $PATH
                   6611: do
                   6612:   IFS=$as_save_IFS
                   6613:   test -z "$as_dir" && as_dir=.
                   6614:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6615:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6616:     ac_cv_prog_GNUPLOT_P="yes"
                   6617:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6618:     break 2
                   6619:   fi
                   6620: done
                   6621:   done
                   6622: IFS=$as_save_IFS
1.1       bertrand 6623: 
1.15      bertrand 6624:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6625: fi
                   6626: fi
1.15      bertrand 6627: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6628: if test -n "$GNUPLOT_P"; then
                   6629:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6630: $as_echo "$GNUPLOT_P" >&6; }
                   6631: else
                   6632:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6633: $as_echo "no" >&6; }
1.1       bertrand 6634: fi
                   6635: 
                   6636: 
1.15      bertrand 6637:    if test "$GNUPLOT_P" = no; then
                   6638:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6639: Download at http://www.gnuplot.vt.edu/
                   6640: " >&5
                   6641: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6642: Download at http://www.gnuplot.vt.edu/
                   6643: " >&2;}
                   6644:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6645:    else
                   6646:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6647:    fi
                   6648: else
                   6649:    if test "$GNUPLOT_SUPPORT" = no; then
                   6650:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6651:    else
                   6652:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6653:    fi
                   6654: fi
1.1       bertrand 6655: 
1.15      bertrand 6656: if test "$VIM_SUPPORT" = guessed; then
                   6657:    # Extract the first word of "vim", so it can be a program name with args.
                   6658: set dummy vim; ac_word=$2
                   6659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6660: $as_echo_n "checking for $ac_word... " >&6; }
                   6661: if test "${ac_cv_prog_VIM+set}" = set; then :
                   6662:   $as_echo_n "(cached) " >&6
1.1       bertrand 6663: else
1.15      bertrand 6664:   if test -n "$VIM"; then
                   6665:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6666: else
1.15      bertrand 6667: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6668: for as_dir in $PATH
                   6669: do
                   6670:   IFS=$as_save_IFS
                   6671:   test -z "$as_dir" && as_dir=.
                   6672:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6673:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6674:     ac_cv_prog_VIM="yes"
                   6675:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6676:     break 2
                   6677:   fi
                   6678: done
                   6679:   done
                   6680: IFS=$as_save_IFS
1.1       bertrand 6681: 
1.15      bertrand 6682:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 6683: fi
                   6684: fi
1.15      bertrand 6685: VIM=$ac_cv_prog_VIM
                   6686: if test -n "$VIM"; then
                   6687:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   6688: $as_echo "$VIM" >&6; }
1.1       bertrand 6689: else
1.15      bertrand 6690:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6691: $as_echo "no" >&6; }
                   6692: fi
1.1       bertrand 6693: 
                   6694: 
1.15      bertrand 6695:    if test "$VIM" = no; then
                   6696:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   6697: Download at http://www.vim.org/
                   6698: " >&5
                   6699: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   6700: Download at http://www.vim.org/
                   6701: " >&2;}
                   6702:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6703:    else
                   6704:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6705:    fi
1.1       bertrand 6706: else
1.15      bertrand 6707:    if test "$VIM_SUPPORT" = no; then
                   6708:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6709:    else
                   6710:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6711:    fi
1.1       bertrand 6712: fi
                   6713: 
1.15      bertrand 6714: if test "$MOTIF_SUPPORT" = guessed; then
                   6715:    CFLAGS_ORIG=$CFLAGS
                   6716:    LIBS_ORIG=$LIBS
                   6717:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6718:    LIBS="$LIB $X_LIBS"
                   6719:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6720: $as_echo_n "checking for main in -lXm... " >&6; }
                   6721: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   6722:   $as_echo_n "(cached) " >&6
1.1       bertrand 6723: else
1.15      bertrand 6724:   ac_check_lib_save_LIBS=$LIBS
                   6725: LIBS="-lXm  $LIBS"
                   6726: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6727: /* end confdefs.h.  */
1.1       bertrand 6728: 
                   6729: 
1.14      bertrand 6730: int
                   6731: main ()
                   6732: {
1.15      bertrand 6733: return main ();
1.14      bertrand 6734:   ;
                   6735:   return 0;
                   6736: }
                   6737: _ACEOF
1.15      bertrand 6738: if ac_fn_c_try_link "$LINENO"; then :
                   6739:   ac_cv_lib_Xm_main=yes
1.1       bertrand 6740: else
1.15      bertrand 6741:   ac_cv_lib_Xm_main=no
                   6742: fi
                   6743: rm -f core conftest.err conftest.$ac_objext \
                   6744:     conftest$ac_exeext conftest.$ac_ext
                   6745: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6746: fi
1.15      bertrand 6747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6748: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   6749: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   6750:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6751: else
1.15      bertrand 6752:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6753: fi
1.14      bertrand 6754: 
1.15      bertrand 6755:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6756:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
                   6757: Motif flag is disabled.
                   6758: " >&5
                   6759: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
                   6760: Motif flag is disabled.
                   6761: " >&2;}
                   6762:    fi
                   6763:    LIBS=$LIBS_ORIG
                   6764:    CFLAGS=$CFLAGS_ORIG
1.1       bertrand 6765: fi
                   6766: 
1.15      bertrand 6767: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6768:    CFLAGS_ORIG=$CFLAGS
                   6769:    LIBS_ORIG=$LIBS
                   6770:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6771:    LIBS="$LIB $X_LIBS"
                   6772:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
                   6773: $as_echo_n "checking for main in -lXpm... " >&6; }
                   6774: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
                   6775:   $as_echo_n "(cached) " >&6
                   6776: else
                   6777:   ac_check_lib_save_LIBS=$LIBS
                   6778: LIBS="-lXpm  $LIBS"
                   6779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 6780: /* end confdefs.h.  */
                   6781: 
1.1       bertrand 6782: 
                   6783: int
                   6784: main ()
                   6785: {
1.15      bertrand 6786: return main ();
1.1       bertrand 6787:   ;
                   6788:   return 0;
                   6789: }
                   6790: _ACEOF
1.15      bertrand 6791: if ac_fn_c_try_link "$LINENO"; then :
                   6792:   ac_cv_lib_Xpm_main=yes
1.1       bertrand 6793: else
1.15      bertrand 6794:   ac_cv_lib_Xpm_main=no
                   6795: fi
                   6796: rm -f core conftest.err conftest.$ac_objext \
                   6797:     conftest$ac_exeext conftest.$ac_ext
                   6798: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6799: fi
1.15      bertrand 6800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
                   6801: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
                   6802: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
                   6803:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6804: else
                   6805:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6806: fi
1.15      bertrand 6807: 
                   6808:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6809:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                   6810:    else
                   6811:        libX=""
                   6812:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
                   6813: Motif flag is disabled.
                   6814: " >&5
                   6815: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
                   6816: Motif flag is disabled.
                   6817: " >&2;}
                   6818:    fi
                   6819:    LIBS=$LIBS_ORIG
                   6820:    CFLAGS=$CFLAGS_ORIG
                   6821: else
                   6822:    libX=""
1.1       bertrand 6823: fi
1.14      bertrand 6824: 
                   6825: 
                   6826: 
1.1       bertrand 6827: 
                   6828: 
1.15      bertrand 6829: 
                   6830: 
                   6831: 
                   6832: 
                   6833: 
                   6834: 
                   6835: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   6836: 
                   6837: 
                   6838: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   6839: $as_echo_n "checking for main in -lm... " >&6; }
                   6840: if test "${ac_cv_lib_m_main+set}" = set; then :
                   6841:   $as_echo_n "(cached) " >&6
1.1       bertrand 6842: else
1.15      bertrand 6843:   ac_check_lib_save_LIBS=$LIBS
                   6844: LIBS="-lm  $LIBS"
                   6845: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6846: /* end confdefs.h.  */
1.15      bertrand 6847: 
                   6848: 
1.1       bertrand 6849: int
                   6850: main ()
                   6851: {
1.15      bertrand 6852: return main ();
1.1       bertrand 6853:   ;
                   6854:   return 0;
                   6855: }
                   6856: _ACEOF
1.15      bertrand 6857: if ac_fn_c_try_link "$LINENO"; then :
                   6858:   ac_cv_lib_m_main=yes
1.1       bertrand 6859: else
1.15      bertrand 6860:   ac_cv_lib_m_main=no
                   6861: fi
                   6862: rm -f core conftest.err conftest.$ac_objext \
                   6863:     conftest$ac_exeext conftest.$ac_ext
                   6864: LIBS=$ac_check_lib_save_LIBS
                   6865: fi
                   6866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   6867: $as_echo "$ac_cv_lib_m_main" >&6; }
                   6868: if test "x$ac_cv_lib_m_main" = x""yes; then :
                   6869:   cat >>confdefs.h <<_ACEOF
                   6870: #define HAVE_LIBM 1
                   6871: _ACEOF
1.14      bertrand 6872: 
1.15      bertrand 6873:   LIBS="-lm $LIBS"
1.1       bertrand 6874: 
1.15      bertrand 6875: else
                   6876:   as_fn_error "Can not find libm !" "$LINENO" 5
1.1       bertrand 6877: fi
                   6878: 
1.15      bertrand 6879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   6880: $as_echo_n "checking for main in -lpthread... " >&6; }
                   6881: if test "${ac_cv_lib_pthread_main+set}" = set; then :
                   6882:   $as_echo_n "(cached) " >&6
1.1       bertrand 6883: else
1.15      bertrand 6884:   ac_check_lib_save_LIBS=$LIBS
                   6885: LIBS="-lpthread  $LIBS"
                   6886: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6887: /* end confdefs.h.  */
1.15      bertrand 6888: 
                   6889: 
1.14      bertrand 6890: int
                   6891: main ()
                   6892: {
1.15      bertrand 6893: return main ();
1.14      bertrand 6894:   ;
                   6895:   return 0;
                   6896: }
                   6897: _ACEOF
1.15      bertrand 6898: if ac_fn_c_try_link "$LINENO"; then :
                   6899:   ac_cv_lib_pthread_main=yes
                   6900: else
                   6901:   ac_cv_lib_pthread_main=no
                   6902: fi
                   6903: rm -f core conftest.err conftest.$ac_objext \
                   6904:     conftest$ac_exeext conftest.$ac_ext
                   6905: LIBS=$ac_check_lib_save_LIBS
                   6906: fi
                   6907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   6908: $as_echo "$ac_cv_lib_pthread_main" >&6; }
                   6909: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
                   6910:   cat >>confdefs.h <<_ACEOF
                   6911: #define HAVE_LIBPTHREAD 1
1.14      bertrand 6912: _ACEOF
                   6913: 
1.15      bertrand 6914:   LIBS="-lpthread $LIBS"
                   6915: 
1.1       bertrand 6916: else
1.15      bertrand 6917:   as_fn_error "Can not find libpthread !" "$LINENO" 5
                   6918: fi
1.14      bertrand 6919: 
1.1       bertrand 6920: 
1.33      bertrand 6921: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   6922: #include <sys/sem.h>
                   6923: 
                   6924: "
                   6925: if test "x$ac_cv_type_union_semun" = x""yes; then :
                   6926:   SEMUN=-DUNION_SEMUN
                   6927: else
                   6928:   SEMUN=-UUNION_SEMUN
                   6929: fi
                   6930: 
                   6931: 
1.34      bertrand 6932: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35    ! bertrand 6933: #include <sys/types.h>
1.34      bertrand 6934: #include <netinet/in.h>
                   6935: 
                   6936: "
                   6937: if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
                   6938:   IPV6=-DIPV6
                   6939: else
                   6940:   IPV6=-UIPV6
                   6941: fi
                   6942: 
                   6943: 
1.15      bertrand 6944: if test "$CYGWIN" != yes; then
                   6945:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   6946: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   6947: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
                   6948:   $as_echo_n "(cached) " >&6
1.1       bertrand 6949: else
1.15      bertrand 6950:   ac_check_lib_save_LIBS=$LIBS
                   6951: LIBS="-ldl  $LIBS"
                   6952: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6953: /* end confdefs.h.  */
                   6954: 
1.15      bertrand 6955: /* Override any GCC internal prototype to avoid an error.
                   6956:    Use char because int might match the return type of a GCC
                   6957:    builtin and then its argument prototype would still apply.  */
                   6958: #ifdef __cplusplus
                   6959: extern "C"
                   6960: #endif
                   6961: char dlopen ();
1.1       bertrand 6962: int
                   6963: main ()
                   6964: {
1.15      bertrand 6965: return dlopen ();
1.1       bertrand 6966:   ;
                   6967:   return 0;
                   6968: }
                   6969: _ACEOF
1.15      bertrand 6970: if ac_fn_c_try_link "$LINENO"; then :
                   6971:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 6972: else
1.15      bertrand 6973:   ac_cv_lib_dl_dlopen=no
                   6974: fi
                   6975: rm -f core conftest.err conftest.$ac_objext \
                   6976:     conftest$ac_exeext conftest.$ac_ext
                   6977: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6978: fi
1.15      bertrand 6979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   6980: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   6981: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
                   6982:   LIBS="$LIBS -ldl"
1.14      bertrand 6983: else
1.15      bertrand 6984:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   6985: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 6986: fi
                   6987: 
1.14      bertrand 6988: fi
1.1       bertrand 6989: 
1.15      bertrand 6990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   6991: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
                   6992: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
                   6993:   $as_echo_n "(cached) " >&6
                   6994: else
                   6995:   ac_check_lib_save_LIBS=$LIBS
                   6996: LIBS="-lrt  $LIBS"
                   6997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6998: /* end confdefs.h.  */
1.15      bertrand 6999: 
                   7000: /* Override any GCC internal prototype to avoid an error.
                   7001:    Use char because int might match the return type of a GCC
                   7002:    builtin and then its argument prototype would still apply.  */
                   7003: #ifdef __cplusplus
                   7004: extern "C"
                   7005: #endif
                   7006: char nanosleep ();
1.1       bertrand 7007: int
                   7008: main ()
                   7009: {
1.15      bertrand 7010: return nanosleep ();
1.1       bertrand 7011:   ;
                   7012:   return 0;
                   7013: }
                   7014: _ACEOF
1.15      bertrand 7015: if ac_fn_c_try_link "$LINENO"; then :
                   7016:   ac_cv_lib_rt_nanosleep=yes
                   7017: else
                   7018:   ac_cv_lib_rt_nanosleep=no
                   7019: fi
                   7020: rm -f core conftest.err conftest.$ac_objext \
                   7021:     conftest$ac_exeext conftest.$ac_ext
                   7022: LIBS=$ac_check_lib_save_LIBS
                   7023: fi
                   7024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7025: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
                   7026: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
                   7027:   LIBS="$LIBS -lrt"
1.1       bertrand 7028: else
1.15      bertrand 7029:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7030: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7031: fi
1.1       bertrand 7032: 
                   7033: 
1.15      bertrand 7034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7035: $as_echo_n "checking for bind in -lsocket... " >&6; }
                   7036: if test "${ac_cv_lib_socket_bind+set}" = set; then :
                   7037:   $as_echo_n "(cached) " >&6
1.1       bertrand 7038: else
1.15      bertrand 7039:   ac_check_lib_save_LIBS=$LIBS
                   7040: LIBS="-lsocket  $LIBS"
                   7041: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7042: /* end confdefs.h.  */
1.15      bertrand 7043: 
                   7044: /* Override any GCC internal prototype to avoid an error.
                   7045:    Use char because int might match the return type of a GCC
                   7046:    builtin and then its argument prototype would still apply.  */
                   7047: #ifdef __cplusplus
                   7048: extern "C"
                   7049: #endif
                   7050: char bind ();
1.1       bertrand 7051: int
                   7052: main ()
                   7053: {
1.15      bertrand 7054: return bind ();
1.1       bertrand 7055:   ;
                   7056:   return 0;
                   7057: }
                   7058: _ACEOF
1.15      bertrand 7059: if ac_fn_c_try_link "$LINENO"; then :
                   7060:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7061: else
1.15      bertrand 7062:   ac_cv_lib_socket_bind=no
1.1       bertrand 7063: fi
1.15      bertrand 7064: rm -f core conftest.err conftest.$ac_objext \
                   7065:     conftest$ac_exeext conftest.$ac_ext
                   7066: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7067: fi
1.15      bertrand 7068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7069: $as_echo "$ac_cv_lib_socket_bind" >&6; }
                   7070: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
                   7071:   LIBS="$LIBS -lsocket"
                   7072: else
                   7073:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7074: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7075: fi
                   7076: 
                   7077: 
1.15      bertrand 7078: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7079: 
                   7080: # Check whether --with-mysql was given.
                   7081: if test "${with_mysql+set}" = set; then :
                   7082:   withval=$with_mysql;
                   7083: else
                   7084:   with_mysql=check
                   7085: fi
1.14      bertrand 7086: 
                   7087: 
1.15      bertrand 7088: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7089:    libMySQLinc="-I/usr/include"
1.30      bertrand 7090:    libMySQLlib="/usr/lib"
1.14      bertrand 7091: 
1.15      bertrand 7092:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7093: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7094:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7095:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7096:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7097: /* end confdefs.h.  */
1.15      bertrand 7098: #include "mysql.h"
1.1       bertrand 7099: int
                   7100: main ()
                   7101: {
1.15      bertrand 7102: 
1.1       bertrand 7103:   ;
                   7104:   return 0;
                   7105: }
                   7106: _ACEOF
1.15      bertrand 7107: if ac_fn_c_try_compile "$LINENO"; then :
                   7108:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7109: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7110:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7111: else
1.15      bertrand 7112:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7113: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7114: fi
1.14      bertrand 7115: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7116:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7117: 
1.15      bertrand 7118:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7119:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7120: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7121:        saved_CFLAGS="$CFLAGS"
                   7122:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7123:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7124: /* end confdefs.h.  */
1.15      bertrand 7125: #include "mysql.h"
1.1       bertrand 7126: int
                   7127: main ()
                   7128: {
                   7129: 
                   7130:   ;
                   7131:   return 0;
                   7132: }
                   7133: _ACEOF
1.15      bertrand 7134: if ac_fn_c_try_compile "$LINENO"; then :
                   7135:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7136: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7137:                        libMySQLinc=$libMySQLinc
                   7138: else
                   7139:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7140: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7141: fi
                   7142: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7143:        CFLAGS=$saved_CFLAGS
                   7144:        libMySQLinc=$libMySQLinc/mysql
                   7145:    fi
                   7146: 
                   7147:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7148:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7149: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7150:        saved_CFLAGS="$CFLAGS"
                   7151:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7152:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7153: /* end confdefs.h.  */
1.15      bertrand 7154: #include "mysql.h"
1.1       bertrand 7155: int
                   7156: main ()
                   7157: {
                   7158: 
                   7159:   ;
                   7160:   return 0;
                   7161: }
                   7162: _ACEOF
1.15      bertrand 7163: if ac_fn_c_try_compile "$LINENO"; then :
                   7164:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7165: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7166:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7167: else
1.15      bertrand 7168:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7169: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7170: fi
                   7171: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7172:        CFLAGS=$saved_CFLAGS
                   7173:        libMySQLinc=$libMySQLinc/../local/include
                   7174:        libMySQLlib=$libMySQLlib/../local/lib
                   7175:    fi
1.1       bertrand 7176: 
1.15      bertrand 7177:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7178:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7179: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7180:        saved_CFLAGS="$CFLAGS"
                   7181:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7182:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7183: /* end confdefs.h.  */
1.15      bertrand 7184: #include "mysql.h"
1.1       bertrand 7185: int
                   7186: main ()
                   7187: {
                   7188: 
                   7189:   ;
                   7190:   return 0;
                   7191: }
                   7192: _ACEOF
1.15      bertrand 7193: if ac_fn_c_try_compile "$LINENO"; then :
                   7194:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7195: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7196:                        libMySQLinc=$libMySQLinc/mysql
                   7197: else
                   7198:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7199: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7200: fi
                   7201: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7202:        CFLAGS=$saved_CFLAGS
                   7203:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7204:        libMySQLlib=$libMySQLlib/../local/lib
                   7205:    fi
                   7206: else
                   7207:    if test "x$with_mysql" != xno; then
                   7208:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7209:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7210: 
                   7211:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7212: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7213:        saved_CFLAGS="$CFLAGS"
                   7214:        CFLAGS="$CFLAGS $libMySQLinc"
                   7215:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7216: /* end confdefs.h.  */
1.15      bertrand 7217: #include "mysql.h"
1.1       bertrand 7218: int
                   7219: main ()
                   7220: {
                   7221: 
                   7222:   ;
                   7223:   return 0;
                   7224: }
                   7225: _ACEOF
1.15      bertrand 7226: if ac_fn_c_try_compile "$LINENO"; then :
                   7227:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7228: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7229:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7230: else
1.15      bertrand 7231:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7232: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7233: fi
                   7234: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7235:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7236: 
1.15      bertrand 7237:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7238:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7239: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7240:            saved_CFLAGS="$CFLAGS"
                   7241:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7242:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7243: /* end confdefs.h.  */
1.15      bertrand 7244: #include "mysql.h"
1.1       bertrand 7245: int
                   7246: main ()
                   7247: {
                   7248: 
                   7249:   ;
                   7250:   return 0;
                   7251: }
                   7252: _ACEOF
1.15      bertrand 7253: if ac_fn_c_try_compile "$LINENO"; then :
                   7254:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7255: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7256:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7257: else
1.15      bertrand 7258:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7259: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7260: fi
                   7261: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7262:            CFLAGS=$saved_CFLAGS
                   7263:            libMySQLinc=$libMySQLinc/mysql
                   7264:        fi
                   7265:    else
                   7266:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7267:    fi
                   7268: fi
1.14      bertrand 7269: 
1.15      bertrand 7270: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7271:    MYSQL_LIB=no
1.14      bertrand 7272: 
1.15      bertrand 7273:    if test $MYSQL_LIB = no; then
                   7274:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7275: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7276:        saved_LIBS="$LIBS"
1.30      bertrand 7277:        if test $STATIC = no; then
                   7278:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7279:        else
                   7280:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7281:        fi
1.15      bertrand 7282:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7283: /* end confdefs.h.  */
1.15      bertrand 7284: #include "mysql.h"
1.1       bertrand 7285: int
                   7286: main ()
                   7287: {
1.15      bertrand 7288: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7289:   ;
                   7290:   return 0;
                   7291: }
                   7292: _ACEOF
1.15      bertrand 7293: if ac_fn_c_try_link "$LINENO"; then :
                   7294:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7295: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7296: else
1.15      bertrand 7297:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7298: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7299: fi
                   7300: rm -f core conftest.err conftest.$ac_objext \
                   7301:     conftest$ac_exeext conftest.$ac_ext
                   7302:        LIBS=$saved_LIBS;
1.30      bertrand 7303:        if test $STATIC = no; then
                   7304:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7305:        else
                   7306:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7307:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7308:        fi
1.15      bertrand 7309:    fi
1.14      bertrand 7310: 
1.15      bertrand 7311:    if test $MYSQL_LIB = no; then
                   7312:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7313:    fi
1.14      bertrand 7314: fi
1.15      bertrand 7315: 
                   7316: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7317:    libMySQLinc=
                   7318:    libMySQLlib=
1.1       bertrand 7319: fi
1.14      bertrand 7320: 
                   7321: 
                   7322: 
1.1       bertrand 7323: 
                   7324: 
1.15      bertrand 7325: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7326: 
                   7327: # Check whether --with-postgresql was given.
                   7328: if test "${with_postgresql+set}" = set; then :
                   7329:   withval=$with_postgresql;
1.14      bertrand 7330: else
1.15      bertrand 7331:   with_postgresql=check
                   7332: fi
                   7333: 
                   7334: 
                   7335: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7336: # no [--without], valeur [--with=valeur].
                   7337: 
                   7338: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7339:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7340:    libPgSQLlib="/usr/lib"
1.15      bertrand 7341: 
                   7342:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7343: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7344:    saved_CFLAGS="$CFLAGS"
                   7345:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7346:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7347: /* end confdefs.h.  */
1.15      bertrand 7348: #include "libpq-fe.h"
1.1       bertrand 7349: int
                   7350: main ()
                   7351: {
1.15      bertrand 7352: 
1.1       bertrand 7353:   ;
                   7354:   return 0;
                   7355: }
                   7356: _ACEOF
1.15      bertrand 7357: if ac_fn_c_try_compile "$LINENO"; then :
                   7358:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7359: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7360: else
1.15      bertrand 7361:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7362: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7363: fi
1.14      bertrand 7364: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7365:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7366: 
1.15      bertrand 7367:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7368:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7369: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7370:        saved_CFLAGS="$CFLAGS"
                   7371:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7372:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7373: /* end confdefs.h.  */
1.15      bertrand 7374: #include "libpq-fe.h"
1.1       bertrand 7375: int
                   7376: main ()
                   7377: {
                   7378: 
                   7379:   ;
                   7380:   return 0;
                   7381: }
                   7382: _ACEOF
1.15      bertrand 7383: if ac_fn_c_try_compile "$LINENO"; then :
                   7384:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7385: $as_echo "yes" >&6; };
                   7386:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7387: else
                   7388:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7389: $as_echo "no" >&6; };
                   7390:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7391: fi
                   7392: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7393:        CFLAGS=$saved_CFLAGS
                   7394:        libPgSQLinc=$libPgSQLinc/postgresql
                   7395:    fi
                   7396: 
                   7397:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7398:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7399: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7400:        saved_CFLAGS="$CFLAGS"
                   7401:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7402:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7403: /* end confdefs.h.  */
1.15      bertrand 7404: #include "libpq-fe.h"
1.1       bertrand 7405: int
                   7406: main ()
                   7407: {
                   7408: 
                   7409:   ;
                   7410:   return 0;
                   7411: }
                   7412: _ACEOF
1.15      bertrand 7413: if ac_fn_c_try_compile "$LINENO"; then :
                   7414:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7415: $as_echo "yes" >&6; };
                   7416:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7417: else
1.15      bertrand 7418:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7419: $as_echo "no" >&6; };
                   7420:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7421: fi
                   7422: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7423:        CFLAGS=$saved_CFLAGS
                   7424:        libPgSQLinc=$libPgSQLinc/pgsql
                   7425:    fi
1.1       bertrand 7426: 
1.15      bertrand 7427:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7428:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7429: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7430:        saved_CFLAGS="$CFLAGS"
                   7431:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7432:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7433: /* end confdefs.h.  */
1.15      bertrand 7434: #include "libpq-fe.h"
1.1       bertrand 7435: int
                   7436: main ()
                   7437: {
                   7438: 
                   7439:   ;
                   7440:   return 0;
                   7441: }
                   7442: _ACEOF
1.15      bertrand 7443: if ac_fn_c_try_compile "$LINENO"; then :
                   7444:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7445: $as_echo "yes" >&6; };
                   7446:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7447: else
                   7448:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7449: $as_echo "no" >&6; };
                   7450:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7451: fi
                   7452: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7453:        CFLAGS=$saved_CFLAGS
                   7454:        libPgSQLinc=$libPgSQLinc/../local/include
                   7455:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7456:    fi
                   7457: 
                   7458:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7459:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7460: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7461:        saved_CFLAGS="$CFLAGS"
                   7462:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7463:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7464: /* end confdefs.h.  */
1.15      bertrand 7465: #include "libpq-fe.h"
1.1       bertrand 7466: int
                   7467: main ()
                   7468: {
                   7469: 
                   7470:   ;
                   7471:   return 0;
                   7472: }
                   7473: _ACEOF
1.15      bertrand 7474: if ac_fn_c_try_compile "$LINENO"; then :
                   7475:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7476: $as_echo "yes" >&6; };
                   7477:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7478: else
1.15      bertrand 7479:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7480: $as_echo "no" >&6; };
                   7481:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7482: fi
                   7483: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7484:        CFLAGS=$saved_CFLAGS
                   7485:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7486:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7487:    fi
1.14      bertrand 7488: 
1.15      bertrand 7489:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7490:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7491: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7492:        saved_CFLAGS="$CFLAGS"
                   7493:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7494:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7495: /* end confdefs.h.  */
1.15      bertrand 7496: #include "libpq-fe.h"
1.1       bertrand 7497: int
                   7498: main ()
                   7499: {
                   7500: 
                   7501:   ;
                   7502:   return 0;
                   7503: }
                   7504: _ACEOF
1.15      bertrand 7505: if ac_fn_c_try_compile "$LINENO"; then :
                   7506:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7507: $as_echo "yes" >&6; };
                   7508:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7509: else
1.15      bertrand 7510:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7511: $as_echo "no" >&6; };
                   7512:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7513: fi
                   7514: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7515:        CFLAGS=$saved_CFLAGS
                   7516:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7517:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7518:    fi
1.14      bertrand 7519: else
1.15      bertrand 7520:    if test "x$with_postgresql" != xno; then
                   7521:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7522:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7523: 
                   7524:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7525: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7526:        saved_CFLAGS="$CFLAGS"
                   7527:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7528:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7529: /* end confdefs.h.  */
1.15      bertrand 7530: #include "libpq-fe.h"
1.1       bertrand 7531: int
                   7532: main ()
                   7533: {
                   7534: 
                   7535:   ;
                   7536:   return 0;
                   7537: }
                   7538: _ACEOF
1.15      bertrand 7539: if ac_fn_c_try_compile "$LINENO"; then :
                   7540:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7541: $as_echo "yes" >&6; };
                   7542:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7543: else
1.15      bertrand 7544:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7545: $as_echo "no" >&6; };
                   7546:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7547: fi
1.15      bertrand 7548: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7549:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7550: 
1.15      bertrand 7551:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7552:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7553: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7554:            saved_CFLAGS="$CFLAGS"
                   7555:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7556:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7557: /* end confdefs.h.  */
1.15      bertrand 7558: #include "libpq-fe.h"
1.1       bertrand 7559: int
                   7560: main ()
                   7561: {
1.15      bertrand 7562: 
1.1       bertrand 7563:   ;
                   7564:   return 0;
                   7565: }
                   7566: _ACEOF
1.15      bertrand 7567: if ac_fn_c_try_compile "$LINENO"; then :
                   7568:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7569: $as_echo "yes" >&6; };
                   7570:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7571: else
1.15      bertrand 7572:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7573: $as_echo "no" >&6; };
                   7574:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7575: fi
                   7576: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7577:            CFLAGS=$saved_CFLAGS
                   7578:            libPgSQLinc=$libPgSQLinc/postgresql
                   7579:        fi
1.14      bertrand 7580: 
1.15      bertrand 7581:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7582:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7583: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7584:            saved_CFLAGS="$CFLAGS"
                   7585:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7586:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7587: /* end confdefs.h.  */
1.15      bertrand 7588: #include "libpq-fe.h"
1.1       bertrand 7589: int
                   7590: main ()
                   7591: {
1.15      bertrand 7592: 
1.1       bertrand 7593:   ;
                   7594:   return 0;
                   7595: }
                   7596: _ACEOF
1.15      bertrand 7597: if ac_fn_c_try_compile "$LINENO"; then :
                   7598:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7599: $as_echo "yes" >&6; };
                   7600:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7601: else
1.15      bertrand 7602:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7603: $as_echo "no" >&6; };
                   7604:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7605: fi
1.15      bertrand 7606: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7607:            CFLAGS=$saved_CFLAGS
                   7608:            libPgSQLinc=$libPgSQLinc/pgsql
                   7609:        fi
                   7610:    else
                   7611:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7612:    fi
1.1       bertrand 7613: fi
                   7614: 
1.15      bertrand 7615: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7616:    POSTGRESQL_LIB=no
1.1       bertrand 7617: 
1.15      bertrand 7618:    if test $POSTGRESQL_LIB = no; then
                   7619:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7620: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7621:        saved_LIBS="$LIBS"
1.30      bertrand 7622:        if test $STATIC = no; then
                   7623:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7624:        else
                   7625:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   7626:        fi
1.15      bertrand 7627:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7628: /* end confdefs.h.  */
1.15      bertrand 7629: #include "libpq-fe.h"
1.1       bertrand 7630: int
                   7631: main ()
                   7632: {
1.15      bertrand 7633: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7634:             PQconnectdb(conninfo);
1.1       bertrand 7635:   ;
                   7636:   return 0;
                   7637: }
                   7638: _ACEOF
1.15      bertrand 7639: if ac_fn_c_try_link "$LINENO"; then :
                   7640:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7641: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7642: else
1.15      bertrand 7643:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7644: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7645: fi
                   7646: rm -f core conftest.err conftest.$ac_objext \
                   7647:     conftest$ac_exeext conftest.$ac_ext
                   7648:        LIBS=$saved_LIBS;
1.30      bertrand 7649:        if test $STATIC = no; then
                   7650:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   7651:        else
                   7652:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   7653:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   7654:        fi
1.15      bertrand 7655:    fi
                   7656: fi
                   7657: 
                   7658: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7659:    libPgSQLinc=
                   7660:    libPgSQLlib=
                   7661: fi
                   7662: 
                   7663: 
                   7664: 
                   7665: 
1.14      bertrand 7666: 
1.15      bertrand 7667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7668: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
                   7669: if test "${ac_cv_path_GREP+set}" = set; then :
                   7670:   $as_echo_n "(cached) " >&6
                   7671: else
                   7672:   if test -z "$GREP"; then
                   7673:   ac_path_GREP_found=false
                   7674:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7675:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7676: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7677: do
                   7678:   IFS=$as_save_IFS
                   7679:   test -z "$as_dir" && as_dir=.
                   7680:     for ac_prog in grep ggrep; do
                   7681:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7682:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7683:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7684: # Check for GNU ac_path_GREP and select it if it is found.
                   7685:   # Check for GNU $ac_path_GREP
                   7686: case `"$ac_path_GREP" --version 2>&1` in
                   7687: *GNU*)
                   7688:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7689: *)
                   7690:   ac_count=0
                   7691:   $as_echo_n 0123456789 >"conftest.in"
                   7692:   while :
                   7693:   do
                   7694:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7695:     mv "conftest.tmp" "conftest.in"
                   7696:     cp "conftest.in" "conftest.nl"
                   7697:     $as_echo 'GREP' >> "conftest.nl"
                   7698:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7699:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7700:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7701:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7702:       # Best one so far, save it but keep looking for a better one
                   7703:       ac_cv_path_GREP="$ac_path_GREP"
                   7704:       ac_path_GREP_max=$ac_count
                   7705:     fi
                   7706:     # 10*(2^10) chars as input seems more than enough
                   7707:     test $ac_count -gt 10 && break
                   7708:   done
                   7709:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7710: esac
1.14      bertrand 7711: 
1.15      bertrand 7712:       $ac_path_GREP_found && break 3
                   7713:     done
                   7714:   done
                   7715:   done
                   7716: IFS=$as_save_IFS
                   7717:   if test -z "$ac_cv_path_GREP"; then
                   7718:     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   7719:   fi
                   7720: else
                   7721:   ac_cv_path_GREP=$GREP
1.1       bertrand 7722: fi
                   7723: 
                   7724: fi
1.15      bertrand 7725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   7726: $as_echo "$ac_cv_path_GREP" >&6; }
                   7727:  GREP="$ac_cv_path_GREP"
                   7728: 
                   7729: 
                   7730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   7731: $as_echo_n "checking for egrep... " >&6; }
                   7732: if test "${ac_cv_path_EGREP+set}" = set; then :
                   7733:   $as_echo_n "(cached) " >&6
                   7734: else
                   7735:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   7736:    then ac_cv_path_EGREP="$GREP -E"
                   7737:    else
                   7738:      if test -z "$EGREP"; then
                   7739:   ac_path_EGREP_found=false
                   7740:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7741:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7742: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7743: do
                   7744:   IFS=$as_save_IFS
                   7745:   test -z "$as_dir" && as_dir=.
                   7746:     for ac_prog in egrep; do
                   7747:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7748:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   7749:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   7750: # Check for GNU ac_path_EGREP and select it if it is found.
                   7751:   # Check for GNU $ac_path_EGREP
                   7752: case `"$ac_path_EGREP" --version 2>&1` in
                   7753: *GNU*)
                   7754:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   7755: *)
                   7756:   ac_count=0
                   7757:   $as_echo_n 0123456789 >"conftest.in"
                   7758:   while :
                   7759:   do
                   7760:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7761:     mv "conftest.tmp" "conftest.in"
                   7762:     cp "conftest.in" "conftest.nl"
                   7763:     $as_echo 'EGREP' >> "conftest.nl"
                   7764:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7765:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7766:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7767:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   7768:       # Best one so far, save it but keep looking for a better one
                   7769:       ac_cv_path_EGREP="$ac_path_EGREP"
                   7770:       ac_path_EGREP_max=$ac_count
                   7771:     fi
                   7772:     # 10*(2^10) chars as input seems more than enough
                   7773:     test $ac_count -gt 10 && break
                   7774:   done
                   7775:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7776: esac
                   7777: 
                   7778:       $ac_path_EGREP_found && break 3
                   7779:     done
                   7780:   done
                   7781:   done
                   7782: IFS=$as_save_IFS
                   7783:   if test -z "$ac_cv_path_EGREP"; then
                   7784:     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   7785:   fi
1.1       bertrand 7786: else
1.15      bertrand 7787:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 7788: fi
                   7789: 
1.15      bertrand 7790:    fi
1.1       bertrand 7791: fi
1.15      bertrand 7792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   7793: $as_echo "$ac_cv_path_EGREP" >&6; }
                   7794:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 7795: 
                   7796: 
1.15      bertrand 7797: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   7798: $as_echo_n "checking for ANSI C header files... " >&6; }
                   7799: if test "${ac_cv_header_stdc+set}" = set; then :
                   7800:   $as_echo_n "(cached) " >&6
1.1       bertrand 7801: else
1.15      bertrand 7802:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7803: /* end confdefs.h.  */
                   7804: #include <stdlib.h>
                   7805: #include <stdarg.h>
                   7806: #include <string.h>
                   7807: #include <float.h>
                   7808: 
                   7809: int
                   7810: main ()
                   7811: {
                   7812: 
                   7813:   ;
                   7814:   return 0;
                   7815: }
                   7816: _ACEOF
1.15      bertrand 7817: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 7818:   ac_cv_header_stdc=yes
                   7819: else
1.15      bertrand 7820:   ac_cv_header_stdc=no
1.1       bertrand 7821: fi
                   7822: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7823: 
                   7824: if test $ac_cv_header_stdc = yes; then
                   7825:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 7826:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7827: /* end confdefs.h.  */
                   7828: #include <string.h>
                   7829: 
                   7830: _ACEOF
                   7831: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7832:   $EGREP "memchr" >/dev/null 2>&1; then :
                   7833: 
1.1       bertrand 7834: else
                   7835:   ac_cv_header_stdc=no
                   7836: fi
                   7837: rm -f conftest*
                   7838: 
                   7839: fi
                   7840: 
                   7841: if test $ac_cv_header_stdc = yes; then
                   7842:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 7843:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7844: /* end confdefs.h.  */
                   7845: #include <stdlib.h>
                   7846: 
                   7847: _ACEOF
                   7848: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7849:   $EGREP "free" >/dev/null 2>&1; then :
                   7850: 
1.1       bertrand 7851: else
                   7852:   ac_cv_header_stdc=no
                   7853: fi
                   7854: rm -f conftest*
                   7855: 
                   7856: fi
                   7857: 
                   7858: if test $ac_cv_header_stdc = yes; then
                   7859:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 7860:   if test "$cross_compiling" = yes; then :
1.1       bertrand 7861:   :
                   7862: else
1.15      bertrand 7863:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7864: /* end confdefs.h.  */
                   7865: #include <ctype.h>
                   7866: #include <stdlib.h>
                   7867: #if ((' ' & 0x0FF) == 0x020)
                   7868: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   7869: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   7870: #else
                   7871: # define ISLOWER(c) \
                   7872:           (('a' <= (c) && (c) <= 'i') \
                   7873:             || ('j' <= (c) && (c) <= 'r') \
                   7874:             || ('s' <= (c) && (c) <= 'z'))
                   7875: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   7876: #endif
                   7877: 
                   7878: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   7879: int
                   7880: main ()
                   7881: {
                   7882:   int i;
                   7883:   for (i = 0; i < 256; i++)
                   7884:     if (XOR (islower (i), ISLOWER (i))
                   7885:    || toupper (i) != TOUPPER (i))
                   7886:       return 2;
                   7887:   return 0;
                   7888: }
                   7889: _ACEOF
1.15      bertrand 7890: if ac_fn_c_try_run "$LINENO"; then :
                   7891: 
1.14      bertrand 7892: else
1.15      bertrand 7893:   ac_cv_header_stdc=no
                   7894: fi
                   7895: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   7896:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   7897: fi
1.1       bertrand 7898: 
                   7899: fi
                   7900: fi
1.15      bertrand 7901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   7902: $as_echo "$ac_cv_header_stdc" >&6; }
                   7903: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 7904: 
1.15      bertrand 7905: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 7906: 
1.1       bertrand 7907: fi
                   7908: 
1.15      bertrand 7909: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   7910: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   7911:          inttypes.h stdint.h unistd.h
                   7912: do :
                   7913:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   7914: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   7915: "
                   7916: eval as_val=\$$as_ac_Header
                   7917:    if test "x$as_val" = x""yes; then :
                   7918:   cat >>confdefs.h <<_ACEOF
                   7919: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 7920: _ACEOF
1.1       bertrand 7921: 
                   7922: fi
                   7923: 
1.15      bertrand 7924: done
                   7925: 
                   7926: 
                   7927: # The cast to long int works around a bug in the HP C Compiler
                   7928: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7929: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7930: # This bug is HP SR number 8606223364.
                   7931: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   7932: $as_echo_n "checking size of void *... " >&6; }
                   7933: if test "${ac_cv_sizeof_void_p+set}" = set; then :
                   7934:   $as_echo_n "(cached) " >&6
                   7935: else
                   7936:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 7937: 
                   7938: else
1.15      bertrand 7939:   if test "$ac_cv_type_void_p" = yes; then
                   7940:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7941: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7942: { as_fn_set_status 77
                   7943: as_fn_error "cannot compute sizeof (void *)
                   7944: See \`config.log' for more details." "$LINENO" 5; }; }
                   7945:    else
                   7946:      ac_cv_sizeof_void_p=0
                   7947:    fi
                   7948: fi
1.1       bertrand 7949: 
                   7950: fi
1.15      bertrand 7951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   7952: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   7953: 
1.1       bertrand 7954: 
                   7955: 
1.15      bertrand 7956: cat >>confdefs.h <<_ACEOF
                   7957: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 7958: _ACEOF
1.1       bertrand 7959: 
1.15      bertrand 7960: 
                   7961: # The cast to long int works around a bug in the HP C Compiler
                   7962: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7963: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7964: # This bug is HP SR number 8606223364.
                   7965: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   7966: $as_echo_n "checking size of char... " >&6; }
                   7967: if test "${ac_cv_sizeof_char+set}" = set; then :
                   7968:   $as_echo_n "(cached) " >&6
                   7969: else
                   7970:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   7971: 
                   7972: else
                   7973:   if test "$ac_cv_type_char" = yes; then
                   7974:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   7975: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   7976: { as_fn_set_status 77
                   7977: as_fn_error "cannot compute sizeof (char)
                   7978: See \`config.log' for more details." "$LINENO" 5; }; }
                   7979:    else
                   7980:      ac_cv_sizeof_char=0
                   7981:    fi
                   7982: fi
                   7983: 
1.1       bertrand 7984: fi
1.15      bertrand 7985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   7986: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 7987: 
                   7988: 
                   7989: 
1.15      bertrand 7990: cat >>confdefs.h <<_ACEOF
                   7991: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   7992: _ACEOF
1.1       bertrand 7993: 
                   7994: 
1.15      bertrand 7995: # The cast to long int works around a bug in the HP C Compiler
                   7996: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   7997: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   7998: # This bug is HP SR number 8606223364.
                   7999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8000: $as_echo_n "checking size of short int... " >&6; }
                   8001: if test "${ac_cv_sizeof_short_int+set}" = set; then :
                   8002:   $as_echo_n "(cached) " >&6
                   8003: else
                   8004:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8005: 
1.15      bertrand 8006: else
                   8007:   if test "$ac_cv_type_short_int" = yes; then
                   8008:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8009: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8010: { as_fn_set_status 77
                   8011: as_fn_error "cannot compute sizeof (short int)
                   8012: See \`config.log' for more details." "$LINENO" 5; }; }
                   8013:    else
                   8014:      ac_cv_sizeof_short_int=0
                   8015:    fi
                   8016: fi
1.1       bertrand 8017: 
1.15      bertrand 8018: fi
                   8019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8020: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8021: 
                   8022: 
                   8023: 
1.15      bertrand 8024: cat >>confdefs.h <<_ACEOF
                   8025: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8026: _ACEOF
1.1       bertrand 8027: 
                   8028: 
1.15      bertrand 8029: # The cast to long int works around a bug in the HP C Compiler
                   8030: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8031: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8032: # This bug is HP SR number 8606223364.
                   8033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8034: $as_echo_n "checking size of int... " >&6; }
                   8035: if test "${ac_cv_sizeof_int+set}" = set; then :
                   8036:   $as_echo_n "(cached) " >&6
                   8037: else
                   8038:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8039: 
1.15      bertrand 8040: else
                   8041:   if test "$ac_cv_type_int" = yes; then
                   8042:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8043: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8044: { as_fn_set_status 77
                   8045: as_fn_error "cannot compute sizeof (int)
                   8046: See \`config.log' for more details." "$LINENO" 5; }; }
                   8047:    else
                   8048:      ac_cv_sizeof_int=0
                   8049:    fi
                   8050: fi
1.1       bertrand 8051: 
1.15      bertrand 8052: fi
                   8053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8054: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8055: 
                   8056: 
                   8057: 
1.15      bertrand 8058: cat >>confdefs.h <<_ACEOF
                   8059: #define SIZEOF_INT $ac_cv_sizeof_int
                   8060: _ACEOF
1.1       bertrand 8061: 
                   8062: 
1.15      bertrand 8063: # The cast to long int works around a bug in the HP C Compiler
                   8064: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8065: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8066: # This bug is HP SR number 8606223364.
                   8067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8068: $as_echo_n "checking size of long int... " >&6; }
                   8069: if test "${ac_cv_sizeof_long_int+set}" = set; then :
                   8070:   $as_echo_n "(cached) " >&6
                   8071: else
                   8072:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8073: 
1.14      bertrand 8074: else
1.15      bertrand 8075:   if test "$ac_cv_type_long_int" = yes; then
                   8076:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8077: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8078: { as_fn_set_status 77
                   8079: as_fn_error "cannot compute sizeof (long int)
                   8080: See \`config.log' for more details." "$LINENO" 5; }; }
                   8081:    else
                   8082:      ac_cv_sizeof_long_int=0
                   8083:    fi
                   8084: fi
1.1       bertrand 8085: 
                   8086: fi
1.15      bertrand 8087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8088: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8089: 
1.1       bertrand 8090: 
                   8091: 
1.15      bertrand 8092: cat >>confdefs.h <<_ACEOF
                   8093: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8094: _ACEOF
1.15      bertrand 8095: 
                   8096: 
                   8097: # The cast to long int works around a bug in the HP C Compiler
                   8098: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8099: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8100: # This bug is HP SR number 8606223364.
                   8101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8102: $as_echo_n "checking size of long long int... " >&6; }
                   8103: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
                   8104:   $as_echo_n "(cached) " >&6
                   8105: else
                   8106:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8107: 
1.14      bertrand 8108: else
1.15      bertrand 8109:   if test "$ac_cv_type_long_long_int" = yes; then
                   8110:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8111: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8112: { as_fn_set_status 77
                   8113: as_fn_error "cannot compute sizeof (long long int)
                   8114: See \`config.log' for more details." "$LINENO" 5; }; }
                   8115:    else
                   8116:      ac_cv_sizeof_long_long_int=0
                   8117:    fi
                   8118: fi
1.1       bertrand 8119: 
1.14      bertrand 8120: fi
1.15      bertrand 8121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8122: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8123: 
                   8124: 
                   8125: 
                   8126: cat >>confdefs.h <<_ACEOF
                   8127: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8128: _ACEOF
1.1       bertrand 8129: 
                   8130: 
1.15      bertrand 8131: # The cast to long int works around a bug in the HP C Compiler
                   8132: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8133: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8134: # This bug is HP SR number 8606223364.
                   8135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8136: $as_echo_n "checking size of float... " >&6; }
                   8137: if test "${ac_cv_sizeof_float+set}" = set; then :
                   8138:   $as_echo_n "(cached) " >&6
                   8139: else
                   8140:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8141: 
                   8142: else
1.15      bertrand 8143:   if test "$ac_cv_type_float" = yes; then
                   8144:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8145: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8146: { as_fn_set_status 77
                   8147: as_fn_error "cannot compute sizeof (float)
                   8148: See \`config.log' for more details." "$LINENO" 5; }; }
                   8149:    else
                   8150:      ac_cv_sizeof_float=0
                   8151:    fi
1.14      bertrand 8152: fi
                   8153: 
1.1       bertrand 8154: fi
1.15      bertrand 8155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8156: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8157: 
                   8158: 
                   8159: 
                   8160: cat >>confdefs.h <<_ACEOF
                   8161: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8162: _ACEOF
1.1       bertrand 8163: 
                   8164: 
1.15      bertrand 8165: # The cast to long int works around a bug in the HP C Compiler
                   8166: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8168: # This bug is HP SR number 8606223364.
                   8169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8170: $as_echo_n "checking size of double... " >&6; }
                   8171: if test "${ac_cv_sizeof_double+set}" = set; then :
                   8172:   $as_echo_n "(cached) " >&6
                   8173: else
                   8174:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8175: 
1.15      bertrand 8176: else
                   8177:   if test "$ac_cv_type_double" = yes; then
                   8178:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8179: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8180: { as_fn_set_status 77
                   8181: as_fn_error "cannot compute sizeof (double)
                   8182: See \`config.log' for more details." "$LINENO" 5; }; }
                   8183:    else
                   8184:      ac_cv_sizeof_double=0
                   8185:    fi
                   8186: fi
1.1       bertrand 8187: 
1.15      bertrand 8188: fi
                   8189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8190: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8191: 
1.1       bertrand 8192: 
                   8193: 
1.15      bertrand 8194: cat >>confdefs.h <<_ACEOF
                   8195: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8196: _ACEOF
1.15      bertrand 8197: 
                   8198: 
                   8199: # The cast to long int works around a bug in the HP C Compiler
                   8200: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8201: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8202: # This bug is HP SR number 8606223364.
                   8203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8204: $as_echo_n "checking size of long double... " >&6; }
                   8205: if test "${ac_cv_sizeof_long_double+set}" = set; then :
                   8206:   $as_echo_n "(cached) " >&6
                   8207: else
                   8208:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8209: 
1.14      bertrand 8210: else
1.15      bertrand 8211:   if test "$ac_cv_type_long_double" = yes; then
                   8212:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8213: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   8214: { as_fn_set_status 77
                   8215: as_fn_error "cannot compute sizeof (long double)
                   8216: See \`config.log' for more details." "$LINENO" 5; }; }
                   8217:    else
                   8218:      ac_cv_sizeof_long_double=0
                   8219:    fi
                   8220: fi
1.1       bertrand 8221: 
                   8222: fi
1.15      bertrand 8223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8224: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8225: 
1.1       bertrand 8226: 
                   8227: 
1.15      bertrand 8228: cat >>confdefs.h <<_ACEOF
                   8229: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8230: _ACEOF
                   8231: 
                   8232: 
1.15      bertrand 8233: 
                   8234: ac_header_dirent=no
                   8235: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8236:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8238: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
                   8239: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
                   8240:   $as_echo_n "(cached) " >&6
1.1       bertrand 8241: else
1.15      bertrand 8242:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8243: /* end confdefs.h.  */
                   8244: #include <sys/types.h>
1.15      bertrand 8245: #include <$ac_hdr>
1.1       bertrand 8246: 
1.15      bertrand 8247: int
                   8248: main ()
                   8249: {
                   8250: if ((DIR *) 0)
                   8251: return 0;
                   8252:   ;
                   8253:   return 0;
                   8254: }
1.1       bertrand 8255: _ACEOF
1.15      bertrand 8256: if ac_fn_c_try_compile "$LINENO"; then :
                   8257:   eval "$as_ac_Header=yes"
1.1       bertrand 8258: else
1.15      bertrand 8259:   eval "$as_ac_Header=no"
                   8260: fi
                   8261: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8262: fi
1.15      bertrand 8263: eval ac_res=\$$as_ac_Header
                   8264:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8265: $as_echo "$ac_res" >&6; }
                   8266: eval as_val=\$$as_ac_Header
                   8267:    if test "x$as_val" = x""yes; then :
                   8268:   cat >>confdefs.h <<_ACEOF
                   8269: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8270: _ACEOF
1.1       bertrand 8271: 
1.15      bertrand 8272: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8273: fi
                   8274: 
1.15      bertrand 8275: done
                   8276: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8277: if test $ac_header_dirent = dirent.h; then
                   8278:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8279: $as_echo_n "checking for library containing opendir... " >&6; }
                   8280: if test "${ac_cv_search_opendir+set}" = set; then :
                   8281:   $as_echo_n "(cached) " >&6
                   8282: else
                   8283:   ac_func_search_save_LIBS=$LIBS
                   8284: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8285: /* end confdefs.h.  */
                   8286: 
                   8287: /* Override any GCC internal prototype to avoid an error.
                   8288:    Use char because int might match the return type of a GCC
                   8289:    builtin and then its argument prototype would still apply.  */
                   8290: #ifdef __cplusplus
                   8291: extern "C"
                   8292: #endif
                   8293: char opendir ();
                   8294: int
                   8295: main ()
                   8296: {
                   8297: return opendir ();
                   8298:   ;
                   8299:   return 0;
                   8300: }
1.14      bertrand 8301: _ACEOF
1.15      bertrand 8302: for ac_lib in '' dir; do
                   8303:   if test -z "$ac_lib"; then
                   8304:     ac_res="none required"
                   8305:   else
                   8306:     ac_res=-l$ac_lib
                   8307:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8308:   fi
                   8309:   if ac_fn_c_try_link "$LINENO"; then :
                   8310:   ac_cv_search_opendir=$ac_res
                   8311: fi
                   8312: rm -f core conftest.err conftest.$ac_objext \
                   8313:     conftest$ac_exeext
                   8314:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8315:   break
                   8316: fi
                   8317: done
                   8318: if test "${ac_cv_search_opendir+set}" = set; then :
1.1       bertrand 8319: 
1.15      bertrand 8320: else
                   8321:   ac_cv_search_opendir=no
                   8322: fi
                   8323: rm conftest.$ac_ext
                   8324: LIBS=$ac_func_search_save_LIBS
                   8325: fi
                   8326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8327: $as_echo "$ac_cv_search_opendir" >&6; }
                   8328: ac_res=$ac_cv_search_opendir
                   8329: if test "$ac_res" != no; then :
                   8330:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8331: 
1.14      bertrand 8332: fi
1.1       bertrand 8333: 
                   8334: else
1.15      bertrand 8335:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8336: $as_echo_n "checking for library containing opendir... " >&6; }
                   8337: if test "${ac_cv_search_opendir+set}" = set; then :
                   8338:   $as_echo_n "(cached) " >&6
                   8339: else
                   8340:   ac_func_search_save_LIBS=$LIBS
                   8341: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8342: /* end confdefs.h.  */
1.15      bertrand 8343: 
                   8344: /* Override any GCC internal prototype to avoid an error.
                   8345:    Use char because int might match the return type of a GCC
                   8346:    builtin and then its argument prototype would still apply.  */
                   8347: #ifdef __cplusplus
                   8348: extern "C"
                   8349: #endif
                   8350: char opendir ();
1.1       bertrand 8351: int
                   8352: main ()
                   8353: {
1.15      bertrand 8354: return opendir ();
1.1       bertrand 8355:   ;
                   8356:   return 0;
                   8357: }
                   8358: _ACEOF
1.15      bertrand 8359: for ac_lib in '' x; do
                   8360:   if test -z "$ac_lib"; then
                   8361:     ac_res="none required"
                   8362:   else
                   8363:     ac_res=-l$ac_lib
                   8364:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8365:   fi
                   8366:   if ac_fn_c_try_link "$LINENO"; then :
                   8367:   ac_cv_search_opendir=$ac_res
                   8368: fi
                   8369: rm -f core conftest.err conftest.$ac_objext \
                   8370:     conftest$ac_exeext
                   8371:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8372:   break
                   8373: fi
                   8374: done
                   8375: if test "${ac_cv_search_opendir+set}" = set; then :
                   8376: 
1.1       bertrand 8377: else
1.15      bertrand 8378:   ac_cv_search_opendir=no
                   8379: fi
                   8380: rm conftest.$ac_ext
                   8381: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8382: fi
1.15      bertrand 8383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8384: $as_echo "$ac_cv_search_opendir" >&6; }
                   8385: ac_res=$ac_cv_search_opendir
                   8386: if test "$ac_res" != no; then :
                   8387:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8388: 
1.1       bertrand 8389: fi
                   8390: 
                   8391: fi
                   8392: 
1.15      bertrand 8393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8394: $as_echo_n "checking for ANSI C header files... " >&6; }
                   8395: if test "${ac_cv_header_stdc+set}" = set; then :
                   8396:   $as_echo_n "(cached) " >&6
1.1       bertrand 8397: else
1.15      bertrand 8398:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8399: /* end confdefs.h.  */
1.15      bertrand 8400: #include <stdlib.h>
                   8401: #include <stdarg.h>
                   8402: #include <string.h>
                   8403: #include <float.h>
                   8404: 
1.1       bertrand 8405: int
                   8406: main ()
                   8407: {
1.15      bertrand 8408: 
1.1       bertrand 8409:   ;
                   8410:   return 0;
                   8411: }
                   8412: _ACEOF
1.15      bertrand 8413: if ac_fn_c_try_compile "$LINENO"; then :
                   8414:   ac_cv_header_stdc=yes
1.14      bertrand 8415: else
1.15      bertrand 8416:   ac_cv_header_stdc=no
                   8417: fi
                   8418: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8419: 
                   8420: if test $ac_cv_header_stdc = yes; then
                   8421:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8422:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8423: /* end confdefs.h.  */
                   8424: #include <string.h>
                   8425: 
                   8426: _ACEOF
                   8427: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8428:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8429: 
1.15      bertrand 8430: else
                   8431:   ac_cv_header_stdc=no
1.1       bertrand 8432: fi
1.15      bertrand 8433: rm -f conftest*
1.14      bertrand 8434: 
1.1       bertrand 8435: fi
                   8436: 
1.15      bertrand 8437: if test $ac_cv_header_stdc = yes; then
                   8438:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8439:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8440: /* end confdefs.h.  */
                   8441: #include <stdlib.h>
                   8442: 
1.14      bertrand 8443: _ACEOF
1.15      bertrand 8444: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8445:   $EGREP "free" >/dev/null 2>&1; then :
                   8446: 
                   8447: else
                   8448:   ac_cv_header_stdc=no
                   8449: fi
                   8450: rm -f conftest*
1.1       bertrand 8451: 
                   8452: fi
                   8453: 
1.15      bertrand 8454: if test $ac_cv_header_stdc = yes; then
                   8455:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8456:   if test "$cross_compiling" = yes; then :
                   8457:   :
1.1       bertrand 8458: else
1.15      bertrand 8459:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8460: /* end confdefs.h.  */
1.15      bertrand 8461: #include <ctype.h>
                   8462: #include <stdlib.h>
                   8463: #if ((' ' & 0x0FF) == 0x020)
                   8464: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8465: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8466: #else
                   8467: # define ISLOWER(c) \
                   8468:           (('a' <= (c) && (c) <= 'i') \
                   8469:             || ('j' <= (c) && (c) <= 'r') \
                   8470:             || ('s' <= (c) && (c) <= 'z'))
                   8471: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8472: #endif
1.1       bertrand 8473: 
1.15      bertrand 8474: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8475: int
                   8476: main ()
                   8477: {
1.15      bertrand 8478:   int i;
                   8479:   for (i = 0; i < 256; i++)
                   8480:     if (XOR (islower (i), ISLOWER (i))
                   8481:    || toupper (i) != TOUPPER (i))
                   8482:       return 2;
1.1       bertrand 8483:   return 0;
                   8484: }
                   8485: _ACEOF
1.15      bertrand 8486: if ac_fn_c_try_run "$LINENO"; then :
                   8487: 
1.14      bertrand 8488: else
1.15      bertrand 8489:   ac_cv_header_stdc=no
                   8490: fi
                   8491: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8492:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8493: fi
1.14      bertrand 8494: 
1.1       bertrand 8495: fi
                   8496: fi
1.15      bertrand 8497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8498: $as_echo "$ac_cv_header_stdc" >&6; }
                   8499: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8500: 
1.15      bertrand 8501: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8502: 
                   8503: fi
                   8504: 
1.15      bertrand 8505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8506: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
                   8507: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
                   8508:   $as_echo_n "(cached) " >&6
1.1       bertrand 8509: else
1.15      bertrand 8510:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8511: /* end confdefs.h.  */
1.14      bertrand 8512: #include <sys/types.h>
1.15      bertrand 8513: #include <sys/wait.h>
                   8514: #ifndef WEXITSTATUS
                   8515: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8516: #endif
                   8517: #ifndef WIFEXITED
                   8518: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8519: #endif
1.1       bertrand 8520: 
                   8521: int
                   8522: main ()
                   8523: {
1.15      bertrand 8524:   int s;
                   8525:   wait (&s);
                   8526:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8527:   ;
                   8528:   return 0;
                   8529: }
                   8530: _ACEOF
1.15      bertrand 8531: if ac_fn_c_try_compile "$LINENO"; then :
                   8532:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8533: else
1.15      bertrand 8534:   ac_cv_header_sys_wait_h=no
                   8535: fi
                   8536: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8537: fi
                   8538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8539: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8540: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8541: 
1.15      bertrand 8542: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8543: 
                   8544: fi
                   8545: 
1.15      bertrand 8546: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8547:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8548:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8549: do :
                   8550:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8551: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   8552: eval as_val=\$$as_ac_Header
                   8553:    if test "x$as_val" = x""yes; then :
                   8554:   cat >>confdefs.h <<_ACEOF
                   8555: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8556: _ACEOF
                   8557: 
                   8558: fi
                   8559: 
1.15      bertrand 8560: done
                   8561: 
1.1       bertrand 8562: 
1.15      bertrand 8563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8564: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
                   8565: if test "${ac_cv_c_const+set}" = set; then :
                   8566:   $as_echo_n "(cached) " >&6
1.1       bertrand 8567: else
1.15      bertrand 8568:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8569: /* end confdefs.h.  */
                   8570: 
                   8571: int
                   8572: main ()
                   8573: {
1.15      bertrand 8574: /* FIXME: Include the comments suggested by Paul. */
                   8575: #ifndef __cplusplus
                   8576:   /* Ultrix mips cc rejects this.  */
                   8577:   typedef int charset[2];
                   8578:   const charset cs;
                   8579:   /* SunOS 4.1.1 cc rejects this.  */
                   8580:   char const *const *pcpcc;
                   8581:   char **ppc;
                   8582:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8583:   struct point {int x, y;};
                   8584:   static struct point const zero = {0,0};
                   8585:   /* AIX XL C 1.02.0.0 rejects this.
                   8586:      It does not let you subtract one const X* pointer from another in
                   8587:      an arm of an if-expression whose if-part is not a constant
                   8588:      expression */
                   8589:   const char *g = "string";
                   8590:   pcpcc = &g + (g ? g-g : 0);
                   8591:   /* HPUX 7.0 cc rejects these. */
                   8592:   ++pcpcc;
                   8593:   ppc = (char**) pcpcc;
                   8594:   pcpcc = (char const *const *) ppc;
                   8595:   { /* SCO 3.2v4 cc rejects this.  */
                   8596:     char *t;
                   8597:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8598: 
                   8599:     *t++ = 0;
                   8600:     if (s) return 0;
                   8601:   }
                   8602:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8603:     int x[] = {25, 17};
                   8604:     const int *foo = &x[0];
                   8605:     ++foo;
                   8606:   }
                   8607:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8608:     typedef const int *iptr;
                   8609:     iptr p = 0;
                   8610:     ++p;
                   8611:   }
                   8612:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8613:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8614:     struct s { int j; const int *ap[3]; };
                   8615:     struct s *b; b->j = 5;
                   8616:   }
                   8617:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8618:     const int foo = 10;
                   8619:     if (!foo) return 0;
                   8620:   }
                   8621:   return !cs[0] && !zero.x;
                   8622: #endif
                   8623: 
1.14      bertrand 8624:   ;
1.1       bertrand 8625:   return 0;
                   8626: }
                   8627: _ACEOF
1.15      bertrand 8628: if ac_fn_c_try_compile "$LINENO"; then :
                   8629:   ac_cv_c_const=yes
1.14      bertrand 8630: else
1.15      bertrand 8631:   ac_cv_c_const=no
1.1       bertrand 8632: fi
1.14      bertrand 8633: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8634: fi
1.15      bertrand 8635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8636: $as_echo "$ac_cv_c_const" >&6; }
                   8637: if test $ac_cv_c_const = no; then
1.1       bertrand 8638: 
1.15      bertrand 8639: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8640: 
1.15      bertrand 8641: fi
1.1       bertrand 8642: 
1.15      bertrand 8643: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8644: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   8645: if test "${ac_cv_type_uid_t+set}" = set; then :
                   8646:   $as_echo_n "(cached) " >&6
1.1       bertrand 8647: else
1.15      bertrand 8648:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8649: /* end confdefs.h.  */
1.15      bertrand 8650: #include <sys/types.h>
                   8651: 
1.1       bertrand 8652: _ACEOF
1.15      bertrand 8653: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8654:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8655:   ac_cv_type_uid_t=yes
1.1       bertrand 8656: else
1.15      bertrand 8657:   ac_cv_type_uid_t=no
                   8658: fi
                   8659: rm -f conftest*
1.14      bertrand 8660: 
1.1       bertrand 8661: fi
1.15      bertrand 8662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8663: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8664: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8665: 
1.15      bertrand 8666: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8667: 
                   8668: 
1.15      bertrand 8669: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8670: 
                   8671: fi
                   8672: 
1.15      bertrand 8673: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
                   8674: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1       bertrand 8675: 
                   8676: else
1.15      bertrand 8677: 
                   8678: cat >>confdefs.h <<_ACEOF
                   8679: #define pid_t int
1.14      bertrand 8680: _ACEOF
                   8681: 
1.15      bertrand 8682: fi
1.14      bertrand 8683: 
1.15      bertrand 8684: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   8685: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14      bertrand 8686: 
1.15      bertrand 8687: else
1.1       bertrand 8688: 
1.15      bertrand 8689: cat >>confdefs.h <<_ACEOF
                   8690: #define size_t unsigned int
1.1       bertrand 8691: _ACEOF
1.14      bertrand 8692: 
1.1       bertrand 8693: fi
                   8694: 
1.15      bertrand 8695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8696: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   8697: if test "${ac_cv_header_time+set}" = set; then :
                   8698:   $as_echo_n "(cached) " >&6
1.1       bertrand 8699: else
1.15      bertrand 8700:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8701: /* end confdefs.h.  */
1.15      bertrand 8702: #include <sys/types.h>
                   8703: #include <sys/time.h>
                   8704: #include <time.h>
1.1       bertrand 8705: 
1.14      bertrand 8706: int
                   8707: main ()
                   8708: {
1.15      bertrand 8709: if ((struct tm *) 0)
                   8710: return 0;
1.14      bertrand 8711:   ;
                   8712:   return 0;
                   8713: }
1.1       bertrand 8714: _ACEOF
1.15      bertrand 8715: if ac_fn_c_try_compile "$LINENO"; then :
                   8716:   ac_cv_header_time=yes
1.1       bertrand 8717: else
1.15      bertrand 8718:   ac_cv_header_time=no
1.1       bertrand 8719: fi
1.15      bertrand 8720: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8721: fi
1.15      bertrand 8722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   8723: $as_echo "$ac_cv_header_time" >&6; }
                   8724: if test $ac_cv_header_time = yes; then
1.1       bertrand 8725: 
1.15      bertrand 8726: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 8727: 
                   8728: fi
                   8729: 
1.15      bertrand 8730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   8731: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
                   8732: if test "${ac_cv_struct_tm+set}" = set; then :
                   8733:   $as_echo_n "(cached) " >&6
1.1       bertrand 8734: else
1.15      bertrand 8735:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8736: /* end confdefs.h.  */
1.15      bertrand 8737: #include <sys/types.h>
                   8738: #include <time.h>
1.1       bertrand 8739: 
                   8740: int
                   8741: main ()
                   8742: {
1.15      bertrand 8743: struct tm tm;
                   8744:                     int *p = &tm.tm_sec;
                   8745:                     return !p;
1.1       bertrand 8746:   ;
                   8747:   return 0;
                   8748: }
                   8749: _ACEOF
1.15      bertrand 8750: if ac_fn_c_try_compile "$LINENO"; then :
                   8751:   ac_cv_struct_tm=time.h
1.1       bertrand 8752: else
1.15      bertrand 8753:   ac_cv_struct_tm=sys/time.h
                   8754: fi
                   8755: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8756: fi
                   8757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   8758: $as_echo "$ac_cv_struct_tm" >&6; }
                   8759: if test $ac_cv_struct_tm = sys/time.h; then
                   8760: 
                   8761: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 8762: 
1.1       bertrand 8763: fi
                   8764: 
                   8765: 
1.15      bertrand 8766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   8767: $as_echo_n "checking return type of signal handlers... " >&6; }
                   8768: if test "${ac_cv_type_signal+set}" = set; then :
                   8769:   $as_echo_n "(cached) " >&6
1.1       bertrand 8770: else
1.15      bertrand 8771:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8772: /* end confdefs.h.  */
1.15      bertrand 8773: #include <sys/types.h>
                   8774: #include <signal.h>
1.1       bertrand 8775: 
                   8776: int
                   8777: main ()
                   8778: {
1.15      bertrand 8779: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 8780:   ;
                   8781:   return 0;
                   8782: }
                   8783: _ACEOF
1.15      bertrand 8784: if ac_fn_c_try_compile "$LINENO"; then :
                   8785:   ac_cv_type_signal=int
1.1       bertrand 8786: else
1.15      bertrand 8787:   ac_cv_type_signal=void
1.1       bertrand 8788: fi
1.15      bertrand 8789: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8790: fi
1.15      bertrand 8791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   8792: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 8793: 
1.15      bertrand 8794: cat >>confdefs.h <<_ACEOF
                   8795: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 8796: _ACEOF
1.1       bertrand 8797: 
1.15      bertrand 8798: 
1.35    ! bertrand 8799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken siginfo->si_pid" >&5
        !          8800: $as_echo_n "checking for broken siginfo->si_pid... " >&6; }
        !          8801: if test "$cross_compiling" = yes; then :
        !          8802:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
        !          8803: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
        !          8804: as_fn_error "cannot run test program while cross compiling
        !          8805: See \`config.log' for more details." "$LINENO" 5; }
        !          8806: else
        !          8807:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          8808: /* end confdefs.h.  */
        !          8809: #include <unistd.h>
        !          8810: #include <signal.h>
        !          8811: int flag;
        !          8812: void handler(int signal, siginfo_t *siginfo, void *context)
        !          8813: { flag = ((*siginfo).si_pid == getpid()) ? 0 : -1; }
        !          8814: int
        !          8815: main ()
        !          8816: {
        !          8817: struct sigaction    action;
        !          8818: action.sa_sigaction = handler;
        !          8819: action.sa_flags = SA_SIGINFO;
        !          8820: sigaction(SIGUSR1, &action, NULL);
        !          8821: raise(SIGUSR1);
        !          8822: return(flag);
        !          8823:   ;
        !          8824:   return 0;
        !          8825: }
        !          8826: _ACEOF
        !          8827: if ac_fn_c_try_run "$LINENO"; then :
        !          8828:   BROKEN_SIGINFO=-U_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          8829: $as_echo "no" >&6; }
        !          8830: else
        !          8831:   BROKEN_SIGINFO=-D_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
        !          8832: $as_echo "yes" >&6; }
        !          8833: fi
        !          8834: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          8835:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          8836: fi
        !          8837: 
        !          8838: 
1.15      bertrand 8839: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   8840: $as_echo_n "checking for working strcoll... " >&6; }
                   8841: if test "${ac_cv_func_strcoll_works+set}" = set; then :
                   8842:   $as_echo_n "(cached) " >&6
                   8843: else
                   8844:   if test "$cross_compiling" = yes; then :
                   8845:   ac_cv_func_strcoll_works=no
                   8846: else
                   8847:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8848: /* end confdefs.h.  */
                   8849: $ac_includes_default
                   8850: int
                   8851: main ()
                   8852: {
                   8853: return (strcoll ("abc", "def") >= 0 ||
                   8854:     strcoll ("ABC", "DEF") >= 0 ||
                   8855:     strcoll ("123", "456") >= 0)
                   8856:   ;
                   8857:   return 0;
                   8858: }
                   8859: _ACEOF
                   8860: if ac_fn_c_try_run "$LINENO"; then :
                   8861:   ac_cv_func_strcoll_works=yes
                   8862: else
                   8863:   ac_cv_func_strcoll_works=no
                   8864: fi
                   8865: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8866:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 8867: fi
1.1       bertrand 8868: 
                   8869: fi
1.15      bertrand 8870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   8871: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   8872: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 8873: 
1.15      bertrand 8874: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 8875: 
1.15      bertrand 8876: fi
1.1       bertrand 8877: 
1.15      bertrand 8878: for ac_func in strftime
                   8879: do :
                   8880:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
                   8881: if test "x$ac_cv_func_strftime" = x""yes; then :
                   8882:   cat >>confdefs.h <<_ACEOF
                   8883: #define HAVE_STRFTIME 1
                   8884: _ACEOF
1.1       bertrand 8885: 
                   8886: else
1.15      bertrand 8887:   # strftime is in -lintl on SCO UNIX.
                   8888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   8889: $as_echo_n "checking for strftime in -lintl... " >&6; }
                   8890: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
                   8891:   $as_echo_n "(cached) " >&6
                   8892: else
                   8893:   ac_check_lib_save_LIBS=$LIBS
                   8894: LIBS="-lintl  $LIBS"
                   8895: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8896: /* end confdefs.h.  */
                   8897: 
                   8898: /* Override any GCC internal prototype to avoid an error.
                   8899:    Use char because int might match the return type of a GCC
                   8900:    builtin and then its argument prototype would still apply.  */
                   8901: #ifdef __cplusplus
                   8902: extern "C"
                   8903: #endif
1.15      bertrand 8904: char strftime ();
1.1       bertrand 8905: int
                   8906: main ()
                   8907: {
1.15      bertrand 8908: return strftime ();
1.1       bertrand 8909:   ;
                   8910:   return 0;
                   8911: }
                   8912: _ACEOF
1.15      bertrand 8913: if ac_fn_c_try_link "$LINENO"; then :
                   8914:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 8915: else
1.15      bertrand 8916:   ac_cv_lib_intl_strftime=no
                   8917: fi
                   8918: rm -f core conftest.err conftest.$ac_objext \
                   8919:     conftest$ac_exeext conftest.$ac_ext
                   8920: LIBS=$ac_check_lib_save_LIBS
                   8921: fi
                   8922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   8923: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
                   8924: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
                   8925:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   8926: 
                   8927: LIBS="-lintl $LIBS"
                   8928: fi
                   8929: 
                   8930: fi
                   8931: done
                   8932: 
                   8933: for ac_func in vprintf
                   8934: do :
                   8935:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
                   8936: if test "x$ac_cv_func_vprintf" = x""yes; then :
                   8937:   cat >>confdefs.h <<_ACEOF
                   8938: #define HAVE_VPRINTF 1
                   8939: _ACEOF
                   8940: 
                   8941: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
                   8942: if test "x$ac_cv_func__doprnt" = x""yes; then :
                   8943: 
                   8944: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 8945: 
                   8946: fi
                   8947: 
                   8948: fi
1.15      bertrand 8949: done
                   8950: 
                   8951: 
                   8952: for ac_func in ftime getcwd putenv select strcspn strdup \
                   8953:        strerror strspn strstr strtod
                   8954: do :
                   8955:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   8956: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   8957: eval as_val=\$$as_ac_var
                   8958:    if test "x$as_val" = x""yes; then :
1.1       bertrand 8959:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 8960: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 8961: _ACEOF
                   8962: 
                   8963: fi
                   8964: done
                   8965: 
                   8966: 
1.15      bertrand 8967: 
                   8968: # Check whether --with-openssl_arch was given.
                   8969: if test "${with_openssl_arch+set}" = set; then :
                   8970:   withval=$with_openssl_arch;
                   8971: else
                   8972:   with_openssl_arch=none
                   8973: fi
                   8974: 
                   8975: 
1.31      bertrand 8976: if test $(uname) = "OS/2"; then
1.34      bertrand 8977:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 8978: else
1.31      bertrand 8979:    if test "x$with_openssl_arch" = xnone; then
                   8980:        (cd tools/$OPENSSL && ./config)
                   8981:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   8982:        (cd tools/$OPENSSL && ./Configure)
                   8983:        as_fn_error "OS/COMP informations are required!" "$LINENO" 5
                   8984:    elif test "x$with_openssl_arch" = xlist; then
                   8985:        (cd tools/$OPENSSL && ./Configure)
                   8986:        as_fn_error "Please specify OS and Architecture" "$LINENO" 5
                   8987:    else
                   8988:        (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
                   8989:    fi
1.15      bertrand 8990: fi
1.1       bertrand 8991: 
1.34      bertrand 8992: 
                   8993: 
                   8994: subdirs="$subdirs tools/$NCURSES"
                   8995: 
                   8996: subdirs="$subdirs tools/$READLINE"
                   8997: 
                   8998: subdirs="$subdirs tools/$GSL"
                   8999: 
                   9000: subdirs="$subdirs tools/$GPP"
                   9001: 
                   9002: subdirs="$subdirs tools/$FILE"
                   9003: 
                   9004: subdirs="$subdirs tools/$ICONV"
                   9005: 
                   9006: subdirs="$subdirs tools/$SQLITE"
                   9007: 
                   9008: subdirs="$subdirs tools/$UNITS"
                   9009: 
                   9010: 
1.1       bertrand 9011: if test "$MYGNUPLOT" = "yes"; then
                   9012:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9013:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9014:                (cd "$srcdir/tools" && tar -xf -)
                   9015:    fi
                   9016:    subdirs="$subdirs tools/$GNUPLOT"
                   9017: 
                   9018:    GNUPLOT_COMPILATION=$GNUPLOT
                   9019: else
                   9020:    GNUPLOT_COMPILATION=
                   9021: fi
                   9022: 
                   9023: 
                   9024: 
                   9025: case $host_cpu in
                   9026: 
                   9027:     i?86)
                   9028:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9029:            -Wno-pointer-sign"
                   9030:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9031:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9032:    break ;;
                   9033: 
                   9034:    x86_64*)
                   9035:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9036:            -Wno-pointer-sign"
                   9037:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9038:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9039:    break ;;
                   9040: 
                   9041:     alpha*)
                   9042:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   9043:            -Wno-pointer-sign"
                   9044:    FFLAGS="$FFLAGS -mieee -Wall"
                   9045:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   9046:    break ;;
                   9047: 
                   9048:     sparc*)
                   9049:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   9050:            -Wno-pointer-sign"
                   9051:    FFLAGS="$FFLAGS -Wall"
                   9052:    FCFLAGS="$FCFLAGS -Wall"
                   9053:    break ;;
                   9054: 
                   9055: esac
                   9056: 
1.8       bertrand 9057: case $host_os in
                   9058: 
                   9059:    cygwin*)
                   9060:        OS=Cygwin
                   9061:    break ;;
                   9062: 
                   9063:    interix*)
                   9064:        OS=Interix
                   9065:    break ;;
                   9066: 
                   9067:    *)
                   9068:        OS=$(uname)
                   9069:    break ;;
                   9070: 
                   9071: esac
                   9072: 
                   9073: 
                   9074: 
1.1       bertrand 9075: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9076: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
                   9077: 
1.22      bertrand 9078: case $OS in
1.17      bertrand 9079: 
                   9080:     Darwin)
1.31      bertrand 9081:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9082:        NESTED_FUNCTIONS=-fnested-functions
                   9083:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.33      bertrand 9084:        SEMAPHORES_SYSV=-USEMAPHORES_SYSV
1.23      bertrand 9085:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9086:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9087:                --disable-shared --enable-static"
1.33      bertrand 9088:        C_STANDARD=-std=gnu99
1.17      bertrand 9089:    break ;;
                   9090: 
1.31      bertrand 9091:     Cygwin)
                   9092:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9093:        NESTED_FUNCTIONS=
                   9094:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.33      bertrand 9095:        SEMAPHORES_SYSV=-USEMAPHORES_SYSV
1.31      bertrand 9096:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9097:                --disable-shared --enable-static"
1.33      bertrand 9098:        C_STANDARD=-std=gnu99
1.17      bertrand 9099:    break ;;
                   9100: 
1.34      bertrand 9101:    Interix)
                   9102:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9103:        NESTED_FUNCTIONS=
                   9104:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9105:        SEMAPHORES_SYSV=-USEMAPHORES_SYSV
                   9106:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9107:                --disable-shared --enable-static"
                   9108:        C_STANDARD=-std=gnu99
                   9109:    break;;
                   9110: 
1.31      bertrand 9111:     AIX)
                   9112:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9113:        NESTED_FUNCTIONS=
                   9114:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.33      bertrand 9115:        SEMAPHORES_SYSV=-USEMAPHORES_SYSV
1.31      bertrand 9116:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9117:                --disable-shared --enable-static"
1.33      bertrand 9118:        C_STANDARD=-std=gnu99
1.18      bertrand 9119:    break ;;
                   9120: 
1.31      bertrand 9121:     OS/2)
                   9122:        MALLOC=
1.35    ! bertrand 9123:        if test FORCED_FINAL_ENCODING -eq 0; then \
        !          9124:            FINAL_ENCODING=CP850; \
        !          9125:        fi;
1.31      bertrand 9126:        OS=OS2
                   9127:        NESTED_FUNCTIONS=
                   9128:        EXPORT_DYNAMIC=-Zmap
                   9129:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.33      bertrand 9130:        SEMAPHORES_SYSV=-DSEMAPHORES_SYSV
1.31      bertrand 9131:        ac_configure_args="$ac_configure_args --without-readline \
                   9132:                --without-cairo --disable-shared --enable-static"
1.33      bertrand 9133:        C_STANDARD=
1.31      bertrand 9134:    break;;
                   9135: 
1.35    ! bertrand 9136:    OpenBSD)
        !          9137:        if test FORCED_FINAL_ENCODING -eq 0; then \
        !          9138:            FINAL_ENCODING=UTF-8; \
        !          9139:        fi;
        !          9140:        EXPORT_DYNAMIC=-Wl,--export-dynamic
        !          9141:        NESTED_FUNCTIONS=
        !          9142:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
        !          9143:        SEMAPHORES_SYSV=-USEMAPHORES_SYSV
        !          9144:        ac_configure_args="$ac_configure_args --with-readline=builtin \
        !          9145:                --disable-shared --enable-static"
        !          9146:        C_STANDARD=-std=gnu99
        !          9147:    break;;
        !          9148: 
1.17      bertrand 9149:     *)
1.31      bertrand 9150:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9151:        NESTED_FUNCTIONS=
                   9152:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.33      bertrand 9153:        SEMAPHORES_SYSV=-USEMAPHORES_SYSV
1.31      bertrand 9154:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9155:                --disable-shared --enable-static"
1.33      bertrand 9156:        C_STANDARD=-std=gnu99
1.17      bertrand 9157:    break ;;
                   9158: 
                   9159: esac
                   9160: 
                   9161: 
                   9162: 
                   9163: 
1.1       bertrand 9164: 
                   9165: 
                   9166: 
                   9167: 
                   9168: 
                   9169: 
                   9170: 
                   9171: 
                   9172: 
                   9173: 
                   9174: 
                   9175: 
                   9176: 
                   9177: 
                   9178: 
                   9179: 
                   9180: 
                   9181: 
                   9182: 
1.9       bertrand 9183: 
1.24      bertrand 9184: 
1.30      bertrand 9185: 
1.33      bertrand 9186: 
                   9187: 
                   9188: 
1.34      bertrand 9189: 
1.35    ! bertrand 9190: 
1.1       bertrand 9191: ac_config_files="$ac_config_files Makefile"
                   9192: 
                   9193: ac_config_files="$ac_config_files COPYING"
                   9194: 
                   9195: ac_config_files="$ac_config_files tools/Makefile"
                   9196: 
                   9197: ac_config_files="$ac_config_files src/Makefile"
                   9198: 
                   9199: ac_config_files="$ac_config_files man/Makefile"
                   9200: 
                   9201: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9202: 
                   9203: ac_config_files="$ac_config_files doc/Makefile"
                   9204: 
                   9205: ac_config_files="$ac_config_files scripts/Makefile"
                   9206: 
                   9207: ac_config_files="$ac_config_files scripts/mkrplso"
                   9208: 
                   9209: ac_config_files="$ac_config_files scripts/rplcc"
                   9210: 
                   9211: ac_config_files="$ac_config_files scripts/rpllink"
                   9212: 
                   9213: ac_config_files="$ac_config_files rpltags/Makefile"
                   9214: 
                   9215: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9216: 
1.9       bertrand 9217: ac_config_files="$ac_config_files rplsums/Makefile"
                   9218: 
1.1       bertrand 9219: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9220: 
                   9221: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9222: 
1.20      bertrand 9223: ac_config_files="$ac_config_files ptmalloc3/Makefile"
                   9224: 
1.1       bertrand 9225: 
                   9226: ac_config_files="$ac_config_files man/rpl.1"
                   9227: 
                   9228: ac_config_files="$ac_config_files man/rplcc.1"
                   9229: 
                   9230: ac_config_files="$ac_config_files man/rpllink.1"
                   9231: 
                   9232: ac_config_files="$ac_config_files man/rpltags.1"
                   9233: 
                   9234: ac_config_files="$ac_config_files man/mkrplso.1"
                   9235: 
                   9236: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9237: 
                   9238: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9239: 
                   9240: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9241: 
                   9242: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9243: 
                   9244: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9245: 
                   9246: 
                   9247: cat >confcache <<\_ACEOF
                   9248: # This file is a shell script that caches the results of configure
                   9249: # tests run on this system so they can be shared between configure
                   9250: # scripts and configure runs, see configure's option --config-cache.
                   9251: # It is not useful on other systems.  If it contains results you don't
                   9252: # want to keep, you may remove or edit it.
                   9253: #
                   9254: # config.status only pays attention to the cache file if you give it
                   9255: # the --recheck option to rerun configure.
                   9256: #
                   9257: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9258: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9259: # following values.
                   9260: 
                   9261: _ACEOF
                   9262: 
                   9263: # The following way of writing the cache mishandles newlines in values,
                   9264: # but we know of no workaround that is simple, portable, and efficient.
                   9265: # So, we kill variables containing newlines.
                   9266: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9267: # and sets the high bit in the cache file unless we assign to the vars.
                   9268: (
                   9269:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9270:     eval ac_val=\$$ac_var
                   9271:     case $ac_val in #(
                   9272:     *${as_nl}*)
                   9273:       case $ac_var in #(
1.15      bertrand 9274:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9275: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9276:       esac
                   9277:       case $ac_var in #(
                   9278:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9279:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9280:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9281:       esac ;;
                   9282:     esac
                   9283:   done
                   9284: 
                   9285:   (set) 2>&1 |
                   9286:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9287:     *${as_nl}ac_space=\ *)
1.15      bertrand 9288:       # `set' does not quote correctly, so add quotes: double-quote
                   9289:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9290:       sed -n \
                   9291:    "s/'/'\\\\''/g;
                   9292:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9293:       ;; #(
                   9294:     *)
                   9295:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9296:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9297:       ;;
                   9298:     esac |
                   9299:     sort
                   9300: ) |
                   9301:   sed '
                   9302:      /^ac_cv_env_/b end
                   9303:      t clear
                   9304:      :clear
                   9305:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9306:      t end
                   9307:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9308:      :end' >>confcache
                   9309: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9310:   if test -w "$cache_file"; then
                   9311:     test "x$cache_file" != "x/dev/null" &&
1.15      bertrand 9312:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9313: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1       bertrand 9314:     cat confcache >$cache_file
                   9315:   else
1.15      bertrand 9316:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9317: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9318:   fi
                   9319: fi
                   9320: rm -f confcache
                   9321: 
                   9322: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9323: # Let make expand exec_prefix.
                   9324: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9325: 
                   9326: DEFS=-DHAVE_CONFIG_H
                   9327: 
                   9328: ac_libobjs=
                   9329: ac_ltlibobjs=
                   9330: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9331:   # 1. Remove the extension, and $U if already installed.
                   9332:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9333:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9334:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9335:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9336:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9337:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9338: done
                   9339: LIBOBJS=$ac_libobjs
                   9340: 
                   9341: LTLIBOBJS=$ac_ltlibobjs
                   9342: 
                   9343: 
1.15      bertrand 9344:  if test -n "$EXEEXT"; then
                   9345:   am__EXEEXT_TRUE=
                   9346:   am__EXEEXT_FALSE='#'
                   9347: else
                   9348:   am__EXEEXT_TRUE='#'
                   9349:   am__EXEEXT_FALSE=
                   9350: fi
                   9351: 
1.1       bertrand 9352: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.15      bertrand 9353:   as_fn_error "conditional \"AMDEP\" was never defined.
                   9354: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9355: fi
                   9356: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.15      bertrand 9357:   as_fn_error "conditional \"am__fastdepCC\" was never defined.
                   9358: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9359: fi
                   9360: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.15      bertrand 9361:   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
                   9362: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9363: fi
                   9364: 
                   9365: : ${CONFIG_STATUS=./config.status}
1.15      bertrand 9366: ac_write_fail=0
1.1       bertrand 9367: ac_clean_files_save=$ac_clean_files
                   9368: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9369: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9370: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9371: as_write_fail=0
                   9372: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9373: #! $SHELL
                   9374: # Generated by $as_me.
                   9375: # Run this file to recreate the current configuration.
                   9376: # Compiler output produced by configure, useful for debugging
                   9377: # configure, is in config.log if it exists.
                   9378: 
                   9379: debug=false
                   9380: ac_cs_recheck=false
                   9381: ac_cs_silent=false
1.15      bertrand 9382: 
1.14      bertrand 9383: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9384: export SHELL
                   9385: _ASEOF
                   9386: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9387: ## -------------------- ##
                   9388: ## M4sh Initialization. ##
                   9389: ## -------------------- ##
1.1       bertrand 9390: 
                   9391: # Be more Bourne compatible
                   9392: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9393: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9394:   emulate sh
                   9395:   NULLCMD=:
1.15      bertrand 9396:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9397:   # is contrary to our usage.  Disable this feature.
                   9398:   alias -g '${1+"$@"}'='"$@"'
                   9399:   setopt NO_GLOB_SUBST
                   9400: else
1.15      bertrand 9401:   case `(set -o) 2>/dev/null` in #(
                   9402:   *posix*) :
                   9403:     set -o posix ;; #(
                   9404:   *) :
                   9405:      ;;
1.1       bertrand 9406: esac
                   9407: fi
                   9408: 
                   9409: 
1.15      bertrand 9410: as_nl='
                   9411: '
                   9412: export as_nl
                   9413: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9414: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9415: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9416: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9417: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9418: # but without wasting forks for bash or zsh.
                   9419: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9420:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9421:   as_echo='print -r --'
                   9422:   as_echo_n='print -rn --'
                   9423: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9424:   as_echo='printf %s\n'
                   9425:   as_echo_n='printf %s'
                   9426: else
                   9427:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9428:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9429:     as_echo_n='/usr/ucb/echo -n'
                   9430:   else
                   9431:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9432:     as_echo_n_body='eval
                   9433:       arg=$1;
                   9434:       case $arg in #(
                   9435:       *"$as_nl"*)
                   9436:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9437:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9438:       esac;
                   9439:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9440:     '
                   9441:     export as_echo_n_body
                   9442:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9443:   fi
                   9444:   export as_echo_body
                   9445:   as_echo='sh -c $as_echo_body as_echo'
                   9446: fi
1.14      bertrand 9447: 
                   9448: # The user is always right.
                   9449: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9450:   PATH_SEPARATOR=:
                   9451:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9452:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9453:       PATH_SEPARATOR=';'
                   9454:   }
1.1       bertrand 9455: fi
                   9456: 
                   9457: 
                   9458: # IFS
                   9459: # We need space, tab and new line, in precisely that order.  Quoting is
                   9460: # there to prevent editors from complaining about space-tab.
                   9461: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9462: # splitting by setting IFS to empty value.)
                   9463: IFS=" ""   $as_nl"
                   9464: 
                   9465: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand 9466: case $0 in #((
1.1       bertrand 9467:   *[\\/]* ) as_myself=$0 ;;
                   9468:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9469: for as_dir in $PATH
                   9470: do
                   9471:   IFS=$as_save_IFS
                   9472:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9473:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9474:   done
1.1       bertrand 9475: IFS=$as_save_IFS
                   9476: 
                   9477:      ;;
                   9478: esac
                   9479: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9480: # in which case we are not to be found in the path.
                   9481: if test "x$as_myself" = x; then
                   9482:   as_myself=$0
                   9483: fi
                   9484: if test ! -f "$as_myself"; then
1.15      bertrand 9485:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9486:   exit 1
1.1       bertrand 9487: fi
                   9488: 
1.15      bertrand 9489: # Unset variables that we do not need and which cause bugs (e.g. in
                   9490: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9491: # suppresses any "Segmentation fault" message there.  '((' could
                   9492: # trigger a bug in pdksh 5.2.14.
                   9493: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9494: do eval test x\${$as_var+set} = xset \
                   9495:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9496: done
                   9497: PS1='$ '
                   9498: PS2='> '
                   9499: PS4='+ '
                   9500: 
                   9501: # NLS nuisances.
1.15      bertrand 9502: LC_ALL=C
                   9503: export LC_ALL
                   9504: LANGUAGE=C
                   9505: export LANGUAGE
                   9506: 
                   9507: # CDPATH.
                   9508: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9509: 
                   9510: 
                   9511: # as_fn_error ERROR [LINENO LOG_FD]
                   9512: # ---------------------------------
                   9513: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9514: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                   9515: # script with status $?, using 1 if that was 0.
                   9516: as_fn_error ()
                   9517: {
                   9518:   as_status=$?; test $as_status -eq 0 && as_status=1
                   9519:   if test "$3"; then
                   9520:     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9521:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
                   9522:   fi
                   9523:   $as_echo "$as_me: error: $1" >&2
                   9524:   as_fn_exit $as_status
                   9525: } # as_fn_error
                   9526: 
                   9527: 
                   9528: # as_fn_set_status STATUS
                   9529: # -----------------------
                   9530: # Set $? to STATUS, without forking.
                   9531: as_fn_set_status ()
                   9532: {
                   9533:   return $1
                   9534: } # as_fn_set_status
                   9535: 
                   9536: # as_fn_exit STATUS
                   9537: # -----------------
                   9538: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9539: as_fn_exit ()
                   9540: {
                   9541:   set +e
                   9542:   as_fn_set_status $1
                   9543:   exit $1
                   9544: } # as_fn_exit
                   9545: 
                   9546: # as_fn_unset VAR
                   9547: # ---------------
                   9548: # Portably unset VAR.
                   9549: as_fn_unset ()
                   9550: {
                   9551:   { eval $1=; unset $1;}
                   9552: }
                   9553: as_unset=as_fn_unset
                   9554: # as_fn_append VAR VALUE
                   9555: # ----------------------
                   9556: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9557: # advantage of any shell optimizations that allow amortized linear growth over
                   9558: # repeated appends, instead of the typical quadratic growth present in naive
                   9559: # implementations.
                   9560: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9561:   eval 'as_fn_append ()
                   9562:   {
                   9563:     eval $1+=\$2
                   9564:   }'
                   9565: else
                   9566:   as_fn_append ()
                   9567:   {
                   9568:     eval $1=\$$1\$2
                   9569:   }
                   9570: fi # as_fn_append
                   9571: 
                   9572: # as_fn_arith ARG...
                   9573: # ------------------
                   9574: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9575: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9576: # must be portable across $(()) and expr.
                   9577: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9578:   eval 'as_fn_arith ()
                   9579:   {
                   9580:     as_val=$(( $* ))
                   9581:   }'
                   9582: else
                   9583:   as_fn_arith ()
                   9584:   {
                   9585:     as_val=`expr "$@" || test $? -eq 1`
                   9586:   }
                   9587: fi # as_fn_arith
                   9588: 
1.1       bertrand 9589: 
                   9590: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9591:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9592:   as_expr=expr
                   9593: else
                   9594:   as_expr=false
                   9595: fi
                   9596: 
                   9597: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9598:   as_basename=basename
                   9599: else
                   9600:   as_basename=false
                   9601: fi
                   9602: 
1.15      bertrand 9603: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9604:   as_dirname=dirname
                   9605: else
                   9606:   as_dirname=false
                   9607: fi
1.1       bertrand 9608: 
                   9609: as_me=`$as_basename -- "$0" ||
                   9610: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9611:     X"$0" : 'X\(//\)$' \| \
                   9612:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9613: $as_echo X/"$0" |
1.1       bertrand 9614:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9615:        s//\1/
                   9616:        q
                   9617:      }
                   9618:      /^X\/\(\/\/\)$/{
                   9619:        s//\1/
                   9620:        q
                   9621:      }
                   9622:      /^X\/\(\/\).*/{
                   9623:        s//\1/
                   9624:        q
                   9625:      }
1.14      bertrand 9626:      s/.*/./; q'`
                   9627: 
1.15      bertrand 9628: # Avoid depending upon Character Ranges.
                   9629: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9630: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9631: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9632: as_cr_digits='0123456789'
                   9633: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9634: 
                   9635: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 9636: case `echo -n x` in #(((((
1.1       bertrand 9637: -n*)
1.15      bertrand 9638:   case `echo 'xy\c'` in
1.1       bertrand 9639:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 9640:   xy)  ECHO_C='\c';;
                   9641:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9642:        ECHO_T='    ';;
1.1       bertrand 9643:   esac;;
                   9644: *)
                   9645:   ECHO_N='-n';;
                   9646: esac
                   9647: 
                   9648: rm -f conf$$ conf$$.exe conf$$.file
                   9649: if test -d conf$$.dir; then
                   9650:   rm -f conf$$.dir/conf$$.file
                   9651: else
                   9652:   rm -f conf$$.dir
1.15      bertrand 9653:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 9654: fi
1.15      bertrand 9655: if (echo >conf$$.file) 2>/dev/null; then
                   9656:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   9657:     as_ln_s='ln -s'
                   9658:     # ... but there are two gotchas:
                   9659:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9660:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   9661:     # In both cases, we have to default to `cp -p'.
                   9662:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   9663:       as_ln_s='cp -p'
                   9664:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   9665:     as_ln_s=ln
                   9666:   else
1.1       bertrand 9667:     as_ln_s='cp -p'
1.15      bertrand 9668:   fi
1.1       bertrand 9669: else
                   9670:   as_ln_s='cp -p'
                   9671: fi
                   9672: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   9673: rmdir conf$$.dir 2>/dev/null
                   9674: 
1.15      bertrand 9675: 
                   9676: # as_fn_mkdir_p
                   9677: # -------------
                   9678: # Create "$as_dir" as a directory, including parents if necessary.
                   9679: as_fn_mkdir_p ()
                   9680: {
                   9681: 
                   9682:   case $as_dir in #(
                   9683:   -*) as_dir=./$as_dir;;
                   9684:   esac
                   9685:   test -d "$as_dir" || eval $as_mkdir_p || {
                   9686:     as_dirs=
                   9687:     while :; do
                   9688:       case $as_dir in #(
                   9689:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   9690:       *) as_qdir=$as_dir;;
                   9691:       esac
                   9692:       as_dirs="'$as_qdir' $as_dirs"
                   9693:       as_dir=`$as_dirname -- "$as_dir" ||
                   9694: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   9695:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   9696:     X"$as_dir" : 'X\(//\)$' \| \
                   9697:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   9698: $as_echo X"$as_dir" |
                   9699:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   9700:        s//\1/
                   9701:        q
                   9702:      }
                   9703:      /^X\(\/\/\)[^/].*/{
                   9704:        s//\1/
                   9705:        q
                   9706:      }
                   9707:      /^X\(\/\/\)$/{
                   9708:        s//\1/
                   9709:        q
                   9710:      }
                   9711:      /^X\(\/\).*/{
                   9712:        s//\1/
                   9713:        q
                   9714:      }
                   9715:      s/.*/./; q'`
                   9716:       test -d "$as_dir" && break
                   9717:     done
                   9718:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   9719:   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
                   9720: 
                   9721: 
                   9722: } # as_fn_mkdir_p
1.1       bertrand 9723: if mkdir -p . 2>/dev/null; then
1.15      bertrand 9724:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 9725: else
                   9726:   test -d ./-p && rmdir ./-p
                   9727:   as_mkdir_p=false
                   9728: fi
                   9729: 
                   9730: if test -x / >/dev/null 2>&1; then
                   9731:   as_test_x='test -x'
                   9732: else
                   9733:   if ls -dL / >/dev/null 2>&1; then
                   9734:     as_ls_L_option=L
                   9735:   else
                   9736:     as_ls_L_option=
                   9737:   fi
                   9738:   as_test_x='
                   9739:     eval sh -c '\''
                   9740:       if test -d "$1"; then
1.15      bertrand 9741:    test -d "$1/.";
1.1       bertrand 9742:       else
1.15      bertrand 9743:    case $1 in #(
                   9744:    -*)set "./$1";;
1.1       bertrand 9745:    esac;
1.15      bertrand 9746:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 9747:    ???[sx]*):;;*)false;;esac;fi
                   9748:     '\'' sh
                   9749:   '
                   9750: fi
                   9751: as_executable_p=$as_test_x
                   9752: 
                   9753: # Sed expression to map a string onto a valid CPP name.
                   9754: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   9755: 
                   9756: # Sed expression to map a string onto a valid variable name.
                   9757: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   9758: 
                   9759: 
                   9760: exec 6>&1
1.15      bertrand 9761: ## ----------------------------------- ##
                   9762: ## Main body of $CONFIG_STATUS script. ##
                   9763: ## ----------------------------------- ##
                   9764: _ASEOF
                   9765: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 9766: 
1.15      bertrand 9767: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9768: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 9769: # report actual input values of CONFIG_FILES etc. instead of their
                   9770: # values after options handling.
                   9771: ac_log="
1.29      bertrand 9772: This file was extended by rpl $as_me 4.0.18, which was
1.15      bertrand 9773: generated by GNU Autoconf 2.65.  Invocation command line was
1.1       bertrand 9774: 
                   9775:   CONFIG_FILES    = $CONFIG_FILES
                   9776:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   9777:   CONFIG_LINKS    = $CONFIG_LINKS
                   9778:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   9779:   $ $0 $@
                   9780: 
                   9781: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   9782: "
                   9783: 
                   9784: _ACEOF
                   9785: 
1.15      bertrand 9786: case $ac_config_files in *"
                   9787: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   9788: esac
                   9789: 
                   9790: case $ac_config_headers in *"
                   9791: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   9792: esac
                   9793: 
                   9794: 
                   9795: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9796: # Files that config.status was made for.
                   9797: config_files="$ac_config_files"
                   9798: config_headers="$ac_config_headers"
                   9799: config_commands="$ac_config_commands"
                   9800: 
                   9801: _ACEOF
                   9802: 
1.15      bertrand 9803: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9804: ac_cs_usage="\
1.15      bertrand 9805: \`$as_me' instantiates files and other configuration actions
                   9806: from templates according to the current configuration.  Unless the files
                   9807: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 9808: 
1.15      bertrand 9809: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 9810: 
                   9811:   -h, --help       print this help, then exit
                   9812:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 9813:       --config     print configuration, then exit
                   9814:   -q, --quiet, --silent
                   9815:                    do not print progress messages
1.1       bertrand 9816:   -d, --debug      don't remove temporary files
                   9817:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 9818:       --file=FILE[:TEMPLATE]
                   9819:                    instantiate the configuration file FILE
                   9820:       --header=FILE[:TEMPLATE]
                   9821:                    instantiate the configuration header FILE
1.1       bertrand 9822: 
                   9823: Configuration files:
                   9824: $config_files
                   9825: 
                   9826: Configuration headers:
                   9827: $config_headers
                   9828: 
                   9829: Configuration commands:
                   9830: $config_commands
                   9831: 
1.15      bertrand 9832: Report bugs to the package provider."
1.1       bertrand 9833: 
                   9834: _ACEOF
1.15      bertrand 9835: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9836: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 9837: ac_cs_version="\\
1.29      bertrand 9838: rpl config.status 4.0.18
1.15      bertrand 9839: configured by $0, generated by GNU Autoconf 2.65,
                   9840:   with options \\"\$ac_cs_config\\"
1.1       bertrand 9841: 
1.15      bertrand 9842: Copyright (C) 2009 Free Software Foundation, Inc.
1.1       bertrand 9843: This config.status script is free software; the Free Software Foundation
                   9844: gives unlimited permission to copy, distribute and modify it."
                   9845: 
                   9846: ac_pwd='$ac_pwd'
                   9847: srcdir='$srcdir'
                   9848: INSTALL='$INSTALL'
                   9849: MKDIR_P='$MKDIR_P'
1.15      bertrand 9850: AWK='$AWK'
                   9851: test -n "\$AWK" || AWK=awk
1.1       bertrand 9852: _ACEOF
                   9853: 
1.15      bertrand 9854: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9855: # The default lists apply if the user does not specify any file.
1.1       bertrand 9856: ac_need_defaults=:
                   9857: while test $# != 0
                   9858: do
                   9859:   case $1 in
                   9860:   --*=*)
                   9861:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   9862:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   9863:     ac_shift=:
                   9864:     ;;
                   9865:   *)
                   9866:     ac_option=$1
                   9867:     ac_optarg=$2
                   9868:     ac_shift=shift
                   9869:     ;;
                   9870:   esac
                   9871: 
                   9872:   case $ac_option in
                   9873:   # Handling of the options.
                   9874:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   9875:     ac_cs_recheck=: ;;
                   9876:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 9877:     $as_echo "$ac_cs_version"; exit ;;
                   9878:   --config | --confi | --conf | --con | --co | --c )
                   9879:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 9880:   --debug | --debu | --deb | --de | --d | -d )
                   9881:     debug=: ;;
                   9882:   --file | --fil | --fi | --f )
                   9883:     $ac_shift
1.15      bertrand 9884:     case $ac_optarg in
                   9885:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9886:     esac
                   9887:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 9888:     ac_need_defaults=false;;
                   9889:   --header | --heade | --head | --hea )
                   9890:     $ac_shift
1.15      bertrand 9891:     case $ac_optarg in
                   9892:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9893:     esac
                   9894:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 9895:     ac_need_defaults=false;;
                   9896:   --he | --h)
                   9897:     # Conflict between --help and --header
1.15      bertrand 9898:     as_fn_error "ambiguous option: \`$1'
                   9899: Try \`$0 --help' for more information.";;
1.1       bertrand 9900:   --help | --hel | -h )
1.15      bertrand 9901:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 9902:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   9903:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   9904:     ac_cs_silent=: ;;
                   9905: 
                   9906:   # This is an error.
1.15      bertrand 9907:   -*) as_fn_error "unrecognized option: \`$1'
                   9908: Try \`$0 --help' for more information." ;;
1.1       bertrand 9909: 
1.15      bertrand 9910:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 9911:      ac_need_defaults=false ;;
                   9912: 
                   9913:   esac
                   9914:   shift
                   9915: done
                   9916: 
                   9917: ac_configure_extra_args=
                   9918: 
                   9919: if $ac_cs_silent; then
                   9920:   exec 6>/dev/null
                   9921:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   9922: fi
                   9923: 
                   9924: _ACEOF
1.15      bertrand 9925: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9926: if \$ac_cs_recheck; then
1.15      bertrand 9927:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   9928:   shift
                   9929:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   9930:   CONFIG_SHELL='$SHELL'
1.1       bertrand 9931:   export CONFIG_SHELL
1.15      bertrand 9932:   exec "\$@"
1.1       bertrand 9933: fi
                   9934: 
                   9935: _ACEOF
1.15      bertrand 9936: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9937: exec 5>>config.log
                   9938: {
                   9939:   echo
                   9940:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   9941: ## Running $as_me. ##
                   9942: _ASBOX
1.15      bertrand 9943:   $as_echo "$ac_log"
1.1       bertrand 9944: } >&5
                   9945: 
                   9946: _ACEOF
1.15      bertrand 9947: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9948: #
                   9949: # INIT-COMMANDS
                   9950: #
                   9951: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   9952: 
                   9953: _ACEOF
                   9954: 
1.15      bertrand 9955: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9956: 
                   9957: # Handling of arguments.
                   9958: for ac_config_target in $ac_config_targets
                   9959: do
                   9960:   case $ac_config_target in
                   9961:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   9962:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   9963:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   9964:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   9965:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   9966:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   9967:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   9968:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   9969:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   9970:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   9971:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   9972:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   9973:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   9974:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   9975:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 9976:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.1       bertrand 9977:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   9978:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
1.20      bertrand 9979:     "ptmalloc3/Makefile") CONFIG_FILES="$CONFIG_FILES ptmalloc3/Makefile" ;;
1.1       bertrand 9980:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   9981:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   9982:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   9983:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   9984:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   9985:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   9986:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   9987:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   9988:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   9989:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   9990: 
1.15      bertrand 9991:   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 9992:   esac
                   9993: done
                   9994: 
                   9995: 
                   9996: # If the user did not use the arguments to specify the items to instantiate,
                   9997: # then the envvar interface is used.  Set only those that are not.
                   9998: # We use the long form for the default assignment because of an extremely
                   9999: # bizarre bug on SunOS 4.1.3.
                   10000: if $ac_need_defaults; then
                   10001:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10002:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10003:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10004: fi
                   10005: 
                   10006: # Have a temporary directory for convenience.  Make it in the build tree
                   10007: # simply because there is no reason against having it here, and in addition,
                   10008: # creating and moving files from /tmp can sometimes cause problems.
                   10009: # Hook for its removal unless debugging.
                   10010: # Note that there is a small window in which the directory will not be cleaned:
                   10011: # after its creation but before its name has been assigned to `$tmp'.
                   10012: $debug ||
                   10013: {
                   10014:   tmp=
                   10015:   trap 'exit_status=$?
                   10016:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   10017: ' 0
1.15      bertrand 10018:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10019: }
                   10020: # Create a (secure) tmp directory for tmp files.
                   10021: 
                   10022: {
                   10023:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   10024:   test -n "$tmp" && test -d "$tmp"
                   10025: }  ||
                   10026: {
                   10027:   tmp=./conf$$-$RANDOM
                   10028:   (umask 077 && mkdir "$tmp")
1.15      bertrand 10029: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
                   10030: 
                   10031: # Set up the scripts for CONFIG_FILES section.
                   10032: # No need to generate them if there are no CONFIG_FILES.
                   10033: # This happens for instance with `./config.status config.h'.
                   10034: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10035: 
1.1       bertrand 10036: 
1.15      bertrand 10037: ac_cr=`echo X | tr X '\015'`
                   10038: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10039: # But we know of no other shell where ac_cr would be empty at this
                   10040: # point, so we can use a bashism as a fallback.
                   10041: if test "x$ac_cr" = x; then
                   10042:   eval ac_cr=\$\'\\r\'
                   10043: fi
                   10044: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10045: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
                   10046:   ac_cs_awk_cr='\r'
                   10047: else
                   10048:   ac_cs_awk_cr=$ac_cr
                   10049: fi
1.1       bertrand 10050: 
1.15      bertrand 10051: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14      bertrand 10052: _ACEOF
                   10053: 
                   10054: 
1.15      bertrand 10055: {
                   10056:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10057:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10058:   echo "_ACEOF"
                   10059: } >conf$$subs.sh ||
                   10060:   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
                   10061: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1.14      bertrand 10062: ac_delim='%!_!# '
                   10063: for ac_last_try in false false false false false :; do
1.15      bertrand 10064:   . ./conf$$subs.sh ||
                   10065:     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10066: 
1.15      bertrand 10067:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10068:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10069:     break
                   10070:   elif $ac_last_try; then
1.15      bertrand 10071:     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10072:   else
                   10073:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10074:   fi
                   10075: done
1.15      bertrand 10076: rm -f conf$$subs.sh
1.1       bertrand 10077: 
1.15      bertrand 10078: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10079: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
                   10080: _ACEOF
                   10081: sed -n '
                   10082: h
                   10083: s/^/S["/; s/!.*/"]=/
                   10084: p
                   10085: g
                   10086: s/^[^!]*!//
                   10087: :repl
                   10088: t repl
                   10089: s/'"$ac_delim"'$//
                   10090: t delim
                   10091: :nl
                   10092: h
                   10093: s/\(.\{148\}\)..*/\1/
                   10094: t more1
                   10095: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10096: p
                   10097: n
                   10098: b repl
                   10099: :more1
                   10100: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10101: p
                   10102: g
                   10103: s/.\{148\}//
                   10104: t nl
                   10105: :delim
                   10106: h
                   10107: s/\(.\{148\}\)..*/\1/
                   10108: t more2
                   10109: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10110: p
                   10111: b
                   10112: :more2
                   10113: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10114: p
                   10115: g
                   10116: s/.\{148\}//
                   10117: t delim
                   10118: ' <conf$$subs.awk | sed '
                   10119: /^[^""]/{
                   10120:   N
                   10121:   s/\n//
                   10122: }
                   10123: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10124: rm -f conf$$subs.awk
                   10125: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10126: _ACAWK
                   10127: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
                   10128:   for (key in S) S_is_set[key] = 1
                   10129:   FS = ""
1.1       bertrand 10130: 
1.15      bertrand 10131: }
                   10132: {
                   10133:   line = $ 0
                   10134:   nfields = split(line, field, "@")
                   10135:   substed = 0
                   10136:   len = length(field[1])
                   10137:   for (i = 2; i < nfields; i++) {
                   10138:     key = field[i]
                   10139:     keylen = length(key)
                   10140:     if (S_is_set[key]) {
                   10141:       value = S[key]
                   10142:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10143:       len += length(value) + length(field[++i])
                   10144:       substed = 1
                   10145:     } else
                   10146:       len += 1 + keylen
                   10147:   }
1.1       bertrand 10148: 
1.15      bertrand 10149:   print line
                   10150: }
1.1       bertrand 10151: 
1.15      bertrand 10152: _ACAWK
1.14      bertrand 10153: _ACEOF
1.15      bertrand 10154: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10155: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10156:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10157: else
                   10158:   cat
                   10159: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
                   10160:   || as_fn_error "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10161: _ACEOF
                   10162: 
                   10163: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   10164: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   10165: # trailing colons and then remove the whole line if VPATH becomes empty
                   10166: # (actually we leave an empty line to preserve line numbers).
                   10167: if test "x$srcdir" = x.; then
                   10168:   ac_vpsub='/^[     ]*VPATH[    ]*=/{
                   10169: s/:*\$(srcdir):*/:/
                   10170: s/:*\${srcdir}:*/:/
                   10171: s/:*@srcdir@:*/:/
                   10172: s/^\([^=]*=[    ]*\):*/\1/
                   10173: s/:*$//
                   10174: s/^[^=]*=[  ]*$//
                   10175: }'
                   10176: fi
                   10177: 
1.15      bertrand 10178: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10179: fi # test -n "$CONFIG_FILES"
                   10180: 
1.15      bertrand 10181: # Set up the scripts for CONFIG_HEADERS section.
                   10182: # No need to generate them if there are no CONFIG_HEADERS.
                   10183: # This happens for instance with `./config.status Makefile'.
                   10184: if test -n "$CONFIG_HEADERS"; then
                   10185: cat >"$tmp/defines.awk" <<\_ACAWK ||
                   10186: BEGIN {
                   10187: _ACEOF
                   10188: 
                   10189: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10190: # here-document in config.status, that substitutes the proper values into
                   10191: # config.h.in to produce config.h.
                   10192: 
                   10193: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10194: # handling of long lines.
                   10195: ac_delim='%!_!# '
                   10196: for ac_last_try in false false :; do
                   10197:   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
                   10198:   if test -z "$ac_t"; then
                   10199:     break
                   10200:   elif $ac_last_try; then
                   10201:     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
                   10202:   else
                   10203:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10204:   fi
                   10205: done
                   10206: 
                   10207: # For the awk script, D is an array of macro values keyed by name,
                   10208: # likewise P contains macro parameters if any.  Preserve backslash
                   10209: # newline sequences.
                   10210: 
                   10211: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10212: sed -n '
                   10213: s/.\{148\}/&'"$ac_delim"'/g
                   10214: t rset
                   10215: :rset
                   10216: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10217: t def
                   10218: d
                   10219: :def
                   10220: s/\\$//
                   10221: t bsnl
                   10222: s/["\\]/\\&/g
                   10223: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10224: D["\1"]=" \3"/p
                   10225: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10226: d
                   10227: :bsnl
                   10228: s/["\\]/\\&/g
                   10229: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10230: D["\1"]=" \3\\\\\\n"\\/p
                   10231: t cont
                   10232: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10233: t cont
                   10234: d
                   10235: :cont
                   10236: n
                   10237: s/.\{148\}/&'"$ac_delim"'/g
                   10238: t clear
                   10239: :clear
                   10240: s/\\$//
                   10241: t bsnlc
                   10242: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10243: d
                   10244: :bsnlc
                   10245: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10246: b cont
                   10247: ' <confdefs.h | sed '
                   10248: s/'"$ac_delim"'/"\\\
                   10249: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10250: 
                   10251: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10252:   for (key in D) D_is_set[key] = 1
                   10253:   FS = ""
                   10254: }
                   10255: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10256:   line = \$ 0
                   10257:   split(line, arg, " ")
                   10258:   if (arg[1] == "#") {
                   10259:     defundef = arg[2]
                   10260:     mac1 = arg[3]
                   10261:   } else {
                   10262:     defundef = substr(arg[1], 2)
                   10263:     mac1 = arg[2]
                   10264:   }
                   10265:   split(mac1, mac2, "(") #)
                   10266:   macro = mac2[1]
                   10267:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10268:   if (D_is_set[macro]) {
                   10269:     # Preserve the white space surrounding the "#".
                   10270:     print prefix "define", macro P[macro] D[macro]
                   10271:     next
                   10272:   } else {
                   10273:     # Replace #undef with comments.  This is necessary, for example,
                   10274:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10275:     # on some systems where configure will not decide to define it.
                   10276:     if (defundef == "undef") {
                   10277:       print "/*", prefix defundef, macro, "*/"
                   10278:       next
                   10279:     }
                   10280:   }
                   10281: }
                   10282: { print }
                   10283: _ACAWK
                   10284: _ACEOF
                   10285: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10286:   as_fn_error "could not setup config headers machinery" "$LINENO" 5
                   10287: fi # test -n "$CONFIG_HEADERS"
                   10288: 
1.1       bertrand 10289: 
1.15      bertrand 10290: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10291: shift
                   10292: for ac_tag
1.1       bertrand 10293: do
                   10294:   case $ac_tag in
                   10295:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10296:   esac
                   10297:   case $ac_mode$ac_tag in
                   10298:   :[FHL]*:*);;
1.15      bertrand 10299:   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10300:   :[FH]-) ac_tag=-:-;;
                   10301:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10302:   esac
                   10303:   ac_save_IFS=$IFS
                   10304:   IFS=:
                   10305:   set x $ac_tag
                   10306:   IFS=$ac_save_IFS
                   10307:   shift
                   10308:   ac_file=$1
                   10309:   shift
                   10310: 
                   10311:   case $ac_mode in
                   10312:   :L) ac_source=$1;;
                   10313:   :[FH])
                   10314:     ac_file_inputs=
                   10315:     for ac_f
                   10316:     do
                   10317:       case $ac_f in
                   10318:       -) ac_f="$tmp/stdin";;
                   10319:       *) # Look for the file first in the build tree, then in the source tree
                   10320:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10321:     # because $ac_f cannot contain `:'.
                   10322:     test -f "$ac_f" ||
                   10323:       case $ac_f in
                   10324:       [\\/$]*) false;;
                   10325:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10326:       esac ||
1.15      bertrand 10327:       as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10328:       esac
1.15      bertrand 10329:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10330:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10331:     done
                   10332: 
                   10333:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10334:     # use $as_me), people would be surprised to read:
                   10335:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10336:     configure_input='Generated from '`
                   10337:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10338:    `' by configure.'
1.1       bertrand 10339:     if test x"$ac_file" != x-; then
                   10340:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10341:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10342: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10343:     fi
1.15      bertrand 10344:     # Neutralize special characters interpreted by sed in replacement strings.
                   10345:     case $configure_input in #(
                   10346:     *\&* | *\|* | *\\* )
                   10347:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10348:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10349:     *) ac_sed_conf_input=$configure_input;;
                   10350:     esac
1.1       bertrand 10351: 
                   10352:     case $ac_tag in
1.15      bertrand 10353:     *:-:* | *:-) cat >"$tmp/stdin" \
                   10354:       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10355:     esac
                   10356:     ;;
                   10357:   esac
                   10358: 
                   10359:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10360: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10361:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10362:     X"$ac_file" : 'X\(//\)$' \| \
                   10363:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10364: $as_echo X"$ac_file" |
1.1       bertrand 10365:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10366:        s//\1/
                   10367:        q
                   10368:      }
                   10369:      /^X\(\/\/\)[^/].*/{
                   10370:        s//\1/
                   10371:        q
                   10372:      }
                   10373:      /^X\(\/\/\)$/{
                   10374:        s//\1/
                   10375:        q
                   10376:      }
                   10377:      /^X\(\/\).*/{
                   10378:        s//\1/
                   10379:        q
                   10380:      }
                   10381:      s/.*/./; q'`
1.15      bertrand 10382:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10383:   ac_builddir=.
                   10384: 
                   10385: case "$ac_dir" in
                   10386: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10387: *)
1.15      bertrand 10388:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10389:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10390:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10391:   case $ac_top_builddir_sub in
                   10392:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10393:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10394:   esac ;;
                   10395: esac
                   10396: ac_abs_top_builddir=$ac_pwd
                   10397: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10398: # for backward compatibility:
                   10399: ac_top_builddir=$ac_top_build_prefix
                   10400: 
                   10401: case $srcdir in
                   10402:   .)  # We are building in place.
                   10403:     ac_srcdir=.
                   10404:     ac_top_srcdir=$ac_top_builddir_sub
                   10405:     ac_abs_top_srcdir=$ac_pwd ;;
                   10406:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10407:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10408:     ac_top_srcdir=$srcdir
                   10409:     ac_abs_top_srcdir=$srcdir ;;
                   10410:   *) # Relative name.
                   10411:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10412:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10413:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10414: esac
                   10415: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10416: 
                   10417: 
                   10418:   case $ac_mode in
                   10419:   :F)
                   10420:   #
                   10421:   # CONFIG_FILE
                   10422:   #
                   10423: 
                   10424:   case $INSTALL in
                   10425:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10426:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10427:   esac
                   10428:   ac_MKDIR_P=$MKDIR_P
                   10429:   case $MKDIR_P in
                   10430:   [\\/$]* | ?:[\\/]* ) ;;
                   10431:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10432:   esac
                   10433: _ACEOF
                   10434: 
1.15      bertrand 10435: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10436: # If the template does not know about datarootdir, expand it.
                   10437: # FIXME: This hack should be removed a few years after 2.60.
                   10438: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10439: ac_sed_dataroot='
                   10440: /datarootdir/ {
1.1       bertrand 10441:   p
                   10442:   q
                   10443: }
                   10444: /@datadir@/p
                   10445: /@docdir@/p
                   10446: /@infodir@/p
                   10447: /@localedir@/p
1.15      bertrand 10448: /@mandir@/p'
                   10449: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10450: *datarootdir*) ac_datarootdir_seen=yes;;
                   10451: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10452:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10453: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10454: _ACEOF
1.15      bertrand 10455: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10456:   ac_datarootdir_hack='
                   10457:   s&@datadir@&$datadir&g
                   10458:   s&@docdir@&$docdir&g
                   10459:   s&@infodir@&$infodir&g
                   10460:   s&@localedir@&$localedir&g
                   10461:   s&@mandir@&$mandir&g
1.15      bertrand 10462:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10463: esac
                   10464: _ACEOF
                   10465: 
                   10466: # Neutralize VPATH when `$srcdir' = `.'.
                   10467: # Shell code in configure.ac might set extrasub.
                   10468: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10469: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10470: ac_sed_extra="$ac_vpsub
1.1       bertrand 10471: $extrasub
                   10472: _ACEOF
1.15      bertrand 10473: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10474: :t
                   10475: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10476: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10477: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10478: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10479: s&@srcdir@&$ac_srcdir&;t t
                   10480: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10481: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10482: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10483: s&@builddir@&$ac_builddir&;t t
                   10484: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10485: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10486: s&@INSTALL@&$ac_INSTALL&;t t
                   10487: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10488: $ac_datarootdir_hack
1.15      bertrand 10489: "
                   10490: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
                   10491:   || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10492: 
                   10493: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   10494:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   10495:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10496:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1       bertrand 10497: which seems to be undefined.  Please make sure it is defined." >&5
1.15      bertrand 10498: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1       bertrand 10499: which seems to be undefined.  Please make sure it is defined." >&2;}
                   10500: 
                   10501:   rm -f "$tmp/stdin"
                   10502:   case $ac_file in
1.15      bertrand 10503:   -) cat "$tmp/out" && rm -f "$tmp/out";;
                   10504:   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
                   10505:   esac \
                   10506:   || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10507:  ;;
                   10508:   :H)
                   10509:   #
                   10510:   # CONFIG_HEADER
                   10511:   #
                   10512:   if test x"$ac_file" != x-; then
1.15      bertrand 10513:     {
                   10514:       $as_echo "/* $configure_input  */" \
                   10515:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
                   10516:     } >"$tmp/config.h" \
                   10517:       || as_fn_error "could not create $ac_file" "$LINENO" 5
                   10518:     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
                   10519:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10520: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10521:     else
1.15      bertrand 10522:       rm -f "$ac_file"
                   10523:       mv "$tmp/config.h" "$ac_file" \
                   10524:    || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10525:     fi
                   10526:   else
1.15      bertrand 10527:     $as_echo "/* $configure_input  */" \
                   10528:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
                   10529:       || as_fn_error "could not create -" "$LINENO" 5
1.1       bertrand 10530:   fi
1.15      bertrand 10531: # Compute "$ac_file"'s index in $config_headers.
                   10532: _am_arg="$ac_file"
1.1       bertrand 10533: _am_stamp_count=1
                   10534: for _am_header in $config_headers :; do
                   10535:   case $_am_header in
                   10536:     $_am_arg | $_am_arg:* )
                   10537:       break ;;
                   10538:     * )
                   10539:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10540:   esac
                   10541: done
                   10542: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10543: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10544:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10545:     X"$_am_arg" : 'X\(//\)$' \| \
                   10546:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10547: $as_echo X"$_am_arg" |
1.1       bertrand 10548:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10549:        s//\1/
                   10550:        q
                   10551:      }
                   10552:      /^X\(\/\/\)[^/].*/{
                   10553:        s//\1/
                   10554:        q
                   10555:      }
                   10556:      /^X\(\/\/\)$/{
                   10557:        s//\1/
                   10558:        q
                   10559:      }
                   10560:      /^X\(\/\).*/{
                   10561:        s//\1/
                   10562:        q
                   10563:      }
                   10564:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10565:  ;;
                   10566: 
1.15      bertrand 10567:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10568: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10569:  ;;
                   10570:   esac
                   10571: 
                   10572: 
                   10573:   case $ac_file$ac_mode in
1.15      bertrand 10574:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10575:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10576:   # are listed without --file.  Let's play safe and only enable the eval
                   10577:   # if we detect the quoting.
                   10578:   case $CONFIG_FILES in
                   10579:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10580:   *)   set x $CONFIG_FILES ;;
                   10581:   esac
                   10582:   shift
                   10583:   for mf
                   10584:   do
                   10585:     # Strip MF so we end up with the name of the file.
                   10586:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10587:     # Check whether this is an Automake generated Makefile or not.
                   10588:     # We used to match only the files named `Makefile.in', but
                   10589:     # some people rename them; so instead we look at the file content.
                   10590:     # Grep'ing the first line is not enough: some people post-process
                   10591:     # each Makefile.in and add a new line on top of each file to say so.
                   10592:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10593:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10594:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10595:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10596: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10597:     X"$mf" : 'X\(//\)[^/]' \| \
                   10598:     X"$mf" : 'X\(//\)$' \| \
                   10599:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10600: $as_echo X"$mf" |
1.1       bertrand 10601:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10602:        s//\1/
                   10603:        q
                   10604:      }
                   10605:      /^X\(\/\/\)[^/].*/{
                   10606:        s//\1/
                   10607:        q
                   10608:      }
                   10609:      /^X\(\/\/\)$/{
                   10610:        s//\1/
                   10611:        q
                   10612:      }
                   10613:      /^X\(\/\).*/{
                   10614:        s//\1/
                   10615:        q
                   10616:      }
                   10617:      s/.*/./; q'`
1.15      bertrand 10618:     else
                   10619:       continue
                   10620:     fi
                   10621:     # Extract the definition of DEPDIR, am__include, and am__quote
                   10622:     # from the Makefile without running `make'.
                   10623:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   10624:     test -z "$DEPDIR" && continue
                   10625:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   10626:     test -z "am__include" && continue
                   10627:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   10628:     # When using ansi2knr, U may be empty or an underscore; expand it
                   10629:     U=`sed -n 's/^U = //p' < "$mf"`
                   10630:     # Find all dependency output files, they are included files with
                   10631:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   10632:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   10633:     # expansion.
                   10634:     for file in `sed -n "
                   10635:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   10636:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   10637:       # Make sure the directory exists.
                   10638:       test -f "$dirpart/$file" && continue
                   10639:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 10640: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10641:     X"$file" : 'X\(//\)[^/]' \| \
                   10642:     X"$file" : 'X\(//\)$' \| \
                   10643:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10644: $as_echo X"$file" |
1.1       bertrand 10645:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10646:        s//\1/
                   10647:        q
                   10648:      }
                   10649:      /^X\(\/\/\)[^/].*/{
                   10650:        s//\1/
                   10651:        q
                   10652:      }
                   10653:      /^X\(\/\/\)$/{
                   10654:        s//\1/
                   10655:        q
                   10656:      }
                   10657:      /^X\(\/\).*/{
                   10658:        s//\1/
                   10659:        q
                   10660:      }
                   10661:      s/.*/./; q'`
1.15      bertrand 10662:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   10663:       # echo "creating $dirpart/$file"
                   10664:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 10665:     done
                   10666:   done
1.15      bertrand 10667: }
1.1       bertrand 10668:  ;;
                   10669: 
                   10670:   esac
                   10671: done # for ac_tag
                   10672: 
                   10673: 
1.15      bertrand 10674: as_fn_exit 0
1.1       bertrand 10675: _ACEOF
                   10676: ac_clean_files=$ac_clean_files_save
                   10677: 
1.15      bertrand 10678: test $ac_write_fail = 0 ||
                   10679:   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
                   10680: 
1.1       bertrand 10681: 
                   10682: # configure is writing to config.log, and then calls config.status.
                   10683: # config.status does its own redirection, appending to config.log.
                   10684: # Unfortunately, on DOS this fails, as config.log is still kept open
                   10685: # by configure, so config.status won't be able to write to it; its
                   10686: # output is simply discarded.  So we exec the FD to /dev/null,
                   10687: # effectively closing config.log, so it can be properly (re)opened and
                   10688: # appended to by config.status.  When coming back to configure, we
                   10689: # need to make the FD available again.
                   10690: if test "$no_create" != yes; then
                   10691:   ac_cs_success=:
                   10692:   ac_config_status_args=
                   10693:   test "$silent" = yes &&
                   10694:     ac_config_status_args="$ac_config_status_args --quiet"
                   10695:   exec 5>/dev/null
                   10696:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   10697:   exec 5>>config.log
                   10698:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   10699:   # would make configure fail if this is the last instruction.
1.15      bertrand 10700:   $ac_cs_success || as_fn_exit $?
1.1       bertrand 10701: fi
                   10702: 
                   10703: #
                   10704: # CONFIG_SUBDIRS section.
                   10705: #
                   10706: if test "$no_recursion" != yes; then
                   10707: 
1.15      bertrand 10708:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   10709:   # so they do not pile up.
1.1       bertrand 10710:   ac_sub_configure_args=
                   10711:   ac_prev=
                   10712:   eval "set x $ac_configure_args"
                   10713:   shift
                   10714:   for ac_arg
                   10715:   do
                   10716:     if test -n "$ac_prev"; then
                   10717:       ac_prev=
                   10718:       continue
                   10719:     fi
                   10720:     case $ac_arg in
                   10721:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   10722:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   10723:       ac_prev=cache_file ;;
                   10724:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   10725:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   10726:     | --c=*)
                   10727:       ;;
                   10728:     --config-cache | -C)
                   10729:       ;;
                   10730:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   10731:       ac_prev=srcdir ;;
                   10732:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   10733:       ;;
                   10734:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   10735:       ac_prev=prefix ;;
                   10736:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   10737:       ;;
1.15      bertrand 10738:     --disable-option-checking)
                   10739:       ;;
1.1       bertrand 10740:     *)
                   10741:       case $ac_arg in
1.15      bertrand 10742:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10743:       esac
1.15      bertrand 10744:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 10745:     esac
                   10746:   done
                   10747: 
                   10748:   # Always prepend --prefix to ensure using the same prefix
                   10749:   # in subdir configurations.
                   10750:   ac_arg="--prefix=$prefix"
                   10751:   case $ac_arg in
1.15      bertrand 10752:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10753:   esac
                   10754:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   10755: 
                   10756:   # Pass --silent
                   10757:   if test "$silent" = yes; then
                   10758:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   10759:   fi
                   10760: 
1.15      bertrand 10761:   # Always prepend --disable-option-checking to silence warnings, since
                   10762:   # different subdirs can have different --enable and --with options.
                   10763:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   10764: 
1.1       bertrand 10765:   ac_popdir=`pwd`
                   10766:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   10767: 
                   10768:     # Do not complain, so a configure script can configure whichever
                   10769:     # parts of a large source tree are present.
                   10770:     test -d "$srcdir/$ac_dir" || continue
                   10771: 
                   10772:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 10773:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   10774:     $as_echo "$ac_msg" >&6
                   10775:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10776:     ac_builddir=.
                   10777: 
                   10778: case "$ac_dir" in
                   10779: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10780: *)
1.15      bertrand 10781:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10782:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10783:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10784:   case $ac_top_builddir_sub in
                   10785:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10786:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10787:   esac ;;
                   10788: esac
                   10789: ac_abs_top_builddir=$ac_pwd
                   10790: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10791: # for backward compatibility:
                   10792: ac_top_builddir=$ac_top_build_prefix
                   10793: 
                   10794: case $srcdir in
                   10795:   .)  # We are building in place.
                   10796:     ac_srcdir=.
                   10797:     ac_top_srcdir=$ac_top_builddir_sub
                   10798:     ac_abs_top_srcdir=$ac_pwd ;;
                   10799:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10800:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10801:     ac_top_srcdir=$srcdir
                   10802:     ac_abs_top_srcdir=$srcdir ;;
                   10803:   *) # Relative name.
                   10804:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10805:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10806:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10807: esac
                   10808: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10809: 
                   10810: 
                   10811:     cd "$ac_dir"
                   10812: 
                   10813:     # Check for guested configure; otherwise get Cygnus style configure.
                   10814:     if test -f "$ac_srcdir/configure.gnu"; then
                   10815:       ac_sub_configure=$ac_srcdir/configure.gnu
                   10816:     elif test -f "$ac_srcdir/configure"; then
                   10817:       ac_sub_configure=$ac_srcdir/configure
                   10818:     elif test -f "$ac_srcdir/configure.in"; then
                   10819:       # This should be Cygnus configure.
                   10820:       ac_sub_configure=$ac_aux_dir/configure
                   10821:     else
1.15      bertrand 10822:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   10823: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 10824:       ac_sub_configure=
                   10825:     fi
                   10826: 
                   10827:     # The recursion is here.
                   10828:     if test -n "$ac_sub_configure"; then
                   10829:       # Make the cache file name correct relative to the subdirectory.
                   10830:       case $cache_file in
                   10831:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   10832:       *) # Relative name.
                   10833:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   10834:       esac
                   10835: 
1.15      bertrand 10836:       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
                   10837: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1       bertrand 10838:       # The eval makes quoting arguments work.
                   10839:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   10840:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.15      bertrand 10841:    as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 10842:     fi
                   10843: 
                   10844:     cd "$ac_popdir"
                   10845:   done
                   10846: fi
1.15      bertrand 10847: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   10848:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   10849: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   10850: fi
1.1       bertrand 10851: 

CVSweb interface <joel.bertrand@systella.fr>