Annotation of rpl/configure, revision 1.75

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.73      bertrand    3: # Generated by GNU Autoconf 2.68 for rpl 4.1.3.
1.15      bertrand    4: #
1.1       bertrand    5: #
                      6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.36      bertrand    7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
                      8: # Foundation, Inc.
1.15      bertrand    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.57      bertrand   92: as_myself=
1.15      bertrand   93: case $0 in #((
1.1       bertrand   94:   *[\\/]* ) as_myself=$0 ;;
                     95:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     96: for as_dir in $PATH
                     97: do
                     98:   IFS=$as_save_IFS
                     99:   test -z "$as_dir" && as_dir=.
1.15      bertrand  100:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    101:   done
1.1       bertrand  102: IFS=$as_save_IFS
                    103: 
                    104:      ;;
                    105: esac
                    106: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    107: # in which case we are not to be found in the path.
                    108: if test "x$as_myself" = x; then
                    109:   as_myself=$0
                    110: fi
                    111: if test ! -f "$as_myself"; then
1.15      bertrand  112:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    113:   exit 1
1.1       bertrand  114: fi
                    115: 
1.15      bertrand  116: # Unset variables that we do not need and which cause bugs (e.g. in
                    117: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    118: # suppresses any "Segmentation fault" message there.  '((' could
                    119: # trigger a bug in pdksh 5.2.14.
                    120: for as_var in BASH_ENV ENV MAIL MAILPATH
                    121: do eval test x\${$as_var+set} = xset \
                    122:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand  123: done
                    124: PS1='$ '
                    125: PS2='> '
                    126: PS4='+ '
                    127: 
                    128: # NLS nuisances.
1.15      bertrand  129: LC_ALL=C
                    130: export LC_ALL
                    131: LANGUAGE=C
                    132: export LANGUAGE
1.1       bertrand  133: 
                    134: # CDPATH.
1.15      bertrand  135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       bertrand  136: 
                    137: if test "x$CONFIG_SHELL" = x; then
1.15      bertrand  138:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    139:   emulate sh
                    140:   NULLCMD=:
                    141:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    142:   # is contrary to our usage.  Disable this feature.
                    143:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    144:   setopt NO_GLOB_SUBST
1.1       bertrand  145: else
1.15      bertrand  146:   case \`(set -o) 2>/dev/null\` in #(
                    147:   *posix*) :
                    148:     set -o posix ;; #(
                    149:   *) :
                    150:      ;;
                    151: esac
1.1       bertrand  152: fi
1.15      bertrand  153: "
                    154:   as_required="as_fn_return () { (exit \$1); }
                    155: as_fn_success () { as_fn_return 0; }
                    156: as_fn_failure () { as_fn_return 1; }
                    157: as_fn_ret_success () { return 0; }
                    158: as_fn_ret_failure () { return 1; }
1.1       bertrand  159: 
                    160: exitcode=0
1.15      bertrand  161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    166: 
                    167: else
                    168:   exitcode=1; echo positional parameters were not saved.
                    169: fi
                    170: test x\$exitcode = x0 || exit 1"
                    171:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    172:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    173:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    174:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    175: test \$(( 1 + 1 )) = 2 || exit 1"
                    176:   if (eval "$as_required") 2>/dev/null; then :
                    177:   as_have_required=yes
1.14      bertrand  178: else
1.15      bertrand  179:   as_have_required=no
1.14      bertrand  180: fi
1.15      bertrand  181:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14      bertrand  182: 
                    183: else
1.15      bertrand  184:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    185: as_found=false
1.1       bertrand  186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    187: do
                    188:   IFS=$as_save_IFS
                    189:   test -z "$as_dir" && as_dir=.
1.15      bertrand  190:   as_found=:
                    191:   case $as_dir in #(
1.1       bertrand  192:     /*)
                    193:       for as_base in sh bash ksh sh5; do
1.15      bertrand  194:         # Try only shells that exist, to save several forks.
                    195:         as_shell=$as_dir/$as_base
                    196:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    197:            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    198:   CONFIG_SHELL=$as_shell as_have_required=yes
                    199:           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    200:   break 2
                    201: fi
                    202: fi
1.1       bertrand  203:       done;;
                    204:        esac
1.15      bertrand  205:   as_found=false
1.1       bertrand  206: done
1.15      bertrand  207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    208:          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    209:   CONFIG_SHELL=$SHELL as_have_required=yes
                    210: fi; }
1.1       bertrand  211: IFS=$as_save_IFS
                    212: 
                    213: 
1.15      bertrand  214:       if test "x$CONFIG_SHELL" != x; then :
                    215:   # We cannot yet assume a decent shell, so we have to provide a
                    216:    # neutralization value for shells without unset; and this also
                    217:    # works around shells that cannot unset nonexistent variables.
1.57      bertrand  218:    # Preserve -v and -x to the replacement shell.
1.15      bertrand  219:    BASH_ENV=/dev/null
                    220:    ENV=/dev/null
                    221:    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    222:    export CONFIG_SHELL
1.57      bertrand  223:    case $- in # ((((
                    224:      *v*x* | *x*v* ) as_opts=-vx ;;
                    225:      *v* ) as_opts=-v ;;
                    226:      *x* ) as_opts=-x ;;
                    227:      * ) as_opts= ;;
                    228:    esac
                    229:    exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1.15      bertrand  230: fi
                    231: 
                    232:     if test x$as_have_required = xno; then :
                    233:   $as_echo "$0: This script requires a shell more modern than all"
                    234:   $as_echo "$0: the shells that I found on your system."
                    235:   if test x${ZSH_VERSION+set} = xset ; then
                    236:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    237:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    238:   else
                    239:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    240: $0: including any error possibly output before this
                    241: $0: message. Then install a modern shell, or manually run
                    242: $0: the script under such a shell if you do have one."
                    243:   fi
                    244:   exit 1
                    245: fi
1.1       bertrand  246: fi
                    247: fi
1.15      bertrand  248: SHELL=${CONFIG_SHELL-/bin/sh}
                    249: export SHELL
                    250: # Unset more variables known to interfere with behavior of common tools.
                    251: CLICOLOR_FORCE= GREP_OPTIONS=
                    252: unset CLICOLOR_FORCE GREP_OPTIONS
1.14      bertrand  253: 
1.15      bertrand  254: ## --------------------- ##
                    255: ## M4sh Shell Functions. ##
                    256: ## --------------------- ##
                    257: # as_fn_unset VAR
                    258: # ---------------
                    259: # Portably unset VAR.
                    260: as_fn_unset ()
                    261: {
                    262:   { eval $1=; unset $1;}
                    263: }
                    264: as_unset=as_fn_unset
                    265: 
                    266: # as_fn_set_status STATUS
                    267: # -----------------------
                    268: # Set $? to STATUS, without forking.
                    269: as_fn_set_status ()
                    270: {
                    271:   return $1
                    272: } # as_fn_set_status
                    273: 
                    274: # as_fn_exit STATUS
                    275: # -----------------
                    276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    277: as_fn_exit ()
                    278: {
                    279:   set +e
                    280:   as_fn_set_status $1
                    281:   exit $1
                    282: } # as_fn_exit
                    283: 
                    284: # as_fn_mkdir_p
                    285: # -------------
                    286: # Create "$as_dir" as a directory, including parents if necessary.
                    287: as_fn_mkdir_p ()
                    288: {
1.14      bertrand  289: 
1.15      bertrand  290:   case $as_dir in #(
                    291:   -*) as_dir=./$as_dir;;
                    292:   esac
                    293:   test -d "$as_dir" || eval $as_mkdir_p || {
                    294:     as_dirs=
                    295:     while :; do
                    296:       case $as_dir in #(
                    297:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    298:       *) as_qdir=$as_dir;;
                    299:       esac
                    300:       as_dirs="'$as_qdir' $as_dirs"
                    301:       as_dir=`$as_dirname -- "$as_dir" ||
                    302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    303:     X"$as_dir" : 'X\(//\)[^/]' \| \
                    304:     X"$as_dir" : 'X\(//\)$' \| \
                    305:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    306: $as_echo X"$as_dir" |
                    307:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    308:        s//\1/
                    309:        q
                    310:      }
                    311:      /^X\(\/\/\)[^/].*/{
                    312:        s//\1/
                    313:        q
                    314:      }
                    315:      /^X\(\/\/\)$/{
                    316:        s//\1/
                    317:        q
                    318:      }
                    319:      /^X\(\/\).*/{
                    320:        s//\1/
                    321:        q
                    322:      }
                    323:      s/.*/./; q'`
                    324:       test -d "$as_dir" && break
                    325:     done
                    326:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand  327:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1       bertrand  328: 
                    329: 
1.15      bertrand  330: } # as_fn_mkdir_p
                    331: # as_fn_append VAR VALUE
                    332: # ----------------------
                    333: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    334: # advantage of any shell optimizations that allow amortized linear growth over
                    335: # repeated appends, instead of the typical quadratic growth present in naive
                    336: # implementations.
                    337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    338:   eval 'as_fn_append ()
                    339:   {
                    340:     eval $1+=\$2
                    341:   }'
1.14      bertrand  342: else
1.15      bertrand  343:   as_fn_append ()
                    344:   {
                    345:     eval $1=\$$1\$2
                    346:   }
                    347: fi # as_fn_append
1.1       bertrand  348: 
1.15      bertrand  349: # as_fn_arith ARG...
                    350: # ------------------
                    351: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    353: # must be portable across $(()) and expr.
                    354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    355:   eval 'as_fn_arith ()
                    356:   {
                    357:     as_val=$(( $* ))
                    358:   }'
1.1       bertrand  359: else
1.15      bertrand  360:   as_fn_arith ()
                    361:   {
                    362:     as_val=`expr "$@" || test $? -eq 1`
                    363:   }
                    364: fi # as_fn_arith
1.14      bertrand  365: 
                    366: 
1.36      bertrand  367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    368: # ----------------------------------------
1.15      bertrand  369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand  371: # script with STATUS, using 1 if that was 0.
1.15      bertrand  372: as_fn_error ()
                    373: {
1.36      bertrand  374:   as_status=$1; test $as_status -eq 0 && as_status=1
                    375:   if test "$4"; then
                    376:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    377:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand  378:   fi
1.36      bertrand  379:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand  380:   as_fn_exit $as_status
                    381: } # as_fn_error
1.14      bertrand  382: 
1.15      bertrand  383: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    384:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    385:   as_expr=expr
1.1       bertrand  386: else
1.15      bertrand  387:   as_expr=false
1.14      bertrand  388: fi
                    389: 
1.15      bertrand  390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    391:   as_basename=basename
1.1       bertrand  392: else
1.15      bertrand  393:   as_basename=false
1.14      bertrand  394: fi
                    395: 
1.15      bertrand  396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    397:   as_dirname=dirname
1.1       bertrand  398: else
1.15      bertrand  399:   as_dirname=false
1.1       bertrand  400: fi
                    401: 
1.15      bertrand  402: as_me=`$as_basename -- "$0" ||
                    403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    404:     X"$0" : 'X\(//\)$' \| \
                    405:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    406: $as_echo X/"$0" |
                    407:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    408:        s//\1/
                    409:        q
                    410:      }
                    411:      /^X\/\(\/\/\)$/{
                    412:        s//\1/
                    413:        q
                    414:      }
                    415:      /^X\/\(\/\).*/{
                    416:        s//\1/
                    417:        q
                    418:      }
                    419:      s/.*/./; q'`
1.1       bertrand  420: 
1.15      bertrand  421: # Avoid depending upon Character Ranges.
                    422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    425: as_cr_digits='0123456789'
                    426: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand  427: 
                    428: 
1.15      bertrand  429:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    430:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    431:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    432:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    433:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.1       bertrand  434:   sed -n '
                    435:     p
                    436:     /[$]LINENO/=
                    437:   ' <$as_myself |
                    438:     sed '
                    439:       s/[$]LINENO.*/&-/
                    440:       t lineno
                    441:       b
                    442:       :lineno
                    443:       N
                    444:       :loop
                    445:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    446:       t loop
                    447:       s/-\n.*//
                    448:     ' >$as_me.lineno &&
                    449:   chmod +x "$as_me.lineno" ||
1.15      bertrand  450:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1       bertrand  451: 
                    452:   # Don't try to exec as it changes $[0], causing all sort of problems
                    453:   # (the dirname of $[0] is not the place where we might find the
                    454:   # original and so on.  Autoconf is especially sensitive to this).
                    455:   . "./$as_me.lineno"
                    456:   # Exit status is that of the last command.
                    457:   exit
                    458: }
                    459: 
1.15      bertrand  460: ECHO_C= ECHO_N= ECHO_T=
                    461: case `echo -n x` in #(((((
                    462: -n*)
                    463:   case `echo 'xy\c'` in
1.1       bertrand  464:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand  465:   xy)  ECHO_C='\c';;
                    466:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    467:        ECHO_T='    ';;
1.1       bertrand  468:   esac;;
                    469: *)
                    470:   ECHO_N='-n';;
                    471: esac
                    472: 
                    473: rm -f conf$$ conf$$.exe conf$$.file
                    474: if test -d conf$$.dir; then
                    475:   rm -f conf$$.dir/conf$$.file
                    476: else
                    477:   rm -f conf$$.dir
1.15      bertrand  478:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand  479: fi
1.15      bertrand  480: if (echo >conf$$.file) 2>/dev/null; then
                    481:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    482:     as_ln_s='ln -s'
                    483:     # ... but there are two gotchas:
                    484:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    485:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    486:     # In both cases, we have to default to `cp -p'.
                    487:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    488:       as_ln_s='cp -p'
                    489:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    490:     as_ln_s=ln
                    491:   else
1.1       bertrand  492:     as_ln_s='cp -p'
1.15      bertrand  493:   fi
1.1       bertrand  494: else
                    495:   as_ln_s='cp -p'
                    496: fi
                    497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    498: rmdir conf$$.dir 2>/dev/null
                    499: 
                    500: if mkdir -p . 2>/dev/null; then
1.15      bertrand  501:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand  502: else
                    503:   test -d ./-p && rmdir ./-p
                    504:   as_mkdir_p=false
                    505: fi
                    506: 
                    507: if test -x / >/dev/null 2>&1; then
                    508:   as_test_x='test -x'
                    509: else
                    510:   if ls -dL / >/dev/null 2>&1; then
                    511:     as_ls_L_option=L
                    512:   else
                    513:     as_ls_L_option=
                    514:   fi
                    515:   as_test_x='
                    516:     eval sh -c '\''
                    517:       if test -d "$1"; then
1.15      bertrand  518:    test -d "$1/.";
1.1       bertrand  519:       else
1.15      bertrand  520:    case $1 in #(
                    521:    -*)set "./$1";;
1.1       bertrand  522:    esac;
1.15      bertrand  523:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand  524:    ???[sx]*):;;*)false;;esac;fi
                    525:     '\'' sh
                    526:   '
                    527: fi
                    528: as_executable_p=$as_test_x
                    529: 
                    530: # Sed expression to map a string onto a valid CPP name.
                    531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    532: 
                    533: # Sed expression to map a string onto a valid variable name.
                    534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    535: 
                    536: 
1.15      bertrand  537: test -n "$DJDIR" || exec 7<&0 </dev/null
                    538: exec 6>&1
1.1       bertrand  539: 
                    540: # Name of the host.
1.36      bertrand  541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1       bertrand  542: # so uname gets run too.
                    543: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    544: 
                    545: #
                    546: # Initializations.
                    547: #
                    548: ac_default_prefix=/usr/local
                    549: ac_clean_files=
                    550: ac_config_libobj_dir=.
                    551: LIBOBJS=
                    552: cross_compiling=no
                    553: subdirs=
                    554: MFLAGS=
                    555: MAKEFLAGS=
                    556: 
                    557: # Identity of this package.
                    558: PACKAGE_NAME='rpl'
                    559: PACKAGE_TARNAME='rpl'
1.73      bertrand  560: PACKAGE_VERSION='4.1.3'
                    561: PACKAGE_STRING='rpl 4.1.3'
1.1       bertrand  562: PACKAGE_BUGREPORT=''
1.15      bertrand  563: PACKAGE_URL=''
1.1       bertrand  564: 
                    565: ac_default_prefix=/usr/local
                    566: # Factoring default headers for most tests.
                    567: ac_includes_default="\
                    568: #include <stdio.h>
                    569: #ifdef HAVE_SYS_TYPES_H
                    570: # include <sys/types.h>
                    571: #endif
                    572: #ifdef HAVE_SYS_STAT_H
                    573: # include <sys/stat.h>
                    574: #endif
                    575: #ifdef STDC_HEADERS
                    576: # include <stdlib.h>
                    577: # include <stddef.h>
                    578: #else
                    579: # ifdef HAVE_STDLIB_H
                    580: #  include <stdlib.h>
                    581: # endif
                    582: #endif
                    583: #ifdef HAVE_STRING_H
                    584: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    585: #  include <memory.h>
                    586: # endif
                    587: # include <string.h>
                    588: #endif
                    589: #ifdef HAVE_STRINGS_H
                    590: # include <strings.h>
                    591: #endif
                    592: #ifdef HAVE_INTTYPES_H
                    593: # include <inttypes.h>
                    594: #endif
                    595: #ifdef HAVE_STDINT_H
                    596: # include <stdint.h>
                    597: #endif
                    598: #ifdef HAVE_UNISTD_H
                    599: # include <unistd.h>
                    600: #endif"
                    601: 
1.15      bertrand  602: enable_option_checking=no
                    603: ac_subst_vars='am__EXEEXT_FALSE
                    604: am__EXEEXT_TRUE
                    605: LTLIBOBJS
                    606: LIBOBJS
1.56      bertrand  607: GIAC
                    608: PARI
                    609: COCOA
                    610: NTL
1.55      bertrand  611: MPFR
                    612: GMP
1.49      bertrand  613: MALLOC
1.30      bertrand  614: EXT_SQL
1.15      bertrand  615: DATE_FR
                    616: FINAL_ENCODING
                    617: OPENSSL
                    618: SQLITE
                    619: ICONV
                    620: FILE
                    621: GNUPLOT
                    622: GPP
                    623: GSL
                    624: UNITS
                    625: READLINE
                    626: NCURSES
1.75    ! bertrand  627: ELF
1.40      bertrand  628: BSH_PATH
1.35      bertrand  629: BROKEN_SIGINFO
1.34      bertrand  630: IPV6
1.33      bertrand  631: SEMUN
1.36      bertrand  632: IPCS_SYSV
1.17      bertrand  633: SEMAPHORES_NOMMES
                    634: NESTED_FUNCTIONS
                    635: EXPORT_DYNAMIC
1.33      bertrand  636: C_STANDARD
1.15      bertrand  637: OS
1.69      bertrand  638: HOST
1.15      bertrand  639: GNUPLOT_COMPILATION
                    640: subdirs
                    641: EGREP
                    642: GREP
                    643: libPgSQLlib
                    644: libPgSQLinc
                    645: POSTGRESQL_SUPPORT
                    646: libMySQLlib
                    647: libMySQLinc
                    648: MYSQL_SUPPORT
                    649: DATE
                    650: includeX
                    651: libX
                    652: MOTIF_SUPPORT
                    653: DEBUG
                    654: EXPERIMENTAL_CODE
                    655: VIM_SUPPORT
                    656: POSTSCRIPT_SUPPORT
                    657: FORCE_GNUPLOT_PATH
                    658: GNUPLOT_SUPPORT
                    659: VIM
                    660: GNUPLOT_P
                    661: GV
                    662: GS
                    663: DVIPS
                    664: LATEX
                    665: TEX
                    666: SED
                    667: RANLIB
                    668: LN_S
                    669: RUNPATH
                    670: PROFILAGE
1.67      bertrand  671: LIBRPLCAS
                    672: RPLCAS
1.66      bertrand  673: ABI
1.15      bertrand  674: X_EXTRA_LIBS
                    675: X_LIBS
                    676: X_PRE_LIBS
                    677: X_CFLAGS
                    678: CPP
                    679: XMKMF
                    680: ac_ct_FC
                    681: FCFLAGS
                    682: FC
                    683: ac_ct_F77
                    684: FFLAGS
                    685: F77
                    686: am__fastdepCXX_FALSE
                    687: am__fastdepCXX_TRUE
                    688: CXXDEPMODE
                    689: ac_ct_CXX
                    690: CXXFLAGS
                    691: CXX
                    692: am__fastdepCC_FALSE
                    693: am__fastdepCC_TRUE
                    694: CCDEPMODE
                    695: AMDEPBACKSLASH
                    696: AMDEP_FALSE
                    697: AMDEP_TRUE
                    698: am__quote
                    699: am__include
                    700: DEPDIR
                    701: OBJEXT
                    702: EXEEXT
                    703: ac_ct_CC
                    704: CPPFLAGS
                    705: LDFLAGS
                    706: CFLAGS
                    707: CC
                    708: am__untar
                    709: am__tar
                    710: AMTAR
                    711: am__leading_dot
                    712: SET_MAKE
                    713: AWK
                    714: mkdir_p
                    715: MKDIR_P
                    716: INSTALL_STRIP_PROGRAM
                    717: STRIP
                    718: install_sh
                    719: MAKEINFO
                    720: AUTOHEADER
                    721: AUTOMAKE
                    722: AUTOCONF
                    723: ACLOCAL
                    724: VERSION
                    725: PACKAGE
                    726: CYGPATH_W
                    727: am__isrc
                    728: INSTALL_DATA
                    729: INSTALL_SCRIPT
                    730: INSTALL_PROGRAM
                    731: target_os
                    732: target_vendor
                    733: target_cpu
                    734: target
                    735: host_os
                    736: host_vendor
                    737: host_cpu
                    738: host
                    739: build_os
                    740: build_vendor
                    741: build_cpu
                    742: build
                    743: target_alias
                    744: host_alias
                    745: build_alias
                    746: LIBS
                    747: ECHO_T
                    748: ECHO_N
                    749: ECHO_C
                    750: DEFS
                    751: mandir
                    752: localedir
                    753: libdir
                    754: psdir
                    755: pdfdir
                    756: dvidir
                    757: htmldir
                    758: infodir
                    759: docdir
                    760: oldincludedir
                    761: includedir
                    762: localstatedir
                    763: sharedstatedir
                    764: sysconfdir
                    765: datadir
                    766: datarootdir
                    767: libexecdir
                    768: sbindir
                    769: bindir
                    770: program_transform_name
                    771: prefix
                    772: exec_prefix
                    773: PACKAGE_URL
                    774: PACKAGE_BUGREPORT
                    775: PACKAGE_STRING
                    776: PACKAGE_VERSION
                    777: PACKAGE_TARNAME
                    778: PACKAGE_NAME
1.14      bertrand  779: PATH_SEPARATOR
1.15      bertrand  780: SHELL'
                    781: ac_subst_files=''
                    782: ac_user_opts='
                    783: enable_option_checking
                    784: enable_dependency_tracking
                    785: with_x
1.69      bertrand  786: with_32bits_abi
                    787: with_64bits_abi
1.67      bertrand  788: with_rplcas
1.15      bertrand  789: enable_optimization
1.36      bertrand  790: enable_sysv_semaphores
1.30      bertrand  791: enable_full_static
1.15      bertrand  792: enable_final_encoding
                    793: enable_tex
                    794: enable_vim
                    795: enable_embedded_gnuplot
                    796: enable_gnuplot
                    797: enable_motif
                    798: enable_experimental
                    799: enable_debug
                    800: enable_profile
                    801: enable_final_run_path
                    802: with_mysql
                    803: with_postgresql
1.40      bertrand  804: with_bourne_shell
1.15      bertrand  805: with_openssl_arch
                    806: '
                    807:       ac_precious_vars='build_alias
1.1       bertrand  808: host_alias
                    809: target_alias
                    810: CC
                    811: CFLAGS
                    812: LDFLAGS
1.15      bertrand  813: LIBS
1.1       bertrand  814: CPPFLAGS
                    815: CXX
                    816: CXXFLAGS
1.15      bertrand  817: CCC
1.1       bertrand  818: F77
                    819: FFLAGS
                    820: FC
                    821: FCFLAGS
                    822: XMKMF
                    823: CPP'
1.69      bertrand  824: ac_subdirs_all='tools/$GNUPLOT
                    825: tools/$NCURSES
1.1       bertrand  826: tools/$READLINE
                    827: tools/$GSL
                    828: tools/$GPP
                    829: tools/$FILE
                    830: tools/$ICONV
1.9       bertrand  831: tools/$SQLITE
1.69      bertrand  832: tools/$UNITS'
1.1       bertrand  833: 
                    834: # Initialize some variables set by options.
                    835: ac_init_help=
                    836: ac_init_version=false
1.15      bertrand  837: ac_unrecognized_opts=
                    838: ac_unrecognized_sep=
1.1       bertrand  839: # The variables have the same names as the options, with
                    840: # dashes changed to underlines.
                    841: cache_file=/dev/null
                    842: exec_prefix=NONE
                    843: no_create=
                    844: no_recursion=
                    845: prefix=NONE
                    846: program_prefix=NONE
                    847: program_suffix=NONE
                    848: program_transform_name=s,x,x,
                    849: silent=
                    850: site=
                    851: srcdir=
                    852: verbose=
                    853: x_includes=NONE
                    854: x_libraries=NONE
                    855: 
                    856: # Installation directory options.
                    857: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    858: # and all the variables that are supposed to be based on exec_prefix
                    859: # by default will actually change.
                    860: # Use braces instead of parens because sh, perl, etc. also accept them.
                    861: # (The list follows the same order as the GNU Coding Standards.)
                    862: bindir='${exec_prefix}/bin'
                    863: sbindir='${exec_prefix}/sbin'
                    864: libexecdir='${exec_prefix}/libexec'
                    865: datarootdir='${prefix}/share'
                    866: datadir='${datarootdir}'
                    867: sysconfdir='${prefix}/etc'
                    868: sharedstatedir='${prefix}/com'
                    869: localstatedir='${prefix}/var'
                    870: includedir='${prefix}/include'
                    871: oldincludedir='/usr/include'
                    872: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    873: infodir='${datarootdir}/info'
                    874: htmldir='${docdir}'
                    875: dvidir='${docdir}'
                    876: pdfdir='${docdir}'
                    877: psdir='${docdir}'
                    878: libdir='${exec_prefix}/lib'
                    879: localedir='${datarootdir}/locale'
                    880: mandir='${datarootdir}/man'
                    881: 
                    882: ac_prev=
                    883: ac_dashdash=
                    884: for ac_option
                    885: do
                    886:   # If the previous option needs an argument, assign it.
                    887:   if test -n "$ac_prev"; then
                    888:     eval $ac_prev=\$ac_option
                    889:     ac_prev=
                    890:     continue
                    891:   fi
                    892: 
                    893:   case $ac_option in
1.36      bertrand  894:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    895:   *=)   ac_optarg= ;;
                    896:   *)    ac_optarg=yes ;;
1.1       bertrand  897:   esac
                    898: 
                    899:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    900: 
                    901:   case $ac_dashdash$ac_option in
                    902:   --)
                    903:     ac_dashdash=yes ;;
                    904: 
                    905:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    906:     ac_prev=bindir ;;
                    907:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    908:     bindir=$ac_optarg ;;
                    909: 
                    910:   -build | --build | --buil | --bui | --bu)
                    911:     ac_prev=build_alias ;;
                    912:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    913:     build_alias=$ac_optarg ;;
                    914: 
                    915:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    916:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    917:     ac_prev=cache_file ;;
                    918:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    919:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    920:     cache_file=$ac_optarg ;;
                    921: 
                    922:   --config-cache | -C)
                    923:     cache_file=config.cache ;;
                    924: 
                    925:   -datadir | --datadir | --datadi | --datad)
                    926:     ac_prev=datadir ;;
                    927:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    928:     datadir=$ac_optarg ;;
                    929: 
                    930:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    931:   | --dataroo | --dataro | --datar)
                    932:     ac_prev=datarootdir ;;
                    933:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    934:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    935:     datarootdir=$ac_optarg ;;
                    936: 
                    937:   -disable-* | --disable-*)
1.15      bertrand  938:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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 &&
1.36      bertrand  941:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  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--disable-$ac_useropt_orig"
                    949:     ac_unrecognized_sep=', ';;
                    950:     esac
                    951:     eval enable_$ac_useropt=no ;;
1.1       bertrand  952: 
                    953:   -docdir | --docdir | --docdi | --doc | --do)
                    954:     ac_prev=docdir ;;
                    955:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    956:     docdir=$ac_optarg ;;
                    957: 
                    958:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    959:     ac_prev=dvidir ;;
                    960:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    961:     dvidir=$ac_optarg ;;
                    962: 
                    963:   -enable-* | --enable-*)
1.15      bertrand  964:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  965:     # Reject names that are not valid shell variable names.
1.15      bertrand  966:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  967:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  968:     ac_useropt_orig=$ac_useropt
                    969:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    970:     case $ac_user_opts in
                    971:       *"
                    972: "enable_$ac_useropt"
                    973: "*) ;;
                    974:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    975:     ac_unrecognized_sep=', ';;
                    976:     esac
                    977:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  978: 
                    979:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    980:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    981:   | --exec | --exe | --ex)
                    982:     ac_prev=exec_prefix ;;
                    983:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    984:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    985:   | --exec=* | --exe=* | --ex=*)
                    986:     exec_prefix=$ac_optarg ;;
                    987: 
                    988:   -gas | --gas | --ga | --g)
                    989:     # Obsolete; use --with-gas.
                    990:     with_gas=yes ;;
                    991: 
                    992:   -help | --help | --hel | --he | -h)
                    993:     ac_init_help=long ;;
                    994:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    995:     ac_init_help=recursive ;;
                    996:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    997:     ac_init_help=short ;;
                    998: 
                    999:   -host | --host | --hos | --ho)
                   1000:     ac_prev=host_alias ;;
                   1001:   -host=* | --host=* | --hos=* | --ho=*)
                   1002:     host_alias=$ac_optarg ;;
                   1003: 
                   1004:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1005:     ac_prev=htmldir ;;
                   1006:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1007:   | --ht=*)
                   1008:     htmldir=$ac_optarg ;;
                   1009: 
                   1010:   -includedir | --includedir | --includedi | --included | --include \
                   1011:   | --includ | --inclu | --incl | --inc)
                   1012:     ac_prev=includedir ;;
                   1013:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1014:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1015:     includedir=$ac_optarg ;;
                   1016: 
                   1017:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1018:     ac_prev=infodir ;;
                   1019:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1020:     infodir=$ac_optarg ;;
                   1021: 
                   1022:   -libdir | --libdir | --libdi | --libd)
                   1023:     ac_prev=libdir ;;
                   1024:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1025:     libdir=$ac_optarg ;;
                   1026: 
                   1027:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1028:   | --libexe | --libex | --libe)
                   1029:     ac_prev=libexecdir ;;
                   1030:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1031:   | --libexe=* | --libex=* | --libe=*)
                   1032:     libexecdir=$ac_optarg ;;
                   1033: 
                   1034:   -localedir | --localedir | --localedi | --localed | --locale)
                   1035:     ac_prev=localedir ;;
                   1036:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1037:     localedir=$ac_optarg ;;
                   1038: 
                   1039:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1040:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1041:     ac_prev=localstatedir ;;
                   1042:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1043:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1044:     localstatedir=$ac_optarg ;;
                   1045: 
                   1046:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1047:     ac_prev=mandir ;;
                   1048:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1049:     mandir=$ac_optarg ;;
                   1050: 
                   1051:   -nfp | --nfp | --nf)
                   1052:     # Obsolete; use --without-fp.
                   1053:     with_fp=no ;;
                   1054: 
                   1055:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1056:   | --no-cr | --no-c | -n)
                   1057:     no_create=yes ;;
                   1058: 
                   1059:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1060:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1061:     no_recursion=yes ;;
                   1062: 
                   1063:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1064:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1065:   | --oldin | --oldi | --old | --ol | --o)
                   1066:     ac_prev=oldincludedir ;;
                   1067:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1068:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1069:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1070:     oldincludedir=$ac_optarg ;;
                   1071: 
                   1072:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1073:     ac_prev=prefix ;;
                   1074:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1075:     prefix=$ac_optarg ;;
                   1076: 
                   1077:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1078:   | --program-pre | --program-pr | --program-p)
                   1079:     ac_prev=program_prefix ;;
                   1080:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1081:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1082:     program_prefix=$ac_optarg ;;
                   1083: 
                   1084:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1085:   | --program-suf | --program-su | --program-s)
                   1086:     ac_prev=program_suffix ;;
                   1087:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1088:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1089:     program_suffix=$ac_optarg ;;
                   1090: 
                   1091:   -program-transform-name | --program-transform-name \
                   1092:   | --program-transform-nam | --program-transform-na \
                   1093:   | --program-transform-n | --program-transform- \
                   1094:   | --program-transform | --program-transfor \
                   1095:   | --program-transfo | --program-transf \
                   1096:   | --program-trans | --program-tran \
                   1097:   | --progr-tra | --program-tr | --program-t)
                   1098:     ac_prev=program_transform_name ;;
                   1099:   -program-transform-name=* | --program-transform-name=* \
                   1100:   | --program-transform-nam=* | --program-transform-na=* \
                   1101:   | --program-transform-n=* | --program-transform-=* \
                   1102:   | --program-transform=* | --program-transfor=* \
                   1103:   | --program-transfo=* | --program-transf=* \
                   1104:   | --program-trans=* | --program-tran=* \
                   1105:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1106:     program_transform_name=$ac_optarg ;;
                   1107: 
                   1108:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1109:     ac_prev=pdfdir ;;
                   1110:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1111:     pdfdir=$ac_optarg ;;
                   1112: 
                   1113:   -psdir | --psdir | --psdi | --psd | --ps)
                   1114:     ac_prev=psdir ;;
                   1115:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1116:     psdir=$ac_optarg ;;
                   1117: 
                   1118:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1119:   | -silent | --silent | --silen | --sile | --sil)
                   1120:     silent=yes ;;
                   1121: 
                   1122:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1123:     ac_prev=sbindir ;;
                   1124:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1125:   | --sbi=* | --sb=*)
                   1126:     sbindir=$ac_optarg ;;
                   1127: 
                   1128:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1129:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1130:   | --sharedst | --shareds | --shared | --share | --shar \
                   1131:   | --sha | --sh)
                   1132:     ac_prev=sharedstatedir ;;
                   1133:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1134:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1135:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1136:   | --sha=* | --sh=*)
                   1137:     sharedstatedir=$ac_optarg ;;
                   1138: 
                   1139:   -site | --site | --sit)
                   1140:     ac_prev=site ;;
                   1141:   -site=* | --site=* | --sit=*)
                   1142:     site=$ac_optarg ;;
                   1143: 
                   1144:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1145:     ac_prev=srcdir ;;
                   1146:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1147:     srcdir=$ac_optarg ;;
                   1148: 
                   1149:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1150:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1151:     ac_prev=sysconfdir ;;
                   1152:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1153:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1154:     sysconfdir=$ac_optarg ;;
                   1155: 
                   1156:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1157:     ac_prev=target_alias ;;
                   1158:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1159:     target_alias=$ac_optarg ;;
                   1160: 
                   1161:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1162:     verbose=yes ;;
                   1163: 
                   1164:   -version | --version | --versio | --versi | --vers | -V)
                   1165:     ac_init_version=: ;;
                   1166: 
                   1167:   -with-* | --with-*)
1.15      bertrand 1168:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1169:     # Reject names that are not valid shell variable names.
1.15      bertrand 1170:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1171:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1172:     ac_useropt_orig=$ac_useropt
                   1173:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1174:     case $ac_user_opts in
                   1175:       *"
                   1176: "with_$ac_useropt"
                   1177: "*) ;;
                   1178:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1179:     ac_unrecognized_sep=', ';;
                   1180:     esac
                   1181:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1182: 
                   1183:   -without-* | --without-*)
1.15      bertrand 1184:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1185:     # Reject names that are not valid shell variable names.
1.15      bertrand 1186:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1187:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1188:     ac_useropt_orig=$ac_useropt
                   1189:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1190:     case $ac_user_opts in
                   1191:       *"
                   1192: "with_$ac_useropt"
                   1193: "*) ;;
                   1194:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1195:     ac_unrecognized_sep=', ';;
                   1196:     esac
                   1197:     eval with_$ac_useropt=no ;;
1.1       bertrand 1198: 
                   1199:   --x)
                   1200:     # Obsolete; use --with-x.
                   1201:     with_x=yes ;;
                   1202: 
                   1203:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1204:   | --x-incl | --x-inc | --x-in | --x-i)
                   1205:     ac_prev=x_includes ;;
                   1206:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1207:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1208:     x_includes=$ac_optarg ;;
                   1209: 
                   1210:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1211:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1212:     ac_prev=x_libraries ;;
                   1213:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1214:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1215:     x_libraries=$ac_optarg ;;
                   1216: 
1.36      bertrand 1217:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1218: Try \`$0 --help' for more information"
1.1       bertrand 1219:     ;;
                   1220: 
                   1221:   *=*)
                   1222:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1223:     # Reject names that are not valid shell variable names.
1.15      bertrand 1224:     case $ac_envvar in #(
                   1225:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1226:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1227:     esac
1.1       bertrand 1228:     eval $ac_envvar=\$ac_optarg
                   1229:     export $ac_envvar ;;
                   1230: 
                   1231:   *)
                   1232:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1233:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1234:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1235:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.57      bertrand 1236:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1       bertrand 1237:     ;;
                   1238: 
                   1239:   esac
                   1240: done
                   1241: 
                   1242: if test -n "$ac_prev"; then
                   1243:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1244:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1245: fi
                   1246: 
                   1247: if test -n "$ac_unrecognized_opts"; then
                   1248:   case $enable_option_checking in
                   1249:     no) ;;
1.36      bertrand 1250:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1251:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1252:   esac
1.1       bertrand 1253: fi
                   1254: 
1.15      bertrand 1255: # Check all directory arguments for consistency.
1.1       bertrand 1256: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1257:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1258:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1259:        libdir localedir mandir
                   1260: do
                   1261:   eval ac_val=\$$ac_var
1.15      bertrand 1262:   # Remove trailing slashes.
                   1263:   case $ac_val in
                   1264:     */ )
                   1265:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1266:       eval $ac_var=\$ac_val;;
                   1267:   esac
                   1268:   # Be sure to have absolute directory names.
1.1       bertrand 1269:   case $ac_val in
                   1270:     [\\/$]* | ?:[\\/]* )  continue;;
                   1271:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1272:   esac
1.36      bertrand 1273:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1274: done
                   1275: 
                   1276: # There might be people who depend on the old broken behavior: `$host'
                   1277: # used to hold the argument of --host etc.
                   1278: # FIXME: To remove some day.
                   1279: build=$build_alias
                   1280: host=$host_alias
                   1281: target=$target_alias
                   1282: 
                   1283: # FIXME: To remove some day.
                   1284: if test "x$host_alias" != x; then
                   1285:   if test "x$build_alias" = x; then
                   1286:     cross_compiling=maybe
1.36      bertrand 1287:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1288:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1289:   elif test "x$build_alias" != "x$host_alias"; then
                   1290:     cross_compiling=yes
                   1291:   fi
                   1292: fi
                   1293: 
                   1294: ac_tool_prefix=
                   1295: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1296: 
                   1297: test "$silent" = yes && exec 6>/dev/null
                   1298: 
                   1299: 
                   1300: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1301: ac_ls_di=`ls -di .` &&
                   1302: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1303:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1304: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1305:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1306: 
                   1307: 
                   1308: # Find the source files, if location was not specified.
                   1309: if test -z "$srcdir"; then
                   1310:   ac_srcdir_defaulted=yes
                   1311:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1312:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1313: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1314:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1315:     X"$as_myself" : 'X\(//\)$' \| \
                   1316:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1317: $as_echo X"$as_myself" |
1.1       bertrand 1318:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1319:        s//\1/
                   1320:        q
                   1321:      }
                   1322:      /^X\(\/\/\)[^/].*/{
                   1323:        s//\1/
                   1324:        q
                   1325:      }
                   1326:      /^X\(\/\/\)$/{
                   1327:        s//\1/
                   1328:        q
                   1329:      }
                   1330:      /^X\(\/\).*/{
                   1331:        s//\1/
                   1332:        q
                   1333:      }
                   1334:      s/.*/./; q'`
                   1335:   srcdir=$ac_confdir
                   1336:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1337:     srcdir=..
                   1338:   fi
                   1339: else
                   1340:   ac_srcdir_defaulted=no
                   1341: fi
                   1342: if test ! -r "$srcdir/$ac_unique_file"; then
                   1343:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1344:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1345: fi
                   1346: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1347: ac_abs_confdir=`(
1.36      bertrand 1348:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1349:    pwd)`
                   1350: # When building in place, set srcdir=.
                   1351: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1352:   srcdir=.
                   1353: fi
                   1354: # Remove unnecessary trailing slashes from srcdir.
                   1355: # Double slashes in file names in object file debugging info
                   1356: # mess up M-x gdb in Emacs.
                   1357: case $srcdir in
                   1358: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1359: esac
                   1360: for ac_var in $ac_precious_vars; do
                   1361:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1362:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1363:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1364:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1365: done
                   1366: 
                   1367: #
                   1368: # Report the --help message.
                   1369: #
                   1370: if test "$ac_init_help" = "long"; then
                   1371:   # Omit some internal or obsolete options to make the list less imposing.
                   1372:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1373:   cat <<_ACEOF
1.73      bertrand 1374: \`configure' configures rpl 4.1.3 to adapt to many kinds of systems.
1.1       bertrand 1375: 
                   1376: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1377: 
                   1378: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1379: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1380: 
                   1381: Defaults for the options are specified in brackets.
                   1382: 
                   1383: Configuration:
                   1384:   -h, --help              display this help and exit
                   1385:       --help=short        display options specific to this package
                   1386:       --help=recursive    display the short help of all the included packages
                   1387:   -V, --version           display version information and exit
1.36      bertrand 1388:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1389:       --cache-file=FILE   cache test results in FILE [disabled]
                   1390:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1391:   -n, --no-create         do not create output files
                   1392:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1393: 
                   1394: Installation directories:
                   1395:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1396:                           [$ac_default_prefix]
1.1       bertrand 1397:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1398:                           [PREFIX]
1.1       bertrand 1399: 
                   1400: By default, \`make install' will install all the files in
                   1401: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1402: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1403: for instance \`--prefix=\$HOME'.
                   1404: 
                   1405: For better control, use the options below.
                   1406: 
                   1407: Fine tuning of the installation directories:
1.15      bertrand 1408:   --bindir=DIR            user executables [EPREFIX/bin]
                   1409:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1410:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1411:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1412:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1413:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1414:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1415:   --includedir=DIR        C header files [PREFIX/include]
                   1416:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1417:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1418:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1419:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1420:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1421:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1422:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1423:   --htmldir=DIR           html documentation [DOCDIR]
                   1424:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1425:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1426:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1427: _ACEOF
                   1428: 
                   1429:   cat <<\_ACEOF
                   1430: 
                   1431: Program names:
                   1432:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1433:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1434:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1435: 
                   1436: X features:
                   1437:   --x-includes=DIR    X include files are in DIR
                   1438:   --x-libraries=DIR   X library files are in DIR
                   1439: 
                   1440: System types:
                   1441:   --build=BUILD     configure for building on BUILD [guessed]
                   1442:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1443:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1444: _ACEOF
                   1445: fi
                   1446: 
                   1447: if test -n "$ac_init_help"; then
                   1448:   case $ac_init_help in
1.73      bertrand 1449:      short | recursive ) echo "Configuration of rpl 4.1.3:";;
1.1       bertrand 1450:    esac
                   1451:   cat <<\_ACEOF
                   1452: 
                   1453: Optional Features:
1.15      bertrand 1454:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1455:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1456:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1457:   --disable-dependency-tracking  speeds up one-time build
                   1458:   --enable-dependency-tracking   do not reject slow dependency extractors
                   1459:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.36      bertrand 1460:   --enable-sysv-ipcs      use SystemV IPC functions [default=no]
1.30      bertrand 1461:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1462:   --enable-final-encoding force final encoding [default=guessed]
                   1463:   --enable-tex            provide the TeX support [default=guessed]
                   1464:   --enable-vim            provide the vim support [default=guessed]
                   1465:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1466:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1467:   --enable-motif          provide the Motif support [default=guessed]
                   1468:   --enable-experimental   enable experimental code [default=no]
                   1469:   --enable-debug          enable debug code [default=no]
                   1470:   --enable-profile        enable profile code [default=no]
                   1471:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1472: 
                   1473: Optional Packages:
                   1474:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1475:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1476:   --with-x                use the X Window System
1.64      bertrand 1477:   --with-32bits-abi       force 32bits ABI (multilib)
1.67      bertrand 1478:   --with-64bits-abi       force 64bits ABI (multilib)
                   1479:   --with-rplcas           compile rplcas (default=no)
1.1       bertrand 1480:   --with-mysql=PATH         specify directory for installed mysql
                   1481:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1482:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1483:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1484: 
                   1485: Some influential environment variables:
                   1486:   CC          C compiler command
                   1487:   CFLAGS      C compiler flags
                   1488:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1489:               nonstandard directory <lib dir>
                   1490:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1491:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1492:               you have headers in a nonstandard directory <include dir>
                   1493:   CXX         C++ compiler command
                   1494:   CXXFLAGS    C++ compiler flags
                   1495:   F77         Fortran 77 compiler command
                   1496:   FFLAGS      Fortran 77 compiler flags
                   1497:   FC          Fortran compiler command
                   1498:   FCFLAGS     Fortran compiler flags
                   1499:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1500:   CPP         C preprocessor
                   1501: 
                   1502: Use these variables to override the choices made by `configure' or to help
                   1503: it to find libraries and programs with nonstandard names/locations.
                   1504: 
1.15      bertrand 1505: Report bugs to the package provider.
1.1       bertrand 1506: _ACEOF
                   1507: ac_status=$?
                   1508: fi
                   1509: 
                   1510: if test "$ac_init_help" = "recursive"; then
                   1511:   # If there are subdirs, report their specific --help.
                   1512:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1513:     test -d "$ac_dir" ||
                   1514:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1515:       continue
1.1       bertrand 1516:     ac_builddir=.
                   1517: 
                   1518: case "$ac_dir" in
                   1519: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1520: *)
1.15      bertrand 1521:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1522:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1523:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1524:   case $ac_top_builddir_sub in
                   1525:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1526:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1527:   esac ;;
                   1528: esac
                   1529: ac_abs_top_builddir=$ac_pwd
                   1530: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1531: # for backward compatibility:
                   1532: ac_top_builddir=$ac_top_build_prefix
                   1533: 
                   1534: case $srcdir in
                   1535:   .)  # We are building in place.
                   1536:     ac_srcdir=.
                   1537:     ac_top_srcdir=$ac_top_builddir_sub
                   1538:     ac_abs_top_srcdir=$ac_pwd ;;
                   1539:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1540:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1541:     ac_top_srcdir=$srcdir
                   1542:     ac_abs_top_srcdir=$srcdir ;;
                   1543:   *) # Relative name.
                   1544:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1545:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1546:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1547: esac
                   1548: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1549: 
                   1550:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1551:     # Check for guested configure.
                   1552:     if test -f "$ac_srcdir/configure.gnu"; then
                   1553:       echo &&
                   1554:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1555:     elif test -f "$ac_srcdir/configure"; then
                   1556:       echo &&
                   1557:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1558:     else
1.15      bertrand 1559:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1560:     fi || ac_status=$?
                   1561:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1562:   done
                   1563: fi
                   1564: 
                   1565: test -n "$ac_init_help" && exit $ac_status
                   1566: if $ac_init_version; then
                   1567:   cat <<\_ACEOF
1.73      bertrand 1568: rpl configure 4.1.3
1.57      bertrand 1569: generated by GNU Autoconf 2.68
1.1       bertrand 1570: 
1.36      bertrand 1571: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1572: This configure script is free software; the Free Software Foundation
                   1573: gives unlimited permission to copy, distribute and modify it.
                   1574: _ACEOF
                   1575:   exit
                   1576: fi
                   1577: 
1.15      bertrand 1578: ## ------------------------ ##
                   1579: ## Autoconf initialization. ##
                   1580: ## ------------------------ ##
                   1581: 
                   1582: # ac_fn_c_try_compile LINENO
                   1583: # --------------------------
                   1584: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1585: ac_fn_c_try_compile ()
                   1586: {
                   1587:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1588:   rm -f conftest.$ac_objext
                   1589:   if { { ac_try="$ac_compile"
                   1590: case "(($ac_try" in
                   1591:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1592:   *) ac_try_echo=$ac_try;;
                   1593: esac
                   1594: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1595: $as_echo "$ac_try_echo"; } >&5
                   1596:   (eval "$ac_compile") 2>conftest.err
                   1597:   ac_status=$?
                   1598:   if test -s conftest.err; then
                   1599:     grep -v '^ *+' conftest.err >conftest.er1
                   1600:     cat conftest.er1 >&5
                   1601:     mv -f conftest.er1 conftest.err
                   1602:   fi
                   1603:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1604:   test $ac_status = 0; } && {
                   1605:     test -z "$ac_c_werror_flag" ||
                   1606:     test ! -s conftest.err
                   1607:        } && test -s conftest.$ac_objext; then :
                   1608:   ac_retval=0
                   1609: else
                   1610:   $as_echo "$as_me: failed program was:" >&5
                   1611: sed 's/^/| /' conftest.$ac_ext >&5
                   1612: 
                   1613:    ac_retval=1
                   1614: fi
1.57      bertrand 1615:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1616:   as_fn_set_status $ac_retval
1.1       bertrand 1617: 
1.15      bertrand 1618: } # ac_fn_c_try_compile
1.1       bertrand 1619: 
1.15      bertrand 1620: # ac_fn_cxx_try_compile LINENO
                   1621: # ----------------------------
                   1622: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1623: ac_fn_cxx_try_compile ()
1.1       bertrand 1624: {
1.15      bertrand 1625:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1626:   rm -f conftest.$ac_objext
                   1627:   if { { ac_try="$ac_compile"
                   1628: case "(($ac_try" in
                   1629:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1630:   *) ac_try_echo=$ac_try;;
                   1631: esac
                   1632: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1633: $as_echo "$ac_try_echo"; } >&5
                   1634:   (eval "$ac_compile") 2>conftest.err
                   1635:   ac_status=$?
                   1636:   if test -s conftest.err; then
                   1637:     grep -v '^ *+' conftest.err >conftest.er1
                   1638:     cat conftest.er1 >&5
                   1639:     mv -f conftest.er1 conftest.err
                   1640:   fi
                   1641:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1642:   test $ac_status = 0; } && {
                   1643:     test -z "$ac_cxx_werror_flag" ||
                   1644:     test ! -s conftest.err
                   1645:        } && test -s conftest.$ac_objext; then :
                   1646:   ac_retval=0
                   1647: else
                   1648:   $as_echo "$as_me: failed program was:" >&5
                   1649: sed 's/^/| /' conftest.$ac_ext >&5
                   1650: 
                   1651:    ac_retval=1
                   1652: fi
1.57      bertrand 1653:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1654:   as_fn_set_status $ac_retval
1.1       bertrand 1655: 
1.15      bertrand 1656: } # ac_fn_cxx_try_compile
1.1       bertrand 1657: 
1.15      bertrand 1658: # ac_fn_f77_try_compile LINENO
                   1659: # ----------------------------
                   1660: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1661: ac_fn_f77_try_compile ()
                   1662: {
                   1663:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1664:   rm -f conftest.$ac_objext
                   1665:   if { { ac_try="$ac_compile"
                   1666: case "(($ac_try" in
                   1667:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1668:   *) ac_try_echo=$ac_try;;
                   1669: esac
                   1670: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1671: $as_echo "$ac_try_echo"; } >&5
                   1672:   (eval "$ac_compile") 2>conftest.err
                   1673:   ac_status=$?
                   1674:   if test -s conftest.err; then
                   1675:     grep -v '^ *+' conftest.err >conftest.er1
                   1676:     cat conftest.er1 >&5
                   1677:     mv -f conftest.er1 conftest.err
                   1678:   fi
                   1679:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1680:   test $ac_status = 0; } && {
                   1681:     test -z "$ac_f77_werror_flag" ||
                   1682:     test ! -s conftest.err
                   1683:        } && test -s conftest.$ac_objext; then :
                   1684:   ac_retval=0
                   1685: else
                   1686:   $as_echo "$as_me: failed program was:" >&5
                   1687: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1688: 
1.15      bertrand 1689:    ac_retval=1
                   1690: fi
1.57      bertrand 1691:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1692:   as_fn_set_status $ac_retval
1.1       bertrand 1693: 
1.15      bertrand 1694: } # ac_fn_f77_try_compile
1.1       bertrand 1695: 
1.15      bertrand 1696: # ac_fn_fc_try_compile LINENO
                   1697: # ---------------------------
                   1698: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1699: ac_fn_fc_try_compile ()
                   1700: {
                   1701:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1702:   rm -f conftest.$ac_objext
                   1703:   if { { ac_try="$ac_compile"
                   1704: case "(($ac_try" in
                   1705:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1706:   *) ac_try_echo=$ac_try;;
                   1707: esac
                   1708: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1709: $as_echo "$ac_try_echo"; } >&5
                   1710:   (eval "$ac_compile") 2>conftest.err
                   1711:   ac_status=$?
                   1712:   if test -s conftest.err; then
                   1713:     grep -v '^ *+' conftest.err >conftest.er1
                   1714:     cat conftest.er1 >&5
                   1715:     mv -f conftest.er1 conftest.err
                   1716:   fi
                   1717:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1718:   test $ac_status = 0; } && {
                   1719:     test -z "$ac_fc_werror_flag" ||
                   1720:     test ! -s conftest.err
                   1721:        } && test -s conftest.$ac_objext; then :
                   1722:   ac_retval=0
                   1723: else
                   1724:   $as_echo "$as_me: failed program was:" >&5
                   1725: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1726: 
1.15      bertrand 1727:    ac_retval=1
                   1728: fi
1.57      bertrand 1729:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1730:   as_fn_set_status $ac_retval
1.1       bertrand 1731: 
1.15      bertrand 1732: } # ac_fn_fc_try_compile
1.1       bertrand 1733: 
1.15      bertrand 1734: # ac_fn_c_try_cpp LINENO
                   1735: # ----------------------
                   1736: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1737: ac_fn_c_try_cpp ()
                   1738: {
                   1739:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1740:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1741: case "(($ac_try" in
                   1742:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1743:   *) ac_try_echo=$ac_try;;
                   1744: esac
                   1745: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1746: $as_echo "$ac_try_echo"; } >&5
                   1747:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1748:   ac_status=$?
                   1749:   if test -s conftest.err; then
                   1750:     grep -v '^ *+' conftest.err >conftest.er1
                   1751:     cat conftest.er1 >&5
                   1752:     mv -f conftest.er1 conftest.err
                   1753:   fi
                   1754:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36      bertrand 1755:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1756:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1757:     test ! -s conftest.err
                   1758:        }; then :
                   1759:   ac_retval=0
                   1760: else
                   1761:   $as_echo "$as_me: failed program was:" >&5
                   1762: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1763: 
1.15      bertrand 1764:     ac_retval=1
                   1765: fi
1.57      bertrand 1766:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1767:   as_fn_set_status $ac_retval
1.1       bertrand 1768: 
1.15      bertrand 1769: } # ac_fn_c_try_cpp
1.1       bertrand 1770: 
1.15      bertrand 1771: # ac_fn_c_try_link LINENO
                   1772: # -----------------------
                   1773: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1774: ac_fn_c_try_link ()
                   1775: {
                   1776:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1777:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1778:   if { { ac_try="$ac_link"
                   1779: case "(($ac_try" in
                   1780:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1781:   *) ac_try_echo=$ac_try;;
                   1782: esac
                   1783: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1784: $as_echo "$ac_try_echo"; } >&5
                   1785:   (eval "$ac_link") 2>conftest.err
                   1786:   ac_status=$?
                   1787:   if test -s conftest.err; then
                   1788:     grep -v '^ *+' conftest.err >conftest.er1
                   1789:     cat conftest.er1 >&5
                   1790:     mv -f conftest.er1 conftest.err
                   1791:   fi
                   1792:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1793:   test $ac_status = 0; } && {
                   1794:     test -z "$ac_c_werror_flag" ||
                   1795:     test ! -s conftest.err
                   1796:        } && test -s conftest$ac_exeext && {
                   1797:     test "$cross_compiling" = yes ||
                   1798:     $as_test_x conftest$ac_exeext
                   1799:        }; then :
                   1800:   ac_retval=0
                   1801: else
                   1802:   $as_echo "$as_me: failed program was:" >&5
                   1803: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1804: 
1.15      bertrand 1805:    ac_retval=1
                   1806: fi
                   1807:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1808:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1809:   # interfere with the next link command; also delete a directory that is
                   1810:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1811:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1812:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1813:   as_fn_set_status $ac_retval
1.1       bertrand 1814: 
1.15      bertrand 1815: } # ac_fn_c_try_link
1.1       bertrand 1816: 
1.15      bertrand 1817: # ac_fn_c_check_func LINENO FUNC VAR
                   1818: # ----------------------------------
                   1819: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1820: ac_fn_c_check_func ()
                   1821: {
                   1822:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1823:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1824: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1825: if eval \${$3+:} false; then :
1.15      bertrand 1826:   $as_echo_n "(cached) " >&6
                   1827: else
                   1828:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1829: /* end confdefs.h.  */
                   1830: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1831:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1832: #define $2 innocuous_$2
1.1       bertrand 1833: 
1.15      bertrand 1834: /* System header to define __stub macros and hopefully few prototypes,
                   1835:     which can conflict with char $2 (); below.
                   1836:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1837:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1838: 
1.15      bertrand 1839: #ifdef __STDC__
                   1840: # include <limits.h>
                   1841: #else
                   1842: # include <assert.h>
                   1843: #endif
1.1       bertrand 1844: 
1.15      bertrand 1845: #undef $2
1.1       bertrand 1846: 
1.15      bertrand 1847: /* Override any GCC internal prototype to avoid an error.
                   1848:    Use char because int might match the return type of a GCC
                   1849:    builtin and then its argument prototype would still apply.  */
                   1850: #ifdef __cplusplus
                   1851: extern "C"
                   1852: #endif
                   1853: char $2 ();
                   1854: /* The GNU C library defines this for functions which it implements
                   1855:     to always fail with ENOSYS.  Some functions are actually named
                   1856:     something starting with __ and the normal name is an alias.  */
                   1857: #if defined __stub_$2 || defined __stub___$2
                   1858: choke me
                   1859: #endif
1.1       bertrand 1860: 
1.15      bertrand 1861: int
                   1862: main ()
                   1863: {
                   1864: return $2 ();
                   1865:   ;
                   1866:   return 0;
                   1867: }
1.1       bertrand 1868: _ACEOF
1.15      bertrand 1869: if ac_fn_c_try_link "$LINENO"; then :
                   1870:   eval "$3=yes"
                   1871: else
                   1872:   eval "$3=no"
                   1873: fi
                   1874: rm -f core conftest.err conftest.$ac_objext \
                   1875:     conftest$ac_exeext conftest.$ac_ext
                   1876: fi
                   1877: eval ac_res=\$$3
                   1878:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1879: $as_echo "$ac_res" >&6; }
1.57      bertrand 1880:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 1881: 
1.15      bertrand 1882: } # ac_fn_c_check_func
1.1       bertrand 1883: 
1.33      bertrand 1884: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1885: # -------------------------------------------
                   1886: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1887: # variable VAR accordingly.
                   1888: ac_fn_c_check_type ()
                   1889: {
                   1890:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1891:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1892: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1893: if eval \${$3+:} false; then :
1.33      bertrand 1894:   $as_echo_n "(cached) " >&6
                   1895: else
                   1896:   eval "$3=no"
                   1897:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1898: /* end confdefs.h.  */
                   1899: $4
                   1900: int
                   1901: main ()
                   1902: {
                   1903: if (sizeof ($2))
                   1904:     return 0;
                   1905:   ;
                   1906:   return 0;
                   1907: }
                   1908: _ACEOF
                   1909: if ac_fn_c_try_compile "$LINENO"; then :
                   1910:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1911: /* end confdefs.h.  */
                   1912: $4
                   1913: int
                   1914: main ()
                   1915: {
                   1916: if (sizeof (($2)))
                   1917:        return 0;
                   1918:   ;
                   1919:   return 0;
                   1920: }
                   1921: _ACEOF
                   1922: if ac_fn_c_try_compile "$LINENO"; then :
                   1923: 
                   1924: else
                   1925:   eval "$3=yes"
                   1926: fi
                   1927: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1928: fi
                   1929: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1930: fi
                   1931: eval ac_res=\$$3
                   1932:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1933: $as_echo "$ac_res" >&6; }
1.57      bertrand 1934:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33      bertrand 1935: 
                   1936: } # ac_fn_c_check_type
                   1937: 
1.15      bertrand 1938: # ac_fn_c_try_run LINENO
                   1939: # ----------------------
                   1940: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1941: # that executables *can* be run.
                   1942: ac_fn_c_try_run ()
                   1943: {
                   1944:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1945:   if { { ac_try="$ac_link"
                   1946: case "(($ac_try" in
                   1947:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1948:   *) ac_try_echo=$ac_try;;
                   1949: esac
                   1950: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1951: $as_echo "$ac_try_echo"; } >&5
                   1952:   (eval "$ac_link") 2>&5
                   1953:   ac_status=$?
                   1954:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1955:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1956:   { { case "(($ac_try" in
                   1957:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1958:   *) ac_try_echo=$ac_try;;
                   1959: esac
                   1960: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1961: $as_echo "$ac_try_echo"; } >&5
                   1962:   (eval "$ac_try") 2>&5
                   1963:   ac_status=$?
                   1964:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1965:   test $ac_status = 0; }; }; then :
                   1966:   ac_retval=0
                   1967: else
                   1968:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1969:        $as_echo "$as_me: failed program was:" >&5
                   1970: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1971: 
1.15      bertrand 1972:        ac_retval=$ac_status
                   1973: fi
                   1974:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1975:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1976:   as_fn_set_status $ac_retval
1.1       bertrand 1977: 
1.15      bertrand 1978: } # ac_fn_c_try_run
1.1       bertrand 1979: 
1.15      bertrand 1980: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1981: # --------------------------------------------
                   1982: # Tries to find the compile-time value of EXPR in a program that includes
                   1983: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1984: # computed
                   1985: ac_fn_c_compute_int ()
                   1986: {
                   1987:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1988:   if test "$cross_compiling" = yes; then
                   1989:     # Depending upon the size, compute the lo and hi bounds.
                   1990: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1991: /* end confdefs.h.  */
                   1992: $4
                   1993: int
                   1994: main ()
                   1995: {
                   1996: static int test_array [1 - 2 * !(($2) >= 0)];
                   1997: test_array [0] = 0
1.1       bertrand 1998: 
1.15      bertrand 1999:   ;
                   2000:   return 0;
                   2001: }
1.1       bertrand 2002: _ACEOF
1.15      bertrand 2003: if ac_fn_c_try_compile "$LINENO"; then :
                   2004:   ac_lo=0 ac_mid=0
                   2005:   while :; do
                   2006:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2007: /* end confdefs.h.  */
                   2008: $4
                   2009: int
                   2010: main ()
                   2011: {
                   2012: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2013: test_array [0] = 0
1.1       bertrand 2014: 
1.15      bertrand 2015:   ;
                   2016:   return 0;
                   2017: }
                   2018: _ACEOF
                   2019: if ac_fn_c_try_compile "$LINENO"; then :
                   2020:   ac_hi=$ac_mid; break
                   2021: else
                   2022:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2023:            if test $ac_lo -le $ac_mid; then
                   2024:              ac_lo= ac_hi=
                   2025:              break
                   2026:            fi
                   2027:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2028: fi
                   2029: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2030:   done
                   2031: else
                   2032:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2033: /* end confdefs.h.  */
                   2034: $4
                   2035: int
                   2036: main ()
                   2037: {
                   2038: static int test_array [1 - 2 * !(($2) < 0)];
                   2039: test_array [0] = 0
1.1       bertrand 2040: 
1.15      bertrand 2041:   ;
                   2042:   return 0;
                   2043: }
1.1       bertrand 2044: _ACEOF
1.15      bertrand 2045: if ac_fn_c_try_compile "$LINENO"; then :
                   2046:   ac_hi=-1 ac_mid=-1
                   2047:   while :; do
                   2048:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2049: /* end confdefs.h.  */
                   2050: $4
                   2051: int
                   2052: main ()
                   2053: {
                   2054: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2055: test_array [0] = 0
1.1       bertrand 2056: 
1.15      bertrand 2057:   ;
                   2058:   return 0;
                   2059: }
                   2060: _ACEOF
                   2061: if ac_fn_c_try_compile "$LINENO"; then :
                   2062:   ac_lo=$ac_mid; break
                   2063: else
                   2064:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2065:            if test $ac_mid -le $ac_hi; then
                   2066:              ac_lo= ac_hi=
                   2067:              break
                   2068:            fi
                   2069:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2070: fi
                   2071: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2072:   done
1.1       bertrand 2073: else
1.15      bertrand 2074:   ac_lo= ac_hi=
                   2075: fi
                   2076: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2077: fi
1.15      bertrand 2078: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2079: # Binary search between lo and hi bounds.
                   2080: while test "x$ac_lo" != "x$ac_hi"; do
                   2081:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2082:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2083: /* end confdefs.h.  */
                   2084: $4
                   2085: int
                   2086: main ()
                   2087: {
                   2088: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2089: test_array [0] = 0
1.1       bertrand 2090: 
1.15      bertrand 2091:   ;
                   2092:   return 0;
                   2093: }
                   2094: _ACEOF
                   2095: if ac_fn_c_try_compile "$LINENO"; then :
                   2096:   ac_hi=$ac_mid
1.1       bertrand 2097: else
1.15      bertrand 2098:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2099: fi
1.15      bertrand 2100: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2101: done
                   2102: case $ac_lo in #((
                   2103: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2104: '') ac_retval=1 ;;
                   2105: esac
                   2106:   else
                   2107:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2108: /* end confdefs.h.  */
                   2109: $4
                   2110: static long int longval () { return $2; }
                   2111: static unsigned long int ulongval () { return $2; }
                   2112: #include <stdio.h>
                   2113: #include <stdlib.h>
                   2114: int
                   2115: main ()
                   2116: {
1.1       bertrand 2117: 
1.15      bertrand 2118:   FILE *f = fopen ("conftest.val", "w");
                   2119:   if (! f)
                   2120:     return 1;
                   2121:   if (($2) < 0)
                   2122:     {
                   2123:       long int i = longval ();
                   2124:       if (i != ($2))
                   2125:    return 1;
                   2126:       fprintf (f, "%ld", i);
                   2127:     }
                   2128:   else
                   2129:     {
                   2130:       unsigned long int i = ulongval ();
                   2131:       if (i != ($2))
                   2132:    return 1;
                   2133:       fprintf (f, "%lu", i);
                   2134:     }
                   2135:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2136:      on some platforms.  */
                   2137:   return ferror (f) || fclose (f) != 0;
                   2138: 
                   2139:   ;
                   2140:   return 0;
                   2141: }
                   2142: _ACEOF
                   2143: if ac_fn_c_try_run "$LINENO"; then :
                   2144:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2145: else
                   2146:   ac_retval=1
1.14      bertrand 2147: fi
1.15      bertrand 2148: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2149:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2150: rm -f conftest.val
1.14      bertrand 2151: 
1.15      bertrand 2152:   fi
1.57      bertrand 2153:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 2154:   as_fn_set_status $ac_retval
1.14      bertrand 2155: 
1.15      bertrand 2156: } # ac_fn_c_compute_int
1.1       bertrand 2157: 
1.15      bertrand 2158: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2159: # -------------------------------------------------------
                   2160: # Tests whether HEADER exists and can be compiled using the include files in
                   2161: # INCLUDES, setting the cache variable VAR accordingly.
                   2162: ac_fn_c_check_header_compile ()
                   2163: {
                   2164:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2165:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2166: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2167: if eval \${$3+:} false; then :
1.15      bertrand 2168:   $as_echo_n "(cached) " >&6
                   2169: else
                   2170:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2171: /* end confdefs.h.  */
                   2172: $4
                   2173: #include <$2>
                   2174: _ACEOF
                   2175: if ac_fn_c_try_compile "$LINENO"; then :
                   2176:   eval "$3=yes"
                   2177: else
                   2178:   eval "$3=no"
                   2179: fi
                   2180: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2181: fi
                   2182: eval ac_res=\$$3
                   2183:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2184: $as_echo "$ac_res" >&6; }
1.57      bertrand 2185:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2186: 
1.15      bertrand 2187: } # ac_fn_c_check_header_compile
1.1       bertrand 2188: 
1.15      bertrand 2189: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2190: # -------------------------------------------------------
                   2191: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2192: # the include files in INCLUDES and setting the cache variable VAR
                   2193: # accordingly.
                   2194: ac_fn_c_check_header_mongrel ()
                   2195: {
                   2196:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.57      bertrand 2197:   if eval \${$3+:} false; then :
1.15      bertrand 2198:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2199: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2200: if eval \${$3+:} false; then :
1.15      bertrand 2201:   $as_echo_n "(cached) " >&6
                   2202: fi
                   2203: eval ac_res=\$$3
                   2204:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2205: $as_echo "$ac_res" >&6; }
                   2206: else
                   2207:   # Is the header compilable?
                   2208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2209: $as_echo_n "checking $2 usability... " >&6; }
                   2210: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2211: /* end confdefs.h.  */
                   2212: $4
                   2213: #include <$2>
                   2214: _ACEOF
                   2215: if ac_fn_c_try_compile "$LINENO"; then :
                   2216:   ac_header_compiler=yes
                   2217: else
                   2218:   ac_header_compiler=no
                   2219: fi
                   2220: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2222: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2223: 
1.15      bertrand 2224: # Is the header present?
                   2225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2226: $as_echo_n "checking $2 presence... " >&6; }
                   2227: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2228: /* end confdefs.h.  */
                   2229: #include <$2>
                   2230: _ACEOF
                   2231: if ac_fn_c_try_cpp "$LINENO"; then :
                   2232:   ac_header_preproc=yes
                   2233: else
                   2234:   ac_header_preproc=no
                   2235: fi
1.36      bertrand 2236: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2238: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2239: 
1.15      bertrand 2240: # So?  What about this header?
                   2241: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2242:   yes:no: )
                   2243:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2244: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2245:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2246: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2247:     ;;
                   2248:   no:yes:* )
                   2249:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2250: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2251:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2252: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2253:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2254: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2255:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2256: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2257:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2258: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2259:     ;;
                   2260: esac
                   2261:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2262: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2263: if eval \${$3+:} false; then :
1.15      bertrand 2264:   $as_echo_n "(cached) " >&6
                   2265: else
                   2266:   eval "$3=\$ac_header_compiler"
                   2267: fi
                   2268: eval ac_res=\$$3
                   2269:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2270: $as_echo "$ac_res" >&6; }
                   2271: fi
1.57      bertrand 2272:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2273: 
1.15      bertrand 2274: } # ac_fn_c_check_header_mongrel
                   2275: cat >config.log <<_ACEOF
                   2276: This file contains any messages produced by compilers while
                   2277: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2278: 
1.73      bertrand 2279: It was created by rpl $as_me 4.1.3, which was
1.57      bertrand 2280: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 2281: 
1.15      bertrand 2282:   $ $0 $@
1.1       bertrand 2283: 
1.15      bertrand 2284: _ACEOF
                   2285: exec 5>>config.log
                   2286: {
                   2287: cat <<_ASUNAME
                   2288: ## --------- ##
                   2289: ## Platform. ##
                   2290: ## --------- ##
1.1       bertrand 2291: 
1.15      bertrand 2292: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2293: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2294: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2295: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2296: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2297: 
1.15      bertrand 2298: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2299: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2300: 
1.15      bertrand 2301: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2302: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2303: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2304: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2305: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2306: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2307: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2308: 
1.15      bertrand 2309: _ASUNAME
1.1       bertrand 2310: 
1.15      bertrand 2311: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2312: for as_dir in $PATH
                   2313: do
                   2314:   IFS=$as_save_IFS
                   2315:   test -z "$as_dir" && as_dir=.
                   2316:     $as_echo "PATH: $as_dir"
                   2317:   done
                   2318: IFS=$as_save_IFS
1.1       bertrand 2319: 
1.15      bertrand 2320: } >&5
1.1       bertrand 2321: 
1.15      bertrand 2322: cat >&5 <<_ACEOF
1.1       bertrand 2323: 
                   2324: 
1.15      bertrand 2325: ## ----------- ##
                   2326: ## Core tests. ##
                   2327: ## ----------- ##
1.1       bertrand 2328: 
1.15      bertrand 2329: _ACEOF
1.1       bertrand 2330: 
                   2331: 
1.15      bertrand 2332: # Keep a trace of the command line.
                   2333: # Strip out --no-create and --no-recursion so they do not pile up.
                   2334: # Strip out --silent because we don't want to record it for future runs.
                   2335: # Also quote any args containing shell meta-characters.
                   2336: # Make two passes to allow for proper duplicate-argument suppression.
                   2337: ac_configure_args=
                   2338: ac_configure_args0=
                   2339: ac_configure_args1=
                   2340: ac_must_keep_next=false
                   2341: for ac_pass in 1 2
                   2342: do
                   2343:   for ac_arg
                   2344:   do
                   2345:     case $ac_arg in
                   2346:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2347:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2348:     | -silent | --silent | --silen | --sile | --sil)
                   2349:       continue ;;
                   2350:     *\'*)
                   2351:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2352:     esac
                   2353:     case $ac_pass in
                   2354:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2355:     2)
                   2356:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2357:       if test $ac_must_keep_next = true; then
                   2358:    ac_must_keep_next=false # Got value, back to normal.
                   2359:       else
                   2360:    case $ac_arg in
                   2361:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2362:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2363:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2364:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2365:        case "$ac_configure_args0 " in
                   2366:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2367:        esac
                   2368:        ;;
                   2369:      -* ) ac_must_keep_next=true ;;
                   2370:    esac
                   2371:       fi
                   2372:       as_fn_append ac_configure_args " '$ac_arg'"
                   2373:       ;;
                   2374:     esac
                   2375:   done
                   2376: done
                   2377: { ac_configure_args0=; unset ac_configure_args0;}
                   2378: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2379: 
1.15      bertrand 2380: # When interrupted or exit'd, cleanup temporary files, and complete
                   2381: # config.log.  We remove comments because anyway the quotes in there
                   2382: # would cause problems or look ugly.
                   2383: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2384: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2385: trap 'exit_status=$?
                   2386:   # Save into config.log some information that might help in debugging.
                   2387:   {
                   2388:     echo
1.1       bertrand 2389: 
1.36      bertrand 2390:     $as_echo "## ---------------- ##
1.15      bertrand 2391: ## Cache variables. ##
1.36      bertrand 2392: ## ---------------- ##"
1.15      bertrand 2393:     echo
                   2394:     # The following way of writing the cache mishandles newlines in values,
                   2395: (
                   2396:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2397:     eval ac_val=\$$ac_var
                   2398:     case $ac_val in #(
                   2399:     *${as_nl}*)
                   2400:       case $ac_var in #(
                   2401:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2402: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2403:       esac
                   2404:       case $ac_var in #(
                   2405:       _ | IFS | as_nl) ;; #(
                   2406:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2407:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2408:       esac ;;
                   2409:     esac
                   2410:   done
                   2411:   (set) 2>&1 |
                   2412:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2413:     *${as_nl}ac_space=\ *)
                   2414:       sed -n \
                   2415:    "s/'\''/'\''\\\\'\'''\''/g;
                   2416:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2417:       ;; #(
                   2418:     *)
                   2419:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2420:       ;;
                   2421:     esac |
                   2422:     sort
                   2423: )
                   2424:     echo
1.1       bertrand 2425: 
1.36      bertrand 2426:     $as_echo "## ----------------- ##
1.15      bertrand 2427: ## Output variables. ##
1.36      bertrand 2428: ## ----------------- ##"
1.15      bertrand 2429:     echo
                   2430:     for ac_var in $ac_subst_vars
                   2431:     do
                   2432:       eval ac_val=\$$ac_var
                   2433:       case $ac_val in
                   2434:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2435:       esac
                   2436:       $as_echo "$ac_var='\''$ac_val'\''"
                   2437:     done | sort
                   2438:     echo
1.1       bertrand 2439: 
1.15      bertrand 2440:     if test -n "$ac_subst_files"; then
1.36      bertrand 2441:       $as_echo "## ------------------- ##
1.15      bertrand 2442: ## File substitutions. ##
1.36      bertrand 2443: ## ------------------- ##"
1.15      bertrand 2444:       echo
                   2445:       for ac_var in $ac_subst_files
                   2446:       do
                   2447:    eval ac_val=\$$ac_var
                   2448:    case $ac_val in
                   2449:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2450:    esac
                   2451:    $as_echo "$ac_var='\''$ac_val'\''"
                   2452:       done | sort
                   2453:       echo
1.14      bertrand 2454:     fi
                   2455: 
1.15      bertrand 2456:     if test -s confdefs.h; then
1.36      bertrand 2457:       $as_echo "## ----------- ##
1.15      bertrand 2458: ## confdefs.h. ##
1.36      bertrand 2459: ## ----------- ##"
1.15      bertrand 2460:       echo
                   2461:       cat confdefs.h
                   2462:       echo
                   2463:     fi
                   2464:     test "$ac_signal" != 0 &&
                   2465:       $as_echo "$as_me: caught signal $ac_signal"
                   2466:     $as_echo "$as_me: exit $exit_status"
                   2467:   } >&5
                   2468:   rm -f core *.core core.conftest.* &&
                   2469:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2470:     exit $exit_status
                   2471: ' 0
                   2472: for ac_signal in 1 2 13 15; do
                   2473:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2474: done
                   2475: ac_signal=0
1.14      bertrand 2476: 
1.15      bertrand 2477: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2478: rm -f -r conftest* confdefs.h
1.14      bertrand 2479: 
1.15      bertrand 2480: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2481: 
1.15      bertrand 2482: # Predefined preprocessor variables.
1.14      bertrand 2483: 
1.15      bertrand 2484: cat >>confdefs.h <<_ACEOF
                   2485: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2486: _ACEOF
1.14      bertrand 2487: 
1.15      bertrand 2488: cat >>confdefs.h <<_ACEOF
                   2489: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2490: _ACEOF
                   2491: 
1.15      bertrand 2492: cat >>confdefs.h <<_ACEOF
                   2493: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2494: _ACEOF
1.14      bertrand 2495: 
1.15      bertrand 2496: cat >>confdefs.h <<_ACEOF
                   2497: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2498: _ACEOF
                   2499: 
1.15      bertrand 2500: cat >>confdefs.h <<_ACEOF
                   2501: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2502: _ACEOF
1.14      bertrand 2503: 
1.15      bertrand 2504: cat >>confdefs.h <<_ACEOF
                   2505: #define PACKAGE_URL "$PACKAGE_URL"
                   2506: _ACEOF
1.14      bertrand 2507: 
                   2508: 
1.15      bertrand 2509: # Let the site file select an alternate cache file if it wants to.
                   2510: # Prefer an explicitly selected file to automatically selected ones.
                   2511: ac_site_file1=NONE
                   2512: ac_site_file2=NONE
                   2513: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2514:   # We do not want a PATH search for config.site.
                   2515:   case $CONFIG_SITE in #((
                   2516:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2517:     */*) ac_site_file1=$CONFIG_SITE;;
                   2518:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2519:   esac
1.15      bertrand 2520: elif test "x$prefix" != xNONE; then
                   2521:   ac_site_file1=$prefix/share/config.site
                   2522:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2523: else
1.15      bertrand 2524:   ac_site_file1=$ac_default_prefix/share/config.site
                   2525:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2526: fi
1.15      bertrand 2527: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2528: do
                   2529:   test "x$ac_site_file" = xNONE && continue
                   2530:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2531:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2532: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2533:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2534:     . "$ac_site_file" \
                   2535:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2536: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2537: as_fn_error $? "failed to load site script $ac_site_file
1.57      bertrand 2538: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 2539:   fi
                   2540: done
1.14      bertrand 2541: 
1.15      bertrand 2542: if test -r "$cache_file"; then
                   2543:   # Some versions of bash will fail to source /dev/null (special files
                   2544:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2545:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2546:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2547: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2548:     case $cache_file in
                   2549:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2550:       *)                      . "./$cache_file";;
                   2551:     esac
                   2552:   fi
1.14      bertrand 2553: else
1.15      bertrand 2554:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2555: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2556:   >$cache_file
1.14      bertrand 2557: fi
                   2558: 
1.15      bertrand 2559: # Check that the precious variables saved in the cache have kept the same
                   2560: # value.
                   2561: ac_cache_corrupted=false
                   2562: for ac_var in $ac_precious_vars; do
                   2563:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2564:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2565:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2566:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2567:   case $ac_old_set,$ac_new_set in
                   2568:     set,)
                   2569:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2570: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2571:       ac_cache_corrupted=: ;;
                   2572:     ,set)
                   2573:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2574: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2575:       ac_cache_corrupted=: ;;
                   2576:     ,);;
                   2577:     *)
                   2578:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2579:    # differences in whitespace do not lead to failure.
                   2580:    ac_old_val_w=`echo x $ac_old_val`
                   2581:    ac_new_val_w=`echo x $ac_new_val`
                   2582:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2583:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2584: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2585:      ac_cache_corrupted=:
                   2586:    else
                   2587:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2588: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2589:      eval $ac_var=\$ac_old_val
                   2590:    fi
                   2591:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2592: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2593:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2594: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2595:       fi;;
                   2596:   esac
                   2597:   # Pass precious variables to config.status.
                   2598:   if test "$ac_new_set" = set; then
                   2599:     case $ac_new_val in
                   2600:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2601:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2602:     esac
                   2603:     case " $ac_configure_args " in
                   2604:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2605:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2606:     esac
1.14      bertrand 2607:   fi
                   2608: done
1.15      bertrand 2609: if $ac_cache_corrupted; then
                   2610:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2611: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2612:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2613: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2614:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2615: fi
                   2616: ## -------------------- ##
                   2617: ## Main body of script. ##
                   2618: ## -------------------- ##
1.14      bertrand 2619: 
1.15      bertrand 2620: ac_ext=c
                   2621: ac_cpp='$CPP $CPPFLAGS'
                   2622: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2623: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2624: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2625: 
                   2626: 
1.15      bertrand 2627: ac_aux_dir=
                   2628: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2629:   if test -f "$ac_dir/install-sh"; then
                   2630:     ac_aux_dir=$ac_dir
                   2631:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2632:     break
                   2633:   elif test -f "$ac_dir/install.sh"; then
                   2634:     ac_aux_dir=$ac_dir
                   2635:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2636:     break
                   2637:   elif test -f "$ac_dir/shtool"; then
                   2638:     ac_aux_dir=$ac_dir
                   2639:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2640:     break
                   2641:   fi
1.14      bertrand 2642: done
1.15      bertrand 2643: if test -z "$ac_aux_dir"; then
1.36      bertrand 2644:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2645: fi
1.14      bertrand 2646: 
1.15      bertrand 2647: # These three variables are undocumented and unsupported,
                   2648: # and are intended to be withdrawn in a future Autoconf release.
                   2649: # They can cause serious problems if a builder's source tree is in a directory
                   2650: # whose full name contains unusual characters.
                   2651: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2652: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2653: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2654: 
                   2655: 
1.15      bertrand 2656: # Make sure we can run config.sub.
                   2657: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2658:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2659: 
1.15      bertrand 2660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2661: $as_echo_n "checking build system type... " >&6; }
1.57      bertrand 2662: if ${ac_cv_build+:} false; then :
1.15      bertrand 2663:   $as_echo_n "(cached) " >&6
1.14      bertrand 2664: else
1.15      bertrand 2665:   ac_build_alias=$build_alias
                   2666: test "x$ac_build_alias" = x &&
                   2667:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2668: test "x$ac_build_alias" = x &&
1.36      bertrand 2669:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2670: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2671:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2672: 
                   2673: fi
1.15      bertrand 2674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2675: $as_echo "$ac_cv_build" >&6; }
                   2676: case $ac_cv_build in
                   2677: *-*-*) ;;
1.57      bertrand 2678: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15      bertrand 2679: esac
                   2680: build=$ac_cv_build
                   2681: ac_save_IFS=$IFS; IFS='-'
                   2682: set x $ac_cv_build
                   2683: shift
                   2684: build_cpu=$1
                   2685: build_vendor=$2
                   2686: shift; shift
                   2687: # Remember, the first character of IFS is used to create $*,
                   2688: # except with old shells:
                   2689: build_os=$*
                   2690: IFS=$ac_save_IFS
                   2691: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2692: 
                   2693: 
1.15      bertrand 2694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2695: $as_echo_n "checking host system type... " >&6; }
1.57      bertrand 2696: if ${ac_cv_host+:} false; then :
1.15      bertrand 2697:   $as_echo_n "(cached) " >&6
1.14      bertrand 2698: else
1.15      bertrand 2699:   if test "x$host_alias" = x; then
                   2700:   ac_cv_host=$ac_cv_build
1.14      bertrand 2701: else
1.15      bertrand 2702:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2703:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2704: fi
                   2705: 
                   2706: fi
1.15      bertrand 2707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2708: $as_echo "$ac_cv_host" >&6; }
                   2709: case $ac_cv_host in
                   2710: *-*-*) ;;
1.57      bertrand 2711: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15      bertrand 2712: esac
                   2713: host=$ac_cv_host
                   2714: ac_save_IFS=$IFS; IFS='-'
                   2715: set x $ac_cv_host
                   2716: shift
                   2717: host_cpu=$1
                   2718: host_vendor=$2
                   2719: shift; shift
                   2720: # Remember, the first character of IFS is used to create $*,
                   2721: # except with old shells:
                   2722: host_os=$*
                   2723: IFS=$ac_save_IFS
                   2724: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2725: 
                   2726: 
1.15      bertrand 2727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2728: $as_echo_n "checking target system type... " >&6; }
1.57      bertrand 2729: if ${ac_cv_target+:} false; then :
1.15      bertrand 2730:   $as_echo_n "(cached) " >&6
                   2731: else
                   2732:   if test "x$target_alias" = x; then
                   2733:   ac_cv_target=$ac_cv_host
1.14      bertrand 2734: else
1.15      bertrand 2735:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2736:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2737: fi
1.14      bertrand 2738: 
                   2739: fi
1.15      bertrand 2740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2741: $as_echo "$ac_cv_target" >&6; }
                   2742: case $ac_cv_target in
                   2743: *-*-*) ;;
1.57      bertrand 2744: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15      bertrand 2745: esac
                   2746: target=$ac_cv_target
                   2747: ac_save_IFS=$IFS; IFS='-'
                   2748: set x $ac_cv_target
                   2749: shift
                   2750: target_cpu=$1
                   2751: target_vendor=$2
                   2752: shift; shift
                   2753: # Remember, the first character of IFS is used to create $*,
                   2754: # except with old shells:
                   2755: target_os=$*
                   2756: IFS=$ac_save_IFS
                   2757: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2758: 
1.14      bertrand 2759: 
1.15      bertrand 2760: # The aliases save the names the user supplied, while $host etc.
                   2761: # will get canonicalized.
                   2762: test -n "$target_alias" &&
                   2763:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2764:     NONENONEs,x,x, &&
                   2765:   program_prefix=${target_alias}-
1.1       bertrand 2766: 
1.15      bertrand 2767: am__api_version='1.11'
1.1       bertrand 2768: 
1.14      bertrand 2769: # Find a good install program.  We prefer a C program (faster),
                   2770: # so one script is as good as another.  But avoid the broken or
                   2771: # incompatible versions:
                   2772: # SysV /etc/install, /usr/sbin/install
                   2773: # SunOS /usr/etc/install
                   2774: # IRIX /sbin/install
                   2775: # AIX /bin/install
                   2776: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2777: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2778: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2779: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2780: # OS/2's system install, which has a completely different semantic
                   2781: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2782: # Reject install programs that cannot install multiple files.
                   2783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2784: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2785: if test -z "$INSTALL"; then
1.57      bertrand 2786: if ${ac_cv_path_install+:} false; then :
1.15      bertrand 2787:   $as_echo_n "(cached) " >&6
1.14      bertrand 2788: else
                   2789:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2790: for as_dir in $PATH
                   2791: do
                   2792:   IFS=$as_save_IFS
                   2793:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2794:     # Account for people who put trailing slashes in PATH elements.
                   2795: case $as_dir/ in #((
                   2796:   ./ | .// | /[cC]/* | \
1.14      bertrand 2797:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2798:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2799:   /usr/ucb/* ) ;;
                   2800:   *)
                   2801:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2802:     # Don't use installbsd from OSF since it installs stuff as root
                   2803:     # by default.
                   2804:     for ac_prog in ginstall scoinst install; do
                   2805:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2806:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2807:      if test $ac_prog = install &&
                   2808:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2809:        # AIX install.  It has an incompatible calling convention.
                   2810:        :
                   2811:      elif test $ac_prog = install &&
                   2812:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2813:        # program-specific install script used by HP pwplus--don't use.
                   2814:        :
                   2815:      else
1.15      bertrand 2816:        rm -rf conftest.one conftest.two conftest.dir
                   2817:        echo one > conftest.one
                   2818:        echo two > conftest.two
                   2819:        mkdir conftest.dir
                   2820:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2821:          test -s conftest.one && test -s conftest.two &&
                   2822:          test -s conftest.dir/conftest.one &&
                   2823:          test -s conftest.dir/conftest.two
                   2824:        then
                   2825:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2826:          break 3
                   2827:        fi
1.14      bertrand 2828:      fi
                   2829:    fi
                   2830:       done
                   2831:     done
                   2832:     ;;
                   2833: esac
1.15      bertrand 2834: 
                   2835:   done
1.14      bertrand 2836: IFS=$as_save_IFS
1.1       bertrand 2837: 
1.15      bertrand 2838: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2839: 
1.14      bertrand 2840: fi
                   2841:   if test "${ac_cv_path_install+set}" = set; then
                   2842:     INSTALL=$ac_cv_path_install
                   2843:   else
                   2844:     # As a last resort, use the slow shell script.  Don't cache a
                   2845:     # value for INSTALL within a source directory, because that will
                   2846:     # break other packages using the cache if that directory is
                   2847:     # removed, or if the value is a relative name.
                   2848:     INSTALL=$ac_install_sh
                   2849:   fi
                   2850: fi
1.15      bertrand 2851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2852: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2853: 
1.14      bertrand 2854: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2855: # It thinks the first close brace ends the variable substitution.
                   2856: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2857: 
1.14      bertrand 2858: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2859: 
1.14      bertrand 2860: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2861: 
1.15      bertrand 2862: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2863: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2864: # Just in case
                   2865: sleep 1
                   2866: echo timestamp > conftest.file
                   2867: # Reject unsafe characters in $srcdir or the absolute working directory
                   2868: # name.  Accept space and tab only in the latter.
                   2869: am_lf='
                   2870: '
                   2871: case `pwd` in
                   2872:   *[\\\"\#\$\&\'\`$am_lf]*)
1.57      bertrand 2873:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15      bertrand 2874: esac
                   2875: case $srcdir in
                   2876:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.57      bertrand 2877:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15      bertrand 2878: esac
                   2879: 
                   2880: # Do `set' in a subshell so we don't clobber the current shell's
                   2881: # arguments.  Must try -L first in case configure is actually a
                   2882: # symlink; some systems play weird games with the mod time of symlinks
                   2883: # (eg FreeBSD returns the mod time of the symlink's containing
                   2884: # directory).
                   2885: if (
                   2886:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2887:    if test "$*" = "X"; then
                   2888:       # -L didn't work.
                   2889:       set X `ls -t "$srcdir/configure" conftest.file`
                   2890:    fi
                   2891:    rm -f conftest.file
                   2892:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2893:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2894: 
                   2895:       # If neither matched, then we have a broken ls.  This can happen
                   2896:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2897:       # broken ls alias from the environment.  This has actually
                   2898:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2899:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2900: alias in your environment" "$LINENO" 5
                   2901:    fi
                   2902: 
                   2903:    test "$2" = conftest.file
                   2904:    )
                   2905: then
                   2906:    # Ok.
                   2907:    :
1.14      bertrand 2908: else
1.36      bertrand 2909:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2910: Check your system clock" "$LINENO" 5
1.14      bertrand 2911: fi
1.15      bertrand 2912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2913: $as_echo "yes" >&6; }
                   2914: test "$program_prefix" != NONE &&
                   2915:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2916: # Use a double $ so make ignores it.
                   2917: test "$program_suffix" != NONE &&
                   2918:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2919: # Double any \ or $.
                   2920: # By default was `s,x,x', remove it if useless.
                   2921: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2922: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2923: 
                   2924: # expand $ac_aux_dir to an absolute path
                   2925: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2926: 
1.15      bertrand 2927: if test x"${MISSING+set}" != xset; then
                   2928:   case $am_aux_dir in
                   2929:   *\ * | *\    *)
                   2930:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2931:   *)
1.15      bertrand 2932:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2933:   esac
1.14      bertrand 2934: fi
1.15      bertrand 2935: # Use eval to expand $SHELL
                   2936: if eval "$MISSING --run true"; then
                   2937:   am_missing_run="$MISSING --run "
1.14      bertrand 2938: else
1.15      bertrand 2939:   am_missing_run=
                   2940:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2941: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2942: fi
                   2943: 
                   2944: if test x"${install_sh}" != xset; then
                   2945:   case $am_aux_dir in
                   2946:   *\ * | *\    *)
                   2947:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2948:   *)
                   2949:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2950:   esac
1.14      bertrand 2951: fi
1.15      bertrand 2952: 
                   2953: # Installed binaries are usually stripped using `strip' when the user
                   2954: # run `make install-strip'.  However `strip' might not be the right
                   2955: # tool to use in cross-compilation environments, therefore Automake
                   2956: # will honor the `STRIP' environment variable to overrule this program.
                   2957: if test "$cross_compiling" != no; then
                   2958:   if test -n "$ac_tool_prefix"; then
                   2959:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2960: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2961: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2962: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 2963: if ${ac_cv_prog_STRIP+:} false; then :
1.15      bertrand 2964:   $as_echo_n "(cached) " >&6
1.14      bertrand 2965: else
1.15      bertrand 2966:   if test -n "$STRIP"; then
                   2967:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2968: else
                   2969: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2970: for as_dir in $PATH
                   2971: do
                   2972:   IFS=$as_save_IFS
                   2973:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2974:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2975:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2976:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2977:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2978:     break 2
                   2979:   fi
                   2980: done
1.15      bertrand 2981:   done
1.14      bertrand 2982: IFS=$as_save_IFS
1.1       bertrand 2983: 
1.14      bertrand 2984: fi
                   2985: fi
1.15      bertrand 2986: STRIP=$ac_cv_prog_STRIP
                   2987: if test -n "$STRIP"; then
                   2988:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   2989: $as_echo "$STRIP" >&6; }
1.14      bertrand 2990: else
1.15      bertrand 2991:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2992: $as_echo "no" >&6; }
1.14      bertrand 2993: fi
1.1       bertrand 2994: 
                   2995: 
1.14      bertrand 2996: fi
1.15      bertrand 2997: if test -z "$ac_cv_prog_STRIP"; then
                   2998:   ac_ct_STRIP=$STRIP
                   2999:   # Extract the first word of "strip", so it can be a program name with args.
                   3000: set dummy strip; ac_word=$2
                   3001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3002: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3003: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15      bertrand 3004:   $as_echo_n "(cached) " >&6
1.14      bertrand 3005: else
1.15      bertrand 3006:   if test -n "$ac_ct_STRIP"; then
                   3007:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 3008: else
1.14      bertrand 3009: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3010: for as_dir in $PATH
1.1       bertrand 3011: do
1.14      bertrand 3012:   IFS=$as_save_IFS
                   3013:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3014:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3015:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3016:     ac_cv_prog_ac_ct_STRIP="strip"
                   3017:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3018:     break 2
1.1       bertrand 3019:   fi
                   3020: done
1.15      bertrand 3021:   done
1.14      bertrand 3022: IFS=$as_save_IFS
1.1       bertrand 3023: 
1.14      bertrand 3024: fi
                   3025: fi
1.15      bertrand 3026: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3027: if test -n "$ac_ct_STRIP"; then
                   3028:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3029: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3030: else
1.15      bertrand 3031:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3032: $as_echo "no" >&6; }
1.1       bertrand 3033: fi
                   3034: 
1.15      bertrand 3035:   if test "x$ac_ct_STRIP" = x; then
                   3036:     STRIP=":"
1.14      bertrand 3037:   else
                   3038:     case $cross_compiling:$ac_tool_warned in
                   3039: yes:)
1.15      bertrand 3040: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3041: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3042: ac_tool_warned=yes ;;
                   3043: esac
1.15      bertrand 3044:     STRIP=$ac_ct_STRIP
1.1       bertrand 3045:   fi
1.14      bertrand 3046: else
1.15      bertrand 3047:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3048: fi
                   3049: 
1.15      bertrand 3050: fi
                   3051: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3052: 
1.15      bertrand 3053: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3054: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3055: if test -z "$MKDIR_P"; then
1.57      bertrand 3056:   if ${ac_cv_path_mkdir+:} false; then :
1.15      bertrand 3057:   $as_echo_n "(cached) " >&6
1.14      bertrand 3058: else
1.15      bertrand 3059:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3060: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3061: do
                   3062:   IFS=$as_save_IFS
                   3063:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3064:     for ac_prog in mkdir gmkdir; do
                   3065:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3066:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3067:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3068:         'mkdir (GNU coreutils) '* | \
                   3069:         'mkdir (coreutils) '* | \
                   3070:         'mkdir (fileutils) '4.1*)
                   3071:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3072:           break 3;;
                   3073:       esac
                   3074:     done
                   3075:        done
                   3076:   done
1.14      bertrand 3077: IFS=$as_save_IFS
1.1       bertrand 3078: 
                   3079: fi
1.15      bertrand 3080: 
                   3081:   test -d ./--version && rmdir ./--version
                   3082:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3083:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3084:   else
                   3085:     # As a last resort, use the slow shell script.  Don't cache a
                   3086:     # value for MKDIR_P within a source directory, because that will
                   3087:     # break other packages using the cache if that directory is
                   3088:     # removed, or if the value is a relative name.
                   3089:     MKDIR_P="$ac_install_sh -d"
                   3090:   fi
1.14      bertrand 3091: fi
1.15      bertrand 3092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3093: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3094: 
1.15      bertrand 3095: mkdir_p="$MKDIR_P"
                   3096: case $mkdir_p in
                   3097:   [\\/$]* | ?:[\\/]*) ;;
                   3098:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3099: esac
1.1       bertrand 3100: 
1.15      bertrand 3101: for ac_prog in gawk mawk nawk awk
                   3102: do
                   3103:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3104: set dummy $ac_prog; ac_word=$2
                   3105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3106: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3107: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 3108:   $as_echo_n "(cached) " >&6
1.1       bertrand 3109: else
1.15      bertrand 3110:   if test -n "$AWK"; then
                   3111:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3112: else
1.14      bertrand 3113: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3114: for as_dir in $PATH
                   3115: do
                   3116:   IFS=$as_save_IFS
                   3117:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3118:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3119:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3120:     ac_cv_prog_AWK="$ac_prog"
                   3121:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3122:     break 2
                   3123:   fi
                   3124: done
1.15      bertrand 3125:   done
1.14      bertrand 3126: IFS=$as_save_IFS
                   3127: 
                   3128: fi
1.1       bertrand 3129: fi
1.15      bertrand 3130: AWK=$ac_cv_prog_AWK
                   3131: if test -n "$AWK"; then
                   3132:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3133: $as_echo "$AWK" >&6; }
1.14      bertrand 3134: else
1.15      bertrand 3135:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3136: $as_echo "no" >&6; }
1.1       bertrand 3137: fi
                   3138: 
                   3139: 
1.15      bertrand 3140:   test -n "$AWK" && break
                   3141: done
1.1       bertrand 3142: 
1.15      bertrand 3143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3144: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3145: set x ${MAKE-make}
                   3146: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 3147: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 3148:   $as_echo_n "(cached) " >&6
1.14      bertrand 3149: else
1.15      bertrand 3150:   cat >conftest.make <<\_ACEOF
                   3151: SHELL = /bin/sh
                   3152: all:
                   3153:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3154: _ACEOF
1.36      bertrand 3155: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3156: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3157:   *@@@%%%=?*=@@@%%%*)
                   3158:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3159:   *)
                   3160:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3161: esac
                   3162: rm -f conftest.make
                   3163: fi
                   3164: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3165:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3166: $as_echo "yes" >&6; }
                   3167:   SET_MAKE=
1.1       bertrand 3168: else
1.15      bertrand 3169:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3170: $as_echo "no" >&6; }
                   3171:   SET_MAKE="MAKE=${MAKE-make}"
                   3172: fi
1.1       bertrand 3173: 
1.15      bertrand 3174: rm -rf .tst 2>/dev/null
                   3175: mkdir .tst 2>/dev/null
                   3176: if test -d .tst; then
                   3177:   am__leading_dot=.
                   3178: else
                   3179:   am__leading_dot=_
1.14      bertrand 3180: fi
1.15      bertrand 3181: rmdir .tst 2>/dev/null
                   3182: 
                   3183: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3184:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3185:   # is not polluted with repeated "-I."
                   3186:   am__isrc=' -I$(srcdir)'
                   3187:   # test to see if srcdir already configured
                   3188:   if test -f $srcdir/config.status; then
1.36      bertrand 3189:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3190:   fi
1.1       bertrand 3191: fi
1.15      bertrand 3192: 
                   3193: # test whether we have cygpath
                   3194: if test -z "$CYGPATH_W"; then
                   3195:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3196:     CYGPATH_W='cygpath -w'
                   3197:   else
                   3198:     CYGPATH_W=echo
                   3199:   fi
1.1       bertrand 3200: fi
                   3201: 
                   3202: 
1.15      bertrand 3203: # Define the identity of the package.
                   3204:  PACKAGE='rpl'
1.73      bertrand 3205:  VERSION='4.1.3'
1.15      bertrand 3206: 
                   3207: 
                   3208: cat >>confdefs.h <<_ACEOF
                   3209: #define PACKAGE "$PACKAGE"
                   3210: _ACEOF
                   3211: 
                   3212: 
                   3213: cat >>confdefs.h <<_ACEOF
                   3214: #define VERSION "$VERSION"
                   3215: _ACEOF
                   3216: 
                   3217: # Some tools Automake needs.
                   3218: 
                   3219: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3220: 
                   3221: 
                   3222: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3223: 
                   3224: 
                   3225: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3226: 
                   3227: 
                   3228: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3229: 
                   3230: 
                   3231: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3232: 
                   3233: # We need awk for the "check" target.  The system "awk" is bad on
                   3234: # some platforms.
                   3235: # Always define AMTAR for backward compatibility.
                   3236: 
                   3237: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3238: 
                   3239: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3240: 
                   3241: 
                   3242: 
                   3243: 
1.1       bertrand 3244: 
                   3245: 
1.15      bertrand 3246: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3247: 
                   3248: 
1.54      bertrand 3249: NCURSES=ncurses-5.9
1.50      bertrand 3250: READLINE=readline-6.2
1.30      bertrand 3251: UNITS=units-1.88
1.57      bertrand 3252: GSL=gsl-1.15
1.72      bertrand 3253: GPP=gpp-3.0
1.52      bertrand 3254: GNUPLOT=gnuplot-4.4.3
1.15      bertrand 3255: FILE=file-5.03
                   3256: ICONV=libiconv-1.13.1
1.69      bertrand 3257: SQLITE=sqlite-3.7.7.1
1.74      bertrand 3258: OPENSSL=openssl-1.0.0e
1.14      bertrand 3259: 
1.75    ! bertrand 3260: GMP=gmp-5.0.2
1.55      bertrand 3261: MPFR=mpfr-3.0.1
1.56      bertrand 3262: NTL=ntl-5.5.2
                   3263: COCOA=CoCoALib-0.9943
                   3264: PARI=pari-2.3.5
1.67      bertrand 3265: GIAC=giac-0.9.3
1.55      bertrand 3266: 
1.15      bertrand 3267: ac_ext=c
                   3268: ac_cpp='$CPP $CPPFLAGS'
                   3269: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3270: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3271: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3272: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3273:   for ac_prog in gcc
1.15      bertrand 3274:   do
                   3275:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3276: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3278: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3279: if ${ac_cv_prog_CC+:} false; then :
1.15      bertrand 3280:   $as_echo_n "(cached) " >&6
1.1       bertrand 3281: else
1.15      bertrand 3282:   if test -n "$CC"; then
                   3283:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3284: else
                   3285: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3286: for as_dir in $PATH
                   3287: do
                   3288:   IFS=$as_save_IFS
                   3289:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3290:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3291:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3292:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3293:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3294:     break 2
                   3295:   fi
                   3296: done
1.15      bertrand 3297:   done
1.1       bertrand 3298: IFS=$as_save_IFS
                   3299: 
                   3300: fi
                   3301: fi
1.15      bertrand 3302: CC=$ac_cv_prog_CC
                   3303: if test -n "$CC"; then
                   3304:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3305: $as_echo "$CC" >&6; }
1.1       bertrand 3306: else
1.15      bertrand 3307:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3308: $as_echo "no" >&6; }
1.1       bertrand 3309: fi
                   3310: 
                   3311: 
1.15      bertrand 3312:     test -n "$CC" && break
                   3313:   done
                   3314: fi
                   3315: if test -z "$CC"; then
                   3316:   ac_ct_CC=$CC
1.23      bertrand 3317:   for ac_prog in gcc
1.15      bertrand 3318: do
                   3319:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3320: set dummy $ac_prog; ac_word=$2
                   3321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3322: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3323: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15      bertrand 3324:   $as_echo_n "(cached) " >&6
1.1       bertrand 3325: else
1.15      bertrand 3326:   if test -n "$ac_ct_CC"; then
                   3327:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3328: else
                   3329: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3330: for as_dir in $PATH
                   3331: do
                   3332:   IFS=$as_save_IFS
                   3333:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3334:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3335:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3336:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3337:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3338:     break 2
                   3339:   fi
                   3340: done
1.15      bertrand 3341:   done
1.1       bertrand 3342: IFS=$as_save_IFS
                   3343: 
                   3344: fi
                   3345: fi
1.15      bertrand 3346: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3347: if test -n "$ac_ct_CC"; then
                   3348:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3349: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3350: else
1.15      bertrand 3351:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3352: $as_echo "no" >&6; }
1.1       bertrand 3353: fi
                   3354: 
                   3355: 
1.15      bertrand 3356:   test -n "$ac_ct_CC" && break
                   3357: done
1.1       bertrand 3358: 
1.15      bertrand 3359:   if test "x$ac_ct_CC" = x; then
                   3360:     CC=""
                   3361:   else
                   3362:     case $cross_compiling:$ac_tool_warned in
                   3363: yes:)
                   3364: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3365: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3366: ac_tool_warned=yes ;;
                   3367: esac
                   3368:     CC=$ac_ct_CC
1.1       bertrand 3369:   fi
                   3370: fi
                   3371: 
                   3372: 
1.15      bertrand 3373: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3374: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3375: as_fn_error $? "no acceptable C compiler found in \$PATH
1.57      bertrand 3376: See \`config.log' for more details" "$LINENO" 5; }
1.1       bertrand 3377: 
1.15      bertrand 3378: # Provide some information about the compiler.
                   3379: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3380: set X $ac_compile
                   3381: ac_compiler=$2
                   3382: for ac_option in --version -v -V -qversion; do
                   3383:   { { ac_try="$ac_compiler $ac_option >&5"
                   3384: case "(($ac_try" in
                   3385:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3386:   *) ac_try_echo=$ac_try;;
                   3387: esac
                   3388: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3389: $as_echo "$ac_try_echo"; } >&5
                   3390:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3391:   ac_status=$?
                   3392:   if test -s conftest.err; then
                   3393:     sed '10a\
                   3394: ... rest of stderr output deleted ...
                   3395:          10q' conftest.err >conftest.er1
                   3396:     cat conftest.er1 >&5
1.1       bertrand 3397:   fi
1.15      bertrand 3398:   rm -f conftest.er1 conftest.err
                   3399:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3400:   test $ac_status = 0; }
1.1       bertrand 3401: done
                   3402: 
1.15      bertrand 3403: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3404: /* end confdefs.h.  */
                   3405: 
                   3406: int
                   3407: main ()
                   3408: {
1.14      bertrand 3409: 
1.15      bertrand 3410:   ;
                   3411:   return 0;
                   3412: }
                   3413: _ACEOF
                   3414: ac_clean_files_save=$ac_clean_files
                   3415: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3416: # Try to create an executable without -o first, disregard a.out.
                   3417: # It will help us diagnose broken compilers, and finding out an intuition
                   3418: # of exeext.
                   3419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3420: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3421: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3422: 
1.15      bertrand 3423: # The possible output files:
                   3424: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3425: 
1.15      bertrand 3426: ac_rmfiles=
                   3427: for ac_file in $ac_files
1.1       bertrand 3428: do
1.15      bertrand 3429:   case $ac_file in
                   3430:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3431:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3432:   esac
1.1       bertrand 3433: done
1.15      bertrand 3434: rm -f $ac_rmfiles
                   3435: 
                   3436: if { { ac_try="$ac_link_default"
                   3437: case "(($ac_try" in
                   3438:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3439:   *) ac_try_echo=$ac_try;;
                   3440: esac
                   3441: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3442: $as_echo "$ac_try_echo"; } >&5
                   3443:   (eval "$ac_link_default") 2>&5
                   3444:   ac_status=$?
                   3445:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3446:   test $ac_status = 0; }; then :
                   3447:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3448: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3449: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3450: # so that the user can short-circuit this test for compilers unknown to
                   3451: # Autoconf.
                   3452: for ac_file in $ac_files ''
                   3453: do
                   3454:   test -f "$ac_file" || continue
                   3455:   case $ac_file in
                   3456:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3457:    ;;
                   3458:     [ab].out )
                   3459:    # We found the default executable, but exeext='' is most
                   3460:    # certainly right.
                   3461:    break;;
                   3462:     *.* )
                   3463:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3464:    then :; else
                   3465:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3466:    fi
                   3467:    # We set ac_cv_exeext here because the later test for it is not
                   3468:    # safe: cross compilers may not add the suffix if given an `-o'
                   3469:    # argument, so we may need to know it at that point already.
                   3470:    # Even if this section looks crufty: it has the advantage of
                   3471:    # actually working.
                   3472:    break;;
                   3473:     * )
                   3474:    break;;
                   3475:   esac
1.14      bertrand 3476: done
1.15      bertrand 3477: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3478: 
1.14      bertrand 3479: else
1.15      bertrand 3480:   ac_file=''
1.1       bertrand 3481: fi
1.15      bertrand 3482: if test -z "$ac_file"; then :
                   3483:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3484: $as_echo "no" >&6; }
                   3485: $as_echo "$as_me: failed program was:" >&5
                   3486: sed 's/^/| /' conftest.$ac_ext >&5
                   3487: 
                   3488: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3489: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3490: as_fn_error 77 "C compiler cannot create executables
1.57      bertrand 3491: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3492: else
                   3493:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3494: $as_echo "yes" >&6; }
                   3495: fi
                   3496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3497: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3499: $as_echo "$ac_file" >&6; }
                   3500: ac_exeext=$ac_cv_exeext
1.1       bertrand 3501: 
1.15      bertrand 3502: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3503: ac_clean_files=$ac_clean_files_save
                   3504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3505: $as_echo_n "checking for suffix of executables... " >&6; }
                   3506: if { { ac_try="$ac_link"
                   3507: case "(($ac_try" in
                   3508:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3509:   *) ac_try_echo=$ac_try;;
                   3510: esac
                   3511: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3512: $as_echo "$ac_try_echo"; } >&5
                   3513:   (eval "$ac_link") 2>&5
                   3514:   ac_status=$?
                   3515:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3516:   test $ac_status = 0; }; then :
                   3517:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3518: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3519: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3520: # `rm'.
                   3521: for ac_file in conftest.exe conftest conftest.*; do
                   3522:   test -f "$ac_file" || continue
                   3523:   case $ac_file in
                   3524:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3525:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3526:      break;;
                   3527:     * ) break;;
                   3528:   esac
                   3529: done
1.14      bertrand 3530: else
1.15      bertrand 3531:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3532: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3533: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.57      bertrand 3534: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3535: fi
                   3536: rm -f conftest conftest$ac_cv_exeext
                   3537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3538: $as_echo "$ac_cv_exeext" >&6; }
                   3539: 
                   3540: rm -f conftest.$ac_ext
                   3541: EXEEXT=$ac_cv_exeext
                   3542: ac_exeext=$EXEEXT
                   3543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3544: /* end confdefs.h.  */
1.15      bertrand 3545: #include <stdio.h>
1.14      bertrand 3546: int
                   3547: main ()
                   3548: {
1.15      bertrand 3549: FILE *f = fopen ("conftest.out", "w");
                   3550:  return ferror (f) || fclose (f) != 0;
                   3551: 
1.14      bertrand 3552:   ;
                   3553:   return 0;
                   3554: }
                   3555: _ACEOF
1.15      bertrand 3556: ac_clean_files="$ac_clean_files conftest.out"
                   3557: # Check that the compiler produces executables we can run.  If not, either
                   3558: # the compiler is broken, or we cross compile.
                   3559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3560: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3561: if test "$cross_compiling" != yes; then
                   3562:   { { ac_try="$ac_link"
1.1       bertrand 3563: case "(($ac_try" in
                   3564:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3565:   *) ac_try_echo=$ac_try;;
                   3566: esac
1.15      bertrand 3567: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3568: $as_echo "$ac_try_echo"; } >&5
                   3569:   (eval "$ac_link") 2>&5
                   3570:   ac_status=$?
                   3571:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3572:   test $ac_status = 0; }
                   3573:   if { ac_try='./conftest$ac_cv_exeext'
                   3574:   { { case "(($ac_try" in
                   3575:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3576:   *) ac_try_echo=$ac_try;;
                   3577: esac
                   3578: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3579: $as_echo "$ac_try_echo"; } >&5
                   3580:   (eval "$ac_try") 2>&5
1.1       bertrand 3581:   ac_status=$?
1.15      bertrand 3582:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3583:   test $ac_status = 0; }; }; then
                   3584:     cross_compiling=no
                   3585:   else
                   3586:     if test "$cross_compiling" = maybe; then
                   3587:    cross_compiling=yes
                   3588:     else
                   3589:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3590: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3591: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3592: If you meant to cross compile, use \`--host'.
1.57      bertrand 3593: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3594:     fi
                   3595:   fi
1.14      bertrand 3596: fi
1.15      bertrand 3597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3598: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3599: 
1.15      bertrand 3600: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3601: ac_clean_files=$ac_clean_files_save
                   3602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3603: $as_echo_n "checking for suffix of object files... " >&6; }
1.57      bertrand 3604: if ${ac_cv_objext+:} false; then :
1.15      bertrand 3605:   $as_echo_n "(cached) " >&6
1.14      bertrand 3606: else
1.15      bertrand 3607:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3608: /* end confdefs.h.  */
                   3609: 
                   3610: int
                   3611: main ()
                   3612: {
1.15      bertrand 3613: 
1.1       bertrand 3614:   ;
                   3615:   return 0;
                   3616: }
                   3617: _ACEOF
1.15      bertrand 3618: rm -f conftest.o conftest.obj
                   3619: if { { ac_try="$ac_compile"
1.1       bertrand 3620: case "(($ac_try" in
                   3621:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3622:   *) ac_try_echo=$ac_try;;
                   3623: esac
1.15      bertrand 3624: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3625: $as_echo "$ac_try_echo"; } >&5
                   3626:   (eval "$ac_compile") 2>&5
1.1       bertrand 3627:   ac_status=$?
1.15      bertrand 3628:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3629:   test $ac_status = 0; }; then :
                   3630:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3631:   test -f "$ac_file" || continue;
                   3632:   case $ac_file in
                   3633:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3634:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3635:        break;;
                   3636:   esac
                   3637: done
1.14      bertrand 3638: else
1.15      bertrand 3639:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3640: sed 's/^/| /' conftest.$ac_ext >&5
                   3641: 
1.15      bertrand 3642: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3643: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3644: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.57      bertrand 3645: See \`config.log' for more details" "$LINENO" 5; }
1.14      bertrand 3646: fi
1.15      bertrand 3647: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3648: fi
                   3649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3650: $as_echo "$ac_cv_objext" >&6; }
                   3651: OBJEXT=$ac_cv_objext
                   3652: ac_objext=$OBJEXT
                   3653: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3654: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.57      bertrand 3655: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15      bertrand 3656:   $as_echo_n "(cached) " >&6
                   3657: else
                   3658:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3659: /* end confdefs.h.  */
                   3660: 
                   3661: int
                   3662: main ()
                   3663: {
                   3664: #ifndef __GNUC__
                   3665:        choke me
                   3666: #endif
1.14      bertrand 3667: 
1.15      bertrand 3668:   ;
                   3669:   return 0;
                   3670: }
                   3671: _ACEOF
                   3672: if ac_fn_c_try_compile "$LINENO"; then :
                   3673:   ac_compiler_gnu=yes
1.14      bertrand 3674: else
1.15      bertrand 3675:   ac_compiler_gnu=no
1.14      bertrand 3676: fi
1.15      bertrand 3677: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3678: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3679: 
1.15      bertrand 3680: fi
                   3681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3682: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3683: if test $ac_compiler_gnu = yes; then
                   3684:   GCC=yes
1.14      bertrand 3685: else
1.15      bertrand 3686:   GCC=
1.14      bertrand 3687: fi
1.15      bertrand 3688: ac_test_CFLAGS=${CFLAGS+set}
                   3689: ac_save_CFLAGS=$CFLAGS
                   3690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3691: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.57      bertrand 3692: if ${ac_cv_prog_cc_g+:} false; then :
1.15      bertrand 3693:   $as_echo_n "(cached) " >&6
                   3694: else
                   3695:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3696:    ac_c_werror_flag=yes
                   3697:    ac_cv_prog_cc_g=no
                   3698:    CFLAGS="-g"
                   3699:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3700: /* end confdefs.h.  */
1.14      bertrand 3701: 
1.15      bertrand 3702: int
                   3703: main ()
                   3704: {
1.14      bertrand 3705: 
1.15      bertrand 3706:   ;
                   3707:   return 0;
                   3708: }
                   3709: _ACEOF
                   3710: if ac_fn_c_try_compile "$LINENO"; then :
                   3711:   ac_cv_prog_cc_g=yes
                   3712: else
                   3713:   CFLAGS=""
                   3714:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3715: /* end confdefs.h.  */
1.14      bertrand 3716: 
1.15      bertrand 3717: int
                   3718: main ()
                   3719: {
1.14      bertrand 3720: 
1.15      bertrand 3721:   ;
                   3722:   return 0;
                   3723: }
                   3724: _ACEOF
                   3725: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3726: 
1.15      bertrand 3727: else
                   3728:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3729:     CFLAGS="-g"
                   3730:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3731: /* end confdefs.h.  */
1.14      bertrand 3732: 
1.15      bertrand 3733: int
                   3734: main ()
                   3735: {
1.14      bertrand 3736: 
1.15      bertrand 3737:   ;
                   3738:   return 0;
                   3739: }
                   3740: _ACEOF
                   3741: if ac_fn_c_try_compile "$LINENO"; then :
                   3742:   ac_cv_prog_cc_g=yes
                   3743: fi
                   3744: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3745: fi
                   3746: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3747: fi
                   3748: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3749:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3750: fi
                   3751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3752: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3753: if test "$ac_test_CFLAGS" = set; then
                   3754:   CFLAGS=$ac_save_CFLAGS
                   3755: elif test $ac_cv_prog_cc_g = yes; then
                   3756:   if test "$GCC" = yes; then
                   3757:     CFLAGS="-g -O2"
                   3758:   else
                   3759:     CFLAGS="-g"
                   3760:   fi
                   3761: else
                   3762:   if test "$GCC" = yes; then
                   3763:     CFLAGS="-O2"
                   3764:   else
                   3765:     CFLAGS=
                   3766:   fi
                   3767: fi
                   3768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3769: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.57      bertrand 3770: if ${ac_cv_prog_cc_c89+:} false; then :
1.15      bertrand 3771:   $as_echo_n "(cached) " >&6
1.1       bertrand 3772: else
1.15      bertrand 3773:   ac_cv_prog_cc_c89=no
                   3774: ac_save_CC=$CC
                   3775: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3776: /* end confdefs.h.  */
1.15      bertrand 3777: #include <stdarg.h>
                   3778: #include <stdio.h>
                   3779: #include <sys/types.h>
                   3780: #include <sys/stat.h>
                   3781: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3782: struct buf { int x; };
                   3783: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3784: static char *e (p, i)
                   3785:      char **p;
                   3786:      int i;
                   3787: {
                   3788:   return p[i];
                   3789: }
                   3790: static char *f (char * (*g) (char **, int), char **p, ...)
                   3791: {
                   3792:   char *s;
                   3793:   va_list v;
                   3794:   va_start (v,p);
                   3795:   s = g (p, va_arg (v,int));
                   3796:   va_end (v);
                   3797:   return s;
                   3798: }
                   3799: 
                   3800: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3801:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3802:    These don't provoke an error unfortunately, instead are silently treated
                   3803:    as 'x'.  The following induces an error, until -std is added to get
                   3804:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3805:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3806:    that's true only with -std.  */
                   3807: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3808: 
1.15      bertrand 3809: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3810:    inside strings and character constants.  */
                   3811: #define FOO(x) 'x'
                   3812: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3813: 
1.15      bertrand 3814: int test (int i, double x);
                   3815: struct s1 {int (*f) (int a);};
                   3816: struct s2 {int (*f) (double a);};
                   3817: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3818: int argc;
                   3819: char **argv;
1.14      bertrand 3820: int
                   3821: main ()
                   3822: {
1.15      bertrand 3823: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3824:   ;
                   3825:   return 0;
                   3826: }
                   3827: _ACEOF
1.15      bertrand 3828: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3829:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3830: do
                   3831:   CC="$ac_save_CC $ac_arg"
                   3832:   if ac_fn_c_try_compile "$LINENO"; then :
                   3833:   ac_cv_prog_cc_c89=$ac_arg
                   3834: fi
                   3835: rm -f core conftest.err conftest.$ac_objext
                   3836:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3837: done
                   3838: rm -f conftest.$ac_ext
                   3839: CC=$ac_save_CC
                   3840: 
                   3841: fi
                   3842: # AC_CACHE_VAL
                   3843: case "x$ac_cv_prog_cc_c89" in
                   3844:   x)
                   3845:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3846: $as_echo "none needed" >&6; } ;;
                   3847:   xno)
                   3848:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3849: $as_echo "unsupported" >&6; } ;;
                   3850:   *)
                   3851:     CC="$CC $ac_cv_prog_cc_c89"
                   3852:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3853: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3854: esac
1.15      bertrand 3855: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3856: 
                   3857: fi
                   3858: 
1.15      bertrand 3859: ac_ext=c
                   3860: ac_cpp='$CPP $CPPFLAGS'
                   3861: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3862: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3863: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3864: DEPDIR="${am__leading_dot}deps"
                   3865: 
                   3866: ac_config_commands="$ac_config_commands depfiles"
                   3867: 
                   3868: 
                   3869: am_make=${MAKE-make}
                   3870: cat > confinc << 'END'
                   3871: am__doit:
                   3872:    @echo this is the am__doit target
                   3873: .PHONY: am__doit
                   3874: END
                   3875: # If we don't find an include directive, just comment out the code.
                   3876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3877: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3878: am__include="#"
                   3879: am__quote=
                   3880: _am_result=none
                   3881: # First try GNU make style include.
                   3882: echo "include confinc" > confmf
                   3883: # Ignore all kinds of additional output from `make'.
                   3884: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3885: *the\ am__doit\ target*)
                   3886:   am__include=include
                   3887:   am__quote=
                   3888:   _am_result=GNU
                   3889:   ;;
                   3890: esac
                   3891: # Now try BSD make style include.
                   3892: if test "$am__include" = "#"; then
                   3893:    echo '.include "confinc"' > confmf
                   3894:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3895:    *the\ am__doit\ target*)
                   3896:      am__include=.include
                   3897:      am__quote="\""
                   3898:      _am_result=BSD
                   3899:      ;;
                   3900:    esac
1.14      bertrand 3901: fi
                   3902: 
                   3903: 
1.15      bertrand 3904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3905: $as_echo "$_am_result" >&6; }
                   3906: rm -f confinc confmf
                   3907: 
                   3908: # Check whether --enable-dependency-tracking was given.
                   3909: if test "${enable_dependency_tracking+set}" = set; then :
                   3910:   enableval=$enable_dependency_tracking;
                   3911: fi
                   3912: 
                   3913: if test "x$enable_dependency_tracking" != xno; then
                   3914:   am_depcomp="$ac_aux_dir/depcomp"
                   3915:   AMDEPBACKSLASH='\'
                   3916: fi
                   3917:  if test "x$enable_dependency_tracking" != xno; then
                   3918:   AMDEP_TRUE=
                   3919:   AMDEP_FALSE='#'
1.1       bertrand 3920: else
1.15      bertrand 3921:   AMDEP_TRUE='#'
                   3922:   AMDEP_FALSE=
1.14      bertrand 3923: fi
1.1       bertrand 3924: 
1.14      bertrand 3925: 
                   3926: 
1.15      bertrand 3927: depcc="$CC"   am_compiler_list=
1.14      bertrand 3928: 
1.15      bertrand 3929: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3930: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 3931: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15      bertrand 3932:   $as_echo_n "(cached) " >&6
1.14      bertrand 3933: else
1.15      bertrand 3934:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3935:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3936:   # making bogus files that we don't know about and never remove.  For
                   3937:   # instance it was reported that on HP-UX the gcc test will end up
                   3938:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3939:   # in D'.
                   3940:   mkdir conftest.dir
                   3941:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3942:   # using a relative directory.
                   3943:   cp "$am_depcomp" conftest.dir
                   3944:   cd conftest.dir
                   3945:   # We will build objects and dependencies in a subdirectory because
                   3946:   # it helps to detect inapplicable dependency modes.  For instance
                   3947:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3948:   # side effect of compilation, but ICC will put the dependencies in
                   3949:   # the current directory while Tru64 will put them in the object
                   3950:   # directory.
                   3951:   mkdir sub
1.14      bertrand 3952: 
1.15      bertrand 3953:   am_cv_CC_dependencies_compiler_type=none
                   3954:   if test "$am_compiler_list" = ""; then
                   3955:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3956:   fi
                   3957:   am__universal=false
                   3958:   case " $depcc " in #(
                   3959:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3960:      esac
1.14      bertrand 3961: 
1.15      bertrand 3962:   for depmode in $am_compiler_list; do
                   3963:     # Setup a source with many dependencies, because some compilers
                   3964:     # like to wrap large dependency lists on column 80 (with \), and
                   3965:     # we should not choose a depcomp mode which is confused by this.
                   3966:     #
                   3967:     # We need to recreate these files for each test, as the compiler may
                   3968:     # overwrite some of them when testing with obscure command lines.
                   3969:     # This happens at least with the AIX C compiler.
                   3970:     : > sub/conftest.c
                   3971:     for i in 1 2 3 4 5 6; do
                   3972:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3973:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3974:       # Solaris 8's {/usr,}/bin/sh.
                   3975:       touch sub/conftst$i.h
                   3976:     done
                   3977:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3978: 
1.15      bertrand 3979:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3980:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3981:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3982:     # versions had trouble with output in subdirs
                   3983:     am__obj=sub/conftest.${OBJEXT-o}
                   3984:     am__minus_obj="-o $am__obj"
                   3985:     case $depmode in
                   3986:     gcc)
                   3987:       # This depmode causes a compiler race in universal mode.
                   3988:       test "$am__universal" = false || continue
                   3989:       ;;
                   3990:     nosideeffect)
                   3991:       # after this tag, mechanisms are not by side-effect, so they'll
                   3992:       # only be used when explicitly requested
                   3993:       if test "x$enable_dependency_tracking" = xyes; then
                   3994:    continue
                   3995:       else
                   3996:    break
                   3997:       fi
                   3998:       ;;
                   3999:     msvisualcpp | msvcmsys)
                   4000:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4001:       # not run yet.  These depmodes are late enough in the game, and
                   4002:       # so weak that their functioning should not be impacted.
                   4003:       am__obj=conftest.${OBJEXT-o}
                   4004:       am__minus_obj=
                   4005:       ;;
                   4006:     none) break ;;
                   4007:     esac
                   4008:     if depmode=$depmode \
                   4009:        source=sub/conftest.c object=$am__obj \
                   4010:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4011:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4012:          >/dev/null 2>conftest.err &&
                   4013:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4014:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4015:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4016:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4017:       # icc doesn't choke on unknown options, it will just issue warnings
                   4018:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4019:       # that says an option was ignored or not supported.
                   4020:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4021:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4022:       # The diagnosis changed in icc 8.0:
                   4023:       #   icc: Command line remark: option '-MP' not supported
                   4024:       if (grep 'ignoring option' conftest.err ||
                   4025:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4026:         am_cv_CC_dependencies_compiler_type=$depmode
                   4027:         break
                   4028:       fi
                   4029:     fi
                   4030:   done
1.14      bertrand 4031: 
1.15      bertrand 4032:   cd ..
                   4033:   rm -rf conftest.dir
1.14      bertrand 4034: else
1.15      bertrand 4035:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4036: fi
                   4037: 
1.15      bertrand 4038: fi
                   4039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4040: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4041: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4042: 
1.15      bertrand 4043:  if
                   4044:   test "x$enable_dependency_tracking" != xno \
                   4045:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4046:   am__fastdepCC_TRUE=
                   4047:   am__fastdepCC_FALSE='#'
1.1       bertrand 4048: else
1.15      bertrand 4049:   am__fastdepCC_TRUE='#'
                   4050:   am__fastdepCC_FALSE=
                   4051: fi
                   4052: 
1.1       bertrand 4053: 
                   4054: 
1.30      bertrand 4055: EXT_SQL=
                   4056: 
1.15      bertrand 4057: if test x"$CC" != x""; then
                   4058:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4059:            awk -F. '{ printf("%s", $1);}'`
                   4060:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4061:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4062:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4063:        OPTIMISATION_C=-O3
                   4064:    else
1.23      bertrand 4065:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4066:                then
1.15      bertrand 4067:            OPTIMISATION_C=-O3
                   4068:        else
1.23      bertrand 4069:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4070:                OPTIMISATION_C=-O2
                   4071:            else
1.36      bertrand 4072:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4073:            fi
1.15      bertrand 4074:        fi
                   4075:    fi
1.14      bertrand 4076: fi
                   4077: 
1.15      bertrand 4078: if test "x$CC" != xcc; then
                   4079:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4080: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4081: else
1.15      bertrand 4082:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4083: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4084: fi
1.15      bertrand 4085: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4086:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.57      bertrand 4087: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15      bertrand 4088:   $as_echo_n "(cached) " >&6
1.1       bertrand 4089: else
1.15      bertrand 4090:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4091: /* end confdefs.h.  */
                   4092: 
                   4093: int
                   4094: main ()
                   4095: {
1.15      bertrand 4096: 
1.1       bertrand 4097:   ;
                   4098:   return 0;
                   4099: }
                   4100: _ACEOF
1.15      bertrand 4101: # Make sure it works both with $CC and with simple cc.
                   4102: # We do the test twice because some compilers refuse to overwrite an
                   4103: # existing .o file with -o, though they will create one.
                   4104: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4105: rm -f conftest2.*
                   4106: if { { case "(($ac_try" in
                   4107:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4108:   *) ac_try_echo=$ac_try;;
                   4109: esac
                   4110: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4111: $as_echo "$ac_try_echo"; } >&5
                   4112:   (eval "$ac_try") 2>&5
                   4113:   ac_status=$?
                   4114:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4115:   test $ac_status = 0; } &&
                   4116:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4117:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4118:   *) ac_try_echo=$ac_try;;
                   4119: esac
                   4120: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4121: $as_echo "$ac_try_echo"; } >&5
                   4122:   (eval "$ac_try") 2>&5
                   4123:   ac_status=$?
                   4124:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4125:   test $ac_status = 0; };
                   4126: then
                   4127:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4128:   if test "x$CC" != xcc; then
                   4129:     # Test first that cc exists at all.
                   4130:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4131:   { { case "(($ac_try" in
                   4132:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4133:   *) ac_try_echo=$ac_try;;
                   4134: esac
                   4135: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4136: $as_echo "$ac_try_echo"; } >&5
                   4137:   (eval "$ac_try") 2>&5
                   4138:   ac_status=$?
                   4139:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4140:   test $ac_status = 0; }; }; then
                   4141:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4142:       rm -f conftest2.*
                   4143:       if { { case "(($ac_try" in
                   4144:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4145:   *) ac_try_echo=$ac_try;;
                   4146: esac
                   4147: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4148: $as_echo "$ac_try_echo"; } >&5
                   4149:   (eval "$ac_try") 2>&5
                   4150:   ac_status=$?
                   4151:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4152:   test $ac_status = 0; } &&
                   4153:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4154:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4155:   *) ac_try_echo=$ac_try;;
                   4156: esac
1.15      bertrand 4157: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4158: $as_echo "$ac_try_echo"; } >&5
                   4159:   (eval "$ac_try") 2>&5
1.14      bertrand 4160:   ac_status=$?
1.15      bertrand 4161:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4162:   test $ac_status = 0; };
                   4163:       then
                   4164:    # cc works too.
                   4165:    :
                   4166:       else
                   4167:    # cc exists but doesn't like -o.
                   4168:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4169:       fi
                   4170:     fi
                   4171:   fi
1.1       bertrand 4172: else
1.15      bertrand 4173:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4174: fi
                   4175: rm -f core conftest*
1.14      bertrand 4176: 
1.1       bertrand 4177: fi
1.15      bertrand 4178: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4179:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4180: $as_echo "yes" >&6; }
                   4181: else
                   4182:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4183: $as_echo "no" >&6; }
                   4184: 
                   4185: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4186: 
                   4187: fi
1.15      bertrand 4188: 
                   4189: # FIXME: we rely on the cache variable name because
                   4190: # there is no other way.
                   4191: set dummy $CC
                   4192: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4193: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4194: if test "$am_t" != yes; then
                   4195:    # Losing compiler, so override with the script.
                   4196:    # FIXME: It is wrong to rewrite CC.
                   4197:    # But if we don't then we get into trouble of one sort or another.
                   4198:    # A longer-term fix would be to have automake use am__CC in this case,
                   4199:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4200:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4201: fi
1.14      bertrand 4202: 
                   4203: 
1.15      bertrand 4204: 
                   4205: if test "$GCC" != yes; then
1.36      bertrand 4206:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4207: fi
                   4208: 
                   4209: ac_ext=cpp
                   4210: ac_cpp='$CXXCPP $CPPFLAGS'
                   4211: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4212: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4213: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4214: if test -z "$CXX"; then
                   4215:   if test -n "$CCC"; then
                   4216:     CXX=$CCC
                   4217:   else
                   4218:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4219:   for ac_prog in g++
1.15      bertrand 4220:   do
                   4221:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4222: set dummy $ac_tool_prefix$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; }
1.57      bertrand 4225: if ${ac_cv_prog_CXX+:} false; then :
1.15      bertrand 4226:   $as_echo_n "(cached) " >&6
1.1       bertrand 4227: else
1.15      bertrand 4228:   if test -n "$CXX"; then
                   4229:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4230: else
1.15      bertrand 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_CXX="$ac_tool_prefix$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: 
                   4246: fi
                   4247: fi
1.15      bertrand 4248: CXX=$ac_cv_prog_CXX
                   4249: if test -n "$CXX"; then
                   4250:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4251: $as_echo "$CXX" >&6; }
1.14      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 "$CXX" && break
                   4259:   done
                   4260: fi
                   4261: if test -z "$CXX"; then
                   4262:   ac_ct_CXX=$CXX
1.23      bertrand 4263:   for ac_prog in g++
1.15      bertrand 4264: do
                   4265:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4266: set dummy $ac_prog; ac_word=$2
                   4267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4268: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4269: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15      bertrand 4270:   $as_echo_n "(cached) " >&6
                   4271: else
                   4272:   if test -n "$ac_ct_CXX"; then
                   4273:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4274: else
                   4275: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4276: for as_dir in $PATH
                   4277: do
                   4278:   IFS=$as_save_IFS
                   4279:   test -z "$as_dir" && as_dir=.
                   4280:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4281:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4282:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4283:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4284:     break 2
                   4285:   fi
                   4286: done
                   4287:   done
                   4288: IFS=$as_save_IFS
1.14      bertrand 4289: 
1.15      bertrand 4290: fi
                   4291: fi
                   4292: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4293: if test -n "$ac_ct_CXX"; then
                   4294:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4295: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4296: else
1.15      bertrand 4297:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4298: $as_echo "no" >&6; }
1.14      bertrand 4299: fi
                   4300: 
                   4301: 
1.15      bertrand 4302:   test -n "$ac_ct_CXX" && break
                   4303: done
1.14      bertrand 4304: 
1.15      bertrand 4305:   if test "x$ac_ct_CXX" = x; then
                   4306:     CXX="g++"
                   4307:   else
                   4308:     case $cross_compiling:$ac_tool_warned in
                   4309: yes:)
                   4310: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4311: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4312: ac_tool_warned=yes ;;
                   4313: esac
                   4314:     CXX=$ac_ct_CXX
                   4315:   fi
                   4316: fi
1.1       bertrand 4317: 
1.15      bertrand 4318:   fi
                   4319: fi
                   4320: # Provide some information about the compiler.
                   4321: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4322: set X $ac_compile
                   4323: ac_compiler=$2
                   4324: for ac_option in --version -v -V -qversion; do
                   4325:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4326: case "(($ac_try" in
                   4327:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4328:   *) ac_try_echo=$ac_try;;
                   4329: esac
1.15      bertrand 4330: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4331: $as_echo "$ac_try_echo"; } >&5
                   4332:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4333:   ac_status=$?
1.15      bertrand 4334:   if test -s conftest.err; then
                   4335:     sed '10a\
                   4336: ... rest of stderr output deleted ...
                   4337:          10q' conftest.err >conftest.er1
                   4338:     cat conftest.er1 >&5
                   4339:   fi
                   4340:   rm -f conftest.er1 conftest.err
                   4341:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4342:   test $ac_status = 0; }
                   4343: done
                   4344: 
                   4345: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4346: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.57      bertrand 4347: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15      bertrand 4348:   $as_echo_n "(cached) " >&6
1.14      bertrand 4349: else
1.15      bertrand 4350:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4351: /* end confdefs.h.  */
1.1       bertrand 4352: 
                   4353: int
                   4354: main ()
                   4355: {
1.15      bertrand 4356: #ifndef __GNUC__
                   4357:        choke me
                   4358: #endif
1.1       bertrand 4359: 
                   4360:   ;
                   4361:   return 0;
                   4362: }
                   4363: _ACEOF
1.15      bertrand 4364: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4365:   ac_compiler_gnu=yes
1.1       bertrand 4366: else
1.15      bertrand 4367:   ac_compiler_gnu=no
1.1       bertrand 4368: fi
1.14      bertrand 4369: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4370: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4371: 
1.15      bertrand 4372: fi
                   4373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4374: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4375: if test $ac_compiler_gnu = yes; then
                   4376:   GXX=yes
                   4377: else
                   4378:   GXX=
                   4379: fi
                   4380: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4381: ac_save_CXXFLAGS=$CXXFLAGS
                   4382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4383: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.57      bertrand 4384: if ${ac_cv_prog_cxx_g+:} false; then :
1.15      bertrand 4385:   $as_echo_n "(cached) " >&6
                   4386: else
                   4387:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4388:    ac_cxx_werror_flag=yes
                   4389:    ac_cv_prog_cxx_g=no
                   4390:    CXXFLAGS="-g"
                   4391:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4392: /* end confdefs.h.  */
1.15      bertrand 4393: 
1.1       bertrand 4394: int
                   4395: main ()
                   4396: {
1.14      bertrand 4397: 
1.1       bertrand 4398:   ;
                   4399:   return 0;
                   4400: }
                   4401: _ACEOF
1.15      bertrand 4402: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4403:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4404: else
1.15      bertrand 4405:   CXXFLAGS=""
                   4406:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4407: /* end confdefs.h.  */
1.1       bertrand 4408: 
1.14      bertrand 4409: int
                   4410: main ()
                   4411: {
1.1       bertrand 4412: 
1.14      bertrand 4413:   ;
                   4414:   return 0;
                   4415: }
                   4416: _ACEOF
1.15      bertrand 4417: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4418: 
                   4419: else
1.15      bertrand 4420:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4421:     CXXFLAGS="-g"
                   4422:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4423: /* end confdefs.h.  */
1.1       bertrand 4424: 
1.14      bertrand 4425: int
                   4426: main ()
                   4427: {
1.1       bertrand 4428: 
1.14      bertrand 4429:   ;
                   4430:   return 0;
                   4431: }
                   4432: _ACEOF
1.15      bertrand 4433: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4434:   ac_cv_prog_cxx_g=yes
                   4435: fi
                   4436: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4437: fi
                   4438: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4439: fi
                   4440: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4441:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4442: fi
                   4443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4444: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4445: if test "$ac_test_CXXFLAGS" = set; then
                   4446:   CXXFLAGS=$ac_save_CXXFLAGS
                   4447: elif test $ac_cv_prog_cxx_g = yes; then
                   4448:   if test "$GXX" = yes; then
                   4449:     CXXFLAGS="-g -O2"
                   4450:   else
                   4451:     CXXFLAGS="-g"
                   4452:   fi
                   4453: else
                   4454:   if test "$GXX" = yes; then
                   4455:     CXXFLAGS="-O2"
                   4456:   else
                   4457:     CXXFLAGS=
                   4458:   fi
                   4459: fi
                   4460: ac_ext=c
                   4461: ac_cpp='$CPP $CPPFLAGS'
                   4462: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4463: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4464: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4465: 
                   4466: depcc="$CXX"  am_compiler_list=
                   4467: 
                   4468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4469: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 4470: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15      bertrand 4471:   $as_echo_n "(cached) " >&6
                   4472: else
                   4473:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4474:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4475:   # making bogus files that we don't know about and never remove.  For
                   4476:   # instance it was reported that on HP-UX the gcc test will end up
                   4477:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4478:   # in D'.
                   4479:   mkdir conftest.dir
                   4480:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4481:   # using a relative directory.
                   4482:   cp "$am_depcomp" conftest.dir
                   4483:   cd conftest.dir
                   4484:   # We will build objects and dependencies in a subdirectory because
                   4485:   # it helps to detect inapplicable dependency modes.  For instance
                   4486:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4487:   # side effect of compilation, but ICC will put the dependencies in
                   4488:   # the current directory while Tru64 will put them in the object
                   4489:   # directory.
                   4490:   mkdir sub
                   4491: 
                   4492:   am_cv_CXX_dependencies_compiler_type=none
                   4493:   if test "$am_compiler_list" = ""; then
                   4494:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4495:   fi
                   4496:   am__universal=false
                   4497:   case " $depcc " in #(
                   4498:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4499:      esac
                   4500: 
                   4501:   for depmode in $am_compiler_list; do
                   4502:     # Setup a source with many dependencies, because some compilers
                   4503:     # like to wrap large dependency lists on column 80 (with \), and
                   4504:     # we should not choose a depcomp mode which is confused by this.
                   4505:     #
                   4506:     # We need to recreate these files for each test, as the compiler may
                   4507:     # overwrite some of them when testing with obscure command lines.
                   4508:     # This happens at least with the AIX C compiler.
                   4509:     : > sub/conftest.c
                   4510:     for i in 1 2 3 4 5 6; do
                   4511:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4512:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4513:       # Solaris 8's {/usr,}/bin/sh.
                   4514:       touch sub/conftst$i.h
                   4515:     done
                   4516:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4517: 
                   4518:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4519:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4520:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4521:     # versions had trouble with output in subdirs
                   4522:     am__obj=sub/conftest.${OBJEXT-o}
                   4523:     am__minus_obj="-o $am__obj"
                   4524:     case $depmode in
                   4525:     gcc)
                   4526:       # This depmode causes a compiler race in universal mode.
                   4527:       test "$am__universal" = false || continue
                   4528:       ;;
                   4529:     nosideeffect)
                   4530:       # after this tag, mechanisms are not by side-effect, so they'll
                   4531:       # only be used when explicitly requested
                   4532:       if test "x$enable_dependency_tracking" = xyes; then
                   4533:    continue
                   4534:       else
                   4535:    break
                   4536:       fi
                   4537:       ;;
                   4538:     msvisualcpp | msvcmsys)
                   4539:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4540:       # not run yet.  These depmodes are late enough in the game, and
                   4541:       # so weak that their functioning should not be impacted.
                   4542:       am__obj=conftest.${OBJEXT-o}
                   4543:       am__minus_obj=
                   4544:       ;;
                   4545:     none) break ;;
                   4546:     esac
                   4547:     if depmode=$depmode \
                   4548:        source=sub/conftest.c object=$am__obj \
                   4549:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4550:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4551:          >/dev/null 2>conftest.err &&
                   4552:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4553:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4554:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4555:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4556:       # icc doesn't choke on unknown options, it will just issue warnings
                   4557:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4558:       # that says an option was ignored or not supported.
                   4559:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4560:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4561:       # The diagnosis changed in icc 8.0:
                   4562:       #   icc: Command line remark: option '-MP' not supported
                   4563:       if (grep 'ignoring option' conftest.err ||
                   4564:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4565:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4566:         break
                   4567:       fi
                   4568:     fi
                   4569:   done
                   4570: 
                   4571:   cd ..
                   4572:   rm -rf conftest.dir
                   4573: else
                   4574:   am_cv_CXX_dependencies_compiler_type=none
                   4575: fi
                   4576: 
                   4577: fi
                   4578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4579: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4580: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4581: 
                   4582:  if
                   4583:   test "x$enable_dependency_tracking" != xno \
                   4584:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4585:   am__fastdepCXX_TRUE=
                   4586:   am__fastdepCXX_FALSE='#'
                   4587: else
                   4588:   am__fastdepCXX_TRUE='#'
                   4589:   am__fastdepCXX_FALSE=
                   4590: fi
                   4591: 
                   4592: 
                   4593: 
1.69      bertrand 4594: if test "$CXX" != "g++"; then
1.36      bertrand 4595:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4596: fi
                   4597: 
1.69      bertrand 4598: if test x"$CXX" != x""; then
                   4599:    GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4600:            awk -F. '{ printf("%s", $1);}'`
                   4601:    GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4602:            awk -F. '{ printf("%s", $2);}'`
                   4603:    if test $GCC_VERSION_MAJEURE -ge 5; then
                   4604:        OPTIMISATION_GXX=-O3
                   4605:    else
                   4606:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4607:            OPTIMISATION_GXX=-O3
                   4608:        else
                   4609:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4610:                OPTIMISATION_GXX=-O2
                   4611:            else
                   4612:                as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
                   4613:            fi
                   4614:        fi
                   4615:    fi
                   4616: fi
                   4617: 
1.15      bertrand 4618: ac_ext=f
                   4619: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4620: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4621: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4622: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4623:   for ac_prog in gfortran
1.15      bertrand 4624:   do
                   4625:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4626: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4628: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4629: if ${ac_cv_prog_F77+:} false; then :
1.15      bertrand 4630:   $as_echo_n "(cached) " >&6
                   4631: else
                   4632:   if test -n "$F77"; then
                   4633:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4634: else
                   4635: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4636: for as_dir in $PATH
                   4637: do
                   4638:   IFS=$as_save_IFS
                   4639:   test -z "$as_dir" && as_dir=.
                   4640:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4641:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4642:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4643:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4644:     break 2
                   4645:   fi
                   4646: done
                   4647:   done
                   4648: IFS=$as_save_IFS
                   4649: 
                   4650: fi
                   4651: fi
                   4652: F77=$ac_cv_prog_F77
                   4653: if test -n "$F77"; then
                   4654:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4655: $as_echo "$F77" >&6; }
                   4656: else
                   4657:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4658: $as_echo "no" >&6; }
                   4659: fi
                   4660: 
                   4661: 
                   4662:     test -n "$F77" && break
                   4663:   done
                   4664: fi
                   4665: if test -z "$F77"; then
                   4666:   ac_ct_F77=$F77
1.23      bertrand 4667:   for ac_prog in gfortran
1.15      bertrand 4668: do
                   4669:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4670: set dummy $ac_prog; ac_word=$2
                   4671: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4672: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4673: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15      bertrand 4674:   $as_echo_n "(cached) " >&6
                   4675: else
                   4676:   if test -n "$ac_ct_F77"; then
                   4677:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4678: else
                   4679: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4680: for as_dir in $PATH
                   4681: do
                   4682:   IFS=$as_save_IFS
                   4683:   test -z "$as_dir" && as_dir=.
                   4684:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4685:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4686:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4687:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4688:     break 2
                   4689:   fi
                   4690: done
                   4691:   done
                   4692: IFS=$as_save_IFS
                   4693: 
                   4694: fi
                   4695: fi
                   4696: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4697: if test -n "$ac_ct_F77"; then
                   4698:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4699: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4700: else
1.15      bertrand 4701:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4702: $as_echo "no" >&6; }
                   4703: fi
                   4704: 
                   4705: 
                   4706:   test -n "$ac_ct_F77" && break
                   4707: done
1.1       bertrand 4708: 
1.15      bertrand 4709:   if test "x$ac_ct_F77" = x; then
                   4710:     F77=""
                   4711:   else
                   4712:     case $cross_compiling:$ac_tool_warned in
                   4713: yes:)
                   4714: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4715: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4716: ac_tool_warned=yes ;;
                   4717: esac
                   4718:     F77=$ac_ct_F77
                   4719:   fi
1.14      bertrand 4720: fi
1.1       bertrand 4721: 
                   4722: 
1.15      bertrand 4723: # Provide some information about the compiler.
                   4724: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4725: set X $ac_compile
                   4726: ac_compiler=$2
                   4727: for ac_option in --version -v -V -qversion; do
                   4728:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4729: case "(($ac_try" in
                   4730:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4731:   *) ac_try_echo=$ac_try;;
                   4732: esac
1.15      bertrand 4733: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4734: $as_echo "$ac_try_echo"; } >&5
                   4735:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4736:   ac_status=$?
1.15      bertrand 4737:   if test -s conftest.err; then
                   4738:     sed '10a\
                   4739: ... rest of stderr output deleted ...
                   4740:          10q' conftest.err >conftest.er1
                   4741:     cat conftest.er1 >&5
                   4742:   fi
                   4743:   rm -f conftest.er1 conftest.err
                   4744:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4745:   test $ac_status = 0; }
                   4746: done
                   4747: rm -f a.out
                   4748: 
                   4749: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4750: # input file.  (Note that this only needs to work for GNU compilers.)
                   4751: ac_save_ext=$ac_ext
                   4752: ac_ext=F
                   4753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4754: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.57      bertrand 4755: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15      bertrand 4756:   $as_echo_n "(cached) " >&6
1.1       bertrand 4757: else
1.15      bertrand 4758:   cat > conftest.$ac_ext <<_ACEOF
                   4759:       program main
                   4760: #ifndef __GNUC__
                   4761:        choke me
                   4762: #endif
1.14      bertrand 4763: 
1.15      bertrand 4764:       end
                   4765: _ACEOF
                   4766: if ac_fn_f77_try_compile "$LINENO"; then :
                   4767:   ac_compiler_gnu=yes
                   4768: else
                   4769:   ac_compiler_gnu=no
1.1       bertrand 4770: fi
1.15      bertrand 4771: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4772: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4773: 
                   4774: fi
1.15      bertrand 4775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4776: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4777: ac_ext=$ac_save_ext
                   4778: ac_test_FFLAGS=${FFLAGS+set}
                   4779: ac_save_FFLAGS=$FFLAGS
                   4780: FFLAGS=
                   4781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4782: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.57      bertrand 4783: if ${ac_cv_prog_f77_g+:} false; then :
1.15      bertrand 4784:   $as_echo_n "(cached) " >&6
                   4785: else
                   4786:   FFLAGS=-g
                   4787: cat > conftest.$ac_ext <<_ACEOF
                   4788:       program main
1.1       bertrand 4789: 
1.15      bertrand 4790:       end
1.14      bertrand 4791: _ACEOF
1.15      bertrand 4792: if ac_fn_f77_try_compile "$LINENO"; then :
                   4793:   ac_cv_prog_f77_g=yes
1.1       bertrand 4794: else
1.15      bertrand 4795:   ac_cv_prog_f77_g=no
1.1       bertrand 4796: fi
1.15      bertrand 4797: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4798: 
                   4799: fi
1.15      bertrand 4800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4801: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4802: if test "$ac_test_FFLAGS" = set; then
                   4803:   FFLAGS=$ac_save_FFLAGS
                   4804: elif test $ac_cv_prog_f77_g = yes; then
                   4805:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4806:     FFLAGS="-g -O2"
                   4807:   else
                   4808:     FFLAGS="-g"
                   4809:   fi
                   4810: else
                   4811:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4812:     FFLAGS="-O2"
                   4813:   else
                   4814:     FFLAGS=
                   4815:   fi
1.1       bertrand 4816: fi
                   4817: 
1.15      bertrand 4818: if test $ac_compiler_gnu = yes; then
                   4819:   G77=yes
1.1       bertrand 4820: else
1.15      bertrand 4821:   G77=
1.1       bertrand 4822: fi
1.15      bertrand 4823: ac_ext=c
                   4824: ac_cpp='$CPP $CPPFLAGS'
                   4825: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4826: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4827: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4828: 
                   4829: 
1.15      bertrand 4830: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
1.36      bertrand 4831:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.15      bertrand 4832: fi
1.14      bertrand 4833: 
1.15      bertrand 4834: ac_ext=${ac_fc_srcext-f}
                   4835: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4836: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4837: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4838: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4839:   for ac_prog in gfortran
1.15      bertrand 4840:   do
                   4841:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4842: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4844: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4845: if ${ac_cv_prog_FC+:} false; then :
1.15      bertrand 4846:   $as_echo_n "(cached) " >&6
                   4847: else
                   4848:   if test -n "$FC"; then
                   4849:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4850: else
1.15      bertrand 4851: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4852: for as_dir in $PATH
                   4853: do
                   4854:   IFS=$as_save_IFS
                   4855:   test -z "$as_dir" && as_dir=.
                   4856:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4857:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4858:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4859:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4860:     break 2
                   4861:   fi
                   4862: done
                   4863:   done
                   4864: IFS=$as_save_IFS
1.1       bertrand 4865: 
                   4866: fi
1.15      bertrand 4867: fi
                   4868: FC=$ac_cv_prog_FC
                   4869: if test -n "$FC"; then
                   4870:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4871: $as_echo "$FC" >&6; }
1.14      bertrand 4872: else
1.15      bertrand 4873:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4874: $as_echo "no" >&6; }
1.14      bertrand 4875: fi
                   4876: 
1.1       bertrand 4877: 
1.15      bertrand 4878:     test -n "$FC" && break
                   4879:   done
                   4880: fi
                   4881: if test -z "$FC"; then
                   4882:   ac_ct_FC=$FC
1.23      bertrand 4883:   for ac_prog in gfortran
1.15      bertrand 4884: do
                   4885:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4886: set dummy $ac_prog; ac_word=$2
                   4887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4888: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4889: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15      bertrand 4890:   $as_echo_n "(cached) " >&6
                   4891: else
                   4892:   if test -n "$ac_ct_FC"; then
                   4893:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4894: else
                   4895: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4896: for as_dir in $PATH
                   4897: do
                   4898:   IFS=$as_save_IFS
                   4899:   test -z "$as_dir" && as_dir=.
                   4900:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4901:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4902:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4903:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4904:     break 2
                   4905:   fi
                   4906: done
                   4907:   done
                   4908: IFS=$as_save_IFS
1.1       bertrand 4909: 
1.15      bertrand 4910: fi
                   4911: fi
                   4912: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4913: if test -n "$ac_ct_FC"; then
                   4914:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4915: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4916: else
1.15      bertrand 4917:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4918: $as_echo "no" >&6; }
1.1       bertrand 4919: fi
1.14      bertrand 4920: 
1.1       bertrand 4921: 
1.15      bertrand 4922:   test -n "$ac_ct_FC" && break
                   4923: done
1.1       bertrand 4924: 
1.15      bertrand 4925:   if test "x$ac_ct_FC" = x; then
                   4926:     FC=""
                   4927:   else
                   4928:     case $cross_compiling:$ac_tool_warned in
                   4929: yes:)
                   4930: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4931: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4932: ac_tool_warned=yes ;;
1.14      bertrand 4933: esac
1.15      bertrand 4934:     FC=$ac_ct_FC
                   4935:   fi
1.14      bertrand 4936: fi
                   4937: 
                   4938: 
1.15      bertrand 4939: # Provide some information about the compiler.
                   4940: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4941: set X $ac_compile
                   4942: ac_compiler=$2
                   4943: for ac_option in --version -v -V -qversion; do
                   4944:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4945: case "(($ac_try" in
                   4946:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4947:   *) ac_try_echo=$ac_try;;
                   4948: esac
1.15      bertrand 4949: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4950: $as_echo "$ac_try_echo"; } >&5
                   4951:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4952:   ac_status=$?
1.15      bertrand 4953:   if test -s conftest.err; then
                   4954:     sed '10a\
                   4955: ... rest of stderr output deleted ...
                   4956:          10q' conftest.err >conftest.er1
                   4957:     cat conftest.er1 >&5
                   4958:   fi
                   4959:   rm -f conftest.er1 conftest.err
                   4960:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4961:   test $ac_status = 0; }
                   4962: done
                   4963: rm -f a.out
                   4964: 
                   4965: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4966: # input file.  (Note that this only needs to work for GNU compilers.)
                   4967: ac_save_ext=$ac_ext
                   4968: ac_ext=F
                   4969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4970: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.57      bertrand 4971: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15      bertrand 4972:   $as_echo_n "(cached) " >&6
1.14      bertrand 4973: else
1.15      bertrand 4974:   cat > conftest.$ac_ext <<_ACEOF
                   4975:       program main
                   4976: #ifndef __GNUC__
                   4977:        choke me
                   4978: #endif
1.14      bertrand 4979: 
1.15      bertrand 4980:       end
                   4981: _ACEOF
                   4982: if ac_fn_fc_try_compile "$LINENO"; then :
                   4983:   ac_compiler_gnu=yes
                   4984: else
                   4985:   ac_compiler_gnu=no
1.14      bertrand 4986: fi
                   4987: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4988: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4989: 
1.15      bertrand 4990: fi
                   4991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   4992: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   4993: ac_ext=$ac_save_ext
                   4994: ac_test_FCFLAGS=${FCFLAGS+set}
                   4995: ac_save_FCFLAGS=$FCFLAGS
                   4996: FCFLAGS=
                   4997: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   4998: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.57      bertrand 4999: if ${ac_cv_prog_fc_g+:} false; then :
1.15      bertrand 5000:   $as_echo_n "(cached) " >&6
                   5001: else
                   5002:   FCFLAGS=-g
                   5003: cat > conftest.$ac_ext <<_ACEOF
                   5004:       program main
1.1       bertrand 5005: 
1.15      bertrand 5006:       end
1.1       bertrand 5007: _ACEOF
1.15      bertrand 5008: if ac_fn_fc_try_compile "$LINENO"; then :
                   5009:   ac_cv_prog_fc_g=yes
1.1       bertrand 5010: else
1.15      bertrand 5011:   ac_cv_prog_fc_g=no
1.1       bertrand 5012: fi
1.14      bertrand 5013: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 5014: 
1.15      bertrand 5015: fi
                   5016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   5017: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   5018: if test "$ac_test_FCFLAGS" = set; then
                   5019:   FCFLAGS=$ac_save_FCFLAGS
                   5020: elif test $ac_cv_prog_fc_g = yes; then
                   5021:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5022:     FCFLAGS="-g -O2"
                   5023:   else
                   5024:     FCFLAGS="-g"
                   5025:   fi
1.1       bertrand 5026: else
1.15      bertrand 5027:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5028:     FCFLAGS="-O2"
                   5029:   else
                   5030:     FCFLAGS=
                   5031:   fi
1.1       bertrand 5032: fi
                   5033: 
1.15      bertrand 5034: ac_ext=c
                   5035: ac_cpp='$CPP $CPPFLAGS'
                   5036: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5037: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5038: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 5039: 
                   5040: 
1.15      bertrand 5041: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
1.36      bertrand 5042:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 5043: fi
                   5044: 
1.15      bertrand 5045: if test x"$FC" != x""; then
                   5046:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5047:            awk -F. '{ printf("%s", $1);}'`
                   5048:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5049:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 5050:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 5051:        OPTIMISATION_F=-O3
                   5052:    else
1.23      bertrand 5053:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5054:            OPTIMISATION_F=-O3
                   5055:        else
1.23      bertrand 5056:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5057:                OPTIMISATION_F=-O2
                   5058:            else
1.36      bertrand 5059:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5060:            fi
1.14      bertrand 5061:        fi
                   5062:    fi
                   5063: fi
1.1       bertrand 5064: 
                   5065: 
1.15      bertrand 5066: ac_ext=c
                   5067: ac_cpp='$CPP $CPPFLAGS'
                   5068: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5069: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5070: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5072: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5073: # On Suns, sometimes $CPP names a directory.
                   5074: if test -n "$CPP" && test -d "$CPP"; then
                   5075:   CPP=
                   5076: fi
                   5077: if test -z "$CPP"; then
1.57      bertrand 5078:   if ${ac_cv_prog_CPP+:} false; then :
1.15      bertrand 5079:   $as_echo_n "(cached) " >&6
                   5080: else
                   5081:       # Double quotes because CPP needs to be expanded
                   5082:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5083:     do
                   5084:       ac_preproc_ok=false
                   5085: for ac_c_preproc_warn_flag in '' yes
                   5086: do
                   5087:   # Use a header file that comes with gcc, so configuring glibc
                   5088:   # with a fresh cross-compiler works.
                   5089:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5090:   # <limits.h> exists even on freestanding compilers.
                   5091:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5092:   # not just through cpp. "Syntax error" is here to catch this case.
                   5093:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5094: /* end confdefs.h.  */
1.15      bertrand 5095: #ifdef __STDC__
                   5096: # include <limits.h>
                   5097: #else
                   5098: # include <assert.h>
                   5099: #endif
                   5100:             Syntax error
1.1       bertrand 5101: _ACEOF
1.15      bertrand 5102: if ac_fn_c_try_cpp "$LINENO"; then :
                   5103: 
1.1       bertrand 5104: else
1.15      bertrand 5105:   # Broken: fails on valid input.
                   5106: continue
1.1       bertrand 5107: fi
1.36      bertrand 5108: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5109: 
1.15      bertrand 5110:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5111:   # can be detected and how.
                   5112:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5113: /* end confdefs.h.  */
                   5114: #include <ac_nonexistent.h>
                   5115: _ACEOF
                   5116: if ac_fn_c_try_cpp "$LINENO"; then :
                   5117:   # Broken: success on invalid input.
                   5118: continue
                   5119: else
                   5120:   # Passes both tests.
                   5121: ac_preproc_ok=:
                   5122: break
1.1       bertrand 5123: fi
1.36      bertrand 5124: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5125: 
1.15      bertrand 5126: done
                   5127: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5128: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5129: if $ac_preproc_ok; then :
                   5130:   break
1.1       bertrand 5131: fi
                   5132: 
1.15      bertrand 5133:     done
                   5134:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5135: 
1.15      bertrand 5136: fi
                   5137:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5138: else
1.15      bertrand 5139:   ac_cv_prog_CPP=$CPP
                   5140: fi
                   5141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5142: $as_echo "$CPP" >&6; }
                   5143: ac_preproc_ok=false
                   5144: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5145: do
1.15      bertrand 5146:   # Use a header file that comes with gcc, so configuring glibc
                   5147:   # with a fresh cross-compiler works.
                   5148:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5149:   # <limits.h> exists even on freestanding compilers.
                   5150:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5151:   # not just through cpp. "Syntax error" is here to catch this case.
                   5152:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5153: /* end confdefs.h.  */
                   5154: #ifdef __STDC__
                   5155: # include <limits.h>
                   5156: #else
                   5157: # include <assert.h>
                   5158: #endif
                   5159:             Syntax error
                   5160: _ACEOF
                   5161: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5162: 
1.15      bertrand 5163: else
                   5164:   # Broken: fails on valid input.
                   5165: continue
                   5166: fi
1.36      bertrand 5167: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5168: 
1.15      bertrand 5169:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5170:   # can be detected and how.
                   5171:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5172: /* end confdefs.h.  */
                   5173: #include <ac_nonexistent.h>
                   5174: _ACEOF
                   5175: if ac_fn_c_try_cpp "$LINENO"; then :
                   5176:   # Broken: success on invalid input.
                   5177: continue
                   5178: else
                   5179:   # Passes both tests.
                   5180: ac_preproc_ok=:
                   5181: break
                   5182: fi
1.36      bertrand 5183: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5184: 
                   5185: done
1.15      bertrand 5186: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5187: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5188: if $ac_preproc_ok; then :
1.1       bertrand 5189: 
1.15      bertrand 5190: else
                   5191:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5192: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5193: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.57      bertrand 5194: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 5195: fi
1.14      bertrand 5196: 
1.15      bertrand 5197: ac_ext=c
                   5198: ac_cpp='$CPP $CPPFLAGS'
                   5199: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5200: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5201: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5202: 
                   5203: 
1.15      bertrand 5204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5205: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5206: 
                   5207: 
1.15      bertrand 5208: # Check whether --with-x was given.
                   5209: if test "${with_x+set}" = set; then :
                   5210:   withval=$with_x;
1.1       bertrand 5211: fi
1.14      bertrand 5212: 
1.15      bertrand 5213: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5214: if test "x$with_x" = xno; then
                   5215:   # The user explicitly disabled X.
                   5216:   have_x=disabled
1.1       bertrand 5217: else
1.15      bertrand 5218:   case $x_includes,$x_libraries in #(
1.57      bertrand 5219:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5220:     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15      bertrand 5221:   $as_echo_n "(cached) " >&6
1.1       bertrand 5222: else
1.15      bertrand 5223:   # One or both of the vars are not set, and there is no cached value.
                   5224: ac_x_includes=no ac_x_libraries=no
                   5225: rm -f -r conftest.dir
                   5226: if mkdir conftest.dir; then
                   5227:   cd conftest.dir
                   5228:   cat >Imakefile <<'_ACEOF'
                   5229: incroot:
                   5230:    @echo incroot='${INCROOT}'
                   5231: usrlibdir:
                   5232:    @echo usrlibdir='${USRLIBDIR}'
                   5233: libdir:
                   5234:    @echo libdir='${LIBDIR}'
                   5235: _ACEOF
                   5236:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5237:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5238:     for ac_var in incroot usrlibdir libdir; do
                   5239:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5240:     done
                   5241:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5242:     for ac_extension in a so sl dylib la dll; do
                   5243:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5244:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5245:    ac_im_usrlibdir=$ac_im_libdir; break
                   5246:       fi
                   5247:     done
                   5248:     # Screen out bogus values from the imake configuration.  They are
                   5249:     # bogus both because they are the default anyway, and because
                   5250:     # using them would break gcc on systems where it needs fixed includes.
                   5251:     case $ac_im_incroot in
                   5252:    /usr/include) ac_x_includes= ;;
                   5253:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5254:     esac
                   5255:     case $ac_im_usrlibdir in
                   5256:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5257:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5258:     esac
                   5259:   fi
                   5260:   cd ..
                   5261:   rm -f -r conftest.dir
                   5262: fi
                   5263: 
                   5264: # Standard set of common directories for X headers.
                   5265: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5266: ac_x_header_dirs='
                   5267: /usr/X11/include
                   5268: /usr/X11R7/include
                   5269: /usr/X11R6/include
                   5270: /usr/X11R5/include
                   5271: /usr/X11R4/include
1.1       bertrand 5272: 
1.15      bertrand 5273: /usr/include/X11
                   5274: /usr/include/X11R7
                   5275: /usr/include/X11R6
                   5276: /usr/include/X11R5
                   5277: /usr/include/X11R4
1.1       bertrand 5278: 
1.15      bertrand 5279: /usr/local/X11/include
                   5280: /usr/local/X11R7/include
                   5281: /usr/local/X11R6/include
                   5282: /usr/local/X11R5/include
                   5283: /usr/local/X11R4/include
1.1       bertrand 5284: 
1.15      bertrand 5285: /usr/local/include/X11
                   5286: /usr/local/include/X11R7
                   5287: /usr/local/include/X11R6
                   5288: /usr/local/include/X11R5
                   5289: /usr/local/include/X11R4
1.1       bertrand 5290: 
1.15      bertrand 5291: /usr/X386/include
                   5292: /usr/x386/include
                   5293: /usr/XFree86/include/X11
1.1       bertrand 5294: 
1.15      bertrand 5295: /usr/include
                   5296: /usr/local/include
                   5297: /usr/unsupported/include
                   5298: /usr/athena/include
                   5299: /usr/local/x11r5/include
                   5300: /usr/lpp/Xamples/include
1.1       bertrand 5301: 
1.15      bertrand 5302: /usr/openwin/include
                   5303: /usr/openwin/share/include'
1.1       bertrand 5304: 
1.15      bertrand 5305: if test "$ac_x_includes" = no; then
                   5306:   # Guess where to find include files, by looking for Xlib.h.
                   5307:   # First, try using that file with no special directory specified.
                   5308:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5309: /* end confdefs.h.  */
                   5310: #include <X11/Xlib.h>
                   5311: _ACEOF
                   5312: if ac_fn_c_try_cpp "$LINENO"; then :
                   5313:   # We can compile using X headers with no special include directory.
                   5314: ac_x_includes=
1.1       bertrand 5315: else
1.15      bertrand 5316:   for ac_dir in $ac_x_header_dirs; do
                   5317:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5318:     ac_x_includes=$ac_dir
                   5319:     break
                   5320:   fi
                   5321: done
1.1       bertrand 5322: fi
1.36      bertrand 5323: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5324: fi # $ac_x_includes = no
1.1       bertrand 5325: 
1.15      bertrand 5326: if test "$ac_x_libraries" = no; then
                   5327:   # Check for the libraries.
                   5328:   # See if we find them without any special options.
                   5329:   # Don't add to $LIBS permanently.
                   5330:   ac_save_LIBS=$LIBS
                   5331:   LIBS="-lX11 $LIBS"
                   5332:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5333: /* end confdefs.h.  */
1.15      bertrand 5334: #include <X11/Xlib.h>
1.14      bertrand 5335: int
                   5336: main ()
                   5337: {
1.15      bertrand 5338: XrmInitialize ()
1.14      bertrand 5339:   ;
                   5340:   return 0;
                   5341: }
1.1       bertrand 5342: _ACEOF
1.15      bertrand 5343: if ac_fn_c_try_link "$LINENO"; then :
                   5344:   LIBS=$ac_save_LIBS
                   5345: # We can link X programs with no special library path.
                   5346: ac_x_libraries=
1.1       bertrand 5347: else
1.15      bertrand 5348:   LIBS=$ac_save_LIBS
                   5349: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5350: do
                   5351:   # Don't even attempt the hair of trying to link an X program!
                   5352:   for ac_extension in a so sl dylib la dll; do
                   5353:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5354:       ac_x_libraries=$ac_dir
                   5355:       break 2
                   5356:     fi
                   5357:   done
                   5358: done
                   5359: fi
                   5360: rm -f core conftest.err conftest.$ac_objext \
                   5361:     conftest$ac_exeext conftest.$ac_ext
                   5362: fi # $ac_x_libraries = no
1.1       bertrand 5363: 
1.15      bertrand 5364: case $ac_x_includes,$ac_x_libraries in #(
                   5365:   no,* | *,no | *\'*)
                   5366:     # Didn't find X, or a directory has "'" in its name.
                   5367:     ac_cv_have_x="have_x=no";; #(
                   5368:   *)
                   5369:     # Record where we found X for the cache.
                   5370:     ac_cv_have_x="have_x=yes\
                   5371:    ac_x_includes='$ac_x_includes'\
                   5372:    ac_x_libraries='$ac_x_libraries'"
                   5373: esac
1.1       bertrand 5374: fi
1.15      bertrand 5375: ;; #(
                   5376:     *) have_x=yes;;
                   5377:   esac
                   5378:   eval "$ac_cv_have_x"
                   5379: fi # $with_x != no
1.1       bertrand 5380: 
1.15      bertrand 5381: if test "$have_x" != yes; then
                   5382:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5383: $as_echo "$have_x" >&6; }
                   5384:   no_x=yes
1.14      bertrand 5385: else
1.15      bertrand 5386:   # If each of the values was on the command line, it overrides each guess.
                   5387:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5388:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5389:   # Update the cache value to reflect the command line values.
                   5390:   ac_cv_have_x="have_x=yes\
                   5391:    ac_x_includes='$x_includes'\
                   5392:    ac_x_libraries='$x_libraries'"
                   5393:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5394: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5395: fi
1.1       bertrand 5396: 
1.15      bertrand 5397: if test "$no_x" = yes; then
                   5398:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5399: 
1.15      bertrand 5400: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5401: 
1.15      bertrand 5402:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5403: else
1.15      bertrand 5404:   if test -n "$x_includes"; then
                   5405:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5406:   fi
                   5407: 
                   5408:   # It would also be nice to do this for all -L options, not just this one.
                   5409:   if test -n "$x_libraries"; then
                   5410:     X_LIBS="$X_LIBS -L$x_libraries"
                   5411:     # For Solaris; some versions of Sun CC require a space after -R and
                   5412:     # others require no space.  Words are not sufficient . . . .
                   5413:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5414: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5415:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5416:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5417:     ac_c_werror_flag=yes
                   5418:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5419: /* end confdefs.h.  */
1.1       bertrand 5420: 
1.15      bertrand 5421: int
                   5422: main ()
                   5423: {
1.1       bertrand 5424: 
1.15      bertrand 5425:   ;
                   5426:   return 0;
                   5427: }
                   5428: _ACEOF
                   5429: if ac_fn_c_try_link "$LINENO"; then :
                   5430:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5431: $as_echo "no" >&6; }
                   5432:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5433: else
1.15      bertrand 5434:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5435:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5436: /* end confdefs.h.  */
1.1       bertrand 5437: 
1.14      bertrand 5438: int
                   5439: main ()
                   5440: {
1.15      bertrand 5441: 
                   5442:   ;
1.14      bertrand 5443:   return 0;
                   5444: }
                   5445: _ACEOF
1.15      bertrand 5446: if ac_fn_c_try_link "$LINENO"; then :
                   5447:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5448: $as_echo "yes" >&6; }
                   5449:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5450: else
1.15      bertrand 5451:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5452: $as_echo "neither works" >&6; }
1.14      bertrand 5453: fi
1.15      bertrand 5454: rm -f core conftest.err conftest.$ac_objext \
                   5455:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5456: fi
1.15      bertrand 5457: rm -f core conftest.err conftest.$ac_objext \
                   5458:     conftest$ac_exeext conftest.$ac_ext
                   5459:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5460:     LIBS=$ac_xsave_LIBS
                   5461:   fi
1.1       bertrand 5462: 
1.15      bertrand 5463:   # Check for system-dependent libraries X programs must link with.
                   5464:   # Do this before checking for the system-independent R6 libraries
                   5465:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5466: 
1.15      bertrand 5467:   if test "$ISC" = yes; then
                   5468:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5469:   else
                   5470:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5471:     # libraries were built with DECnet support.  And Karl Berry says
                   5472:     # the Alpha needs dnet_stub (dnet does not exist).
                   5473:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5474:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5475: /* end confdefs.h.  */
1.1       bertrand 5476: 
1.15      bertrand 5477: /* Override any GCC internal prototype to avoid an error.
                   5478:    Use char because int might match the return type of a GCC
                   5479:    builtin and then its argument prototype would still apply.  */
                   5480: #ifdef __cplusplus
                   5481: extern "C"
                   5482: #endif
                   5483: char XOpenDisplay ();
                   5484: int
                   5485: main ()
                   5486: {
                   5487: return XOpenDisplay ();
                   5488:   ;
                   5489:   return 0;
                   5490: }
1.1       bertrand 5491: _ACEOF
1.15      bertrand 5492: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5493: 
                   5494: else
1.15      bertrand 5495:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5496: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.57      bertrand 5497: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15      bertrand 5498:   $as_echo_n "(cached) " >&6
                   5499: else
                   5500:   ac_check_lib_save_LIBS=$LIBS
                   5501: LIBS="-ldnet  $LIBS"
                   5502: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5503: /* end confdefs.h.  */
1.14      bertrand 5504: 
1.15      bertrand 5505: /* Override any GCC internal prototype to avoid an error.
                   5506:    Use char because int might match the return type of a GCC
                   5507:    builtin and then its argument prototype would still apply.  */
                   5508: #ifdef __cplusplus
                   5509: extern "C"
                   5510: #endif
                   5511: char dnet_ntoa ();
                   5512: int
                   5513: main ()
                   5514: {
                   5515: return dnet_ntoa ();
                   5516:   ;
                   5517:   return 0;
                   5518: }
1.1       bertrand 5519: _ACEOF
1.15      bertrand 5520: if ac_fn_c_try_link "$LINENO"; then :
                   5521:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5522: else
1.15      bertrand 5523:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5524: fi
1.15      bertrand 5525: rm -f core conftest.err conftest.$ac_objext \
                   5526:     conftest$ac_exeext conftest.$ac_ext
                   5527: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5528: fi
1.15      bertrand 5529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5530: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.57      bertrand 5531: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15      bertrand 5532:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5533: fi
                   5534: 
1.15      bertrand 5535:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5536:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5537: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.57      bertrand 5538: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15      bertrand 5539:   $as_echo_n "(cached) " >&6
1.14      bertrand 5540: else
1.15      bertrand 5541:   ac_check_lib_save_LIBS=$LIBS
                   5542: LIBS="-ldnet_stub  $LIBS"
                   5543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5544: /* end confdefs.h.  */
1.15      bertrand 5545: 
                   5546: /* Override any GCC internal prototype to avoid an error.
                   5547:    Use char because int might match the return type of a GCC
                   5548:    builtin and then its argument prototype would still apply.  */
                   5549: #ifdef __cplusplus
                   5550: extern "C"
                   5551: #endif
                   5552: char dnet_ntoa ();
1.1       bertrand 5553: int
                   5554: main ()
                   5555: {
1.15      bertrand 5556: return dnet_ntoa ();
1.1       bertrand 5557:   ;
                   5558:   return 0;
                   5559: }
                   5560: _ACEOF
1.15      bertrand 5561: if ac_fn_c_try_link "$LINENO"; then :
                   5562:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5563: else
1.15      bertrand 5564:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5565: fi
                   5566: rm -f core conftest.err conftest.$ac_objext \
                   5567:     conftest$ac_exeext conftest.$ac_ext
                   5568: LIBS=$ac_check_lib_save_LIBS
                   5569: fi
                   5570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5571: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.57      bertrand 5572: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15      bertrand 5573:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5574: fi
1.14      bertrand 5575: 
1.15      bertrand 5576:     fi
1.1       bertrand 5577: fi
1.15      bertrand 5578: rm -f core conftest.err conftest.$ac_objext \
                   5579:     conftest$ac_exeext conftest.$ac_ext
                   5580:     LIBS="$ac_xsave_LIBS"
                   5581: 
                   5582:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5583:     # to get the SysV transport functions.
                   5584:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5585:     # needs -lnsl.
                   5586:     # The nsl library prevents programs from opening the X display
                   5587:     # on Irix 5.2, according to T.E. Dickey.
                   5588:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5589:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5590:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.57      bertrand 5591: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1       bertrand 5592: 
                   5593: fi
                   5594: 
1.15      bertrand 5595:     if test $ac_cv_func_gethostbyname = no; then
                   5596:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5597: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.57      bertrand 5598: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15      bertrand 5599:   $as_echo_n "(cached) " >&6
1.1       bertrand 5600: else
1.15      bertrand 5601:   ac_check_lib_save_LIBS=$LIBS
                   5602: LIBS="-lnsl  $LIBS"
                   5603: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5604: /* end confdefs.h.  */
1.15      bertrand 5605: 
                   5606: /* Override any GCC internal prototype to avoid an error.
                   5607:    Use char because int might match the return type of a GCC
                   5608:    builtin and then its argument prototype would still apply.  */
                   5609: #ifdef __cplusplus
                   5610: extern "C"
                   5611: #endif
                   5612: char gethostbyname ();
1.1       bertrand 5613: int
                   5614: main ()
                   5615: {
1.15      bertrand 5616: return gethostbyname ();
1.1       bertrand 5617:   ;
                   5618:   return 0;
                   5619: }
                   5620: _ACEOF
1.15      bertrand 5621: if ac_fn_c_try_link "$LINENO"; then :
                   5622:   ac_cv_lib_nsl_gethostbyname=yes
                   5623: else
                   5624:   ac_cv_lib_nsl_gethostbyname=no
                   5625: fi
                   5626: rm -f core conftest.err conftest.$ac_objext \
                   5627:     conftest$ac_exeext conftest.$ac_ext
                   5628: LIBS=$ac_check_lib_save_LIBS
                   5629: fi
                   5630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5631: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.57      bertrand 5632: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15      bertrand 5633:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5634: fi
                   5635: 
                   5636:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5637:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5638: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.57      bertrand 5639: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15      bertrand 5640:   $as_echo_n "(cached) " >&6
                   5641: else
                   5642:   ac_check_lib_save_LIBS=$LIBS
                   5643: LIBS="-lbsd  $LIBS"
                   5644: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5645: /* end confdefs.h.  */
1.15      bertrand 5646: 
                   5647: /* Override any GCC internal prototype to avoid an error.
                   5648:    Use char because int might match the return type of a GCC
                   5649:    builtin and then its argument prototype would still apply.  */
                   5650: #ifdef __cplusplus
                   5651: extern "C"
                   5652: #endif
                   5653: char gethostbyname ();
1.1       bertrand 5654: int
                   5655: main ()
                   5656: {
1.15      bertrand 5657: return gethostbyname ();
1.1       bertrand 5658:   ;
                   5659:   return 0;
                   5660: }
                   5661: _ACEOF
1.15      bertrand 5662: if ac_fn_c_try_link "$LINENO"; then :
                   5663:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5664: else
1.15      bertrand 5665:   ac_cv_lib_bsd_gethostbyname=no
                   5666: fi
                   5667: rm -f core conftest.err conftest.$ac_objext \
                   5668:     conftest$ac_exeext conftest.$ac_ext
                   5669: LIBS=$ac_check_lib_save_LIBS
                   5670: fi
                   5671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5672: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.57      bertrand 5673: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15      bertrand 5674:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5675: fi
                   5676: 
                   5677:       fi
                   5678:     fi
                   5679: 
                   5680:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5681:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5682:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5683:     # on later versions), says Simon Leinen: it contains gethostby*
                   5684:     # variants that don't use the name server (or something).  -lsocket
                   5685:     # must be given before -lnsl if both are needed.  We assume that
                   5686:     # if connect needs -lnsl, so does gethostbyname.
                   5687:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.57      bertrand 5688: if test "x$ac_cv_func_connect" = xyes; then :
1.14      bertrand 5689: 
1.1       bertrand 5690: fi
                   5691: 
1.15      bertrand 5692:     if test $ac_cv_func_connect = no; then
                   5693:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5694: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.57      bertrand 5695: if ${ac_cv_lib_socket_connect+:} false; then :
1.15      bertrand 5696:   $as_echo_n "(cached) " >&6
1.14      bertrand 5697: else
1.15      bertrand 5698:   ac_check_lib_save_LIBS=$LIBS
                   5699: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5700: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5701: /* end confdefs.h.  */
1.1       bertrand 5702: 
1.15      bertrand 5703: /* Override any GCC internal prototype to avoid an error.
                   5704:    Use char because int might match the return type of a GCC
                   5705:    builtin and then its argument prototype would still apply.  */
                   5706: #ifdef __cplusplus
                   5707: extern "C"
                   5708: #endif
                   5709: char connect ();
1.14      bertrand 5710: int
                   5711: main ()
                   5712: {
1.15      bertrand 5713: return connect ();
1.14      bertrand 5714:   ;
                   5715:   return 0;
                   5716: }
                   5717: _ACEOF
1.15      bertrand 5718: if ac_fn_c_try_link "$LINENO"; then :
                   5719:   ac_cv_lib_socket_connect=yes
                   5720: else
                   5721:   ac_cv_lib_socket_connect=no
                   5722: fi
                   5723: rm -f core conftest.err conftest.$ac_objext \
                   5724:     conftest$ac_exeext conftest.$ac_ext
                   5725: LIBS=$ac_check_lib_save_LIBS
                   5726: fi
                   5727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5728: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.57      bertrand 5729: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15      bertrand 5730:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5731: fi
                   5732: 
                   5733:     fi
                   5734: 
                   5735:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5736:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.57      bertrand 5737: if test "x$ac_cv_func_remove" = xyes; then :
1.15      bertrand 5738: 
                   5739: fi
                   5740: 
                   5741:     if test $ac_cv_func_remove = no; then
                   5742:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5743: $as_echo_n "checking for remove in -lposix... " >&6; }
1.57      bertrand 5744: if ${ac_cv_lib_posix_remove+:} false; then :
1.15      bertrand 5745:   $as_echo_n "(cached) " >&6
                   5746: else
                   5747:   ac_check_lib_save_LIBS=$LIBS
                   5748: LIBS="-lposix  $LIBS"
                   5749: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5750: /* end confdefs.h.  */
1.15      bertrand 5751: 
                   5752: /* Override any GCC internal prototype to avoid an error.
                   5753:    Use char because int might match the return type of a GCC
                   5754:    builtin and then its argument prototype would still apply.  */
                   5755: #ifdef __cplusplus
                   5756: extern "C"
                   5757: #endif
                   5758: char remove ();
1.1       bertrand 5759: int
                   5760: main ()
                   5761: {
1.15      bertrand 5762: return remove ();
1.1       bertrand 5763:   ;
                   5764:   return 0;
                   5765: }
                   5766: _ACEOF
1.15      bertrand 5767: if ac_fn_c_try_link "$LINENO"; then :
                   5768:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5769: else
1.15      bertrand 5770:   ac_cv_lib_posix_remove=no
                   5771: fi
                   5772: rm -f core conftest.err conftest.$ac_objext \
                   5773:     conftest$ac_exeext conftest.$ac_ext
                   5774: LIBS=$ac_check_lib_save_LIBS
                   5775: fi
                   5776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5777: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.57      bertrand 5778: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15      bertrand 5779:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5780: fi
1.1       bertrand 5781: 
1.15      bertrand 5782:     fi
1.14      bertrand 5783: 
1.15      bertrand 5784:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5785:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.57      bertrand 5786: if test "x$ac_cv_func_shmat" = xyes; then :
1.14      bertrand 5787: 
                   5788: fi
                   5789: 
1.15      bertrand 5790:     if test $ac_cv_func_shmat = no; then
                   5791:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5792: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.57      bertrand 5793: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15      bertrand 5794:   $as_echo_n "(cached) " >&6
                   5795: else
                   5796:   ac_check_lib_save_LIBS=$LIBS
                   5797: LIBS="-lipc  $LIBS"
                   5798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5799: /* end confdefs.h.  */
1.15      bertrand 5800: 
                   5801: /* Override any GCC internal prototype to avoid an error.
                   5802:    Use char because int might match the return type of a GCC
                   5803:    builtin and then its argument prototype would still apply.  */
                   5804: #ifdef __cplusplus
                   5805: extern "C"
                   5806: #endif
                   5807: char shmat ();
1.1       bertrand 5808: int
                   5809: main ()
                   5810: {
1.15      bertrand 5811: return shmat ();
1.1       bertrand 5812:   ;
                   5813:   return 0;
                   5814: }
                   5815: _ACEOF
1.15      bertrand 5816: if ac_fn_c_try_link "$LINENO"; then :
                   5817:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5818: else
1.15      bertrand 5819:   ac_cv_lib_ipc_shmat=no
                   5820: fi
                   5821: rm -f core conftest.err conftest.$ac_objext \
                   5822:     conftest$ac_exeext conftest.$ac_ext
                   5823: LIBS=$ac_check_lib_save_LIBS
                   5824: fi
                   5825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5826: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.57      bertrand 5827: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15      bertrand 5828:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5829: fi
1.14      bertrand 5830: 
1.15      bertrand 5831:     fi
                   5832:   fi
1.1       bertrand 5833: 
1.15      bertrand 5834:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5835:   ac_save_LDFLAGS=$LDFLAGS
                   5836:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5837:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5838:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5839:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5840:   # These have to be linked with before -lX11, unlike the other
                   5841:   # libraries we check for below, so use a different variable.
                   5842:   # John Interrante, Karl Berry
                   5843:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5844: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.57      bertrand 5845: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15      bertrand 5846:   $as_echo_n "(cached) " >&6
1.1       bertrand 5847: else
1.15      bertrand 5848:   ac_check_lib_save_LIBS=$LIBS
                   5849: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5850: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5851: /* end confdefs.h.  */
1.15      bertrand 5852: 
                   5853: /* Override any GCC internal prototype to avoid an error.
                   5854:    Use char because int might match the return type of a GCC
                   5855:    builtin and then its argument prototype would still apply.  */
                   5856: #ifdef __cplusplus
                   5857: extern "C"
                   5858: #endif
                   5859: char IceConnectionNumber ();
1.1       bertrand 5860: int
                   5861: main ()
                   5862: {
1.15      bertrand 5863: return IceConnectionNumber ();
1.1       bertrand 5864:   ;
                   5865:   return 0;
                   5866: }
                   5867: _ACEOF
1.15      bertrand 5868: if ac_fn_c_try_link "$LINENO"; then :
                   5869:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5870: else
1.15      bertrand 5871:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5872: fi
                   5873: rm -f core conftest.err conftest.$ac_objext \
                   5874:     conftest$ac_exeext conftest.$ac_ext
                   5875: LIBS=$ac_check_lib_save_LIBS
                   5876: fi
                   5877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5878: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.57      bertrand 5879: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15      bertrand 5880:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5881: fi
                   5882: 
                   5883:   LDFLAGS=$ac_save_LDFLAGS
                   5884: 
                   5885: fi
                   5886: 
1.14      bertrand 5887: 
1.15      bertrand 5888: if test "$ac_x_includes" != "no"; then
                   5889:    if test x"$ac_x_includes" != x; then
                   5890:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5891:        includeX="-I$ac_x_includes"
                   5892:    fi
1.1       bertrand 5893: fi
1.15      bertrand 5894: if test "$ac_x_libraries" != "no"; then
                   5895:    if test x"$ac_x_libraries" != x; then
                   5896:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5897:    fi
1.1       bertrand 5898: fi
1.15      bertrand 5899: 
1.64      bertrand 5900: 
1.69      bertrand 5901: # Check whether --with-32bits-abi was given.
                   5902: if test "${with_32bits_abi+set}" = set; then :
                   5903:   withval=$with_32bits_abi;
1.64      bertrand 5904: if test "$with-32bits-abi" = "no"; then
1.66      bertrand 5905:    ABI=
1.64      bertrand 5906: else
1.65      bertrand 5907:    ABI=-m32
                   5908: fi
1.64      bertrand 5909: else
                   5910: 
1.68      bertrand 5911:    ABI=
1.64      bertrand 5912: 
                   5913: 
                   5914: fi
                   5915: 
                   5916: 
1.68      bertrand 5917: if test x$ABI = x; then
1.66      bertrand 5918: 
1.69      bertrand 5919: # Check whether --with-64bits-abi was given.
                   5920: if test "${with_64bits_abi+set}" = set; then :
                   5921:   withval=$with_64bits_abi;
1.67      bertrand 5922: if test "$with-64bits-abi" = "no"; then
                   5923:    ABI=
                   5924: else
                   5925:    ABI=-m64
                   5926: fi
                   5927: else
                   5928: 
1.68      bertrand 5929:    ABI=
1.67      bertrand 5930: 
                   5931: 
                   5932: fi
                   5933: 
1.68      bertrand 5934: fi
1.67      bertrand 5935: 
1.69      bertrand 5936: LDFLAGS="$LDFLAGS $ABI"
                   5937: 
1.67      bertrand 5938: 
                   5939: # Check whether --with-rplcas was given.
                   5940: if test "${with_rplcas+set}" = set; then :
                   5941:   withval=$with_rplcas;
                   5942: if test "$with-rplcas" = "no"; then
                   5943:    RPLCAS=-URPLCAS
                   5944:    LIBRPLCAS=
                   5945: else
                   5946:    RPLCAS=-DRPLCAS
                   5947:    LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
                   5948: fi
                   5949: else
                   5950: 
                   5951:    RPLCAS=-URPLCAS
                   5952:    LIBRPLCAS=
                   5953: 
                   5954: 
                   5955: fi
                   5956: 
                   5957: 
                   5958: 
                   5959: 
                   5960: 
1.65      bertrand 5961: 
1.15      bertrand 5962: # Check whether --enable-optimization was given.
                   5963: if test "${enable_optimization+set}" = set; then :
                   5964:   enableval=$enable_optimization;
                   5965: if test "$enableval" = "no"; then
1.69      bertrand 5966:    CFLAGS=$ABI
                   5967:    FFLAGS=$ABI
                   5968:    CXXFLAGS=$ABI
                   5969:    FCFLAGS=$ABI
                   5970: else
                   5971:    CFLAGS="$CFLAGS $ABI $enable_optimization"
                   5972:    FFLAGS="$FFLAGS $ABI $enable_optimization"
                   5973:    CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
                   5974:    FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1       bertrand 5975: fi
1.15      bertrand 5976: else
1.14      bertrand 5977: 
1.69      bertrand 5978:    CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
                   5979:    FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
                   5980:    CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
                   5981:    FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1       bertrand 5982: 
                   5983: 
1.15      bertrand 5984: fi
1.1       bertrand 5985: 
                   5986: 
1.36      bertrand 5987: # Check whether --enable-sysv-semaphores was given.
                   5988: if test "${enable_sysv_semaphores+set}" = set; then :
                   5989:   enableval=$enable_sysv_semaphores;
                   5990: if test "$enableval" = "no"; then
                   5991:    IPCS_SYSV=no
                   5992: else
                   5993:    IPCS_SYSV=yes
                   5994: fi
                   5995: else
                   5996:   IPCS_SYSV=no
                   5997: fi
                   5998: 
                   5999: 
1.30      bertrand 6000: # Check whether --enable-full-static was given.
                   6001: if test "${enable_full_static+set}" = set; then :
                   6002:   enableval=$enable_full_static;
                   6003: if test "$enableval" = "no"; then
                   6004:    STATIC=no
                   6005: else
                   6006:    STATIC=yes
                   6007: fi
                   6008: else
                   6009:   STATIC=no
                   6010: fi
                   6011: 
                   6012: 
1.15      bertrand 6013: # Check whether --enable-final-encoding was given.
                   6014: if test "${enable_final_encoding+set}" = set; then :
                   6015:   enableval=$enable_final_encoding;
                   6016: if test "$enableval" = "no"; then
                   6017:    FINAL_ENCODING="\$(shell locale charmap | \
                   6018:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 6019:    FORCED_FINAL_ENCODING=0
1.1       bertrand 6020: else
1.15      bertrand 6021:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 6022:    FORCED_FINAL_ENCODING=1
1.15      bertrand 6023: fi
1.1       bertrand 6024: else
1.35      bertrand 6025: 
                   6026: FORCED_FINAL_ENCODING=0
                   6027: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 6028:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   6029: fi
                   6030: 
1.14      bertrand 6031: 
1.15      bertrand 6032: # Check whether --enable-tex was given.
                   6033: if test "${enable_tex+set}" = set; then :
                   6034:   enableval=$enable_tex;
                   6035: if test "$enableval" = "no"; then
                   6036:    TEX_SUPPORT=no
                   6037: else
                   6038:    TEX_SUPPORT=yes
1.1       bertrand 6039: fi
1.15      bertrand 6040: else
                   6041:   TEX_SUPPORT=guessed
                   6042: fi
                   6043: 
1.14      bertrand 6044: 
1.15      bertrand 6045: # Check whether --enable-vim was given.
                   6046: if test "${enable_vim+set}" = set; then :
                   6047:   enableval=$enable_vim;
                   6048: if test "$enableval" = "no"; then
                   6049:    VIM_SUPPORT=no
                   6050: else
                   6051:    VIM_SUPPORT=yes
                   6052: fi
                   6053: else
                   6054:   VIM_SUPPORT=guessed
1.1       bertrand 6055: fi
                   6056: 
1.15      bertrand 6057: 
                   6058: # Check whether --enable-embedded-gnuplot was given.
                   6059: if test "${enable_embedded_gnuplot+set}" = set; then :
                   6060:   enableval=$enable_embedded_gnuplot;
                   6061: if test "$enableval" = "no"; then
                   6062:    MYGNUPLOT=no
                   6063: else
                   6064:    MYGNUPLOT=yes
                   6065: fi
1.1       bertrand 6066: else
                   6067: 
1.15      bertrand 6068: MYGNUPLOT=yes
                   6069: fi
                   6070: 
1.14      bertrand 6071: 
1.15      bertrand 6072: # Check whether --enable-gnuplot was given.
                   6073: if test "${enable_gnuplot+set}" = set; then :
                   6074:   enableval=$enable_gnuplot;
                   6075: if test "$enableval" = "no"; then
                   6076:    GNUPLOT_SUPPORT=no
                   6077:    MYGNUPLOT=no
                   6078:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6079: else
                   6080:    GNUPLOT_SUPPORT=yes
                   6081:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6082: fi
1.1       bertrand 6083: else
                   6084: 
1.15      bertrand 6085: if test "$MYGNUPLOT" = "yes"; then
                   6086:    GNUPLOT_SUPPORT=yes
                   6087:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6088: else
                   6089:    GNUPLOT_SUPPORT=guessed
                   6090:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6091: fi
1.1       bertrand 6092: fi
                   6093: 
1.15      bertrand 6094: 
                   6095: # Check whether --enable-motif was given.
                   6096: if test "${enable_motif+set}" = set; then :
                   6097:   enableval=$enable_motif;
                   6098: if test "$enableval" = "no"; then
                   6099:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6100: else
                   6101:    CFLAGS_ORIG=$CFLAGS
                   6102:    LIBS_ORIG=$LIBS
                   6103:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6104:    LIBS="$LIB $X_LIBS"
                   6105:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6106: $as_echo_n "checking for main in -lXm... " >&6; }
1.57      bertrand 6107: if ${ac_cv_lib_Xm_main+:} false; then :
1.15      bertrand 6108:   $as_echo_n "(cached) " >&6
1.1       bertrand 6109: else
1.15      bertrand 6110:   ac_check_lib_save_LIBS=$LIBS
                   6111: LIBS="-lXm  $LIBS"
                   6112: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6113: /* end confdefs.h.  */
1.14      bertrand 6114: 
                   6115: 
1.1       bertrand 6116: int
                   6117: main ()
                   6118: {
1.15      bertrand 6119: return main ();
1.1       bertrand 6120:   ;
                   6121:   return 0;
                   6122: }
                   6123: _ACEOF
1.15      bertrand 6124: if ac_fn_c_try_link "$LINENO"; then :
                   6125:   ac_cv_lib_Xm_main=yes
                   6126: else
                   6127:   ac_cv_lib_Xm_main=no
                   6128: fi
                   6129: rm -f core conftest.err conftest.$ac_objext \
                   6130:     conftest$ac_exeext conftest.$ac_ext
                   6131: LIBS=$ac_check_lib_save_LIBS
                   6132: fi
                   6133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6134: $as_echo "$ac_cv_lib_Xm_main" >&6; }
1.57      bertrand 6135: if test "x$ac_cv_lib_Xm_main" = xyes; then :
1.15      bertrand 6136:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6137: else
1.15      bertrand 6138:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6139: fi
1.14      bertrand 6140: 
1.15      bertrand 6141:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6142:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
                   6143: Motif flag is disabled.
                   6144: " >&5
                   6145: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
                   6146: Motif flag is disabled.
                   6147: " >&2;}
                   6148:    fi
                   6149:    LIBS=$LIBS_ORIG
                   6150:    CFLAGS=$CFLAGS_ORIG
                   6151: fi
                   6152: else
                   6153:   MOTIF_SUPPORT=guessed
1.1       bertrand 6154: fi
                   6155: 
1.15      bertrand 6156: 
                   6157: # Check whether --enable-experimental was given.
                   6158: if test "${enable_experimental+set}" = set; then :
                   6159:   enableval=$enable_experimental;
                   6160: if test "$enableval" = "no"; then
                   6161:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6162: else
                   6163:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6164: fi
1.14      bertrand 6165: else
1.15      bertrand 6166:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6167: fi
                   6168: 
1.1       bertrand 6169: 
1.15      bertrand 6170: # Check whether --enable-debug was given.
                   6171: if test "${enable_debug+set}" = set; then :
                   6172:   enableval=$enable_debug;
                   6173: if test "$enableval" = "no"; then
1.24      bertrand 6174:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6175: else
1.24      bertrand 6176:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6177: fi
                   6178: else
1.24      bertrand 6179:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6180: fi
1.1       bertrand 6181: 
1.15      bertrand 6182: 
                   6183: # Check whether --enable-profile was given.
                   6184: if test "${enable_profile+set}" = set; then :
                   6185:   enableval=$enable_profile;
                   6186: if test "$enableval" = "no"; then
                   6187:    PROFILAGE=""
                   6188: else
                   6189:    PROFILAGE="-pg"
                   6190: fi
                   6191: else
                   6192:   PROFILAGE=""
1.1       bertrand 6193: fi
                   6194: 
1.14      bertrand 6195: 
                   6196: 
1.15      bertrand 6197: 
                   6198: if test ! -d tools; then
                   6199:    mkdir tools
                   6200: fi
                   6201: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6202:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6203:            (cd "$srcdir/tools" && tar -xf -)
1.51      bertrand 6204:    (cd "$srcdir/tools/"$NCURSES && \
                   6205:            for i in ../$NCURSES*.patch.gz;
                   6206:            do gunzip -c $i | patch -p1;
                   6207:            done);
1.15      bertrand 6208: fi
                   6209: if test ! -d "$srcdir"/tools/$READLINE; then
                   6210:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6211:            (cd "$srcdir/tools" && tar -xf -)
                   6212: fi
                   6213: if test ! -d "$srcdir"/tools/$UNITS; then
                   6214:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6215:            (cd "$srcdir/tools" && tar -xf -)
                   6216: fi
                   6217: if test ! -d "$srcdir"/tools/$GSL; then
                   6218:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6219:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6220:    if test $(uname) = "OS/2"; then
                   6221:        (cd "$srcdir"/tools/$GSL; \
                   6222:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6223:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6224:                \mv -f $TMP ltmain.sh)
                   6225:    fi
1.15      bertrand 6226: fi
                   6227: if test ! -d "$srcdir"/tools/$GPP; then
                   6228:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6229:            (cd "$srcdir/tools" && tar -xf -)
                   6230: fi
                   6231: if test ! -d "$srcdir"/tools/$FILE; then
                   6232:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6233:            (cd "$srcdir/tools" && tar -xf - )
                   6234:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6235: fi
                   6236: if test ! -d "$srcdir"/tools/$ICONV; then
                   6237:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6238:            (cd "$srcdir/tools" && tar -xf -)
                   6239: fi
                   6240: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6241:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6242:            (cd "$srcdir/tools" && tar -xf -)
                   6243: fi
                   6244: if test ! -d tools/$OPENSSL; then
                   6245:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6246:            (cd tools && tar -xf -)
1.1       bertrand 6247: fi
1.55      bertrand 6248: if test ! -d rplcas; then
                   6249:    mkdir rplcas
                   6250: fi
                   6251: if test ! -d "$srcdir"/rplcas/$GMP; then
                   6252:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                   6253:            (cd "$srcdir/rplcas" && tar -xf -)
                   6254: fi
                   6255: if test ! -d "$srcdir"/rplcas/$MPFR; then
                   6256:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                   6257:            (cd "$srcdir/rplcas" && tar -xf -)
                   6258: fi
1.56      bertrand 6259: if test ! -d rplcas/$NTL; then
                   6260:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
                   6261:            (cd rplcas && tar -xf -)
                   6262: fi
                   6263: if test ! -d rplcas/$COCOA; then
                   6264:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
                   6265:            (cd rplcas && tar -xf -)
                   6266: fi
                   6267: if test ! -d rplcas/$PARI; then
                   6268:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
                   6269:            (cd rplcas && tar -xf -)
                   6270: fi
                   6271: if test ! -d "$srcdir"/rplcas/$GIAC; then
                   6272:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
                   6273:            (cd "$srcdir/rplcas" && tar -xf -)
                   6274: fi
1.1       bertrand 6275: 
                   6276: 
                   6277: 
1.15      bertrand 6278: # Check whether --enable-final-run-path was given.
                   6279: if test "${enable_final_run_path+set}" = set; then :
                   6280:   enableval=$enable_final_run_path;
                   6281:    if test "x$enable_final_run_path" = "x"; then
                   6282:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6283: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6284:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6285:    else
                   6286:        RUNPATH="$enable_final_run_path"
                   6287:    fi
1.1       bertrand 6288: 
                   6289: else
1.15      bertrand 6290:   RUNPATH="\${prefix}"
1.1       bertrand 6291: 
                   6292: fi
                   6293: 
1.15      bertrand 6294: 
                   6295: 
                   6296: 
                   6297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6298: $as_echo_n "checking whether ln -s works... " >&6; }
                   6299: LN_S=$as_ln_s
                   6300: if test "$LN_S" = "ln -s"; then
                   6301:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6302: $as_echo "yes" >&6; }
                   6303: else
                   6304:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6305: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6306: fi
                   6307: 
1.15      bertrand 6308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6309: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6310: set x ${MAKE-make}
                   6311: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 6312: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 6313:   $as_echo_n "(cached) " >&6
1.1       bertrand 6314: else
1.15      bertrand 6315:   cat >conftest.make <<\_ACEOF
                   6316: SHELL = /bin/sh
                   6317: all:
                   6318:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6319: _ACEOF
1.36      bertrand 6320: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6321: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6322:   *@@@%%%=?*=@@@%%%*)
                   6323:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6324:   *)
                   6325:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6326: esac
1.15      bertrand 6327: rm -f conftest.make
                   6328: fi
                   6329: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6330:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6331: $as_echo "yes" >&6; }
                   6332:   SET_MAKE=
                   6333: else
                   6334:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6335: $as_echo "no" >&6; }
                   6336:   SET_MAKE="MAKE=${MAKE-make}"
                   6337: fi
1.1       bertrand 6338: 
1.15      bertrand 6339: if test -n "$ac_tool_prefix"; then
                   6340:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6341: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6343: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6344: if ${ac_cv_prog_RANLIB+:} false; then :
1.15      bertrand 6345:   $as_echo_n "(cached) " >&6
                   6346: else
                   6347:   if test -n "$RANLIB"; then
                   6348:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6349: else
1.15      bertrand 6350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6351: for as_dir in $PATH
                   6352: do
                   6353:   IFS=$as_save_IFS
                   6354:   test -z "$as_dir" && as_dir=.
                   6355:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6356:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6357:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6358:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6359:     break 2
                   6360:   fi
                   6361: done
                   6362:   done
                   6363: IFS=$as_save_IFS
1.1       bertrand 6364: 
                   6365: fi
1.15      bertrand 6366: fi
                   6367: RANLIB=$ac_cv_prog_RANLIB
                   6368: if test -n "$RANLIB"; then
                   6369:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6370: $as_echo "$RANLIB" >&6; }
                   6371: else
                   6372:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6373: $as_echo "no" >&6; }
                   6374: fi
                   6375: 
1.1       bertrand 6376: 
1.15      bertrand 6377: fi
                   6378: if test -z "$ac_cv_prog_RANLIB"; then
                   6379:   ac_ct_RANLIB=$RANLIB
                   6380:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6381: set dummy ranlib; ac_word=$2
                   6382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6383: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6384: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15      bertrand 6385:   $as_echo_n "(cached) " >&6
                   6386: else
                   6387:   if test -n "$ac_ct_RANLIB"; then
                   6388:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6389: else
                   6390: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6391: for as_dir in $PATH
                   6392: do
                   6393:   IFS=$as_save_IFS
                   6394:   test -z "$as_dir" && as_dir=.
                   6395:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6396:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6397:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6398:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6399:     break 2
                   6400:   fi
                   6401: done
1.14      bertrand 6402:   done
1.15      bertrand 6403: IFS=$as_save_IFS
                   6404: 
                   6405: fi
                   6406: fi
                   6407: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6408: if test -n "$ac_ct_RANLIB"; then
                   6409:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6410: $as_echo "$ac_ct_RANLIB" >&6; }
                   6411: else
                   6412:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6413: $as_echo "no" >&6; }
                   6414: fi
                   6415: 
                   6416:   if test "x$ac_ct_RANLIB" = x; then
                   6417:     RANLIB=":"
                   6418:   else
                   6419:     case $cross_compiling:$ac_tool_warned in
                   6420: yes:)
                   6421: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6422: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6423: ac_tool_warned=yes ;;
                   6424: esac
                   6425:     RANLIB=$ac_ct_RANLIB
                   6426:   fi
1.14      bertrand 6427: else
1.15      bertrand 6428:   RANLIB="$ac_cv_prog_RANLIB"
                   6429: fi
1.1       bertrand 6430: 
                   6431: 
1.15      bertrand 6432: # Extract the first word of "nawk", so it can be a program name with args.
                   6433: set dummy nawk; ac_word=$2
                   6434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6435: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6436: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 6437:   $as_echo_n "(cached) " >&6
                   6438: else
                   6439:   if test -n "$AWK"; then
                   6440:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6441: else
                   6442: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6443: for as_dir in $PATH
                   6444: do
                   6445:   IFS=$as_save_IFS
                   6446:   test -z "$as_dir" && as_dir=.
                   6447:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6448:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6449:     ac_cv_prog_AWK="yes"
                   6450:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6451:     break 2
                   6452:   fi
                   6453: done
                   6454:   done
                   6455: IFS=$as_save_IFS
1.1       bertrand 6456: 
1.15      bertrand 6457:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6458: fi
                   6459: fi
                   6460: AWK=$ac_cv_prog_AWK
                   6461: if test -n "$AWK"; then
                   6462:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6463: $as_echo "$AWK" >&6; }
1.1       bertrand 6464: else
1.15      bertrand 6465:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6466: $as_echo "no" >&6; }
                   6467: fi
                   6468: 
1.1       bertrand 6469: 
1.15      bertrand 6470: if test "$AWK" = no; then
1.39      bertrand 6471:    # Extract the first word of "gawk", so it can be a program name with args.
                   6472: set dummy gawk; ac_word=$2
                   6473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6474: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6475: if ${ac_cv_prog_AWK+:} false; then :
1.39      bertrand 6476:   $as_echo_n "(cached) " >&6
                   6477: else
                   6478:   if test -n "$AWK"; then
                   6479:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6480: else
                   6481: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6482: for as_dir in $PATH
                   6483: do
                   6484:   IFS=$as_save_IFS
                   6485:   test -z "$as_dir" && as_dir=.
                   6486:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6487:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6488:     ac_cv_prog_AWK="yes"
                   6489:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6490:     break 2
                   6491:   fi
                   6492: done
                   6493:   done
                   6494: IFS=$as_save_IFS
                   6495: 
                   6496:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6497: fi
                   6498: fi
                   6499: AWK=$ac_cv_prog_AWK
                   6500: if test -n "$AWK"; then
                   6501:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6502: $as_echo "$AWK" >&6; }
                   6503: else
                   6504:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6505: $as_echo "no" >&6; }
                   6506: fi
                   6507: 
                   6508: 
                   6509:    if test "$AWK" = no; then
                   6510:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6511:    fi
1.1       bertrand 6512: fi
                   6513: 
1.15      bertrand 6514: # Extract the first word of "sed", so it can be a program name with args.
                   6515: set dummy sed; ac_word=$2
                   6516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6517: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6518: if ${ac_cv_prog_SED+:} false; then :
1.15      bertrand 6519:   $as_echo_n "(cached) " >&6
                   6520: else
                   6521:   if test -n "$SED"; then
                   6522:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6523: else
                   6524: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6525: for as_dir in $PATH
                   6526: do
                   6527:   IFS=$as_save_IFS
                   6528:   test -z "$as_dir" && as_dir=.
                   6529:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6530:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6531:     ac_cv_prog_SED="yes"
                   6532:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6533:     break 2
                   6534:   fi
                   6535: done
1.14      bertrand 6536:   done
1.15      bertrand 6537: IFS=$as_save_IFS
1.1       bertrand 6538: 
1.15      bertrand 6539:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6540: fi
1.15      bertrand 6541: fi
                   6542: SED=$ac_cv_prog_SED
                   6543: if test -n "$SED"; then
                   6544:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6545: $as_echo "$SED" >&6; }
                   6546: else
                   6547:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6548: $as_echo "no" >&6; }
1.14      bertrand 6549: fi
1.1       bertrand 6550: 
                   6551: 
1.15      bertrand 6552: if test "$SED" = no; then
1.36      bertrand 6553:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6554: fi
1.14      bertrand 6555: 
1.15      bertrand 6556: if test "$TEX_SUPPORT" = guessed; then
                   6557:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6558: 
1.15      bertrand 6559:    # Extract the first word of "tex", so it can be a program name with args.
                   6560: set dummy tex; ac_word=$2
                   6561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6562: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6563: if ${ac_cv_prog_TEX+:} false; then :
1.15      bertrand 6564:   $as_echo_n "(cached) " >&6
1.1       bertrand 6565: else
1.15      bertrand 6566:   if test -n "$TEX"; then
                   6567:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6568: else
1.15      bertrand 6569: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6570: for as_dir in $PATH
                   6571: do
                   6572:   IFS=$as_save_IFS
                   6573:   test -z "$as_dir" && as_dir=.
                   6574:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6575:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6576:     ac_cv_prog_TEX="yes"
                   6577:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6578:     break 2
                   6579:   fi
                   6580: done
                   6581:   done
                   6582: IFS=$as_save_IFS
1.1       bertrand 6583: 
1.15      bertrand 6584:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6585: fi
                   6586: fi
1.15      bertrand 6587: TEX=$ac_cv_prog_TEX
                   6588: if test -n "$TEX"; then
                   6589:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6590: $as_echo "$TEX" >&6; }
                   6591: else
                   6592:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6593: $as_echo "no" >&6; }
1.1       bertrand 6594: fi
1.14      bertrand 6595: 
                   6596: 
1.15      bertrand 6597:    if test "$TEX" = no; then
                   6598:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6599: Download at http://tex.loria.fr/
                   6600: " >&5
                   6601: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6602: Download at http://tex.loria.fr/
                   6603: " >&2;}
                   6604:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6605:    fi
1.14      bertrand 6606: 
1.15      bertrand 6607:    # Extract the first word of "latex", so it can be a program name with args.
                   6608: set dummy latex; ac_word=$2
                   6609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6610: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6611: if ${ac_cv_prog_LATEX+:} false; then :
1.15      bertrand 6612:   $as_echo_n "(cached) " >&6
1.1       bertrand 6613: else
1.15      bertrand 6614:   if test -n "$LATEX"; then
                   6615:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6616: else
1.15      bertrand 6617: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6618: for as_dir in $PATH
                   6619: do
                   6620:   IFS=$as_save_IFS
                   6621:   test -z "$as_dir" && as_dir=.
                   6622:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6623:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6624:     ac_cv_prog_LATEX="yes"
                   6625:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6626:     break 2
                   6627:   fi
                   6628: done
                   6629:   done
                   6630: IFS=$as_save_IFS
1.1       bertrand 6631: 
1.15      bertrand 6632:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6633: fi
                   6634: fi
1.15      bertrand 6635: LATEX=$ac_cv_prog_LATEX
                   6636: if test -n "$LATEX"; then
                   6637:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6638: $as_echo "$LATEX" >&6; }
                   6639: else
                   6640:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6641: $as_echo "no" >&6; }
                   6642: fi
1.14      bertrand 6643: 
1.1       bertrand 6644: 
1.15      bertrand 6645:    if test "$LATEX" = no; then
                   6646:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6647: Download at http://tex.loria.fr/
                   6648: " >&5
                   6649: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6650: Download at http://tex.loria.fr/
                   6651: " >&2;}
                   6652:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6653:    fi
1.1       bertrand 6654: 
1.15      bertrand 6655:    # Extract the first word of "dvips", so it can be a program name with args.
                   6656: set dummy dvips; ac_word=$2
                   6657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6658: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6659: if ${ac_cv_prog_DVIPS+:} false; then :
1.15      bertrand 6660:   $as_echo_n "(cached) " >&6
                   6661: else
                   6662:   if test -n "$DVIPS"; then
                   6663:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6664: else
                   6665: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6666: for as_dir in $PATH
                   6667: do
                   6668:   IFS=$as_save_IFS
                   6669:   test -z "$as_dir" && as_dir=.
                   6670:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6671:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6672:     ac_cv_prog_DVIPS="yes"
                   6673:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6674:     break 2
                   6675:   fi
                   6676: done
                   6677:   done
                   6678: IFS=$as_save_IFS
1.1       bertrand 6679: 
1.15      bertrand 6680:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6681: fi
1.1       bertrand 6682: fi
1.15      bertrand 6683: DVIPS=$ac_cv_prog_DVIPS
                   6684: if test -n "$DVIPS"; then
                   6685:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6686: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6687: else
1.15      bertrand 6688:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6689: $as_echo "no" >&6; }
                   6690: fi
1.1       bertrand 6691: 
                   6692: 
1.15      bertrand 6693:    if test "$DVIPS" = no; then
                   6694:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6695: Download at http://tex.loria.fr/
                   6696: " >&5
                   6697: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6698: Download at http://tex.loria.fr/
                   6699: " >&2;}
                   6700:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6701:    fi
1.1       bertrand 6702: 
1.15      bertrand 6703:    # Extract the first word of "gs", so it can be a program name with args.
                   6704: set dummy gs; ac_word=$2
                   6705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6706: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6707: if ${ac_cv_prog_GS+:} false; then :
1.15      bertrand 6708:   $as_echo_n "(cached) " >&6
                   6709: else
                   6710:   if test -n "$GS"; then
                   6711:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6712: else
1.15      bertrand 6713: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6714: for as_dir in $PATH
                   6715: do
                   6716:   IFS=$as_save_IFS
                   6717:   test -z "$as_dir" && as_dir=.
                   6718:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6719:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6720:     ac_cv_prog_GS="yes"
                   6721:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6722:     break 2
                   6723:   fi
                   6724: done
                   6725:   done
                   6726: IFS=$as_save_IFS
1.1       bertrand 6727: 
1.15      bertrand 6728:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6729: fi
                   6730: fi
                   6731: GS=$ac_cv_prog_GS
                   6732: if test -n "$GS"; then
                   6733:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6734: $as_echo "$GS" >&6; }
                   6735: else
                   6736:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6737: $as_echo "no" >&6; }
1.1       bertrand 6738: fi
                   6739: 
1.15      bertrand 6740: 
                   6741:    if test "$GS" = no; then
                   6742:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6743: Download at http://ftp.lip6.fr/
                   6744: " >&5
                   6745: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6746: Download at http://ftp.lip6.fr/
                   6747: " >&2;}
                   6748:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6749:    fi
                   6750: 
                   6751:    # Extract the first word of "gv", so it can be a program name with args.
                   6752: set dummy gv; ac_word=$2
                   6753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6754: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6755: if ${ac_cv_prog_GV+:} false; then :
1.15      bertrand 6756:   $as_echo_n "(cached) " >&6
                   6757: else
                   6758:   if test -n "$GV"; then
                   6759:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6760: else
                   6761: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6762: for as_dir in $PATH
                   6763: do
                   6764:   IFS=$as_save_IFS
                   6765:   test -z "$as_dir" && as_dir=.
                   6766:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6767:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6768:     ac_cv_prog_GV="yes"
                   6769:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6770:     break 2
                   6771:   fi
                   6772: done
1.14      bertrand 6773:   done
1.15      bertrand 6774: IFS=$as_save_IFS
1.1       bertrand 6775: 
1.15      bertrand 6776:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6777: fi
1.1       bertrand 6778: fi
1.15      bertrand 6779: GV=$ac_cv_prog_GV
                   6780: if test -n "$GV"; then
                   6781:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6782: $as_echo "$GV" >&6; }
                   6783: else
                   6784:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6785: $as_echo "no" >&6; }
1.1       bertrand 6786: fi
1.14      bertrand 6787: 
                   6788: 
1.15      bertrand 6789:    if test "$GV" = no; then
                   6790:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6791: Download at http://ftp.lip6.fr/
                   6792: " >&5
                   6793: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6794: Download at http://ftp.lip6.fr/
                   6795: " >&2;}
                   6796:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6797:    fi
1.1       bertrand 6798: else
1.15      bertrand 6799:    if test "$TEX_SUPPORT" = no; then
                   6800:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6801:    else
                   6802:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6803:    fi
1.1       bertrand 6804: fi
                   6805: 
1.15      bertrand 6806: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6807:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6808: set dummy gnuplot; ac_word=$2
                   6809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6810: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6811: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15      bertrand 6812:   $as_echo_n "(cached) " >&6
1.14      bertrand 6813: else
1.15      bertrand 6814:   if test -n "$GNUPLOT_P"; then
                   6815:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6816: else
1.15      bertrand 6817: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6818: for as_dir in $PATH
                   6819: do
                   6820:   IFS=$as_save_IFS
                   6821:   test -z "$as_dir" && as_dir=.
                   6822:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6823:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6824:     ac_cv_prog_GNUPLOT_P="yes"
                   6825:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6826:     break 2
                   6827:   fi
                   6828: done
                   6829:   done
                   6830: IFS=$as_save_IFS
1.1       bertrand 6831: 
1.15      bertrand 6832:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6833: fi
                   6834: fi
1.15      bertrand 6835: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6836: if test -n "$GNUPLOT_P"; then
                   6837:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6838: $as_echo "$GNUPLOT_P" >&6; }
                   6839: else
                   6840:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6841: $as_echo "no" >&6; }
1.1       bertrand 6842: fi
                   6843: 
                   6844: 
1.15      bertrand 6845:    if test "$GNUPLOT_P" = no; then
                   6846:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6847: Download at http://www.gnuplot.vt.edu/
                   6848: " >&5
                   6849: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6850: Download at http://www.gnuplot.vt.edu/
                   6851: " >&2;}
                   6852:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6853:    else
                   6854:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6855:    fi
                   6856: else
                   6857:    if test "$GNUPLOT_SUPPORT" = no; then
                   6858:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6859:    else
                   6860:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6861:    fi
                   6862: fi
1.1       bertrand 6863: 
1.15      bertrand 6864: if test "$VIM_SUPPORT" = guessed; then
                   6865:    # Extract the first word of "vim", so it can be a program name with args.
                   6866: set dummy vim; ac_word=$2
                   6867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6868: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6869: if ${ac_cv_prog_VIM+:} false; then :
1.15      bertrand 6870:   $as_echo_n "(cached) " >&6
1.1       bertrand 6871: else
1.15      bertrand 6872:   if test -n "$VIM"; then
                   6873:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6874: else
1.15      bertrand 6875: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6876: for as_dir in $PATH
                   6877: do
                   6878:   IFS=$as_save_IFS
                   6879:   test -z "$as_dir" && as_dir=.
                   6880:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6881:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6882:     ac_cv_prog_VIM="yes"
                   6883:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6884:     break 2
                   6885:   fi
                   6886: done
                   6887:   done
                   6888: IFS=$as_save_IFS
1.1       bertrand 6889: 
1.15      bertrand 6890:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 6891: fi
                   6892: fi
1.15      bertrand 6893: VIM=$ac_cv_prog_VIM
                   6894: if test -n "$VIM"; then
                   6895:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   6896: $as_echo "$VIM" >&6; }
1.1       bertrand 6897: else
1.15      bertrand 6898:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6899: $as_echo "no" >&6; }
                   6900: fi
1.1       bertrand 6901: 
                   6902: 
1.15      bertrand 6903:    if test "$VIM" = no; then
                   6904:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   6905: Download at http://www.vim.org/
                   6906: " >&5
                   6907: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   6908: Download at http://www.vim.org/
                   6909: " >&2;}
                   6910:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6911:    else
                   6912:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6913:    fi
1.1       bertrand 6914: else
1.15      bertrand 6915:    if test "$VIM_SUPPORT" = no; then
                   6916:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6917:    else
                   6918:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6919:    fi
1.1       bertrand 6920: fi
                   6921: 
1.15      bertrand 6922: if test "$MOTIF_SUPPORT" = guessed; then
                   6923:    CFLAGS_ORIG=$CFLAGS
                   6924:    LIBS_ORIG=$LIBS
                   6925:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6926:    LIBS="$LIB $X_LIBS"
                   6927:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6928: $as_echo_n "checking for main in -lXm... " >&6; }
1.57      bertrand 6929: if ${ac_cv_lib_Xm_main+:} false; then :
1.15      bertrand 6930:   $as_echo_n "(cached) " >&6
1.1       bertrand 6931: else
1.15      bertrand 6932:   ac_check_lib_save_LIBS=$LIBS
                   6933: LIBS="-lXm  $LIBS"
                   6934: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6935: /* end confdefs.h.  */
1.1       bertrand 6936: 
                   6937: 
1.14      bertrand 6938: int
                   6939: main ()
                   6940: {
1.15      bertrand 6941: return main ();
1.14      bertrand 6942:   ;
                   6943:   return 0;
                   6944: }
                   6945: _ACEOF
1.15      bertrand 6946: if ac_fn_c_try_link "$LINENO"; then :
                   6947:   ac_cv_lib_Xm_main=yes
1.1       bertrand 6948: else
1.15      bertrand 6949:   ac_cv_lib_Xm_main=no
                   6950: fi
                   6951: rm -f core conftest.err conftest.$ac_objext \
                   6952:     conftest$ac_exeext conftest.$ac_ext
                   6953: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6954: fi
1.15      bertrand 6955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6956: $as_echo "$ac_cv_lib_Xm_main" >&6; }
1.57      bertrand 6957: if test "x$ac_cv_lib_Xm_main" = xyes; then :
1.15      bertrand 6958:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6959: else
1.15      bertrand 6960:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6961: fi
1.14      bertrand 6962: 
1.15      bertrand 6963:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6964:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
                   6965: Motif flag is disabled.
                   6966: " >&5
                   6967: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
                   6968: Motif flag is disabled.
                   6969: " >&2;}
                   6970:    fi
                   6971:    LIBS=$LIBS_ORIG
                   6972:    CFLAGS=$CFLAGS_ORIG
1.1       bertrand 6973: fi
                   6974: 
1.15      bertrand 6975: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6976:    CFLAGS_ORIG=$CFLAGS
                   6977:    LIBS_ORIG=$LIBS
                   6978:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6979:    LIBS="$LIB $X_LIBS"
                   6980:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
                   6981: $as_echo_n "checking for main in -lXpm... " >&6; }
1.57      bertrand 6982: if ${ac_cv_lib_Xpm_main+:} false; then :
1.15      bertrand 6983:   $as_echo_n "(cached) " >&6
                   6984: else
                   6985:   ac_check_lib_save_LIBS=$LIBS
                   6986: LIBS="-lXpm  $LIBS"
                   6987: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 6988: /* end confdefs.h.  */
                   6989: 
1.1       bertrand 6990: 
                   6991: int
                   6992: main ()
                   6993: {
1.15      bertrand 6994: return main ();
1.1       bertrand 6995:   ;
                   6996:   return 0;
                   6997: }
                   6998: _ACEOF
1.15      bertrand 6999: if ac_fn_c_try_link "$LINENO"; then :
                   7000:   ac_cv_lib_Xpm_main=yes
1.1       bertrand 7001: else
1.15      bertrand 7002:   ac_cv_lib_Xpm_main=no
                   7003: fi
                   7004: rm -f core conftest.err conftest.$ac_objext \
                   7005:     conftest$ac_exeext conftest.$ac_ext
                   7006: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7007: fi
1.15      bertrand 7008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
                   7009: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
1.57      bertrand 7010: if test "x$ac_cv_lib_Xpm_main" = xyes; then :
1.15      bertrand 7011:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   7012: else
                   7013:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 7014: fi
1.15      bertrand 7015: 
                   7016:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   7017:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                   7018:    else
                   7019:        libX=""
                   7020:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
                   7021: Motif flag is disabled.
                   7022: " >&5
                   7023: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
                   7024: Motif flag is disabled.
                   7025: " >&2;}
                   7026:    fi
                   7027:    LIBS=$LIBS_ORIG
                   7028:    CFLAGS=$CFLAGS_ORIG
                   7029: else
                   7030:    libX=""
1.1       bertrand 7031: fi
1.14      bertrand 7032: 
                   7033: 
                   7034: 
1.1       bertrand 7035: 
                   7036: 
1.15      bertrand 7037: 
                   7038: 
                   7039: 
                   7040: 
                   7041: 
                   7042: 
                   7043: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   7044: 
                   7045: 
                   7046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   7047: $as_echo_n "checking for main in -lm... " >&6; }
1.57      bertrand 7048: if ${ac_cv_lib_m_main+:} false; then :
1.15      bertrand 7049:   $as_echo_n "(cached) " >&6
1.1       bertrand 7050: else
1.15      bertrand 7051:   ac_check_lib_save_LIBS=$LIBS
                   7052: LIBS="-lm  $LIBS"
                   7053: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7054: /* end confdefs.h.  */
1.15      bertrand 7055: 
                   7056: 
1.1       bertrand 7057: int
                   7058: main ()
                   7059: {
1.15      bertrand 7060: return main ();
1.1       bertrand 7061:   ;
                   7062:   return 0;
                   7063: }
                   7064: _ACEOF
1.15      bertrand 7065: if ac_fn_c_try_link "$LINENO"; then :
                   7066:   ac_cv_lib_m_main=yes
1.1       bertrand 7067: else
1.15      bertrand 7068:   ac_cv_lib_m_main=no
                   7069: fi
                   7070: rm -f core conftest.err conftest.$ac_objext \
                   7071:     conftest$ac_exeext conftest.$ac_ext
                   7072: LIBS=$ac_check_lib_save_LIBS
                   7073: fi
                   7074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   7075: $as_echo "$ac_cv_lib_m_main" >&6; }
1.57      bertrand 7076: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15      bertrand 7077:   cat >>confdefs.h <<_ACEOF
                   7078: #define HAVE_LIBM 1
                   7079: _ACEOF
1.14      bertrand 7080: 
1.15      bertrand 7081:   LIBS="-lm $LIBS"
1.1       bertrand 7082: 
1.15      bertrand 7083: else
1.36      bertrand 7084:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 7085: fi
                   7086: 
1.15      bertrand 7087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   7088: $as_echo_n "checking for main in -lpthread... " >&6; }
1.57      bertrand 7089: if ${ac_cv_lib_pthread_main+:} false; then :
1.15      bertrand 7090:   $as_echo_n "(cached) " >&6
1.1       bertrand 7091: else
1.15      bertrand 7092:   ac_check_lib_save_LIBS=$LIBS
                   7093: LIBS="-lpthread  $LIBS"
                   7094: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7095: /* end confdefs.h.  */
1.15      bertrand 7096: 
                   7097: 
1.14      bertrand 7098: int
                   7099: main ()
                   7100: {
1.15      bertrand 7101: return main ();
1.14      bertrand 7102:   ;
                   7103:   return 0;
                   7104: }
                   7105: _ACEOF
1.15      bertrand 7106: if ac_fn_c_try_link "$LINENO"; then :
                   7107:   ac_cv_lib_pthread_main=yes
                   7108: else
                   7109:   ac_cv_lib_pthread_main=no
                   7110: fi
                   7111: rm -f core conftest.err conftest.$ac_objext \
                   7112:     conftest$ac_exeext conftest.$ac_ext
                   7113: LIBS=$ac_check_lib_save_LIBS
                   7114: fi
                   7115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   7116: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.57      bertrand 7117: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15      bertrand 7118:   cat >>confdefs.h <<_ACEOF
                   7119: #define HAVE_LIBPTHREAD 1
1.14      bertrand 7120: _ACEOF
                   7121: 
1.15      bertrand 7122:   LIBS="-lpthread $LIBS"
                   7123: 
1.1       bertrand 7124: else
1.36      bertrand 7125:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 7126: fi
1.14      bertrand 7127: 
1.1       bertrand 7128: 
1.33      bertrand 7129: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   7130: #include <sys/sem.h>
                   7131: 
                   7132: "
1.57      bertrand 7133: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33      bertrand 7134:   SEMUN=-DUNION_SEMUN
                   7135: else
                   7136:   SEMUN=-UUNION_SEMUN
                   7137: fi
                   7138: 
                   7139: 
1.34      bertrand 7140: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 7141: #include <sys/types.h>
1.34      bertrand 7142: #include <netinet/in.h>
                   7143: 
                   7144: "
1.57      bertrand 7145: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34      bertrand 7146:   IPV6=-DIPV6
                   7147: else
                   7148:   IPV6=-UIPV6
                   7149: fi
                   7150: 
                   7151: 
1.15      bertrand 7152: if test "$CYGWIN" != yes; then
                   7153:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7154: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.57      bertrand 7155: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15      bertrand 7156:   $as_echo_n "(cached) " >&6
1.1       bertrand 7157: else
1.15      bertrand 7158:   ac_check_lib_save_LIBS=$LIBS
                   7159: LIBS="-ldl  $LIBS"
                   7160: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7161: /* end confdefs.h.  */
                   7162: 
1.15      bertrand 7163: /* Override any GCC internal prototype to avoid an error.
                   7164:    Use char because int might match the return type of a GCC
                   7165:    builtin and then its argument prototype would still apply.  */
                   7166: #ifdef __cplusplus
                   7167: extern "C"
                   7168: #endif
                   7169: char dlopen ();
1.1       bertrand 7170: int
                   7171: main ()
                   7172: {
1.15      bertrand 7173: return dlopen ();
1.1       bertrand 7174:   ;
                   7175:   return 0;
                   7176: }
                   7177: _ACEOF
1.15      bertrand 7178: if ac_fn_c_try_link "$LINENO"; then :
                   7179:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7180: else
1.15      bertrand 7181:   ac_cv_lib_dl_dlopen=no
                   7182: fi
                   7183: rm -f core conftest.err conftest.$ac_objext \
                   7184:     conftest$ac_exeext conftest.$ac_ext
                   7185: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7186: fi
1.15      bertrand 7187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7188: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.57      bertrand 7189: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15      bertrand 7190:   LIBS="$LIBS -ldl"
1.14      bertrand 7191: else
1.15      bertrand 7192:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7193: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7194: fi
                   7195: 
1.14      bertrand 7196: fi
1.1       bertrand 7197: 
1.15      bertrand 7198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7199: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.57      bertrand 7200: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15      bertrand 7201:   $as_echo_n "(cached) " >&6
                   7202: else
                   7203:   ac_check_lib_save_LIBS=$LIBS
                   7204: LIBS="-lrt  $LIBS"
                   7205: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7206: /* end confdefs.h.  */
1.15      bertrand 7207: 
                   7208: /* Override any GCC internal prototype to avoid an error.
                   7209:    Use char because int might match the return type of a GCC
                   7210:    builtin and then its argument prototype would still apply.  */
                   7211: #ifdef __cplusplus
                   7212: extern "C"
                   7213: #endif
                   7214: char nanosleep ();
1.1       bertrand 7215: int
                   7216: main ()
                   7217: {
1.15      bertrand 7218: return nanosleep ();
1.1       bertrand 7219:   ;
                   7220:   return 0;
                   7221: }
                   7222: _ACEOF
1.15      bertrand 7223: if ac_fn_c_try_link "$LINENO"; then :
                   7224:   ac_cv_lib_rt_nanosleep=yes
                   7225: else
                   7226:   ac_cv_lib_rt_nanosleep=no
                   7227: fi
                   7228: rm -f core conftest.err conftest.$ac_objext \
                   7229:     conftest$ac_exeext conftest.$ac_ext
                   7230: LIBS=$ac_check_lib_save_LIBS
                   7231: fi
                   7232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7233: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.57      bertrand 7234: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15      bertrand 7235:   LIBS="$LIBS -lrt"
1.1       bertrand 7236: else
1.15      bertrand 7237:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7238: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7239: fi
1.1       bertrand 7240: 
                   7241: 
1.15      bertrand 7242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7243: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.57      bertrand 7244: if ${ac_cv_lib_socket_bind+:} false; then :
1.15      bertrand 7245:   $as_echo_n "(cached) " >&6
1.1       bertrand 7246: else
1.15      bertrand 7247:   ac_check_lib_save_LIBS=$LIBS
                   7248: LIBS="-lsocket  $LIBS"
                   7249: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7250: /* end confdefs.h.  */
1.15      bertrand 7251: 
                   7252: /* Override any GCC internal prototype to avoid an error.
                   7253:    Use char because int might match the return type of a GCC
                   7254:    builtin and then its argument prototype would still apply.  */
                   7255: #ifdef __cplusplus
                   7256: extern "C"
                   7257: #endif
                   7258: char bind ();
1.1       bertrand 7259: int
                   7260: main ()
                   7261: {
1.15      bertrand 7262: return bind ();
1.1       bertrand 7263:   ;
                   7264:   return 0;
                   7265: }
                   7266: _ACEOF
1.15      bertrand 7267: if ac_fn_c_try_link "$LINENO"; then :
                   7268:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7269: else
1.15      bertrand 7270:   ac_cv_lib_socket_bind=no
1.1       bertrand 7271: fi
1.15      bertrand 7272: rm -f core conftest.err conftest.$ac_objext \
                   7273:     conftest$ac_exeext conftest.$ac_ext
                   7274: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7275: fi
1.15      bertrand 7276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7277: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.57      bertrand 7278: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15      bertrand 7279:   LIBS="$LIBS -lsocket"
                   7280: else
                   7281:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7282: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7283: fi
                   7284: 
                   7285: 
1.15      bertrand 7286: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7287: 
                   7288: # Check whether --with-mysql was given.
                   7289: if test "${with_mysql+set}" = set; then :
                   7290:   withval=$with_mysql;
                   7291: else
                   7292:   with_mysql=check
                   7293: fi
1.14      bertrand 7294: 
                   7295: 
1.15      bertrand 7296: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7297:    libMySQLinc="-I/usr/include"
1.30      bertrand 7298:    libMySQLlib="/usr/lib"
1.14      bertrand 7299: 
1.15      bertrand 7300:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7301: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7302:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7303:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7304:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7305: /* end confdefs.h.  */
1.15      bertrand 7306: #include "mysql.h"
1.1       bertrand 7307: int
                   7308: main ()
                   7309: {
1.15      bertrand 7310: 
1.1       bertrand 7311:   ;
                   7312:   return 0;
                   7313: }
                   7314: _ACEOF
1.15      bertrand 7315: if ac_fn_c_try_compile "$LINENO"; then :
                   7316:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7317: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7318:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7319: else
1.15      bertrand 7320:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7321: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7322: fi
1.14      bertrand 7323: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7324:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7325: 
1.15      bertrand 7326:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7327:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7328: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7329:        saved_CFLAGS="$CFLAGS"
                   7330:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7331:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7332: /* end confdefs.h.  */
1.15      bertrand 7333: #include "mysql.h"
1.1       bertrand 7334: int
                   7335: main ()
                   7336: {
                   7337: 
                   7338:   ;
                   7339:   return 0;
                   7340: }
                   7341: _ACEOF
1.15      bertrand 7342: if ac_fn_c_try_compile "$LINENO"; then :
                   7343:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7344: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7345:                        libMySQLinc=$libMySQLinc
                   7346: else
                   7347:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7348: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7349: fi
                   7350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7351:        CFLAGS=$saved_CFLAGS
                   7352:        libMySQLinc=$libMySQLinc/mysql
                   7353:    fi
                   7354: 
                   7355:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7356:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7357: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7358:        saved_CFLAGS="$CFLAGS"
                   7359:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7360:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7361: /* end confdefs.h.  */
1.15      bertrand 7362: #include "mysql.h"
1.1       bertrand 7363: int
                   7364: main ()
                   7365: {
                   7366: 
                   7367:   ;
                   7368:   return 0;
                   7369: }
                   7370: _ACEOF
1.15      bertrand 7371: if ac_fn_c_try_compile "$LINENO"; then :
                   7372:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7373: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7374:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7375: else
1.15      bertrand 7376:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7377: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7378: fi
                   7379: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7380:        CFLAGS=$saved_CFLAGS
                   7381:        libMySQLinc=$libMySQLinc/../local/include
                   7382:        libMySQLlib=$libMySQLlib/../local/lib
                   7383:    fi
1.1       bertrand 7384: 
1.15      bertrand 7385:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7386:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7387: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7388:        saved_CFLAGS="$CFLAGS"
                   7389:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7390:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7391: /* end confdefs.h.  */
1.15      bertrand 7392: #include "mysql.h"
1.1       bertrand 7393: int
                   7394: main ()
                   7395: {
                   7396: 
                   7397:   ;
                   7398:   return 0;
                   7399: }
                   7400: _ACEOF
1.15      bertrand 7401: if ac_fn_c_try_compile "$LINENO"; then :
                   7402:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7403: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7404:                        libMySQLinc=$libMySQLinc/mysql
                   7405: else
                   7406:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7407: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7408: fi
                   7409: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7410:        CFLAGS=$saved_CFLAGS
                   7411:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7412:        libMySQLlib=$libMySQLlib/../local/lib
                   7413:    fi
                   7414: else
                   7415:    if test "x$with_mysql" != xno; then
                   7416:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7417:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7418: 
                   7419:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7420: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7421:        saved_CFLAGS="$CFLAGS"
                   7422:        CFLAGS="$CFLAGS $libMySQLinc"
                   7423:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7424: /* end confdefs.h.  */
1.15      bertrand 7425: #include "mysql.h"
1.1       bertrand 7426: int
                   7427: main ()
                   7428: {
                   7429: 
                   7430:   ;
                   7431:   return 0;
                   7432: }
                   7433: _ACEOF
1.15      bertrand 7434: if ac_fn_c_try_compile "$LINENO"; then :
                   7435:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7436: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7437:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7438: else
1.15      bertrand 7439:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7440: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7441: fi
                   7442: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7443:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7444: 
1.15      bertrand 7445:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7446:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7447: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7448:            saved_CFLAGS="$CFLAGS"
                   7449:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7450:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7451: /* end confdefs.h.  */
1.15      bertrand 7452: #include "mysql.h"
1.1       bertrand 7453: int
                   7454: main ()
                   7455: {
                   7456: 
                   7457:   ;
                   7458:   return 0;
                   7459: }
                   7460: _ACEOF
1.15      bertrand 7461: if ac_fn_c_try_compile "$LINENO"; then :
                   7462:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7463: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7464:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7465: else
1.15      bertrand 7466:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7467: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7468: fi
                   7469: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7470:            CFLAGS=$saved_CFLAGS
                   7471:            libMySQLinc=$libMySQLinc/mysql
                   7472:        fi
                   7473:    else
                   7474:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7475:    fi
                   7476: fi
1.14      bertrand 7477: 
1.15      bertrand 7478: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7479:    MYSQL_LIB=no
1.14      bertrand 7480: 
1.15      bertrand 7481:    if test $MYSQL_LIB = no; then
                   7482:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7483: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7484:        saved_LIBS="$LIBS"
1.30      bertrand 7485:        if test $STATIC = no; then
                   7486:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7487:        else
                   7488:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7489:        fi
1.15      bertrand 7490:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7491: /* end confdefs.h.  */
1.15      bertrand 7492: #include "mysql.h"
1.1       bertrand 7493: int
                   7494: main ()
                   7495: {
1.15      bertrand 7496: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7497:   ;
                   7498:   return 0;
                   7499: }
                   7500: _ACEOF
1.15      bertrand 7501: if ac_fn_c_try_link "$LINENO"; then :
                   7502:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7503: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7504: else
1.15      bertrand 7505:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7506: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7507: fi
                   7508: rm -f core conftest.err conftest.$ac_objext \
                   7509:     conftest$ac_exeext conftest.$ac_ext
                   7510:        LIBS=$saved_LIBS;
1.30      bertrand 7511:        if test $STATIC = no; then
                   7512:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7513:        else
                   7514:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7515:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7516:        fi
1.15      bertrand 7517:    fi
1.14      bertrand 7518: 
1.15      bertrand 7519:    if test $MYSQL_LIB = no; then
                   7520:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7521:    fi
1.14      bertrand 7522: fi
1.15      bertrand 7523: 
                   7524: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7525:    libMySQLinc=
                   7526:    libMySQLlib=
1.1       bertrand 7527: fi
1.14      bertrand 7528: 
                   7529: 
                   7530: 
1.1       bertrand 7531: 
                   7532: 
1.15      bertrand 7533: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7534: 
                   7535: # Check whether --with-postgresql was given.
                   7536: if test "${with_postgresql+set}" = set; then :
                   7537:   withval=$with_postgresql;
1.14      bertrand 7538: else
1.15      bertrand 7539:   with_postgresql=check
                   7540: fi
                   7541: 
                   7542: 
                   7543: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7544: # no [--without], valeur [--with=valeur].
                   7545: 
                   7546: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7547:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7548:    libPgSQLlib="/usr/lib"
1.15      bertrand 7549: 
                   7550:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7551: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7552:    saved_CFLAGS="$CFLAGS"
                   7553:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7554:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7555: /* end confdefs.h.  */
1.15      bertrand 7556: #include "libpq-fe.h"
1.1       bertrand 7557: int
                   7558: main ()
                   7559: {
1.15      bertrand 7560: 
1.1       bertrand 7561:   ;
                   7562:   return 0;
                   7563: }
                   7564: _ACEOF
1.15      bertrand 7565: if ac_fn_c_try_compile "$LINENO"; then :
                   7566:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7567: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7568: else
1.15      bertrand 7569:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7570: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7571: fi
1.14      bertrand 7572: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7573:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7574: 
1.15      bertrand 7575:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7576:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7577: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7578:        saved_CFLAGS="$CFLAGS"
                   7579:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7580:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7581: /* end confdefs.h.  */
1.15      bertrand 7582: #include "libpq-fe.h"
1.1       bertrand 7583: int
                   7584: main ()
                   7585: {
                   7586: 
                   7587:   ;
                   7588:   return 0;
                   7589: }
                   7590: _ACEOF
1.15      bertrand 7591: if ac_fn_c_try_compile "$LINENO"; then :
                   7592:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7593: $as_echo "yes" >&6; };
                   7594:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7595: else
                   7596:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7597: $as_echo "no" >&6; };
                   7598:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7599: fi
                   7600: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7601:        CFLAGS=$saved_CFLAGS
                   7602:        libPgSQLinc=$libPgSQLinc/postgresql
                   7603:    fi
                   7604: 
                   7605:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7606:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7607: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7608:        saved_CFLAGS="$CFLAGS"
                   7609:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7610:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7611: /* end confdefs.h.  */
1.15      bertrand 7612: #include "libpq-fe.h"
1.1       bertrand 7613: int
                   7614: main ()
                   7615: {
                   7616: 
                   7617:   ;
                   7618:   return 0;
                   7619: }
                   7620: _ACEOF
1.15      bertrand 7621: if ac_fn_c_try_compile "$LINENO"; then :
                   7622:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7623: $as_echo "yes" >&6; };
                   7624:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7625: else
1.15      bertrand 7626:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7627: $as_echo "no" >&6; };
                   7628:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7629: fi
                   7630: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7631:        CFLAGS=$saved_CFLAGS
                   7632:        libPgSQLinc=$libPgSQLinc/pgsql
                   7633:    fi
1.1       bertrand 7634: 
1.15      bertrand 7635:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7636:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7637: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7638:        saved_CFLAGS="$CFLAGS"
                   7639:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7640:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7641: /* end confdefs.h.  */
1.15      bertrand 7642: #include "libpq-fe.h"
1.1       bertrand 7643: int
                   7644: main ()
                   7645: {
                   7646: 
                   7647:   ;
                   7648:   return 0;
                   7649: }
                   7650: _ACEOF
1.15      bertrand 7651: if ac_fn_c_try_compile "$LINENO"; then :
                   7652:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7653: $as_echo "yes" >&6; };
                   7654:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7655: else
                   7656:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7657: $as_echo "no" >&6; };
                   7658:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7659: fi
                   7660: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7661:        CFLAGS=$saved_CFLAGS
                   7662:        libPgSQLinc=$libPgSQLinc/../local/include
                   7663:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7664:    fi
                   7665: 
                   7666:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7667:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7668: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7669:        saved_CFLAGS="$CFLAGS"
                   7670:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7671:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7672: /* end confdefs.h.  */
1.15      bertrand 7673: #include "libpq-fe.h"
1.1       bertrand 7674: int
                   7675: main ()
                   7676: {
                   7677: 
                   7678:   ;
                   7679:   return 0;
                   7680: }
                   7681: _ACEOF
1.15      bertrand 7682: if ac_fn_c_try_compile "$LINENO"; then :
                   7683:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7684: $as_echo "yes" >&6; };
                   7685:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7686: else
1.15      bertrand 7687:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7688: $as_echo "no" >&6; };
                   7689:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7690: fi
                   7691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7692:        CFLAGS=$saved_CFLAGS
                   7693:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7694:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7695:    fi
1.14      bertrand 7696: 
1.15      bertrand 7697:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7698:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7699: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7700:        saved_CFLAGS="$CFLAGS"
                   7701:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7702:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7703: /* end confdefs.h.  */
1.15      bertrand 7704: #include "libpq-fe.h"
1.1       bertrand 7705: int
                   7706: main ()
                   7707: {
                   7708: 
                   7709:   ;
                   7710:   return 0;
                   7711: }
                   7712: _ACEOF
1.15      bertrand 7713: if ac_fn_c_try_compile "$LINENO"; then :
                   7714:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7715: $as_echo "yes" >&6; };
                   7716:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7717: else
1.15      bertrand 7718:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7719: $as_echo "no" >&6; };
                   7720:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7721: fi
                   7722: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7723:        CFLAGS=$saved_CFLAGS
                   7724:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7725:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7726:    fi
1.14      bertrand 7727: else
1.15      bertrand 7728:    if test "x$with_postgresql" != xno; then
                   7729:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7730:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7731: 
                   7732:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7733: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7734:        saved_CFLAGS="$CFLAGS"
                   7735:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7736:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7737: /* end confdefs.h.  */
1.15      bertrand 7738: #include "libpq-fe.h"
1.1       bertrand 7739: int
                   7740: main ()
                   7741: {
                   7742: 
                   7743:   ;
                   7744:   return 0;
                   7745: }
                   7746: _ACEOF
1.15      bertrand 7747: if ac_fn_c_try_compile "$LINENO"; then :
                   7748:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7749: $as_echo "yes" >&6; };
                   7750:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7751: else
1.15      bertrand 7752:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7753: $as_echo "no" >&6; };
                   7754:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7755: fi
1.15      bertrand 7756: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7757:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7758: 
1.15      bertrand 7759:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7760:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7761: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7762:            saved_CFLAGS="$CFLAGS"
                   7763:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7764:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7765: /* end confdefs.h.  */
1.15      bertrand 7766: #include "libpq-fe.h"
1.1       bertrand 7767: int
                   7768: main ()
                   7769: {
1.15      bertrand 7770: 
1.1       bertrand 7771:   ;
                   7772:   return 0;
                   7773: }
                   7774: _ACEOF
1.15      bertrand 7775: if ac_fn_c_try_compile "$LINENO"; then :
                   7776:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7777: $as_echo "yes" >&6; };
                   7778:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7779: else
1.15      bertrand 7780:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7781: $as_echo "no" >&6; };
                   7782:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7783: fi
                   7784: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7785:            CFLAGS=$saved_CFLAGS
                   7786:            libPgSQLinc=$libPgSQLinc/postgresql
                   7787:        fi
1.14      bertrand 7788: 
1.15      bertrand 7789:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7790:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7791: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7792:            saved_CFLAGS="$CFLAGS"
                   7793:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7794:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7795: /* end confdefs.h.  */
1.15      bertrand 7796: #include "libpq-fe.h"
1.1       bertrand 7797: int
                   7798: main ()
                   7799: {
1.15      bertrand 7800: 
1.1       bertrand 7801:   ;
                   7802:   return 0;
                   7803: }
                   7804: _ACEOF
1.15      bertrand 7805: if ac_fn_c_try_compile "$LINENO"; then :
                   7806:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7807: $as_echo "yes" >&6; };
                   7808:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7809: else
1.15      bertrand 7810:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7811: $as_echo "no" >&6; };
                   7812:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7813: fi
1.15      bertrand 7814: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7815:            CFLAGS=$saved_CFLAGS
                   7816:            libPgSQLinc=$libPgSQLinc/pgsql
                   7817:        fi
                   7818:    else
                   7819:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7820:    fi
1.1       bertrand 7821: fi
                   7822: 
1.15      bertrand 7823: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7824:    POSTGRESQL_LIB=no
1.1       bertrand 7825: 
1.15      bertrand 7826:    if test $POSTGRESQL_LIB = no; then
                   7827:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7828: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7829:        saved_LIBS="$LIBS"
1.30      bertrand 7830:        if test $STATIC = no; then
                   7831:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7832:        else
                   7833:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   7834:        fi
1.15      bertrand 7835:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7836: /* end confdefs.h.  */
1.15      bertrand 7837: #include "libpq-fe.h"
1.1       bertrand 7838: int
                   7839: main ()
                   7840: {
1.15      bertrand 7841: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7842:             PQconnectdb(conninfo);
1.1       bertrand 7843:   ;
                   7844:   return 0;
                   7845: }
                   7846: _ACEOF
1.15      bertrand 7847: if ac_fn_c_try_link "$LINENO"; then :
                   7848:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7849: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7850: else
1.15      bertrand 7851:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7852: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7853: fi
                   7854: rm -f core conftest.err conftest.$ac_objext \
                   7855:     conftest$ac_exeext conftest.$ac_ext
                   7856:        LIBS=$saved_LIBS;
1.30      bertrand 7857:        if test $STATIC = no; then
                   7858:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   7859:        else
                   7860:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   7861:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   7862:        fi
1.15      bertrand 7863:    fi
                   7864: fi
                   7865: 
                   7866: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7867:    libPgSQLinc=
                   7868:    libPgSQLlib=
                   7869: fi
                   7870: 
                   7871: 
                   7872: 
                   7873: 
1.14      bertrand 7874: 
1.40      bertrand 7875: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7876: # no [--without], valeur [--with=valeur].
                   7877: 
                   7878: # Check whether --with-bourne_shell was given.
                   7879: if test "${with_bourne_shell+set}" = set; then :
                   7880:   withval=$with_bourne_shell;
                   7881: else
                   7882:   with_bourne_shell=no
                   7883: fi
                   7884: 
                   7885: 
                   7886: if test "x$with_bourne_shell" = xyes; then
                   7887:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   7888: fi
                   7889: 
                   7890: if test "x$with_bourne_shell" = xno; then
                   7891:    if test $(uname) = "OS/2"; then
                   7892:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
                   7893:    fi
                   7894: 
                   7895:    BSH_PATH=
                   7896: else
                   7897:    if test ! -x $with_bourne_shell; then
                   7898:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   7899:    fi
                   7900: 
                   7901:    if test $(uname) = "OS/2"; then
1.41      bertrand 7902:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   7903:                sed -e '1,$s/\//\\\\\\\\/g')
                   7904:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 7905:    else
                   7906:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   7907: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   7908:        BSH_PATH=
                   7909:    fi
                   7910: fi
                   7911: 
1.15      bertrand 7912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7913: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.57      bertrand 7914: if ${ac_cv_path_GREP+:} false; then :
1.15      bertrand 7915:   $as_echo_n "(cached) " >&6
                   7916: else
                   7917:   if test -z "$GREP"; then
                   7918:   ac_path_GREP_found=false
                   7919:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7920:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7921: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7922: do
                   7923:   IFS=$as_save_IFS
                   7924:   test -z "$as_dir" && as_dir=.
                   7925:     for ac_prog in grep ggrep; do
                   7926:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7927:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7928:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7929: # Check for GNU ac_path_GREP and select it if it is found.
                   7930:   # Check for GNU $ac_path_GREP
                   7931: case `"$ac_path_GREP" --version 2>&1` in
                   7932: *GNU*)
                   7933:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7934: *)
                   7935:   ac_count=0
                   7936:   $as_echo_n 0123456789 >"conftest.in"
                   7937:   while :
                   7938:   do
                   7939:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7940:     mv "conftest.tmp" "conftest.in"
                   7941:     cp "conftest.in" "conftest.nl"
                   7942:     $as_echo 'GREP' >> "conftest.nl"
                   7943:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7944:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7945:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7946:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7947:       # Best one so far, save it but keep looking for a better one
                   7948:       ac_cv_path_GREP="$ac_path_GREP"
                   7949:       ac_path_GREP_max=$ac_count
                   7950:     fi
                   7951:     # 10*(2^10) chars as input seems more than enough
                   7952:     test $ac_count -gt 10 && break
                   7953:   done
                   7954:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7955: esac
1.14      bertrand 7956: 
1.15      bertrand 7957:       $ac_path_GREP_found && break 3
                   7958:     done
                   7959:   done
                   7960:   done
                   7961: IFS=$as_save_IFS
                   7962:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 7963:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 7964:   fi
                   7965: else
                   7966:   ac_cv_path_GREP=$GREP
1.1       bertrand 7967: fi
                   7968: 
                   7969: fi
1.15      bertrand 7970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   7971: $as_echo "$ac_cv_path_GREP" >&6; }
                   7972:  GREP="$ac_cv_path_GREP"
                   7973: 
                   7974: 
                   7975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   7976: $as_echo_n "checking for egrep... " >&6; }
1.57      bertrand 7977: if ${ac_cv_path_EGREP+:} false; then :
1.15      bertrand 7978:   $as_echo_n "(cached) " >&6
                   7979: else
                   7980:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   7981:    then ac_cv_path_EGREP="$GREP -E"
                   7982:    else
                   7983:      if test -z "$EGREP"; then
                   7984:   ac_path_EGREP_found=false
                   7985:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7986:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7987: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7988: do
                   7989:   IFS=$as_save_IFS
                   7990:   test -z "$as_dir" && as_dir=.
                   7991:     for ac_prog in egrep; do
                   7992:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7993:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   7994:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   7995: # Check for GNU ac_path_EGREP and select it if it is found.
                   7996:   # Check for GNU $ac_path_EGREP
                   7997: case `"$ac_path_EGREP" --version 2>&1` in
                   7998: *GNU*)
                   7999:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   8000: *)
                   8001:   ac_count=0
                   8002:   $as_echo_n 0123456789 >"conftest.in"
                   8003:   while :
                   8004:   do
                   8005:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8006:     mv "conftest.tmp" "conftest.in"
                   8007:     cp "conftest.in" "conftest.nl"
                   8008:     $as_echo 'EGREP' >> "conftest.nl"
                   8009:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8010:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8011:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8012:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   8013:       # Best one so far, save it but keep looking for a better one
                   8014:       ac_cv_path_EGREP="$ac_path_EGREP"
                   8015:       ac_path_EGREP_max=$ac_count
                   8016:     fi
                   8017:     # 10*(2^10) chars as input seems more than enough
                   8018:     test $ac_count -gt 10 && break
                   8019:   done
                   8020:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8021: esac
                   8022: 
                   8023:       $ac_path_EGREP_found && break 3
                   8024:     done
                   8025:   done
                   8026:   done
                   8027: IFS=$as_save_IFS
                   8028:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 8029:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8030:   fi
1.1       bertrand 8031: else
1.15      bertrand 8032:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 8033: fi
                   8034: 
1.15      bertrand 8035:    fi
1.1       bertrand 8036: fi
1.15      bertrand 8037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   8038: $as_echo "$ac_cv_path_EGREP" >&6; }
                   8039:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 8040: 
                   8041: 
1.15      bertrand 8042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8043: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8044: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8045:   $as_echo_n "(cached) " >&6
1.1       bertrand 8046: else
1.15      bertrand 8047:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8048: /* end confdefs.h.  */
                   8049: #include <stdlib.h>
                   8050: #include <stdarg.h>
                   8051: #include <string.h>
                   8052: #include <float.h>
                   8053: 
                   8054: int
                   8055: main ()
                   8056: {
                   8057: 
                   8058:   ;
                   8059:   return 0;
                   8060: }
                   8061: _ACEOF
1.15      bertrand 8062: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 8063:   ac_cv_header_stdc=yes
                   8064: else
1.15      bertrand 8065:   ac_cv_header_stdc=no
1.1       bertrand 8066: fi
                   8067: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8068: 
                   8069: if test $ac_cv_header_stdc = yes; then
                   8070:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 8071:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8072: /* end confdefs.h.  */
                   8073: #include <string.h>
                   8074: 
                   8075: _ACEOF
                   8076: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8077:   $EGREP "memchr" >/dev/null 2>&1; then :
                   8078: 
1.1       bertrand 8079: else
                   8080:   ac_cv_header_stdc=no
                   8081: fi
                   8082: rm -f conftest*
                   8083: 
                   8084: fi
                   8085: 
                   8086: if test $ac_cv_header_stdc = yes; then
                   8087:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 8088:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8089: /* end confdefs.h.  */
                   8090: #include <stdlib.h>
                   8091: 
                   8092: _ACEOF
                   8093: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8094:   $EGREP "free" >/dev/null 2>&1; then :
                   8095: 
1.1       bertrand 8096: else
                   8097:   ac_cv_header_stdc=no
                   8098: fi
                   8099: rm -f conftest*
                   8100: 
                   8101: fi
                   8102: 
                   8103: if test $ac_cv_header_stdc = yes; then
                   8104:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 8105:   if test "$cross_compiling" = yes; then :
1.1       bertrand 8106:   :
                   8107: else
1.15      bertrand 8108:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8109: /* end confdefs.h.  */
                   8110: #include <ctype.h>
                   8111: #include <stdlib.h>
                   8112: #if ((' ' & 0x0FF) == 0x020)
                   8113: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8114: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8115: #else
                   8116: # define ISLOWER(c) \
                   8117:           (('a' <= (c) && (c) <= 'i') \
                   8118:             || ('j' <= (c) && (c) <= 'r') \
                   8119:             || ('s' <= (c) && (c) <= 'z'))
                   8120: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8121: #endif
                   8122: 
                   8123: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   8124: int
                   8125: main ()
                   8126: {
                   8127:   int i;
                   8128:   for (i = 0; i < 256; i++)
                   8129:     if (XOR (islower (i), ISLOWER (i))
                   8130:    || toupper (i) != TOUPPER (i))
                   8131:       return 2;
                   8132:   return 0;
                   8133: }
                   8134: _ACEOF
1.15      bertrand 8135: if ac_fn_c_try_run "$LINENO"; then :
                   8136: 
1.14      bertrand 8137: else
1.15      bertrand 8138:   ac_cv_header_stdc=no
                   8139: fi
                   8140: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8141:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8142: fi
1.1       bertrand 8143: 
                   8144: fi
                   8145: fi
1.15      bertrand 8146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8147: $as_echo "$ac_cv_header_stdc" >&6; }
                   8148: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8149: 
1.15      bertrand 8150: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8151: 
1.1       bertrand 8152: fi
                   8153: 
1.15      bertrand 8154: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8155: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8156:          inttypes.h stdint.h unistd.h
                   8157: do :
                   8158:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8159: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8160: "
1.36      bertrand 8161: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8162:   cat >>confdefs.h <<_ACEOF
                   8163: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8164: _ACEOF
1.1       bertrand 8165: 
                   8166: fi
                   8167: 
1.15      bertrand 8168: done
                   8169: 
                   8170: 
                   8171: # The cast to long int works around a bug in the HP C Compiler
                   8172: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8173: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8174: # This bug is HP SR number 8606223364.
                   8175: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8176: $as_echo_n "checking size of void *... " >&6; }
1.57      bertrand 8177: if ${ac_cv_sizeof_void_p+:} false; then :
1.15      bertrand 8178:   $as_echo_n "(cached) " >&6
                   8179: else
                   8180:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8181: 
                   8182: else
1.15      bertrand 8183:   if test "$ac_cv_type_void_p" = yes; then
                   8184:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8185: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8186: as_fn_error 77 "cannot compute sizeof (void *)
1.57      bertrand 8187: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8188:    else
                   8189:      ac_cv_sizeof_void_p=0
                   8190:    fi
                   8191: fi
1.1       bertrand 8192: 
                   8193: fi
1.15      bertrand 8194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8195: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8196: 
1.1       bertrand 8197: 
                   8198: 
1.15      bertrand 8199: cat >>confdefs.h <<_ACEOF
                   8200: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8201: _ACEOF
1.1       bertrand 8202: 
1.15      bertrand 8203: 
                   8204: # The cast to long int works around a bug in the HP C Compiler
                   8205: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8206: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8207: # This bug is HP SR number 8606223364.
                   8208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8209: $as_echo_n "checking size of char... " >&6; }
1.57      bertrand 8210: if ${ac_cv_sizeof_char+:} false; then :
1.15      bertrand 8211:   $as_echo_n "(cached) " >&6
                   8212: else
                   8213:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8214: 
                   8215: else
                   8216:   if test "$ac_cv_type_char" = yes; then
                   8217:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8218: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8219: as_fn_error 77 "cannot compute sizeof (char)
1.57      bertrand 8220: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8221:    else
                   8222:      ac_cv_sizeof_char=0
                   8223:    fi
                   8224: fi
                   8225: 
1.1       bertrand 8226: fi
1.15      bertrand 8227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8228: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8229: 
                   8230: 
                   8231: 
1.15      bertrand 8232: cat >>confdefs.h <<_ACEOF
                   8233: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8234: _ACEOF
1.1       bertrand 8235: 
                   8236: 
1.15      bertrand 8237: # The cast to long int works around a bug in the HP C Compiler
                   8238: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8239: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8240: # This bug is HP SR number 8606223364.
                   8241: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8242: $as_echo_n "checking size of short int... " >&6; }
1.57      bertrand 8243: if ${ac_cv_sizeof_short_int+:} false; then :
1.15      bertrand 8244:   $as_echo_n "(cached) " >&6
                   8245: else
                   8246:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8247: 
1.15      bertrand 8248: else
                   8249:   if test "$ac_cv_type_short_int" = yes; then
                   8250:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8251: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8252: as_fn_error 77 "cannot compute sizeof (short int)
1.57      bertrand 8253: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8254:    else
                   8255:      ac_cv_sizeof_short_int=0
                   8256:    fi
                   8257: fi
1.1       bertrand 8258: 
1.15      bertrand 8259: fi
                   8260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8261: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8262: 
                   8263: 
                   8264: 
1.15      bertrand 8265: cat >>confdefs.h <<_ACEOF
                   8266: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8267: _ACEOF
1.1       bertrand 8268: 
                   8269: 
1.15      bertrand 8270: # The cast to long int works around a bug in the HP C Compiler
                   8271: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8272: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8273: # This bug is HP SR number 8606223364.
                   8274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8275: $as_echo_n "checking size of int... " >&6; }
1.57      bertrand 8276: if ${ac_cv_sizeof_int+:} false; then :
1.15      bertrand 8277:   $as_echo_n "(cached) " >&6
                   8278: else
                   8279:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8280: 
1.15      bertrand 8281: else
                   8282:   if test "$ac_cv_type_int" = yes; then
                   8283:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8284: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8285: as_fn_error 77 "cannot compute sizeof (int)
1.57      bertrand 8286: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8287:    else
                   8288:      ac_cv_sizeof_int=0
                   8289:    fi
                   8290: fi
1.1       bertrand 8291: 
1.15      bertrand 8292: fi
                   8293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8294: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8295: 
                   8296: 
                   8297: 
1.15      bertrand 8298: cat >>confdefs.h <<_ACEOF
                   8299: #define SIZEOF_INT $ac_cv_sizeof_int
                   8300: _ACEOF
1.1       bertrand 8301: 
                   8302: 
1.15      bertrand 8303: # The cast to long int works around a bug in the HP C Compiler
                   8304: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8305: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8306: # This bug is HP SR number 8606223364.
                   8307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8308: $as_echo_n "checking size of long int... " >&6; }
1.57      bertrand 8309: if ${ac_cv_sizeof_long_int+:} false; then :
1.15      bertrand 8310:   $as_echo_n "(cached) " >&6
                   8311: else
                   8312:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8313: 
1.14      bertrand 8314: else
1.15      bertrand 8315:   if test "$ac_cv_type_long_int" = yes; then
                   8316:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8317: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8318: as_fn_error 77 "cannot compute sizeof (long int)
1.57      bertrand 8319: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8320:    else
                   8321:      ac_cv_sizeof_long_int=0
                   8322:    fi
                   8323: fi
1.1       bertrand 8324: 
                   8325: fi
1.15      bertrand 8326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8327: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8328: 
1.1       bertrand 8329: 
                   8330: 
1.15      bertrand 8331: cat >>confdefs.h <<_ACEOF
                   8332: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8333: _ACEOF
1.15      bertrand 8334: 
                   8335: 
                   8336: # The cast to long int works around a bug in the HP C Compiler
                   8337: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8338: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8339: # This bug is HP SR number 8606223364.
                   8340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8341: $as_echo_n "checking size of long long int... " >&6; }
1.57      bertrand 8342: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15      bertrand 8343:   $as_echo_n "(cached) " >&6
                   8344: else
                   8345:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8346: 
1.14      bertrand 8347: else
1.15      bertrand 8348:   if test "$ac_cv_type_long_long_int" = yes; then
                   8349:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8350: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8351: as_fn_error 77 "cannot compute sizeof (long long int)
1.57      bertrand 8352: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8353:    else
                   8354:      ac_cv_sizeof_long_long_int=0
                   8355:    fi
                   8356: fi
1.1       bertrand 8357: 
1.14      bertrand 8358: fi
1.15      bertrand 8359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8360: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8361: 
                   8362: 
                   8363: 
                   8364: cat >>confdefs.h <<_ACEOF
                   8365: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8366: _ACEOF
1.1       bertrand 8367: 
                   8368: 
1.15      bertrand 8369: # The cast to long int works around a bug in the HP C Compiler
                   8370: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8371: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8372: # This bug is HP SR number 8606223364.
                   8373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8374: $as_echo_n "checking size of float... " >&6; }
1.57      bertrand 8375: if ${ac_cv_sizeof_float+:} false; then :
1.15      bertrand 8376:   $as_echo_n "(cached) " >&6
                   8377: else
                   8378:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8379: 
                   8380: else
1.15      bertrand 8381:   if test "$ac_cv_type_float" = yes; then
                   8382:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8383: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8384: as_fn_error 77 "cannot compute sizeof (float)
1.57      bertrand 8385: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8386:    else
                   8387:      ac_cv_sizeof_float=0
                   8388:    fi
1.14      bertrand 8389: fi
                   8390: 
1.1       bertrand 8391: fi
1.15      bertrand 8392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8393: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8394: 
                   8395: 
                   8396: 
                   8397: cat >>confdefs.h <<_ACEOF
                   8398: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8399: _ACEOF
1.1       bertrand 8400: 
                   8401: 
1.15      bertrand 8402: # The cast to long int works around a bug in the HP C Compiler
                   8403: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8404: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8405: # This bug is HP SR number 8606223364.
                   8406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8407: $as_echo_n "checking size of double... " >&6; }
1.57      bertrand 8408: if ${ac_cv_sizeof_double+:} false; then :
1.15      bertrand 8409:   $as_echo_n "(cached) " >&6
                   8410: else
                   8411:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8412: 
1.15      bertrand 8413: else
                   8414:   if test "$ac_cv_type_double" = yes; then
                   8415:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8416: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8417: as_fn_error 77 "cannot compute sizeof (double)
1.57      bertrand 8418: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8419:    else
                   8420:      ac_cv_sizeof_double=0
                   8421:    fi
                   8422: fi
1.1       bertrand 8423: 
1.15      bertrand 8424: fi
                   8425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8426: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8427: 
1.1       bertrand 8428: 
                   8429: 
1.15      bertrand 8430: cat >>confdefs.h <<_ACEOF
                   8431: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8432: _ACEOF
1.15      bertrand 8433: 
                   8434: 
                   8435: # The cast to long int works around a bug in the HP C Compiler
                   8436: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8437: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8438: # This bug is HP SR number 8606223364.
                   8439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8440: $as_echo_n "checking size of long double... " >&6; }
1.57      bertrand 8441: if ${ac_cv_sizeof_long_double+:} false; then :
1.15      bertrand 8442:   $as_echo_n "(cached) " >&6
                   8443: else
                   8444:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8445: 
1.14      bertrand 8446: else
1.15      bertrand 8447:   if test "$ac_cv_type_long_double" = yes; then
                   8448:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8449: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8450: as_fn_error 77 "cannot compute sizeof (long double)
1.57      bertrand 8451: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8452:    else
                   8453:      ac_cv_sizeof_long_double=0
                   8454:    fi
                   8455: fi
1.1       bertrand 8456: 
                   8457: fi
1.15      bertrand 8458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8459: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8460: 
1.1       bertrand 8461: 
                   8462: 
1.15      bertrand 8463: cat >>confdefs.h <<_ACEOF
                   8464: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8465: _ACEOF
                   8466: 
                   8467: 
1.15      bertrand 8468: 
                   8469: ac_header_dirent=no
                   8470: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8471:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8473: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.57      bertrand 8474: if eval \${$as_ac_Header+:} false; then :
1.15      bertrand 8475:   $as_echo_n "(cached) " >&6
1.1       bertrand 8476: else
1.15      bertrand 8477:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8478: /* end confdefs.h.  */
                   8479: #include <sys/types.h>
1.15      bertrand 8480: #include <$ac_hdr>
1.1       bertrand 8481: 
1.15      bertrand 8482: int
                   8483: main ()
                   8484: {
                   8485: if ((DIR *) 0)
                   8486: return 0;
                   8487:   ;
                   8488:   return 0;
                   8489: }
1.1       bertrand 8490: _ACEOF
1.15      bertrand 8491: if ac_fn_c_try_compile "$LINENO"; then :
                   8492:   eval "$as_ac_Header=yes"
1.1       bertrand 8493: else
1.15      bertrand 8494:   eval "$as_ac_Header=no"
                   8495: fi
                   8496: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8497: fi
1.15      bertrand 8498: eval ac_res=\$$as_ac_Header
                   8499:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8500: $as_echo "$ac_res" >&6; }
1.36      bertrand 8501: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8502:   cat >>confdefs.h <<_ACEOF
                   8503: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8504: _ACEOF
1.1       bertrand 8505: 
1.15      bertrand 8506: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8507: fi
                   8508: 
1.15      bertrand 8509: done
                   8510: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8511: if test $ac_header_dirent = dirent.h; then
                   8512:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8513: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8514: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8515:   $as_echo_n "(cached) " >&6
                   8516: else
                   8517:   ac_func_search_save_LIBS=$LIBS
                   8518: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8519: /* end confdefs.h.  */
                   8520: 
                   8521: /* Override any GCC internal prototype to avoid an error.
                   8522:    Use char because int might match the return type of a GCC
                   8523:    builtin and then its argument prototype would still apply.  */
                   8524: #ifdef __cplusplus
                   8525: extern "C"
                   8526: #endif
                   8527: char opendir ();
                   8528: int
                   8529: main ()
                   8530: {
                   8531: return opendir ();
                   8532:   ;
                   8533:   return 0;
                   8534: }
1.14      bertrand 8535: _ACEOF
1.15      bertrand 8536: for ac_lib in '' dir; do
                   8537:   if test -z "$ac_lib"; then
                   8538:     ac_res="none required"
                   8539:   else
                   8540:     ac_res=-l$ac_lib
                   8541:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8542:   fi
                   8543:   if ac_fn_c_try_link "$LINENO"; then :
                   8544:   ac_cv_search_opendir=$ac_res
                   8545: fi
                   8546: rm -f core conftest.err conftest.$ac_objext \
                   8547:     conftest$ac_exeext
1.57      bertrand 8548:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8549:   break
                   8550: fi
                   8551: done
1.57      bertrand 8552: if ${ac_cv_search_opendir+:} false; then :
1.1       bertrand 8553: 
1.15      bertrand 8554: else
                   8555:   ac_cv_search_opendir=no
                   8556: fi
                   8557: rm conftest.$ac_ext
                   8558: LIBS=$ac_func_search_save_LIBS
                   8559: fi
                   8560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8561: $as_echo "$ac_cv_search_opendir" >&6; }
                   8562: ac_res=$ac_cv_search_opendir
                   8563: if test "$ac_res" != no; then :
                   8564:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8565: 
1.14      bertrand 8566: fi
1.1       bertrand 8567: 
                   8568: else
1.15      bertrand 8569:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8570: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8571: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8572:   $as_echo_n "(cached) " >&6
                   8573: else
                   8574:   ac_func_search_save_LIBS=$LIBS
                   8575: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8576: /* end confdefs.h.  */
1.15      bertrand 8577: 
                   8578: /* Override any GCC internal prototype to avoid an error.
                   8579:    Use char because int might match the return type of a GCC
                   8580:    builtin and then its argument prototype would still apply.  */
                   8581: #ifdef __cplusplus
                   8582: extern "C"
                   8583: #endif
                   8584: char opendir ();
1.1       bertrand 8585: int
                   8586: main ()
                   8587: {
1.15      bertrand 8588: return opendir ();
1.1       bertrand 8589:   ;
                   8590:   return 0;
                   8591: }
                   8592: _ACEOF
1.15      bertrand 8593: for ac_lib in '' x; do
                   8594:   if test -z "$ac_lib"; then
                   8595:     ac_res="none required"
                   8596:   else
                   8597:     ac_res=-l$ac_lib
                   8598:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8599:   fi
                   8600:   if ac_fn_c_try_link "$LINENO"; then :
                   8601:   ac_cv_search_opendir=$ac_res
                   8602: fi
                   8603: rm -f core conftest.err conftest.$ac_objext \
                   8604:     conftest$ac_exeext
1.57      bertrand 8605:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8606:   break
                   8607: fi
                   8608: done
1.57      bertrand 8609: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8610: 
1.1       bertrand 8611: else
1.15      bertrand 8612:   ac_cv_search_opendir=no
                   8613: fi
                   8614: rm conftest.$ac_ext
                   8615: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8616: fi
1.15      bertrand 8617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8618: $as_echo "$ac_cv_search_opendir" >&6; }
                   8619: ac_res=$ac_cv_search_opendir
                   8620: if test "$ac_res" != no; then :
                   8621:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8622: 
1.1       bertrand 8623: fi
                   8624: 
                   8625: fi
                   8626: 
1.15      bertrand 8627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8628: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8629: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8630:   $as_echo_n "(cached) " >&6
1.1       bertrand 8631: else
1.15      bertrand 8632:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8633: /* end confdefs.h.  */
1.15      bertrand 8634: #include <stdlib.h>
                   8635: #include <stdarg.h>
                   8636: #include <string.h>
                   8637: #include <float.h>
                   8638: 
1.1       bertrand 8639: int
                   8640: main ()
                   8641: {
1.15      bertrand 8642: 
1.1       bertrand 8643:   ;
                   8644:   return 0;
                   8645: }
                   8646: _ACEOF
1.15      bertrand 8647: if ac_fn_c_try_compile "$LINENO"; then :
                   8648:   ac_cv_header_stdc=yes
1.14      bertrand 8649: else
1.15      bertrand 8650:   ac_cv_header_stdc=no
                   8651: fi
                   8652: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8653: 
                   8654: if test $ac_cv_header_stdc = yes; then
                   8655:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8656:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8657: /* end confdefs.h.  */
                   8658: #include <string.h>
                   8659: 
                   8660: _ACEOF
                   8661: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8662:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8663: 
1.15      bertrand 8664: else
                   8665:   ac_cv_header_stdc=no
1.1       bertrand 8666: fi
1.15      bertrand 8667: rm -f conftest*
1.14      bertrand 8668: 
1.1       bertrand 8669: fi
                   8670: 
1.15      bertrand 8671: if test $ac_cv_header_stdc = yes; then
                   8672:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8673:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8674: /* end confdefs.h.  */
                   8675: #include <stdlib.h>
                   8676: 
1.14      bertrand 8677: _ACEOF
1.15      bertrand 8678: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8679:   $EGREP "free" >/dev/null 2>&1; then :
                   8680: 
                   8681: else
                   8682:   ac_cv_header_stdc=no
                   8683: fi
                   8684: rm -f conftest*
1.1       bertrand 8685: 
                   8686: fi
                   8687: 
1.15      bertrand 8688: if test $ac_cv_header_stdc = yes; then
                   8689:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8690:   if test "$cross_compiling" = yes; then :
                   8691:   :
1.1       bertrand 8692: else
1.15      bertrand 8693:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8694: /* end confdefs.h.  */
1.15      bertrand 8695: #include <ctype.h>
                   8696: #include <stdlib.h>
                   8697: #if ((' ' & 0x0FF) == 0x020)
                   8698: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8699: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8700: #else
                   8701: # define ISLOWER(c) \
                   8702:           (('a' <= (c) && (c) <= 'i') \
                   8703:             || ('j' <= (c) && (c) <= 'r') \
                   8704:             || ('s' <= (c) && (c) <= 'z'))
                   8705: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8706: #endif
1.1       bertrand 8707: 
1.15      bertrand 8708: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8709: int
                   8710: main ()
                   8711: {
1.15      bertrand 8712:   int i;
                   8713:   for (i = 0; i < 256; i++)
                   8714:     if (XOR (islower (i), ISLOWER (i))
                   8715:    || toupper (i) != TOUPPER (i))
                   8716:       return 2;
1.1       bertrand 8717:   return 0;
                   8718: }
                   8719: _ACEOF
1.15      bertrand 8720: if ac_fn_c_try_run "$LINENO"; then :
                   8721: 
1.14      bertrand 8722: else
1.15      bertrand 8723:   ac_cv_header_stdc=no
                   8724: fi
                   8725: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8726:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8727: fi
1.14      bertrand 8728: 
1.1       bertrand 8729: fi
                   8730: fi
1.15      bertrand 8731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8732: $as_echo "$ac_cv_header_stdc" >&6; }
                   8733: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8734: 
1.15      bertrand 8735: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8736: 
                   8737: fi
                   8738: 
1.15      bertrand 8739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8740: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.57      bertrand 8741: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15      bertrand 8742:   $as_echo_n "(cached) " >&6
1.1       bertrand 8743: else
1.15      bertrand 8744:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8745: /* end confdefs.h.  */
1.14      bertrand 8746: #include <sys/types.h>
1.15      bertrand 8747: #include <sys/wait.h>
                   8748: #ifndef WEXITSTATUS
                   8749: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8750: #endif
                   8751: #ifndef WIFEXITED
                   8752: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8753: #endif
1.1       bertrand 8754: 
                   8755: int
                   8756: main ()
                   8757: {
1.15      bertrand 8758:   int s;
                   8759:   wait (&s);
                   8760:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8761:   ;
                   8762:   return 0;
                   8763: }
                   8764: _ACEOF
1.15      bertrand 8765: if ac_fn_c_try_compile "$LINENO"; then :
                   8766:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8767: else
1.15      bertrand 8768:   ac_cv_header_sys_wait_h=no
                   8769: fi
                   8770: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8771: fi
                   8772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8773: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8774: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8775: 
1.15      bertrand 8776: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8777: 
                   8778: fi
                   8779: 
1.15      bertrand 8780: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8781:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8782:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8783: do :
                   8784:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8785: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8786: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8787:   cat >>confdefs.h <<_ACEOF
                   8788: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8789: _ACEOF
                   8790: 
                   8791: fi
                   8792: 
1.15      bertrand 8793: done
                   8794: 
1.1       bertrand 8795: 
1.15      bertrand 8796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8797: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.57      bertrand 8798: if ${ac_cv_c_const+:} false; then :
1.15      bertrand 8799:   $as_echo_n "(cached) " >&6
1.1       bertrand 8800: else
1.15      bertrand 8801:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8802: /* end confdefs.h.  */
                   8803: 
                   8804: int
                   8805: main ()
                   8806: {
1.15      bertrand 8807: /* FIXME: Include the comments suggested by Paul. */
                   8808: #ifndef __cplusplus
                   8809:   /* Ultrix mips cc rejects this.  */
                   8810:   typedef int charset[2];
                   8811:   const charset cs;
                   8812:   /* SunOS 4.1.1 cc rejects this.  */
                   8813:   char const *const *pcpcc;
                   8814:   char **ppc;
                   8815:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8816:   struct point {int x, y;};
                   8817:   static struct point const zero = {0,0};
                   8818:   /* AIX XL C 1.02.0.0 rejects this.
                   8819:      It does not let you subtract one const X* pointer from another in
                   8820:      an arm of an if-expression whose if-part is not a constant
                   8821:      expression */
                   8822:   const char *g = "string";
                   8823:   pcpcc = &g + (g ? g-g : 0);
                   8824:   /* HPUX 7.0 cc rejects these. */
                   8825:   ++pcpcc;
                   8826:   ppc = (char**) pcpcc;
                   8827:   pcpcc = (char const *const *) ppc;
                   8828:   { /* SCO 3.2v4 cc rejects this.  */
                   8829:     char *t;
                   8830:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8831: 
                   8832:     *t++ = 0;
                   8833:     if (s) return 0;
                   8834:   }
                   8835:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8836:     int x[] = {25, 17};
                   8837:     const int *foo = &x[0];
                   8838:     ++foo;
                   8839:   }
                   8840:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8841:     typedef const int *iptr;
                   8842:     iptr p = 0;
                   8843:     ++p;
                   8844:   }
                   8845:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8846:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8847:     struct s { int j; const int *ap[3]; };
                   8848:     struct s *b; b->j = 5;
                   8849:   }
                   8850:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8851:     const int foo = 10;
                   8852:     if (!foo) return 0;
                   8853:   }
                   8854:   return !cs[0] && !zero.x;
                   8855: #endif
                   8856: 
1.14      bertrand 8857:   ;
1.1       bertrand 8858:   return 0;
                   8859: }
                   8860: _ACEOF
1.15      bertrand 8861: if ac_fn_c_try_compile "$LINENO"; then :
                   8862:   ac_cv_c_const=yes
1.14      bertrand 8863: else
1.15      bertrand 8864:   ac_cv_c_const=no
1.1       bertrand 8865: fi
1.14      bertrand 8866: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8867: fi
1.15      bertrand 8868: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8869: $as_echo "$ac_cv_c_const" >&6; }
                   8870: if test $ac_cv_c_const = no; then
1.1       bertrand 8871: 
1.15      bertrand 8872: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8873: 
1.15      bertrand 8874: fi
1.1       bertrand 8875: 
1.15      bertrand 8876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8877: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.57      bertrand 8878: if ${ac_cv_type_uid_t+:} false; then :
1.15      bertrand 8879:   $as_echo_n "(cached) " >&6
1.1       bertrand 8880: else
1.15      bertrand 8881:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8882: /* end confdefs.h.  */
1.15      bertrand 8883: #include <sys/types.h>
                   8884: 
1.1       bertrand 8885: _ACEOF
1.15      bertrand 8886: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8887:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8888:   ac_cv_type_uid_t=yes
1.1       bertrand 8889: else
1.15      bertrand 8890:   ac_cv_type_uid_t=no
                   8891: fi
                   8892: rm -f conftest*
1.14      bertrand 8893: 
1.1       bertrand 8894: fi
1.15      bertrand 8895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8896: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8897: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8898: 
1.15      bertrand 8899: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8900: 
                   8901: 
1.15      bertrand 8902: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8903: 
                   8904: fi
                   8905: 
1.15      bertrand 8906: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.57      bertrand 8907: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1       bertrand 8908: 
                   8909: else
1.15      bertrand 8910: 
                   8911: cat >>confdefs.h <<_ACEOF
                   8912: #define pid_t int
1.14      bertrand 8913: _ACEOF
                   8914: 
1.15      bertrand 8915: fi
1.14      bertrand 8916: 
1.15      bertrand 8917: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.57      bertrand 8918: if test "x$ac_cv_type_size_t" = xyes; then :
1.14      bertrand 8919: 
1.15      bertrand 8920: else
1.1       bertrand 8921: 
1.15      bertrand 8922: cat >>confdefs.h <<_ACEOF
                   8923: #define size_t unsigned int
1.1       bertrand 8924: _ACEOF
1.14      bertrand 8925: 
1.1       bertrand 8926: fi
                   8927: 
1.15      bertrand 8928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8929: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.57      bertrand 8930: if ${ac_cv_header_time+:} false; then :
1.15      bertrand 8931:   $as_echo_n "(cached) " >&6
1.1       bertrand 8932: else
1.15      bertrand 8933:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8934: /* end confdefs.h.  */
1.15      bertrand 8935: #include <sys/types.h>
                   8936: #include <sys/time.h>
                   8937: #include <time.h>
1.1       bertrand 8938: 
1.14      bertrand 8939: int
                   8940: main ()
                   8941: {
1.15      bertrand 8942: if ((struct tm *) 0)
                   8943: return 0;
1.14      bertrand 8944:   ;
                   8945:   return 0;
                   8946: }
1.1       bertrand 8947: _ACEOF
1.15      bertrand 8948: if ac_fn_c_try_compile "$LINENO"; then :
                   8949:   ac_cv_header_time=yes
1.1       bertrand 8950: else
1.15      bertrand 8951:   ac_cv_header_time=no
1.1       bertrand 8952: fi
1.15      bertrand 8953: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8954: fi
1.15      bertrand 8955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   8956: $as_echo "$ac_cv_header_time" >&6; }
                   8957: if test $ac_cv_header_time = yes; then
1.1       bertrand 8958: 
1.15      bertrand 8959: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 8960: 
                   8961: fi
                   8962: 
1.15      bertrand 8963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   8964: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.57      bertrand 8965: if ${ac_cv_struct_tm+:} false; then :
1.15      bertrand 8966:   $as_echo_n "(cached) " >&6
1.1       bertrand 8967: else
1.15      bertrand 8968:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8969: /* end confdefs.h.  */
1.15      bertrand 8970: #include <sys/types.h>
                   8971: #include <time.h>
1.1       bertrand 8972: 
                   8973: int
                   8974: main ()
                   8975: {
1.15      bertrand 8976: struct tm tm;
                   8977:                     int *p = &tm.tm_sec;
                   8978:                     return !p;
1.1       bertrand 8979:   ;
                   8980:   return 0;
                   8981: }
                   8982: _ACEOF
1.15      bertrand 8983: if ac_fn_c_try_compile "$LINENO"; then :
                   8984:   ac_cv_struct_tm=time.h
1.1       bertrand 8985: else
1.15      bertrand 8986:   ac_cv_struct_tm=sys/time.h
                   8987: fi
                   8988: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8989: fi
                   8990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   8991: $as_echo "$ac_cv_struct_tm" >&6; }
                   8992: if test $ac_cv_struct_tm = sys/time.h; then
                   8993: 
                   8994: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 8995: 
1.1       bertrand 8996: fi
                   8997: 
                   8998: 
1.15      bertrand 8999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   9000: $as_echo_n "checking return type of signal handlers... " >&6; }
1.57      bertrand 9001: if ${ac_cv_type_signal+:} false; then :
1.15      bertrand 9002:   $as_echo_n "(cached) " >&6
1.1       bertrand 9003: else
1.15      bertrand 9004:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9005: /* end confdefs.h.  */
1.15      bertrand 9006: #include <sys/types.h>
                   9007: #include <signal.h>
1.1       bertrand 9008: 
                   9009: int
                   9010: main ()
                   9011: {
1.15      bertrand 9012: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 9013:   ;
                   9014:   return 0;
                   9015: }
                   9016: _ACEOF
1.15      bertrand 9017: if ac_fn_c_try_compile "$LINENO"; then :
                   9018:   ac_cv_type_signal=int
1.1       bertrand 9019: else
1.15      bertrand 9020:   ac_cv_type_signal=void
1.1       bertrand 9021: fi
1.15      bertrand 9022: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9023: fi
1.15      bertrand 9024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   9025: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 9026: 
1.15      bertrand 9027: cat >>confdefs.h <<_ACEOF
                   9028: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 9029: _ACEOF
1.1       bertrand 9030: 
1.15      bertrand 9031: 
1.35      bertrand 9032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken siginfo->si_pid" >&5
                   9033: $as_echo_n "checking for broken siginfo->si_pid... " >&6; }
                   9034: if test "$cross_compiling" = yes; then :
                   9035:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   9036: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 9037: as_fn_error $? "cannot run test program while cross compiling
1.57      bertrand 9038: See \`config.log' for more details" "$LINENO" 5; }
1.35      bertrand 9039: else
                   9040:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9041: /* end confdefs.h.  */
                   9042: #include <unistd.h>
                   9043: #include <signal.h>
                   9044: int flag;
                   9045: void handler(int signal, siginfo_t *siginfo, void *context)
1.39      bertrand 9046: { flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; }
1.35      bertrand 9047: int
                   9048: main ()
                   9049: {
                   9050: struct sigaction    action;
                   9051: action.sa_sigaction = handler;
                   9052: action.sa_flags = SA_SIGINFO;
                   9053: sigaction(SIGUSR1, &action, NULL);
                   9054: raise(SIGUSR1);
                   9055: return(flag);
                   9056:   ;
                   9057:   return 0;
                   9058: }
                   9059: _ACEOF
                   9060: if ac_fn_c_try_run "$LINENO"; then :
                   9061:   BROKEN_SIGINFO=-U_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9062: $as_echo "no" >&6; }
                   9063: else
                   9064:   BROKEN_SIGINFO=-D_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9065: $as_echo "yes" >&6; }
                   9066: fi
                   9067: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9068:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   9069: fi
                   9070: 
                   9071: 
1.15      bertrand 9072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   9073: $as_echo_n "checking for working strcoll... " >&6; }
1.57      bertrand 9074: if ${ac_cv_func_strcoll_works+:} false; then :
1.15      bertrand 9075:   $as_echo_n "(cached) " >&6
                   9076: else
                   9077:   if test "$cross_compiling" = yes; then :
                   9078:   ac_cv_func_strcoll_works=no
                   9079: else
                   9080:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9081: /* end confdefs.h.  */
                   9082: $ac_includes_default
                   9083: int
                   9084: main ()
                   9085: {
                   9086: return (strcoll ("abc", "def") >= 0 ||
                   9087:     strcoll ("ABC", "DEF") >= 0 ||
                   9088:     strcoll ("123", "456") >= 0)
                   9089:   ;
                   9090:   return 0;
                   9091: }
                   9092: _ACEOF
                   9093: if ac_fn_c_try_run "$LINENO"; then :
                   9094:   ac_cv_func_strcoll_works=yes
                   9095: else
                   9096:   ac_cv_func_strcoll_works=no
                   9097: fi
                   9098: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9099:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 9100: fi
1.1       bertrand 9101: 
                   9102: fi
1.15      bertrand 9103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   9104: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   9105: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 9106: 
1.15      bertrand 9107: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 9108: 
1.15      bertrand 9109: fi
1.1       bertrand 9110: 
1.15      bertrand 9111: for ac_func in strftime
                   9112: do :
                   9113:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.57      bertrand 9114: if test "x$ac_cv_func_strftime" = xyes; then :
1.15      bertrand 9115:   cat >>confdefs.h <<_ACEOF
                   9116: #define HAVE_STRFTIME 1
                   9117: _ACEOF
1.1       bertrand 9118: 
                   9119: else
1.15      bertrand 9120:   # strftime is in -lintl on SCO UNIX.
                   9121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   9122: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.57      bertrand 9123: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15      bertrand 9124:   $as_echo_n "(cached) " >&6
                   9125: else
                   9126:   ac_check_lib_save_LIBS=$LIBS
                   9127: LIBS="-lintl  $LIBS"
                   9128: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9129: /* end confdefs.h.  */
                   9130: 
                   9131: /* Override any GCC internal prototype to avoid an error.
                   9132:    Use char because int might match the return type of a GCC
                   9133:    builtin and then its argument prototype would still apply.  */
                   9134: #ifdef __cplusplus
                   9135: extern "C"
                   9136: #endif
1.15      bertrand 9137: char strftime ();
1.1       bertrand 9138: int
                   9139: main ()
                   9140: {
1.15      bertrand 9141: return strftime ();
1.1       bertrand 9142:   ;
                   9143:   return 0;
                   9144: }
                   9145: _ACEOF
1.15      bertrand 9146: if ac_fn_c_try_link "$LINENO"; then :
                   9147:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9148: else
1.15      bertrand 9149:   ac_cv_lib_intl_strftime=no
                   9150: fi
                   9151: rm -f core conftest.err conftest.$ac_objext \
                   9152:     conftest$ac_exeext conftest.$ac_ext
                   9153: LIBS=$ac_check_lib_save_LIBS
                   9154: fi
                   9155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9156: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.57      bertrand 9157: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15      bertrand 9158:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9159: 
                   9160: LIBS="-lintl $LIBS"
                   9161: fi
                   9162: 
                   9163: fi
                   9164: done
                   9165: 
                   9166: for ac_func in vprintf
                   9167: do :
                   9168:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.57      bertrand 9169: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15      bertrand 9170:   cat >>confdefs.h <<_ACEOF
                   9171: #define HAVE_VPRINTF 1
                   9172: _ACEOF
                   9173: 
                   9174: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.57      bertrand 9175: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15      bertrand 9176: 
                   9177: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9178: 
                   9179: fi
                   9180: 
                   9181: fi
1.15      bertrand 9182: done
                   9183: 
                   9184: 
                   9185: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9186:        strerror strspn strstr strtod
                   9187: do :
                   9188:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9189: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9190: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9191:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9192: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9193: _ACEOF
                   9194: 
                   9195: fi
                   9196: done
                   9197: 
                   9198: 
1.15      bertrand 9199: 
                   9200: # Check whether --with-openssl_arch was given.
                   9201: if test "${with_openssl_arch+set}" = set; then :
                   9202:   withval=$with_openssl_arch;
                   9203: else
                   9204:   with_openssl_arch=none
                   9205: fi
                   9206: 
                   9207: 
1.31      bertrand 9208: if test $(uname) = "OS/2"; then
1.34      bertrand 9209:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9210: else
1.31      bertrand 9211:    if test "x$with_openssl_arch" = xnone; then
1.67      bertrand 9212:        (cd tools/$OPENSSL && ./config no-asm)
1.31      bertrand 9213:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9214:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9215:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9216:    elif test "x$with_openssl_arch" = xlist; then
                   9217:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9218:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9219:    else
1.67      bertrand 9220:        (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31      bertrand 9221:    fi
1.15      bertrand 9222: fi
1.1       bertrand 9223: 
                   9224: if test "$MYGNUPLOT" = "yes"; then
                   9225:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9226:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9227:                (cd "$srcdir/tools" && tar -xf -)
                   9228:    fi
1.69      bertrand 9229: 
                   9230: 
                   9231: subdirs="$subdirs tools/$GNUPLOT"
1.1       bertrand 9232: 
                   9233:    GNUPLOT_COMPILATION=$GNUPLOT
                   9234: else
                   9235:    GNUPLOT_COMPILATION=
                   9236: fi
                   9237: 
                   9238: 
                   9239: 
1.69      bertrand 9240: HOST=$host
                   9241: 
                   9242: 
1.1       bertrand 9243: case $host_cpu in
                   9244: 
                   9245:     i?86)
                   9246:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9247:            -Wno-pointer-sign"
                   9248:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9249:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9250:    break ;;
                   9251: 
                   9252:    x86_64*)
                   9253:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9254:            -Wno-pointer-sign"
                   9255:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9256:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9257:    break ;;
                   9258: 
                   9259:     alpha*)
                   9260:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   9261:            -Wno-pointer-sign"
                   9262:    FFLAGS="$FFLAGS -mieee -Wall"
                   9263:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   9264:    break ;;
                   9265: 
                   9266:     sparc*)
                   9267:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   9268:            -Wno-pointer-sign"
                   9269:    FFLAGS="$FFLAGS -Wall"
                   9270:    FCFLAGS="$FCFLAGS -Wall"
                   9271:    break ;;
                   9272: 
                   9273: esac
                   9274: 
1.8       bertrand 9275: case $host_os in
                   9276: 
                   9277:    cygwin*)
                   9278:        OS=Cygwin
                   9279:    break ;;
                   9280: 
                   9281:    interix*)
                   9282:        OS=Interix
                   9283:    break ;;
                   9284: 
                   9285:    *)
                   9286:        OS=$(uname)
                   9287:    break ;;
                   9288: 
                   9289: esac
                   9290: 
                   9291: 
                   9292: 
1.1       bertrand 9293: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9294: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49      bertrand 9295: MALLOC=
1.1       bertrand 9296: 
1.22      bertrand 9297: case $OS in
1.17      bertrand 9298: 
                   9299:     Darwin)
1.31      bertrand 9300:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9301:        NESTED_FUNCTIONS=-fnested-functions
                   9302:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9303:        IPCS_SYSV=-UIPCS_SYSV
1.23      bertrand 9304:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9305:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9306:                --disable-shared --enable-static --enable-threads \
                   9307:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9308:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9309:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9310:        C_STANDARD=-std=gnu99
1.75    ! bertrand 9311:        ELF=
1.17      bertrand 9312:    break ;;
                   9313: 
1.31      bertrand 9314:     Cygwin)
                   9315:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9316:        NESTED_FUNCTIONS=
                   9317:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9318:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9319:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9320:                --disable-shared --enable-static --enable-threads \
                   9321:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9322:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9323:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9324:        C_STANDARD=-std=gnu99
1.75    ! bertrand 9325:        ELF=
1.17      bertrand 9326:    break ;;
                   9327: 
1.34      bertrand 9328:    Interix)
                   9329:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9330:        NESTED_FUNCTIONS=
                   9331:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9332:        IPCS_SYSV=-UIPCS_SYSV
1.34      bertrand 9333:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9334:                --disable-shared --enable-static --enable-threads \
                   9335:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9336:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9337:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 9338:        C_STANDARD=-std=gnu99
1.75    ! bertrand 9339:        ELF=
1.34      bertrand 9340:    break;;
                   9341: 
1.31      bertrand 9342:     AIX)
                   9343:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9344:        NESTED_FUNCTIONS=
                   9345:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9346:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9347:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9348:                --disable-shared --enable-static --enable-threads \
                   9349:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9350:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9351:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9352:        C_STANDARD=-std=gnu99
1.75    ! bertrand 9353:        ELF=
1.18      bertrand 9354:    break ;;
                   9355: 
1.31      bertrand 9356:     OS/2)
1.37      bertrand 9357:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9358:            FINAL_ENCODING=CP850; \
                   9359:        fi;
1.31      bertrand 9360:        OS=OS2
                   9361:        NESTED_FUNCTIONS=
                   9362:        EXPORT_DYNAMIC=-Zmap
                   9363:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9364:        IPCS_SYSV=-DIPCS_SYSV
1.31      bertrand 9365:        ac_configure_args="$ac_configure_args --without-readline \
1.49      bertrand 9366:                --without-cairo --disable-shared --enable-static \
1.69      bertrand 9367:                --enable-threads \
                   9368:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9369:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9370:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9371:        C_STANDARD=
1.75    ! bertrand 9372:        ELF=
1.31      bertrand 9373:    break;;
                   9374: 
1.35      bertrand 9375:    OpenBSD)
1.37      bertrand 9376:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9377:            FINAL_ENCODING=UTF-8; \
                   9378:        fi;
                   9379:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9380:        NESTED_FUNCTIONS=
                   9381:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9382:        IPCS_SYSV=-DIPCS_SYSV
1.35      bertrand 9383:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9384:                --disable-shared --enable-static --enable-threads \
                   9385:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9386:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9387:                LDFLAGS=\"$LDFLAGS\""
1.35      bertrand 9388:        C_STANDARD=-std=gnu99
1.75    ! bertrand 9389:        ELF=
1.35      bertrand 9390:    break;;
                   9391: 
1.49      bertrand 9392:     SunOS)
                   9393:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9394:        NESTED_FUNCTIONS=
                   9395:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9396: 
                   9397:        if test $IPCS_SYSV = no; then
                   9398:            IPCS_SYSV=-UIPCS_SYSV
                   9399:        else
                   9400:            IPCS_SYSV=-DIPCS_SYSV
                   9401:        fi
                   9402: 
                   9403:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9404:                --disable-shared --enable-static --enable-threads \
                   9405:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9406:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9407:                LDFLAGS=\"$LDFLAGS\""
1.49      bertrand 9408:        C_STANDARD=-std=gnu99
                   9409:        MALLOC=-lumem
1.75    ! bertrand 9410:        ELF=
        !          9411:    break ;;
        !          9412: 
        !          9413:     NetBSD)
        !          9414:        EXPORT_DYNAMIC=-Wl,--export-dynamic
        !          9415:        NESTED_FUNCTIONS=
        !          9416:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
        !          9417: 
        !          9418:        if test $IPCS_SYSV = no; then
        !          9419:            IPCS_SYSV=-UIPCS_SYSV
        !          9420:        else
        !          9421:            IPCS_SYSV=-DIPCS_SYSV
        !          9422:        fi
        !          9423: 
        !          9424:        ac_configure_args="$ac_configure_args --with-readline=builtin \
        !          9425:                --disable-shared --enable-static --enable-threads \
        !          9426:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
        !          9427:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
        !          9428:                LDFLAGS=\"$LDFLAGS\""
        !          9429:        C_STANDARD=-std=gnu99
        !          9430:        GCCBIN=`which gcc`
        !          9431:        GCCLIB=`dirname $GCCBIN`/../lib
        !          9432:        ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49      bertrand 9433:    break ;;
                   9434: 
1.17      bertrand 9435:     *)
1.31      bertrand 9436:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9437:        NESTED_FUNCTIONS=
                   9438:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9439: 
                   9440:        if test $IPCS_SYSV = no; then
                   9441:            IPCS_SYSV=-UIPCS_SYSV
                   9442:        else
                   9443:            IPCS_SYSV=-DIPCS_SYSV
                   9444:        fi
                   9445: 
1.31      bertrand 9446:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9447:                --disable-shared --enable-static --enable-threads \
                   9448:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9449:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9450:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9451:        C_STANDARD=-std=gnu99
1.75    ! bertrand 9452:        ELF=
1.17      bertrand 9453:    break ;;
                   9454: 
                   9455: esac
                   9456: 
                   9457: 
                   9458: 
                   9459: 
1.1       bertrand 9460: 
                   9461: 
                   9462: 
                   9463: 
                   9464: 
                   9465: 
                   9466: 
                   9467: 
                   9468: 
                   9469: 
                   9470: 
                   9471: 
                   9472: 
                   9473: 
                   9474: 
                   9475: 
                   9476: 
                   9477: 
                   9478: 
1.9       bertrand 9479: 
1.24      bertrand 9480: 
1.30      bertrand 9481: 
1.33      bertrand 9482: 
                   9483: 
                   9484: 
1.34      bertrand 9485: 
1.35      bertrand 9486: 
1.49      bertrand 9487: 
1.55      bertrand 9488: 
                   9489: 
1.56      bertrand 9490: 
                   9491: 
                   9492: 
                   9493: 
1.69      bertrand 9494: 
1.75    ! bertrand 9495: 
1.69      bertrand 9496: subdirs="$subdirs tools/$NCURSES"
                   9497: 
                   9498: subdirs="$subdirs tools/$READLINE"
                   9499: 
                   9500: subdirs="$subdirs tools/$GSL"
                   9501: 
                   9502: subdirs="$subdirs tools/$GPP"
                   9503: 
                   9504: subdirs="$subdirs tools/$FILE"
                   9505: 
                   9506: subdirs="$subdirs tools/$ICONV"
                   9507: 
                   9508: subdirs="$subdirs tools/$SQLITE"
                   9509: 
                   9510: subdirs="$subdirs tools/$UNITS"
                   9511: 
                   9512: 
1.1       bertrand 9513: ac_config_files="$ac_config_files Makefile"
                   9514: 
                   9515: ac_config_files="$ac_config_files COPYING"
                   9516: 
                   9517: ac_config_files="$ac_config_files tools/Makefile"
                   9518: 
                   9519: ac_config_files="$ac_config_files src/Makefile"
                   9520: 
                   9521: ac_config_files="$ac_config_files man/Makefile"
                   9522: 
                   9523: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9524: 
                   9525: ac_config_files="$ac_config_files doc/Makefile"
                   9526: 
                   9527: ac_config_files="$ac_config_files scripts/Makefile"
                   9528: 
                   9529: ac_config_files="$ac_config_files scripts/mkrplso"
                   9530: 
                   9531: ac_config_files="$ac_config_files scripts/rplcc"
                   9532: 
                   9533: ac_config_files="$ac_config_files scripts/rpllink"
                   9534: 
                   9535: ac_config_files="$ac_config_files rpltags/Makefile"
                   9536: 
                   9537: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9538: 
1.9       bertrand 9539: ac_config_files="$ac_config_files rplsums/Makefile"
                   9540: 
1.55      bertrand 9541: ac_config_files="$ac_config_files rplcas/Makefile"
                   9542: 
1.39      bertrand 9543: ac_config_files="$ac_config_files rplawk/Makefile"
                   9544: 
1.1       bertrand 9545: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9546: 
                   9547: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9548: 
                   9549: 
                   9550: ac_config_files="$ac_config_files man/rpl.1"
                   9551: 
                   9552: ac_config_files="$ac_config_files man/rplcc.1"
                   9553: 
                   9554: ac_config_files="$ac_config_files man/rpllink.1"
                   9555: 
                   9556: ac_config_files="$ac_config_files man/rpltags.1"
                   9557: 
                   9558: ac_config_files="$ac_config_files man/mkrplso.1"
                   9559: 
                   9560: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9561: 
                   9562: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9563: 
                   9564: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9565: 
                   9566: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9567: 
                   9568: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9569: 
                   9570: 
                   9571: cat >confcache <<\_ACEOF
                   9572: # This file is a shell script that caches the results of configure
                   9573: # tests run on this system so they can be shared between configure
                   9574: # scripts and configure runs, see configure's option --config-cache.
                   9575: # It is not useful on other systems.  If it contains results you don't
                   9576: # want to keep, you may remove or edit it.
                   9577: #
                   9578: # config.status only pays attention to the cache file if you give it
                   9579: # the --recheck option to rerun configure.
                   9580: #
                   9581: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9582: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9583: # following values.
                   9584: 
                   9585: _ACEOF
                   9586: 
                   9587: # The following way of writing the cache mishandles newlines in values,
                   9588: # but we know of no workaround that is simple, portable, and efficient.
                   9589: # So, we kill variables containing newlines.
                   9590: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9591: # and sets the high bit in the cache file unless we assign to the vars.
                   9592: (
                   9593:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9594:     eval ac_val=\$$ac_var
                   9595:     case $ac_val in #(
                   9596:     *${as_nl}*)
                   9597:       case $ac_var in #(
1.15      bertrand 9598:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9599: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9600:       esac
                   9601:       case $ac_var in #(
                   9602:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9603:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9604:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9605:       esac ;;
                   9606:     esac
                   9607:   done
                   9608: 
                   9609:   (set) 2>&1 |
                   9610:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9611:     *${as_nl}ac_space=\ *)
1.15      bertrand 9612:       # `set' does not quote correctly, so add quotes: double-quote
                   9613:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9614:       sed -n \
                   9615:    "s/'/'\\\\''/g;
                   9616:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9617:       ;; #(
                   9618:     *)
                   9619:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9620:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9621:       ;;
                   9622:     esac |
                   9623:     sort
                   9624: ) |
                   9625:   sed '
                   9626:      /^ac_cv_env_/b end
                   9627:      t clear
                   9628:      :clear
                   9629:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9630:      t end
                   9631:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9632:      :end' >>confcache
                   9633: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9634:   if test -w "$cache_file"; then
1.57      bertrand 9635:     if test "x$cache_file" != "x/dev/null"; then
1.15      bertrand 9636:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9637: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.57      bertrand 9638:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   9639:    cat confcache >"$cache_file"
                   9640:       else
                   9641:         case $cache_file in #(
                   9642:         */* | ?:*)
                   9643:      mv -f confcache "$cache_file"$$ &&
                   9644:      mv -f "$cache_file"$$ "$cache_file" ;; #(
                   9645:         *)
                   9646:      mv -f confcache "$cache_file" ;;
                   9647:    esac
                   9648:       fi
                   9649:     fi
1.1       bertrand 9650:   else
1.15      bertrand 9651:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9652: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9653:   fi
                   9654: fi
                   9655: rm -f confcache
                   9656: 
                   9657: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9658: # Let make expand exec_prefix.
                   9659: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9660: 
                   9661: DEFS=-DHAVE_CONFIG_H
                   9662: 
                   9663: ac_libobjs=
                   9664: ac_ltlibobjs=
1.36      bertrand 9665: U=
1.1       bertrand 9666: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9667:   # 1. Remove the extension, and $U if already installed.
                   9668:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9669:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9670:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9671:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9672:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9673:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9674: done
                   9675: LIBOBJS=$ac_libobjs
                   9676: 
                   9677: LTLIBOBJS=$ac_ltlibobjs
                   9678: 
                   9679: 
1.15      bertrand 9680:  if test -n "$EXEEXT"; then
                   9681:   am__EXEEXT_TRUE=
                   9682:   am__EXEEXT_FALSE='#'
                   9683: else
                   9684:   am__EXEEXT_TRUE='#'
                   9685:   am__EXEEXT_FALSE=
                   9686: fi
                   9687: 
1.1       bertrand 9688: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9689:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9690: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9691: fi
                   9692: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9693:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9694: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9695: fi
                   9696: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9697:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9698: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9699: fi
                   9700: 
1.57      bertrand 9701: : "${CONFIG_STATUS=./config.status}"
1.15      bertrand 9702: ac_write_fail=0
1.1       bertrand 9703: ac_clean_files_save=$ac_clean_files
                   9704: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9705: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9706: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9707: as_write_fail=0
                   9708: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9709: #! $SHELL
                   9710: # Generated by $as_me.
                   9711: # Run this file to recreate the current configuration.
                   9712: # Compiler output produced by configure, useful for debugging
                   9713: # configure, is in config.log if it exists.
                   9714: 
                   9715: debug=false
                   9716: ac_cs_recheck=false
                   9717: ac_cs_silent=false
1.15      bertrand 9718: 
1.14      bertrand 9719: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9720: export SHELL
                   9721: _ASEOF
                   9722: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9723: ## -------------------- ##
                   9724: ## M4sh Initialization. ##
                   9725: ## -------------------- ##
1.1       bertrand 9726: 
                   9727: # Be more Bourne compatible
                   9728: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9729: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9730:   emulate sh
                   9731:   NULLCMD=:
1.15      bertrand 9732:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9733:   # is contrary to our usage.  Disable this feature.
                   9734:   alias -g '${1+"$@"}'='"$@"'
                   9735:   setopt NO_GLOB_SUBST
                   9736: else
1.15      bertrand 9737:   case `(set -o) 2>/dev/null` in #(
                   9738:   *posix*) :
                   9739:     set -o posix ;; #(
                   9740:   *) :
                   9741:      ;;
1.1       bertrand 9742: esac
                   9743: fi
                   9744: 
                   9745: 
1.15      bertrand 9746: as_nl='
                   9747: '
                   9748: export as_nl
                   9749: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9750: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9751: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9752: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9753: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9754: # but without wasting forks for bash or zsh.
                   9755: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9756:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9757:   as_echo='print -r --'
                   9758:   as_echo_n='print -rn --'
                   9759: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9760:   as_echo='printf %s\n'
                   9761:   as_echo_n='printf %s'
                   9762: else
                   9763:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9764:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9765:     as_echo_n='/usr/ucb/echo -n'
                   9766:   else
                   9767:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9768:     as_echo_n_body='eval
                   9769:       arg=$1;
                   9770:       case $arg in #(
                   9771:       *"$as_nl"*)
                   9772:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9773:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9774:       esac;
                   9775:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9776:     '
                   9777:     export as_echo_n_body
                   9778:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9779:   fi
                   9780:   export as_echo_body
                   9781:   as_echo='sh -c $as_echo_body as_echo'
                   9782: fi
1.14      bertrand 9783: 
                   9784: # The user is always right.
                   9785: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9786:   PATH_SEPARATOR=:
                   9787:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9788:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9789:       PATH_SEPARATOR=';'
                   9790:   }
1.1       bertrand 9791: fi
                   9792: 
                   9793: 
                   9794: # IFS
                   9795: # We need space, tab and new line, in precisely that order.  Quoting is
                   9796: # there to prevent editors from complaining about space-tab.
                   9797: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9798: # splitting by setting IFS to empty value.)
                   9799: IFS=" ""   $as_nl"
                   9800: 
                   9801: # Find who we are.  Look in the path if we contain no directory separator.
1.57      bertrand 9802: as_myself=
1.15      bertrand 9803: case $0 in #((
1.1       bertrand 9804:   *[\\/]* ) as_myself=$0 ;;
                   9805:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9806: for as_dir in $PATH
                   9807: do
                   9808:   IFS=$as_save_IFS
                   9809:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9810:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9811:   done
1.1       bertrand 9812: IFS=$as_save_IFS
                   9813: 
                   9814:      ;;
                   9815: esac
                   9816: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9817: # in which case we are not to be found in the path.
                   9818: if test "x$as_myself" = x; then
                   9819:   as_myself=$0
                   9820: fi
                   9821: if test ! -f "$as_myself"; then
1.15      bertrand 9822:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9823:   exit 1
1.1       bertrand 9824: fi
                   9825: 
1.15      bertrand 9826: # Unset variables that we do not need and which cause bugs (e.g. in
                   9827: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9828: # suppresses any "Segmentation fault" message there.  '((' could
                   9829: # trigger a bug in pdksh 5.2.14.
                   9830: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9831: do eval test x\${$as_var+set} = xset \
                   9832:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9833: done
                   9834: PS1='$ '
                   9835: PS2='> '
                   9836: PS4='+ '
                   9837: 
                   9838: # NLS nuisances.
1.15      bertrand 9839: LC_ALL=C
                   9840: export LC_ALL
                   9841: LANGUAGE=C
                   9842: export LANGUAGE
                   9843: 
                   9844: # CDPATH.
                   9845: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9846: 
                   9847: 
1.36      bertrand 9848: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   9849: # ----------------------------------------
1.15      bertrand 9850: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9851: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 9852: # script with STATUS, using 1 if that was 0.
1.15      bertrand 9853: as_fn_error ()
                   9854: {
1.36      bertrand 9855:   as_status=$1; test $as_status -eq 0 && as_status=1
                   9856:   if test "$4"; then
                   9857:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9858:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 9859:   fi
1.36      bertrand 9860:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 9861:   as_fn_exit $as_status
                   9862: } # as_fn_error
                   9863: 
                   9864: 
                   9865: # as_fn_set_status STATUS
                   9866: # -----------------------
                   9867: # Set $? to STATUS, without forking.
                   9868: as_fn_set_status ()
                   9869: {
                   9870:   return $1
                   9871: } # as_fn_set_status
                   9872: 
                   9873: # as_fn_exit STATUS
                   9874: # -----------------
                   9875: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9876: as_fn_exit ()
                   9877: {
                   9878:   set +e
                   9879:   as_fn_set_status $1
                   9880:   exit $1
                   9881: } # as_fn_exit
                   9882: 
                   9883: # as_fn_unset VAR
                   9884: # ---------------
                   9885: # Portably unset VAR.
                   9886: as_fn_unset ()
                   9887: {
                   9888:   { eval $1=; unset $1;}
                   9889: }
                   9890: as_unset=as_fn_unset
                   9891: # as_fn_append VAR VALUE
                   9892: # ----------------------
                   9893: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9894: # advantage of any shell optimizations that allow amortized linear growth over
                   9895: # repeated appends, instead of the typical quadratic growth present in naive
                   9896: # implementations.
                   9897: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9898:   eval 'as_fn_append ()
                   9899:   {
                   9900:     eval $1+=\$2
                   9901:   }'
                   9902: else
                   9903:   as_fn_append ()
                   9904:   {
                   9905:     eval $1=\$$1\$2
                   9906:   }
                   9907: fi # as_fn_append
                   9908: 
                   9909: # as_fn_arith ARG...
                   9910: # ------------------
                   9911: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9912: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9913: # must be portable across $(()) and expr.
                   9914: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9915:   eval 'as_fn_arith ()
                   9916:   {
                   9917:     as_val=$(( $* ))
                   9918:   }'
                   9919: else
                   9920:   as_fn_arith ()
                   9921:   {
                   9922:     as_val=`expr "$@" || test $? -eq 1`
                   9923:   }
                   9924: fi # as_fn_arith
                   9925: 
1.1       bertrand 9926: 
                   9927: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9928:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9929:   as_expr=expr
                   9930: else
                   9931:   as_expr=false
                   9932: fi
                   9933: 
                   9934: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9935:   as_basename=basename
                   9936: else
                   9937:   as_basename=false
                   9938: fi
                   9939: 
1.15      bertrand 9940: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9941:   as_dirname=dirname
                   9942: else
                   9943:   as_dirname=false
                   9944: fi
1.1       bertrand 9945: 
                   9946: as_me=`$as_basename -- "$0" ||
                   9947: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9948:     X"$0" : 'X\(//\)$' \| \
                   9949:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9950: $as_echo X/"$0" |
1.1       bertrand 9951:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9952:        s//\1/
                   9953:        q
                   9954:      }
                   9955:      /^X\/\(\/\/\)$/{
                   9956:        s//\1/
                   9957:        q
                   9958:      }
                   9959:      /^X\/\(\/\).*/{
                   9960:        s//\1/
                   9961:        q
                   9962:      }
1.14      bertrand 9963:      s/.*/./; q'`
                   9964: 
1.15      bertrand 9965: # Avoid depending upon Character Ranges.
                   9966: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9967: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9968: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9969: as_cr_digits='0123456789'
                   9970: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9971: 
                   9972: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 9973: case `echo -n x` in #(((((
1.1       bertrand 9974: -n*)
1.15      bertrand 9975:   case `echo 'xy\c'` in
1.1       bertrand 9976:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 9977:   xy)  ECHO_C='\c';;
                   9978:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9979:        ECHO_T='    ';;
1.1       bertrand 9980:   esac;;
                   9981: *)
                   9982:   ECHO_N='-n';;
                   9983: esac
                   9984: 
                   9985: rm -f conf$$ conf$$.exe conf$$.file
                   9986: if test -d conf$$.dir; then
                   9987:   rm -f conf$$.dir/conf$$.file
                   9988: else
                   9989:   rm -f conf$$.dir
1.15      bertrand 9990:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 9991: fi
1.15      bertrand 9992: if (echo >conf$$.file) 2>/dev/null; then
                   9993:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   9994:     as_ln_s='ln -s'
                   9995:     # ... but there are two gotchas:
                   9996:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9997:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   9998:     # In both cases, we have to default to `cp -p'.
                   9999:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   10000:       as_ln_s='cp -p'
                   10001:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   10002:     as_ln_s=ln
                   10003:   else
1.1       bertrand 10004:     as_ln_s='cp -p'
1.15      bertrand 10005:   fi
1.1       bertrand 10006: else
                   10007:   as_ln_s='cp -p'
                   10008: fi
                   10009: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   10010: rmdir conf$$.dir 2>/dev/null
                   10011: 
1.15      bertrand 10012: 
                   10013: # as_fn_mkdir_p
                   10014: # -------------
                   10015: # Create "$as_dir" as a directory, including parents if necessary.
                   10016: as_fn_mkdir_p ()
                   10017: {
                   10018: 
                   10019:   case $as_dir in #(
                   10020:   -*) as_dir=./$as_dir;;
                   10021:   esac
                   10022:   test -d "$as_dir" || eval $as_mkdir_p || {
                   10023:     as_dirs=
                   10024:     while :; do
                   10025:       case $as_dir in #(
                   10026:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   10027:       *) as_qdir=$as_dir;;
                   10028:       esac
                   10029:       as_dirs="'$as_qdir' $as_dirs"
                   10030:       as_dir=`$as_dirname -- "$as_dir" ||
                   10031: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10032:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   10033:     X"$as_dir" : 'X\(//\)$' \| \
                   10034:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   10035: $as_echo X"$as_dir" |
                   10036:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10037:        s//\1/
                   10038:        q
                   10039:      }
                   10040:      /^X\(\/\/\)[^/].*/{
                   10041:        s//\1/
                   10042:        q
                   10043:      }
                   10044:      /^X\(\/\/\)$/{
                   10045:        s//\1/
                   10046:        q
                   10047:      }
                   10048:      /^X\(\/\).*/{
                   10049:        s//\1/
                   10050:        q
                   10051:      }
                   10052:      s/.*/./; q'`
                   10053:       test -d "$as_dir" && break
                   10054:     done
                   10055:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 10056:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 10057: 
                   10058: 
                   10059: } # as_fn_mkdir_p
1.1       bertrand 10060: if mkdir -p . 2>/dev/null; then
1.15      bertrand 10061:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 10062: else
                   10063:   test -d ./-p && rmdir ./-p
                   10064:   as_mkdir_p=false
                   10065: fi
                   10066: 
                   10067: if test -x / >/dev/null 2>&1; then
                   10068:   as_test_x='test -x'
                   10069: else
                   10070:   if ls -dL / >/dev/null 2>&1; then
                   10071:     as_ls_L_option=L
                   10072:   else
                   10073:     as_ls_L_option=
                   10074:   fi
                   10075:   as_test_x='
                   10076:     eval sh -c '\''
                   10077:       if test -d "$1"; then
1.15      bertrand 10078:    test -d "$1/.";
1.1       bertrand 10079:       else
1.15      bertrand 10080:    case $1 in #(
                   10081:    -*)set "./$1";;
1.1       bertrand 10082:    esac;
1.15      bertrand 10083:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 10084:    ???[sx]*):;;*)false;;esac;fi
                   10085:     '\'' sh
                   10086:   '
                   10087: fi
                   10088: as_executable_p=$as_test_x
                   10089: 
                   10090: # Sed expression to map a string onto a valid CPP name.
                   10091: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   10092: 
                   10093: # Sed expression to map a string onto a valid variable name.
                   10094: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   10095: 
                   10096: 
                   10097: exec 6>&1
1.15      bertrand 10098: ## ----------------------------------- ##
                   10099: ## Main body of $CONFIG_STATUS script. ##
                   10100: ## ----------------------------------- ##
                   10101: _ASEOF
                   10102: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 10103: 
1.15      bertrand 10104: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10105: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 10106: # report actual input values of CONFIG_FILES etc. instead of their
                   10107: # values after options handling.
                   10108: ac_log="
1.73      bertrand 10109: This file was extended by rpl $as_me 4.1.3, which was
1.57      bertrand 10110: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 10111: 
                   10112:   CONFIG_FILES    = $CONFIG_FILES
                   10113:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   10114:   CONFIG_LINKS    = $CONFIG_LINKS
                   10115:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   10116:   $ $0 $@
                   10117: 
                   10118: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   10119: "
                   10120: 
                   10121: _ACEOF
                   10122: 
1.15      bertrand 10123: case $ac_config_files in *"
                   10124: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   10125: esac
                   10126: 
                   10127: case $ac_config_headers in *"
                   10128: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   10129: esac
                   10130: 
                   10131: 
                   10132: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10133: # Files that config.status was made for.
                   10134: config_files="$ac_config_files"
                   10135: config_headers="$ac_config_headers"
                   10136: config_commands="$ac_config_commands"
                   10137: 
                   10138: _ACEOF
                   10139: 
1.15      bertrand 10140: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10141: ac_cs_usage="\
1.15      bertrand 10142: \`$as_me' instantiates files and other configuration actions
                   10143: from templates according to the current configuration.  Unless the files
                   10144: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 10145: 
1.15      bertrand 10146: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 10147: 
                   10148:   -h, --help       print this help, then exit
                   10149:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 10150:       --config     print configuration, then exit
                   10151:   -q, --quiet, --silent
                   10152:                    do not print progress messages
1.1       bertrand 10153:   -d, --debug      don't remove temporary files
                   10154:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 10155:       --file=FILE[:TEMPLATE]
                   10156:                    instantiate the configuration file FILE
                   10157:       --header=FILE[:TEMPLATE]
                   10158:                    instantiate the configuration header FILE
1.1       bertrand 10159: 
                   10160: Configuration files:
                   10161: $config_files
                   10162: 
                   10163: Configuration headers:
                   10164: $config_headers
                   10165: 
                   10166: Configuration commands:
                   10167: $config_commands
                   10168: 
1.15      bertrand 10169: Report bugs to the package provider."
1.1       bertrand 10170: 
                   10171: _ACEOF
1.15      bertrand 10172: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10173: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 10174: ac_cs_version="\\
1.73      bertrand 10175: rpl config.status 4.1.3
1.57      bertrand 10176: configured by $0, generated by GNU Autoconf 2.68,
1.15      bertrand 10177:   with options \\"\$ac_cs_config\\"
1.1       bertrand 10178: 
1.36      bertrand 10179: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 10180: This config.status script is free software; the Free Software Foundation
                   10181: gives unlimited permission to copy, distribute and modify it."
                   10182: 
                   10183: ac_pwd='$ac_pwd'
                   10184: srcdir='$srcdir'
                   10185: INSTALL='$INSTALL'
                   10186: MKDIR_P='$MKDIR_P'
1.15      bertrand 10187: AWK='$AWK'
                   10188: test -n "\$AWK" || AWK=awk
1.1       bertrand 10189: _ACEOF
                   10190: 
1.15      bertrand 10191: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10192: # The default lists apply if the user does not specify any file.
1.1       bertrand 10193: ac_need_defaults=:
                   10194: while test $# != 0
                   10195: do
                   10196:   case $1 in
1.36      bertrand 10197:   --*=?*)
1.1       bertrand 10198:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10199:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   10200:     ac_shift=:
                   10201:     ;;
1.36      bertrand 10202:   --*=)
                   10203:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10204:     ac_optarg=
                   10205:     ac_shift=:
                   10206:     ;;
1.1       bertrand 10207:   *)
                   10208:     ac_option=$1
                   10209:     ac_optarg=$2
                   10210:     ac_shift=shift
                   10211:     ;;
                   10212:   esac
                   10213: 
                   10214:   case $ac_option in
                   10215:   # Handling of the options.
                   10216:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   10217:     ac_cs_recheck=: ;;
                   10218:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 10219:     $as_echo "$ac_cs_version"; exit ;;
                   10220:   --config | --confi | --conf | --con | --co | --c )
                   10221:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 10222:   --debug | --debu | --deb | --de | --d | -d )
                   10223:     debug=: ;;
                   10224:   --file | --fil | --fi | --f )
                   10225:     $ac_shift
1.15      bertrand 10226:     case $ac_optarg in
                   10227:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 10228:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 10229:     esac
                   10230:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 10231:     ac_need_defaults=false;;
                   10232:   --header | --heade | --head | --hea )
                   10233:     $ac_shift
1.15      bertrand 10234:     case $ac_optarg in
                   10235:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   10236:     esac
                   10237:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 10238:     ac_need_defaults=false;;
                   10239:   --he | --h)
                   10240:     # Conflict between --help and --header
1.36      bertrand 10241:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 10242: Try \`$0 --help' for more information.";;
1.1       bertrand 10243:   --help | --hel | -h )
1.15      bertrand 10244:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 10245:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10246:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10247:     ac_cs_silent=: ;;
                   10248: 
                   10249:   # This is an error.
1.36      bertrand 10250:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10251: Try \`$0 --help' for more information." ;;
1.1       bertrand 10252: 
1.15      bertrand 10253:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10254:      ac_need_defaults=false ;;
                   10255: 
                   10256:   esac
                   10257:   shift
                   10258: done
                   10259: 
                   10260: ac_configure_extra_args=
                   10261: 
                   10262: if $ac_cs_silent; then
                   10263:   exec 6>/dev/null
                   10264:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10265: fi
                   10266: 
                   10267: _ACEOF
1.15      bertrand 10268: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10269: if \$ac_cs_recheck; then
1.15      bertrand 10270:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10271:   shift
                   10272:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10273:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10274:   export CONFIG_SHELL
1.15      bertrand 10275:   exec "\$@"
1.1       bertrand 10276: fi
                   10277: 
                   10278: _ACEOF
1.15      bertrand 10279: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10280: exec 5>>config.log
                   10281: {
                   10282:   echo
                   10283:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10284: ## Running $as_me. ##
                   10285: _ASBOX
1.15      bertrand 10286:   $as_echo "$ac_log"
1.1       bertrand 10287: } >&5
                   10288: 
                   10289: _ACEOF
1.15      bertrand 10290: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10291: #
                   10292: # INIT-COMMANDS
                   10293: #
                   10294: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10295: 
                   10296: _ACEOF
                   10297: 
1.15      bertrand 10298: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10299: 
                   10300: # Handling of arguments.
                   10301: for ac_config_target in $ac_config_targets
                   10302: do
                   10303:   case $ac_config_target in
                   10304:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10305:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10306:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10307:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10308:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10309:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10310:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10311:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10312:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10313:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10314:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10315:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10316:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10317:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10318:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10319:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55      bertrand 10320:     "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39      bertrand 10321:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10322:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10323:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10324:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10325:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10326:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10327:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10328:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10329:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10330:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10331:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10332:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10333:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   10334: 
1.57      bertrand 10335:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 10336:   esac
                   10337: done
                   10338: 
                   10339: 
                   10340: # If the user did not use the arguments to specify the items to instantiate,
                   10341: # then the envvar interface is used.  Set only those that are not.
                   10342: # We use the long form for the default assignment because of an extremely
                   10343: # bizarre bug on SunOS 4.1.3.
                   10344: if $ac_need_defaults; then
                   10345:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10346:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10347:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10348: fi
                   10349: 
                   10350: # Have a temporary directory for convenience.  Make it in the build tree
                   10351: # simply because there is no reason against having it here, and in addition,
                   10352: # creating and moving files from /tmp can sometimes cause problems.
                   10353: # Hook for its removal unless debugging.
                   10354: # Note that there is a small window in which the directory will not be cleaned:
                   10355: # after its creation but before its name has been assigned to `$tmp'.
                   10356: $debug ||
                   10357: {
1.57      bertrand 10358:   tmp= ac_tmp=
1.1       bertrand 10359:   trap 'exit_status=$?
1.57      bertrand 10360:   : "${ac_tmp:=$tmp}"
                   10361:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1       bertrand 10362: ' 0
1.15      bertrand 10363:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10364: }
                   10365: # Create a (secure) tmp directory for tmp files.
                   10366: 
                   10367: {
                   10368:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.57      bertrand 10369:   test -d "$tmp"
1.1       bertrand 10370: }  ||
                   10371: {
                   10372:   tmp=./conf$$-$RANDOM
                   10373:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10374: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.57      bertrand 10375: ac_tmp=$tmp
1.15      bertrand 10376: 
                   10377: # Set up the scripts for CONFIG_FILES section.
                   10378: # No need to generate them if there are no CONFIG_FILES.
                   10379: # This happens for instance with `./config.status config.h'.
                   10380: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10381: 
1.1       bertrand 10382: 
1.15      bertrand 10383: ac_cr=`echo X | tr X '\015'`
                   10384: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10385: # But we know of no other shell where ac_cr would be empty at this
                   10386: # point, so we can use a bashism as a fallback.
                   10387: if test "x$ac_cr" = x; then
                   10388:   eval ac_cr=\$\'\\r\'
                   10389: fi
                   10390: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10391: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10392:   ac_cs_awk_cr='\\r'
1.15      bertrand 10393: else
                   10394:   ac_cs_awk_cr=$ac_cr
                   10395: fi
1.1       bertrand 10396: 
1.57      bertrand 10397: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14      bertrand 10398: _ACEOF
                   10399: 
                   10400: 
1.15      bertrand 10401: {
                   10402:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10403:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10404:   echo "_ACEOF"
                   10405: } >conf$$subs.sh ||
1.36      bertrand 10406:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10407: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10408: ac_delim='%!_!# '
                   10409: for ac_last_try in false false false false false :; do
1.15      bertrand 10410:   . ./conf$$subs.sh ||
1.36      bertrand 10411:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10412: 
1.15      bertrand 10413:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10414:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10415:     break
                   10416:   elif $ac_last_try; then
1.36      bertrand 10417:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10418:   else
                   10419:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10420:   fi
                   10421: done
1.15      bertrand 10422: rm -f conf$$subs.sh
1.1       bertrand 10423: 
1.15      bertrand 10424: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.57      bertrand 10425: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15      bertrand 10426: _ACEOF
                   10427: sed -n '
                   10428: h
                   10429: s/^/S["/; s/!.*/"]=/
                   10430: p
                   10431: g
                   10432: s/^[^!]*!//
                   10433: :repl
                   10434: t repl
                   10435: s/'"$ac_delim"'$//
                   10436: t delim
                   10437: :nl
                   10438: h
                   10439: s/\(.\{148\}\)..*/\1/
                   10440: t more1
                   10441: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10442: p
                   10443: n
                   10444: b repl
                   10445: :more1
                   10446: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10447: p
                   10448: g
                   10449: s/.\{148\}//
                   10450: t nl
                   10451: :delim
                   10452: h
                   10453: s/\(.\{148\}\)..*/\1/
                   10454: t more2
                   10455: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10456: p
                   10457: b
                   10458: :more2
                   10459: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10460: p
                   10461: g
                   10462: s/.\{148\}//
                   10463: t delim
                   10464: ' <conf$$subs.awk | sed '
                   10465: /^[^""]/{
                   10466:   N
                   10467:   s/\n//
                   10468: }
                   10469: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10470: rm -f conf$$subs.awk
                   10471: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10472: _ACAWK
1.57      bertrand 10473: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15      bertrand 10474:   for (key in S) S_is_set[key] = 1
                   10475:   FS = ""
1.1       bertrand 10476: 
1.15      bertrand 10477: }
                   10478: {
                   10479:   line = $ 0
                   10480:   nfields = split(line, field, "@")
                   10481:   substed = 0
                   10482:   len = length(field[1])
                   10483:   for (i = 2; i < nfields; i++) {
                   10484:     key = field[i]
                   10485:     keylen = length(key)
                   10486:     if (S_is_set[key]) {
                   10487:       value = S[key]
                   10488:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10489:       len += length(value) + length(field[++i])
                   10490:       substed = 1
                   10491:     } else
                   10492:       len += 1 + keylen
                   10493:   }
1.1       bertrand 10494: 
1.15      bertrand 10495:   print line
                   10496: }
1.1       bertrand 10497: 
1.15      bertrand 10498: _ACAWK
1.14      bertrand 10499: _ACEOF
1.15      bertrand 10500: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10501: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10502:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10503: else
                   10504:   cat
1.57      bertrand 10505: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36      bertrand 10506:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10507: _ACEOF
                   10508: 
1.36      bertrand 10509: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10510: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10511: # trailing colons and then remove the whole line if VPATH becomes empty
                   10512: # (actually we leave an empty line to preserve line numbers).
                   10513: if test "x$srcdir" = x.; then
1.36      bertrand 10514:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10515: h
                   10516: s///
                   10517: s/^/:/
                   10518: s/[     ]*$/:/
                   10519: s/:\$(srcdir):/:/g
                   10520: s/:\${srcdir}:/:/g
                   10521: s/:@srcdir@:/:/g
                   10522: s/^:*//
1.1       bertrand 10523: s/:*$//
1.36      bertrand 10524: x
                   10525: s/\(=[  ]*\).*/\1/
                   10526: G
                   10527: s/\n//
1.1       bertrand 10528: s/^[^=]*=[  ]*$//
                   10529: }'
                   10530: fi
                   10531: 
1.15      bertrand 10532: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10533: fi # test -n "$CONFIG_FILES"
                   10534: 
1.15      bertrand 10535: # Set up the scripts for CONFIG_HEADERS section.
                   10536: # No need to generate them if there are no CONFIG_HEADERS.
                   10537: # This happens for instance with `./config.status Makefile'.
                   10538: if test -n "$CONFIG_HEADERS"; then
1.57      bertrand 10539: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15      bertrand 10540: BEGIN {
                   10541: _ACEOF
                   10542: 
                   10543: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10544: # here-document in config.status, that substitutes the proper values into
                   10545: # config.h.in to produce config.h.
                   10546: 
                   10547: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10548: # handling of long lines.
                   10549: ac_delim='%!_!# '
                   10550: for ac_last_try in false false :; do
1.57      bertrand 10551:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   10552:   if test -z "$ac_tt"; then
1.15      bertrand 10553:     break
                   10554:   elif $ac_last_try; then
1.36      bertrand 10555:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10556:   else
                   10557:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10558:   fi
                   10559: done
                   10560: 
                   10561: # For the awk script, D is an array of macro values keyed by name,
                   10562: # likewise P contains macro parameters if any.  Preserve backslash
                   10563: # newline sequences.
                   10564: 
                   10565: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10566: sed -n '
                   10567: s/.\{148\}/&'"$ac_delim"'/g
                   10568: t rset
                   10569: :rset
                   10570: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10571: t def
                   10572: d
                   10573: :def
                   10574: s/\\$//
                   10575: t bsnl
                   10576: s/["\\]/\\&/g
                   10577: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10578: D["\1"]=" \3"/p
                   10579: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10580: d
                   10581: :bsnl
                   10582: s/["\\]/\\&/g
                   10583: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10584: D["\1"]=" \3\\\\\\n"\\/p
                   10585: t cont
                   10586: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10587: t cont
                   10588: d
                   10589: :cont
                   10590: n
                   10591: s/.\{148\}/&'"$ac_delim"'/g
                   10592: t clear
                   10593: :clear
                   10594: s/\\$//
                   10595: t bsnlc
                   10596: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10597: d
                   10598: :bsnlc
                   10599: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10600: b cont
                   10601: ' <confdefs.h | sed '
                   10602: s/'"$ac_delim"'/"\\\
                   10603: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10604: 
                   10605: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10606:   for (key in D) D_is_set[key] = 1
                   10607:   FS = ""
                   10608: }
                   10609: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10610:   line = \$ 0
                   10611:   split(line, arg, " ")
                   10612:   if (arg[1] == "#") {
                   10613:     defundef = arg[2]
                   10614:     mac1 = arg[3]
                   10615:   } else {
                   10616:     defundef = substr(arg[1], 2)
                   10617:     mac1 = arg[2]
                   10618:   }
                   10619:   split(mac1, mac2, "(") #)
                   10620:   macro = mac2[1]
                   10621:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10622:   if (D_is_set[macro]) {
                   10623:     # Preserve the white space surrounding the "#".
                   10624:     print prefix "define", macro P[macro] D[macro]
                   10625:     next
                   10626:   } else {
                   10627:     # Replace #undef with comments.  This is necessary, for example,
                   10628:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10629:     # on some systems where configure will not decide to define it.
                   10630:     if (defundef == "undef") {
                   10631:       print "/*", prefix defundef, macro, "*/"
                   10632:       next
                   10633:     }
                   10634:   }
                   10635: }
                   10636: { print }
                   10637: _ACAWK
                   10638: _ACEOF
                   10639: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10640:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10641: fi # test -n "$CONFIG_HEADERS"
                   10642: 
1.1       bertrand 10643: 
1.15      bertrand 10644: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10645: shift
                   10646: for ac_tag
1.1       bertrand 10647: do
                   10648:   case $ac_tag in
                   10649:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10650:   esac
                   10651:   case $ac_mode$ac_tag in
                   10652:   :[FHL]*:*);;
1.57      bertrand 10653:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10654:   :[FH]-) ac_tag=-:-;;
                   10655:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10656:   esac
                   10657:   ac_save_IFS=$IFS
                   10658:   IFS=:
                   10659:   set x $ac_tag
                   10660:   IFS=$ac_save_IFS
                   10661:   shift
                   10662:   ac_file=$1
                   10663:   shift
                   10664: 
                   10665:   case $ac_mode in
                   10666:   :L) ac_source=$1;;
                   10667:   :[FH])
                   10668:     ac_file_inputs=
                   10669:     for ac_f
                   10670:     do
                   10671:       case $ac_f in
1.57      bertrand 10672:       -) ac_f="$ac_tmp/stdin";;
1.1       bertrand 10673:       *) # Look for the file first in the build tree, then in the source tree
                   10674:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10675:     # because $ac_f cannot contain `:'.
                   10676:     test -f "$ac_f" ||
                   10677:       case $ac_f in
                   10678:       [\\/$]*) false;;
                   10679:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10680:       esac ||
1.57      bertrand 10681:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10682:       esac
1.15      bertrand 10683:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10684:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10685:     done
                   10686: 
                   10687:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10688:     # use $as_me), people would be surprised to read:
                   10689:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10690:     configure_input='Generated from '`
                   10691:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10692:    `' by configure.'
1.1       bertrand 10693:     if test x"$ac_file" != x-; then
                   10694:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10695:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10696: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10697:     fi
1.15      bertrand 10698:     # Neutralize special characters interpreted by sed in replacement strings.
                   10699:     case $configure_input in #(
                   10700:     *\&* | *\|* | *\\* )
                   10701:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10702:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10703:     *) ac_sed_conf_input=$configure_input;;
                   10704:     esac
1.1       bertrand 10705: 
                   10706:     case $ac_tag in
1.57      bertrand 10707:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   10708:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10709:     esac
                   10710:     ;;
                   10711:   esac
                   10712: 
                   10713:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10714: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10715:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10716:     X"$ac_file" : 'X\(//\)$' \| \
                   10717:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10718: $as_echo X"$ac_file" |
1.1       bertrand 10719:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10720:        s//\1/
                   10721:        q
                   10722:      }
                   10723:      /^X\(\/\/\)[^/].*/{
                   10724:        s//\1/
                   10725:        q
                   10726:      }
                   10727:      /^X\(\/\/\)$/{
                   10728:        s//\1/
                   10729:        q
                   10730:      }
                   10731:      /^X\(\/\).*/{
                   10732:        s//\1/
                   10733:        q
                   10734:      }
                   10735:      s/.*/./; q'`
1.15      bertrand 10736:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10737:   ac_builddir=.
                   10738: 
                   10739: case "$ac_dir" in
                   10740: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10741: *)
1.15      bertrand 10742:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10743:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10744:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10745:   case $ac_top_builddir_sub in
                   10746:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10747:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10748:   esac ;;
                   10749: esac
                   10750: ac_abs_top_builddir=$ac_pwd
                   10751: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10752: # for backward compatibility:
                   10753: ac_top_builddir=$ac_top_build_prefix
                   10754: 
                   10755: case $srcdir in
                   10756:   .)  # We are building in place.
                   10757:     ac_srcdir=.
                   10758:     ac_top_srcdir=$ac_top_builddir_sub
                   10759:     ac_abs_top_srcdir=$ac_pwd ;;
                   10760:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10761:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10762:     ac_top_srcdir=$srcdir
                   10763:     ac_abs_top_srcdir=$srcdir ;;
                   10764:   *) # Relative name.
                   10765:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10766:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10767:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10768: esac
                   10769: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10770: 
                   10771: 
                   10772:   case $ac_mode in
                   10773:   :F)
                   10774:   #
                   10775:   # CONFIG_FILE
                   10776:   #
                   10777: 
                   10778:   case $INSTALL in
                   10779:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10780:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10781:   esac
                   10782:   ac_MKDIR_P=$MKDIR_P
                   10783:   case $MKDIR_P in
                   10784:   [\\/$]* | ?:[\\/]* ) ;;
                   10785:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10786:   esac
                   10787: _ACEOF
                   10788: 
1.15      bertrand 10789: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10790: # If the template does not know about datarootdir, expand it.
                   10791: # FIXME: This hack should be removed a few years after 2.60.
                   10792: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10793: ac_sed_dataroot='
                   10794: /datarootdir/ {
1.1       bertrand 10795:   p
                   10796:   q
                   10797: }
                   10798: /@datadir@/p
                   10799: /@docdir@/p
                   10800: /@infodir@/p
                   10801: /@localedir@/p
1.15      bertrand 10802: /@mandir@/p'
                   10803: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10804: *datarootdir*) ac_datarootdir_seen=yes;;
                   10805: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10806:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10807: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10808: _ACEOF
1.15      bertrand 10809: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10810:   ac_datarootdir_hack='
                   10811:   s&@datadir@&$datadir&g
                   10812:   s&@docdir@&$docdir&g
                   10813:   s&@infodir@&$infodir&g
                   10814:   s&@localedir@&$localedir&g
                   10815:   s&@mandir@&$mandir&g
1.15      bertrand 10816:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10817: esac
                   10818: _ACEOF
                   10819: 
                   10820: # Neutralize VPATH when `$srcdir' = `.'.
                   10821: # Shell code in configure.ac might set extrasub.
                   10822: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10823: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10824: ac_sed_extra="$ac_vpsub
1.1       bertrand 10825: $extrasub
                   10826: _ACEOF
1.15      bertrand 10827: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10828: :t
                   10829: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10830: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10831: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10832: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10833: s&@srcdir@&$ac_srcdir&;t t
                   10834: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10835: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10836: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10837: s&@builddir@&$ac_builddir&;t t
                   10838: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10839: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10840: s&@INSTALL@&$ac_INSTALL&;t t
                   10841: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10842: $ac_datarootdir_hack
1.15      bertrand 10843: "
1.57      bertrand 10844: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   10845:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10846: 
                   10847: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.57      bertrand 10848:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   10849:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' \
                   10850:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10851:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10852: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 10853: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10854: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 10855: 
1.57      bertrand 10856:   rm -f "$ac_tmp/stdin"
1.1       bertrand 10857:   case $ac_file in
1.57      bertrand 10858:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   10859:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15      bertrand 10860:   esac \
1.36      bertrand 10861:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10862:  ;;
                   10863:   :H)
                   10864:   #
                   10865:   # CONFIG_HEADER
                   10866:   #
                   10867:   if test x"$ac_file" != x-; then
1.15      bertrand 10868:     {
                   10869:       $as_echo "/* $configure_input  */" \
1.57      bertrand 10870:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   10871:     } >"$ac_tmp/config.h" \
1.36      bertrand 10872:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.57      bertrand 10873:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15      bertrand 10874:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10875: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10876:     else
1.15      bertrand 10877:       rm -f "$ac_file"
1.57      bertrand 10878:       mv "$ac_tmp/config.h" "$ac_file" \
1.36      bertrand 10879:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10880:     fi
                   10881:   else
1.15      bertrand 10882:     $as_echo "/* $configure_input  */" \
1.57      bertrand 10883:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 10884:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 10885:   fi
1.15      bertrand 10886: # Compute "$ac_file"'s index in $config_headers.
                   10887: _am_arg="$ac_file"
1.1       bertrand 10888: _am_stamp_count=1
                   10889: for _am_header in $config_headers :; do
                   10890:   case $_am_header in
                   10891:     $_am_arg | $_am_arg:* )
                   10892:       break ;;
                   10893:     * )
                   10894:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10895:   esac
                   10896: done
                   10897: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10898: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10899:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10900:     X"$_am_arg" : 'X\(//\)$' \| \
                   10901:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10902: $as_echo X"$_am_arg" |
1.1       bertrand 10903:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10904:        s//\1/
                   10905:        q
                   10906:      }
                   10907:      /^X\(\/\/\)[^/].*/{
                   10908:        s//\1/
                   10909:        q
                   10910:      }
                   10911:      /^X\(\/\/\)$/{
                   10912:        s//\1/
                   10913:        q
                   10914:      }
                   10915:      /^X\(\/\).*/{
                   10916:        s//\1/
                   10917:        q
                   10918:      }
                   10919:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10920:  ;;
                   10921: 
1.15      bertrand 10922:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10923: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10924:  ;;
                   10925:   esac
                   10926: 
                   10927: 
                   10928:   case $ac_file$ac_mode in
1.15      bertrand 10929:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10930:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10931:   # are listed without --file.  Let's play safe and only enable the eval
                   10932:   # if we detect the quoting.
                   10933:   case $CONFIG_FILES in
                   10934:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10935:   *)   set x $CONFIG_FILES ;;
                   10936:   esac
                   10937:   shift
                   10938:   for mf
                   10939:   do
                   10940:     # Strip MF so we end up with the name of the file.
                   10941:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10942:     # Check whether this is an Automake generated Makefile or not.
                   10943:     # We used to match only the files named `Makefile.in', but
                   10944:     # some people rename them; so instead we look at the file content.
                   10945:     # Grep'ing the first line is not enough: some people post-process
                   10946:     # each Makefile.in and add a new line on top of each file to say so.
                   10947:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10948:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10949:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10950:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10951: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10952:     X"$mf" : 'X\(//\)[^/]' \| \
                   10953:     X"$mf" : 'X\(//\)$' \| \
                   10954:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10955: $as_echo X"$mf" |
1.1       bertrand 10956:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10957:        s//\1/
                   10958:        q
                   10959:      }
                   10960:      /^X\(\/\/\)[^/].*/{
                   10961:        s//\1/
                   10962:        q
                   10963:      }
                   10964:      /^X\(\/\/\)$/{
                   10965:        s//\1/
                   10966:        q
                   10967:      }
                   10968:      /^X\(\/\).*/{
                   10969:        s//\1/
                   10970:        q
                   10971:      }
                   10972:      s/.*/./; q'`
1.15      bertrand 10973:     else
                   10974:       continue
                   10975:     fi
                   10976:     # Extract the definition of DEPDIR, am__include, and am__quote
                   10977:     # from the Makefile without running `make'.
                   10978:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   10979:     test -z "$DEPDIR" && continue
                   10980:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   10981:     test -z "am__include" && continue
                   10982:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   10983:     # When using ansi2knr, U may be empty or an underscore; expand it
                   10984:     U=`sed -n 's/^U = //p' < "$mf"`
                   10985:     # Find all dependency output files, they are included files with
                   10986:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   10987:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   10988:     # expansion.
                   10989:     for file in `sed -n "
                   10990:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   10991:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   10992:       # Make sure the directory exists.
                   10993:       test -f "$dirpart/$file" && continue
                   10994:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 10995: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10996:     X"$file" : 'X\(//\)[^/]' \| \
                   10997:     X"$file" : 'X\(//\)$' \| \
                   10998:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10999: $as_echo X"$file" |
1.1       bertrand 11000:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11001:        s//\1/
                   11002:        q
                   11003:      }
                   11004:      /^X\(\/\/\)[^/].*/{
                   11005:        s//\1/
                   11006:        q
                   11007:      }
                   11008:      /^X\(\/\/\)$/{
                   11009:        s//\1/
                   11010:        q
                   11011:      }
                   11012:      /^X\(\/\).*/{
                   11013:        s//\1/
                   11014:        q
                   11015:      }
                   11016:      s/.*/./; q'`
1.15      bertrand 11017:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   11018:       # echo "creating $dirpart/$file"
                   11019:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 11020:     done
                   11021:   done
1.15      bertrand 11022: }
1.1       bertrand 11023:  ;;
                   11024: 
                   11025:   esac
                   11026: done # for ac_tag
                   11027: 
                   11028: 
1.15      bertrand 11029: as_fn_exit 0
1.1       bertrand 11030: _ACEOF
                   11031: ac_clean_files=$ac_clean_files_save
                   11032: 
1.15      bertrand 11033: test $ac_write_fail = 0 ||
1.36      bertrand 11034:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 11035: 
1.1       bertrand 11036: 
                   11037: # configure is writing to config.log, and then calls config.status.
                   11038: # config.status does its own redirection, appending to config.log.
                   11039: # Unfortunately, on DOS this fails, as config.log is still kept open
                   11040: # by configure, so config.status won't be able to write to it; its
                   11041: # output is simply discarded.  So we exec the FD to /dev/null,
                   11042: # effectively closing config.log, so it can be properly (re)opened and
                   11043: # appended to by config.status.  When coming back to configure, we
                   11044: # need to make the FD available again.
                   11045: if test "$no_create" != yes; then
                   11046:   ac_cs_success=:
                   11047:   ac_config_status_args=
                   11048:   test "$silent" = yes &&
                   11049:     ac_config_status_args="$ac_config_status_args --quiet"
                   11050:   exec 5>/dev/null
                   11051:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   11052:   exec 5>>config.log
                   11053:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   11054:   # would make configure fail if this is the last instruction.
1.36      bertrand 11055:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 11056: fi
                   11057: 
                   11058: #
                   11059: # CONFIG_SUBDIRS section.
                   11060: #
                   11061: if test "$no_recursion" != yes; then
                   11062: 
1.15      bertrand 11063:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   11064:   # so they do not pile up.
1.1       bertrand 11065:   ac_sub_configure_args=
                   11066:   ac_prev=
                   11067:   eval "set x $ac_configure_args"
                   11068:   shift
                   11069:   for ac_arg
                   11070:   do
                   11071:     if test -n "$ac_prev"; then
                   11072:       ac_prev=
                   11073:       continue
                   11074:     fi
                   11075:     case $ac_arg in
                   11076:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   11077:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   11078:       ac_prev=cache_file ;;
                   11079:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   11080:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   11081:     | --c=*)
                   11082:       ;;
                   11083:     --config-cache | -C)
                   11084:       ;;
                   11085:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   11086:       ac_prev=srcdir ;;
                   11087:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   11088:       ;;
                   11089:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   11090:       ac_prev=prefix ;;
                   11091:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   11092:       ;;
1.15      bertrand 11093:     --disable-option-checking)
                   11094:       ;;
1.1       bertrand 11095:     *)
                   11096:       case $ac_arg in
1.15      bertrand 11097:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11098:       esac
1.15      bertrand 11099:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 11100:     esac
                   11101:   done
                   11102: 
                   11103:   # Always prepend --prefix to ensure using the same prefix
                   11104:   # in subdir configurations.
                   11105:   ac_arg="--prefix=$prefix"
                   11106:   case $ac_arg in
1.15      bertrand 11107:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11108:   esac
                   11109:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   11110: 
                   11111:   # Pass --silent
                   11112:   if test "$silent" = yes; then
                   11113:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   11114:   fi
                   11115: 
1.15      bertrand 11116:   # Always prepend --disable-option-checking to silence warnings, since
                   11117:   # different subdirs can have different --enable and --with options.
                   11118:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   11119: 
1.1       bertrand 11120:   ac_popdir=`pwd`
                   11121:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   11122: 
                   11123:     # Do not complain, so a configure script can configure whichever
                   11124:     # parts of a large source tree are present.
                   11125:     test -d "$srcdir/$ac_dir" || continue
                   11126: 
                   11127:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 11128:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   11129:     $as_echo "$ac_msg" >&6
                   11130:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 11131:     ac_builddir=.
                   11132: 
                   11133: case "$ac_dir" in
                   11134: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11135: *)
1.15      bertrand 11136:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 11137:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 11138:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 11139:   case $ac_top_builddir_sub in
                   11140:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11141:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   11142:   esac ;;
                   11143: esac
                   11144: ac_abs_top_builddir=$ac_pwd
                   11145: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   11146: # for backward compatibility:
                   11147: ac_top_builddir=$ac_top_build_prefix
                   11148: 
                   11149: case $srcdir in
                   11150:   .)  # We are building in place.
                   11151:     ac_srcdir=.
                   11152:     ac_top_srcdir=$ac_top_builddir_sub
                   11153:     ac_abs_top_srcdir=$ac_pwd ;;
                   11154:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   11155:     ac_srcdir=$srcdir$ac_dir_suffix;
                   11156:     ac_top_srcdir=$srcdir
                   11157:     ac_abs_top_srcdir=$srcdir ;;
                   11158:   *) # Relative name.
                   11159:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   11160:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   11161:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   11162: esac
                   11163: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   11164: 
                   11165: 
                   11166:     cd "$ac_dir"
                   11167: 
                   11168:     # Check for guested configure; otherwise get Cygnus style configure.
                   11169:     if test -f "$ac_srcdir/configure.gnu"; then
                   11170:       ac_sub_configure=$ac_srcdir/configure.gnu
                   11171:     elif test -f "$ac_srcdir/configure"; then
                   11172:       ac_sub_configure=$ac_srcdir/configure
                   11173:     elif test -f "$ac_srcdir/configure.in"; then
                   11174:       # This should be Cygnus configure.
                   11175:       ac_sub_configure=$ac_aux_dir/configure
                   11176:     else
1.15      bertrand 11177:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   11178: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 11179:       ac_sub_configure=
                   11180:     fi
                   11181: 
                   11182:     # The recursion is here.
                   11183:     if test -n "$ac_sub_configure"; then
                   11184:       # Make the cache file name correct relative to the subdirectory.
                   11185:       case $cache_file in
                   11186:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   11187:       *) # Relative name.
                   11188:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   11189:       esac
                   11190: 
1.15      bertrand 11191:       { $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
                   11192: $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 11193:       # The eval makes quoting arguments work.
                   11194:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   11195:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 11196:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 11197:     fi
                   11198: 
                   11199:     cd "$ac_popdir"
                   11200:   done
                   11201: fi
1.15      bertrand 11202: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   11203:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   11204: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   11205: fi
1.1       bertrand 11206: 

CVSweb interface <joel.bertrand@systella.fr>