Annotation of rpl/configure, revision 1.78

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
1.76      bertrand  617: SIGSEGV
1.78    ! bertrand  618: OPENMOTIF
1.15      bertrand  619: OPENSSL
                    620: SQLITE
                    621: ICONV
                    622: FILE
                    623: GNUPLOT
                    624: GPP
                    625: GSL
                    626: UNITS
                    627: READLINE
                    628: NCURSES
1.75      bertrand  629: ELF
1.40      bertrand  630: BSH_PATH
1.34      bertrand  631: IPV6
1.33      bertrand  632: SEMUN
1.36      bertrand  633: IPCS_SYSV
1.17      bertrand  634: SEMAPHORES_NOMMES
                    635: NESTED_FUNCTIONS
                    636: EXPORT_DYNAMIC
1.33      bertrand  637: C_STANDARD
1.15      bertrand  638: OS
1.69      bertrand  639: HOST
1.15      bertrand  640: GNUPLOT_COMPILATION
                    641: subdirs
                    642: EGREP
                    643: GREP
                    644: libPgSQLlib
                    645: libPgSQLinc
                    646: POSTGRESQL_SUPPORT
                    647: libMySQLlib
                    648: libMySQLinc
                    649: MYSQL_SUPPORT
                    650: DATE
                    651: includeX
                    652: libX
                    653: MOTIF_SUPPORT
                    654: DEBUG
                    655: EXPERIMENTAL_CODE
                    656: VIM_SUPPORT
                    657: POSTSCRIPT_SUPPORT
                    658: FORCE_GNUPLOT_PATH
                    659: GNUPLOT_SUPPORT
                    660: VIM
                    661: GNUPLOT_P
                    662: GV
                    663: GS
                    664: DVIPS
                    665: LATEX
                    666: TEX
                    667: SED
                    668: RANLIB
                    669: LN_S
                    670: RUNPATH
                    671: PROFILAGE
1.67      bertrand  672: LIBRPLCAS
                    673: RPLCAS
1.66      bertrand  674: ABI
1.15      bertrand  675: X_EXTRA_LIBS
                    676: X_LIBS
                    677: X_PRE_LIBS
                    678: X_CFLAGS
                    679: CPP
                    680: XMKMF
                    681: ac_ct_FC
                    682: FCFLAGS
                    683: FC
                    684: ac_ct_F77
                    685: FFLAGS
                    686: F77
                    687: am__fastdepCXX_FALSE
                    688: am__fastdepCXX_TRUE
                    689: CXXDEPMODE
                    690: ac_ct_CXX
                    691: CXXFLAGS
                    692: CXX
                    693: am__fastdepCC_FALSE
                    694: am__fastdepCC_TRUE
                    695: CCDEPMODE
                    696: AMDEPBACKSLASH
                    697: AMDEP_FALSE
                    698: AMDEP_TRUE
                    699: am__quote
                    700: am__include
                    701: DEPDIR
                    702: OBJEXT
                    703: EXEEXT
                    704: ac_ct_CC
                    705: CPPFLAGS
                    706: LDFLAGS
                    707: CFLAGS
                    708: CC
                    709: am__untar
                    710: am__tar
                    711: AMTAR
                    712: am__leading_dot
                    713: SET_MAKE
                    714: AWK
                    715: mkdir_p
                    716: MKDIR_P
                    717: INSTALL_STRIP_PROGRAM
                    718: STRIP
                    719: install_sh
                    720: MAKEINFO
                    721: AUTOHEADER
                    722: AUTOMAKE
                    723: AUTOCONF
                    724: ACLOCAL
                    725: VERSION
                    726: PACKAGE
                    727: CYGPATH_W
                    728: am__isrc
                    729: INSTALL_DATA
                    730: INSTALL_SCRIPT
                    731: INSTALL_PROGRAM
                    732: target_os
                    733: target_vendor
                    734: target_cpu
                    735: target
                    736: host_os
                    737: host_vendor
                    738: host_cpu
                    739: host
                    740: build_os
                    741: build_vendor
                    742: build_cpu
                    743: build
                    744: target_alias
                    745: host_alias
                    746: build_alias
                    747: LIBS
                    748: ECHO_T
                    749: ECHO_N
                    750: ECHO_C
                    751: DEFS
                    752: mandir
                    753: localedir
                    754: libdir
                    755: psdir
                    756: pdfdir
                    757: dvidir
                    758: htmldir
                    759: infodir
                    760: docdir
                    761: oldincludedir
                    762: includedir
                    763: localstatedir
                    764: sharedstatedir
                    765: sysconfdir
                    766: datadir
                    767: datarootdir
                    768: libexecdir
                    769: sbindir
                    770: bindir
                    771: program_transform_name
                    772: prefix
                    773: exec_prefix
                    774: PACKAGE_URL
                    775: PACKAGE_BUGREPORT
                    776: PACKAGE_STRING
                    777: PACKAGE_VERSION
                    778: PACKAGE_TARNAME
                    779: PACKAGE_NAME
1.14      bertrand  780: PATH_SEPARATOR
1.15      bertrand  781: SHELL'
                    782: ac_subst_files=''
                    783: ac_user_opts='
                    784: enable_option_checking
                    785: enable_dependency_tracking
                    786: with_x
1.69      bertrand  787: with_32bits_abi
                    788: with_64bits_abi
1.67      bertrand  789: with_rplcas
1.15      bertrand  790: enable_optimization
1.36      bertrand  791: enable_sysv_semaphores
1.30      bertrand  792: enable_full_static
1.15      bertrand  793: enable_final_encoding
                    794: enable_tex
                    795: enable_vim
                    796: enable_embedded_gnuplot
                    797: enable_gnuplot
                    798: enable_motif
                    799: enable_experimental
                    800: enable_debug
                    801: enable_profile
                    802: enable_final_run_path
                    803: with_mysql
                    804: with_postgresql
1.40      bertrand  805: with_bourne_shell
1.15      bertrand  806: with_openssl_arch
                    807: '
                    808:       ac_precious_vars='build_alias
1.1       bertrand  809: host_alias
                    810: target_alias
                    811: CC
                    812: CFLAGS
                    813: LDFLAGS
1.15      bertrand  814: LIBS
1.1       bertrand  815: CPPFLAGS
                    816: CXX
                    817: CXXFLAGS
1.15      bertrand  818: CCC
1.1       bertrand  819: F77
                    820: FFLAGS
                    821: FC
                    822: FCFLAGS
                    823: XMKMF
                    824: CPP'
1.69      bertrand  825: ac_subdirs_all='tools/$GNUPLOT
                    826: tools/$NCURSES
1.1       bertrand  827: tools/$READLINE
                    828: tools/$GSL
                    829: tools/$GPP
                    830: tools/$FILE
                    831: tools/$ICONV
1.9       bertrand  832: tools/$SQLITE
1.76      bertrand  833: tools/$UNITS
                    834: tools/$SIGSEGV'
1.1       bertrand  835: 
                    836: # Initialize some variables set by options.
                    837: ac_init_help=
                    838: ac_init_version=false
1.15      bertrand  839: ac_unrecognized_opts=
                    840: ac_unrecognized_sep=
1.1       bertrand  841: # The variables have the same names as the options, with
                    842: # dashes changed to underlines.
                    843: cache_file=/dev/null
                    844: exec_prefix=NONE
                    845: no_create=
                    846: no_recursion=
                    847: prefix=NONE
                    848: program_prefix=NONE
                    849: program_suffix=NONE
                    850: program_transform_name=s,x,x,
                    851: silent=
                    852: site=
                    853: srcdir=
                    854: verbose=
                    855: x_includes=NONE
                    856: x_libraries=NONE
                    857: 
                    858: # Installation directory options.
                    859: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    860: # and all the variables that are supposed to be based on exec_prefix
                    861: # by default will actually change.
                    862: # Use braces instead of parens because sh, perl, etc. also accept them.
                    863: # (The list follows the same order as the GNU Coding Standards.)
                    864: bindir='${exec_prefix}/bin'
                    865: sbindir='${exec_prefix}/sbin'
                    866: libexecdir='${exec_prefix}/libexec'
                    867: datarootdir='${prefix}/share'
                    868: datadir='${datarootdir}'
                    869: sysconfdir='${prefix}/etc'
                    870: sharedstatedir='${prefix}/com'
                    871: localstatedir='${prefix}/var'
                    872: includedir='${prefix}/include'
                    873: oldincludedir='/usr/include'
                    874: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    875: infodir='${datarootdir}/info'
                    876: htmldir='${docdir}'
                    877: dvidir='${docdir}'
                    878: pdfdir='${docdir}'
                    879: psdir='${docdir}'
                    880: libdir='${exec_prefix}/lib'
                    881: localedir='${datarootdir}/locale'
                    882: mandir='${datarootdir}/man'
                    883: 
                    884: ac_prev=
                    885: ac_dashdash=
                    886: for ac_option
                    887: do
                    888:   # If the previous option needs an argument, assign it.
                    889:   if test -n "$ac_prev"; then
                    890:     eval $ac_prev=\$ac_option
                    891:     ac_prev=
                    892:     continue
                    893:   fi
                    894: 
                    895:   case $ac_option in
1.36      bertrand  896:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    897:   *=)   ac_optarg= ;;
                    898:   *)    ac_optarg=yes ;;
1.1       bertrand  899:   esac
                    900: 
                    901:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    902: 
                    903:   case $ac_dashdash$ac_option in
                    904:   --)
                    905:     ac_dashdash=yes ;;
                    906: 
                    907:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    908:     ac_prev=bindir ;;
                    909:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    910:     bindir=$ac_optarg ;;
                    911: 
                    912:   -build | --build | --buil | --bui | --bu)
                    913:     ac_prev=build_alias ;;
                    914:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    915:     build_alias=$ac_optarg ;;
                    916: 
                    917:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    918:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    919:     ac_prev=cache_file ;;
                    920:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    921:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    922:     cache_file=$ac_optarg ;;
                    923: 
                    924:   --config-cache | -C)
                    925:     cache_file=config.cache ;;
                    926: 
                    927:   -datadir | --datadir | --datadi | --datad)
                    928:     ac_prev=datadir ;;
                    929:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    930:     datadir=$ac_optarg ;;
                    931: 
                    932:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    933:   | --dataroo | --dataro | --datar)
                    934:     ac_prev=datarootdir ;;
                    935:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    936:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    937:     datarootdir=$ac_optarg ;;
                    938: 
                    939:   -disable-* | --disable-*)
1.15      bertrand  940:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  941:     # Reject names that are not valid shell variable names.
1.15      bertrand  942:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  943:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  944:     ac_useropt_orig=$ac_useropt
                    945:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    946:     case $ac_user_opts in
                    947:       *"
                    948: "enable_$ac_useropt"
                    949: "*) ;;
                    950:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    951:     ac_unrecognized_sep=', ';;
                    952:     esac
                    953:     eval enable_$ac_useropt=no ;;
1.1       bertrand  954: 
                    955:   -docdir | --docdir | --docdi | --doc | --do)
                    956:     ac_prev=docdir ;;
                    957:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    958:     docdir=$ac_optarg ;;
                    959: 
                    960:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    961:     ac_prev=dvidir ;;
                    962:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    963:     dvidir=$ac_optarg ;;
                    964: 
                    965:   -enable-* | --enable-*)
1.15      bertrand  966:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  967:     # Reject names that are not valid shell variable names.
1.15      bertrand  968:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  969:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  970:     ac_useropt_orig=$ac_useropt
                    971:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    972:     case $ac_user_opts in
                    973:       *"
                    974: "enable_$ac_useropt"
                    975: "*) ;;
                    976:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    977:     ac_unrecognized_sep=', ';;
                    978:     esac
                    979:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  980: 
                    981:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    982:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    983:   | --exec | --exe | --ex)
                    984:     ac_prev=exec_prefix ;;
                    985:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    986:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    987:   | --exec=* | --exe=* | --ex=*)
                    988:     exec_prefix=$ac_optarg ;;
                    989: 
                    990:   -gas | --gas | --ga | --g)
                    991:     # Obsolete; use --with-gas.
                    992:     with_gas=yes ;;
                    993: 
                    994:   -help | --help | --hel | --he | -h)
                    995:     ac_init_help=long ;;
                    996:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    997:     ac_init_help=recursive ;;
                    998:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    999:     ac_init_help=short ;;
                   1000: 
                   1001:   -host | --host | --hos | --ho)
                   1002:     ac_prev=host_alias ;;
                   1003:   -host=* | --host=* | --hos=* | --ho=*)
                   1004:     host_alias=$ac_optarg ;;
                   1005: 
                   1006:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1007:     ac_prev=htmldir ;;
                   1008:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1009:   | --ht=*)
                   1010:     htmldir=$ac_optarg ;;
                   1011: 
                   1012:   -includedir | --includedir | --includedi | --included | --include \
                   1013:   | --includ | --inclu | --incl | --inc)
                   1014:     ac_prev=includedir ;;
                   1015:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1016:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1017:     includedir=$ac_optarg ;;
                   1018: 
                   1019:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1020:     ac_prev=infodir ;;
                   1021:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1022:     infodir=$ac_optarg ;;
                   1023: 
                   1024:   -libdir | --libdir | --libdi | --libd)
                   1025:     ac_prev=libdir ;;
                   1026:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1027:     libdir=$ac_optarg ;;
                   1028: 
                   1029:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1030:   | --libexe | --libex | --libe)
                   1031:     ac_prev=libexecdir ;;
                   1032:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1033:   | --libexe=* | --libex=* | --libe=*)
                   1034:     libexecdir=$ac_optarg ;;
                   1035: 
                   1036:   -localedir | --localedir | --localedi | --localed | --locale)
                   1037:     ac_prev=localedir ;;
                   1038:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1039:     localedir=$ac_optarg ;;
                   1040: 
                   1041:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1042:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1043:     ac_prev=localstatedir ;;
                   1044:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1045:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1046:     localstatedir=$ac_optarg ;;
                   1047: 
                   1048:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1049:     ac_prev=mandir ;;
                   1050:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1051:     mandir=$ac_optarg ;;
                   1052: 
                   1053:   -nfp | --nfp | --nf)
                   1054:     # Obsolete; use --without-fp.
                   1055:     with_fp=no ;;
                   1056: 
                   1057:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1058:   | --no-cr | --no-c | -n)
                   1059:     no_create=yes ;;
                   1060: 
                   1061:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1062:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1063:     no_recursion=yes ;;
                   1064: 
                   1065:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1066:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1067:   | --oldin | --oldi | --old | --ol | --o)
                   1068:     ac_prev=oldincludedir ;;
                   1069:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1070:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1071:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1072:     oldincludedir=$ac_optarg ;;
                   1073: 
                   1074:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1075:     ac_prev=prefix ;;
                   1076:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1077:     prefix=$ac_optarg ;;
                   1078: 
                   1079:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1080:   | --program-pre | --program-pr | --program-p)
                   1081:     ac_prev=program_prefix ;;
                   1082:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1083:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1084:     program_prefix=$ac_optarg ;;
                   1085: 
                   1086:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1087:   | --program-suf | --program-su | --program-s)
                   1088:     ac_prev=program_suffix ;;
                   1089:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1090:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1091:     program_suffix=$ac_optarg ;;
                   1092: 
                   1093:   -program-transform-name | --program-transform-name \
                   1094:   | --program-transform-nam | --program-transform-na \
                   1095:   | --program-transform-n | --program-transform- \
                   1096:   | --program-transform | --program-transfor \
                   1097:   | --program-transfo | --program-transf \
                   1098:   | --program-trans | --program-tran \
                   1099:   | --progr-tra | --program-tr | --program-t)
                   1100:     ac_prev=program_transform_name ;;
                   1101:   -program-transform-name=* | --program-transform-name=* \
                   1102:   | --program-transform-nam=* | --program-transform-na=* \
                   1103:   | --program-transform-n=* | --program-transform-=* \
                   1104:   | --program-transform=* | --program-transfor=* \
                   1105:   | --program-transfo=* | --program-transf=* \
                   1106:   | --program-trans=* | --program-tran=* \
                   1107:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1108:     program_transform_name=$ac_optarg ;;
                   1109: 
                   1110:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1111:     ac_prev=pdfdir ;;
                   1112:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1113:     pdfdir=$ac_optarg ;;
                   1114: 
                   1115:   -psdir | --psdir | --psdi | --psd | --ps)
                   1116:     ac_prev=psdir ;;
                   1117:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1118:     psdir=$ac_optarg ;;
                   1119: 
                   1120:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1121:   | -silent | --silent | --silen | --sile | --sil)
                   1122:     silent=yes ;;
                   1123: 
                   1124:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1125:     ac_prev=sbindir ;;
                   1126:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1127:   | --sbi=* | --sb=*)
                   1128:     sbindir=$ac_optarg ;;
                   1129: 
                   1130:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1131:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1132:   | --sharedst | --shareds | --shared | --share | --shar \
                   1133:   | --sha | --sh)
                   1134:     ac_prev=sharedstatedir ;;
                   1135:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1136:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1137:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1138:   | --sha=* | --sh=*)
                   1139:     sharedstatedir=$ac_optarg ;;
                   1140: 
                   1141:   -site | --site | --sit)
                   1142:     ac_prev=site ;;
                   1143:   -site=* | --site=* | --sit=*)
                   1144:     site=$ac_optarg ;;
                   1145: 
                   1146:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1147:     ac_prev=srcdir ;;
                   1148:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1149:     srcdir=$ac_optarg ;;
                   1150: 
                   1151:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1152:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1153:     ac_prev=sysconfdir ;;
                   1154:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1155:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1156:     sysconfdir=$ac_optarg ;;
                   1157: 
                   1158:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1159:     ac_prev=target_alias ;;
                   1160:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1161:     target_alias=$ac_optarg ;;
                   1162: 
                   1163:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1164:     verbose=yes ;;
                   1165: 
                   1166:   -version | --version | --versio | --versi | --vers | -V)
                   1167:     ac_init_version=: ;;
                   1168: 
                   1169:   -with-* | --with-*)
1.15      bertrand 1170:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1171:     # Reject names that are not valid shell variable names.
1.15      bertrand 1172:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1173:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1174:     ac_useropt_orig=$ac_useropt
                   1175:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1176:     case $ac_user_opts in
                   1177:       *"
                   1178: "with_$ac_useropt"
                   1179: "*) ;;
                   1180:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1181:     ac_unrecognized_sep=', ';;
                   1182:     esac
                   1183:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1184: 
                   1185:   -without-* | --without-*)
1.15      bertrand 1186:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1187:     # Reject names that are not valid shell variable names.
1.15      bertrand 1188:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1189:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1190:     ac_useropt_orig=$ac_useropt
                   1191:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1192:     case $ac_user_opts in
                   1193:       *"
                   1194: "with_$ac_useropt"
                   1195: "*) ;;
                   1196:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1197:     ac_unrecognized_sep=', ';;
                   1198:     esac
                   1199:     eval with_$ac_useropt=no ;;
1.1       bertrand 1200: 
                   1201:   --x)
                   1202:     # Obsolete; use --with-x.
                   1203:     with_x=yes ;;
                   1204: 
                   1205:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1206:   | --x-incl | --x-inc | --x-in | --x-i)
                   1207:     ac_prev=x_includes ;;
                   1208:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1209:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1210:     x_includes=$ac_optarg ;;
                   1211: 
                   1212:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1213:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1214:     ac_prev=x_libraries ;;
                   1215:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1216:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1217:     x_libraries=$ac_optarg ;;
                   1218: 
1.36      bertrand 1219:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1220: Try \`$0 --help' for more information"
1.1       bertrand 1221:     ;;
                   1222: 
                   1223:   *=*)
                   1224:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1225:     # Reject names that are not valid shell variable names.
1.15      bertrand 1226:     case $ac_envvar in #(
                   1227:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1228:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1229:     esac
1.1       bertrand 1230:     eval $ac_envvar=\$ac_optarg
                   1231:     export $ac_envvar ;;
                   1232: 
                   1233:   *)
                   1234:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1235:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1236:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1237:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.57      bertrand 1238:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1       bertrand 1239:     ;;
                   1240: 
                   1241:   esac
                   1242: done
                   1243: 
                   1244: if test -n "$ac_prev"; then
                   1245:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1246:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1247: fi
                   1248: 
                   1249: if test -n "$ac_unrecognized_opts"; then
                   1250:   case $enable_option_checking in
                   1251:     no) ;;
1.36      bertrand 1252:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1253:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1254:   esac
1.1       bertrand 1255: fi
                   1256: 
1.15      bertrand 1257: # Check all directory arguments for consistency.
1.1       bertrand 1258: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1259:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1260:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1261:        libdir localedir mandir
                   1262: do
                   1263:   eval ac_val=\$$ac_var
1.15      bertrand 1264:   # Remove trailing slashes.
                   1265:   case $ac_val in
                   1266:     */ )
                   1267:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1268:       eval $ac_var=\$ac_val;;
                   1269:   esac
                   1270:   # Be sure to have absolute directory names.
1.1       bertrand 1271:   case $ac_val in
                   1272:     [\\/$]* | ?:[\\/]* )  continue;;
                   1273:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1274:   esac
1.36      bertrand 1275:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1276: done
                   1277: 
                   1278: # There might be people who depend on the old broken behavior: `$host'
                   1279: # used to hold the argument of --host etc.
                   1280: # FIXME: To remove some day.
                   1281: build=$build_alias
                   1282: host=$host_alias
                   1283: target=$target_alias
                   1284: 
                   1285: # FIXME: To remove some day.
                   1286: if test "x$host_alias" != x; then
                   1287:   if test "x$build_alias" = x; then
                   1288:     cross_compiling=maybe
1.36      bertrand 1289:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1290:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1291:   elif test "x$build_alias" != "x$host_alias"; then
                   1292:     cross_compiling=yes
                   1293:   fi
                   1294: fi
                   1295: 
                   1296: ac_tool_prefix=
                   1297: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1298: 
                   1299: test "$silent" = yes && exec 6>/dev/null
                   1300: 
                   1301: 
                   1302: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1303: ac_ls_di=`ls -di .` &&
                   1304: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1305:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1306: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1307:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1308: 
                   1309: 
                   1310: # Find the source files, if location was not specified.
                   1311: if test -z "$srcdir"; then
                   1312:   ac_srcdir_defaulted=yes
                   1313:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1314:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1315: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1316:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1317:     X"$as_myself" : 'X\(//\)$' \| \
                   1318:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1319: $as_echo X"$as_myself" |
1.1       bertrand 1320:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1321:        s//\1/
                   1322:        q
                   1323:      }
                   1324:      /^X\(\/\/\)[^/].*/{
                   1325:        s//\1/
                   1326:        q
                   1327:      }
                   1328:      /^X\(\/\/\)$/{
                   1329:        s//\1/
                   1330:        q
                   1331:      }
                   1332:      /^X\(\/\).*/{
                   1333:        s//\1/
                   1334:        q
                   1335:      }
                   1336:      s/.*/./; q'`
                   1337:   srcdir=$ac_confdir
                   1338:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1339:     srcdir=..
                   1340:   fi
                   1341: else
                   1342:   ac_srcdir_defaulted=no
                   1343: fi
                   1344: if test ! -r "$srcdir/$ac_unique_file"; then
                   1345:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1346:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1347: fi
                   1348: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1349: ac_abs_confdir=`(
1.36      bertrand 1350:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1351:    pwd)`
                   1352: # When building in place, set srcdir=.
                   1353: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1354:   srcdir=.
                   1355: fi
                   1356: # Remove unnecessary trailing slashes from srcdir.
                   1357: # Double slashes in file names in object file debugging info
                   1358: # mess up M-x gdb in Emacs.
                   1359: case $srcdir in
                   1360: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1361: esac
                   1362: for ac_var in $ac_precious_vars; do
                   1363:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1364:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1365:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1366:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1367: done
                   1368: 
                   1369: #
                   1370: # Report the --help message.
                   1371: #
                   1372: if test "$ac_init_help" = "long"; then
                   1373:   # Omit some internal or obsolete options to make the list less imposing.
                   1374:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1375:   cat <<_ACEOF
1.73      bertrand 1376: \`configure' configures rpl 4.1.3 to adapt to many kinds of systems.
1.1       bertrand 1377: 
                   1378: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1379: 
                   1380: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1381: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1382: 
                   1383: Defaults for the options are specified in brackets.
                   1384: 
                   1385: Configuration:
                   1386:   -h, --help              display this help and exit
                   1387:       --help=short        display options specific to this package
                   1388:       --help=recursive    display the short help of all the included packages
                   1389:   -V, --version           display version information and exit
1.36      bertrand 1390:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1391:       --cache-file=FILE   cache test results in FILE [disabled]
                   1392:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1393:   -n, --no-create         do not create output files
                   1394:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1395: 
                   1396: Installation directories:
                   1397:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1398:                           [$ac_default_prefix]
1.1       bertrand 1399:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1400:                           [PREFIX]
1.1       bertrand 1401: 
                   1402: By default, \`make install' will install all the files in
                   1403: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1404: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1405: for instance \`--prefix=\$HOME'.
                   1406: 
                   1407: For better control, use the options below.
                   1408: 
                   1409: Fine tuning of the installation directories:
1.15      bertrand 1410:   --bindir=DIR            user executables [EPREFIX/bin]
                   1411:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1412:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1413:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1414:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1415:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1416:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1417:   --includedir=DIR        C header files [PREFIX/include]
                   1418:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1419:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1420:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1421:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1422:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1423:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1424:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1425:   --htmldir=DIR           html documentation [DOCDIR]
                   1426:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1427:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1428:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1429: _ACEOF
                   1430: 
                   1431:   cat <<\_ACEOF
                   1432: 
                   1433: Program names:
                   1434:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1435:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1436:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1437: 
                   1438: X features:
                   1439:   --x-includes=DIR    X include files are in DIR
                   1440:   --x-libraries=DIR   X library files are in DIR
                   1441: 
                   1442: System types:
                   1443:   --build=BUILD     configure for building on BUILD [guessed]
                   1444:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1445:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1446: _ACEOF
                   1447: fi
                   1448: 
                   1449: if test -n "$ac_init_help"; then
                   1450:   case $ac_init_help in
1.73      bertrand 1451:      short | recursive ) echo "Configuration of rpl 4.1.3:";;
1.1       bertrand 1452:    esac
                   1453:   cat <<\_ACEOF
                   1454: 
                   1455: Optional Features:
1.15      bertrand 1456:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1457:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1458:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1459:   --disable-dependency-tracking  speeds up one-time build
                   1460:   --enable-dependency-tracking   do not reject slow dependency extractors
                   1461:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.36      bertrand 1462:   --enable-sysv-ipcs      use SystemV IPC functions [default=no]
1.30      bertrand 1463:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1464:   --enable-final-encoding force final encoding [default=guessed]
                   1465:   --enable-tex            provide the TeX support [default=guessed]
                   1466:   --enable-vim            provide the vim support [default=guessed]
                   1467:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1468:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1469:   --enable-motif          provide the Motif support [default=guessed]
                   1470:   --enable-experimental   enable experimental code [default=no]
                   1471:   --enable-debug          enable debug code [default=no]
                   1472:   --enable-profile        enable profile code [default=no]
                   1473:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1474: 
                   1475: Optional Packages:
                   1476:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1477:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1478:   --with-x                use the X Window System
1.64      bertrand 1479:   --with-32bits-abi       force 32bits ABI (multilib)
1.67      bertrand 1480:   --with-64bits-abi       force 64bits ABI (multilib)
                   1481:   --with-rplcas           compile rplcas (default=no)
1.1       bertrand 1482:   --with-mysql=PATH         specify directory for installed mysql
                   1483:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1484:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1485:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1486: 
                   1487: Some influential environment variables:
                   1488:   CC          C compiler command
                   1489:   CFLAGS      C compiler flags
                   1490:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1491:               nonstandard directory <lib dir>
                   1492:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1493:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1494:               you have headers in a nonstandard directory <include dir>
                   1495:   CXX         C++ compiler command
                   1496:   CXXFLAGS    C++ compiler flags
                   1497:   F77         Fortran 77 compiler command
                   1498:   FFLAGS      Fortran 77 compiler flags
                   1499:   FC          Fortran compiler command
                   1500:   FCFLAGS     Fortran compiler flags
                   1501:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1502:   CPP         C preprocessor
                   1503: 
                   1504: Use these variables to override the choices made by `configure' or to help
                   1505: it to find libraries and programs with nonstandard names/locations.
                   1506: 
1.15      bertrand 1507: Report bugs to the package provider.
1.1       bertrand 1508: _ACEOF
                   1509: ac_status=$?
                   1510: fi
                   1511: 
                   1512: if test "$ac_init_help" = "recursive"; then
                   1513:   # If there are subdirs, report their specific --help.
                   1514:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1515:     test -d "$ac_dir" ||
                   1516:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1517:       continue
1.1       bertrand 1518:     ac_builddir=.
                   1519: 
                   1520: case "$ac_dir" in
                   1521: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1522: *)
1.15      bertrand 1523:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1524:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1525:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1526:   case $ac_top_builddir_sub in
                   1527:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1528:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1529:   esac ;;
                   1530: esac
                   1531: ac_abs_top_builddir=$ac_pwd
                   1532: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1533: # for backward compatibility:
                   1534: ac_top_builddir=$ac_top_build_prefix
                   1535: 
                   1536: case $srcdir in
                   1537:   .)  # We are building in place.
                   1538:     ac_srcdir=.
                   1539:     ac_top_srcdir=$ac_top_builddir_sub
                   1540:     ac_abs_top_srcdir=$ac_pwd ;;
                   1541:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1542:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1543:     ac_top_srcdir=$srcdir
                   1544:     ac_abs_top_srcdir=$srcdir ;;
                   1545:   *) # Relative name.
                   1546:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1547:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1548:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1549: esac
                   1550: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1551: 
                   1552:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1553:     # Check for guested configure.
                   1554:     if test -f "$ac_srcdir/configure.gnu"; then
                   1555:       echo &&
                   1556:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1557:     elif test -f "$ac_srcdir/configure"; then
                   1558:       echo &&
                   1559:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1560:     else
1.15      bertrand 1561:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1562:     fi || ac_status=$?
                   1563:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1564:   done
                   1565: fi
                   1566: 
                   1567: test -n "$ac_init_help" && exit $ac_status
                   1568: if $ac_init_version; then
                   1569:   cat <<\_ACEOF
1.73      bertrand 1570: rpl configure 4.1.3
1.57      bertrand 1571: generated by GNU Autoconf 2.68
1.1       bertrand 1572: 
1.36      bertrand 1573: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1574: This configure script is free software; the Free Software Foundation
                   1575: gives unlimited permission to copy, distribute and modify it.
                   1576: _ACEOF
                   1577:   exit
                   1578: fi
                   1579: 
1.15      bertrand 1580: ## ------------------------ ##
                   1581: ## Autoconf initialization. ##
                   1582: ## ------------------------ ##
                   1583: 
                   1584: # ac_fn_c_try_compile LINENO
                   1585: # --------------------------
                   1586: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1587: ac_fn_c_try_compile ()
                   1588: {
                   1589:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1590:   rm -f conftest.$ac_objext
                   1591:   if { { ac_try="$ac_compile"
                   1592: case "(($ac_try" in
                   1593:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1594:   *) ac_try_echo=$ac_try;;
                   1595: esac
                   1596: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1597: $as_echo "$ac_try_echo"; } >&5
                   1598:   (eval "$ac_compile") 2>conftest.err
                   1599:   ac_status=$?
                   1600:   if test -s conftest.err; then
                   1601:     grep -v '^ *+' conftest.err >conftest.er1
                   1602:     cat conftest.er1 >&5
                   1603:     mv -f conftest.er1 conftest.err
                   1604:   fi
                   1605:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1606:   test $ac_status = 0; } && {
                   1607:     test -z "$ac_c_werror_flag" ||
                   1608:     test ! -s conftest.err
                   1609:        } && test -s conftest.$ac_objext; then :
                   1610:   ac_retval=0
                   1611: else
                   1612:   $as_echo "$as_me: failed program was:" >&5
                   1613: sed 's/^/| /' conftest.$ac_ext >&5
                   1614: 
                   1615:    ac_retval=1
                   1616: fi
1.57      bertrand 1617:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1618:   as_fn_set_status $ac_retval
1.1       bertrand 1619: 
1.15      bertrand 1620: } # ac_fn_c_try_compile
1.1       bertrand 1621: 
1.15      bertrand 1622: # ac_fn_cxx_try_compile LINENO
                   1623: # ----------------------------
                   1624: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1625: ac_fn_cxx_try_compile ()
1.1       bertrand 1626: {
1.15      bertrand 1627:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1628:   rm -f conftest.$ac_objext
                   1629:   if { { ac_try="$ac_compile"
                   1630: case "(($ac_try" in
                   1631:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1632:   *) ac_try_echo=$ac_try;;
                   1633: esac
                   1634: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1635: $as_echo "$ac_try_echo"; } >&5
                   1636:   (eval "$ac_compile") 2>conftest.err
                   1637:   ac_status=$?
                   1638:   if test -s conftest.err; then
                   1639:     grep -v '^ *+' conftest.err >conftest.er1
                   1640:     cat conftest.er1 >&5
                   1641:     mv -f conftest.er1 conftest.err
                   1642:   fi
                   1643:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1644:   test $ac_status = 0; } && {
                   1645:     test -z "$ac_cxx_werror_flag" ||
                   1646:     test ! -s conftest.err
                   1647:        } && test -s conftest.$ac_objext; then :
                   1648:   ac_retval=0
                   1649: else
                   1650:   $as_echo "$as_me: failed program was:" >&5
                   1651: sed 's/^/| /' conftest.$ac_ext >&5
                   1652: 
                   1653:    ac_retval=1
                   1654: fi
1.57      bertrand 1655:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1656:   as_fn_set_status $ac_retval
1.1       bertrand 1657: 
1.15      bertrand 1658: } # ac_fn_cxx_try_compile
1.1       bertrand 1659: 
1.15      bertrand 1660: # ac_fn_f77_try_compile LINENO
                   1661: # ----------------------------
                   1662: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1663: ac_fn_f77_try_compile ()
                   1664: {
                   1665:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1666:   rm -f conftest.$ac_objext
                   1667:   if { { ac_try="$ac_compile"
                   1668: case "(($ac_try" in
                   1669:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1670:   *) ac_try_echo=$ac_try;;
                   1671: esac
                   1672: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1673: $as_echo "$ac_try_echo"; } >&5
                   1674:   (eval "$ac_compile") 2>conftest.err
                   1675:   ac_status=$?
                   1676:   if test -s conftest.err; then
                   1677:     grep -v '^ *+' conftest.err >conftest.er1
                   1678:     cat conftest.er1 >&5
                   1679:     mv -f conftest.er1 conftest.err
                   1680:   fi
                   1681:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1682:   test $ac_status = 0; } && {
                   1683:     test -z "$ac_f77_werror_flag" ||
                   1684:     test ! -s conftest.err
                   1685:        } && test -s conftest.$ac_objext; then :
                   1686:   ac_retval=0
                   1687: else
                   1688:   $as_echo "$as_me: failed program was:" >&5
                   1689: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1690: 
1.15      bertrand 1691:    ac_retval=1
                   1692: fi
1.57      bertrand 1693:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1694:   as_fn_set_status $ac_retval
1.1       bertrand 1695: 
1.15      bertrand 1696: } # ac_fn_f77_try_compile
1.1       bertrand 1697: 
1.15      bertrand 1698: # ac_fn_fc_try_compile LINENO
                   1699: # ---------------------------
                   1700: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1701: ac_fn_fc_try_compile ()
                   1702: {
                   1703:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1704:   rm -f conftest.$ac_objext
                   1705:   if { { ac_try="$ac_compile"
                   1706: case "(($ac_try" in
                   1707:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1708:   *) ac_try_echo=$ac_try;;
                   1709: esac
                   1710: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1711: $as_echo "$ac_try_echo"; } >&5
                   1712:   (eval "$ac_compile") 2>conftest.err
                   1713:   ac_status=$?
                   1714:   if test -s conftest.err; then
                   1715:     grep -v '^ *+' conftest.err >conftest.er1
                   1716:     cat conftest.er1 >&5
                   1717:     mv -f conftest.er1 conftest.err
                   1718:   fi
                   1719:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1720:   test $ac_status = 0; } && {
                   1721:     test -z "$ac_fc_werror_flag" ||
                   1722:     test ! -s conftest.err
                   1723:        } && test -s conftest.$ac_objext; then :
                   1724:   ac_retval=0
                   1725: else
                   1726:   $as_echo "$as_me: failed program was:" >&5
                   1727: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1728: 
1.15      bertrand 1729:    ac_retval=1
                   1730: fi
1.57      bertrand 1731:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1732:   as_fn_set_status $ac_retval
1.1       bertrand 1733: 
1.15      bertrand 1734: } # ac_fn_fc_try_compile
1.1       bertrand 1735: 
1.15      bertrand 1736: # ac_fn_c_try_cpp LINENO
                   1737: # ----------------------
                   1738: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1739: ac_fn_c_try_cpp ()
                   1740: {
                   1741:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1742:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1743: case "(($ac_try" in
                   1744:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1745:   *) ac_try_echo=$ac_try;;
                   1746: esac
                   1747: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1748: $as_echo "$ac_try_echo"; } >&5
                   1749:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1750:   ac_status=$?
                   1751:   if test -s conftest.err; then
                   1752:     grep -v '^ *+' conftest.err >conftest.er1
                   1753:     cat conftest.er1 >&5
                   1754:     mv -f conftest.er1 conftest.err
                   1755:   fi
                   1756:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36      bertrand 1757:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1758:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1759:     test ! -s conftest.err
                   1760:        }; then :
                   1761:   ac_retval=0
                   1762: else
                   1763:   $as_echo "$as_me: failed program was:" >&5
                   1764: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1765: 
1.15      bertrand 1766:     ac_retval=1
                   1767: fi
1.57      bertrand 1768:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1769:   as_fn_set_status $ac_retval
1.1       bertrand 1770: 
1.15      bertrand 1771: } # ac_fn_c_try_cpp
1.1       bertrand 1772: 
1.15      bertrand 1773: # ac_fn_c_try_link LINENO
                   1774: # -----------------------
                   1775: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1776: ac_fn_c_try_link ()
                   1777: {
                   1778:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1779:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1780:   if { { ac_try="$ac_link"
                   1781: case "(($ac_try" in
                   1782:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1783:   *) ac_try_echo=$ac_try;;
                   1784: esac
                   1785: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1786: $as_echo "$ac_try_echo"; } >&5
                   1787:   (eval "$ac_link") 2>conftest.err
                   1788:   ac_status=$?
                   1789:   if test -s conftest.err; then
                   1790:     grep -v '^ *+' conftest.err >conftest.er1
                   1791:     cat conftest.er1 >&5
                   1792:     mv -f conftest.er1 conftest.err
                   1793:   fi
                   1794:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1795:   test $ac_status = 0; } && {
                   1796:     test -z "$ac_c_werror_flag" ||
                   1797:     test ! -s conftest.err
                   1798:        } && test -s conftest$ac_exeext && {
                   1799:     test "$cross_compiling" = yes ||
                   1800:     $as_test_x conftest$ac_exeext
                   1801:        }; then :
                   1802:   ac_retval=0
                   1803: else
                   1804:   $as_echo "$as_me: failed program was:" >&5
                   1805: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1806: 
1.15      bertrand 1807:    ac_retval=1
                   1808: fi
                   1809:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1810:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1811:   # interfere with the next link command; also delete a directory that is
                   1812:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1813:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1814:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1815:   as_fn_set_status $ac_retval
1.1       bertrand 1816: 
1.15      bertrand 1817: } # ac_fn_c_try_link
1.1       bertrand 1818: 
1.15      bertrand 1819: # ac_fn_c_check_func LINENO FUNC VAR
                   1820: # ----------------------------------
                   1821: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1822: ac_fn_c_check_func ()
                   1823: {
                   1824:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1825:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1826: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1827: if eval \${$3+:} false; then :
1.15      bertrand 1828:   $as_echo_n "(cached) " >&6
                   1829: else
                   1830:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1831: /* end confdefs.h.  */
                   1832: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1833:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1834: #define $2 innocuous_$2
1.1       bertrand 1835: 
1.15      bertrand 1836: /* System header to define __stub macros and hopefully few prototypes,
                   1837:     which can conflict with char $2 (); below.
                   1838:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1839:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1840: 
1.15      bertrand 1841: #ifdef __STDC__
                   1842: # include <limits.h>
                   1843: #else
                   1844: # include <assert.h>
                   1845: #endif
1.1       bertrand 1846: 
1.15      bertrand 1847: #undef $2
1.1       bertrand 1848: 
1.15      bertrand 1849: /* Override any GCC internal prototype to avoid an error.
                   1850:    Use char because int might match the return type of a GCC
                   1851:    builtin and then its argument prototype would still apply.  */
                   1852: #ifdef __cplusplus
                   1853: extern "C"
                   1854: #endif
                   1855: char $2 ();
                   1856: /* The GNU C library defines this for functions which it implements
                   1857:     to always fail with ENOSYS.  Some functions are actually named
                   1858:     something starting with __ and the normal name is an alias.  */
                   1859: #if defined __stub_$2 || defined __stub___$2
                   1860: choke me
                   1861: #endif
1.1       bertrand 1862: 
1.15      bertrand 1863: int
                   1864: main ()
                   1865: {
                   1866: return $2 ();
                   1867:   ;
                   1868:   return 0;
                   1869: }
1.1       bertrand 1870: _ACEOF
1.15      bertrand 1871: if ac_fn_c_try_link "$LINENO"; then :
                   1872:   eval "$3=yes"
                   1873: else
                   1874:   eval "$3=no"
                   1875: fi
                   1876: rm -f core conftest.err conftest.$ac_objext \
                   1877:     conftest$ac_exeext conftest.$ac_ext
                   1878: fi
                   1879: eval ac_res=\$$3
                   1880:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1881: $as_echo "$ac_res" >&6; }
1.57      bertrand 1882:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 1883: 
1.15      bertrand 1884: } # ac_fn_c_check_func
1.1       bertrand 1885: 
1.33      bertrand 1886: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1887: # -------------------------------------------
                   1888: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1889: # variable VAR accordingly.
                   1890: ac_fn_c_check_type ()
                   1891: {
                   1892:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1893:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1894: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1895: if eval \${$3+:} false; then :
1.33      bertrand 1896:   $as_echo_n "(cached) " >&6
                   1897: else
                   1898:   eval "$3=no"
                   1899:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1900: /* end confdefs.h.  */
                   1901: $4
                   1902: int
                   1903: main ()
                   1904: {
                   1905: if (sizeof ($2))
                   1906:     return 0;
                   1907:   ;
                   1908:   return 0;
                   1909: }
                   1910: _ACEOF
                   1911: if ac_fn_c_try_compile "$LINENO"; then :
                   1912:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1913: /* end confdefs.h.  */
                   1914: $4
                   1915: int
                   1916: main ()
                   1917: {
                   1918: if (sizeof (($2)))
                   1919:        return 0;
                   1920:   ;
                   1921:   return 0;
                   1922: }
                   1923: _ACEOF
                   1924: if ac_fn_c_try_compile "$LINENO"; then :
                   1925: 
                   1926: else
                   1927:   eval "$3=yes"
                   1928: fi
                   1929: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1930: fi
                   1931: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1932: fi
                   1933: eval ac_res=\$$3
                   1934:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1935: $as_echo "$ac_res" >&6; }
1.57      bertrand 1936:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33      bertrand 1937: 
                   1938: } # ac_fn_c_check_type
                   1939: 
1.15      bertrand 1940: # ac_fn_c_try_run LINENO
                   1941: # ----------------------
                   1942: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1943: # that executables *can* be run.
                   1944: ac_fn_c_try_run ()
                   1945: {
                   1946:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1947:   if { { ac_try="$ac_link"
                   1948: case "(($ac_try" in
                   1949:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1950:   *) ac_try_echo=$ac_try;;
                   1951: esac
                   1952: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1953: $as_echo "$ac_try_echo"; } >&5
                   1954:   (eval "$ac_link") 2>&5
                   1955:   ac_status=$?
                   1956:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1957:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1958:   { { case "(($ac_try" in
                   1959:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1960:   *) ac_try_echo=$ac_try;;
                   1961: esac
                   1962: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1963: $as_echo "$ac_try_echo"; } >&5
                   1964:   (eval "$ac_try") 2>&5
                   1965:   ac_status=$?
                   1966:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1967:   test $ac_status = 0; }; }; then :
                   1968:   ac_retval=0
                   1969: else
                   1970:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1971:        $as_echo "$as_me: failed program was:" >&5
                   1972: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1973: 
1.15      bertrand 1974:        ac_retval=$ac_status
                   1975: fi
                   1976:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1977:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1978:   as_fn_set_status $ac_retval
1.1       bertrand 1979: 
1.15      bertrand 1980: } # ac_fn_c_try_run
1.1       bertrand 1981: 
1.15      bertrand 1982: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1983: # --------------------------------------------
                   1984: # Tries to find the compile-time value of EXPR in a program that includes
                   1985: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1986: # computed
                   1987: ac_fn_c_compute_int ()
                   1988: {
                   1989:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1990:   if test "$cross_compiling" = yes; then
                   1991:     # Depending upon the size, compute the lo and hi bounds.
                   1992: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1993: /* end confdefs.h.  */
                   1994: $4
                   1995: int
                   1996: main ()
                   1997: {
                   1998: static int test_array [1 - 2 * !(($2) >= 0)];
                   1999: test_array [0] = 0
1.1       bertrand 2000: 
1.15      bertrand 2001:   ;
                   2002:   return 0;
                   2003: }
1.1       bertrand 2004: _ACEOF
1.15      bertrand 2005: if ac_fn_c_try_compile "$LINENO"; then :
                   2006:   ac_lo=0 ac_mid=0
                   2007:   while :; do
                   2008:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2009: /* end confdefs.h.  */
                   2010: $4
                   2011: int
                   2012: main ()
                   2013: {
                   2014: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2015: test_array [0] = 0
1.1       bertrand 2016: 
1.15      bertrand 2017:   ;
                   2018:   return 0;
                   2019: }
                   2020: _ACEOF
                   2021: if ac_fn_c_try_compile "$LINENO"; then :
                   2022:   ac_hi=$ac_mid; break
                   2023: else
                   2024:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2025:            if test $ac_lo -le $ac_mid; then
                   2026:              ac_lo= ac_hi=
                   2027:              break
                   2028:            fi
                   2029:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2030: fi
                   2031: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2032:   done
                   2033: else
                   2034:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2035: /* end confdefs.h.  */
                   2036: $4
                   2037: int
                   2038: main ()
                   2039: {
                   2040: static int test_array [1 - 2 * !(($2) < 0)];
                   2041: test_array [0] = 0
1.1       bertrand 2042: 
1.15      bertrand 2043:   ;
                   2044:   return 0;
                   2045: }
1.1       bertrand 2046: _ACEOF
1.15      bertrand 2047: if ac_fn_c_try_compile "$LINENO"; then :
                   2048:   ac_hi=-1 ac_mid=-1
                   2049:   while :; do
                   2050:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2051: /* end confdefs.h.  */
                   2052: $4
                   2053: int
                   2054: main ()
                   2055: {
                   2056: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2057: test_array [0] = 0
1.1       bertrand 2058: 
1.15      bertrand 2059:   ;
                   2060:   return 0;
                   2061: }
                   2062: _ACEOF
                   2063: if ac_fn_c_try_compile "$LINENO"; then :
                   2064:   ac_lo=$ac_mid; break
                   2065: else
                   2066:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2067:            if test $ac_mid -le $ac_hi; then
                   2068:              ac_lo= ac_hi=
                   2069:              break
                   2070:            fi
                   2071:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2072: fi
                   2073: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2074:   done
1.1       bertrand 2075: else
1.15      bertrand 2076:   ac_lo= ac_hi=
                   2077: fi
                   2078: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2079: fi
1.15      bertrand 2080: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2081: # Binary search between lo and hi bounds.
                   2082: while test "x$ac_lo" != "x$ac_hi"; do
                   2083:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2084:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2085: /* end confdefs.h.  */
                   2086: $4
                   2087: int
                   2088: main ()
                   2089: {
                   2090: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2091: test_array [0] = 0
1.1       bertrand 2092: 
1.15      bertrand 2093:   ;
                   2094:   return 0;
                   2095: }
                   2096: _ACEOF
                   2097: if ac_fn_c_try_compile "$LINENO"; then :
                   2098:   ac_hi=$ac_mid
1.1       bertrand 2099: else
1.15      bertrand 2100:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2101: fi
1.15      bertrand 2102: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2103: done
                   2104: case $ac_lo in #((
                   2105: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2106: '') ac_retval=1 ;;
                   2107: esac
                   2108:   else
                   2109:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2110: /* end confdefs.h.  */
                   2111: $4
                   2112: static long int longval () { return $2; }
                   2113: static unsigned long int ulongval () { return $2; }
                   2114: #include <stdio.h>
                   2115: #include <stdlib.h>
                   2116: int
                   2117: main ()
                   2118: {
1.1       bertrand 2119: 
1.15      bertrand 2120:   FILE *f = fopen ("conftest.val", "w");
                   2121:   if (! f)
                   2122:     return 1;
                   2123:   if (($2) < 0)
                   2124:     {
                   2125:       long int i = longval ();
                   2126:       if (i != ($2))
                   2127:    return 1;
                   2128:       fprintf (f, "%ld", i);
                   2129:     }
                   2130:   else
                   2131:     {
                   2132:       unsigned long int i = ulongval ();
                   2133:       if (i != ($2))
                   2134:    return 1;
                   2135:       fprintf (f, "%lu", i);
                   2136:     }
                   2137:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2138:      on some platforms.  */
                   2139:   return ferror (f) || fclose (f) != 0;
                   2140: 
                   2141:   ;
                   2142:   return 0;
                   2143: }
                   2144: _ACEOF
                   2145: if ac_fn_c_try_run "$LINENO"; then :
                   2146:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2147: else
                   2148:   ac_retval=1
1.14      bertrand 2149: fi
1.15      bertrand 2150: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2151:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2152: rm -f conftest.val
1.14      bertrand 2153: 
1.15      bertrand 2154:   fi
1.57      bertrand 2155:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 2156:   as_fn_set_status $ac_retval
1.14      bertrand 2157: 
1.15      bertrand 2158: } # ac_fn_c_compute_int
1.1       bertrand 2159: 
1.15      bertrand 2160: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2161: # -------------------------------------------------------
                   2162: # Tests whether HEADER exists and can be compiled using the include files in
                   2163: # INCLUDES, setting the cache variable VAR accordingly.
                   2164: ac_fn_c_check_header_compile ()
                   2165: {
                   2166:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2167:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2168: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2169: if eval \${$3+:} false; then :
1.15      bertrand 2170:   $as_echo_n "(cached) " >&6
                   2171: else
                   2172:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2173: /* end confdefs.h.  */
                   2174: $4
                   2175: #include <$2>
                   2176: _ACEOF
                   2177: if ac_fn_c_try_compile "$LINENO"; then :
                   2178:   eval "$3=yes"
                   2179: else
                   2180:   eval "$3=no"
                   2181: fi
                   2182: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2183: fi
                   2184: eval ac_res=\$$3
                   2185:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2186: $as_echo "$ac_res" >&6; }
1.57      bertrand 2187:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2188: 
1.15      bertrand 2189: } # ac_fn_c_check_header_compile
1.1       bertrand 2190: 
1.15      bertrand 2191: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2192: # -------------------------------------------------------
                   2193: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2194: # the include files in INCLUDES and setting the cache variable VAR
                   2195: # accordingly.
                   2196: ac_fn_c_check_header_mongrel ()
                   2197: {
                   2198:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.57      bertrand 2199:   if eval \${$3+:} false; then :
1.15      bertrand 2200:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2201: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2202: if eval \${$3+:} false; then :
1.15      bertrand 2203:   $as_echo_n "(cached) " >&6
                   2204: fi
                   2205: eval ac_res=\$$3
                   2206:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2207: $as_echo "$ac_res" >&6; }
                   2208: else
                   2209:   # Is the header compilable?
                   2210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2211: $as_echo_n "checking $2 usability... " >&6; }
                   2212: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2213: /* end confdefs.h.  */
                   2214: $4
                   2215: #include <$2>
                   2216: _ACEOF
                   2217: if ac_fn_c_try_compile "$LINENO"; then :
                   2218:   ac_header_compiler=yes
                   2219: else
                   2220:   ac_header_compiler=no
                   2221: fi
                   2222: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2224: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2225: 
1.15      bertrand 2226: # Is the header present?
                   2227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2228: $as_echo_n "checking $2 presence... " >&6; }
                   2229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2230: /* end confdefs.h.  */
                   2231: #include <$2>
                   2232: _ACEOF
                   2233: if ac_fn_c_try_cpp "$LINENO"; then :
                   2234:   ac_header_preproc=yes
                   2235: else
                   2236:   ac_header_preproc=no
                   2237: fi
1.36      bertrand 2238: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2240: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2241: 
1.15      bertrand 2242: # So?  What about this header?
                   2243: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2244:   yes:no: )
                   2245:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2246: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2247:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2248: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2249:     ;;
                   2250:   no:yes:* )
                   2251:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2252: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2253:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2254: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2255:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2256: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2257:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2258: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2259:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2260: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2261:     ;;
                   2262: esac
                   2263:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2264: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2265: if eval \${$3+:} false; then :
1.15      bertrand 2266:   $as_echo_n "(cached) " >&6
                   2267: else
                   2268:   eval "$3=\$ac_header_compiler"
                   2269: fi
                   2270: eval ac_res=\$$3
                   2271:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2272: $as_echo "$ac_res" >&6; }
                   2273: fi
1.57      bertrand 2274:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2275: 
1.15      bertrand 2276: } # ac_fn_c_check_header_mongrel
                   2277: cat >config.log <<_ACEOF
                   2278: This file contains any messages produced by compilers while
                   2279: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2280: 
1.73      bertrand 2281: It was created by rpl $as_me 4.1.3, which was
1.57      bertrand 2282: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 2283: 
1.15      bertrand 2284:   $ $0 $@
1.1       bertrand 2285: 
1.15      bertrand 2286: _ACEOF
                   2287: exec 5>>config.log
                   2288: {
                   2289: cat <<_ASUNAME
                   2290: ## --------- ##
                   2291: ## Platform. ##
                   2292: ## --------- ##
1.1       bertrand 2293: 
1.15      bertrand 2294: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2295: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2296: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2297: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2298: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2299: 
1.15      bertrand 2300: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2301: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2302: 
1.15      bertrand 2303: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2304: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2305: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2306: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2307: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2308: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2309: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2310: 
1.15      bertrand 2311: _ASUNAME
1.1       bertrand 2312: 
1.15      bertrand 2313: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2314: for as_dir in $PATH
                   2315: do
                   2316:   IFS=$as_save_IFS
                   2317:   test -z "$as_dir" && as_dir=.
                   2318:     $as_echo "PATH: $as_dir"
                   2319:   done
                   2320: IFS=$as_save_IFS
1.1       bertrand 2321: 
1.15      bertrand 2322: } >&5
1.1       bertrand 2323: 
1.15      bertrand 2324: cat >&5 <<_ACEOF
1.1       bertrand 2325: 
                   2326: 
1.15      bertrand 2327: ## ----------- ##
                   2328: ## Core tests. ##
                   2329: ## ----------- ##
1.1       bertrand 2330: 
1.15      bertrand 2331: _ACEOF
1.1       bertrand 2332: 
                   2333: 
1.15      bertrand 2334: # Keep a trace of the command line.
                   2335: # Strip out --no-create and --no-recursion so they do not pile up.
                   2336: # Strip out --silent because we don't want to record it for future runs.
                   2337: # Also quote any args containing shell meta-characters.
                   2338: # Make two passes to allow for proper duplicate-argument suppression.
                   2339: ac_configure_args=
                   2340: ac_configure_args0=
                   2341: ac_configure_args1=
                   2342: ac_must_keep_next=false
                   2343: for ac_pass in 1 2
                   2344: do
                   2345:   for ac_arg
                   2346:   do
                   2347:     case $ac_arg in
                   2348:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2349:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2350:     | -silent | --silent | --silen | --sile | --sil)
                   2351:       continue ;;
                   2352:     *\'*)
                   2353:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2354:     esac
                   2355:     case $ac_pass in
                   2356:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2357:     2)
                   2358:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2359:       if test $ac_must_keep_next = true; then
                   2360:    ac_must_keep_next=false # Got value, back to normal.
                   2361:       else
                   2362:    case $ac_arg in
                   2363:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2364:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2365:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2366:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2367:        case "$ac_configure_args0 " in
                   2368:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2369:        esac
                   2370:        ;;
                   2371:      -* ) ac_must_keep_next=true ;;
                   2372:    esac
                   2373:       fi
                   2374:       as_fn_append ac_configure_args " '$ac_arg'"
                   2375:       ;;
                   2376:     esac
                   2377:   done
                   2378: done
                   2379: { ac_configure_args0=; unset ac_configure_args0;}
                   2380: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2381: 
1.15      bertrand 2382: # When interrupted or exit'd, cleanup temporary files, and complete
                   2383: # config.log.  We remove comments because anyway the quotes in there
                   2384: # would cause problems or look ugly.
                   2385: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2386: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2387: trap 'exit_status=$?
                   2388:   # Save into config.log some information that might help in debugging.
                   2389:   {
                   2390:     echo
1.1       bertrand 2391: 
1.36      bertrand 2392:     $as_echo "## ---------------- ##
1.15      bertrand 2393: ## Cache variables. ##
1.36      bertrand 2394: ## ---------------- ##"
1.15      bertrand 2395:     echo
                   2396:     # The following way of writing the cache mishandles newlines in values,
                   2397: (
                   2398:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2399:     eval ac_val=\$$ac_var
                   2400:     case $ac_val in #(
                   2401:     *${as_nl}*)
                   2402:       case $ac_var in #(
                   2403:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2404: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2405:       esac
                   2406:       case $ac_var in #(
                   2407:       _ | IFS | as_nl) ;; #(
                   2408:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2409:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2410:       esac ;;
                   2411:     esac
                   2412:   done
                   2413:   (set) 2>&1 |
                   2414:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2415:     *${as_nl}ac_space=\ *)
                   2416:       sed -n \
                   2417:    "s/'\''/'\''\\\\'\'''\''/g;
                   2418:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2419:       ;; #(
                   2420:     *)
                   2421:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2422:       ;;
                   2423:     esac |
                   2424:     sort
                   2425: )
                   2426:     echo
1.1       bertrand 2427: 
1.36      bertrand 2428:     $as_echo "## ----------------- ##
1.15      bertrand 2429: ## Output variables. ##
1.36      bertrand 2430: ## ----------------- ##"
1.15      bertrand 2431:     echo
                   2432:     for ac_var in $ac_subst_vars
                   2433:     do
                   2434:       eval ac_val=\$$ac_var
                   2435:       case $ac_val in
                   2436:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2437:       esac
                   2438:       $as_echo "$ac_var='\''$ac_val'\''"
                   2439:     done | sort
                   2440:     echo
1.1       bertrand 2441: 
1.15      bertrand 2442:     if test -n "$ac_subst_files"; then
1.36      bertrand 2443:       $as_echo "## ------------------- ##
1.15      bertrand 2444: ## File substitutions. ##
1.36      bertrand 2445: ## ------------------- ##"
1.15      bertrand 2446:       echo
                   2447:       for ac_var in $ac_subst_files
                   2448:       do
                   2449:    eval ac_val=\$$ac_var
                   2450:    case $ac_val in
                   2451:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2452:    esac
                   2453:    $as_echo "$ac_var='\''$ac_val'\''"
                   2454:       done | sort
                   2455:       echo
1.14      bertrand 2456:     fi
                   2457: 
1.15      bertrand 2458:     if test -s confdefs.h; then
1.36      bertrand 2459:       $as_echo "## ----------- ##
1.15      bertrand 2460: ## confdefs.h. ##
1.36      bertrand 2461: ## ----------- ##"
1.15      bertrand 2462:       echo
                   2463:       cat confdefs.h
                   2464:       echo
                   2465:     fi
                   2466:     test "$ac_signal" != 0 &&
                   2467:       $as_echo "$as_me: caught signal $ac_signal"
                   2468:     $as_echo "$as_me: exit $exit_status"
                   2469:   } >&5
                   2470:   rm -f core *.core core.conftest.* &&
                   2471:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2472:     exit $exit_status
                   2473: ' 0
                   2474: for ac_signal in 1 2 13 15; do
                   2475:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2476: done
                   2477: ac_signal=0
1.14      bertrand 2478: 
1.15      bertrand 2479: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2480: rm -f -r conftest* confdefs.h
1.14      bertrand 2481: 
1.15      bertrand 2482: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2483: 
1.15      bertrand 2484: # Predefined preprocessor variables.
1.14      bertrand 2485: 
1.15      bertrand 2486: cat >>confdefs.h <<_ACEOF
                   2487: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2488: _ACEOF
1.14      bertrand 2489: 
1.15      bertrand 2490: cat >>confdefs.h <<_ACEOF
                   2491: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2492: _ACEOF
                   2493: 
1.15      bertrand 2494: cat >>confdefs.h <<_ACEOF
                   2495: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2496: _ACEOF
1.14      bertrand 2497: 
1.15      bertrand 2498: cat >>confdefs.h <<_ACEOF
                   2499: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2500: _ACEOF
                   2501: 
1.15      bertrand 2502: cat >>confdefs.h <<_ACEOF
                   2503: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2504: _ACEOF
1.14      bertrand 2505: 
1.15      bertrand 2506: cat >>confdefs.h <<_ACEOF
                   2507: #define PACKAGE_URL "$PACKAGE_URL"
                   2508: _ACEOF
1.14      bertrand 2509: 
                   2510: 
1.15      bertrand 2511: # Let the site file select an alternate cache file if it wants to.
                   2512: # Prefer an explicitly selected file to automatically selected ones.
                   2513: ac_site_file1=NONE
                   2514: ac_site_file2=NONE
                   2515: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2516:   # We do not want a PATH search for config.site.
                   2517:   case $CONFIG_SITE in #((
                   2518:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2519:     */*) ac_site_file1=$CONFIG_SITE;;
                   2520:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2521:   esac
1.15      bertrand 2522: elif test "x$prefix" != xNONE; then
                   2523:   ac_site_file1=$prefix/share/config.site
                   2524:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2525: else
1.15      bertrand 2526:   ac_site_file1=$ac_default_prefix/share/config.site
                   2527:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2528: fi
1.15      bertrand 2529: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2530: do
                   2531:   test "x$ac_site_file" = xNONE && continue
                   2532:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2533:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2534: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2535:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2536:     . "$ac_site_file" \
                   2537:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2538: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2539: as_fn_error $? "failed to load site script $ac_site_file
1.57      bertrand 2540: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 2541:   fi
                   2542: done
1.14      bertrand 2543: 
1.15      bertrand 2544: if test -r "$cache_file"; then
                   2545:   # Some versions of bash will fail to source /dev/null (special files
                   2546:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2547:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2548:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2549: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2550:     case $cache_file in
                   2551:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2552:       *)                      . "./$cache_file";;
                   2553:     esac
                   2554:   fi
1.14      bertrand 2555: else
1.15      bertrand 2556:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2557: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2558:   >$cache_file
1.14      bertrand 2559: fi
                   2560: 
1.15      bertrand 2561: # Check that the precious variables saved in the cache have kept the same
                   2562: # value.
                   2563: ac_cache_corrupted=false
                   2564: for ac_var in $ac_precious_vars; do
                   2565:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2566:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2567:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2568:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2569:   case $ac_old_set,$ac_new_set in
                   2570:     set,)
                   2571:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2572: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2573:       ac_cache_corrupted=: ;;
                   2574:     ,set)
                   2575:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2576: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2577:       ac_cache_corrupted=: ;;
                   2578:     ,);;
                   2579:     *)
                   2580:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2581:    # differences in whitespace do not lead to failure.
                   2582:    ac_old_val_w=`echo x $ac_old_val`
                   2583:    ac_new_val_w=`echo x $ac_new_val`
                   2584:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2585:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2586: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2587:      ac_cache_corrupted=:
                   2588:    else
                   2589:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2590: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2591:      eval $ac_var=\$ac_old_val
                   2592:    fi
                   2593:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2594: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2595:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2596: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2597:       fi;;
                   2598:   esac
                   2599:   # Pass precious variables to config.status.
                   2600:   if test "$ac_new_set" = set; then
                   2601:     case $ac_new_val in
                   2602:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2603:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2604:     esac
                   2605:     case " $ac_configure_args " in
                   2606:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2607:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2608:     esac
1.14      bertrand 2609:   fi
                   2610: done
1.15      bertrand 2611: if $ac_cache_corrupted; then
                   2612:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2613: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2614:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2615: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2616:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2617: fi
                   2618: ## -------------------- ##
                   2619: ## Main body of script. ##
                   2620: ## -------------------- ##
1.14      bertrand 2621: 
1.15      bertrand 2622: ac_ext=c
                   2623: ac_cpp='$CPP $CPPFLAGS'
                   2624: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2625: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2626: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2627: 
                   2628: 
1.15      bertrand 2629: ac_aux_dir=
                   2630: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2631:   if test -f "$ac_dir/install-sh"; then
                   2632:     ac_aux_dir=$ac_dir
                   2633:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2634:     break
                   2635:   elif test -f "$ac_dir/install.sh"; then
                   2636:     ac_aux_dir=$ac_dir
                   2637:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2638:     break
                   2639:   elif test -f "$ac_dir/shtool"; then
                   2640:     ac_aux_dir=$ac_dir
                   2641:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2642:     break
                   2643:   fi
1.14      bertrand 2644: done
1.15      bertrand 2645: if test -z "$ac_aux_dir"; then
1.36      bertrand 2646:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2647: fi
1.14      bertrand 2648: 
1.15      bertrand 2649: # These three variables are undocumented and unsupported,
                   2650: # and are intended to be withdrawn in a future Autoconf release.
                   2651: # They can cause serious problems if a builder's source tree is in a directory
                   2652: # whose full name contains unusual characters.
                   2653: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2654: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2655: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2656: 
                   2657: 
1.15      bertrand 2658: # Make sure we can run config.sub.
                   2659: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2660:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2661: 
1.15      bertrand 2662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2663: $as_echo_n "checking build system type... " >&6; }
1.57      bertrand 2664: if ${ac_cv_build+:} false; then :
1.15      bertrand 2665:   $as_echo_n "(cached) " >&6
1.14      bertrand 2666: else
1.15      bertrand 2667:   ac_build_alias=$build_alias
                   2668: test "x$ac_build_alias" = x &&
                   2669:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2670: test "x$ac_build_alias" = x &&
1.36      bertrand 2671:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2672: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2673:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2674: 
                   2675: fi
1.15      bertrand 2676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2677: $as_echo "$ac_cv_build" >&6; }
                   2678: case $ac_cv_build in
                   2679: *-*-*) ;;
1.57      bertrand 2680: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15      bertrand 2681: esac
                   2682: build=$ac_cv_build
                   2683: ac_save_IFS=$IFS; IFS='-'
                   2684: set x $ac_cv_build
                   2685: shift
                   2686: build_cpu=$1
                   2687: build_vendor=$2
                   2688: shift; shift
                   2689: # Remember, the first character of IFS is used to create $*,
                   2690: # except with old shells:
                   2691: build_os=$*
                   2692: IFS=$ac_save_IFS
                   2693: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2694: 
                   2695: 
1.15      bertrand 2696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2697: $as_echo_n "checking host system type... " >&6; }
1.57      bertrand 2698: if ${ac_cv_host+:} false; then :
1.15      bertrand 2699:   $as_echo_n "(cached) " >&6
1.14      bertrand 2700: else
1.15      bertrand 2701:   if test "x$host_alias" = x; then
                   2702:   ac_cv_host=$ac_cv_build
1.14      bertrand 2703: else
1.15      bertrand 2704:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2705:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2706: fi
                   2707: 
                   2708: fi
1.15      bertrand 2709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2710: $as_echo "$ac_cv_host" >&6; }
                   2711: case $ac_cv_host in
                   2712: *-*-*) ;;
1.57      bertrand 2713: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15      bertrand 2714: esac
                   2715: host=$ac_cv_host
                   2716: ac_save_IFS=$IFS; IFS='-'
                   2717: set x $ac_cv_host
                   2718: shift
                   2719: host_cpu=$1
                   2720: host_vendor=$2
                   2721: shift; shift
                   2722: # Remember, the first character of IFS is used to create $*,
                   2723: # except with old shells:
                   2724: host_os=$*
                   2725: IFS=$ac_save_IFS
                   2726: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2727: 
                   2728: 
1.15      bertrand 2729: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2730: $as_echo_n "checking target system type... " >&6; }
1.57      bertrand 2731: if ${ac_cv_target+:} false; then :
1.15      bertrand 2732:   $as_echo_n "(cached) " >&6
                   2733: else
                   2734:   if test "x$target_alias" = x; then
                   2735:   ac_cv_target=$ac_cv_host
1.14      bertrand 2736: else
1.15      bertrand 2737:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2738:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2739: fi
1.14      bertrand 2740: 
                   2741: fi
1.15      bertrand 2742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2743: $as_echo "$ac_cv_target" >&6; }
                   2744: case $ac_cv_target in
                   2745: *-*-*) ;;
1.57      bertrand 2746: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15      bertrand 2747: esac
                   2748: target=$ac_cv_target
                   2749: ac_save_IFS=$IFS; IFS='-'
                   2750: set x $ac_cv_target
                   2751: shift
                   2752: target_cpu=$1
                   2753: target_vendor=$2
                   2754: shift; shift
                   2755: # Remember, the first character of IFS is used to create $*,
                   2756: # except with old shells:
                   2757: target_os=$*
                   2758: IFS=$ac_save_IFS
                   2759: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2760: 
1.14      bertrand 2761: 
1.15      bertrand 2762: # The aliases save the names the user supplied, while $host etc.
                   2763: # will get canonicalized.
                   2764: test -n "$target_alias" &&
                   2765:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2766:     NONENONEs,x,x, &&
                   2767:   program_prefix=${target_alias}-
1.1       bertrand 2768: 
1.15      bertrand 2769: am__api_version='1.11'
1.1       bertrand 2770: 
1.14      bertrand 2771: # Find a good install program.  We prefer a C program (faster),
                   2772: # so one script is as good as another.  But avoid the broken or
                   2773: # incompatible versions:
                   2774: # SysV /etc/install, /usr/sbin/install
                   2775: # SunOS /usr/etc/install
                   2776: # IRIX /sbin/install
                   2777: # AIX /bin/install
                   2778: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2779: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2780: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2781: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2782: # OS/2's system install, which has a completely different semantic
                   2783: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2784: # Reject install programs that cannot install multiple files.
                   2785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2786: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2787: if test -z "$INSTALL"; then
1.57      bertrand 2788: if ${ac_cv_path_install+:} false; then :
1.15      bertrand 2789:   $as_echo_n "(cached) " >&6
1.14      bertrand 2790: else
                   2791:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2792: for as_dir in $PATH
                   2793: do
                   2794:   IFS=$as_save_IFS
                   2795:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2796:     # Account for people who put trailing slashes in PATH elements.
                   2797: case $as_dir/ in #((
                   2798:   ./ | .// | /[cC]/* | \
1.14      bertrand 2799:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2800:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2801:   /usr/ucb/* ) ;;
                   2802:   *)
                   2803:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2804:     # Don't use installbsd from OSF since it installs stuff as root
                   2805:     # by default.
                   2806:     for ac_prog in ginstall scoinst install; do
                   2807:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2808:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2809:      if test $ac_prog = install &&
                   2810:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2811:        # AIX install.  It has an incompatible calling convention.
                   2812:        :
                   2813:      elif test $ac_prog = install &&
                   2814:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2815:        # program-specific install script used by HP pwplus--don't use.
                   2816:        :
                   2817:      else
1.15      bertrand 2818:        rm -rf conftest.one conftest.two conftest.dir
                   2819:        echo one > conftest.one
                   2820:        echo two > conftest.two
                   2821:        mkdir conftest.dir
                   2822:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2823:          test -s conftest.one && test -s conftest.two &&
                   2824:          test -s conftest.dir/conftest.one &&
                   2825:          test -s conftest.dir/conftest.two
                   2826:        then
                   2827:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2828:          break 3
                   2829:        fi
1.14      bertrand 2830:      fi
                   2831:    fi
                   2832:       done
                   2833:     done
                   2834:     ;;
                   2835: esac
1.15      bertrand 2836: 
                   2837:   done
1.14      bertrand 2838: IFS=$as_save_IFS
1.1       bertrand 2839: 
1.15      bertrand 2840: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2841: 
1.14      bertrand 2842: fi
                   2843:   if test "${ac_cv_path_install+set}" = set; then
                   2844:     INSTALL=$ac_cv_path_install
                   2845:   else
                   2846:     # As a last resort, use the slow shell script.  Don't cache a
                   2847:     # value for INSTALL within a source directory, because that will
                   2848:     # break other packages using the cache if that directory is
                   2849:     # removed, or if the value is a relative name.
                   2850:     INSTALL=$ac_install_sh
                   2851:   fi
                   2852: fi
1.15      bertrand 2853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2854: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2855: 
1.14      bertrand 2856: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2857: # It thinks the first close brace ends the variable substitution.
                   2858: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2859: 
1.14      bertrand 2860: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2861: 
1.14      bertrand 2862: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2863: 
1.15      bertrand 2864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2865: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2866: # Just in case
                   2867: sleep 1
                   2868: echo timestamp > conftest.file
                   2869: # Reject unsafe characters in $srcdir or the absolute working directory
                   2870: # name.  Accept space and tab only in the latter.
                   2871: am_lf='
                   2872: '
                   2873: case `pwd` in
                   2874:   *[\\\"\#\$\&\'\`$am_lf]*)
1.57      bertrand 2875:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15      bertrand 2876: esac
                   2877: case $srcdir in
                   2878:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.57      bertrand 2879:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15      bertrand 2880: esac
                   2881: 
                   2882: # Do `set' in a subshell so we don't clobber the current shell's
                   2883: # arguments.  Must try -L first in case configure is actually a
                   2884: # symlink; some systems play weird games with the mod time of symlinks
                   2885: # (eg FreeBSD returns the mod time of the symlink's containing
                   2886: # directory).
                   2887: if (
                   2888:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2889:    if test "$*" = "X"; then
                   2890:       # -L didn't work.
                   2891:       set X `ls -t "$srcdir/configure" conftest.file`
                   2892:    fi
                   2893:    rm -f conftest.file
                   2894:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2895:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2896: 
                   2897:       # If neither matched, then we have a broken ls.  This can happen
                   2898:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2899:       # broken ls alias from the environment.  This has actually
                   2900:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2901:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2902: alias in your environment" "$LINENO" 5
                   2903:    fi
                   2904: 
                   2905:    test "$2" = conftest.file
                   2906:    )
                   2907: then
                   2908:    # Ok.
                   2909:    :
1.14      bertrand 2910: else
1.36      bertrand 2911:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2912: Check your system clock" "$LINENO" 5
1.14      bertrand 2913: fi
1.15      bertrand 2914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2915: $as_echo "yes" >&6; }
                   2916: test "$program_prefix" != NONE &&
                   2917:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2918: # Use a double $ so make ignores it.
                   2919: test "$program_suffix" != NONE &&
                   2920:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2921: # Double any \ or $.
                   2922: # By default was `s,x,x', remove it if useless.
                   2923: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2924: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2925: 
                   2926: # expand $ac_aux_dir to an absolute path
                   2927: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2928: 
1.15      bertrand 2929: if test x"${MISSING+set}" != xset; then
                   2930:   case $am_aux_dir in
                   2931:   *\ * | *\    *)
                   2932:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2933:   *)
1.15      bertrand 2934:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2935:   esac
1.14      bertrand 2936: fi
1.15      bertrand 2937: # Use eval to expand $SHELL
                   2938: if eval "$MISSING --run true"; then
                   2939:   am_missing_run="$MISSING --run "
1.14      bertrand 2940: else
1.15      bertrand 2941:   am_missing_run=
                   2942:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2943: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2944: fi
                   2945: 
                   2946: if test x"${install_sh}" != xset; then
                   2947:   case $am_aux_dir in
                   2948:   *\ * | *\    *)
                   2949:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2950:   *)
                   2951:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2952:   esac
1.14      bertrand 2953: fi
1.15      bertrand 2954: 
                   2955: # Installed binaries are usually stripped using `strip' when the user
                   2956: # run `make install-strip'.  However `strip' might not be the right
                   2957: # tool to use in cross-compilation environments, therefore Automake
                   2958: # will honor the `STRIP' environment variable to overrule this program.
                   2959: if test "$cross_compiling" != no; then
                   2960:   if test -n "$ac_tool_prefix"; then
                   2961:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2962: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2964: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 2965: if ${ac_cv_prog_STRIP+:} false; then :
1.15      bertrand 2966:   $as_echo_n "(cached) " >&6
1.14      bertrand 2967: else
1.15      bertrand 2968:   if test -n "$STRIP"; then
                   2969:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2970: else
                   2971: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2972: for as_dir in $PATH
                   2973: do
                   2974:   IFS=$as_save_IFS
                   2975:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2976:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2977:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2978:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2979:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2980:     break 2
                   2981:   fi
                   2982: done
1.15      bertrand 2983:   done
1.14      bertrand 2984: IFS=$as_save_IFS
1.1       bertrand 2985: 
1.14      bertrand 2986: fi
                   2987: fi
1.15      bertrand 2988: STRIP=$ac_cv_prog_STRIP
                   2989: if test -n "$STRIP"; then
                   2990:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   2991: $as_echo "$STRIP" >&6; }
1.14      bertrand 2992: else
1.15      bertrand 2993:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2994: $as_echo "no" >&6; }
1.14      bertrand 2995: fi
1.1       bertrand 2996: 
                   2997: 
1.14      bertrand 2998: fi
1.15      bertrand 2999: if test -z "$ac_cv_prog_STRIP"; then
                   3000:   ac_ct_STRIP=$STRIP
                   3001:   # Extract the first word of "strip", so it can be a program name with args.
                   3002: set dummy strip; ac_word=$2
                   3003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3004: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3005: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15      bertrand 3006:   $as_echo_n "(cached) " >&6
1.14      bertrand 3007: else
1.15      bertrand 3008:   if test -n "$ac_ct_STRIP"; then
                   3009:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 3010: else
1.14      bertrand 3011: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3012: for as_dir in $PATH
1.1       bertrand 3013: do
1.14      bertrand 3014:   IFS=$as_save_IFS
                   3015:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3016:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3017:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3018:     ac_cv_prog_ac_ct_STRIP="strip"
                   3019:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3020:     break 2
1.1       bertrand 3021:   fi
                   3022: done
1.15      bertrand 3023:   done
1.14      bertrand 3024: IFS=$as_save_IFS
1.1       bertrand 3025: 
1.14      bertrand 3026: fi
                   3027: fi
1.15      bertrand 3028: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3029: if test -n "$ac_ct_STRIP"; then
                   3030:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3031: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3032: else
1.15      bertrand 3033:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3034: $as_echo "no" >&6; }
1.1       bertrand 3035: fi
                   3036: 
1.15      bertrand 3037:   if test "x$ac_ct_STRIP" = x; then
                   3038:     STRIP=":"
1.14      bertrand 3039:   else
                   3040:     case $cross_compiling:$ac_tool_warned in
                   3041: yes:)
1.15      bertrand 3042: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3043: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3044: ac_tool_warned=yes ;;
                   3045: esac
1.15      bertrand 3046:     STRIP=$ac_ct_STRIP
1.1       bertrand 3047:   fi
1.14      bertrand 3048: else
1.15      bertrand 3049:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3050: fi
                   3051: 
1.15      bertrand 3052: fi
                   3053: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3054: 
1.15      bertrand 3055: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3056: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3057: if test -z "$MKDIR_P"; then
1.57      bertrand 3058:   if ${ac_cv_path_mkdir+:} false; then :
1.15      bertrand 3059:   $as_echo_n "(cached) " >&6
1.14      bertrand 3060: else
1.15      bertrand 3061:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3062: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3063: do
                   3064:   IFS=$as_save_IFS
                   3065:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3066:     for ac_prog in mkdir gmkdir; do
                   3067:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3068:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3069:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3070:         'mkdir (GNU coreutils) '* | \
                   3071:         'mkdir (coreutils) '* | \
                   3072:         'mkdir (fileutils) '4.1*)
                   3073:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3074:           break 3;;
                   3075:       esac
                   3076:     done
                   3077:        done
                   3078:   done
1.14      bertrand 3079: IFS=$as_save_IFS
1.1       bertrand 3080: 
                   3081: fi
1.15      bertrand 3082: 
                   3083:   test -d ./--version && rmdir ./--version
                   3084:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3085:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3086:   else
                   3087:     # As a last resort, use the slow shell script.  Don't cache a
                   3088:     # value for MKDIR_P within a source directory, because that will
                   3089:     # break other packages using the cache if that directory is
                   3090:     # removed, or if the value is a relative name.
                   3091:     MKDIR_P="$ac_install_sh -d"
                   3092:   fi
1.14      bertrand 3093: fi
1.15      bertrand 3094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3095: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3096: 
1.15      bertrand 3097: mkdir_p="$MKDIR_P"
                   3098: case $mkdir_p in
                   3099:   [\\/$]* | ?:[\\/]*) ;;
                   3100:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3101: esac
1.1       bertrand 3102: 
1.15      bertrand 3103: for ac_prog in gawk mawk nawk awk
                   3104: do
                   3105:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3106: set dummy $ac_prog; ac_word=$2
                   3107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3108: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3109: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 3110:   $as_echo_n "(cached) " >&6
1.1       bertrand 3111: else
1.15      bertrand 3112:   if test -n "$AWK"; then
                   3113:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3114: else
1.14      bertrand 3115: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3116: for as_dir in $PATH
                   3117: do
                   3118:   IFS=$as_save_IFS
                   3119:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3120:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3121:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3122:     ac_cv_prog_AWK="$ac_prog"
                   3123:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3124:     break 2
                   3125:   fi
                   3126: done
1.15      bertrand 3127:   done
1.14      bertrand 3128: IFS=$as_save_IFS
                   3129: 
                   3130: fi
1.1       bertrand 3131: fi
1.15      bertrand 3132: AWK=$ac_cv_prog_AWK
                   3133: if test -n "$AWK"; then
                   3134:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3135: $as_echo "$AWK" >&6; }
1.14      bertrand 3136: else
1.15      bertrand 3137:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3138: $as_echo "no" >&6; }
1.1       bertrand 3139: fi
                   3140: 
                   3141: 
1.15      bertrand 3142:   test -n "$AWK" && break
                   3143: done
1.1       bertrand 3144: 
1.15      bertrand 3145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3146: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3147: set x ${MAKE-make}
                   3148: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 3149: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 3150:   $as_echo_n "(cached) " >&6
1.14      bertrand 3151: else
1.15      bertrand 3152:   cat >conftest.make <<\_ACEOF
                   3153: SHELL = /bin/sh
                   3154: all:
                   3155:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3156: _ACEOF
1.36      bertrand 3157: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3158: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3159:   *@@@%%%=?*=@@@%%%*)
                   3160:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3161:   *)
                   3162:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3163: esac
                   3164: rm -f conftest.make
                   3165: fi
                   3166: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3167:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3168: $as_echo "yes" >&6; }
                   3169:   SET_MAKE=
1.1       bertrand 3170: else
1.15      bertrand 3171:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3172: $as_echo "no" >&6; }
                   3173:   SET_MAKE="MAKE=${MAKE-make}"
                   3174: fi
1.1       bertrand 3175: 
1.15      bertrand 3176: rm -rf .tst 2>/dev/null
                   3177: mkdir .tst 2>/dev/null
                   3178: if test -d .tst; then
                   3179:   am__leading_dot=.
                   3180: else
                   3181:   am__leading_dot=_
1.14      bertrand 3182: fi
1.15      bertrand 3183: rmdir .tst 2>/dev/null
                   3184: 
                   3185: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3186:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3187:   # is not polluted with repeated "-I."
                   3188:   am__isrc=' -I$(srcdir)'
                   3189:   # test to see if srcdir already configured
                   3190:   if test -f $srcdir/config.status; then
1.36      bertrand 3191:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3192:   fi
1.1       bertrand 3193: fi
1.15      bertrand 3194: 
                   3195: # test whether we have cygpath
                   3196: if test -z "$CYGPATH_W"; then
                   3197:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3198:     CYGPATH_W='cygpath -w'
                   3199:   else
                   3200:     CYGPATH_W=echo
                   3201:   fi
1.1       bertrand 3202: fi
                   3203: 
                   3204: 
1.15      bertrand 3205: # Define the identity of the package.
                   3206:  PACKAGE='rpl'
1.73      bertrand 3207:  VERSION='4.1.3'
1.15      bertrand 3208: 
                   3209: 
                   3210: cat >>confdefs.h <<_ACEOF
                   3211: #define PACKAGE "$PACKAGE"
                   3212: _ACEOF
                   3213: 
                   3214: 
                   3215: cat >>confdefs.h <<_ACEOF
                   3216: #define VERSION "$VERSION"
                   3217: _ACEOF
                   3218: 
                   3219: # Some tools Automake needs.
                   3220: 
                   3221: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3222: 
                   3223: 
                   3224: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3225: 
                   3226: 
                   3227: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3228: 
                   3229: 
                   3230: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3231: 
                   3232: 
                   3233: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3234: 
                   3235: # We need awk for the "check" target.  The system "awk" is bad on
                   3236: # some platforms.
                   3237: # Always define AMTAR for backward compatibility.
                   3238: 
                   3239: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3240: 
                   3241: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3242: 
                   3243: 
                   3244: 
                   3245: 
1.1       bertrand 3246: 
                   3247: 
1.15      bertrand 3248: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3249: 
                   3250: 
1.54      bertrand 3251: NCURSES=ncurses-5.9
1.50      bertrand 3252: READLINE=readline-6.2
1.30      bertrand 3253: UNITS=units-1.88
1.57      bertrand 3254: GSL=gsl-1.15
1.72      bertrand 3255: GPP=gpp-3.0
1.52      bertrand 3256: GNUPLOT=gnuplot-4.4.3
1.15      bertrand 3257: FILE=file-5.03
                   3258: ICONV=libiconv-1.13.1
1.69      bertrand 3259: SQLITE=sqlite-3.7.7.1
1.74      bertrand 3260: OPENSSL=openssl-1.0.0e
1.78    ! bertrand 3261: OPENMOTIF=openmotif-2.2.3
1.76      bertrand 3262: SIGSEGV=libsigsegv-2.6
1.14      bertrand 3263: 
1.75      bertrand 3264: GMP=gmp-5.0.2
1.55      bertrand 3265: MPFR=mpfr-3.0.1
1.56      bertrand 3266: NTL=ntl-5.5.2
                   3267: COCOA=CoCoALib-0.9943
1.76      bertrand 3268: PARI=pari-2.5.0
1.67      bertrand 3269: GIAC=giac-0.9.3
1.55      bertrand 3270: 
1.15      bertrand 3271: ac_ext=c
                   3272: ac_cpp='$CPP $CPPFLAGS'
                   3273: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3274: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3275: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3276: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3277:   for ac_prog in gcc
1.15      bertrand 3278:   do
                   3279:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3280: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3282: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3283: if ${ac_cv_prog_CC+:} false; then :
1.15      bertrand 3284:   $as_echo_n "(cached) " >&6
1.1       bertrand 3285: else
1.15      bertrand 3286:   if test -n "$CC"; then
                   3287:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3288: else
                   3289: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3290: for as_dir in $PATH
                   3291: do
                   3292:   IFS=$as_save_IFS
                   3293:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3294:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3295:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3296:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3297:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3298:     break 2
                   3299:   fi
                   3300: done
1.15      bertrand 3301:   done
1.1       bertrand 3302: IFS=$as_save_IFS
                   3303: 
                   3304: fi
                   3305: fi
1.15      bertrand 3306: CC=$ac_cv_prog_CC
                   3307: if test -n "$CC"; then
                   3308:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3309: $as_echo "$CC" >&6; }
1.1       bertrand 3310: else
1.15      bertrand 3311:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3312: $as_echo "no" >&6; }
1.1       bertrand 3313: fi
                   3314: 
                   3315: 
1.15      bertrand 3316:     test -n "$CC" && break
                   3317:   done
                   3318: fi
                   3319: if test -z "$CC"; then
                   3320:   ac_ct_CC=$CC
1.23      bertrand 3321:   for ac_prog in gcc
1.15      bertrand 3322: do
                   3323:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3324: set dummy $ac_prog; ac_word=$2
                   3325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3326: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3327: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15      bertrand 3328:   $as_echo_n "(cached) " >&6
1.1       bertrand 3329: else
1.15      bertrand 3330:   if test -n "$ac_ct_CC"; then
                   3331:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3332: else
                   3333: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3334: for as_dir in $PATH
                   3335: do
                   3336:   IFS=$as_save_IFS
                   3337:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3338:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3339:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3340:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3341:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3342:     break 2
                   3343:   fi
                   3344: done
1.15      bertrand 3345:   done
1.1       bertrand 3346: IFS=$as_save_IFS
                   3347: 
                   3348: fi
                   3349: fi
1.15      bertrand 3350: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3351: if test -n "$ac_ct_CC"; then
                   3352:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3353: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3354: else
1.15      bertrand 3355:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3356: $as_echo "no" >&6; }
1.1       bertrand 3357: fi
                   3358: 
                   3359: 
1.15      bertrand 3360:   test -n "$ac_ct_CC" && break
                   3361: done
1.1       bertrand 3362: 
1.15      bertrand 3363:   if test "x$ac_ct_CC" = x; then
                   3364:     CC=""
                   3365:   else
                   3366:     case $cross_compiling:$ac_tool_warned in
                   3367: yes:)
                   3368: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3369: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3370: ac_tool_warned=yes ;;
                   3371: esac
                   3372:     CC=$ac_ct_CC
1.1       bertrand 3373:   fi
                   3374: fi
                   3375: 
                   3376: 
1.15      bertrand 3377: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3378: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3379: as_fn_error $? "no acceptable C compiler found in \$PATH
1.57      bertrand 3380: See \`config.log' for more details" "$LINENO" 5; }
1.1       bertrand 3381: 
1.15      bertrand 3382: # Provide some information about the compiler.
                   3383: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3384: set X $ac_compile
                   3385: ac_compiler=$2
                   3386: for ac_option in --version -v -V -qversion; do
                   3387:   { { ac_try="$ac_compiler $ac_option >&5"
                   3388: case "(($ac_try" in
                   3389:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3390:   *) ac_try_echo=$ac_try;;
                   3391: esac
                   3392: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3393: $as_echo "$ac_try_echo"; } >&5
                   3394:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3395:   ac_status=$?
                   3396:   if test -s conftest.err; then
                   3397:     sed '10a\
                   3398: ... rest of stderr output deleted ...
                   3399:          10q' conftest.err >conftest.er1
                   3400:     cat conftest.er1 >&5
1.1       bertrand 3401:   fi
1.15      bertrand 3402:   rm -f conftest.er1 conftest.err
                   3403:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3404:   test $ac_status = 0; }
1.1       bertrand 3405: done
                   3406: 
1.15      bertrand 3407: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3408: /* end confdefs.h.  */
                   3409: 
                   3410: int
                   3411: main ()
                   3412: {
1.14      bertrand 3413: 
1.15      bertrand 3414:   ;
                   3415:   return 0;
                   3416: }
                   3417: _ACEOF
                   3418: ac_clean_files_save=$ac_clean_files
                   3419: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3420: # Try to create an executable without -o first, disregard a.out.
                   3421: # It will help us diagnose broken compilers, and finding out an intuition
                   3422: # of exeext.
                   3423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3424: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3425: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3426: 
1.15      bertrand 3427: # The possible output files:
                   3428: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3429: 
1.15      bertrand 3430: ac_rmfiles=
                   3431: for ac_file in $ac_files
1.1       bertrand 3432: do
1.15      bertrand 3433:   case $ac_file in
                   3434:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3435:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3436:   esac
1.1       bertrand 3437: done
1.15      bertrand 3438: rm -f $ac_rmfiles
                   3439: 
                   3440: if { { ac_try="$ac_link_default"
                   3441: case "(($ac_try" in
                   3442:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3443:   *) ac_try_echo=$ac_try;;
                   3444: esac
                   3445: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3446: $as_echo "$ac_try_echo"; } >&5
                   3447:   (eval "$ac_link_default") 2>&5
                   3448:   ac_status=$?
                   3449:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3450:   test $ac_status = 0; }; then :
                   3451:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3452: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3453: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3454: # so that the user can short-circuit this test for compilers unknown to
                   3455: # Autoconf.
                   3456: for ac_file in $ac_files ''
                   3457: do
                   3458:   test -f "$ac_file" || continue
                   3459:   case $ac_file in
                   3460:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3461:    ;;
                   3462:     [ab].out )
                   3463:    # We found the default executable, but exeext='' is most
                   3464:    # certainly right.
                   3465:    break;;
                   3466:     *.* )
                   3467:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3468:    then :; else
                   3469:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3470:    fi
                   3471:    # We set ac_cv_exeext here because the later test for it is not
                   3472:    # safe: cross compilers may not add the suffix if given an `-o'
                   3473:    # argument, so we may need to know it at that point already.
                   3474:    # Even if this section looks crufty: it has the advantage of
                   3475:    # actually working.
                   3476:    break;;
                   3477:     * )
                   3478:    break;;
                   3479:   esac
1.14      bertrand 3480: done
1.15      bertrand 3481: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3482: 
1.14      bertrand 3483: else
1.15      bertrand 3484:   ac_file=''
1.1       bertrand 3485: fi
1.15      bertrand 3486: if test -z "$ac_file"; then :
                   3487:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3488: $as_echo "no" >&6; }
                   3489: $as_echo "$as_me: failed program was:" >&5
                   3490: sed 's/^/| /' conftest.$ac_ext >&5
                   3491: 
                   3492: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3493: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3494: as_fn_error 77 "C compiler cannot create executables
1.57      bertrand 3495: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3496: else
                   3497:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3498: $as_echo "yes" >&6; }
                   3499: fi
                   3500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3501: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3503: $as_echo "$ac_file" >&6; }
                   3504: ac_exeext=$ac_cv_exeext
1.1       bertrand 3505: 
1.15      bertrand 3506: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3507: ac_clean_files=$ac_clean_files_save
                   3508: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3509: $as_echo_n "checking for suffix of executables... " >&6; }
                   3510: if { { ac_try="$ac_link"
                   3511: case "(($ac_try" in
                   3512:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3513:   *) ac_try_echo=$ac_try;;
                   3514: esac
                   3515: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3516: $as_echo "$ac_try_echo"; } >&5
                   3517:   (eval "$ac_link") 2>&5
                   3518:   ac_status=$?
                   3519:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3520:   test $ac_status = 0; }; then :
                   3521:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3522: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3523: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3524: # `rm'.
                   3525: for ac_file in conftest.exe conftest conftest.*; do
                   3526:   test -f "$ac_file" || continue
                   3527:   case $ac_file in
                   3528:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3529:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3530:      break;;
                   3531:     * ) break;;
                   3532:   esac
                   3533: done
1.14      bertrand 3534: else
1.15      bertrand 3535:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3536: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3537: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.57      bertrand 3538: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3539: fi
                   3540: rm -f conftest conftest$ac_cv_exeext
                   3541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3542: $as_echo "$ac_cv_exeext" >&6; }
                   3543: 
                   3544: rm -f conftest.$ac_ext
                   3545: EXEEXT=$ac_cv_exeext
                   3546: ac_exeext=$EXEEXT
                   3547: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3548: /* end confdefs.h.  */
1.15      bertrand 3549: #include <stdio.h>
1.14      bertrand 3550: int
                   3551: main ()
                   3552: {
1.15      bertrand 3553: FILE *f = fopen ("conftest.out", "w");
                   3554:  return ferror (f) || fclose (f) != 0;
                   3555: 
1.14      bertrand 3556:   ;
                   3557:   return 0;
                   3558: }
                   3559: _ACEOF
1.15      bertrand 3560: ac_clean_files="$ac_clean_files conftest.out"
                   3561: # Check that the compiler produces executables we can run.  If not, either
                   3562: # the compiler is broken, or we cross compile.
                   3563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3564: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3565: if test "$cross_compiling" != yes; then
                   3566:   { { ac_try="$ac_link"
1.1       bertrand 3567: case "(($ac_try" in
                   3568:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3569:   *) ac_try_echo=$ac_try;;
                   3570: esac
1.15      bertrand 3571: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3572: $as_echo "$ac_try_echo"; } >&5
                   3573:   (eval "$ac_link") 2>&5
                   3574:   ac_status=$?
                   3575:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3576:   test $ac_status = 0; }
                   3577:   if { ac_try='./conftest$ac_cv_exeext'
                   3578:   { { case "(($ac_try" in
                   3579:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3580:   *) ac_try_echo=$ac_try;;
                   3581: esac
                   3582: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3583: $as_echo "$ac_try_echo"; } >&5
                   3584:   (eval "$ac_try") 2>&5
1.1       bertrand 3585:   ac_status=$?
1.15      bertrand 3586:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3587:   test $ac_status = 0; }; }; then
                   3588:     cross_compiling=no
                   3589:   else
                   3590:     if test "$cross_compiling" = maybe; then
                   3591:    cross_compiling=yes
                   3592:     else
                   3593:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3594: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3595: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3596: If you meant to cross compile, use \`--host'.
1.57      bertrand 3597: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3598:     fi
                   3599:   fi
1.14      bertrand 3600: fi
1.15      bertrand 3601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3602: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3603: 
1.15      bertrand 3604: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3605: ac_clean_files=$ac_clean_files_save
                   3606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3607: $as_echo_n "checking for suffix of object files... " >&6; }
1.57      bertrand 3608: if ${ac_cv_objext+:} false; then :
1.15      bertrand 3609:   $as_echo_n "(cached) " >&6
1.14      bertrand 3610: else
1.15      bertrand 3611:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3612: /* end confdefs.h.  */
                   3613: 
                   3614: int
                   3615: main ()
                   3616: {
1.15      bertrand 3617: 
1.1       bertrand 3618:   ;
                   3619:   return 0;
                   3620: }
                   3621: _ACEOF
1.15      bertrand 3622: rm -f conftest.o conftest.obj
                   3623: if { { ac_try="$ac_compile"
1.1       bertrand 3624: case "(($ac_try" in
                   3625:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3626:   *) ac_try_echo=$ac_try;;
                   3627: esac
1.15      bertrand 3628: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3629: $as_echo "$ac_try_echo"; } >&5
                   3630:   (eval "$ac_compile") 2>&5
1.1       bertrand 3631:   ac_status=$?
1.15      bertrand 3632:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3633:   test $ac_status = 0; }; then :
                   3634:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3635:   test -f "$ac_file" || continue;
                   3636:   case $ac_file in
                   3637:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3638:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3639:        break;;
                   3640:   esac
                   3641: done
1.14      bertrand 3642: else
1.15      bertrand 3643:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3644: sed 's/^/| /' conftest.$ac_ext >&5
                   3645: 
1.15      bertrand 3646: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3647: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3648: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.57      bertrand 3649: See \`config.log' for more details" "$LINENO" 5; }
1.14      bertrand 3650: fi
1.15      bertrand 3651: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3652: fi
                   3653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3654: $as_echo "$ac_cv_objext" >&6; }
                   3655: OBJEXT=$ac_cv_objext
                   3656: ac_objext=$OBJEXT
                   3657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3658: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.57      bertrand 3659: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15      bertrand 3660:   $as_echo_n "(cached) " >&6
                   3661: else
                   3662:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3663: /* end confdefs.h.  */
                   3664: 
                   3665: int
                   3666: main ()
                   3667: {
                   3668: #ifndef __GNUC__
                   3669:        choke me
                   3670: #endif
1.14      bertrand 3671: 
1.15      bertrand 3672:   ;
                   3673:   return 0;
                   3674: }
                   3675: _ACEOF
                   3676: if ac_fn_c_try_compile "$LINENO"; then :
                   3677:   ac_compiler_gnu=yes
1.14      bertrand 3678: else
1.15      bertrand 3679:   ac_compiler_gnu=no
1.14      bertrand 3680: fi
1.15      bertrand 3681: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3682: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3683: 
1.15      bertrand 3684: fi
                   3685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3686: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3687: if test $ac_compiler_gnu = yes; then
                   3688:   GCC=yes
1.14      bertrand 3689: else
1.15      bertrand 3690:   GCC=
1.14      bertrand 3691: fi
1.15      bertrand 3692: ac_test_CFLAGS=${CFLAGS+set}
                   3693: ac_save_CFLAGS=$CFLAGS
                   3694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3695: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.57      bertrand 3696: if ${ac_cv_prog_cc_g+:} false; then :
1.15      bertrand 3697:   $as_echo_n "(cached) " >&6
                   3698: else
                   3699:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3700:    ac_c_werror_flag=yes
                   3701:    ac_cv_prog_cc_g=no
                   3702:    CFLAGS="-g"
                   3703:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3704: /* end confdefs.h.  */
1.14      bertrand 3705: 
1.15      bertrand 3706: int
                   3707: main ()
                   3708: {
1.14      bertrand 3709: 
1.15      bertrand 3710:   ;
                   3711:   return 0;
                   3712: }
                   3713: _ACEOF
                   3714: if ac_fn_c_try_compile "$LINENO"; then :
                   3715:   ac_cv_prog_cc_g=yes
                   3716: else
                   3717:   CFLAGS=""
                   3718:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3719: /* end confdefs.h.  */
1.14      bertrand 3720: 
1.15      bertrand 3721: int
                   3722: main ()
                   3723: {
1.14      bertrand 3724: 
1.15      bertrand 3725:   ;
                   3726:   return 0;
                   3727: }
                   3728: _ACEOF
                   3729: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3730: 
1.15      bertrand 3731: else
                   3732:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3733:     CFLAGS="-g"
                   3734:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3735: /* end confdefs.h.  */
1.14      bertrand 3736: 
1.15      bertrand 3737: int
                   3738: main ()
                   3739: {
1.14      bertrand 3740: 
1.15      bertrand 3741:   ;
                   3742:   return 0;
                   3743: }
                   3744: _ACEOF
                   3745: if ac_fn_c_try_compile "$LINENO"; then :
                   3746:   ac_cv_prog_cc_g=yes
                   3747: fi
                   3748: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3749: fi
                   3750: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3751: fi
                   3752: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3753:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3754: fi
                   3755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3756: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3757: if test "$ac_test_CFLAGS" = set; then
                   3758:   CFLAGS=$ac_save_CFLAGS
                   3759: elif test $ac_cv_prog_cc_g = yes; then
                   3760:   if test "$GCC" = yes; then
                   3761:     CFLAGS="-g -O2"
                   3762:   else
                   3763:     CFLAGS="-g"
                   3764:   fi
                   3765: else
                   3766:   if test "$GCC" = yes; then
                   3767:     CFLAGS="-O2"
                   3768:   else
                   3769:     CFLAGS=
                   3770:   fi
                   3771: fi
                   3772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3773: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.57      bertrand 3774: if ${ac_cv_prog_cc_c89+:} false; then :
1.15      bertrand 3775:   $as_echo_n "(cached) " >&6
1.1       bertrand 3776: else
1.15      bertrand 3777:   ac_cv_prog_cc_c89=no
                   3778: ac_save_CC=$CC
                   3779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3780: /* end confdefs.h.  */
1.15      bertrand 3781: #include <stdarg.h>
                   3782: #include <stdio.h>
                   3783: #include <sys/types.h>
                   3784: #include <sys/stat.h>
                   3785: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3786: struct buf { int x; };
                   3787: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3788: static char *e (p, i)
                   3789:      char **p;
                   3790:      int i;
                   3791: {
                   3792:   return p[i];
                   3793: }
                   3794: static char *f (char * (*g) (char **, int), char **p, ...)
                   3795: {
                   3796:   char *s;
                   3797:   va_list v;
                   3798:   va_start (v,p);
                   3799:   s = g (p, va_arg (v,int));
                   3800:   va_end (v);
                   3801:   return s;
                   3802: }
                   3803: 
                   3804: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3805:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3806:    These don't provoke an error unfortunately, instead are silently treated
                   3807:    as 'x'.  The following induces an error, until -std is added to get
                   3808:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3809:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3810:    that's true only with -std.  */
                   3811: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3812: 
1.15      bertrand 3813: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3814:    inside strings and character constants.  */
                   3815: #define FOO(x) 'x'
                   3816: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3817: 
1.15      bertrand 3818: int test (int i, double x);
                   3819: struct s1 {int (*f) (int a);};
                   3820: struct s2 {int (*f) (double a);};
                   3821: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3822: int argc;
                   3823: char **argv;
1.14      bertrand 3824: int
                   3825: main ()
                   3826: {
1.15      bertrand 3827: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3828:   ;
                   3829:   return 0;
                   3830: }
                   3831: _ACEOF
1.15      bertrand 3832: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3833:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3834: do
                   3835:   CC="$ac_save_CC $ac_arg"
                   3836:   if ac_fn_c_try_compile "$LINENO"; then :
                   3837:   ac_cv_prog_cc_c89=$ac_arg
                   3838: fi
                   3839: rm -f core conftest.err conftest.$ac_objext
                   3840:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3841: done
                   3842: rm -f conftest.$ac_ext
                   3843: CC=$ac_save_CC
                   3844: 
                   3845: fi
                   3846: # AC_CACHE_VAL
                   3847: case "x$ac_cv_prog_cc_c89" in
                   3848:   x)
                   3849:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3850: $as_echo "none needed" >&6; } ;;
                   3851:   xno)
                   3852:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3853: $as_echo "unsupported" >&6; } ;;
                   3854:   *)
                   3855:     CC="$CC $ac_cv_prog_cc_c89"
                   3856:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3857: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3858: esac
1.15      bertrand 3859: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3860: 
                   3861: fi
                   3862: 
1.15      bertrand 3863: ac_ext=c
                   3864: ac_cpp='$CPP $CPPFLAGS'
                   3865: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3866: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3867: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3868: DEPDIR="${am__leading_dot}deps"
                   3869: 
                   3870: ac_config_commands="$ac_config_commands depfiles"
                   3871: 
                   3872: 
                   3873: am_make=${MAKE-make}
                   3874: cat > confinc << 'END'
                   3875: am__doit:
                   3876:    @echo this is the am__doit target
                   3877: .PHONY: am__doit
                   3878: END
                   3879: # If we don't find an include directive, just comment out the code.
                   3880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3881: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3882: am__include="#"
                   3883: am__quote=
                   3884: _am_result=none
                   3885: # First try GNU make style include.
                   3886: echo "include confinc" > confmf
                   3887: # Ignore all kinds of additional output from `make'.
                   3888: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3889: *the\ am__doit\ target*)
                   3890:   am__include=include
                   3891:   am__quote=
                   3892:   _am_result=GNU
                   3893:   ;;
                   3894: esac
                   3895: # Now try BSD make style include.
                   3896: if test "$am__include" = "#"; then
                   3897:    echo '.include "confinc"' > confmf
                   3898:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3899:    *the\ am__doit\ target*)
                   3900:      am__include=.include
                   3901:      am__quote="\""
                   3902:      _am_result=BSD
                   3903:      ;;
                   3904:    esac
1.14      bertrand 3905: fi
                   3906: 
                   3907: 
1.15      bertrand 3908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3909: $as_echo "$_am_result" >&6; }
                   3910: rm -f confinc confmf
                   3911: 
                   3912: # Check whether --enable-dependency-tracking was given.
                   3913: if test "${enable_dependency_tracking+set}" = set; then :
                   3914:   enableval=$enable_dependency_tracking;
                   3915: fi
                   3916: 
                   3917: if test "x$enable_dependency_tracking" != xno; then
                   3918:   am_depcomp="$ac_aux_dir/depcomp"
                   3919:   AMDEPBACKSLASH='\'
                   3920: fi
                   3921:  if test "x$enable_dependency_tracking" != xno; then
                   3922:   AMDEP_TRUE=
                   3923:   AMDEP_FALSE='#'
1.1       bertrand 3924: else
1.15      bertrand 3925:   AMDEP_TRUE='#'
                   3926:   AMDEP_FALSE=
1.14      bertrand 3927: fi
1.1       bertrand 3928: 
1.14      bertrand 3929: 
                   3930: 
1.15      bertrand 3931: depcc="$CC"   am_compiler_list=
1.14      bertrand 3932: 
1.15      bertrand 3933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3934: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 3935: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15      bertrand 3936:   $as_echo_n "(cached) " >&6
1.14      bertrand 3937: else
1.15      bertrand 3938:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3939:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3940:   # making bogus files that we don't know about and never remove.  For
                   3941:   # instance it was reported that on HP-UX the gcc test will end up
                   3942:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3943:   # in D'.
                   3944:   mkdir conftest.dir
                   3945:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3946:   # using a relative directory.
                   3947:   cp "$am_depcomp" conftest.dir
                   3948:   cd conftest.dir
                   3949:   # We will build objects and dependencies in a subdirectory because
                   3950:   # it helps to detect inapplicable dependency modes.  For instance
                   3951:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3952:   # side effect of compilation, but ICC will put the dependencies in
                   3953:   # the current directory while Tru64 will put them in the object
                   3954:   # directory.
                   3955:   mkdir sub
1.14      bertrand 3956: 
1.15      bertrand 3957:   am_cv_CC_dependencies_compiler_type=none
                   3958:   if test "$am_compiler_list" = ""; then
                   3959:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3960:   fi
                   3961:   am__universal=false
                   3962:   case " $depcc " in #(
                   3963:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3964:      esac
1.14      bertrand 3965: 
1.15      bertrand 3966:   for depmode in $am_compiler_list; do
                   3967:     # Setup a source with many dependencies, because some compilers
                   3968:     # like to wrap large dependency lists on column 80 (with \), and
                   3969:     # we should not choose a depcomp mode which is confused by this.
                   3970:     #
                   3971:     # We need to recreate these files for each test, as the compiler may
                   3972:     # overwrite some of them when testing with obscure command lines.
                   3973:     # This happens at least with the AIX C compiler.
                   3974:     : > sub/conftest.c
                   3975:     for i in 1 2 3 4 5 6; do
                   3976:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3977:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3978:       # Solaris 8's {/usr,}/bin/sh.
                   3979:       touch sub/conftst$i.h
                   3980:     done
                   3981:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3982: 
1.15      bertrand 3983:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3984:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3985:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3986:     # versions had trouble with output in subdirs
                   3987:     am__obj=sub/conftest.${OBJEXT-o}
                   3988:     am__minus_obj="-o $am__obj"
                   3989:     case $depmode in
                   3990:     gcc)
                   3991:       # This depmode causes a compiler race in universal mode.
                   3992:       test "$am__universal" = false || continue
                   3993:       ;;
                   3994:     nosideeffect)
                   3995:       # after this tag, mechanisms are not by side-effect, so they'll
                   3996:       # only be used when explicitly requested
                   3997:       if test "x$enable_dependency_tracking" = xyes; then
                   3998:    continue
                   3999:       else
                   4000:    break
                   4001:       fi
                   4002:       ;;
                   4003:     msvisualcpp | msvcmsys)
                   4004:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4005:       # not run yet.  These depmodes are late enough in the game, and
                   4006:       # so weak that their functioning should not be impacted.
                   4007:       am__obj=conftest.${OBJEXT-o}
                   4008:       am__minus_obj=
                   4009:       ;;
                   4010:     none) break ;;
                   4011:     esac
                   4012:     if depmode=$depmode \
                   4013:        source=sub/conftest.c object=$am__obj \
                   4014:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4015:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4016:          >/dev/null 2>conftest.err &&
                   4017:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4018:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4019:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4020:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4021:       # icc doesn't choke on unknown options, it will just issue warnings
                   4022:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4023:       # that says an option was ignored or not supported.
                   4024:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4025:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4026:       # The diagnosis changed in icc 8.0:
                   4027:       #   icc: Command line remark: option '-MP' not supported
                   4028:       if (grep 'ignoring option' conftest.err ||
                   4029:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4030:         am_cv_CC_dependencies_compiler_type=$depmode
                   4031:         break
                   4032:       fi
                   4033:     fi
                   4034:   done
1.14      bertrand 4035: 
1.15      bertrand 4036:   cd ..
                   4037:   rm -rf conftest.dir
1.14      bertrand 4038: else
1.15      bertrand 4039:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4040: fi
                   4041: 
1.15      bertrand 4042: fi
                   4043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4044: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4045: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4046: 
1.15      bertrand 4047:  if
                   4048:   test "x$enable_dependency_tracking" != xno \
                   4049:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4050:   am__fastdepCC_TRUE=
                   4051:   am__fastdepCC_FALSE='#'
1.1       bertrand 4052: else
1.15      bertrand 4053:   am__fastdepCC_TRUE='#'
                   4054:   am__fastdepCC_FALSE=
                   4055: fi
                   4056: 
1.1       bertrand 4057: 
                   4058: 
1.30      bertrand 4059: EXT_SQL=
                   4060: 
1.15      bertrand 4061: if test x"$CC" != x""; then
                   4062:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4063:            awk -F. '{ printf("%s", $1);}'`
                   4064:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4065:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4066:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4067:        OPTIMISATION_C=-O3
                   4068:    else
1.23      bertrand 4069:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4070:                then
1.15      bertrand 4071:            OPTIMISATION_C=-O3
                   4072:        else
1.23      bertrand 4073:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4074:                OPTIMISATION_C=-O2
                   4075:            else
1.36      bertrand 4076:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4077:            fi
1.15      bertrand 4078:        fi
                   4079:    fi
1.14      bertrand 4080: fi
                   4081: 
1.15      bertrand 4082: if test "x$CC" != xcc; then
                   4083:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4084: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4085: else
1.15      bertrand 4086:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4087: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4088: fi
1.15      bertrand 4089: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4090:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.57      bertrand 4091: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15      bertrand 4092:   $as_echo_n "(cached) " >&6
1.1       bertrand 4093: else
1.15      bertrand 4094:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4095: /* end confdefs.h.  */
                   4096: 
                   4097: int
                   4098: main ()
                   4099: {
1.15      bertrand 4100: 
1.1       bertrand 4101:   ;
                   4102:   return 0;
                   4103: }
                   4104: _ACEOF
1.15      bertrand 4105: # Make sure it works both with $CC and with simple cc.
                   4106: # We do the test twice because some compilers refuse to overwrite an
                   4107: # existing .o file with -o, though they will create one.
                   4108: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4109: rm -f conftest2.*
                   4110: if { { case "(($ac_try" in
                   4111:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4112:   *) ac_try_echo=$ac_try;;
                   4113: esac
                   4114: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4115: $as_echo "$ac_try_echo"; } >&5
                   4116:   (eval "$ac_try") 2>&5
                   4117:   ac_status=$?
                   4118:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4119:   test $ac_status = 0; } &&
                   4120:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4121:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4122:   *) ac_try_echo=$ac_try;;
                   4123: esac
                   4124: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4125: $as_echo "$ac_try_echo"; } >&5
                   4126:   (eval "$ac_try") 2>&5
                   4127:   ac_status=$?
                   4128:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4129:   test $ac_status = 0; };
                   4130: then
                   4131:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4132:   if test "x$CC" != xcc; then
                   4133:     # Test first that cc exists at all.
                   4134:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4135:   { { case "(($ac_try" in
                   4136:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4137:   *) ac_try_echo=$ac_try;;
                   4138: esac
                   4139: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4140: $as_echo "$ac_try_echo"; } >&5
                   4141:   (eval "$ac_try") 2>&5
                   4142:   ac_status=$?
                   4143:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4144:   test $ac_status = 0; }; }; then
                   4145:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4146:       rm -f conftest2.*
                   4147:       if { { case "(($ac_try" in
                   4148:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4149:   *) ac_try_echo=$ac_try;;
                   4150: esac
                   4151: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4152: $as_echo "$ac_try_echo"; } >&5
                   4153:   (eval "$ac_try") 2>&5
                   4154:   ac_status=$?
                   4155:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4156:   test $ac_status = 0; } &&
                   4157:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4158:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4159:   *) ac_try_echo=$ac_try;;
                   4160: esac
1.15      bertrand 4161: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4162: $as_echo "$ac_try_echo"; } >&5
                   4163:   (eval "$ac_try") 2>&5
1.14      bertrand 4164:   ac_status=$?
1.15      bertrand 4165:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4166:   test $ac_status = 0; };
                   4167:       then
                   4168:    # cc works too.
                   4169:    :
                   4170:       else
                   4171:    # cc exists but doesn't like -o.
                   4172:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4173:       fi
                   4174:     fi
                   4175:   fi
1.1       bertrand 4176: else
1.15      bertrand 4177:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4178: fi
                   4179: rm -f core conftest*
1.14      bertrand 4180: 
1.1       bertrand 4181: fi
1.15      bertrand 4182: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4183:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4184: $as_echo "yes" >&6; }
                   4185: else
                   4186:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4187: $as_echo "no" >&6; }
                   4188: 
                   4189: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4190: 
                   4191: fi
1.15      bertrand 4192: 
                   4193: # FIXME: we rely on the cache variable name because
                   4194: # there is no other way.
                   4195: set dummy $CC
                   4196: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4197: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4198: if test "$am_t" != yes; then
                   4199:    # Losing compiler, so override with the script.
                   4200:    # FIXME: It is wrong to rewrite CC.
                   4201:    # But if we don't then we get into trouble of one sort or another.
                   4202:    # A longer-term fix would be to have automake use am__CC in this case,
                   4203:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4204:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4205: fi
1.14      bertrand 4206: 
                   4207: 
1.15      bertrand 4208: 
                   4209: if test "$GCC" != yes; then
1.36      bertrand 4210:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4211: fi
                   4212: 
                   4213: ac_ext=cpp
                   4214: ac_cpp='$CXXCPP $CPPFLAGS'
                   4215: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4216: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4217: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4218: if test -z "$CXX"; then
                   4219:   if test -n "$CCC"; then
                   4220:     CXX=$CCC
                   4221:   else
                   4222:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4223:   for ac_prog in g++
1.15      bertrand 4224:   do
                   4225:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4226: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4228: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4229: if ${ac_cv_prog_CXX+:} false; then :
1.15      bertrand 4230:   $as_echo_n "(cached) " >&6
1.1       bertrand 4231: else
1.15      bertrand 4232:   if test -n "$CXX"; then
                   4233:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4234: else
1.15      bertrand 4235: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4236: for as_dir in $PATH
                   4237: do
                   4238:   IFS=$as_save_IFS
                   4239:   test -z "$as_dir" && as_dir=.
                   4240:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4241:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4242:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4243:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4244:     break 2
                   4245:   fi
                   4246: done
                   4247:   done
                   4248: IFS=$as_save_IFS
1.14      bertrand 4249: 
                   4250: fi
                   4251: fi
1.15      bertrand 4252: CXX=$ac_cv_prog_CXX
                   4253: if test -n "$CXX"; then
                   4254:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4255: $as_echo "$CXX" >&6; }
1.14      bertrand 4256: else
1.15      bertrand 4257:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4258: $as_echo "no" >&6; }
1.14      bertrand 4259: fi
                   4260: 
                   4261: 
1.15      bertrand 4262:     test -n "$CXX" && break
                   4263:   done
                   4264: fi
                   4265: if test -z "$CXX"; then
                   4266:   ac_ct_CXX=$CXX
1.23      bertrand 4267:   for ac_prog in g++
1.15      bertrand 4268: do
                   4269:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4270: set dummy $ac_prog; ac_word=$2
                   4271: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4272: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4273: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15      bertrand 4274:   $as_echo_n "(cached) " >&6
                   4275: else
                   4276:   if test -n "$ac_ct_CXX"; then
                   4277:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4278: else
                   4279: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4280: for as_dir in $PATH
                   4281: do
                   4282:   IFS=$as_save_IFS
                   4283:   test -z "$as_dir" && as_dir=.
                   4284:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4285:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4286:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4287:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4288:     break 2
                   4289:   fi
                   4290: done
                   4291:   done
                   4292: IFS=$as_save_IFS
1.14      bertrand 4293: 
1.15      bertrand 4294: fi
                   4295: fi
                   4296: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4297: if test -n "$ac_ct_CXX"; then
                   4298:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4299: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4300: else
1.15      bertrand 4301:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4302: $as_echo "no" >&6; }
1.14      bertrand 4303: fi
                   4304: 
                   4305: 
1.15      bertrand 4306:   test -n "$ac_ct_CXX" && break
                   4307: done
1.14      bertrand 4308: 
1.15      bertrand 4309:   if test "x$ac_ct_CXX" = x; then
                   4310:     CXX="g++"
                   4311:   else
                   4312:     case $cross_compiling:$ac_tool_warned in
                   4313: yes:)
                   4314: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4315: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4316: ac_tool_warned=yes ;;
                   4317: esac
                   4318:     CXX=$ac_ct_CXX
                   4319:   fi
                   4320: fi
1.1       bertrand 4321: 
1.15      bertrand 4322:   fi
                   4323: fi
                   4324: # Provide some information about the compiler.
                   4325: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4326: set X $ac_compile
                   4327: ac_compiler=$2
                   4328: for ac_option in --version -v -V -qversion; do
                   4329:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4330: case "(($ac_try" in
                   4331:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4332:   *) ac_try_echo=$ac_try;;
                   4333: esac
1.15      bertrand 4334: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4335: $as_echo "$ac_try_echo"; } >&5
                   4336:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4337:   ac_status=$?
1.15      bertrand 4338:   if test -s conftest.err; then
                   4339:     sed '10a\
                   4340: ... rest of stderr output deleted ...
                   4341:          10q' conftest.err >conftest.er1
                   4342:     cat conftest.er1 >&5
                   4343:   fi
                   4344:   rm -f conftest.er1 conftest.err
                   4345:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4346:   test $ac_status = 0; }
                   4347: done
                   4348: 
                   4349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4350: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.57      bertrand 4351: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15      bertrand 4352:   $as_echo_n "(cached) " >&6
1.14      bertrand 4353: else
1.15      bertrand 4354:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4355: /* end confdefs.h.  */
1.1       bertrand 4356: 
                   4357: int
                   4358: main ()
                   4359: {
1.15      bertrand 4360: #ifndef __GNUC__
                   4361:        choke me
                   4362: #endif
1.1       bertrand 4363: 
                   4364:   ;
                   4365:   return 0;
                   4366: }
                   4367: _ACEOF
1.15      bertrand 4368: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4369:   ac_compiler_gnu=yes
1.1       bertrand 4370: else
1.15      bertrand 4371:   ac_compiler_gnu=no
1.1       bertrand 4372: fi
1.14      bertrand 4373: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4374: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4375: 
1.15      bertrand 4376: fi
                   4377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4378: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4379: if test $ac_compiler_gnu = yes; then
                   4380:   GXX=yes
                   4381: else
                   4382:   GXX=
                   4383: fi
                   4384: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4385: ac_save_CXXFLAGS=$CXXFLAGS
                   4386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4387: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.57      bertrand 4388: if ${ac_cv_prog_cxx_g+:} false; then :
1.15      bertrand 4389:   $as_echo_n "(cached) " >&6
                   4390: else
                   4391:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4392:    ac_cxx_werror_flag=yes
                   4393:    ac_cv_prog_cxx_g=no
                   4394:    CXXFLAGS="-g"
                   4395:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4396: /* end confdefs.h.  */
1.15      bertrand 4397: 
1.1       bertrand 4398: int
                   4399: main ()
                   4400: {
1.14      bertrand 4401: 
1.1       bertrand 4402:   ;
                   4403:   return 0;
                   4404: }
                   4405: _ACEOF
1.15      bertrand 4406: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4407:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4408: else
1.15      bertrand 4409:   CXXFLAGS=""
                   4410:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4411: /* end confdefs.h.  */
1.1       bertrand 4412: 
1.14      bertrand 4413: int
                   4414: main ()
                   4415: {
1.1       bertrand 4416: 
1.14      bertrand 4417:   ;
                   4418:   return 0;
                   4419: }
                   4420: _ACEOF
1.15      bertrand 4421: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4422: 
                   4423: else
1.15      bertrand 4424:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4425:     CXXFLAGS="-g"
                   4426:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4427: /* end confdefs.h.  */
1.1       bertrand 4428: 
1.14      bertrand 4429: int
                   4430: main ()
                   4431: {
1.1       bertrand 4432: 
1.14      bertrand 4433:   ;
                   4434:   return 0;
                   4435: }
                   4436: _ACEOF
1.15      bertrand 4437: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4438:   ac_cv_prog_cxx_g=yes
                   4439: fi
                   4440: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4441: fi
                   4442: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4443: fi
                   4444: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4445:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4446: fi
                   4447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4448: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4449: if test "$ac_test_CXXFLAGS" = set; then
                   4450:   CXXFLAGS=$ac_save_CXXFLAGS
                   4451: elif test $ac_cv_prog_cxx_g = yes; then
                   4452:   if test "$GXX" = yes; then
                   4453:     CXXFLAGS="-g -O2"
                   4454:   else
                   4455:     CXXFLAGS="-g"
                   4456:   fi
                   4457: else
                   4458:   if test "$GXX" = yes; then
                   4459:     CXXFLAGS="-O2"
                   4460:   else
                   4461:     CXXFLAGS=
                   4462:   fi
                   4463: fi
                   4464: ac_ext=c
                   4465: ac_cpp='$CPP $CPPFLAGS'
                   4466: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4467: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4468: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4469: 
                   4470: depcc="$CXX"  am_compiler_list=
                   4471: 
                   4472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4473: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 4474: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15      bertrand 4475:   $as_echo_n "(cached) " >&6
                   4476: else
                   4477:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4478:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4479:   # making bogus files that we don't know about and never remove.  For
                   4480:   # instance it was reported that on HP-UX the gcc test will end up
                   4481:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4482:   # in D'.
                   4483:   mkdir conftest.dir
                   4484:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4485:   # using a relative directory.
                   4486:   cp "$am_depcomp" conftest.dir
                   4487:   cd conftest.dir
                   4488:   # We will build objects and dependencies in a subdirectory because
                   4489:   # it helps to detect inapplicable dependency modes.  For instance
                   4490:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4491:   # side effect of compilation, but ICC will put the dependencies in
                   4492:   # the current directory while Tru64 will put them in the object
                   4493:   # directory.
                   4494:   mkdir sub
                   4495: 
                   4496:   am_cv_CXX_dependencies_compiler_type=none
                   4497:   if test "$am_compiler_list" = ""; then
                   4498:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4499:   fi
                   4500:   am__universal=false
                   4501:   case " $depcc " in #(
                   4502:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4503:      esac
                   4504: 
                   4505:   for depmode in $am_compiler_list; do
                   4506:     # Setup a source with many dependencies, because some compilers
                   4507:     # like to wrap large dependency lists on column 80 (with \), and
                   4508:     # we should not choose a depcomp mode which is confused by this.
                   4509:     #
                   4510:     # We need to recreate these files for each test, as the compiler may
                   4511:     # overwrite some of them when testing with obscure command lines.
                   4512:     # This happens at least with the AIX C compiler.
                   4513:     : > sub/conftest.c
                   4514:     for i in 1 2 3 4 5 6; do
                   4515:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4516:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4517:       # Solaris 8's {/usr,}/bin/sh.
                   4518:       touch sub/conftst$i.h
                   4519:     done
                   4520:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4521: 
                   4522:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4523:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4524:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4525:     # versions had trouble with output in subdirs
                   4526:     am__obj=sub/conftest.${OBJEXT-o}
                   4527:     am__minus_obj="-o $am__obj"
                   4528:     case $depmode in
                   4529:     gcc)
                   4530:       # This depmode causes a compiler race in universal mode.
                   4531:       test "$am__universal" = false || continue
                   4532:       ;;
                   4533:     nosideeffect)
                   4534:       # after this tag, mechanisms are not by side-effect, so they'll
                   4535:       # only be used when explicitly requested
                   4536:       if test "x$enable_dependency_tracking" = xyes; then
                   4537:    continue
                   4538:       else
                   4539:    break
                   4540:       fi
                   4541:       ;;
                   4542:     msvisualcpp | msvcmsys)
                   4543:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4544:       # not run yet.  These depmodes are late enough in the game, and
                   4545:       # so weak that their functioning should not be impacted.
                   4546:       am__obj=conftest.${OBJEXT-o}
                   4547:       am__minus_obj=
                   4548:       ;;
                   4549:     none) break ;;
                   4550:     esac
                   4551:     if depmode=$depmode \
                   4552:        source=sub/conftest.c object=$am__obj \
                   4553:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4554:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4555:          >/dev/null 2>conftest.err &&
                   4556:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4557:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4558:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4559:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4560:       # icc doesn't choke on unknown options, it will just issue warnings
                   4561:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4562:       # that says an option was ignored or not supported.
                   4563:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4564:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4565:       # The diagnosis changed in icc 8.0:
                   4566:       #   icc: Command line remark: option '-MP' not supported
                   4567:       if (grep 'ignoring option' conftest.err ||
                   4568:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4569:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4570:         break
                   4571:       fi
                   4572:     fi
                   4573:   done
                   4574: 
                   4575:   cd ..
                   4576:   rm -rf conftest.dir
                   4577: else
                   4578:   am_cv_CXX_dependencies_compiler_type=none
                   4579: fi
                   4580: 
                   4581: fi
                   4582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4583: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4584: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4585: 
                   4586:  if
                   4587:   test "x$enable_dependency_tracking" != xno \
                   4588:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4589:   am__fastdepCXX_TRUE=
                   4590:   am__fastdepCXX_FALSE='#'
                   4591: else
                   4592:   am__fastdepCXX_TRUE='#'
                   4593:   am__fastdepCXX_FALSE=
                   4594: fi
                   4595: 
                   4596: 
                   4597: 
1.69      bertrand 4598: if test "$CXX" != "g++"; then
1.36      bertrand 4599:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4600: fi
                   4601: 
1.69      bertrand 4602: if test x"$CXX" != x""; then
                   4603:    GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4604:            awk -F. '{ printf("%s", $1);}'`
                   4605:    GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4606:            awk -F. '{ printf("%s", $2);}'`
                   4607:    if test $GCC_VERSION_MAJEURE -ge 5; then
                   4608:        OPTIMISATION_GXX=-O3
                   4609:    else
                   4610:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4611:            OPTIMISATION_GXX=-O3
                   4612:        else
                   4613:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4614:                OPTIMISATION_GXX=-O2
                   4615:            else
                   4616:                as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
                   4617:            fi
                   4618:        fi
                   4619:    fi
                   4620: fi
                   4621: 
1.15      bertrand 4622: ac_ext=f
                   4623: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4624: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4625: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4626: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4627:   for ac_prog in gfortran
1.15      bertrand 4628:   do
                   4629:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4630: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4631: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4632: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4633: if ${ac_cv_prog_F77+:} false; then :
1.15      bertrand 4634:   $as_echo_n "(cached) " >&6
                   4635: else
                   4636:   if test -n "$F77"; then
                   4637:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4638: else
                   4639: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4640: for as_dir in $PATH
                   4641: do
                   4642:   IFS=$as_save_IFS
                   4643:   test -z "$as_dir" && as_dir=.
                   4644:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4645:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4646:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4647:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4648:     break 2
                   4649:   fi
                   4650: done
                   4651:   done
                   4652: IFS=$as_save_IFS
                   4653: 
                   4654: fi
                   4655: fi
                   4656: F77=$ac_cv_prog_F77
                   4657: if test -n "$F77"; then
                   4658:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4659: $as_echo "$F77" >&6; }
                   4660: else
                   4661:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4662: $as_echo "no" >&6; }
                   4663: fi
                   4664: 
                   4665: 
                   4666:     test -n "$F77" && break
                   4667:   done
                   4668: fi
                   4669: if test -z "$F77"; then
                   4670:   ac_ct_F77=$F77
1.23      bertrand 4671:   for ac_prog in gfortran
1.15      bertrand 4672: do
                   4673:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4674: set dummy $ac_prog; ac_word=$2
                   4675: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4676: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4677: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15      bertrand 4678:   $as_echo_n "(cached) " >&6
                   4679: else
                   4680:   if test -n "$ac_ct_F77"; then
                   4681:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4682: else
                   4683: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4684: for as_dir in $PATH
                   4685: do
                   4686:   IFS=$as_save_IFS
                   4687:   test -z "$as_dir" && as_dir=.
                   4688:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4689:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4690:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4691:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4692:     break 2
                   4693:   fi
                   4694: done
                   4695:   done
                   4696: IFS=$as_save_IFS
                   4697: 
                   4698: fi
                   4699: fi
                   4700: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4701: if test -n "$ac_ct_F77"; then
                   4702:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4703: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4704: else
1.15      bertrand 4705:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4706: $as_echo "no" >&6; }
                   4707: fi
                   4708: 
                   4709: 
                   4710:   test -n "$ac_ct_F77" && break
                   4711: done
1.1       bertrand 4712: 
1.15      bertrand 4713:   if test "x$ac_ct_F77" = x; then
                   4714:     F77=""
                   4715:   else
                   4716:     case $cross_compiling:$ac_tool_warned in
                   4717: yes:)
                   4718: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4719: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4720: ac_tool_warned=yes ;;
                   4721: esac
                   4722:     F77=$ac_ct_F77
                   4723:   fi
1.14      bertrand 4724: fi
1.1       bertrand 4725: 
                   4726: 
1.15      bertrand 4727: # Provide some information about the compiler.
                   4728: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4729: set X $ac_compile
                   4730: ac_compiler=$2
                   4731: for ac_option in --version -v -V -qversion; do
                   4732:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4733: case "(($ac_try" in
                   4734:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4735:   *) ac_try_echo=$ac_try;;
                   4736: esac
1.15      bertrand 4737: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4738: $as_echo "$ac_try_echo"; } >&5
                   4739:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4740:   ac_status=$?
1.15      bertrand 4741:   if test -s conftest.err; then
                   4742:     sed '10a\
                   4743: ... rest of stderr output deleted ...
                   4744:          10q' conftest.err >conftest.er1
                   4745:     cat conftest.er1 >&5
                   4746:   fi
                   4747:   rm -f conftest.er1 conftest.err
                   4748:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4749:   test $ac_status = 0; }
                   4750: done
                   4751: rm -f a.out
                   4752: 
                   4753: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4754: # input file.  (Note that this only needs to work for GNU compilers.)
                   4755: ac_save_ext=$ac_ext
                   4756: ac_ext=F
                   4757: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4758: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.57      bertrand 4759: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15      bertrand 4760:   $as_echo_n "(cached) " >&6
1.1       bertrand 4761: else
1.15      bertrand 4762:   cat > conftest.$ac_ext <<_ACEOF
                   4763:       program main
                   4764: #ifndef __GNUC__
                   4765:        choke me
                   4766: #endif
1.14      bertrand 4767: 
1.15      bertrand 4768:       end
                   4769: _ACEOF
                   4770: if ac_fn_f77_try_compile "$LINENO"; then :
                   4771:   ac_compiler_gnu=yes
                   4772: else
                   4773:   ac_compiler_gnu=no
1.1       bertrand 4774: fi
1.15      bertrand 4775: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4776: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4777: 
                   4778: fi
1.15      bertrand 4779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4780: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4781: ac_ext=$ac_save_ext
                   4782: ac_test_FFLAGS=${FFLAGS+set}
                   4783: ac_save_FFLAGS=$FFLAGS
                   4784: FFLAGS=
                   4785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4786: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.57      bertrand 4787: if ${ac_cv_prog_f77_g+:} false; then :
1.15      bertrand 4788:   $as_echo_n "(cached) " >&6
                   4789: else
                   4790:   FFLAGS=-g
                   4791: cat > conftest.$ac_ext <<_ACEOF
                   4792:       program main
1.1       bertrand 4793: 
1.15      bertrand 4794:       end
1.14      bertrand 4795: _ACEOF
1.15      bertrand 4796: if ac_fn_f77_try_compile "$LINENO"; then :
                   4797:   ac_cv_prog_f77_g=yes
1.1       bertrand 4798: else
1.15      bertrand 4799:   ac_cv_prog_f77_g=no
1.1       bertrand 4800: fi
1.15      bertrand 4801: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4802: 
                   4803: fi
1.15      bertrand 4804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4805: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4806: if test "$ac_test_FFLAGS" = set; then
                   4807:   FFLAGS=$ac_save_FFLAGS
                   4808: elif test $ac_cv_prog_f77_g = yes; then
                   4809:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4810:     FFLAGS="-g -O2"
                   4811:   else
                   4812:     FFLAGS="-g"
                   4813:   fi
                   4814: else
                   4815:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4816:     FFLAGS="-O2"
                   4817:   else
                   4818:     FFLAGS=
                   4819:   fi
1.1       bertrand 4820: fi
                   4821: 
1.15      bertrand 4822: if test $ac_compiler_gnu = yes; then
                   4823:   G77=yes
1.1       bertrand 4824: else
1.15      bertrand 4825:   G77=
1.1       bertrand 4826: fi
1.15      bertrand 4827: ac_ext=c
                   4828: ac_cpp='$CPP $CPPFLAGS'
                   4829: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4830: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4831: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4832: 
                   4833: 
1.15      bertrand 4834: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
1.36      bertrand 4835:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.15      bertrand 4836: fi
1.14      bertrand 4837: 
1.15      bertrand 4838: ac_ext=${ac_fc_srcext-f}
                   4839: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4840: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4841: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4842: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4843:   for ac_prog in gfortran
1.15      bertrand 4844:   do
                   4845:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4846: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4847: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4848: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4849: if ${ac_cv_prog_FC+:} false; then :
1.15      bertrand 4850:   $as_echo_n "(cached) " >&6
                   4851: else
                   4852:   if test -n "$FC"; then
                   4853:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4854: else
1.15      bertrand 4855: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4856: for as_dir in $PATH
                   4857: do
                   4858:   IFS=$as_save_IFS
                   4859:   test -z "$as_dir" && as_dir=.
                   4860:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4861:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4862:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4863:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4864:     break 2
                   4865:   fi
                   4866: done
                   4867:   done
                   4868: IFS=$as_save_IFS
1.1       bertrand 4869: 
                   4870: fi
1.15      bertrand 4871: fi
                   4872: FC=$ac_cv_prog_FC
                   4873: if test -n "$FC"; then
                   4874:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4875: $as_echo "$FC" >&6; }
1.14      bertrand 4876: else
1.15      bertrand 4877:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4878: $as_echo "no" >&6; }
1.14      bertrand 4879: fi
                   4880: 
1.1       bertrand 4881: 
1.15      bertrand 4882:     test -n "$FC" && break
                   4883:   done
                   4884: fi
                   4885: if test -z "$FC"; then
                   4886:   ac_ct_FC=$FC
1.23      bertrand 4887:   for ac_prog in gfortran
1.15      bertrand 4888: do
                   4889:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4890: set dummy $ac_prog; ac_word=$2
                   4891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4892: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4893: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15      bertrand 4894:   $as_echo_n "(cached) " >&6
                   4895: else
                   4896:   if test -n "$ac_ct_FC"; then
                   4897:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4898: else
                   4899: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4900: for as_dir in $PATH
                   4901: do
                   4902:   IFS=$as_save_IFS
                   4903:   test -z "$as_dir" && as_dir=.
                   4904:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4905:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4906:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4907:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4908:     break 2
                   4909:   fi
                   4910: done
                   4911:   done
                   4912: IFS=$as_save_IFS
1.1       bertrand 4913: 
1.15      bertrand 4914: fi
                   4915: fi
                   4916: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4917: if test -n "$ac_ct_FC"; then
                   4918:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4919: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4920: else
1.15      bertrand 4921:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4922: $as_echo "no" >&6; }
1.1       bertrand 4923: fi
1.14      bertrand 4924: 
1.1       bertrand 4925: 
1.15      bertrand 4926:   test -n "$ac_ct_FC" && break
                   4927: done
1.1       bertrand 4928: 
1.15      bertrand 4929:   if test "x$ac_ct_FC" = x; then
                   4930:     FC=""
                   4931:   else
                   4932:     case $cross_compiling:$ac_tool_warned in
                   4933: yes:)
                   4934: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4935: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4936: ac_tool_warned=yes ;;
1.14      bertrand 4937: esac
1.15      bertrand 4938:     FC=$ac_ct_FC
                   4939:   fi
1.14      bertrand 4940: fi
                   4941: 
                   4942: 
1.15      bertrand 4943: # Provide some information about the compiler.
                   4944: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4945: set X $ac_compile
                   4946: ac_compiler=$2
                   4947: for ac_option in --version -v -V -qversion; do
                   4948:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4949: case "(($ac_try" in
                   4950:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4951:   *) ac_try_echo=$ac_try;;
                   4952: esac
1.15      bertrand 4953: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4954: $as_echo "$ac_try_echo"; } >&5
                   4955:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4956:   ac_status=$?
1.15      bertrand 4957:   if test -s conftest.err; then
                   4958:     sed '10a\
                   4959: ... rest of stderr output deleted ...
                   4960:          10q' conftest.err >conftest.er1
                   4961:     cat conftest.er1 >&5
                   4962:   fi
                   4963:   rm -f conftest.er1 conftest.err
                   4964:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4965:   test $ac_status = 0; }
                   4966: done
                   4967: rm -f a.out
                   4968: 
                   4969: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4970: # input file.  (Note that this only needs to work for GNU compilers.)
                   4971: ac_save_ext=$ac_ext
                   4972: ac_ext=F
                   4973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4974: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.57      bertrand 4975: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15      bertrand 4976:   $as_echo_n "(cached) " >&6
1.14      bertrand 4977: else
1.15      bertrand 4978:   cat > conftest.$ac_ext <<_ACEOF
                   4979:       program main
                   4980: #ifndef __GNUC__
                   4981:        choke me
                   4982: #endif
1.14      bertrand 4983: 
1.15      bertrand 4984:       end
                   4985: _ACEOF
                   4986: if ac_fn_fc_try_compile "$LINENO"; then :
                   4987:   ac_compiler_gnu=yes
                   4988: else
                   4989:   ac_compiler_gnu=no
1.14      bertrand 4990: fi
                   4991: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4992: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4993: 
1.15      bertrand 4994: fi
                   4995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   4996: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   4997: ac_ext=$ac_save_ext
                   4998: ac_test_FCFLAGS=${FCFLAGS+set}
                   4999: ac_save_FCFLAGS=$FCFLAGS
                   5000: FCFLAGS=
                   5001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   5002: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.57      bertrand 5003: if ${ac_cv_prog_fc_g+:} false; then :
1.15      bertrand 5004:   $as_echo_n "(cached) " >&6
                   5005: else
                   5006:   FCFLAGS=-g
                   5007: cat > conftest.$ac_ext <<_ACEOF
                   5008:       program main
1.1       bertrand 5009: 
1.15      bertrand 5010:       end
1.1       bertrand 5011: _ACEOF
1.15      bertrand 5012: if ac_fn_fc_try_compile "$LINENO"; then :
                   5013:   ac_cv_prog_fc_g=yes
1.1       bertrand 5014: else
1.15      bertrand 5015:   ac_cv_prog_fc_g=no
1.1       bertrand 5016: fi
1.14      bertrand 5017: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 5018: 
1.15      bertrand 5019: fi
                   5020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   5021: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   5022: if test "$ac_test_FCFLAGS" = set; then
                   5023:   FCFLAGS=$ac_save_FCFLAGS
                   5024: elif test $ac_cv_prog_fc_g = yes; then
                   5025:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5026:     FCFLAGS="-g -O2"
                   5027:   else
                   5028:     FCFLAGS="-g"
                   5029:   fi
1.1       bertrand 5030: else
1.15      bertrand 5031:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5032:     FCFLAGS="-O2"
                   5033:   else
                   5034:     FCFLAGS=
                   5035:   fi
1.1       bertrand 5036: fi
                   5037: 
1.15      bertrand 5038: ac_ext=c
                   5039: ac_cpp='$CPP $CPPFLAGS'
                   5040: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5041: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5042: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 5043: 
                   5044: 
1.15      bertrand 5045: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
1.36      bertrand 5046:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 5047: fi
                   5048: 
1.15      bertrand 5049: if test x"$FC" != x""; then
                   5050:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5051:            awk -F. '{ printf("%s", $1);}'`
                   5052:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5053:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 5054:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 5055:        OPTIMISATION_F=-O3
                   5056:    else
1.23      bertrand 5057:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5058:            OPTIMISATION_F=-O3
                   5059:        else
1.23      bertrand 5060:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5061:                OPTIMISATION_F=-O2
                   5062:            else
1.36      bertrand 5063:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5064:            fi
1.14      bertrand 5065:        fi
                   5066:    fi
                   5067: fi
1.1       bertrand 5068: 
                   5069: 
1.15      bertrand 5070: ac_ext=c
                   5071: ac_cpp='$CPP $CPPFLAGS'
                   5072: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5073: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5074: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5076: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5077: # On Suns, sometimes $CPP names a directory.
                   5078: if test -n "$CPP" && test -d "$CPP"; then
                   5079:   CPP=
                   5080: fi
                   5081: if test -z "$CPP"; then
1.57      bertrand 5082:   if ${ac_cv_prog_CPP+:} false; then :
1.15      bertrand 5083:   $as_echo_n "(cached) " >&6
                   5084: else
                   5085:       # Double quotes because CPP needs to be expanded
                   5086:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5087:     do
                   5088:       ac_preproc_ok=false
                   5089: for ac_c_preproc_warn_flag in '' yes
                   5090: do
                   5091:   # Use a header file that comes with gcc, so configuring glibc
                   5092:   # with a fresh cross-compiler works.
                   5093:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5094:   # <limits.h> exists even on freestanding compilers.
                   5095:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5096:   # not just through cpp. "Syntax error" is here to catch this case.
                   5097:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5098: /* end confdefs.h.  */
1.15      bertrand 5099: #ifdef __STDC__
                   5100: # include <limits.h>
                   5101: #else
                   5102: # include <assert.h>
                   5103: #endif
                   5104:             Syntax error
1.1       bertrand 5105: _ACEOF
1.15      bertrand 5106: if ac_fn_c_try_cpp "$LINENO"; then :
                   5107: 
1.1       bertrand 5108: else
1.15      bertrand 5109:   # Broken: fails on valid input.
                   5110: continue
1.1       bertrand 5111: fi
1.36      bertrand 5112: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5113: 
1.15      bertrand 5114:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5115:   # can be detected and how.
                   5116:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5117: /* end confdefs.h.  */
                   5118: #include <ac_nonexistent.h>
                   5119: _ACEOF
                   5120: if ac_fn_c_try_cpp "$LINENO"; then :
                   5121:   # Broken: success on invalid input.
                   5122: continue
                   5123: else
                   5124:   # Passes both tests.
                   5125: ac_preproc_ok=:
                   5126: break
1.1       bertrand 5127: fi
1.36      bertrand 5128: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5129: 
1.15      bertrand 5130: done
                   5131: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5132: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5133: if $ac_preproc_ok; then :
                   5134:   break
1.1       bertrand 5135: fi
                   5136: 
1.15      bertrand 5137:     done
                   5138:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5139: 
1.15      bertrand 5140: fi
                   5141:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5142: else
1.15      bertrand 5143:   ac_cv_prog_CPP=$CPP
                   5144: fi
                   5145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5146: $as_echo "$CPP" >&6; }
                   5147: ac_preproc_ok=false
                   5148: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5149: do
1.15      bertrand 5150:   # Use a header file that comes with gcc, so configuring glibc
                   5151:   # with a fresh cross-compiler works.
                   5152:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5153:   # <limits.h> exists even on freestanding compilers.
                   5154:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5155:   # not just through cpp. "Syntax error" is here to catch this case.
                   5156:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5157: /* end confdefs.h.  */
                   5158: #ifdef __STDC__
                   5159: # include <limits.h>
                   5160: #else
                   5161: # include <assert.h>
                   5162: #endif
                   5163:             Syntax error
                   5164: _ACEOF
                   5165: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5166: 
1.15      bertrand 5167: else
                   5168:   # Broken: fails on valid input.
                   5169: continue
                   5170: fi
1.36      bertrand 5171: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5172: 
1.15      bertrand 5173:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5174:   # can be detected and how.
                   5175:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5176: /* end confdefs.h.  */
                   5177: #include <ac_nonexistent.h>
                   5178: _ACEOF
                   5179: if ac_fn_c_try_cpp "$LINENO"; then :
                   5180:   # Broken: success on invalid input.
                   5181: continue
                   5182: else
                   5183:   # Passes both tests.
                   5184: ac_preproc_ok=:
                   5185: break
                   5186: fi
1.36      bertrand 5187: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5188: 
                   5189: done
1.15      bertrand 5190: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5191: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5192: if $ac_preproc_ok; then :
1.1       bertrand 5193: 
1.15      bertrand 5194: else
                   5195:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5196: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5197: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.57      bertrand 5198: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 5199: fi
1.14      bertrand 5200: 
1.15      bertrand 5201: ac_ext=c
                   5202: ac_cpp='$CPP $CPPFLAGS'
                   5203: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5204: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5205: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5206: 
                   5207: 
1.15      bertrand 5208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5209: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5210: 
                   5211: 
1.15      bertrand 5212: # Check whether --with-x was given.
                   5213: if test "${with_x+set}" = set; then :
                   5214:   withval=$with_x;
1.1       bertrand 5215: fi
1.14      bertrand 5216: 
1.15      bertrand 5217: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5218: if test "x$with_x" = xno; then
                   5219:   # The user explicitly disabled X.
                   5220:   have_x=disabled
1.1       bertrand 5221: else
1.15      bertrand 5222:   case $x_includes,$x_libraries in #(
1.57      bertrand 5223:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5224:     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15      bertrand 5225:   $as_echo_n "(cached) " >&6
1.1       bertrand 5226: else
1.15      bertrand 5227:   # One or both of the vars are not set, and there is no cached value.
                   5228: ac_x_includes=no ac_x_libraries=no
                   5229: rm -f -r conftest.dir
                   5230: if mkdir conftest.dir; then
                   5231:   cd conftest.dir
                   5232:   cat >Imakefile <<'_ACEOF'
                   5233: incroot:
                   5234:    @echo incroot='${INCROOT}'
                   5235: usrlibdir:
                   5236:    @echo usrlibdir='${USRLIBDIR}'
                   5237: libdir:
                   5238:    @echo libdir='${LIBDIR}'
                   5239: _ACEOF
                   5240:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5241:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5242:     for ac_var in incroot usrlibdir libdir; do
                   5243:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5244:     done
                   5245:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5246:     for ac_extension in a so sl dylib la dll; do
                   5247:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5248:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5249:    ac_im_usrlibdir=$ac_im_libdir; break
                   5250:       fi
                   5251:     done
                   5252:     # Screen out bogus values from the imake configuration.  They are
                   5253:     # bogus both because they are the default anyway, and because
                   5254:     # using them would break gcc on systems where it needs fixed includes.
                   5255:     case $ac_im_incroot in
                   5256:    /usr/include) ac_x_includes= ;;
                   5257:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5258:     esac
                   5259:     case $ac_im_usrlibdir in
                   5260:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5261:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5262:     esac
                   5263:   fi
                   5264:   cd ..
                   5265:   rm -f -r conftest.dir
                   5266: fi
                   5267: 
                   5268: # Standard set of common directories for X headers.
                   5269: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5270: ac_x_header_dirs='
                   5271: /usr/X11/include
                   5272: /usr/X11R7/include
                   5273: /usr/X11R6/include
                   5274: /usr/X11R5/include
                   5275: /usr/X11R4/include
1.1       bertrand 5276: 
1.15      bertrand 5277: /usr/include/X11
                   5278: /usr/include/X11R7
                   5279: /usr/include/X11R6
                   5280: /usr/include/X11R5
                   5281: /usr/include/X11R4
1.1       bertrand 5282: 
1.15      bertrand 5283: /usr/local/X11/include
                   5284: /usr/local/X11R7/include
                   5285: /usr/local/X11R6/include
                   5286: /usr/local/X11R5/include
                   5287: /usr/local/X11R4/include
1.1       bertrand 5288: 
1.15      bertrand 5289: /usr/local/include/X11
                   5290: /usr/local/include/X11R7
                   5291: /usr/local/include/X11R6
                   5292: /usr/local/include/X11R5
                   5293: /usr/local/include/X11R4
1.1       bertrand 5294: 
1.15      bertrand 5295: /usr/X386/include
                   5296: /usr/x386/include
                   5297: /usr/XFree86/include/X11
1.1       bertrand 5298: 
1.15      bertrand 5299: /usr/include
                   5300: /usr/local/include
                   5301: /usr/unsupported/include
                   5302: /usr/athena/include
                   5303: /usr/local/x11r5/include
                   5304: /usr/lpp/Xamples/include
1.1       bertrand 5305: 
1.15      bertrand 5306: /usr/openwin/include
                   5307: /usr/openwin/share/include'
1.1       bertrand 5308: 
1.15      bertrand 5309: if test "$ac_x_includes" = no; then
                   5310:   # Guess where to find include files, by looking for Xlib.h.
                   5311:   # First, try using that file with no special directory specified.
                   5312:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5313: /* end confdefs.h.  */
                   5314: #include <X11/Xlib.h>
                   5315: _ACEOF
                   5316: if ac_fn_c_try_cpp "$LINENO"; then :
                   5317:   # We can compile using X headers with no special include directory.
                   5318: ac_x_includes=
1.1       bertrand 5319: else
1.15      bertrand 5320:   for ac_dir in $ac_x_header_dirs; do
                   5321:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5322:     ac_x_includes=$ac_dir
                   5323:     break
                   5324:   fi
                   5325: done
1.1       bertrand 5326: fi
1.36      bertrand 5327: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5328: fi # $ac_x_includes = no
1.1       bertrand 5329: 
1.15      bertrand 5330: if test "$ac_x_libraries" = no; then
                   5331:   # Check for the libraries.
                   5332:   # See if we find them without any special options.
                   5333:   # Don't add to $LIBS permanently.
                   5334:   ac_save_LIBS=$LIBS
                   5335:   LIBS="-lX11 $LIBS"
                   5336:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5337: /* end confdefs.h.  */
1.15      bertrand 5338: #include <X11/Xlib.h>
1.14      bertrand 5339: int
                   5340: main ()
                   5341: {
1.15      bertrand 5342: XrmInitialize ()
1.14      bertrand 5343:   ;
                   5344:   return 0;
                   5345: }
1.1       bertrand 5346: _ACEOF
1.15      bertrand 5347: if ac_fn_c_try_link "$LINENO"; then :
                   5348:   LIBS=$ac_save_LIBS
                   5349: # We can link X programs with no special library path.
                   5350: ac_x_libraries=
1.1       bertrand 5351: else
1.15      bertrand 5352:   LIBS=$ac_save_LIBS
                   5353: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5354: do
                   5355:   # Don't even attempt the hair of trying to link an X program!
                   5356:   for ac_extension in a so sl dylib la dll; do
                   5357:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5358:       ac_x_libraries=$ac_dir
                   5359:       break 2
                   5360:     fi
                   5361:   done
                   5362: done
                   5363: fi
                   5364: rm -f core conftest.err conftest.$ac_objext \
                   5365:     conftest$ac_exeext conftest.$ac_ext
                   5366: fi # $ac_x_libraries = no
1.1       bertrand 5367: 
1.15      bertrand 5368: case $ac_x_includes,$ac_x_libraries in #(
                   5369:   no,* | *,no | *\'*)
                   5370:     # Didn't find X, or a directory has "'" in its name.
                   5371:     ac_cv_have_x="have_x=no";; #(
                   5372:   *)
                   5373:     # Record where we found X for the cache.
                   5374:     ac_cv_have_x="have_x=yes\
                   5375:    ac_x_includes='$ac_x_includes'\
                   5376:    ac_x_libraries='$ac_x_libraries'"
                   5377: esac
1.1       bertrand 5378: fi
1.15      bertrand 5379: ;; #(
                   5380:     *) have_x=yes;;
                   5381:   esac
                   5382:   eval "$ac_cv_have_x"
                   5383: fi # $with_x != no
1.1       bertrand 5384: 
1.15      bertrand 5385: if test "$have_x" != yes; then
                   5386:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5387: $as_echo "$have_x" >&6; }
                   5388:   no_x=yes
1.14      bertrand 5389: else
1.15      bertrand 5390:   # If each of the values was on the command line, it overrides each guess.
                   5391:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5392:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5393:   # Update the cache value to reflect the command line values.
                   5394:   ac_cv_have_x="have_x=yes\
                   5395:    ac_x_includes='$x_includes'\
                   5396:    ac_x_libraries='$x_libraries'"
                   5397:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5398: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5399: fi
1.1       bertrand 5400: 
1.15      bertrand 5401: if test "$no_x" = yes; then
                   5402:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5403: 
1.15      bertrand 5404: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5405: 
1.15      bertrand 5406:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5407: else
1.15      bertrand 5408:   if test -n "$x_includes"; then
                   5409:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5410:   fi
                   5411: 
                   5412:   # It would also be nice to do this for all -L options, not just this one.
                   5413:   if test -n "$x_libraries"; then
                   5414:     X_LIBS="$X_LIBS -L$x_libraries"
                   5415:     # For Solaris; some versions of Sun CC require a space after -R and
                   5416:     # others require no space.  Words are not sufficient . . . .
                   5417:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5418: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5419:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5420:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5421:     ac_c_werror_flag=yes
                   5422:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5423: /* end confdefs.h.  */
1.1       bertrand 5424: 
1.15      bertrand 5425: int
                   5426: main ()
                   5427: {
1.1       bertrand 5428: 
1.15      bertrand 5429:   ;
                   5430:   return 0;
                   5431: }
                   5432: _ACEOF
                   5433: if ac_fn_c_try_link "$LINENO"; then :
                   5434:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5435: $as_echo "no" >&6; }
                   5436:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5437: else
1.15      bertrand 5438:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5439:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5440: /* end confdefs.h.  */
1.1       bertrand 5441: 
1.14      bertrand 5442: int
                   5443: main ()
                   5444: {
1.15      bertrand 5445: 
                   5446:   ;
1.14      bertrand 5447:   return 0;
                   5448: }
                   5449: _ACEOF
1.15      bertrand 5450: if ac_fn_c_try_link "$LINENO"; then :
                   5451:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5452: $as_echo "yes" >&6; }
                   5453:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5454: else
1.15      bertrand 5455:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5456: $as_echo "neither works" >&6; }
1.14      bertrand 5457: fi
1.15      bertrand 5458: rm -f core conftest.err conftest.$ac_objext \
                   5459:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5460: fi
1.15      bertrand 5461: rm -f core conftest.err conftest.$ac_objext \
                   5462:     conftest$ac_exeext conftest.$ac_ext
                   5463:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5464:     LIBS=$ac_xsave_LIBS
                   5465:   fi
1.1       bertrand 5466: 
1.15      bertrand 5467:   # Check for system-dependent libraries X programs must link with.
                   5468:   # Do this before checking for the system-independent R6 libraries
                   5469:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5470: 
1.15      bertrand 5471:   if test "$ISC" = yes; then
                   5472:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5473:   else
                   5474:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5475:     # libraries were built with DECnet support.  And Karl Berry says
                   5476:     # the Alpha needs dnet_stub (dnet does not exist).
                   5477:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5478:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5479: /* end confdefs.h.  */
1.1       bertrand 5480: 
1.15      bertrand 5481: /* Override any GCC internal prototype to avoid an error.
                   5482:    Use char because int might match the return type of a GCC
                   5483:    builtin and then its argument prototype would still apply.  */
                   5484: #ifdef __cplusplus
                   5485: extern "C"
                   5486: #endif
                   5487: char XOpenDisplay ();
                   5488: int
                   5489: main ()
                   5490: {
                   5491: return XOpenDisplay ();
                   5492:   ;
                   5493:   return 0;
                   5494: }
1.1       bertrand 5495: _ACEOF
1.15      bertrand 5496: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5497: 
                   5498: else
1.15      bertrand 5499:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5500: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.57      bertrand 5501: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15      bertrand 5502:   $as_echo_n "(cached) " >&6
                   5503: else
                   5504:   ac_check_lib_save_LIBS=$LIBS
                   5505: LIBS="-ldnet  $LIBS"
                   5506: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5507: /* end confdefs.h.  */
1.14      bertrand 5508: 
1.15      bertrand 5509: /* Override any GCC internal prototype to avoid an error.
                   5510:    Use char because int might match the return type of a GCC
                   5511:    builtin and then its argument prototype would still apply.  */
                   5512: #ifdef __cplusplus
                   5513: extern "C"
                   5514: #endif
                   5515: char dnet_ntoa ();
                   5516: int
                   5517: main ()
                   5518: {
                   5519: return dnet_ntoa ();
                   5520:   ;
                   5521:   return 0;
                   5522: }
1.1       bertrand 5523: _ACEOF
1.15      bertrand 5524: if ac_fn_c_try_link "$LINENO"; then :
                   5525:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5526: else
1.15      bertrand 5527:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5528: fi
1.15      bertrand 5529: rm -f core conftest.err conftest.$ac_objext \
                   5530:     conftest$ac_exeext conftest.$ac_ext
                   5531: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5532: fi
1.15      bertrand 5533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5534: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.57      bertrand 5535: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15      bertrand 5536:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5537: fi
                   5538: 
1.15      bertrand 5539:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5540:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5541: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.57      bertrand 5542: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15      bertrand 5543:   $as_echo_n "(cached) " >&6
1.14      bertrand 5544: else
1.15      bertrand 5545:   ac_check_lib_save_LIBS=$LIBS
                   5546: LIBS="-ldnet_stub  $LIBS"
                   5547: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5548: /* end confdefs.h.  */
1.15      bertrand 5549: 
                   5550: /* Override any GCC internal prototype to avoid an error.
                   5551:    Use char because int might match the return type of a GCC
                   5552:    builtin and then its argument prototype would still apply.  */
                   5553: #ifdef __cplusplus
                   5554: extern "C"
                   5555: #endif
                   5556: char dnet_ntoa ();
1.1       bertrand 5557: int
                   5558: main ()
                   5559: {
1.15      bertrand 5560: return dnet_ntoa ();
1.1       bertrand 5561:   ;
                   5562:   return 0;
                   5563: }
                   5564: _ACEOF
1.15      bertrand 5565: if ac_fn_c_try_link "$LINENO"; then :
                   5566:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5567: else
1.15      bertrand 5568:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5569: fi
                   5570: rm -f core conftest.err conftest.$ac_objext \
                   5571:     conftest$ac_exeext conftest.$ac_ext
                   5572: LIBS=$ac_check_lib_save_LIBS
                   5573: fi
                   5574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5575: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.57      bertrand 5576: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15      bertrand 5577:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5578: fi
1.14      bertrand 5579: 
1.15      bertrand 5580:     fi
1.1       bertrand 5581: fi
1.15      bertrand 5582: rm -f core conftest.err conftest.$ac_objext \
                   5583:     conftest$ac_exeext conftest.$ac_ext
                   5584:     LIBS="$ac_xsave_LIBS"
                   5585: 
                   5586:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5587:     # to get the SysV transport functions.
                   5588:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5589:     # needs -lnsl.
                   5590:     # The nsl library prevents programs from opening the X display
                   5591:     # on Irix 5.2, according to T.E. Dickey.
                   5592:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5593:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5594:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.57      bertrand 5595: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1       bertrand 5596: 
                   5597: fi
                   5598: 
1.15      bertrand 5599:     if test $ac_cv_func_gethostbyname = no; then
                   5600:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5601: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.57      bertrand 5602: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15      bertrand 5603:   $as_echo_n "(cached) " >&6
1.1       bertrand 5604: else
1.15      bertrand 5605:   ac_check_lib_save_LIBS=$LIBS
                   5606: LIBS="-lnsl  $LIBS"
                   5607: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5608: /* end confdefs.h.  */
1.15      bertrand 5609: 
                   5610: /* Override any GCC internal prototype to avoid an error.
                   5611:    Use char because int might match the return type of a GCC
                   5612:    builtin and then its argument prototype would still apply.  */
                   5613: #ifdef __cplusplus
                   5614: extern "C"
                   5615: #endif
                   5616: char gethostbyname ();
1.1       bertrand 5617: int
                   5618: main ()
                   5619: {
1.15      bertrand 5620: return gethostbyname ();
1.1       bertrand 5621:   ;
                   5622:   return 0;
                   5623: }
                   5624: _ACEOF
1.15      bertrand 5625: if ac_fn_c_try_link "$LINENO"; then :
                   5626:   ac_cv_lib_nsl_gethostbyname=yes
                   5627: else
                   5628:   ac_cv_lib_nsl_gethostbyname=no
                   5629: fi
                   5630: rm -f core conftest.err conftest.$ac_objext \
                   5631:     conftest$ac_exeext conftest.$ac_ext
                   5632: LIBS=$ac_check_lib_save_LIBS
                   5633: fi
                   5634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5635: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.57      bertrand 5636: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15      bertrand 5637:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5638: fi
                   5639: 
                   5640:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5641:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5642: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.57      bertrand 5643: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15      bertrand 5644:   $as_echo_n "(cached) " >&6
                   5645: else
                   5646:   ac_check_lib_save_LIBS=$LIBS
                   5647: LIBS="-lbsd  $LIBS"
                   5648: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5649: /* end confdefs.h.  */
1.15      bertrand 5650: 
                   5651: /* Override any GCC internal prototype to avoid an error.
                   5652:    Use char because int might match the return type of a GCC
                   5653:    builtin and then its argument prototype would still apply.  */
                   5654: #ifdef __cplusplus
                   5655: extern "C"
                   5656: #endif
                   5657: char gethostbyname ();
1.1       bertrand 5658: int
                   5659: main ()
                   5660: {
1.15      bertrand 5661: return gethostbyname ();
1.1       bertrand 5662:   ;
                   5663:   return 0;
                   5664: }
                   5665: _ACEOF
1.15      bertrand 5666: if ac_fn_c_try_link "$LINENO"; then :
                   5667:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5668: else
1.15      bertrand 5669:   ac_cv_lib_bsd_gethostbyname=no
                   5670: fi
                   5671: rm -f core conftest.err conftest.$ac_objext \
                   5672:     conftest$ac_exeext conftest.$ac_ext
                   5673: LIBS=$ac_check_lib_save_LIBS
                   5674: fi
                   5675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5676: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.57      bertrand 5677: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15      bertrand 5678:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5679: fi
                   5680: 
                   5681:       fi
                   5682:     fi
                   5683: 
                   5684:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5685:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5686:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5687:     # on later versions), says Simon Leinen: it contains gethostby*
                   5688:     # variants that don't use the name server (or something).  -lsocket
                   5689:     # must be given before -lnsl if both are needed.  We assume that
                   5690:     # if connect needs -lnsl, so does gethostbyname.
                   5691:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.57      bertrand 5692: if test "x$ac_cv_func_connect" = xyes; then :
1.14      bertrand 5693: 
1.1       bertrand 5694: fi
                   5695: 
1.15      bertrand 5696:     if test $ac_cv_func_connect = no; then
                   5697:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5698: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.57      bertrand 5699: if ${ac_cv_lib_socket_connect+:} false; then :
1.15      bertrand 5700:   $as_echo_n "(cached) " >&6
1.14      bertrand 5701: else
1.15      bertrand 5702:   ac_check_lib_save_LIBS=$LIBS
                   5703: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5704: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5705: /* end confdefs.h.  */
1.1       bertrand 5706: 
1.15      bertrand 5707: /* Override any GCC internal prototype to avoid an error.
                   5708:    Use char because int might match the return type of a GCC
                   5709:    builtin and then its argument prototype would still apply.  */
                   5710: #ifdef __cplusplus
                   5711: extern "C"
                   5712: #endif
                   5713: char connect ();
1.14      bertrand 5714: int
                   5715: main ()
                   5716: {
1.15      bertrand 5717: return connect ();
1.14      bertrand 5718:   ;
                   5719:   return 0;
                   5720: }
                   5721: _ACEOF
1.15      bertrand 5722: if ac_fn_c_try_link "$LINENO"; then :
                   5723:   ac_cv_lib_socket_connect=yes
                   5724: else
                   5725:   ac_cv_lib_socket_connect=no
                   5726: fi
                   5727: rm -f core conftest.err conftest.$ac_objext \
                   5728:     conftest$ac_exeext conftest.$ac_ext
                   5729: LIBS=$ac_check_lib_save_LIBS
                   5730: fi
                   5731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5732: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.57      bertrand 5733: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15      bertrand 5734:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5735: fi
                   5736: 
                   5737:     fi
                   5738: 
                   5739:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5740:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.57      bertrand 5741: if test "x$ac_cv_func_remove" = xyes; then :
1.15      bertrand 5742: 
                   5743: fi
                   5744: 
                   5745:     if test $ac_cv_func_remove = no; then
                   5746:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5747: $as_echo_n "checking for remove in -lposix... " >&6; }
1.57      bertrand 5748: if ${ac_cv_lib_posix_remove+:} false; then :
1.15      bertrand 5749:   $as_echo_n "(cached) " >&6
                   5750: else
                   5751:   ac_check_lib_save_LIBS=$LIBS
                   5752: LIBS="-lposix  $LIBS"
                   5753: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5754: /* end confdefs.h.  */
1.15      bertrand 5755: 
                   5756: /* Override any GCC internal prototype to avoid an error.
                   5757:    Use char because int might match the return type of a GCC
                   5758:    builtin and then its argument prototype would still apply.  */
                   5759: #ifdef __cplusplus
                   5760: extern "C"
                   5761: #endif
                   5762: char remove ();
1.1       bertrand 5763: int
                   5764: main ()
                   5765: {
1.15      bertrand 5766: return remove ();
1.1       bertrand 5767:   ;
                   5768:   return 0;
                   5769: }
                   5770: _ACEOF
1.15      bertrand 5771: if ac_fn_c_try_link "$LINENO"; then :
                   5772:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5773: else
1.15      bertrand 5774:   ac_cv_lib_posix_remove=no
                   5775: fi
                   5776: rm -f core conftest.err conftest.$ac_objext \
                   5777:     conftest$ac_exeext conftest.$ac_ext
                   5778: LIBS=$ac_check_lib_save_LIBS
                   5779: fi
                   5780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5781: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.57      bertrand 5782: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15      bertrand 5783:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5784: fi
1.1       bertrand 5785: 
1.15      bertrand 5786:     fi
1.14      bertrand 5787: 
1.15      bertrand 5788:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5789:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.57      bertrand 5790: if test "x$ac_cv_func_shmat" = xyes; then :
1.14      bertrand 5791: 
                   5792: fi
                   5793: 
1.15      bertrand 5794:     if test $ac_cv_func_shmat = no; then
                   5795:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5796: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.57      bertrand 5797: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15      bertrand 5798:   $as_echo_n "(cached) " >&6
                   5799: else
                   5800:   ac_check_lib_save_LIBS=$LIBS
                   5801: LIBS="-lipc  $LIBS"
                   5802: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5803: /* end confdefs.h.  */
1.15      bertrand 5804: 
                   5805: /* Override any GCC internal prototype to avoid an error.
                   5806:    Use char because int might match the return type of a GCC
                   5807:    builtin and then its argument prototype would still apply.  */
                   5808: #ifdef __cplusplus
                   5809: extern "C"
                   5810: #endif
                   5811: char shmat ();
1.1       bertrand 5812: int
                   5813: main ()
                   5814: {
1.15      bertrand 5815: return shmat ();
1.1       bertrand 5816:   ;
                   5817:   return 0;
                   5818: }
                   5819: _ACEOF
1.15      bertrand 5820: if ac_fn_c_try_link "$LINENO"; then :
                   5821:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5822: else
1.15      bertrand 5823:   ac_cv_lib_ipc_shmat=no
                   5824: fi
                   5825: rm -f core conftest.err conftest.$ac_objext \
                   5826:     conftest$ac_exeext conftest.$ac_ext
                   5827: LIBS=$ac_check_lib_save_LIBS
                   5828: fi
                   5829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5830: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.57      bertrand 5831: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15      bertrand 5832:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5833: fi
1.14      bertrand 5834: 
1.15      bertrand 5835:     fi
                   5836:   fi
1.1       bertrand 5837: 
1.15      bertrand 5838:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5839:   ac_save_LDFLAGS=$LDFLAGS
                   5840:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5841:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5842:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5843:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5844:   # These have to be linked with before -lX11, unlike the other
                   5845:   # libraries we check for below, so use a different variable.
                   5846:   # John Interrante, Karl Berry
                   5847:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5848: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.57      bertrand 5849: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15      bertrand 5850:   $as_echo_n "(cached) " >&6
1.1       bertrand 5851: else
1.15      bertrand 5852:   ac_check_lib_save_LIBS=$LIBS
                   5853: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5854: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5855: /* end confdefs.h.  */
1.15      bertrand 5856: 
                   5857: /* Override any GCC internal prototype to avoid an error.
                   5858:    Use char because int might match the return type of a GCC
                   5859:    builtin and then its argument prototype would still apply.  */
                   5860: #ifdef __cplusplus
                   5861: extern "C"
                   5862: #endif
                   5863: char IceConnectionNumber ();
1.1       bertrand 5864: int
                   5865: main ()
                   5866: {
1.15      bertrand 5867: return IceConnectionNumber ();
1.1       bertrand 5868:   ;
                   5869:   return 0;
                   5870: }
                   5871: _ACEOF
1.15      bertrand 5872: if ac_fn_c_try_link "$LINENO"; then :
                   5873:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5874: else
1.15      bertrand 5875:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5876: fi
                   5877: rm -f core conftest.err conftest.$ac_objext \
                   5878:     conftest$ac_exeext conftest.$ac_ext
                   5879: LIBS=$ac_check_lib_save_LIBS
                   5880: fi
                   5881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5882: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.57      bertrand 5883: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15      bertrand 5884:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5885: fi
                   5886: 
                   5887:   LDFLAGS=$ac_save_LDFLAGS
                   5888: 
                   5889: fi
                   5890: 
1.14      bertrand 5891: 
1.15      bertrand 5892: if test "$ac_x_includes" != "no"; then
                   5893:    if test x"$ac_x_includes" != x; then
                   5894:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5895:        includeX="-I$ac_x_includes"
                   5896:    fi
1.1       bertrand 5897: fi
1.15      bertrand 5898: if test "$ac_x_libraries" != "no"; then
                   5899:    if test x"$ac_x_libraries" != x; then
                   5900:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5901:    fi
1.1       bertrand 5902: fi
1.15      bertrand 5903: 
1.64      bertrand 5904: 
1.69      bertrand 5905: # Check whether --with-32bits-abi was given.
                   5906: if test "${with_32bits_abi+set}" = set; then :
                   5907:   withval=$with_32bits_abi;
1.64      bertrand 5908: if test "$with-32bits-abi" = "no"; then
1.66      bertrand 5909:    ABI=
1.64      bertrand 5910: else
1.65      bertrand 5911:    ABI=-m32
                   5912: fi
1.64      bertrand 5913: else
                   5914: 
1.68      bertrand 5915:    ABI=
1.64      bertrand 5916: 
                   5917: 
                   5918: fi
                   5919: 
                   5920: 
1.68      bertrand 5921: if test x$ABI = x; then
1.66      bertrand 5922: 
1.69      bertrand 5923: # Check whether --with-64bits-abi was given.
                   5924: if test "${with_64bits_abi+set}" = set; then :
                   5925:   withval=$with_64bits_abi;
1.67      bertrand 5926: if test "$with-64bits-abi" = "no"; then
                   5927:    ABI=
                   5928: else
                   5929:    ABI=-m64
                   5930: fi
                   5931: else
                   5932: 
1.68      bertrand 5933:    ABI=
1.67      bertrand 5934: 
                   5935: 
                   5936: fi
                   5937: 
1.68      bertrand 5938: fi
1.67      bertrand 5939: 
1.69      bertrand 5940: LDFLAGS="$LDFLAGS $ABI"
                   5941: 
1.67      bertrand 5942: 
                   5943: # Check whether --with-rplcas was given.
                   5944: if test "${with_rplcas+set}" = set; then :
                   5945:   withval=$with_rplcas;
                   5946: if test "$with-rplcas" = "no"; then
                   5947:    RPLCAS=-URPLCAS
                   5948:    LIBRPLCAS=
                   5949: else
                   5950:    RPLCAS=-DRPLCAS
                   5951:    LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
                   5952: fi
                   5953: else
                   5954: 
                   5955:    RPLCAS=-URPLCAS
                   5956:    LIBRPLCAS=
                   5957: 
                   5958: 
                   5959: fi
                   5960: 
                   5961: 
                   5962: 
                   5963: 
                   5964: 
1.65      bertrand 5965: 
1.15      bertrand 5966: # Check whether --enable-optimization was given.
                   5967: if test "${enable_optimization+set}" = set; then :
                   5968:   enableval=$enable_optimization;
                   5969: if test "$enableval" = "no"; then
1.69      bertrand 5970:    CFLAGS=$ABI
                   5971:    FFLAGS=$ABI
                   5972:    CXXFLAGS=$ABI
                   5973:    FCFLAGS=$ABI
                   5974: else
                   5975:    CFLAGS="$CFLAGS $ABI $enable_optimization"
                   5976:    FFLAGS="$FFLAGS $ABI $enable_optimization"
                   5977:    CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
                   5978:    FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1       bertrand 5979: fi
1.15      bertrand 5980: else
1.14      bertrand 5981: 
1.69      bertrand 5982:    CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
                   5983:    FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
                   5984:    CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
                   5985:    FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1       bertrand 5986: 
                   5987: 
1.15      bertrand 5988: fi
1.1       bertrand 5989: 
                   5990: 
1.36      bertrand 5991: # Check whether --enable-sysv-semaphores was given.
                   5992: if test "${enable_sysv_semaphores+set}" = set; then :
                   5993:   enableval=$enable_sysv_semaphores;
                   5994: if test "$enableval" = "no"; then
                   5995:    IPCS_SYSV=no
                   5996: else
                   5997:    IPCS_SYSV=yes
                   5998: fi
                   5999: else
                   6000:   IPCS_SYSV=no
                   6001: fi
                   6002: 
                   6003: 
1.30      bertrand 6004: # Check whether --enable-full-static was given.
                   6005: if test "${enable_full_static+set}" = set; then :
                   6006:   enableval=$enable_full_static;
                   6007: if test "$enableval" = "no"; then
                   6008:    STATIC=no
                   6009: else
                   6010:    STATIC=yes
                   6011: fi
                   6012: else
                   6013:   STATIC=no
                   6014: fi
                   6015: 
                   6016: 
1.15      bertrand 6017: # Check whether --enable-final-encoding was given.
                   6018: if test "${enable_final_encoding+set}" = set; then :
                   6019:   enableval=$enable_final_encoding;
                   6020: if test "$enableval" = "no"; then
                   6021:    FINAL_ENCODING="\$(shell locale charmap | \
                   6022:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 6023:    FORCED_FINAL_ENCODING=0
1.1       bertrand 6024: else
1.15      bertrand 6025:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 6026:    FORCED_FINAL_ENCODING=1
1.15      bertrand 6027: fi
1.1       bertrand 6028: else
1.35      bertrand 6029: 
                   6030: FORCED_FINAL_ENCODING=0
                   6031: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 6032:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   6033: fi
                   6034: 
1.14      bertrand 6035: 
1.15      bertrand 6036: # Check whether --enable-tex was given.
                   6037: if test "${enable_tex+set}" = set; then :
                   6038:   enableval=$enable_tex;
                   6039: if test "$enableval" = "no"; then
                   6040:    TEX_SUPPORT=no
                   6041: else
                   6042:    TEX_SUPPORT=yes
1.1       bertrand 6043: fi
1.15      bertrand 6044: else
                   6045:   TEX_SUPPORT=guessed
                   6046: fi
                   6047: 
1.14      bertrand 6048: 
1.15      bertrand 6049: # Check whether --enable-vim was given.
                   6050: if test "${enable_vim+set}" = set; then :
                   6051:   enableval=$enable_vim;
                   6052: if test "$enableval" = "no"; then
                   6053:    VIM_SUPPORT=no
                   6054: else
                   6055:    VIM_SUPPORT=yes
                   6056: fi
                   6057: else
                   6058:   VIM_SUPPORT=guessed
1.1       bertrand 6059: fi
                   6060: 
1.15      bertrand 6061: 
                   6062: # Check whether --enable-embedded-gnuplot was given.
                   6063: if test "${enable_embedded_gnuplot+set}" = set; then :
                   6064:   enableval=$enable_embedded_gnuplot;
                   6065: if test "$enableval" = "no"; then
                   6066:    MYGNUPLOT=no
                   6067: else
                   6068:    MYGNUPLOT=yes
                   6069: fi
1.1       bertrand 6070: else
                   6071: 
1.15      bertrand 6072: MYGNUPLOT=yes
                   6073: fi
                   6074: 
1.14      bertrand 6075: 
1.15      bertrand 6076: # Check whether --enable-gnuplot was given.
                   6077: if test "${enable_gnuplot+set}" = set; then :
                   6078:   enableval=$enable_gnuplot;
                   6079: if test "$enableval" = "no"; then
                   6080:    GNUPLOT_SUPPORT=no
                   6081:    MYGNUPLOT=no
                   6082:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6083: else
                   6084:    GNUPLOT_SUPPORT=yes
                   6085:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6086: fi
1.1       bertrand 6087: else
                   6088: 
1.15      bertrand 6089: if test "$MYGNUPLOT" = "yes"; then
                   6090:    GNUPLOT_SUPPORT=yes
                   6091:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6092: else
                   6093:    GNUPLOT_SUPPORT=guessed
                   6094:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6095: fi
1.1       bertrand 6096: fi
                   6097: 
1.15      bertrand 6098: 
                   6099: # Check whether --enable-motif was given.
                   6100: if test "${enable_motif+set}" = set; then :
                   6101:   enableval=$enable_motif;
                   6102: if test "$enableval" = "no"; then
                   6103:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6104: else
                   6105:    CFLAGS_ORIG=$CFLAGS
                   6106:    LIBS_ORIG=$LIBS
                   6107:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6108:    LIBS="$LIB $X_LIBS"
                   6109:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6110: $as_echo_n "checking for main in -lXm... " >&6; }
1.57      bertrand 6111: if ${ac_cv_lib_Xm_main+:} false; then :
1.15      bertrand 6112:   $as_echo_n "(cached) " >&6
1.1       bertrand 6113: else
1.15      bertrand 6114:   ac_check_lib_save_LIBS=$LIBS
                   6115: LIBS="-lXm  $LIBS"
                   6116: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6117: /* end confdefs.h.  */
1.14      bertrand 6118: 
                   6119: 
1.1       bertrand 6120: int
                   6121: main ()
                   6122: {
1.15      bertrand 6123: return main ();
1.1       bertrand 6124:   ;
                   6125:   return 0;
                   6126: }
                   6127: _ACEOF
1.15      bertrand 6128: if ac_fn_c_try_link "$LINENO"; then :
                   6129:   ac_cv_lib_Xm_main=yes
                   6130: else
                   6131:   ac_cv_lib_Xm_main=no
                   6132: fi
                   6133: rm -f core conftest.err conftest.$ac_objext \
                   6134:     conftest$ac_exeext conftest.$ac_ext
                   6135: LIBS=$ac_check_lib_save_LIBS
                   6136: fi
                   6137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6138: $as_echo "$ac_cv_lib_Xm_main" >&6; }
1.57      bertrand 6139: if test "x$ac_cv_lib_Xm_main" = xyes; then :
1.15      bertrand 6140:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6141: else
1.15      bertrand 6142:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6143: fi
1.14      bertrand 6144: 
1.15      bertrand 6145:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6146:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
                   6147: Motif flag is disabled.
                   6148: " >&5
                   6149: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
                   6150: Motif flag is disabled.
                   6151: " >&2;}
                   6152:    fi
                   6153:    LIBS=$LIBS_ORIG
                   6154:    CFLAGS=$CFLAGS_ORIG
                   6155: fi
                   6156: else
                   6157:   MOTIF_SUPPORT=guessed
1.1       bertrand 6158: fi
                   6159: 
1.15      bertrand 6160: 
                   6161: # Check whether --enable-experimental was given.
                   6162: if test "${enable_experimental+set}" = set; then :
                   6163:   enableval=$enable_experimental;
                   6164: if test "$enableval" = "no"; then
                   6165:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6166: else
                   6167:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6168: fi
1.14      bertrand 6169: else
1.15      bertrand 6170:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6171: fi
                   6172: 
1.1       bertrand 6173: 
1.15      bertrand 6174: # Check whether --enable-debug was given.
                   6175: if test "${enable_debug+set}" = set; then :
                   6176:   enableval=$enable_debug;
                   6177: if test "$enableval" = "no"; then
1.24      bertrand 6178:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6179: else
1.24      bertrand 6180:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6181: fi
                   6182: else
1.24      bertrand 6183:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6184: fi
1.1       bertrand 6185: 
1.15      bertrand 6186: 
                   6187: # Check whether --enable-profile was given.
                   6188: if test "${enable_profile+set}" = set; then :
                   6189:   enableval=$enable_profile;
                   6190: if test "$enableval" = "no"; then
                   6191:    PROFILAGE=""
                   6192: else
                   6193:    PROFILAGE="-pg"
                   6194: fi
                   6195: else
                   6196:   PROFILAGE=""
1.1       bertrand 6197: fi
                   6198: 
1.14      bertrand 6199: 
                   6200: 
1.15      bertrand 6201: 
                   6202: if test ! -d tools; then
                   6203:    mkdir tools
                   6204: fi
                   6205: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6206:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6207:            (cd "$srcdir/tools" && tar -xf -)
1.51      bertrand 6208:    (cd "$srcdir/tools/"$NCURSES && \
                   6209:            for i in ../$NCURSES*.patch.gz;
                   6210:            do gunzip -c $i | patch -p1;
                   6211:            done);
1.15      bertrand 6212: fi
                   6213: if test ! -d "$srcdir"/tools/$READLINE; then
                   6214:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6215:            (cd "$srcdir/tools" && tar -xf -)
                   6216: fi
                   6217: if test ! -d "$srcdir"/tools/$UNITS; then
                   6218:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6219:            (cd "$srcdir/tools" && tar -xf -)
                   6220: fi
                   6221: if test ! -d "$srcdir"/tools/$GSL; then
                   6222:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6223:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6224:    if test $(uname) = "OS/2"; then
                   6225:        (cd "$srcdir"/tools/$GSL; \
                   6226:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6227:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6228:                \mv -f $TMP ltmain.sh)
                   6229:    fi
1.15      bertrand 6230: fi
                   6231: if test ! -d "$srcdir"/tools/$GPP; then
                   6232:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6233:            (cd "$srcdir/tools" && tar -xf -)
                   6234: fi
                   6235: if test ! -d "$srcdir"/tools/$FILE; then
                   6236:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6237:            (cd "$srcdir/tools" && tar -xf - )
                   6238:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6239: fi
                   6240: if test ! -d "$srcdir"/tools/$ICONV; then
                   6241:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6242:            (cd "$srcdir/tools" && tar -xf -)
                   6243: fi
                   6244: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6245:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6246:            (cd "$srcdir/tools" && tar -xf -)
                   6247: fi
1.76      bertrand 6248: if test ! -d "$srcdir"/tools/$SIGSEGV; then
                   6249:    gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
                   6250:            (cd "$srcdir/tools" && tar -xf -)
                   6251: fi
1.15      bertrand 6252: if test ! -d tools/$OPENSSL; then
                   6253:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6254:            (cd tools && tar -xf -)
1.1       bertrand 6255: fi
1.55      bertrand 6256: if test ! -d rplcas; then
                   6257:    mkdir rplcas
                   6258: fi
                   6259: if test ! -d "$srcdir"/rplcas/$GMP; then
                   6260:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                   6261:            (cd "$srcdir/rplcas" && tar -xf -)
                   6262: fi
                   6263: if test ! -d "$srcdir"/rplcas/$MPFR; then
                   6264:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                   6265:            (cd "$srcdir/rplcas" && tar -xf -)
                   6266: fi
1.56      bertrand 6267: if test ! -d rplcas/$NTL; then
                   6268:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
                   6269:            (cd rplcas && tar -xf -)
                   6270: fi
                   6271: if test ! -d rplcas/$COCOA; then
                   6272:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
                   6273:            (cd rplcas && tar -xf -)
                   6274: fi
                   6275: if test ! -d rplcas/$PARI; then
                   6276:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
                   6277:            (cd rplcas && tar -xf -)
                   6278: fi
                   6279: if test ! -d "$srcdir"/rplcas/$GIAC; then
                   6280:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
                   6281:            (cd "$srcdir/rplcas" && tar -xf -)
                   6282: fi
1.1       bertrand 6283: 
                   6284: 
                   6285: 
1.15      bertrand 6286: # Check whether --enable-final-run-path was given.
                   6287: if test "${enable_final_run_path+set}" = set; then :
                   6288:   enableval=$enable_final_run_path;
                   6289:    if test "x$enable_final_run_path" = "x"; then
                   6290:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6291: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6292:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6293:    else
                   6294:        RUNPATH="$enable_final_run_path"
                   6295:    fi
1.1       bertrand 6296: 
                   6297: else
1.15      bertrand 6298:   RUNPATH="\${prefix}"
1.1       bertrand 6299: 
                   6300: fi
                   6301: 
1.15      bertrand 6302: 
                   6303: 
                   6304: 
                   6305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6306: $as_echo_n "checking whether ln -s works... " >&6; }
                   6307: LN_S=$as_ln_s
                   6308: if test "$LN_S" = "ln -s"; then
                   6309:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6310: $as_echo "yes" >&6; }
                   6311: else
                   6312:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6313: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6314: fi
                   6315: 
1.15      bertrand 6316: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6317: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6318: set x ${MAKE-make}
                   6319: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 6320: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 6321:   $as_echo_n "(cached) " >&6
1.1       bertrand 6322: else
1.15      bertrand 6323:   cat >conftest.make <<\_ACEOF
                   6324: SHELL = /bin/sh
                   6325: all:
                   6326:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6327: _ACEOF
1.36      bertrand 6328: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6329: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6330:   *@@@%%%=?*=@@@%%%*)
                   6331:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6332:   *)
                   6333:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6334: esac
1.15      bertrand 6335: rm -f conftest.make
                   6336: fi
                   6337: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6338:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6339: $as_echo "yes" >&6; }
                   6340:   SET_MAKE=
                   6341: else
                   6342:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6343: $as_echo "no" >&6; }
                   6344:   SET_MAKE="MAKE=${MAKE-make}"
                   6345: fi
1.1       bertrand 6346: 
1.15      bertrand 6347: if test -n "$ac_tool_prefix"; then
                   6348:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6349: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6351: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6352: if ${ac_cv_prog_RANLIB+:} false; then :
1.15      bertrand 6353:   $as_echo_n "(cached) " >&6
                   6354: else
                   6355:   if test -n "$RANLIB"; then
                   6356:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6357: else
1.15      bertrand 6358: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6359: for as_dir in $PATH
                   6360: do
                   6361:   IFS=$as_save_IFS
                   6362:   test -z "$as_dir" && as_dir=.
                   6363:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6364:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6365:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6366:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6367:     break 2
                   6368:   fi
                   6369: done
                   6370:   done
                   6371: IFS=$as_save_IFS
1.1       bertrand 6372: 
                   6373: fi
1.15      bertrand 6374: fi
                   6375: RANLIB=$ac_cv_prog_RANLIB
                   6376: if test -n "$RANLIB"; then
                   6377:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6378: $as_echo "$RANLIB" >&6; }
                   6379: else
                   6380:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6381: $as_echo "no" >&6; }
                   6382: fi
                   6383: 
1.1       bertrand 6384: 
1.15      bertrand 6385: fi
                   6386: if test -z "$ac_cv_prog_RANLIB"; then
                   6387:   ac_ct_RANLIB=$RANLIB
                   6388:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6389: set dummy ranlib; ac_word=$2
                   6390: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6391: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6392: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15      bertrand 6393:   $as_echo_n "(cached) " >&6
                   6394: else
                   6395:   if test -n "$ac_ct_RANLIB"; then
                   6396:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6397: else
                   6398: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6399: for as_dir in $PATH
                   6400: do
                   6401:   IFS=$as_save_IFS
                   6402:   test -z "$as_dir" && as_dir=.
                   6403:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6404:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6405:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6406:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6407:     break 2
                   6408:   fi
                   6409: done
1.14      bertrand 6410:   done
1.15      bertrand 6411: IFS=$as_save_IFS
                   6412: 
                   6413: fi
                   6414: fi
                   6415: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6416: if test -n "$ac_ct_RANLIB"; then
                   6417:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6418: $as_echo "$ac_ct_RANLIB" >&6; }
                   6419: else
                   6420:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6421: $as_echo "no" >&6; }
                   6422: fi
                   6423: 
                   6424:   if test "x$ac_ct_RANLIB" = x; then
                   6425:     RANLIB=":"
                   6426:   else
                   6427:     case $cross_compiling:$ac_tool_warned in
                   6428: yes:)
                   6429: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6430: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6431: ac_tool_warned=yes ;;
                   6432: esac
                   6433:     RANLIB=$ac_ct_RANLIB
                   6434:   fi
1.14      bertrand 6435: else
1.15      bertrand 6436:   RANLIB="$ac_cv_prog_RANLIB"
                   6437: fi
1.1       bertrand 6438: 
                   6439: 
1.15      bertrand 6440: # Extract the first word of "nawk", so it can be a program name with args.
                   6441: set dummy nawk; ac_word=$2
                   6442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6443: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6444: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 6445:   $as_echo_n "(cached) " >&6
                   6446: else
                   6447:   if test -n "$AWK"; then
                   6448:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6449: else
                   6450: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6451: for as_dir in $PATH
                   6452: do
                   6453:   IFS=$as_save_IFS
                   6454:   test -z "$as_dir" && as_dir=.
                   6455:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6456:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6457:     ac_cv_prog_AWK="yes"
                   6458:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6459:     break 2
                   6460:   fi
                   6461: done
                   6462:   done
                   6463: IFS=$as_save_IFS
1.1       bertrand 6464: 
1.15      bertrand 6465:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6466: fi
                   6467: fi
                   6468: AWK=$ac_cv_prog_AWK
                   6469: if test -n "$AWK"; then
                   6470:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6471: $as_echo "$AWK" >&6; }
1.1       bertrand 6472: else
1.15      bertrand 6473:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6474: $as_echo "no" >&6; }
                   6475: fi
                   6476: 
1.1       bertrand 6477: 
1.15      bertrand 6478: if test "$AWK" = no; then
1.39      bertrand 6479:    # Extract the first word of "gawk", so it can be a program name with args.
                   6480: set dummy gawk; ac_word=$2
                   6481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6482: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6483: if ${ac_cv_prog_AWK+:} false; then :
1.39      bertrand 6484:   $as_echo_n "(cached) " >&6
                   6485: else
                   6486:   if test -n "$AWK"; then
                   6487:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6488: else
                   6489: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6490: for as_dir in $PATH
                   6491: do
                   6492:   IFS=$as_save_IFS
                   6493:   test -z "$as_dir" && as_dir=.
                   6494:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6495:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6496:     ac_cv_prog_AWK="yes"
                   6497:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6498:     break 2
                   6499:   fi
                   6500: done
                   6501:   done
                   6502: IFS=$as_save_IFS
                   6503: 
                   6504:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6505: fi
                   6506: fi
                   6507: AWK=$ac_cv_prog_AWK
                   6508: if test -n "$AWK"; then
                   6509:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6510: $as_echo "$AWK" >&6; }
                   6511: else
                   6512:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6513: $as_echo "no" >&6; }
                   6514: fi
                   6515: 
                   6516: 
                   6517:    if test "$AWK" = no; then
                   6518:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6519:    fi
1.1       bertrand 6520: fi
                   6521: 
1.15      bertrand 6522: # Extract the first word of "sed", so it can be a program name with args.
                   6523: set dummy sed; ac_word=$2
                   6524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6525: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6526: if ${ac_cv_prog_SED+:} false; then :
1.15      bertrand 6527:   $as_echo_n "(cached) " >&6
                   6528: else
                   6529:   if test -n "$SED"; then
                   6530:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6531: else
                   6532: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6533: for as_dir in $PATH
                   6534: do
                   6535:   IFS=$as_save_IFS
                   6536:   test -z "$as_dir" && as_dir=.
                   6537:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6538:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6539:     ac_cv_prog_SED="yes"
                   6540:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6541:     break 2
                   6542:   fi
                   6543: done
1.14      bertrand 6544:   done
1.15      bertrand 6545: IFS=$as_save_IFS
1.1       bertrand 6546: 
1.15      bertrand 6547:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6548: fi
1.15      bertrand 6549: fi
                   6550: SED=$ac_cv_prog_SED
                   6551: if test -n "$SED"; then
                   6552:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6553: $as_echo "$SED" >&6; }
                   6554: else
                   6555:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6556: $as_echo "no" >&6; }
1.14      bertrand 6557: fi
1.1       bertrand 6558: 
                   6559: 
1.15      bertrand 6560: if test "$SED" = no; then
1.36      bertrand 6561:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6562: fi
1.14      bertrand 6563: 
1.15      bertrand 6564: if test "$TEX_SUPPORT" = guessed; then
                   6565:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6566: 
1.15      bertrand 6567:    # Extract the first word of "tex", so it can be a program name with args.
                   6568: set dummy tex; ac_word=$2
                   6569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6570: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6571: if ${ac_cv_prog_TEX+:} false; then :
1.15      bertrand 6572:   $as_echo_n "(cached) " >&6
1.1       bertrand 6573: else
1.15      bertrand 6574:   if test -n "$TEX"; then
                   6575:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6576: else
1.15      bertrand 6577: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6578: for as_dir in $PATH
                   6579: do
                   6580:   IFS=$as_save_IFS
                   6581:   test -z "$as_dir" && as_dir=.
                   6582:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6583:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6584:     ac_cv_prog_TEX="yes"
                   6585:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6586:     break 2
                   6587:   fi
                   6588: done
                   6589:   done
                   6590: IFS=$as_save_IFS
1.1       bertrand 6591: 
1.15      bertrand 6592:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6593: fi
                   6594: fi
1.15      bertrand 6595: TEX=$ac_cv_prog_TEX
                   6596: if test -n "$TEX"; then
                   6597:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6598: $as_echo "$TEX" >&6; }
                   6599: else
                   6600:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6601: $as_echo "no" >&6; }
1.1       bertrand 6602: fi
1.14      bertrand 6603: 
                   6604: 
1.15      bertrand 6605:    if test "$TEX" = no; then
                   6606:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6607: Download at http://tex.loria.fr/
                   6608: " >&5
                   6609: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6610: Download at http://tex.loria.fr/
                   6611: " >&2;}
                   6612:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6613:    fi
1.14      bertrand 6614: 
1.15      bertrand 6615:    # Extract the first word of "latex", so it can be a program name with args.
                   6616: set dummy latex; ac_word=$2
                   6617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6618: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6619: if ${ac_cv_prog_LATEX+:} false; then :
1.15      bertrand 6620:   $as_echo_n "(cached) " >&6
1.1       bertrand 6621: else
1.15      bertrand 6622:   if test -n "$LATEX"; then
                   6623:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6624: else
1.15      bertrand 6625: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6626: for as_dir in $PATH
                   6627: do
                   6628:   IFS=$as_save_IFS
                   6629:   test -z "$as_dir" && as_dir=.
                   6630:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6631:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6632:     ac_cv_prog_LATEX="yes"
                   6633:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6634:     break 2
                   6635:   fi
                   6636: done
                   6637:   done
                   6638: IFS=$as_save_IFS
1.1       bertrand 6639: 
1.15      bertrand 6640:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6641: fi
                   6642: fi
1.15      bertrand 6643: LATEX=$ac_cv_prog_LATEX
                   6644: if test -n "$LATEX"; then
                   6645:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6646: $as_echo "$LATEX" >&6; }
                   6647: else
                   6648:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6649: $as_echo "no" >&6; }
                   6650: fi
1.14      bertrand 6651: 
1.1       bertrand 6652: 
1.15      bertrand 6653:    if test "$LATEX" = no; then
                   6654:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6655: Download at http://tex.loria.fr/
                   6656: " >&5
                   6657: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6658: Download at http://tex.loria.fr/
                   6659: " >&2;}
                   6660:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6661:    fi
1.1       bertrand 6662: 
1.15      bertrand 6663:    # Extract the first word of "dvips", so it can be a program name with args.
                   6664: set dummy dvips; ac_word=$2
                   6665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6666: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6667: if ${ac_cv_prog_DVIPS+:} false; then :
1.15      bertrand 6668:   $as_echo_n "(cached) " >&6
                   6669: else
                   6670:   if test -n "$DVIPS"; then
                   6671:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6672: else
                   6673: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6674: for as_dir in $PATH
                   6675: do
                   6676:   IFS=$as_save_IFS
                   6677:   test -z "$as_dir" && as_dir=.
                   6678:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6679:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6680:     ac_cv_prog_DVIPS="yes"
                   6681:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6682:     break 2
                   6683:   fi
                   6684: done
                   6685:   done
                   6686: IFS=$as_save_IFS
1.1       bertrand 6687: 
1.15      bertrand 6688:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6689: fi
1.1       bertrand 6690: fi
1.15      bertrand 6691: DVIPS=$ac_cv_prog_DVIPS
                   6692: if test -n "$DVIPS"; then
                   6693:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6694: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6695: else
1.15      bertrand 6696:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6697: $as_echo "no" >&6; }
                   6698: fi
1.1       bertrand 6699: 
                   6700: 
1.15      bertrand 6701:    if test "$DVIPS" = no; then
                   6702:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6703: Download at http://tex.loria.fr/
                   6704: " >&5
                   6705: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6706: Download at http://tex.loria.fr/
                   6707: " >&2;}
                   6708:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6709:    fi
1.1       bertrand 6710: 
1.15      bertrand 6711:    # Extract the first word of "gs", so it can be a program name with args.
                   6712: set dummy gs; ac_word=$2
                   6713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6714: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6715: if ${ac_cv_prog_GS+:} false; then :
1.15      bertrand 6716:   $as_echo_n "(cached) " >&6
                   6717: else
                   6718:   if test -n "$GS"; then
                   6719:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6720: else
1.15      bertrand 6721: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6722: for as_dir in $PATH
                   6723: do
                   6724:   IFS=$as_save_IFS
                   6725:   test -z "$as_dir" && as_dir=.
                   6726:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6727:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6728:     ac_cv_prog_GS="yes"
                   6729:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6730:     break 2
                   6731:   fi
                   6732: done
                   6733:   done
                   6734: IFS=$as_save_IFS
1.1       bertrand 6735: 
1.15      bertrand 6736:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6737: fi
                   6738: fi
                   6739: GS=$ac_cv_prog_GS
                   6740: if test -n "$GS"; then
                   6741:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6742: $as_echo "$GS" >&6; }
                   6743: else
                   6744:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6745: $as_echo "no" >&6; }
1.1       bertrand 6746: fi
                   6747: 
1.15      bertrand 6748: 
                   6749:    if test "$GS" = no; then
                   6750:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6751: Download at http://ftp.lip6.fr/
                   6752: " >&5
                   6753: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6754: Download at http://ftp.lip6.fr/
                   6755: " >&2;}
                   6756:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6757:    fi
                   6758: 
                   6759:    # Extract the first word of "gv", so it can be a program name with args.
                   6760: set dummy gv; ac_word=$2
                   6761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6762: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6763: if ${ac_cv_prog_GV+:} false; then :
1.15      bertrand 6764:   $as_echo_n "(cached) " >&6
                   6765: else
                   6766:   if test -n "$GV"; then
                   6767:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6768: else
                   6769: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6770: for as_dir in $PATH
                   6771: do
                   6772:   IFS=$as_save_IFS
                   6773:   test -z "$as_dir" && as_dir=.
                   6774:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6775:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6776:     ac_cv_prog_GV="yes"
                   6777:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6778:     break 2
                   6779:   fi
                   6780: done
1.14      bertrand 6781:   done
1.15      bertrand 6782: IFS=$as_save_IFS
1.1       bertrand 6783: 
1.15      bertrand 6784:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6785: fi
1.1       bertrand 6786: fi
1.15      bertrand 6787: GV=$ac_cv_prog_GV
                   6788: if test -n "$GV"; then
                   6789:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6790: $as_echo "$GV" >&6; }
                   6791: else
                   6792:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6793: $as_echo "no" >&6; }
1.1       bertrand 6794: fi
1.14      bertrand 6795: 
                   6796: 
1.15      bertrand 6797:    if test "$GV" = no; then
                   6798:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6799: Download at http://ftp.lip6.fr/
                   6800: " >&5
                   6801: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6802: Download at http://ftp.lip6.fr/
                   6803: " >&2;}
                   6804:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6805:    fi
1.1       bertrand 6806: else
1.15      bertrand 6807:    if test "$TEX_SUPPORT" = no; then
                   6808:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6809:    else
                   6810:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6811:    fi
1.1       bertrand 6812: fi
                   6813: 
1.15      bertrand 6814: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6815:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6816: set dummy gnuplot; ac_word=$2
                   6817: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6818: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6819: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15      bertrand 6820:   $as_echo_n "(cached) " >&6
1.14      bertrand 6821: else
1.15      bertrand 6822:   if test -n "$GNUPLOT_P"; then
                   6823:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6824: else
1.15      bertrand 6825: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6826: for as_dir in $PATH
                   6827: do
                   6828:   IFS=$as_save_IFS
                   6829:   test -z "$as_dir" && as_dir=.
                   6830:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6831:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6832:     ac_cv_prog_GNUPLOT_P="yes"
                   6833:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6834:     break 2
                   6835:   fi
                   6836: done
                   6837:   done
                   6838: IFS=$as_save_IFS
1.1       bertrand 6839: 
1.15      bertrand 6840:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6841: fi
                   6842: fi
1.15      bertrand 6843: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6844: if test -n "$GNUPLOT_P"; then
                   6845:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6846: $as_echo "$GNUPLOT_P" >&6; }
                   6847: else
                   6848:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6849: $as_echo "no" >&6; }
1.1       bertrand 6850: fi
                   6851: 
                   6852: 
1.15      bertrand 6853:    if test "$GNUPLOT_P" = no; then
                   6854:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6855: Download at http://www.gnuplot.vt.edu/
                   6856: " >&5
                   6857: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6858: Download at http://www.gnuplot.vt.edu/
                   6859: " >&2;}
                   6860:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6861:    else
                   6862:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6863:    fi
                   6864: else
                   6865:    if test "$GNUPLOT_SUPPORT" = no; then
                   6866:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6867:    else
                   6868:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6869:    fi
                   6870: fi
1.1       bertrand 6871: 
1.15      bertrand 6872: if test "$VIM_SUPPORT" = guessed; then
                   6873:    # Extract the first word of "vim", so it can be a program name with args.
                   6874: set dummy vim; ac_word=$2
                   6875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6876: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6877: if ${ac_cv_prog_VIM+:} false; then :
1.15      bertrand 6878:   $as_echo_n "(cached) " >&6
1.1       bertrand 6879: else
1.15      bertrand 6880:   if test -n "$VIM"; then
                   6881:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6882: else
1.15      bertrand 6883: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6884: for as_dir in $PATH
                   6885: do
                   6886:   IFS=$as_save_IFS
                   6887:   test -z "$as_dir" && as_dir=.
                   6888:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6889:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6890:     ac_cv_prog_VIM="yes"
                   6891:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6892:     break 2
                   6893:   fi
                   6894: done
                   6895:   done
                   6896: IFS=$as_save_IFS
1.1       bertrand 6897: 
1.15      bertrand 6898:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 6899: fi
                   6900: fi
1.15      bertrand 6901: VIM=$ac_cv_prog_VIM
                   6902: if test -n "$VIM"; then
                   6903:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   6904: $as_echo "$VIM" >&6; }
1.1       bertrand 6905: else
1.15      bertrand 6906:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6907: $as_echo "no" >&6; }
                   6908: fi
1.1       bertrand 6909: 
                   6910: 
1.15      bertrand 6911:    if test "$VIM" = no; then
                   6912:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   6913: Download at http://www.vim.org/
                   6914: " >&5
                   6915: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   6916: Download at http://www.vim.org/
                   6917: " >&2;}
                   6918:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6919:    else
                   6920:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6921:    fi
1.1       bertrand 6922: else
1.15      bertrand 6923:    if test "$VIM_SUPPORT" = no; then
                   6924:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6925:    else
                   6926:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6927:    fi
1.1       bertrand 6928: fi
                   6929: 
1.15      bertrand 6930: if test "$MOTIF_SUPPORT" = guessed; then
                   6931:    CFLAGS_ORIG=$CFLAGS
                   6932:    LIBS_ORIG=$LIBS
                   6933:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6934:    LIBS="$LIB $X_LIBS"
                   6935:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6936: $as_echo_n "checking for main in -lXm... " >&6; }
1.57      bertrand 6937: if ${ac_cv_lib_Xm_main+:} false; then :
1.15      bertrand 6938:   $as_echo_n "(cached) " >&6
1.1       bertrand 6939: else
1.15      bertrand 6940:   ac_check_lib_save_LIBS=$LIBS
                   6941: LIBS="-lXm  $LIBS"
                   6942: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6943: /* end confdefs.h.  */
1.1       bertrand 6944: 
                   6945: 
1.14      bertrand 6946: int
                   6947: main ()
                   6948: {
1.15      bertrand 6949: return main ();
1.14      bertrand 6950:   ;
                   6951:   return 0;
                   6952: }
                   6953: _ACEOF
1.15      bertrand 6954: if ac_fn_c_try_link "$LINENO"; then :
                   6955:   ac_cv_lib_Xm_main=yes
1.1       bertrand 6956: else
1.15      bertrand 6957:   ac_cv_lib_Xm_main=no
                   6958: fi
                   6959: rm -f core conftest.err conftest.$ac_objext \
                   6960:     conftest$ac_exeext conftest.$ac_ext
                   6961: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6962: fi
1.15      bertrand 6963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6964: $as_echo "$ac_cv_lib_Xm_main" >&6; }
1.57      bertrand 6965: if test "x$ac_cv_lib_Xm_main" = xyes; then :
1.15      bertrand 6966:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6967: else
1.15      bertrand 6968:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6969: fi
1.14      bertrand 6970: 
1.15      bertrand 6971:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6972:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
                   6973: Motif flag is disabled.
                   6974: " >&5
                   6975: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
                   6976: Motif flag is disabled.
                   6977: " >&2;}
                   6978:    fi
                   6979:    LIBS=$LIBS_ORIG
                   6980:    CFLAGS=$CFLAGS_ORIG
1.1       bertrand 6981: fi
                   6982: 
1.15      bertrand 6983: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6984:    CFLAGS_ORIG=$CFLAGS
                   6985:    LIBS_ORIG=$LIBS
                   6986:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6987:    LIBS="$LIB $X_LIBS"
                   6988:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
                   6989: $as_echo_n "checking for main in -lXpm... " >&6; }
1.57      bertrand 6990: if ${ac_cv_lib_Xpm_main+:} false; then :
1.15      bertrand 6991:   $as_echo_n "(cached) " >&6
                   6992: else
                   6993:   ac_check_lib_save_LIBS=$LIBS
                   6994: LIBS="-lXpm  $LIBS"
                   6995: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 6996: /* end confdefs.h.  */
                   6997: 
1.1       bertrand 6998: 
                   6999: int
                   7000: main ()
                   7001: {
1.15      bertrand 7002: return main ();
1.1       bertrand 7003:   ;
                   7004:   return 0;
                   7005: }
                   7006: _ACEOF
1.15      bertrand 7007: if ac_fn_c_try_link "$LINENO"; then :
                   7008:   ac_cv_lib_Xpm_main=yes
1.1       bertrand 7009: else
1.15      bertrand 7010:   ac_cv_lib_Xpm_main=no
                   7011: fi
                   7012: rm -f core conftest.err conftest.$ac_objext \
                   7013:     conftest$ac_exeext conftest.$ac_ext
                   7014: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7015: fi
1.15      bertrand 7016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
                   7017: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
1.57      bertrand 7018: if test "x$ac_cv_lib_Xpm_main" = xyes; then :
1.15      bertrand 7019:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   7020: else
                   7021:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 7022: fi
1.15      bertrand 7023: 
                   7024:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   7025:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                   7026:    else
                   7027:        libX=""
                   7028:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
                   7029: Motif flag is disabled.
                   7030: " >&5
                   7031: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
                   7032: Motif flag is disabled.
                   7033: " >&2;}
                   7034:    fi
                   7035:    LIBS=$LIBS_ORIG
                   7036:    CFLAGS=$CFLAGS_ORIG
                   7037: else
                   7038:    libX=""
1.1       bertrand 7039: fi
1.14      bertrand 7040: 
                   7041: 
                   7042: 
1.1       bertrand 7043: 
                   7044: 
1.15      bertrand 7045: 
                   7046: 
                   7047: 
                   7048: 
                   7049: 
                   7050: 
                   7051: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   7052: 
                   7053: 
                   7054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   7055: $as_echo_n "checking for main in -lm... " >&6; }
1.57      bertrand 7056: if ${ac_cv_lib_m_main+:} false; then :
1.15      bertrand 7057:   $as_echo_n "(cached) " >&6
1.1       bertrand 7058: else
1.15      bertrand 7059:   ac_check_lib_save_LIBS=$LIBS
                   7060: LIBS="-lm  $LIBS"
                   7061: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7062: /* end confdefs.h.  */
1.15      bertrand 7063: 
                   7064: 
1.1       bertrand 7065: int
                   7066: main ()
                   7067: {
1.15      bertrand 7068: return main ();
1.1       bertrand 7069:   ;
                   7070:   return 0;
                   7071: }
                   7072: _ACEOF
1.15      bertrand 7073: if ac_fn_c_try_link "$LINENO"; then :
                   7074:   ac_cv_lib_m_main=yes
1.1       bertrand 7075: else
1.15      bertrand 7076:   ac_cv_lib_m_main=no
                   7077: fi
                   7078: rm -f core conftest.err conftest.$ac_objext \
                   7079:     conftest$ac_exeext conftest.$ac_ext
                   7080: LIBS=$ac_check_lib_save_LIBS
                   7081: fi
                   7082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   7083: $as_echo "$ac_cv_lib_m_main" >&6; }
1.57      bertrand 7084: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15      bertrand 7085:   cat >>confdefs.h <<_ACEOF
                   7086: #define HAVE_LIBM 1
                   7087: _ACEOF
1.14      bertrand 7088: 
1.15      bertrand 7089:   LIBS="-lm $LIBS"
1.1       bertrand 7090: 
1.15      bertrand 7091: else
1.36      bertrand 7092:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 7093: fi
                   7094: 
1.15      bertrand 7095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   7096: $as_echo_n "checking for main in -lpthread... " >&6; }
1.57      bertrand 7097: if ${ac_cv_lib_pthread_main+:} false; then :
1.15      bertrand 7098:   $as_echo_n "(cached) " >&6
1.1       bertrand 7099: else
1.15      bertrand 7100:   ac_check_lib_save_LIBS=$LIBS
                   7101: LIBS="-lpthread  $LIBS"
                   7102: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7103: /* end confdefs.h.  */
1.15      bertrand 7104: 
                   7105: 
1.14      bertrand 7106: int
                   7107: main ()
                   7108: {
1.15      bertrand 7109: return main ();
1.14      bertrand 7110:   ;
                   7111:   return 0;
                   7112: }
                   7113: _ACEOF
1.15      bertrand 7114: if ac_fn_c_try_link "$LINENO"; then :
                   7115:   ac_cv_lib_pthread_main=yes
                   7116: else
                   7117:   ac_cv_lib_pthread_main=no
                   7118: fi
                   7119: rm -f core conftest.err conftest.$ac_objext \
                   7120:     conftest$ac_exeext conftest.$ac_ext
                   7121: LIBS=$ac_check_lib_save_LIBS
                   7122: fi
                   7123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   7124: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.57      bertrand 7125: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15      bertrand 7126:   cat >>confdefs.h <<_ACEOF
                   7127: #define HAVE_LIBPTHREAD 1
1.14      bertrand 7128: _ACEOF
                   7129: 
1.15      bertrand 7130:   LIBS="-lpthread $LIBS"
                   7131: 
1.1       bertrand 7132: else
1.36      bertrand 7133:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 7134: fi
1.14      bertrand 7135: 
1.1       bertrand 7136: 
1.33      bertrand 7137: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   7138: #include <sys/sem.h>
                   7139: 
                   7140: "
1.57      bertrand 7141: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33      bertrand 7142:   SEMUN=-DUNION_SEMUN
                   7143: else
                   7144:   SEMUN=-UUNION_SEMUN
                   7145: fi
                   7146: 
                   7147: 
1.34      bertrand 7148: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 7149: #include <sys/types.h>
1.34      bertrand 7150: #include <netinet/in.h>
                   7151: 
                   7152: "
1.57      bertrand 7153: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34      bertrand 7154:   IPV6=-DIPV6
                   7155: else
                   7156:   IPV6=-UIPV6
                   7157: fi
                   7158: 
                   7159: 
1.15      bertrand 7160: if test "$CYGWIN" != yes; then
                   7161:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7162: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.57      bertrand 7163: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15      bertrand 7164:   $as_echo_n "(cached) " >&6
1.1       bertrand 7165: else
1.15      bertrand 7166:   ac_check_lib_save_LIBS=$LIBS
                   7167: LIBS="-ldl  $LIBS"
                   7168: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7169: /* end confdefs.h.  */
                   7170: 
1.15      bertrand 7171: /* Override any GCC internal prototype to avoid an error.
                   7172:    Use char because int might match the return type of a GCC
                   7173:    builtin and then its argument prototype would still apply.  */
                   7174: #ifdef __cplusplus
                   7175: extern "C"
                   7176: #endif
                   7177: char dlopen ();
1.1       bertrand 7178: int
                   7179: main ()
                   7180: {
1.15      bertrand 7181: return dlopen ();
1.1       bertrand 7182:   ;
                   7183:   return 0;
                   7184: }
                   7185: _ACEOF
1.15      bertrand 7186: if ac_fn_c_try_link "$LINENO"; then :
                   7187:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7188: else
1.15      bertrand 7189:   ac_cv_lib_dl_dlopen=no
                   7190: fi
                   7191: rm -f core conftest.err conftest.$ac_objext \
                   7192:     conftest$ac_exeext conftest.$ac_ext
                   7193: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7194: fi
1.15      bertrand 7195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7196: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.57      bertrand 7197: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15      bertrand 7198:   LIBS="$LIBS -ldl"
1.14      bertrand 7199: else
1.15      bertrand 7200:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7201: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7202: fi
                   7203: 
1.14      bertrand 7204: fi
1.1       bertrand 7205: 
1.15      bertrand 7206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7207: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.57      bertrand 7208: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15      bertrand 7209:   $as_echo_n "(cached) " >&6
                   7210: else
                   7211:   ac_check_lib_save_LIBS=$LIBS
                   7212: LIBS="-lrt  $LIBS"
                   7213: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7214: /* end confdefs.h.  */
1.15      bertrand 7215: 
                   7216: /* Override any GCC internal prototype to avoid an error.
                   7217:    Use char because int might match the return type of a GCC
                   7218:    builtin and then its argument prototype would still apply.  */
                   7219: #ifdef __cplusplus
                   7220: extern "C"
                   7221: #endif
                   7222: char nanosleep ();
1.1       bertrand 7223: int
                   7224: main ()
                   7225: {
1.15      bertrand 7226: return nanosleep ();
1.1       bertrand 7227:   ;
                   7228:   return 0;
                   7229: }
                   7230: _ACEOF
1.15      bertrand 7231: if ac_fn_c_try_link "$LINENO"; then :
                   7232:   ac_cv_lib_rt_nanosleep=yes
                   7233: else
                   7234:   ac_cv_lib_rt_nanosleep=no
                   7235: fi
                   7236: rm -f core conftest.err conftest.$ac_objext \
                   7237:     conftest$ac_exeext conftest.$ac_ext
                   7238: LIBS=$ac_check_lib_save_LIBS
                   7239: fi
                   7240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7241: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.57      bertrand 7242: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15      bertrand 7243:   LIBS="$LIBS -lrt"
1.1       bertrand 7244: else
1.15      bertrand 7245:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7246: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7247: fi
1.1       bertrand 7248: 
                   7249: 
1.15      bertrand 7250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7251: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.57      bertrand 7252: if ${ac_cv_lib_socket_bind+:} false; then :
1.15      bertrand 7253:   $as_echo_n "(cached) " >&6
1.1       bertrand 7254: else
1.15      bertrand 7255:   ac_check_lib_save_LIBS=$LIBS
                   7256: LIBS="-lsocket  $LIBS"
                   7257: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7258: /* end confdefs.h.  */
1.15      bertrand 7259: 
                   7260: /* Override any GCC internal prototype to avoid an error.
                   7261:    Use char because int might match the return type of a GCC
                   7262:    builtin and then its argument prototype would still apply.  */
                   7263: #ifdef __cplusplus
                   7264: extern "C"
                   7265: #endif
                   7266: char bind ();
1.1       bertrand 7267: int
                   7268: main ()
                   7269: {
1.15      bertrand 7270: return bind ();
1.1       bertrand 7271:   ;
                   7272:   return 0;
                   7273: }
                   7274: _ACEOF
1.15      bertrand 7275: if ac_fn_c_try_link "$LINENO"; then :
                   7276:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7277: else
1.15      bertrand 7278:   ac_cv_lib_socket_bind=no
1.1       bertrand 7279: fi
1.15      bertrand 7280: rm -f core conftest.err conftest.$ac_objext \
                   7281:     conftest$ac_exeext conftest.$ac_ext
                   7282: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7283: fi
1.15      bertrand 7284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7285: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.57      bertrand 7286: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15      bertrand 7287:   LIBS="$LIBS -lsocket"
                   7288: else
                   7289:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7290: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7291: fi
                   7292: 
                   7293: 
1.15      bertrand 7294: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7295: 
                   7296: # Check whether --with-mysql was given.
                   7297: if test "${with_mysql+set}" = set; then :
                   7298:   withval=$with_mysql;
                   7299: else
                   7300:   with_mysql=check
                   7301: fi
1.14      bertrand 7302: 
                   7303: 
1.15      bertrand 7304: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7305:    libMySQLinc="-I/usr/include"
1.30      bertrand 7306:    libMySQLlib="/usr/lib"
1.14      bertrand 7307: 
1.15      bertrand 7308:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7309: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7310:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7311:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7312:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7313: /* end confdefs.h.  */
1.15      bertrand 7314: #include "mysql.h"
1.1       bertrand 7315: int
                   7316: main ()
                   7317: {
1.15      bertrand 7318: 
1.1       bertrand 7319:   ;
                   7320:   return 0;
                   7321: }
                   7322: _ACEOF
1.15      bertrand 7323: if ac_fn_c_try_compile "$LINENO"; then :
                   7324:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7325: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7326:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7327: else
1.15      bertrand 7328:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7329: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7330: fi
1.14      bertrand 7331: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7332:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7333: 
1.15      bertrand 7334:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7335:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7336: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7337:        saved_CFLAGS="$CFLAGS"
                   7338:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7339:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7340: /* end confdefs.h.  */
1.15      bertrand 7341: #include "mysql.h"
1.1       bertrand 7342: int
                   7343: main ()
                   7344: {
                   7345: 
                   7346:   ;
                   7347:   return 0;
                   7348: }
                   7349: _ACEOF
1.15      bertrand 7350: if ac_fn_c_try_compile "$LINENO"; then :
                   7351:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7352: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7353:                        libMySQLinc=$libMySQLinc
                   7354: else
                   7355:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7356: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7357: fi
                   7358: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7359:        CFLAGS=$saved_CFLAGS
                   7360:        libMySQLinc=$libMySQLinc/mysql
                   7361:    fi
                   7362: 
                   7363:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7364:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7365: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7366:        saved_CFLAGS="$CFLAGS"
                   7367:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7368:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7369: /* end confdefs.h.  */
1.15      bertrand 7370: #include "mysql.h"
1.1       bertrand 7371: int
                   7372: main ()
                   7373: {
                   7374: 
                   7375:   ;
                   7376:   return 0;
                   7377: }
                   7378: _ACEOF
1.15      bertrand 7379: if ac_fn_c_try_compile "$LINENO"; then :
                   7380:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7381: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7382:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7383: else
1.15      bertrand 7384:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7385: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7386: fi
                   7387: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7388:        CFLAGS=$saved_CFLAGS
                   7389:        libMySQLinc=$libMySQLinc/../local/include
                   7390:        libMySQLlib=$libMySQLlib/../local/lib
                   7391:    fi
1.1       bertrand 7392: 
1.15      bertrand 7393:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7394:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7395: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7396:        saved_CFLAGS="$CFLAGS"
                   7397:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7398:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7399: /* end confdefs.h.  */
1.15      bertrand 7400: #include "mysql.h"
1.1       bertrand 7401: int
                   7402: main ()
                   7403: {
                   7404: 
                   7405:   ;
                   7406:   return 0;
                   7407: }
                   7408: _ACEOF
1.15      bertrand 7409: if ac_fn_c_try_compile "$LINENO"; then :
                   7410:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7411: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7412:                        libMySQLinc=$libMySQLinc/mysql
                   7413: else
                   7414:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7415: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7416: fi
                   7417: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7418:        CFLAGS=$saved_CFLAGS
                   7419:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7420:        libMySQLlib=$libMySQLlib/../local/lib
                   7421:    fi
                   7422: else
                   7423:    if test "x$with_mysql" != xno; then
                   7424:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7425:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7426: 
                   7427:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7428: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7429:        saved_CFLAGS="$CFLAGS"
                   7430:        CFLAGS="$CFLAGS $libMySQLinc"
                   7431:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7432: /* end confdefs.h.  */
1.15      bertrand 7433: #include "mysql.h"
1.1       bertrand 7434: int
                   7435: main ()
                   7436: {
                   7437: 
                   7438:   ;
                   7439:   return 0;
                   7440: }
                   7441: _ACEOF
1.15      bertrand 7442: if ac_fn_c_try_compile "$LINENO"; then :
                   7443:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7444: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7445:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7446: else
1.15      bertrand 7447:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7448: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7449: fi
                   7450: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7451:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7452: 
1.15      bertrand 7453:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7454:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7455: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7456:            saved_CFLAGS="$CFLAGS"
                   7457:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7458:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7459: /* end confdefs.h.  */
1.15      bertrand 7460: #include "mysql.h"
1.1       bertrand 7461: int
                   7462: main ()
                   7463: {
                   7464: 
                   7465:   ;
                   7466:   return 0;
                   7467: }
                   7468: _ACEOF
1.15      bertrand 7469: if ac_fn_c_try_compile "$LINENO"; then :
                   7470:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7471: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7472:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7473: else
1.15      bertrand 7474:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7475: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7476: fi
                   7477: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7478:            CFLAGS=$saved_CFLAGS
                   7479:            libMySQLinc=$libMySQLinc/mysql
                   7480:        fi
                   7481:    else
                   7482:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7483:    fi
                   7484: fi
1.14      bertrand 7485: 
1.15      bertrand 7486: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7487:    MYSQL_LIB=no
1.14      bertrand 7488: 
1.15      bertrand 7489:    if test $MYSQL_LIB = no; then
                   7490:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7491: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7492:        saved_LIBS="$LIBS"
1.30      bertrand 7493:        if test $STATIC = no; then
                   7494:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7495:        else
                   7496:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7497:        fi
1.15      bertrand 7498:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7499: /* end confdefs.h.  */
1.15      bertrand 7500: #include "mysql.h"
1.1       bertrand 7501: int
                   7502: main ()
                   7503: {
1.15      bertrand 7504: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7505:   ;
                   7506:   return 0;
                   7507: }
                   7508: _ACEOF
1.15      bertrand 7509: if ac_fn_c_try_link "$LINENO"; then :
                   7510:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7511: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7512: else
1.15      bertrand 7513:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7514: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7515: fi
                   7516: rm -f core conftest.err conftest.$ac_objext \
                   7517:     conftest$ac_exeext conftest.$ac_ext
                   7518:        LIBS=$saved_LIBS;
1.30      bertrand 7519:        if test $STATIC = no; then
                   7520:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7521:        else
                   7522:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7523:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7524:        fi
1.15      bertrand 7525:    fi
1.14      bertrand 7526: 
1.15      bertrand 7527:    if test $MYSQL_LIB = no; then
                   7528:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7529:    fi
1.14      bertrand 7530: fi
1.15      bertrand 7531: 
                   7532: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7533:    libMySQLinc=
                   7534:    libMySQLlib=
1.1       bertrand 7535: fi
1.14      bertrand 7536: 
                   7537: 
                   7538: 
1.1       bertrand 7539: 
                   7540: 
1.15      bertrand 7541: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7542: 
                   7543: # Check whether --with-postgresql was given.
                   7544: if test "${with_postgresql+set}" = set; then :
                   7545:   withval=$with_postgresql;
1.14      bertrand 7546: else
1.15      bertrand 7547:   with_postgresql=check
                   7548: fi
                   7549: 
                   7550: 
                   7551: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7552: # no [--without], valeur [--with=valeur].
                   7553: 
                   7554: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7555:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7556:    libPgSQLlib="/usr/lib"
1.15      bertrand 7557: 
                   7558:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7559: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7560:    saved_CFLAGS="$CFLAGS"
                   7561:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7562:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7563: /* end confdefs.h.  */
1.15      bertrand 7564: #include "libpq-fe.h"
1.1       bertrand 7565: int
                   7566: main ()
                   7567: {
1.15      bertrand 7568: 
1.1       bertrand 7569:   ;
                   7570:   return 0;
                   7571: }
                   7572: _ACEOF
1.15      bertrand 7573: if ac_fn_c_try_compile "$LINENO"; then :
                   7574:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7575: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7576: else
1.15      bertrand 7577:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7578: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7579: fi
1.14      bertrand 7580: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7581:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7582: 
1.15      bertrand 7583:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7584:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7585: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7586:        saved_CFLAGS="$CFLAGS"
                   7587:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7588:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7589: /* end confdefs.h.  */
1.15      bertrand 7590: #include "libpq-fe.h"
1.1       bertrand 7591: int
                   7592: main ()
                   7593: {
                   7594: 
                   7595:   ;
                   7596:   return 0;
                   7597: }
                   7598: _ACEOF
1.15      bertrand 7599: if ac_fn_c_try_compile "$LINENO"; then :
                   7600:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7601: $as_echo "yes" >&6; };
                   7602:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7603: else
                   7604:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7605: $as_echo "no" >&6; };
                   7606:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7607: fi
                   7608: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7609:        CFLAGS=$saved_CFLAGS
                   7610:        libPgSQLinc=$libPgSQLinc/postgresql
                   7611:    fi
                   7612: 
                   7613:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7614:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7615: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7616:        saved_CFLAGS="$CFLAGS"
                   7617:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7618:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7619: /* end confdefs.h.  */
1.15      bertrand 7620: #include "libpq-fe.h"
1.1       bertrand 7621: int
                   7622: main ()
                   7623: {
                   7624: 
                   7625:   ;
                   7626:   return 0;
                   7627: }
                   7628: _ACEOF
1.15      bertrand 7629: if ac_fn_c_try_compile "$LINENO"; then :
                   7630:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7631: $as_echo "yes" >&6; };
                   7632:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7633: else
1.15      bertrand 7634:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7635: $as_echo "no" >&6; };
                   7636:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7637: fi
                   7638: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7639:        CFLAGS=$saved_CFLAGS
                   7640:        libPgSQLinc=$libPgSQLinc/pgsql
                   7641:    fi
1.1       bertrand 7642: 
1.15      bertrand 7643:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7644:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7645: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7646:        saved_CFLAGS="$CFLAGS"
                   7647:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7648:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7649: /* end confdefs.h.  */
1.15      bertrand 7650: #include "libpq-fe.h"
1.1       bertrand 7651: int
                   7652: main ()
                   7653: {
                   7654: 
                   7655:   ;
                   7656:   return 0;
                   7657: }
                   7658: _ACEOF
1.15      bertrand 7659: if ac_fn_c_try_compile "$LINENO"; then :
                   7660:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7661: $as_echo "yes" >&6; };
                   7662:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7663: else
                   7664:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7665: $as_echo "no" >&6; };
                   7666:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7667: fi
                   7668: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7669:        CFLAGS=$saved_CFLAGS
                   7670:        libPgSQLinc=$libPgSQLinc/../local/include
                   7671:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7672:    fi
                   7673: 
                   7674:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7675:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7676: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7677:        saved_CFLAGS="$CFLAGS"
                   7678:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7679:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7680: /* end confdefs.h.  */
1.15      bertrand 7681: #include "libpq-fe.h"
1.1       bertrand 7682: int
                   7683: main ()
                   7684: {
                   7685: 
                   7686:   ;
                   7687:   return 0;
                   7688: }
                   7689: _ACEOF
1.15      bertrand 7690: if ac_fn_c_try_compile "$LINENO"; then :
                   7691:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7692: $as_echo "yes" >&6; };
                   7693:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7694: else
1.15      bertrand 7695:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7696: $as_echo "no" >&6; };
                   7697:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7698: fi
                   7699: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7700:        CFLAGS=$saved_CFLAGS
                   7701:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7702:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7703:    fi
1.14      bertrand 7704: 
1.15      bertrand 7705:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7706:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7707: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7708:        saved_CFLAGS="$CFLAGS"
                   7709:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7710:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7711: /* end confdefs.h.  */
1.15      bertrand 7712: #include "libpq-fe.h"
1.1       bertrand 7713: int
                   7714: main ()
                   7715: {
                   7716: 
                   7717:   ;
                   7718:   return 0;
                   7719: }
                   7720: _ACEOF
1.15      bertrand 7721: if ac_fn_c_try_compile "$LINENO"; then :
                   7722:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7723: $as_echo "yes" >&6; };
                   7724:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7725: else
1.15      bertrand 7726:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7727: $as_echo "no" >&6; };
                   7728:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7729: fi
                   7730: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7731:        CFLAGS=$saved_CFLAGS
                   7732:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7733:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7734:    fi
1.14      bertrand 7735: else
1.15      bertrand 7736:    if test "x$with_postgresql" != xno; then
                   7737:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7738:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7739: 
                   7740:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7741: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7742:        saved_CFLAGS="$CFLAGS"
                   7743:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7744:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7745: /* end confdefs.h.  */
1.15      bertrand 7746: #include "libpq-fe.h"
1.1       bertrand 7747: int
                   7748: main ()
                   7749: {
                   7750: 
                   7751:   ;
                   7752:   return 0;
                   7753: }
                   7754: _ACEOF
1.15      bertrand 7755: if ac_fn_c_try_compile "$LINENO"; then :
                   7756:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7757: $as_echo "yes" >&6; };
                   7758:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7759: else
1.15      bertrand 7760:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7761: $as_echo "no" >&6; };
                   7762:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7763: fi
1.15      bertrand 7764: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7765:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7766: 
1.15      bertrand 7767:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7768:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7769: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7770:            saved_CFLAGS="$CFLAGS"
                   7771:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7772:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7773: /* end confdefs.h.  */
1.15      bertrand 7774: #include "libpq-fe.h"
1.1       bertrand 7775: int
                   7776: main ()
                   7777: {
1.15      bertrand 7778: 
1.1       bertrand 7779:   ;
                   7780:   return 0;
                   7781: }
                   7782: _ACEOF
1.15      bertrand 7783: if ac_fn_c_try_compile "$LINENO"; then :
                   7784:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7785: $as_echo "yes" >&6; };
                   7786:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7787: else
1.15      bertrand 7788:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7789: $as_echo "no" >&6; };
                   7790:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7791: fi
                   7792: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7793:            CFLAGS=$saved_CFLAGS
                   7794:            libPgSQLinc=$libPgSQLinc/postgresql
                   7795:        fi
1.14      bertrand 7796: 
1.15      bertrand 7797:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7798:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7799: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7800:            saved_CFLAGS="$CFLAGS"
                   7801:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7802:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7803: /* end confdefs.h.  */
1.15      bertrand 7804: #include "libpq-fe.h"
1.1       bertrand 7805: int
                   7806: main ()
                   7807: {
1.15      bertrand 7808: 
1.1       bertrand 7809:   ;
                   7810:   return 0;
                   7811: }
                   7812: _ACEOF
1.15      bertrand 7813: if ac_fn_c_try_compile "$LINENO"; then :
                   7814:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7815: $as_echo "yes" >&6; };
                   7816:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7817: else
1.15      bertrand 7818:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7819: $as_echo "no" >&6; };
                   7820:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7821: fi
1.15      bertrand 7822: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7823:            CFLAGS=$saved_CFLAGS
                   7824:            libPgSQLinc=$libPgSQLinc/pgsql
                   7825:        fi
                   7826:    else
                   7827:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7828:    fi
1.1       bertrand 7829: fi
                   7830: 
1.15      bertrand 7831: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7832:    POSTGRESQL_LIB=no
1.1       bertrand 7833: 
1.15      bertrand 7834:    if test $POSTGRESQL_LIB = no; then
                   7835:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7836: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7837:        saved_LIBS="$LIBS"
1.30      bertrand 7838:        if test $STATIC = no; then
                   7839:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7840:        else
                   7841:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   7842:        fi
1.15      bertrand 7843:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7844: /* end confdefs.h.  */
1.15      bertrand 7845: #include "libpq-fe.h"
1.1       bertrand 7846: int
                   7847: main ()
                   7848: {
1.15      bertrand 7849: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7850:             PQconnectdb(conninfo);
1.1       bertrand 7851:   ;
                   7852:   return 0;
                   7853: }
                   7854: _ACEOF
1.15      bertrand 7855: if ac_fn_c_try_link "$LINENO"; then :
                   7856:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7857: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7858: else
1.15      bertrand 7859:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7860: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7861: fi
                   7862: rm -f core conftest.err conftest.$ac_objext \
                   7863:     conftest$ac_exeext conftest.$ac_ext
                   7864:        LIBS=$saved_LIBS;
1.30      bertrand 7865:        if test $STATIC = no; then
                   7866:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   7867:        else
                   7868:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   7869:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   7870:        fi
1.15      bertrand 7871:    fi
                   7872: fi
                   7873: 
                   7874: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7875:    libPgSQLinc=
                   7876:    libPgSQLlib=
                   7877: fi
                   7878: 
                   7879: 
                   7880: 
                   7881: 
1.14      bertrand 7882: 
1.40      bertrand 7883: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7884: # no [--without], valeur [--with=valeur].
                   7885: 
                   7886: # Check whether --with-bourne_shell was given.
                   7887: if test "${with_bourne_shell+set}" = set; then :
                   7888:   withval=$with_bourne_shell;
                   7889: else
                   7890:   with_bourne_shell=no
                   7891: fi
                   7892: 
                   7893: 
                   7894: if test "x$with_bourne_shell" = xyes; then
                   7895:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   7896: fi
                   7897: 
                   7898: if test "x$with_bourne_shell" = xno; then
                   7899:    if test $(uname) = "OS/2"; then
                   7900:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
                   7901:    fi
                   7902: 
                   7903:    BSH_PATH=
                   7904: else
                   7905:    if test ! -x $with_bourne_shell; then
                   7906:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   7907:    fi
                   7908: 
                   7909:    if test $(uname) = "OS/2"; then
1.41      bertrand 7910:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   7911:                sed -e '1,$s/\//\\\\\\\\/g')
                   7912:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 7913:    else
                   7914:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   7915: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   7916:        BSH_PATH=
                   7917:    fi
                   7918: fi
                   7919: 
1.15      bertrand 7920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7921: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.57      bertrand 7922: if ${ac_cv_path_GREP+:} false; then :
1.15      bertrand 7923:   $as_echo_n "(cached) " >&6
                   7924: else
                   7925:   if test -z "$GREP"; then
                   7926:   ac_path_GREP_found=false
                   7927:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7928:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7929: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7930: do
                   7931:   IFS=$as_save_IFS
                   7932:   test -z "$as_dir" && as_dir=.
                   7933:     for ac_prog in grep ggrep; do
                   7934:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7935:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7936:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7937: # Check for GNU ac_path_GREP and select it if it is found.
                   7938:   # Check for GNU $ac_path_GREP
                   7939: case `"$ac_path_GREP" --version 2>&1` in
                   7940: *GNU*)
                   7941:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7942: *)
                   7943:   ac_count=0
                   7944:   $as_echo_n 0123456789 >"conftest.in"
                   7945:   while :
                   7946:   do
                   7947:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7948:     mv "conftest.tmp" "conftest.in"
                   7949:     cp "conftest.in" "conftest.nl"
                   7950:     $as_echo 'GREP' >> "conftest.nl"
                   7951:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7952:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7953:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7954:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7955:       # Best one so far, save it but keep looking for a better one
                   7956:       ac_cv_path_GREP="$ac_path_GREP"
                   7957:       ac_path_GREP_max=$ac_count
                   7958:     fi
                   7959:     # 10*(2^10) chars as input seems more than enough
                   7960:     test $ac_count -gt 10 && break
                   7961:   done
                   7962:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7963: esac
1.14      bertrand 7964: 
1.15      bertrand 7965:       $ac_path_GREP_found && break 3
                   7966:     done
                   7967:   done
                   7968:   done
                   7969: IFS=$as_save_IFS
                   7970:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 7971:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 7972:   fi
                   7973: else
                   7974:   ac_cv_path_GREP=$GREP
1.1       bertrand 7975: fi
                   7976: 
                   7977: fi
1.15      bertrand 7978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   7979: $as_echo "$ac_cv_path_GREP" >&6; }
                   7980:  GREP="$ac_cv_path_GREP"
                   7981: 
                   7982: 
                   7983: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   7984: $as_echo_n "checking for egrep... " >&6; }
1.57      bertrand 7985: if ${ac_cv_path_EGREP+:} false; then :
1.15      bertrand 7986:   $as_echo_n "(cached) " >&6
                   7987: else
                   7988:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   7989:    then ac_cv_path_EGREP="$GREP -E"
                   7990:    else
                   7991:      if test -z "$EGREP"; then
                   7992:   ac_path_EGREP_found=false
                   7993:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7994:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7995: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7996: do
                   7997:   IFS=$as_save_IFS
                   7998:   test -z "$as_dir" && as_dir=.
                   7999:     for ac_prog in egrep; do
                   8000:     for ac_exec_ext in '' $ac_executable_extensions; do
                   8001:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   8002:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   8003: # Check for GNU ac_path_EGREP and select it if it is found.
                   8004:   # Check for GNU $ac_path_EGREP
                   8005: case `"$ac_path_EGREP" --version 2>&1` in
                   8006: *GNU*)
                   8007:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   8008: *)
                   8009:   ac_count=0
                   8010:   $as_echo_n 0123456789 >"conftest.in"
                   8011:   while :
                   8012:   do
                   8013:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8014:     mv "conftest.tmp" "conftest.in"
                   8015:     cp "conftest.in" "conftest.nl"
                   8016:     $as_echo 'EGREP' >> "conftest.nl"
                   8017:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8018:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8019:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8020:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   8021:       # Best one so far, save it but keep looking for a better one
                   8022:       ac_cv_path_EGREP="$ac_path_EGREP"
                   8023:       ac_path_EGREP_max=$ac_count
                   8024:     fi
                   8025:     # 10*(2^10) chars as input seems more than enough
                   8026:     test $ac_count -gt 10 && break
                   8027:   done
                   8028:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8029: esac
                   8030: 
                   8031:       $ac_path_EGREP_found && break 3
                   8032:     done
                   8033:   done
                   8034:   done
                   8035: IFS=$as_save_IFS
                   8036:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 8037:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8038:   fi
1.1       bertrand 8039: else
1.15      bertrand 8040:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 8041: fi
                   8042: 
1.15      bertrand 8043:    fi
1.1       bertrand 8044: fi
1.15      bertrand 8045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   8046: $as_echo "$ac_cv_path_EGREP" >&6; }
                   8047:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 8048: 
                   8049: 
1.15      bertrand 8050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8051: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8052: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8053:   $as_echo_n "(cached) " >&6
1.1       bertrand 8054: else
1.15      bertrand 8055:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8056: /* end confdefs.h.  */
                   8057: #include <stdlib.h>
                   8058: #include <stdarg.h>
                   8059: #include <string.h>
                   8060: #include <float.h>
                   8061: 
                   8062: int
                   8063: main ()
                   8064: {
                   8065: 
                   8066:   ;
                   8067:   return 0;
                   8068: }
                   8069: _ACEOF
1.15      bertrand 8070: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 8071:   ac_cv_header_stdc=yes
                   8072: else
1.15      bertrand 8073:   ac_cv_header_stdc=no
1.1       bertrand 8074: fi
                   8075: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8076: 
                   8077: if test $ac_cv_header_stdc = yes; then
                   8078:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 8079:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8080: /* end confdefs.h.  */
                   8081: #include <string.h>
                   8082: 
                   8083: _ACEOF
                   8084: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8085:   $EGREP "memchr" >/dev/null 2>&1; then :
                   8086: 
1.1       bertrand 8087: else
                   8088:   ac_cv_header_stdc=no
                   8089: fi
                   8090: rm -f conftest*
                   8091: 
                   8092: fi
                   8093: 
                   8094: if test $ac_cv_header_stdc = yes; then
                   8095:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 8096:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8097: /* end confdefs.h.  */
                   8098: #include <stdlib.h>
                   8099: 
                   8100: _ACEOF
                   8101: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8102:   $EGREP "free" >/dev/null 2>&1; then :
                   8103: 
1.1       bertrand 8104: else
                   8105:   ac_cv_header_stdc=no
                   8106: fi
                   8107: rm -f conftest*
                   8108: 
                   8109: fi
                   8110: 
                   8111: if test $ac_cv_header_stdc = yes; then
                   8112:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 8113:   if test "$cross_compiling" = yes; then :
1.1       bertrand 8114:   :
                   8115: else
1.15      bertrand 8116:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8117: /* end confdefs.h.  */
                   8118: #include <ctype.h>
                   8119: #include <stdlib.h>
                   8120: #if ((' ' & 0x0FF) == 0x020)
                   8121: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8122: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8123: #else
                   8124: # define ISLOWER(c) \
                   8125:           (('a' <= (c) && (c) <= 'i') \
                   8126:             || ('j' <= (c) && (c) <= 'r') \
                   8127:             || ('s' <= (c) && (c) <= 'z'))
                   8128: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8129: #endif
                   8130: 
                   8131: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   8132: int
                   8133: main ()
                   8134: {
                   8135:   int i;
                   8136:   for (i = 0; i < 256; i++)
                   8137:     if (XOR (islower (i), ISLOWER (i))
                   8138:    || toupper (i) != TOUPPER (i))
                   8139:       return 2;
                   8140:   return 0;
                   8141: }
                   8142: _ACEOF
1.15      bertrand 8143: if ac_fn_c_try_run "$LINENO"; then :
                   8144: 
1.14      bertrand 8145: else
1.15      bertrand 8146:   ac_cv_header_stdc=no
                   8147: fi
                   8148: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8149:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8150: fi
1.1       bertrand 8151: 
                   8152: fi
                   8153: fi
1.15      bertrand 8154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8155: $as_echo "$ac_cv_header_stdc" >&6; }
                   8156: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8157: 
1.15      bertrand 8158: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8159: 
1.1       bertrand 8160: fi
                   8161: 
1.15      bertrand 8162: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8163: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8164:          inttypes.h stdint.h unistd.h
                   8165: do :
                   8166:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8167: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8168: "
1.36      bertrand 8169: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8170:   cat >>confdefs.h <<_ACEOF
                   8171: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8172: _ACEOF
1.1       bertrand 8173: 
                   8174: fi
                   8175: 
1.15      bertrand 8176: done
                   8177: 
                   8178: 
                   8179: # The cast to long int works around a bug in the HP C Compiler
                   8180: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8181: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8182: # This bug is HP SR number 8606223364.
                   8183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8184: $as_echo_n "checking size of void *... " >&6; }
1.57      bertrand 8185: if ${ac_cv_sizeof_void_p+:} false; then :
1.15      bertrand 8186:   $as_echo_n "(cached) " >&6
                   8187: else
                   8188:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8189: 
                   8190: else
1.15      bertrand 8191:   if test "$ac_cv_type_void_p" = yes; then
                   8192:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8193: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8194: as_fn_error 77 "cannot compute sizeof (void *)
1.57      bertrand 8195: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8196:    else
                   8197:      ac_cv_sizeof_void_p=0
                   8198:    fi
                   8199: fi
1.1       bertrand 8200: 
                   8201: fi
1.15      bertrand 8202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8203: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8204: 
1.1       bertrand 8205: 
                   8206: 
1.15      bertrand 8207: cat >>confdefs.h <<_ACEOF
                   8208: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8209: _ACEOF
1.1       bertrand 8210: 
1.15      bertrand 8211: 
                   8212: # The cast to long int works around a bug in the HP C Compiler
                   8213: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8214: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8215: # This bug is HP SR number 8606223364.
                   8216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8217: $as_echo_n "checking size of char... " >&6; }
1.57      bertrand 8218: if ${ac_cv_sizeof_char+:} false; then :
1.15      bertrand 8219:   $as_echo_n "(cached) " >&6
                   8220: else
                   8221:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8222: 
                   8223: else
                   8224:   if test "$ac_cv_type_char" = yes; then
                   8225:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8226: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8227: as_fn_error 77 "cannot compute sizeof (char)
1.57      bertrand 8228: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8229:    else
                   8230:      ac_cv_sizeof_char=0
                   8231:    fi
                   8232: fi
                   8233: 
1.1       bertrand 8234: fi
1.15      bertrand 8235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8236: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8237: 
                   8238: 
                   8239: 
1.15      bertrand 8240: cat >>confdefs.h <<_ACEOF
                   8241: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8242: _ACEOF
1.1       bertrand 8243: 
                   8244: 
1.15      bertrand 8245: # The cast to long int works around a bug in the HP C Compiler
                   8246: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8247: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8248: # This bug is HP SR number 8606223364.
                   8249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8250: $as_echo_n "checking size of short int... " >&6; }
1.57      bertrand 8251: if ${ac_cv_sizeof_short_int+:} false; then :
1.15      bertrand 8252:   $as_echo_n "(cached) " >&6
                   8253: else
                   8254:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8255: 
1.15      bertrand 8256: else
                   8257:   if test "$ac_cv_type_short_int" = yes; then
                   8258:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8259: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8260: as_fn_error 77 "cannot compute sizeof (short int)
1.57      bertrand 8261: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8262:    else
                   8263:      ac_cv_sizeof_short_int=0
                   8264:    fi
                   8265: fi
1.1       bertrand 8266: 
1.15      bertrand 8267: fi
                   8268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8269: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8270: 
                   8271: 
                   8272: 
1.15      bertrand 8273: cat >>confdefs.h <<_ACEOF
                   8274: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8275: _ACEOF
1.1       bertrand 8276: 
                   8277: 
1.15      bertrand 8278: # The cast to long int works around a bug in the HP C Compiler
                   8279: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8280: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8281: # This bug is HP SR number 8606223364.
                   8282: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8283: $as_echo_n "checking size of int... " >&6; }
1.57      bertrand 8284: if ${ac_cv_sizeof_int+:} false; then :
1.15      bertrand 8285:   $as_echo_n "(cached) " >&6
                   8286: else
                   8287:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8288: 
1.15      bertrand 8289: else
                   8290:   if test "$ac_cv_type_int" = yes; then
                   8291:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8292: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8293: as_fn_error 77 "cannot compute sizeof (int)
1.57      bertrand 8294: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8295:    else
                   8296:      ac_cv_sizeof_int=0
                   8297:    fi
                   8298: fi
1.1       bertrand 8299: 
1.15      bertrand 8300: fi
                   8301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8302: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8303: 
                   8304: 
                   8305: 
1.15      bertrand 8306: cat >>confdefs.h <<_ACEOF
                   8307: #define SIZEOF_INT $ac_cv_sizeof_int
                   8308: _ACEOF
1.1       bertrand 8309: 
                   8310: 
1.15      bertrand 8311: # The cast to long int works around a bug in the HP C Compiler
                   8312: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8313: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8314: # This bug is HP SR number 8606223364.
                   8315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8316: $as_echo_n "checking size of long int... " >&6; }
1.57      bertrand 8317: if ${ac_cv_sizeof_long_int+:} false; then :
1.15      bertrand 8318:   $as_echo_n "(cached) " >&6
                   8319: else
                   8320:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8321: 
1.14      bertrand 8322: else
1.15      bertrand 8323:   if test "$ac_cv_type_long_int" = yes; then
                   8324:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8325: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8326: as_fn_error 77 "cannot compute sizeof (long int)
1.57      bertrand 8327: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8328:    else
                   8329:      ac_cv_sizeof_long_int=0
                   8330:    fi
                   8331: fi
1.1       bertrand 8332: 
                   8333: fi
1.15      bertrand 8334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8335: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8336: 
1.1       bertrand 8337: 
                   8338: 
1.15      bertrand 8339: cat >>confdefs.h <<_ACEOF
                   8340: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8341: _ACEOF
1.15      bertrand 8342: 
                   8343: 
                   8344: # The cast to long int works around a bug in the HP C Compiler
                   8345: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8346: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8347: # This bug is HP SR number 8606223364.
                   8348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8349: $as_echo_n "checking size of long long int... " >&6; }
1.57      bertrand 8350: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15      bertrand 8351:   $as_echo_n "(cached) " >&6
                   8352: else
                   8353:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8354: 
1.14      bertrand 8355: else
1.15      bertrand 8356:   if test "$ac_cv_type_long_long_int" = yes; then
                   8357:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8358: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8359: as_fn_error 77 "cannot compute sizeof (long long int)
1.57      bertrand 8360: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8361:    else
                   8362:      ac_cv_sizeof_long_long_int=0
                   8363:    fi
                   8364: fi
1.1       bertrand 8365: 
1.14      bertrand 8366: fi
1.15      bertrand 8367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8368: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8369: 
                   8370: 
                   8371: 
                   8372: cat >>confdefs.h <<_ACEOF
                   8373: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8374: _ACEOF
1.1       bertrand 8375: 
                   8376: 
1.15      bertrand 8377: # The cast to long int works around a bug in the HP C Compiler
                   8378: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8379: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8380: # This bug is HP SR number 8606223364.
                   8381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8382: $as_echo_n "checking size of float... " >&6; }
1.57      bertrand 8383: if ${ac_cv_sizeof_float+:} false; then :
1.15      bertrand 8384:   $as_echo_n "(cached) " >&6
                   8385: else
                   8386:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8387: 
                   8388: else
1.15      bertrand 8389:   if test "$ac_cv_type_float" = yes; then
                   8390:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8391: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8392: as_fn_error 77 "cannot compute sizeof (float)
1.57      bertrand 8393: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8394:    else
                   8395:      ac_cv_sizeof_float=0
                   8396:    fi
1.14      bertrand 8397: fi
                   8398: 
1.1       bertrand 8399: fi
1.15      bertrand 8400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8401: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8402: 
                   8403: 
                   8404: 
                   8405: cat >>confdefs.h <<_ACEOF
                   8406: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8407: _ACEOF
1.1       bertrand 8408: 
                   8409: 
1.15      bertrand 8410: # The cast to long int works around a bug in the HP C Compiler
                   8411: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8412: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8413: # This bug is HP SR number 8606223364.
                   8414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8415: $as_echo_n "checking size of double... " >&6; }
1.57      bertrand 8416: if ${ac_cv_sizeof_double+:} false; then :
1.15      bertrand 8417:   $as_echo_n "(cached) " >&6
                   8418: else
                   8419:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8420: 
1.15      bertrand 8421: else
                   8422:   if test "$ac_cv_type_double" = yes; then
                   8423:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8424: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8425: as_fn_error 77 "cannot compute sizeof (double)
1.57      bertrand 8426: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8427:    else
                   8428:      ac_cv_sizeof_double=0
                   8429:    fi
                   8430: fi
1.1       bertrand 8431: 
1.15      bertrand 8432: fi
                   8433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8434: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8435: 
1.1       bertrand 8436: 
                   8437: 
1.15      bertrand 8438: cat >>confdefs.h <<_ACEOF
                   8439: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8440: _ACEOF
1.15      bertrand 8441: 
                   8442: 
                   8443: # The cast to long int works around a bug in the HP C Compiler
                   8444: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8445: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8446: # This bug is HP SR number 8606223364.
                   8447: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8448: $as_echo_n "checking size of long double... " >&6; }
1.57      bertrand 8449: if ${ac_cv_sizeof_long_double+:} false; then :
1.15      bertrand 8450:   $as_echo_n "(cached) " >&6
                   8451: else
                   8452:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8453: 
1.14      bertrand 8454: else
1.15      bertrand 8455:   if test "$ac_cv_type_long_double" = yes; then
                   8456:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8457: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8458: as_fn_error 77 "cannot compute sizeof (long double)
1.57      bertrand 8459: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8460:    else
                   8461:      ac_cv_sizeof_long_double=0
                   8462:    fi
                   8463: fi
1.1       bertrand 8464: 
                   8465: fi
1.15      bertrand 8466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8467: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8468: 
1.1       bertrand 8469: 
                   8470: 
1.15      bertrand 8471: cat >>confdefs.h <<_ACEOF
                   8472: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8473: _ACEOF
                   8474: 
                   8475: 
1.15      bertrand 8476: 
                   8477: ac_header_dirent=no
                   8478: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8479:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8480: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8481: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.57      bertrand 8482: if eval \${$as_ac_Header+:} false; then :
1.15      bertrand 8483:   $as_echo_n "(cached) " >&6
1.1       bertrand 8484: else
1.15      bertrand 8485:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8486: /* end confdefs.h.  */
                   8487: #include <sys/types.h>
1.15      bertrand 8488: #include <$ac_hdr>
1.1       bertrand 8489: 
1.15      bertrand 8490: int
                   8491: main ()
                   8492: {
                   8493: if ((DIR *) 0)
                   8494: return 0;
                   8495:   ;
                   8496:   return 0;
                   8497: }
1.1       bertrand 8498: _ACEOF
1.15      bertrand 8499: if ac_fn_c_try_compile "$LINENO"; then :
                   8500:   eval "$as_ac_Header=yes"
1.1       bertrand 8501: else
1.15      bertrand 8502:   eval "$as_ac_Header=no"
                   8503: fi
                   8504: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8505: fi
1.15      bertrand 8506: eval ac_res=\$$as_ac_Header
                   8507:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8508: $as_echo "$ac_res" >&6; }
1.36      bertrand 8509: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8510:   cat >>confdefs.h <<_ACEOF
                   8511: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8512: _ACEOF
1.1       bertrand 8513: 
1.15      bertrand 8514: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8515: fi
                   8516: 
1.15      bertrand 8517: done
                   8518: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8519: if test $ac_header_dirent = dirent.h; then
                   8520:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8521: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8522: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8523:   $as_echo_n "(cached) " >&6
                   8524: else
                   8525:   ac_func_search_save_LIBS=$LIBS
                   8526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8527: /* end confdefs.h.  */
                   8528: 
                   8529: /* Override any GCC internal prototype to avoid an error.
                   8530:    Use char because int might match the return type of a GCC
                   8531:    builtin and then its argument prototype would still apply.  */
                   8532: #ifdef __cplusplus
                   8533: extern "C"
                   8534: #endif
                   8535: char opendir ();
                   8536: int
                   8537: main ()
                   8538: {
                   8539: return opendir ();
                   8540:   ;
                   8541:   return 0;
                   8542: }
1.14      bertrand 8543: _ACEOF
1.15      bertrand 8544: for ac_lib in '' dir; do
                   8545:   if test -z "$ac_lib"; then
                   8546:     ac_res="none required"
                   8547:   else
                   8548:     ac_res=-l$ac_lib
                   8549:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8550:   fi
                   8551:   if ac_fn_c_try_link "$LINENO"; then :
                   8552:   ac_cv_search_opendir=$ac_res
                   8553: fi
                   8554: rm -f core conftest.err conftest.$ac_objext \
                   8555:     conftest$ac_exeext
1.57      bertrand 8556:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8557:   break
                   8558: fi
                   8559: done
1.57      bertrand 8560: if ${ac_cv_search_opendir+:} false; then :
1.1       bertrand 8561: 
1.15      bertrand 8562: else
                   8563:   ac_cv_search_opendir=no
                   8564: fi
                   8565: rm conftest.$ac_ext
                   8566: LIBS=$ac_func_search_save_LIBS
                   8567: fi
                   8568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8569: $as_echo "$ac_cv_search_opendir" >&6; }
                   8570: ac_res=$ac_cv_search_opendir
                   8571: if test "$ac_res" != no; then :
                   8572:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8573: 
1.14      bertrand 8574: fi
1.1       bertrand 8575: 
                   8576: else
1.15      bertrand 8577:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8578: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8579: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8580:   $as_echo_n "(cached) " >&6
                   8581: else
                   8582:   ac_func_search_save_LIBS=$LIBS
                   8583: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8584: /* end confdefs.h.  */
1.15      bertrand 8585: 
                   8586: /* Override any GCC internal prototype to avoid an error.
                   8587:    Use char because int might match the return type of a GCC
                   8588:    builtin and then its argument prototype would still apply.  */
                   8589: #ifdef __cplusplus
                   8590: extern "C"
                   8591: #endif
                   8592: char opendir ();
1.1       bertrand 8593: int
                   8594: main ()
                   8595: {
1.15      bertrand 8596: return opendir ();
1.1       bertrand 8597:   ;
                   8598:   return 0;
                   8599: }
                   8600: _ACEOF
1.15      bertrand 8601: for ac_lib in '' x; do
                   8602:   if test -z "$ac_lib"; then
                   8603:     ac_res="none required"
                   8604:   else
                   8605:     ac_res=-l$ac_lib
                   8606:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8607:   fi
                   8608:   if ac_fn_c_try_link "$LINENO"; then :
                   8609:   ac_cv_search_opendir=$ac_res
                   8610: fi
                   8611: rm -f core conftest.err conftest.$ac_objext \
                   8612:     conftest$ac_exeext
1.57      bertrand 8613:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8614:   break
                   8615: fi
                   8616: done
1.57      bertrand 8617: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8618: 
1.1       bertrand 8619: else
1.15      bertrand 8620:   ac_cv_search_opendir=no
                   8621: fi
                   8622: rm conftest.$ac_ext
                   8623: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8624: fi
1.15      bertrand 8625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8626: $as_echo "$ac_cv_search_opendir" >&6; }
                   8627: ac_res=$ac_cv_search_opendir
                   8628: if test "$ac_res" != no; then :
                   8629:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8630: 
1.1       bertrand 8631: fi
                   8632: 
                   8633: fi
                   8634: 
1.15      bertrand 8635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8636: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8637: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8638:   $as_echo_n "(cached) " >&6
1.1       bertrand 8639: else
1.15      bertrand 8640:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8641: /* end confdefs.h.  */
1.15      bertrand 8642: #include <stdlib.h>
                   8643: #include <stdarg.h>
                   8644: #include <string.h>
                   8645: #include <float.h>
                   8646: 
1.1       bertrand 8647: int
                   8648: main ()
                   8649: {
1.15      bertrand 8650: 
1.1       bertrand 8651:   ;
                   8652:   return 0;
                   8653: }
                   8654: _ACEOF
1.15      bertrand 8655: if ac_fn_c_try_compile "$LINENO"; then :
                   8656:   ac_cv_header_stdc=yes
1.14      bertrand 8657: else
1.15      bertrand 8658:   ac_cv_header_stdc=no
                   8659: fi
                   8660: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8661: 
                   8662: if test $ac_cv_header_stdc = yes; then
                   8663:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8664:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8665: /* end confdefs.h.  */
                   8666: #include <string.h>
                   8667: 
                   8668: _ACEOF
                   8669: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8670:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8671: 
1.15      bertrand 8672: else
                   8673:   ac_cv_header_stdc=no
1.1       bertrand 8674: fi
1.15      bertrand 8675: rm -f conftest*
1.14      bertrand 8676: 
1.1       bertrand 8677: fi
                   8678: 
1.15      bertrand 8679: if test $ac_cv_header_stdc = yes; then
                   8680:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8681:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8682: /* end confdefs.h.  */
                   8683: #include <stdlib.h>
                   8684: 
1.14      bertrand 8685: _ACEOF
1.15      bertrand 8686: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8687:   $EGREP "free" >/dev/null 2>&1; then :
                   8688: 
                   8689: else
                   8690:   ac_cv_header_stdc=no
                   8691: fi
                   8692: rm -f conftest*
1.1       bertrand 8693: 
                   8694: fi
                   8695: 
1.15      bertrand 8696: if test $ac_cv_header_stdc = yes; then
                   8697:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8698:   if test "$cross_compiling" = yes; then :
                   8699:   :
1.1       bertrand 8700: else
1.15      bertrand 8701:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8702: /* end confdefs.h.  */
1.15      bertrand 8703: #include <ctype.h>
                   8704: #include <stdlib.h>
                   8705: #if ((' ' & 0x0FF) == 0x020)
                   8706: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8707: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8708: #else
                   8709: # define ISLOWER(c) \
                   8710:           (('a' <= (c) && (c) <= 'i') \
                   8711:             || ('j' <= (c) && (c) <= 'r') \
                   8712:             || ('s' <= (c) && (c) <= 'z'))
                   8713: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8714: #endif
1.1       bertrand 8715: 
1.15      bertrand 8716: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8717: int
                   8718: main ()
                   8719: {
1.15      bertrand 8720:   int i;
                   8721:   for (i = 0; i < 256; i++)
                   8722:     if (XOR (islower (i), ISLOWER (i))
                   8723:    || toupper (i) != TOUPPER (i))
                   8724:       return 2;
1.1       bertrand 8725:   return 0;
                   8726: }
                   8727: _ACEOF
1.15      bertrand 8728: if ac_fn_c_try_run "$LINENO"; then :
                   8729: 
1.14      bertrand 8730: else
1.15      bertrand 8731:   ac_cv_header_stdc=no
                   8732: fi
                   8733: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8734:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8735: fi
1.14      bertrand 8736: 
1.1       bertrand 8737: fi
                   8738: fi
1.15      bertrand 8739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8740: $as_echo "$ac_cv_header_stdc" >&6; }
                   8741: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8742: 
1.15      bertrand 8743: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8744: 
                   8745: fi
                   8746: 
1.15      bertrand 8747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8748: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.57      bertrand 8749: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15      bertrand 8750:   $as_echo_n "(cached) " >&6
1.1       bertrand 8751: else
1.15      bertrand 8752:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8753: /* end confdefs.h.  */
1.14      bertrand 8754: #include <sys/types.h>
1.15      bertrand 8755: #include <sys/wait.h>
                   8756: #ifndef WEXITSTATUS
                   8757: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8758: #endif
                   8759: #ifndef WIFEXITED
                   8760: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8761: #endif
1.1       bertrand 8762: 
                   8763: int
                   8764: main ()
                   8765: {
1.15      bertrand 8766:   int s;
                   8767:   wait (&s);
                   8768:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8769:   ;
                   8770:   return 0;
                   8771: }
                   8772: _ACEOF
1.15      bertrand 8773: if ac_fn_c_try_compile "$LINENO"; then :
                   8774:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8775: else
1.15      bertrand 8776:   ac_cv_header_sys_wait_h=no
                   8777: fi
                   8778: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8779: fi
                   8780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8781: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8782: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8783: 
1.15      bertrand 8784: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8785: 
                   8786: fi
                   8787: 
1.15      bertrand 8788: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8789:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8790:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8791: do :
                   8792:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8793: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8794: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8795:   cat >>confdefs.h <<_ACEOF
                   8796: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8797: _ACEOF
                   8798: 
                   8799: fi
                   8800: 
1.15      bertrand 8801: done
                   8802: 
1.1       bertrand 8803: 
1.15      bertrand 8804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8805: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.57      bertrand 8806: if ${ac_cv_c_const+:} false; then :
1.15      bertrand 8807:   $as_echo_n "(cached) " >&6
1.1       bertrand 8808: else
1.15      bertrand 8809:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8810: /* end confdefs.h.  */
                   8811: 
                   8812: int
                   8813: main ()
                   8814: {
1.15      bertrand 8815: /* FIXME: Include the comments suggested by Paul. */
                   8816: #ifndef __cplusplus
                   8817:   /* Ultrix mips cc rejects this.  */
                   8818:   typedef int charset[2];
                   8819:   const charset cs;
                   8820:   /* SunOS 4.1.1 cc rejects this.  */
                   8821:   char const *const *pcpcc;
                   8822:   char **ppc;
                   8823:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8824:   struct point {int x, y;};
                   8825:   static struct point const zero = {0,0};
                   8826:   /* AIX XL C 1.02.0.0 rejects this.
                   8827:      It does not let you subtract one const X* pointer from another in
                   8828:      an arm of an if-expression whose if-part is not a constant
                   8829:      expression */
                   8830:   const char *g = "string";
                   8831:   pcpcc = &g + (g ? g-g : 0);
                   8832:   /* HPUX 7.0 cc rejects these. */
                   8833:   ++pcpcc;
                   8834:   ppc = (char**) pcpcc;
                   8835:   pcpcc = (char const *const *) ppc;
                   8836:   { /* SCO 3.2v4 cc rejects this.  */
                   8837:     char *t;
                   8838:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8839: 
                   8840:     *t++ = 0;
                   8841:     if (s) return 0;
                   8842:   }
                   8843:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8844:     int x[] = {25, 17};
                   8845:     const int *foo = &x[0];
                   8846:     ++foo;
                   8847:   }
                   8848:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8849:     typedef const int *iptr;
                   8850:     iptr p = 0;
                   8851:     ++p;
                   8852:   }
                   8853:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8854:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8855:     struct s { int j; const int *ap[3]; };
                   8856:     struct s *b; b->j = 5;
                   8857:   }
                   8858:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8859:     const int foo = 10;
                   8860:     if (!foo) return 0;
                   8861:   }
                   8862:   return !cs[0] && !zero.x;
                   8863: #endif
                   8864: 
1.14      bertrand 8865:   ;
1.1       bertrand 8866:   return 0;
                   8867: }
                   8868: _ACEOF
1.15      bertrand 8869: if ac_fn_c_try_compile "$LINENO"; then :
                   8870:   ac_cv_c_const=yes
1.14      bertrand 8871: else
1.15      bertrand 8872:   ac_cv_c_const=no
1.1       bertrand 8873: fi
1.14      bertrand 8874: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8875: fi
1.15      bertrand 8876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8877: $as_echo "$ac_cv_c_const" >&6; }
                   8878: if test $ac_cv_c_const = no; then
1.1       bertrand 8879: 
1.15      bertrand 8880: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8881: 
1.15      bertrand 8882: fi
1.1       bertrand 8883: 
1.15      bertrand 8884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8885: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.57      bertrand 8886: if ${ac_cv_type_uid_t+:} false; then :
1.15      bertrand 8887:   $as_echo_n "(cached) " >&6
1.1       bertrand 8888: else
1.15      bertrand 8889:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8890: /* end confdefs.h.  */
1.15      bertrand 8891: #include <sys/types.h>
                   8892: 
1.1       bertrand 8893: _ACEOF
1.15      bertrand 8894: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8895:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8896:   ac_cv_type_uid_t=yes
1.1       bertrand 8897: else
1.15      bertrand 8898:   ac_cv_type_uid_t=no
                   8899: fi
                   8900: rm -f conftest*
1.14      bertrand 8901: 
1.1       bertrand 8902: fi
1.15      bertrand 8903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8904: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8905: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8906: 
1.15      bertrand 8907: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8908: 
                   8909: 
1.15      bertrand 8910: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8911: 
                   8912: fi
                   8913: 
1.15      bertrand 8914: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.57      bertrand 8915: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1       bertrand 8916: 
                   8917: else
1.15      bertrand 8918: 
                   8919: cat >>confdefs.h <<_ACEOF
                   8920: #define pid_t int
1.14      bertrand 8921: _ACEOF
                   8922: 
1.15      bertrand 8923: fi
1.14      bertrand 8924: 
1.15      bertrand 8925: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.57      bertrand 8926: if test "x$ac_cv_type_size_t" = xyes; then :
1.14      bertrand 8927: 
1.15      bertrand 8928: else
1.1       bertrand 8929: 
1.15      bertrand 8930: cat >>confdefs.h <<_ACEOF
                   8931: #define size_t unsigned int
1.1       bertrand 8932: _ACEOF
1.14      bertrand 8933: 
1.1       bertrand 8934: fi
                   8935: 
1.15      bertrand 8936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8937: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.57      bertrand 8938: if ${ac_cv_header_time+:} false; then :
1.15      bertrand 8939:   $as_echo_n "(cached) " >&6
1.1       bertrand 8940: else
1.15      bertrand 8941:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8942: /* end confdefs.h.  */
1.15      bertrand 8943: #include <sys/types.h>
                   8944: #include <sys/time.h>
                   8945: #include <time.h>
1.1       bertrand 8946: 
1.14      bertrand 8947: int
                   8948: main ()
                   8949: {
1.15      bertrand 8950: if ((struct tm *) 0)
                   8951: return 0;
1.14      bertrand 8952:   ;
                   8953:   return 0;
                   8954: }
1.1       bertrand 8955: _ACEOF
1.15      bertrand 8956: if ac_fn_c_try_compile "$LINENO"; then :
                   8957:   ac_cv_header_time=yes
1.1       bertrand 8958: else
1.15      bertrand 8959:   ac_cv_header_time=no
1.1       bertrand 8960: fi
1.15      bertrand 8961: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8962: fi
1.15      bertrand 8963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   8964: $as_echo "$ac_cv_header_time" >&6; }
                   8965: if test $ac_cv_header_time = yes; then
1.1       bertrand 8966: 
1.15      bertrand 8967: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 8968: 
                   8969: fi
                   8970: 
1.15      bertrand 8971: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   8972: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.57      bertrand 8973: if ${ac_cv_struct_tm+:} false; then :
1.15      bertrand 8974:   $as_echo_n "(cached) " >&6
1.1       bertrand 8975: else
1.15      bertrand 8976:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8977: /* end confdefs.h.  */
1.15      bertrand 8978: #include <sys/types.h>
                   8979: #include <time.h>
1.1       bertrand 8980: 
                   8981: int
                   8982: main ()
                   8983: {
1.15      bertrand 8984: struct tm tm;
                   8985:                     int *p = &tm.tm_sec;
                   8986:                     return !p;
1.1       bertrand 8987:   ;
                   8988:   return 0;
                   8989: }
                   8990: _ACEOF
1.15      bertrand 8991: if ac_fn_c_try_compile "$LINENO"; then :
                   8992:   ac_cv_struct_tm=time.h
1.1       bertrand 8993: else
1.15      bertrand 8994:   ac_cv_struct_tm=sys/time.h
                   8995: fi
                   8996: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8997: fi
                   8998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   8999: $as_echo "$ac_cv_struct_tm" >&6; }
                   9000: if test $ac_cv_struct_tm = sys/time.h; then
                   9001: 
                   9002: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 9003: 
1.1       bertrand 9004: fi
                   9005: 
                   9006: 
1.15      bertrand 9007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   9008: $as_echo_n "checking return type of signal handlers... " >&6; }
1.57      bertrand 9009: if ${ac_cv_type_signal+:} false; then :
1.15      bertrand 9010:   $as_echo_n "(cached) " >&6
1.1       bertrand 9011: else
1.15      bertrand 9012:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9013: /* end confdefs.h.  */
1.15      bertrand 9014: #include <sys/types.h>
                   9015: #include <signal.h>
1.1       bertrand 9016: 
                   9017: int
                   9018: main ()
                   9019: {
1.15      bertrand 9020: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 9021:   ;
                   9022:   return 0;
                   9023: }
                   9024: _ACEOF
1.15      bertrand 9025: if ac_fn_c_try_compile "$LINENO"; then :
                   9026:   ac_cv_type_signal=int
1.1       bertrand 9027: else
1.15      bertrand 9028:   ac_cv_type_signal=void
1.1       bertrand 9029: fi
1.15      bertrand 9030: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9031: fi
1.15      bertrand 9032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   9033: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 9034: 
1.15      bertrand 9035: cat >>confdefs.h <<_ACEOF
                   9036: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 9037: _ACEOF
1.1       bertrand 9038: 
1.15      bertrand 9039: 
                   9040: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   9041: $as_echo_n "checking for working strcoll... " >&6; }
1.57      bertrand 9042: if ${ac_cv_func_strcoll_works+:} false; then :
1.15      bertrand 9043:   $as_echo_n "(cached) " >&6
                   9044: else
                   9045:   if test "$cross_compiling" = yes; then :
                   9046:   ac_cv_func_strcoll_works=no
                   9047: else
                   9048:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9049: /* end confdefs.h.  */
                   9050: $ac_includes_default
                   9051: int
                   9052: main ()
                   9053: {
                   9054: return (strcoll ("abc", "def") >= 0 ||
                   9055:     strcoll ("ABC", "DEF") >= 0 ||
                   9056:     strcoll ("123", "456") >= 0)
                   9057:   ;
                   9058:   return 0;
                   9059: }
                   9060: _ACEOF
                   9061: if ac_fn_c_try_run "$LINENO"; then :
                   9062:   ac_cv_func_strcoll_works=yes
                   9063: else
                   9064:   ac_cv_func_strcoll_works=no
                   9065: fi
                   9066: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9067:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 9068: fi
1.1       bertrand 9069: 
                   9070: fi
1.15      bertrand 9071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   9072: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   9073: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 9074: 
1.15      bertrand 9075: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 9076: 
1.15      bertrand 9077: fi
1.1       bertrand 9078: 
1.15      bertrand 9079: for ac_func in strftime
                   9080: do :
                   9081:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.57      bertrand 9082: if test "x$ac_cv_func_strftime" = xyes; then :
1.15      bertrand 9083:   cat >>confdefs.h <<_ACEOF
                   9084: #define HAVE_STRFTIME 1
                   9085: _ACEOF
1.1       bertrand 9086: 
                   9087: else
1.15      bertrand 9088:   # strftime is in -lintl on SCO UNIX.
                   9089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   9090: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.57      bertrand 9091: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15      bertrand 9092:   $as_echo_n "(cached) " >&6
                   9093: else
                   9094:   ac_check_lib_save_LIBS=$LIBS
                   9095: LIBS="-lintl  $LIBS"
                   9096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9097: /* end confdefs.h.  */
                   9098: 
                   9099: /* Override any GCC internal prototype to avoid an error.
                   9100:    Use char because int might match the return type of a GCC
                   9101:    builtin and then its argument prototype would still apply.  */
                   9102: #ifdef __cplusplus
                   9103: extern "C"
                   9104: #endif
1.15      bertrand 9105: char strftime ();
1.1       bertrand 9106: int
                   9107: main ()
                   9108: {
1.15      bertrand 9109: return strftime ();
1.1       bertrand 9110:   ;
                   9111:   return 0;
                   9112: }
                   9113: _ACEOF
1.15      bertrand 9114: if ac_fn_c_try_link "$LINENO"; then :
                   9115:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9116: else
1.15      bertrand 9117:   ac_cv_lib_intl_strftime=no
                   9118: fi
                   9119: rm -f core conftest.err conftest.$ac_objext \
                   9120:     conftest$ac_exeext conftest.$ac_ext
                   9121: LIBS=$ac_check_lib_save_LIBS
                   9122: fi
                   9123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9124: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.57      bertrand 9125: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15      bertrand 9126:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9127: 
                   9128: LIBS="-lintl $LIBS"
                   9129: fi
                   9130: 
                   9131: fi
                   9132: done
                   9133: 
                   9134: for ac_func in vprintf
                   9135: do :
                   9136:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.57      bertrand 9137: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15      bertrand 9138:   cat >>confdefs.h <<_ACEOF
                   9139: #define HAVE_VPRINTF 1
                   9140: _ACEOF
                   9141: 
                   9142: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.57      bertrand 9143: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15      bertrand 9144: 
                   9145: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9146: 
                   9147: fi
                   9148: 
                   9149: fi
1.15      bertrand 9150: done
                   9151: 
                   9152: 
                   9153: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9154:        strerror strspn strstr strtod
                   9155: do :
                   9156:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9157: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9158: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9159:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9160: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9161: _ACEOF
                   9162: 
                   9163: fi
                   9164: done
                   9165: 
                   9166: 
1.15      bertrand 9167: 
                   9168: # Check whether --with-openssl_arch was given.
                   9169: if test "${with_openssl_arch+set}" = set; then :
                   9170:   withval=$with_openssl_arch;
                   9171: else
                   9172:   with_openssl_arch=none
                   9173: fi
                   9174: 
                   9175: 
1.31      bertrand 9176: if test $(uname) = "OS/2"; then
1.34      bertrand 9177:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9178: else
1.31      bertrand 9179:    if test "x$with_openssl_arch" = xnone; then
1.67      bertrand 9180:        (cd tools/$OPENSSL && ./config no-asm)
1.31      bertrand 9181:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9182:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9183:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9184:    elif test "x$with_openssl_arch" = xlist; then
                   9185:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9186:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9187:    else
1.67      bertrand 9188:        (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31      bertrand 9189:    fi
1.15      bertrand 9190: fi
1.1       bertrand 9191: 
                   9192: if test "$MYGNUPLOT" = "yes"; then
                   9193:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9194:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9195:                (cd "$srcdir/tools" && tar -xf -)
                   9196:    fi
1.69      bertrand 9197: 
                   9198: 
                   9199: subdirs="$subdirs tools/$GNUPLOT"
1.1       bertrand 9200: 
                   9201:    GNUPLOT_COMPILATION=$GNUPLOT
                   9202: else
                   9203:    GNUPLOT_COMPILATION=
                   9204: fi
                   9205: 
                   9206: 
                   9207: 
1.69      bertrand 9208: HOST=$host
                   9209: 
                   9210: 
1.1       bertrand 9211: case $host_cpu in
                   9212: 
                   9213:     i?86)
                   9214:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9215:            -Wno-pointer-sign"
                   9216:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9217:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9218:    break ;;
                   9219: 
                   9220:    x86_64*)
                   9221:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9222:            -Wno-pointer-sign"
                   9223:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9224:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9225:    break ;;
                   9226: 
                   9227:     alpha*)
                   9228:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   9229:            -Wno-pointer-sign"
                   9230:    FFLAGS="$FFLAGS -mieee -Wall"
                   9231:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   9232:    break ;;
                   9233: 
                   9234:     sparc*)
                   9235:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   9236:            -Wno-pointer-sign"
                   9237:    FFLAGS="$FFLAGS -Wall"
                   9238:    FCFLAGS="$FCFLAGS -Wall"
                   9239:    break ;;
                   9240: 
                   9241: esac
                   9242: 
1.8       bertrand 9243: case $host_os in
                   9244: 
                   9245:    cygwin*)
                   9246:        OS=Cygwin
                   9247:    break ;;
                   9248: 
                   9249:    interix*)
                   9250:        OS=Interix
                   9251:    break ;;
                   9252: 
                   9253:    *)
                   9254:        OS=$(uname)
                   9255:    break ;;
                   9256: 
                   9257: esac
                   9258: 
                   9259: 
                   9260: 
1.1       bertrand 9261: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9262: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49      bertrand 9263: MALLOC=
1.1       bertrand 9264: 
1.22      bertrand 9265: case $OS in
1.17      bertrand 9266: 
                   9267:     Darwin)
1.31      bertrand 9268:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9269:        NESTED_FUNCTIONS=-fnested-functions
                   9270:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9271:        IPCS_SYSV=-UIPCS_SYSV
1.23      bertrand 9272:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9273:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9274:                --disable-shared --enable-static --enable-threads \
                   9275:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9276:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9277:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9278:        C_STANDARD=-std=gnu99
1.75      bertrand 9279:        ELF=
1.17      bertrand 9280:    break ;;
                   9281: 
1.31      bertrand 9282:     Cygwin)
                   9283:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9284:        NESTED_FUNCTIONS=
                   9285:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9286:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9287:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9288:                --disable-shared --enable-static --enable-threads \
                   9289:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9290:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9291:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9292:        C_STANDARD=-std=gnu99
1.75      bertrand 9293:        ELF=
1.17      bertrand 9294:    break ;;
                   9295: 
1.34      bertrand 9296:    Interix)
                   9297:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9298:        NESTED_FUNCTIONS=
                   9299:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9300:        IPCS_SYSV=-UIPCS_SYSV
1.34      bertrand 9301:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9302:                --disable-shared --enable-static --enable-threads \
                   9303:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9304:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9305:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 9306:        C_STANDARD=-std=gnu99
1.75      bertrand 9307:        ELF=
1.34      bertrand 9308:    break;;
                   9309: 
1.31      bertrand 9310:     AIX)
                   9311:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9312:        NESTED_FUNCTIONS=
                   9313:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9314:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9315:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9316:                --disable-shared --enable-static --enable-threads \
                   9317:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9318:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9319:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9320:        C_STANDARD=-std=gnu99
1.75      bertrand 9321:        ELF=
1.18      bertrand 9322:    break ;;
                   9323: 
1.31      bertrand 9324:     OS/2)
1.37      bertrand 9325:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9326:            FINAL_ENCODING=CP850; \
                   9327:        fi;
1.31      bertrand 9328:        OS=OS2
                   9329:        NESTED_FUNCTIONS=
                   9330:        EXPORT_DYNAMIC=-Zmap
                   9331:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9332:        IPCS_SYSV=-DIPCS_SYSV
1.31      bertrand 9333:        ac_configure_args="$ac_configure_args --without-readline \
1.49      bertrand 9334:                --without-cairo --disable-shared --enable-static \
1.69      bertrand 9335:                --enable-threads \
                   9336:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9337:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9338:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9339:        C_STANDARD=
1.75      bertrand 9340:        ELF=
1.31      bertrand 9341:    break;;
                   9342: 
1.35      bertrand 9343:    OpenBSD)
1.37      bertrand 9344:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9345:            FINAL_ENCODING=UTF-8; \
                   9346:        fi;
                   9347:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9348:        NESTED_FUNCTIONS=
                   9349:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9350:        IPCS_SYSV=-DIPCS_SYSV
1.35      bertrand 9351:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9352:                --disable-shared --enable-static --enable-threads \
                   9353:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9354:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9355:                LDFLAGS=\"$LDFLAGS\""
1.35      bertrand 9356:        C_STANDARD=-std=gnu99
1.75      bertrand 9357:        ELF=
1.35      bertrand 9358:    break;;
                   9359: 
1.49      bertrand 9360:     SunOS)
                   9361:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9362:        NESTED_FUNCTIONS=
                   9363:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9364: 
                   9365:        if test $IPCS_SYSV = no; then
                   9366:            IPCS_SYSV=-UIPCS_SYSV
                   9367:        else
                   9368:            IPCS_SYSV=-DIPCS_SYSV
                   9369:        fi
                   9370: 
                   9371:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9372:                --disable-shared --enable-static --enable-threads \
                   9373:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9374:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9375:                LDFLAGS=\"$LDFLAGS\""
1.49      bertrand 9376:        C_STANDARD=-std=gnu99
                   9377:        MALLOC=-lumem
1.75      bertrand 9378:        ELF=
                   9379:    break ;;
                   9380: 
                   9381:     NetBSD)
                   9382:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9383:        NESTED_FUNCTIONS=
                   9384:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   9385: 
                   9386:        if test $IPCS_SYSV = no; then
                   9387:            IPCS_SYSV=-UIPCS_SYSV
                   9388:        else
                   9389:            IPCS_SYSV=-DIPCS_SYSV
                   9390:        fi
                   9391: 
                   9392:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9393:                --disable-shared --enable-static --enable-threads \
                   9394:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9395:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9396:                LDFLAGS=\"$LDFLAGS\""
                   9397:        C_STANDARD=-std=gnu99
                   9398:        GCCBIN=`which gcc`
                   9399:        GCCLIB=`dirname $GCCBIN`/../lib
                   9400:        ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49      bertrand 9401:    break ;;
                   9402: 
1.17      bertrand 9403:     *)
1.31      bertrand 9404:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9405:        NESTED_FUNCTIONS=
                   9406:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9407: 
                   9408:        if test $IPCS_SYSV = no; then
                   9409:            IPCS_SYSV=-UIPCS_SYSV
                   9410:        else
                   9411:            IPCS_SYSV=-DIPCS_SYSV
                   9412:        fi
                   9413: 
1.31      bertrand 9414:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9415:                --disable-shared --enable-static --enable-threads \
                   9416:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9417:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9418:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9419:        C_STANDARD=-std=gnu99
1.75      bertrand 9420:        ELF=
1.17      bertrand 9421:    break ;;
                   9422: 
                   9423: esac
                   9424: 
                   9425: 
                   9426: 
                   9427: 
1.1       bertrand 9428: 
                   9429: 
                   9430: 
                   9431: 
                   9432: 
                   9433: 
                   9434: 
                   9435: 
                   9436: 
                   9437: 
                   9438: 
                   9439: 
                   9440: 
                   9441: 
                   9442: 
                   9443: 
                   9444: 
                   9445: 
                   9446: 
1.9       bertrand 9447: 
1.24      bertrand 9448: 
1.30      bertrand 9449: 
1.33      bertrand 9450: 
                   9451: 
                   9452: 
1.34      bertrand 9453: 
1.35      bertrand 9454: 
1.49      bertrand 9455: 
1.55      bertrand 9456: 
                   9457: 
1.56      bertrand 9458: 
                   9459: 
                   9460: 
                   9461: 
1.69      bertrand 9462: 
1.75      bertrand 9463: 
1.78    ! bertrand 9464: 
1.69      bertrand 9465: subdirs="$subdirs tools/$NCURSES"
                   9466: 
                   9467: subdirs="$subdirs tools/$READLINE"
                   9468: 
                   9469: subdirs="$subdirs tools/$GSL"
                   9470: 
                   9471: subdirs="$subdirs tools/$GPP"
                   9472: 
                   9473: subdirs="$subdirs tools/$FILE"
                   9474: 
                   9475: subdirs="$subdirs tools/$ICONV"
                   9476: 
                   9477: subdirs="$subdirs tools/$SQLITE"
                   9478: 
                   9479: subdirs="$subdirs tools/$UNITS"
                   9480: 
1.76      bertrand 9481: subdirs="$subdirs tools/$SIGSEGV"
                   9482: 
1.69      bertrand 9483: 
1.1       bertrand 9484: ac_config_files="$ac_config_files Makefile"
                   9485: 
                   9486: ac_config_files="$ac_config_files COPYING"
                   9487: 
                   9488: ac_config_files="$ac_config_files tools/Makefile"
                   9489: 
                   9490: ac_config_files="$ac_config_files src/Makefile"
                   9491: 
                   9492: ac_config_files="$ac_config_files man/Makefile"
                   9493: 
                   9494: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9495: 
                   9496: ac_config_files="$ac_config_files doc/Makefile"
                   9497: 
                   9498: ac_config_files="$ac_config_files scripts/Makefile"
                   9499: 
                   9500: ac_config_files="$ac_config_files scripts/mkrplso"
                   9501: 
                   9502: ac_config_files="$ac_config_files scripts/rplcc"
                   9503: 
                   9504: ac_config_files="$ac_config_files scripts/rpllink"
                   9505: 
                   9506: ac_config_files="$ac_config_files rpltags/Makefile"
                   9507: 
                   9508: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9509: 
1.9       bertrand 9510: ac_config_files="$ac_config_files rplsums/Makefile"
                   9511: 
1.55      bertrand 9512: ac_config_files="$ac_config_files rplcas/Makefile"
                   9513: 
1.39      bertrand 9514: ac_config_files="$ac_config_files rplawk/Makefile"
                   9515: 
1.1       bertrand 9516: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9517: 
                   9518: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9519: 
                   9520: 
                   9521: ac_config_files="$ac_config_files man/rpl.1"
                   9522: 
                   9523: ac_config_files="$ac_config_files man/rplcc.1"
                   9524: 
                   9525: ac_config_files="$ac_config_files man/rpllink.1"
                   9526: 
                   9527: ac_config_files="$ac_config_files man/rpltags.1"
                   9528: 
                   9529: ac_config_files="$ac_config_files man/mkrplso.1"
                   9530: 
                   9531: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9532: 
                   9533: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9534: 
                   9535: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9536: 
                   9537: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9538: 
                   9539: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9540: 
                   9541: 
                   9542: cat >confcache <<\_ACEOF
                   9543: # This file is a shell script that caches the results of configure
                   9544: # tests run on this system so they can be shared between configure
                   9545: # scripts and configure runs, see configure's option --config-cache.
                   9546: # It is not useful on other systems.  If it contains results you don't
                   9547: # want to keep, you may remove or edit it.
                   9548: #
                   9549: # config.status only pays attention to the cache file if you give it
                   9550: # the --recheck option to rerun configure.
                   9551: #
                   9552: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9553: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9554: # following values.
                   9555: 
                   9556: _ACEOF
                   9557: 
                   9558: # The following way of writing the cache mishandles newlines in values,
                   9559: # but we know of no workaround that is simple, portable, and efficient.
                   9560: # So, we kill variables containing newlines.
                   9561: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9562: # and sets the high bit in the cache file unless we assign to the vars.
                   9563: (
                   9564:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9565:     eval ac_val=\$$ac_var
                   9566:     case $ac_val in #(
                   9567:     *${as_nl}*)
                   9568:       case $ac_var in #(
1.15      bertrand 9569:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9570: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9571:       esac
                   9572:       case $ac_var in #(
                   9573:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9574:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9575:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9576:       esac ;;
                   9577:     esac
                   9578:   done
                   9579: 
                   9580:   (set) 2>&1 |
                   9581:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9582:     *${as_nl}ac_space=\ *)
1.15      bertrand 9583:       # `set' does not quote correctly, so add quotes: double-quote
                   9584:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9585:       sed -n \
                   9586:    "s/'/'\\\\''/g;
                   9587:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9588:       ;; #(
                   9589:     *)
                   9590:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9591:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9592:       ;;
                   9593:     esac |
                   9594:     sort
                   9595: ) |
                   9596:   sed '
                   9597:      /^ac_cv_env_/b end
                   9598:      t clear
                   9599:      :clear
                   9600:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9601:      t end
                   9602:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9603:      :end' >>confcache
                   9604: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9605:   if test -w "$cache_file"; then
1.57      bertrand 9606:     if test "x$cache_file" != "x/dev/null"; then
1.15      bertrand 9607:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9608: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.57      bertrand 9609:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   9610:    cat confcache >"$cache_file"
                   9611:       else
                   9612:         case $cache_file in #(
                   9613:         */* | ?:*)
                   9614:      mv -f confcache "$cache_file"$$ &&
                   9615:      mv -f "$cache_file"$$ "$cache_file" ;; #(
                   9616:         *)
                   9617:      mv -f confcache "$cache_file" ;;
                   9618:    esac
                   9619:       fi
                   9620:     fi
1.1       bertrand 9621:   else
1.15      bertrand 9622:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9623: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9624:   fi
                   9625: fi
                   9626: rm -f confcache
                   9627: 
                   9628: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9629: # Let make expand exec_prefix.
                   9630: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9631: 
                   9632: DEFS=-DHAVE_CONFIG_H
                   9633: 
                   9634: ac_libobjs=
                   9635: ac_ltlibobjs=
1.36      bertrand 9636: U=
1.1       bertrand 9637: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9638:   # 1. Remove the extension, and $U if already installed.
                   9639:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9640:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9641:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9642:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9643:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9644:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9645: done
                   9646: LIBOBJS=$ac_libobjs
                   9647: 
                   9648: LTLIBOBJS=$ac_ltlibobjs
                   9649: 
                   9650: 
1.15      bertrand 9651:  if test -n "$EXEEXT"; then
                   9652:   am__EXEEXT_TRUE=
                   9653:   am__EXEEXT_FALSE='#'
                   9654: else
                   9655:   am__EXEEXT_TRUE='#'
                   9656:   am__EXEEXT_FALSE=
                   9657: fi
                   9658: 
1.1       bertrand 9659: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9660:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9661: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9662: fi
                   9663: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9664:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9665: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9666: fi
                   9667: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9668:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9669: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9670: fi
                   9671: 
1.57      bertrand 9672: : "${CONFIG_STATUS=./config.status}"
1.15      bertrand 9673: ac_write_fail=0
1.1       bertrand 9674: ac_clean_files_save=$ac_clean_files
                   9675: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9676: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9677: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9678: as_write_fail=0
                   9679: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9680: #! $SHELL
                   9681: # Generated by $as_me.
                   9682: # Run this file to recreate the current configuration.
                   9683: # Compiler output produced by configure, useful for debugging
                   9684: # configure, is in config.log if it exists.
                   9685: 
                   9686: debug=false
                   9687: ac_cs_recheck=false
                   9688: ac_cs_silent=false
1.15      bertrand 9689: 
1.14      bertrand 9690: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9691: export SHELL
                   9692: _ASEOF
                   9693: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9694: ## -------------------- ##
                   9695: ## M4sh Initialization. ##
                   9696: ## -------------------- ##
1.1       bertrand 9697: 
                   9698: # Be more Bourne compatible
                   9699: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9700: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9701:   emulate sh
                   9702:   NULLCMD=:
1.15      bertrand 9703:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9704:   # is contrary to our usage.  Disable this feature.
                   9705:   alias -g '${1+"$@"}'='"$@"'
                   9706:   setopt NO_GLOB_SUBST
                   9707: else
1.15      bertrand 9708:   case `(set -o) 2>/dev/null` in #(
                   9709:   *posix*) :
                   9710:     set -o posix ;; #(
                   9711:   *) :
                   9712:      ;;
1.1       bertrand 9713: esac
                   9714: fi
                   9715: 
                   9716: 
1.15      bertrand 9717: as_nl='
                   9718: '
                   9719: export as_nl
                   9720: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9721: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9722: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9723: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9724: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9725: # but without wasting forks for bash or zsh.
                   9726: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9727:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9728:   as_echo='print -r --'
                   9729:   as_echo_n='print -rn --'
                   9730: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9731:   as_echo='printf %s\n'
                   9732:   as_echo_n='printf %s'
                   9733: else
                   9734:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9735:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9736:     as_echo_n='/usr/ucb/echo -n'
                   9737:   else
                   9738:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9739:     as_echo_n_body='eval
                   9740:       arg=$1;
                   9741:       case $arg in #(
                   9742:       *"$as_nl"*)
                   9743:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9744:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9745:       esac;
                   9746:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9747:     '
                   9748:     export as_echo_n_body
                   9749:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9750:   fi
                   9751:   export as_echo_body
                   9752:   as_echo='sh -c $as_echo_body as_echo'
                   9753: fi
1.14      bertrand 9754: 
                   9755: # The user is always right.
                   9756: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9757:   PATH_SEPARATOR=:
                   9758:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9759:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9760:       PATH_SEPARATOR=';'
                   9761:   }
1.1       bertrand 9762: fi
                   9763: 
                   9764: 
                   9765: # IFS
                   9766: # We need space, tab and new line, in precisely that order.  Quoting is
                   9767: # there to prevent editors from complaining about space-tab.
                   9768: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9769: # splitting by setting IFS to empty value.)
                   9770: IFS=" ""   $as_nl"
                   9771: 
                   9772: # Find who we are.  Look in the path if we contain no directory separator.
1.57      bertrand 9773: as_myself=
1.15      bertrand 9774: case $0 in #((
1.1       bertrand 9775:   *[\\/]* ) as_myself=$0 ;;
                   9776:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9777: for as_dir in $PATH
                   9778: do
                   9779:   IFS=$as_save_IFS
                   9780:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9781:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9782:   done
1.1       bertrand 9783: IFS=$as_save_IFS
                   9784: 
                   9785:      ;;
                   9786: esac
                   9787: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9788: # in which case we are not to be found in the path.
                   9789: if test "x$as_myself" = x; then
                   9790:   as_myself=$0
                   9791: fi
                   9792: if test ! -f "$as_myself"; then
1.15      bertrand 9793:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9794:   exit 1
1.1       bertrand 9795: fi
                   9796: 
1.15      bertrand 9797: # Unset variables that we do not need and which cause bugs (e.g. in
                   9798: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9799: # suppresses any "Segmentation fault" message there.  '((' could
                   9800: # trigger a bug in pdksh 5.2.14.
                   9801: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9802: do eval test x\${$as_var+set} = xset \
                   9803:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9804: done
                   9805: PS1='$ '
                   9806: PS2='> '
                   9807: PS4='+ '
                   9808: 
                   9809: # NLS nuisances.
1.15      bertrand 9810: LC_ALL=C
                   9811: export LC_ALL
                   9812: LANGUAGE=C
                   9813: export LANGUAGE
                   9814: 
                   9815: # CDPATH.
                   9816: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9817: 
                   9818: 
1.36      bertrand 9819: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   9820: # ----------------------------------------
1.15      bertrand 9821: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9822: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 9823: # script with STATUS, using 1 if that was 0.
1.15      bertrand 9824: as_fn_error ()
                   9825: {
1.36      bertrand 9826:   as_status=$1; test $as_status -eq 0 && as_status=1
                   9827:   if test "$4"; then
                   9828:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9829:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 9830:   fi
1.36      bertrand 9831:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 9832:   as_fn_exit $as_status
                   9833: } # as_fn_error
                   9834: 
                   9835: 
                   9836: # as_fn_set_status STATUS
                   9837: # -----------------------
                   9838: # Set $? to STATUS, without forking.
                   9839: as_fn_set_status ()
                   9840: {
                   9841:   return $1
                   9842: } # as_fn_set_status
                   9843: 
                   9844: # as_fn_exit STATUS
                   9845: # -----------------
                   9846: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9847: as_fn_exit ()
                   9848: {
                   9849:   set +e
                   9850:   as_fn_set_status $1
                   9851:   exit $1
                   9852: } # as_fn_exit
                   9853: 
                   9854: # as_fn_unset VAR
                   9855: # ---------------
                   9856: # Portably unset VAR.
                   9857: as_fn_unset ()
                   9858: {
                   9859:   { eval $1=; unset $1;}
                   9860: }
                   9861: as_unset=as_fn_unset
                   9862: # as_fn_append VAR VALUE
                   9863: # ----------------------
                   9864: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9865: # advantage of any shell optimizations that allow amortized linear growth over
                   9866: # repeated appends, instead of the typical quadratic growth present in naive
                   9867: # implementations.
                   9868: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9869:   eval 'as_fn_append ()
                   9870:   {
                   9871:     eval $1+=\$2
                   9872:   }'
                   9873: else
                   9874:   as_fn_append ()
                   9875:   {
                   9876:     eval $1=\$$1\$2
                   9877:   }
                   9878: fi # as_fn_append
                   9879: 
                   9880: # as_fn_arith ARG...
                   9881: # ------------------
                   9882: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9883: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9884: # must be portable across $(()) and expr.
                   9885: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9886:   eval 'as_fn_arith ()
                   9887:   {
                   9888:     as_val=$(( $* ))
                   9889:   }'
                   9890: else
                   9891:   as_fn_arith ()
                   9892:   {
                   9893:     as_val=`expr "$@" || test $? -eq 1`
                   9894:   }
                   9895: fi # as_fn_arith
                   9896: 
1.1       bertrand 9897: 
                   9898: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9899:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9900:   as_expr=expr
                   9901: else
                   9902:   as_expr=false
                   9903: fi
                   9904: 
                   9905: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9906:   as_basename=basename
                   9907: else
                   9908:   as_basename=false
                   9909: fi
                   9910: 
1.15      bertrand 9911: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9912:   as_dirname=dirname
                   9913: else
                   9914:   as_dirname=false
                   9915: fi
1.1       bertrand 9916: 
                   9917: as_me=`$as_basename -- "$0" ||
                   9918: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9919:     X"$0" : 'X\(//\)$' \| \
                   9920:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9921: $as_echo X/"$0" |
1.1       bertrand 9922:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9923:        s//\1/
                   9924:        q
                   9925:      }
                   9926:      /^X\/\(\/\/\)$/{
                   9927:        s//\1/
                   9928:        q
                   9929:      }
                   9930:      /^X\/\(\/\).*/{
                   9931:        s//\1/
                   9932:        q
                   9933:      }
1.14      bertrand 9934:      s/.*/./; q'`
                   9935: 
1.15      bertrand 9936: # Avoid depending upon Character Ranges.
                   9937: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9938: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9939: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9940: as_cr_digits='0123456789'
                   9941: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9942: 
                   9943: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 9944: case `echo -n x` in #(((((
1.1       bertrand 9945: -n*)
1.15      bertrand 9946:   case `echo 'xy\c'` in
1.1       bertrand 9947:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 9948:   xy)  ECHO_C='\c';;
                   9949:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9950:        ECHO_T='    ';;
1.1       bertrand 9951:   esac;;
                   9952: *)
                   9953:   ECHO_N='-n';;
                   9954: esac
                   9955: 
                   9956: rm -f conf$$ conf$$.exe conf$$.file
                   9957: if test -d conf$$.dir; then
                   9958:   rm -f conf$$.dir/conf$$.file
                   9959: else
                   9960:   rm -f conf$$.dir
1.15      bertrand 9961:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 9962: fi
1.15      bertrand 9963: if (echo >conf$$.file) 2>/dev/null; then
                   9964:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   9965:     as_ln_s='ln -s'
                   9966:     # ... but there are two gotchas:
                   9967:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9968:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   9969:     # In both cases, we have to default to `cp -p'.
                   9970:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   9971:       as_ln_s='cp -p'
                   9972:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   9973:     as_ln_s=ln
                   9974:   else
1.1       bertrand 9975:     as_ln_s='cp -p'
1.15      bertrand 9976:   fi
1.1       bertrand 9977: else
                   9978:   as_ln_s='cp -p'
                   9979: fi
                   9980: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   9981: rmdir conf$$.dir 2>/dev/null
                   9982: 
1.15      bertrand 9983: 
                   9984: # as_fn_mkdir_p
                   9985: # -------------
                   9986: # Create "$as_dir" as a directory, including parents if necessary.
                   9987: as_fn_mkdir_p ()
                   9988: {
                   9989: 
                   9990:   case $as_dir in #(
                   9991:   -*) as_dir=./$as_dir;;
                   9992:   esac
                   9993:   test -d "$as_dir" || eval $as_mkdir_p || {
                   9994:     as_dirs=
                   9995:     while :; do
                   9996:       case $as_dir in #(
                   9997:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   9998:       *) as_qdir=$as_dir;;
                   9999:       esac
                   10000:       as_dirs="'$as_qdir' $as_dirs"
                   10001:       as_dir=`$as_dirname -- "$as_dir" ||
                   10002: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10003:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   10004:     X"$as_dir" : 'X\(//\)$' \| \
                   10005:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   10006: $as_echo X"$as_dir" |
                   10007:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10008:        s//\1/
                   10009:        q
                   10010:      }
                   10011:      /^X\(\/\/\)[^/].*/{
                   10012:        s//\1/
                   10013:        q
                   10014:      }
                   10015:      /^X\(\/\/\)$/{
                   10016:        s//\1/
                   10017:        q
                   10018:      }
                   10019:      /^X\(\/\).*/{
                   10020:        s//\1/
                   10021:        q
                   10022:      }
                   10023:      s/.*/./; q'`
                   10024:       test -d "$as_dir" && break
                   10025:     done
                   10026:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 10027:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 10028: 
                   10029: 
                   10030: } # as_fn_mkdir_p
1.1       bertrand 10031: if mkdir -p . 2>/dev/null; then
1.15      bertrand 10032:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 10033: else
                   10034:   test -d ./-p && rmdir ./-p
                   10035:   as_mkdir_p=false
                   10036: fi
                   10037: 
                   10038: if test -x / >/dev/null 2>&1; then
                   10039:   as_test_x='test -x'
                   10040: else
                   10041:   if ls -dL / >/dev/null 2>&1; then
                   10042:     as_ls_L_option=L
                   10043:   else
                   10044:     as_ls_L_option=
                   10045:   fi
                   10046:   as_test_x='
                   10047:     eval sh -c '\''
                   10048:       if test -d "$1"; then
1.15      bertrand 10049:    test -d "$1/.";
1.1       bertrand 10050:       else
1.15      bertrand 10051:    case $1 in #(
                   10052:    -*)set "./$1";;
1.1       bertrand 10053:    esac;
1.15      bertrand 10054:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 10055:    ???[sx]*):;;*)false;;esac;fi
                   10056:     '\'' sh
                   10057:   '
                   10058: fi
                   10059: as_executable_p=$as_test_x
                   10060: 
                   10061: # Sed expression to map a string onto a valid CPP name.
                   10062: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   10063: 
                   10064: # Sed expression to map a string onto a valid variable name.
                   10065: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   10066: 
                   10067: 
                   10068: exec 6>&1
1.15      bertrand 10069: ## ----------------------------------- ##
                   10070: ## Main body of $CONFIG_STATUS script. ##
                   10071: ## ----------------------------------- ##
                   10072: _ASEOF
                   10073: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 10074: 
1.15      bertrand 10075: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10076: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 10077: # report actual input values of CONFIG_FILES etc. instead of their
                   10078: # values after options handling.
                   10079: ac_log="
1.73      bertrand 10080: This file was extended by rpl $as_me 4.1.3, which was
1.57      bertrand 10081: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 10082: 
                   10083:   CONFIG_FILES    = $CONFIG_FILES
                   10084:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   10085:   CONFIG_LINKS    = $CONFIG_LINKS
                   10086:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   10087:   $ $0 $@
                   10088: 
                   10089: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   10090: "
                   10091: 
                   10092: _ACEOF
                   10093: 
1.15      bertrand 10094: case $ac_config_files in *"
                   10095: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   10096: esac
                   10097: 
                   10098: case $ac_config_headers in *"
                   10099: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   10100: esac
                   10101: 
                   10102: 
                   10103: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10104: # Files that config.status was made for.
                   10105: config_files="$ac_config_files"
                   10106: config_headers="$ac_config_headers"
                   10107: config_commands="$ac_config_commands"
                   10108: 
                   10109: _ACEOF
                   10110: 
1.15      bertrand 10111: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10112: ac_cs_usage="\
1.15      bertrand 10113: \`$as_me' instantiates files and other configuration actions
                   10114: from templates according to the current configuration.  Unless the files
                   10115: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 10116: 
1.15      bertrand 10117: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 10118: 
                   10119:   -h, --help       print this help, then exit
                   10120:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 10121:       --config     print configuration, then exit
                   10122:   -q, --quiet, --silent
                   10123:                    do not print progress messages
1.1       bertrand 10124:   -d, --debug      don't remove temporary files
                   10125:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 10126:       --file=FILE[:TEMPLATE]
                   10127:                    instantiate the configuration file FILE
                   10128:       --header=FILE[:TEMPLATE]
                   10129:                    instantiate the configuration header FILE
1.1       bertrand 10130: 
                   10131: Configuration files:
                   10132: $config_files
                   10133: 
                   10134: Configuration headers:
                   10135: $config_headers
                   10136: 
                   10137: Configuration commands:
                   10138: $config_commands
                   10139: 
1.15      bertrand 10140: Report bugs to the package provider."
1.1       bertrand 10141: 
                   10142: _ACEOF
1.15      bertrand 10143: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10144: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 10145: ac_cs_version="\\
1.73      bertrand 10146: rpl config.status 4.1.3
1.57      bertrand 10147: configured by $0, generated by GNU Autoconf 2.68,
1.15      bertrand 10148:   with options \\"\$ac_cs_config\\"
1.1       bertrand 10149: 
1.36      bertrand 10150: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 10151: This config.status script is free software; the Free Software Foundation
                   10152: gives unlimited permission to copy, distribute and modify it."
                   10153: 
                   10154: ac_pwd='$ac_pwd'
                   10155: srcdir='$srcdir'
                   10156: INSTALL='$INSTALL'
                   10157: MKDIR_P='$MKDIR_P'
1.15      bertrand 10158: AWK='$AWK'
                   10159: test -n "\$AWK" || AWK=awk
1.1       bertrand 10160: _ACEOF
                   10161: 
1.15      bertrand 10162: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10163: # The default lists apply if the user does not specify any file.
1.1       bertrand 10164: ac_need_defaults=:
                   10165: while test $# != 0
                   10166: do
                   10167:   case $1 in
1.36      bertrand 10168:   --*=?*)
1.1       bertrand 10169:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10170:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   10171:     ac_shift=:
                   10172:     ;;
1.36      bertrand 10173:   --*=)
                   10174:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10175:     ac_optarg=
                   10176:     ac_shift=:
                   10177:     ;;
1.1       bertrand 10178:   *)
                   10179:     ac_option=$1
                   10180:     ac_optarg=$2
                   10181:     ac_shift=shift
                   10182:     ;;
                   10183:   esac
                   10184: 
                   10185:   case $ac_option in
                   10186:   # Handling of the options.
                   10187:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   10188:     ac_cs_recheck=: ;;
                   10189:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 10190:     $as_echo "$ac_cs_version"; exit ;;
                   10191:   --config | --confi | --conf | --con | --co | --c )
                   10192:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 10193:   --debug | --debu | --deb | --de | --d | -d )
                   10194:     debug=: ;;
                   10195:   --file | --fil | --fi | --f )
                   10196:     $ac_shift
1.15      bertrand 10197:     case $ac_optarg in
                   10198:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 10199:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 10200:     esac
                   10201:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 10202:     ac_need_defaults=false;;
                   10203:   --header | --heade | --head | --hea )
                   10204:     $ac_shift
1.15      bertrand 10205:     case $ac_optarg in
                   10206:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   10207:     esac
                   10208:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 10209:     ac_need_defaults=false;;
                   10210:   --he | --h)
                   10211:     # Conflict between --help and --header
1.36      bertrand 10212:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 10213: Try \`$0 --help' for more information.";;
1.1       bertrand 10214:   --help | --hel | -h )
1.15      bertrand 10215:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 10216:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10217:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10218:     ac_cs_silent=: ;;
                   10219: 
                   10220:   # This is an error.
1.36      bertrand 10221:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10222: Try \`$0 --help' for more information." ;;
1.1       bertrand 10223: 
1.15      bertrand 10224:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10225:      ac_need_defaults=false ;;
                   10226: 
                   10227:   esac
                   10228:   shift
                   10229: done
                   10230: 
                   10231: ac_configure_extra_args=
                   10232: 
                   10233: if $ac_cs_silent; then
                   10234:   exec 6>/dev/null
                   10235:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10236: fi
                   10237: 
                   10238: _ACEOF
1.15      bertrand 10239: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10240: if \$ac_cs_recheck; then
1.15      bertrand 10241:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10242:   shift
                   10243:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10244:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10245:   export CONFIG_SHELL
1.15      bertrand 10246:   exec "\$@"
1.1       bertrand 10247: fi
                   10248: 
                   10249: _ACEOF
1.15      bertrand 10250: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10251: exec 5>>config.log
                   10252: {
                   10253:   echo
                   10254:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10255: ## Running $as_me. ##
                   10256: _ASBOX
1.15      bertrand 10257:   $as_echo "$ac_log"
1.1       bertrand 10258: } >&5
                   10259: 
                   10260: _ACEOF
1.15      bertrand 10261: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10262: #
                   10263: # INIT-COMMANDS
                   10264: #
                   10265: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10266: 
                   10267: _ACEOF
                   10268: 
1.15      bertrand 10269: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10270: 
                   10271: # Handling of arguments.
                   10272: for ac_config_target in $ac_config_targets
                   10273: do
                   10274:   case $ac_config_target in
                   10275:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10276:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10277:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10278:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10279:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10280:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10281:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10282:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10283:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10284:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10285:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10286:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10287:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10288:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10289:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10290:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55      bertrand 10291:     "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39      bertrand 10292:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10293:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10294:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10295:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10296:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10297:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10298:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10299:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10300:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10301:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10302:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10303:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10304:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   10305: 
1.57      bertrand 10306:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 10307:   esac
                   10308: done
                   10309: 
                   10310: 
                   10311: # If the user did not use the arguments to specify the items to instantiate,
                   10312: # then the envvar interface is used.  Set only those that are not.
                   10313: # We use the long form for the default assignment because of an extremely
                   10314: # bizarre bug on SunOS 4.1.3.
                   10315: if $ac_need_defaults; then
                   10316:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10317:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10318:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10319: fi
                   10320: 
                   10321: # Have a temporary directory for convenience.  Make it in the build tree
                   10322: # simply because there is no reason against having it here, and in addition,
                   10323: # creating and moving files from /tmp can sometimes cause problems.
                   10324: # Hook for its removal unless debugging.
                   10325: # Note that there is a small window in which the directory will not be cleaned:
                   10326: # after its creation but before its name has been assigned to `$tmp'.
                   10327: $debug ||
                   10328: {
1.57      bertrand 10329:   tmp= ac_tmp=
1.1       bertrand 10330:   trap 'exit_status=$?
1.57      bertrand 10331:   : "${ac_tmp:=$tmp}"
                   10332:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1       bertrand 10333: ' 0
1.15      bertrand 10334:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10335: }
                   10336: # Create a (secure) tmp directory for tmp files.
                   10337: 
                   10338: {
                   10339:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.57      bertrand 10340:   test -d "$tmp"
1.1       bertrand 10341: }  ||
                   10342: {
                   10343:   tmp=./conf$$-$RANDOM
                   10344:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10345: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.57      bertrand 10346: ac_tmp=$tmp
1.15      bertrand 10347: 
                   10348: # Set up the scripts for CONFIG_FILES section.
                   10349: # No need to generate them if there are no CONFIG_FILES.
                   10350: # This happens for instance with `./config.status config.h'.
                   10351: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10352: 
1.1       bertrand 10353: 
1.15      bertrand 10354: ac_cr=`echo X | tr X '\015'`
                   10355: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10356: # But we know of no other shell where ac_cr would be empty at this
                   10357: # point, so we can use a bashism as a fallback.
                   10358: if test "x$ac_cr" = x; then
                   10359:   eval ac_cr=\$\'\\r\'
                   10360: fi
                   10361: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10362: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10363:   ac_cs_awk_cr='\\r'
1.15      bertrand 10364: else
                   10365:   ac_cs_awk_cr=$ac_cr
                   10366: fi
1.1       bertrand 10367: 
1.57      bertrand 10368: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14      bertrand 10369: _ACEOF
                   10370: 
                   10371: 
1.15      bertrand 10372: {
                   10373:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10374:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10375:   echo "_ACEOF"
                   10376: } >conf$$subs.sh ||
1.36      bertrand 10377:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10378: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10379: ac_delim='%!_!# '
                   10380: for ac_last_try in false false false false false :; do
1.15      bertrand 10381:   . ./conf$$subs.sh ||
1.36      bertrand 10382:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10383: 
1.15      bertrand 10384:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10385:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10386:     break
                   10387:   elif $ac_last_try; then
1.36      bertrand 10388:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10389:   else
                   10390:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10391:   fi
                   10392: done
1.15      bertrand 10393: rm -f conf$$subs.sh
1.1       bertrand 10394: 
1.15      bertrand 10395: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.57      bertrand 10396: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15      bertrand 10397: _ACEOF
                   10398: sed -n '
                   10399: h
                   10400: s/^/S["/; s/!.*/"]=/
                   10401: p
                   10402: g
                   10403: s/^[^!]*!//
                   10404: :repl
                   10405: t repl
                   10406: s/'"$ac_delim"'$//
                   10407: t delim
                   10408: :nl
                   10409: h
                   10410: s/\(.\{148\}\)..*/\1/
                   10411: t more1
                   10412: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10413: p
                   10414: n
                   10415: b repl
                   10416: :more1
                   10417: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10418: p
                   10419: g
                   10420: s/.\{148\}//
                   10421: t nl
                   10422: :delim
                   10423: h
                   10424: s/\(.\{148\}\)..*/\1/
                   10425: t more2
                   10426: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10427: p
                   10428: b
                   10429: :more2
                   10430: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10431: p
                   10432: g
                   10433: s/.\{148\}//
                   10434: t delim
                   10435: ' <conf$$subs.awk | sed '
                   10436: /^[^""]/{
                   10437:   N
                   10438:   s/\n//
                   10439: }
                   10440: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10441: rm -f conf$$subs.awk
                   10442: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10443: _ACAWK
1.57      bertrand 10444: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15      bertrand 10445:   for (key in S) S_is_set[key] = 1
                   10446:   FS = ""
1.1       bertrand 10447: 
1.15      bertrand 10448: }
                   10449: {
                   10450:   line = $ 0
                   10451:   nfields = split(line, field, "@")
                   10452:   substed = 0
                   10453:   len = length(field[1])
                   10454:   for (i = 2; i < nfields; i++) {
                   10455:     key = field[i]
                   10456:     keylen = length(key)
                   10457:     if (S_is_set[key]) {
                   10458:       value = S[key]
                   10459:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10460:       len += length(value) + length(field[++i])
                   10461:       substed = 1
                   10462:     } else
                   10463:       len += 1 + keylen
                   10464:   }
1.1       bertrand 10465: 
1.15      bertrand 10466:   print line
                   10467: }
1.1       bertrand 10468: 
1.15      bertrand 10469: _ACAWK
1.14      bertrand 10470: _ACEOF
1.15      bertrand 10471: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10472: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10473:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10474: else
                   10475:   cat
1.57      bertrand 10476: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36      bertrand 10477:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10478: _ACEOF
                   10479: 
1.36      bertrand 10480: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10481: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10482: # trailing colons and then remove the whole line if VPATH becomes empty
                   10483: # (actually we leave an empty line to preserve line numbers).
                   10484: if test "x$srcdir" = x.; then
1.36      bertrand 10485:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10486: h
                   10487: s///
                   10488: s/^/:/
                   10489: s/[     ]*$/:/
                   10490: s/:\$(srcdir):/:/g
                   10491: s/:\${srcdir}:/:/g
                   10492: s/:@srcdir@:/:/g
                   10493: s/^:*//
1.1       bertrand 10494: s/:*$//
1.36      bertrand 10495: x
                   10496: s/\(=[  ]*\).*/\1/
                   10497: G
                   10498: s/\n//
1.1       bertrand 10499: s/^[^=]*=[  ]*$//
                   10500: }'
                   10501: fi
                   10502: 
1.15      bertrand 10503: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10504: fi # test -n "$CONFIG_FILES"
                   10505: 
1.15      bertrand 10506: # Set up the scripts for CONFIG_HEADERS section.
                   10507: # No need to generate them if there are no CONFIG_HEADERS.
                   10508: # This happens for instance with `./config.status Makefile'.
                   10509: if test -n "$CONFIG_HEADERS"; then
1.57      bertrand 10510: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15      bertrand 10511: BEGIN {
                   10512: _ACEOF
                   10513: 
                   10514: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10515: # here-document in config.status, that substitutes the proper values into
                   10516: # config.h.in to produce config.h.
                   10517: 
                   10518: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10519: # handling of long lines.
                   10520: ac_delim='%!_!# '
                   10521: for ac_last_try in false false :; do
1.57      bertrand 10522:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   10523:   if test -z "$ac_tt"; then
1.15      bertrand 10524:     break
                   10525:   elif $ac_last_try; then
1.36      bertrand 10526:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10527:   else
                   10528:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10529:   fi
                   10530: done
                   10531: 
                   10532: # For the awk script, D is an array of macro values keyed by name,
                   10533: # likewise P contains macro parameters if any.  Preserve backslash
                   10534: # newline sequences.
                   10535: 
                   10536: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10537: sed -n '
                   10538: s/.\{148\}/&'"$ac_delim"'/g
                   10539: t rset
                   10540: :rset
                   10541: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10542: t def
                   10543: d
                   10544: :def
                   10545: s/\\$//
                   10546: t bsnl
                   10547: s/["\\]/\\&/g
                   10548: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10549: D["\1"]=" \3"/p
                   10550: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10551: d
                   10552: :bsnl
                   10553: s/["\\]/\\&/g
                   10554: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10555: D["\1"]=" \3\\\\\\n"\\/p
                   10556: t cont
                   10557: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10558: t cont
                   10559: d
                   10560: :cont
                   10561: n
                   10562: s/.\{148\}/&'"$ac_delim"'/g
                   10563: t clear
                   10564: :clear
                   10565: s/\\$//
                   10566: t bsnlc
                   10567: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10568: d
                   10569: :bsnlc
                   10570: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10571: b cont
                   10572: ' <confdefs.h | sed '
                   10573: s/'"$ac_delim"'/"\\\
                   10574: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10575: 
                   10576: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10577:   for (key in D) D_is_set[key] = 1
                   10578:   FS = ""
                   10579: }
                   10580: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10581:   line = \$ 0
                   10582:   split(line, arg, " ")
                   10583:   if (arg[1] == "#") {
                   10584:     defundef = arg[2]
                   10585:     mac1 = arg[3]
                   10586:   } else {
                   10587:     defundef = substr(arg[1], 2)
                   10588:     mac1 = arg[2]
                   10589:   }
                   10590:   split(mac1, mac2, "(") #)
                   10591:   macro = mac2[1]
                   10592:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10593:   if (D_is_set[macro]) {
                   10594:     # Preserve the white space surrounding the "#".
                   10595:     print prefix "define", macro P[macro] D[macro]
                   10596:     next
                   10597:   } else {
                   10598:     # Replace #undef with comments.  This is necessary, for example,
                   10599:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10600:     # on some systems where configure will not decide to define it.
                   10601:     if (defundef == "undef") {
                   10602:       print "/*", prefix defundef, macro, "*/"
                   10603:       next
                   10604:     }
                   10605:   }
                   10606: }
                   10607: { print }
                   10608: _ACAWK
                   10609: _ACEOF
                   10610: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10611:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10612: fi # test -n "$CONFIG_HEADERS"
                   10613: 
1.1       bertrand 10614: 
1.15      bertrand 10615: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10616: shift
                   10617: for ac_tag
1.1       bertrand 10618: do
                   10619:   case $ac_tag in
                   10620:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10621:   esac
                   10622:   case $ac_mode$ac_tag in
                   10623:   :[FHL]*:*);;
1.57      bertrand 10624:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10625:   :[FH]-) ac_tag=-:-;;
                   10626:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10627:   esac
                   10628:   ac_save_IFS=$IFS
                   10629:   IFS=:
                   10630:   set x $ac_tag
                   10631:   IFS=$ac_save_IFS
                   10632:   shift
                   10633:   ac_file=$1
                   10634:   shift
                   10635: 
                   10636:   case $ac_mode in
                   10637:   :L) ac_source=$1;;
                   10638:   :[FH])
                   10639:     ac_file_inputs=
                   10640:     for ac_f
                   10641:     do
                   10642:       case $ac_f in
1.57      bertrand 10643:       -) ac_f="$ac_tmp/stdin";;
1.1       bertrand 10644:       *) # Look for the file first in the build tree, then in the source tree
                   10645:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10646:     # because $ac_f cannot contain `:'.
                   10647:     test -f "$ac_f" ||
                   10648:       case $ac_f in
                   10649:       [\\/$]*) false;;
                   10650:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10651:       esac ||
1.57      bertrand 10652:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10653:       esac
1.15      bertrand 10654:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10655:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10656:     done
                   10657: 
                   10658:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10659:     # use $as_me), people would be surprised to read:
                   10660:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10661:     configure_input='Generated from '`
                   10662:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10663:    `' by configure.'
1.1       bertrand 10664:     if test x"$ac_file" != x-; then
                   10665:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10666:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10667: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10668:     fi
1.15      bertrand 10669:     # Neutralize special characters interpreted by sed in replacement strings.
                   10670:     case $configure_input in #(
                   10671:     *\&* | *\|* | *\\* )
                   10672:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10673:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10674:     *) ac_sed_conf_input=$configure_input;;
                   10675:     esac
1.1       bertrand 10676: 
                   10677:     case $ac_tag in
1.57      bertrand 10678:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   10679:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10680:     esac
                   10681:     ;;
                   10682:   esac
                   10683: 
                   10684:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10685: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10686:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10687:     X"$ac_file" : 'X\(//\)$' \| \
                   10688:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10689: $as_echo X"$ac_file" |
1.1       bertrand 10690:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10691:        s//\1/
                   10692:        q
                   10693:      }
                   10694:      /^X\(\/\/\)[^/].*/{
                   10695:        s//\1/
                   10696:        q
                   10697:      }
                   10698:      /^X\(\/\/\)$/{
                   10699:        s//\1/
                   10700:        q
                   10701:      }
                   10702:      /^X\(\/\).*/{
                   10703:        s//\1/
                   10704:        q
                   10705:      }
                   10706:      s/.*/./; q'`
1.15      bertrand 10707:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10708:   ac_builddir=.
                   10709: 
                   10710: case "$ac_dir" in
                   10711: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10712: *)
1.15      bertrand 10713:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10714:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10715:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10716:   case $ac_top_builddir_sub in
                   10717:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10718:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10719:   esac ;;
                   10720: esac
                   10721: ac_abs_top_builddir=$ac_pwd
                   10722: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10723: # for backward compatibility:
                   10724: ac_top_builddir=$ac_top_build_prefix
                   10725: 
                   10726: case $srcdir in
                   10727:   .)  # We are building in place.
                   10728:     ac_srcdir=.
                   10729:     ac_top_srcdir=$ac_top_builddir_sub
                   10730:     ac_abs_top_srcdir=$ac_pwd ;;
                   10731:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10732:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10733:     ac_top_srcdir=$srcdir
                   10734:     ac_abs_top_srcdir=$srcdir ;;
                   10735:   *) # Relative name.
                   10736:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10737:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10738:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10739: esac
                   10740: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10741: 
                   10742: 
                   10743:   case $ac_mode in
                   10744:   :F)
                   10745:   #
                   10746:   # CONFIG_FILE
                   10747:   #
                   10748: 
                   10749:   case $INSTALL in
                   10750:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10751:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10752:   esac
                   10753:   ac_MKDIR_P=$MKDIR_P
                   10754:   case $MKDIR_P in
                   10755:   [\\/$]* | ?:[\\/]* ) ;;
                   10756:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10757:   esac
                   10758: _ACEOF
                   10759: 
1.15      bertrand 10760: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10761: # If the template does not know about datarootdir, expand it.
                   10762: # FIXME: This hack should be removed a few years after 2.60.
                   10763: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10764: ac_sed_dataroot='
                   10765: /datarootdir/ {
1.1       bertrand 10766:   p
                   10767:   q
                   10768: }
                   10769: /@datadir@/p
                   10770: /@docdir@/p
                   10771: /@infodir@/p
                   10772: /@localedir@/p
1.15      bertrand 10773: /@mandir@/p'
                   10774: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10775: *datarootdir*) ac_datarootdir_seen=yes;;
                   10776: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10777:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10778: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10779: _ACEOF
1.15      bertrand 10780: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10781:   ac_datarootdir_hack='
                   10782:   s&@datadir@&$datadir&g
                   10783:   s&@docdir@&$docdir&g
                   10784:   s&@infodir@&$infodir&g
                   10785:   s&@localedir@&$localedir&g
                   10786:   s&@mandir@&$mandir&g
1.15      bertrand 10787:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10788: esac
                   10789: _ACEOF
                   10790: 
                   10791: # Neutralize VPATH when `$srcdir' = `.'.
                   10792: # Shell code in configure.ac might set extrasub.
                   10793: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10794: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10795: ac_sed_extra="$ac_vpsub
1.1       bertrand 10796: $extrasub
                   10797: _ACEOF
1.15      bertrand 10798: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10799: :t
                   10800: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10801: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10802: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10803: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10804: s&@srcdir@&$ac_srcdir&;t t
                   10805: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10806: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10807: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10808: s&@builddir@&$ac_builddir&;t t
                   10809: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10810: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10811: s&@INSTALL@&$ac_INSTALL&;t t
                   10812: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10813: $ac_datarootdir_hack
1.15      bertrand 10814: "
1.57      bertrand 10815: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   10816:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10817: 
                   10818: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.57      bertrand 10819:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   10820:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' \
                   10821:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10822:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10823: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 10824: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10825: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 10826: 
1.57      bertrand 10827:   rm -f "$ac_tmp/stdin"
1.1       bertrand 10828:   case $ac_file in
1.57      bertrand 10829:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   10830:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15      bertrand 10831:   esac \
1.36      bertrand 10832:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10833:  ;;
                   10834:   :H)
                   10835:   #
                   10836:   # CONFIG_HEADER
                   10837:   #
                   10838:   if test x"$ac_file" != x-; then
1.15      bertrand 10839:     {
                   10840:       $as_echo "/* $configure_input  */" \
1.57      bertrand 10841:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   10842:     } >"$ac_tmp/config.h" \
1.36      bertrand 10843:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.57      bertrand 10844:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15      bertrand 10845:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10846: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10847:     else
1.15      bertrand 10848:       rm -f "$ac_file"
1.57      bertrand 10849:       mv "$ac_tmp/config.h" "$ac_file" \
1.36      bertrand 10850:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10851:     fi
                   10852:   else
1.15      bertrand 10853:     $as_echo "/* $configure_input  */" \
1.57      bertrand 10854:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 10855:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 10856:   fi
1.15      bertrand 10857: # Compute "$ac_file"'s index in $config_headers.
                   10858: _am_arg="$ac_file"
1.1       bertrand 10859: _am_stamp_count=1
                   10860: for _am_header in $config_headers :; do
                   10861:   case $_am_header in
                   10862:     $_am_arg | $_am_arg:* )
                   10863:       break ;;
                   10864:     * )
                   10865:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10866:   esac
                   10867: done
                   10868: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10869: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10870:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10871:     X"$_am_arg" : 'X\(//\)$' \| \
                   10872:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10873: $as_echo X"$_am_arg" |
1.1       bertrand 10874:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10875:        s//\1/
                   10876:        q
                   10877:      }
                   10878:      /^X\(\/\/\)[^/].*/{
                   10879:        s//\1/
                   10880:        q
                   10881:      }
                   10882:      /^X\(\/\/\)$/{
                   10883:        s//\1/
                   10884:        q
                   10885:      }
                   10886:      /^X\(\/\).*/{
                   10887:        s//\1/
                   10888:        q
                   10889:      }
                   10890:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10891:  ;;
                   10892: 
1.15      bertrand 10893:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10894: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10895:  ;;
                   10896:   esac
                   10897: 
                   10898: 
                   10899:   case $ac_file$ac_mode in
1.15      bertrand 10900:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10901:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10902:   # are listed without --file.  Let's play safe and only enable the eval
                   10903:   # if we detect the quoting.
                   10904:   case $CONFIG_FILES in
                   10905:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10906:   *)   set x $CONFIG_FILES ;;
                   10907:   esac
                   10908:   shift
                   10909:   for mf
                   10910:   do
                   10911:     # Strip MF so we end up with the name of the file.
                   10912:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10913:     # Check whether this is an Automake generated Makefile or not.
                   10914:     # We used to match only the files named `Makefile.in', but
                   10915:     # some people rename them; so instead we look at the file content.
                   10916:     # Grep'ing the first line is not enough: some people post-process
                   10917:     # each Makefile.in and add a new line on top of each file to say so.
                   10918:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10919:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10920:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10921:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10922: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10923:     X"$mf" : 'X\(//\)[^/]' \| \
                   10924:     X"$mf" : 'X\(//\)$' \| \
                   10925:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10926: $as_echo X"$mf" |
1.1       bertrand 10927:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10928:        s//\1/
                   10929:        q
                   10930:      }
                   10931:      /^X\(\/\/\)[^/].*/{
                   10932:        s//\1/
                   10933:        q
                   10934:      }
                   10935:      /^X\(\/\/\)$/{
                   10936:        s//\1/
                   10937:        q
                   10938:      }
                   10939:      /^X\(\/\).*/{
                   10940:        s//\1/
                   10941:        q
                   10942:      }
                   10943:      s/.*/./; q'`
1.15      bertrand 10944:     else
                   10945:       continue
                   10946:     fi
                   10947:     # Extract the definition of DEPDIR, am__include, and am__quote
                   10948:     # from the Makefile without running `make'.
                   10949:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   10950:     test -z "$DEPDIR" && continue
                   10951:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   10952:     test -z "am__include" && continue
                   10953:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   10954:     # When using ansi2knr, U may be empty or an underscore; expand it
                   10955:     U=`sed -n 's/^U = //p' < "$mf"`
                   10956:     # Find all dependency output files, they are included files with
                   10957:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   10958:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   10959:     # expansion.
                   10960:     for file in `sed -n "
                   10961:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   10962:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   10963:       # Make sure the directory exists.
                   10964:       test -f "$dirpart/$file" && continue
                   10965:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 10966: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10967:     X"$file" : 'X\(//\)[^/]' \| \
                   10968:     X"$file" : 'X\(//\)$' \| \
                   10969:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10970: $as_echo X"$file" |
1.1       bertrand 10971:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10972:        s//\1/
                   10973:        q
                   10974:      }
                   10975:      /^X\(\/\/\)[^/].*/{
                   10976:        s//\1/
                   10977:        q
                   10978:      }
                   10979:      /^X\(\/\/\)$/{
                   10980:        s//\1/
                   10981:        q
                   10982:      }
                   10983:      /^X\(\/\).*/{
                   10984:        s//\1/
                   10985:        q
                   10986:      }
                   10987:      s/.*/./; q'`
1.15      bertrand 10988:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   10989:       # echo "creating $dirpart/$file"
                   10990:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 10991:     done
                   10992:   done
1.15      bertrand 10993: }
1.1       bertrand 10994:  ;;
                   10995: 
                   10996:   esac
                   10997: done # for ac_tag
                   10998: 
                   10999: 
1.15      bertrand 11000: as_fn_exit 0
1.1       bertrand 11001: _ACEOF
                   11002: ac_clean_files=$ac_clean_files_save
                   11003: 
1.15      bertrand 11004: test $ac_write_fail = 0 ||
1.36      bertrand 11005:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 11006: 
1.1       bertrand 11007: 
                   11008: # configure is writing to config.log, and then calls config.status.
                   11009: # config.status does its own redirection, appending to config.log.
                   11010: # Unfortunately, on DOS this fails, as config.log is still kept open
                   11011: # by configure, so config.status won't be able to write to it; its
                   11012: # output is simply discarded.  So we exec the FD to /dev/null,
                   11013: # effectively closing config.log, so it can be properly (re)opened and
                   11014: # appended to by config.status.  When coming back to configure, we
                   11015: # need to make the FD available again.
                   11016: if test "$no_create" != yes; then
                   11017:   ac_cs_success=:
                   11018:   ac_config_status_args=
                   11019:   test "$silent" = yes &&
                   11020:     ac_config_status_args="$ac_config_status_args --quiet"
                   11021:   exec 5>/dev/null
                   11022:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   11023:   exec 5>>config.log
                   11024:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   11025:   # would make configure fail if this is the last instruction.
1.36      bertrand 11026:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 11027: fi
                   11028: 
                   11029: #
                   11030: # CONFIG_SUBDIRS section.
                   11031: #
                   11032: if test "$no_recursion" != yes; then
                   11033: 
1.15      bertrand 11034:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   11035:   # so they do not pile up.
1.1       bertrand 11036:   ac_sub_configure_args=
                   11037:   ac_prev=
                   11038:   eval "set x $ac_configure_args"
                   11039:   shift
                   11040:   for ac_arg
                   11041:   do
                   11042:     if test -n "$ac_prev"; then
                   11043:       ac_prev=
                   11044:       continue
                   11045:     fi
                   11046:     case $ac_arg in
                   11047:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   11048:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   11049:       ac_prev=cache_file ;;
                   11050:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   11051:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   11052:     | --c=*)
                   11053:       ;;
                   11054:     --config-cache | -C)
                   11055:       ;;
                   11056:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   11057:       ac_prev=srcdir ;;
                   11058:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   11059:       ;;
                   11060:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   11061:       ac_prev=prefix ;;
                   11062:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   11063:       ;;
1.15      bertrand 11064:     --disable-option-checking)
                   11065:       ;;
1.1       bertrand 11066:     *)
                   11067:       case $ac_arg in
1.15      bertrand 11068:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11069:       esac
1.15      bertrand 11070:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 11071:     esac
                   11072:   done
                   11073: 
                   11074:   # Always prepend --prefix to ensure using the same prefix
                   11075:   # in subdir configurations.
                   11076:   ac_arg="--prefix=$prefix"
                   11077:   case $ac_arg in
1.15      bertrand 11078:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11079:   esac
                   11080:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   11081: 
                   11082:   # Pass --silent
                   11083:   if test "$silent" = yes; then
                   11084:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   11085:   fi
                   11086: 
1.15      bertrand 11087:   # Always prepend --disable-option-checking to silence warnings, since
                   11088:   # different subdirs can have different --enable and --with options.
                   11089:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   11090: 
1.1       bertrand 11091:   ac_popdir=`pwd`
                   11092:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   11093: 
                   11094:     # Do not complain, so a configure script can configure whichever
                   11095:     # parts of a large source tree are present.
                   11096:     test -d "$srcdir/$ac_dir" || continue
                   11097: 
                   11098:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 11099:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   11100:     $as_echo "$ac_msg" >&6
                   11101:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 11102:     ac_builddir=.
                   11103: 
                   11104: case "$ac_dir" in
                   11105: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11106: *)
1.15      bertrand 11107:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 11108:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 11109:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 11110:   case $ac_top_builddir_sub in
                   11111:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11112:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   11113:   esac ;;
                   11114: esac
                   11115: ac_abs_top_builddir=$ac_pwd
                   11116: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   11117: # for backward compatibility:
                   11118: ac_top_builddir=$ac_top_build_prefix
                   11119: 
                   11120: case $srcdir in
                   11121:   .)  # We are building in place.
                   11122:     ac_srcdir=.
                   11123:     ac_top_srcdir=$ac_top_builddir_sub
                   11124:     ac_abs_top_srcdir=$ac_pwd ;;
                   11125:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   11126:     ac_srcdir=$srcdir$ac_dir_suffix;
                   11127:     ac_top_srcdir=$srcdir
                   11128:     ac_abs_top_srcdir=$srcdir ;;
                   11129:   *) # Relative name.
                   11130:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   11131:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   11132:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   11133: esac
                   11134: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   11135: 
                   11136: 
                   11137:     cd "$ac_dir"
                   11138: 
                   11139:     # Check for guested configure; otherwise get Cygnus style configure.
                   11140:     if test -f "$ac_srcdir/configure.gnu"; then
                   11141:       ac_sub_configure=$ac_srcdir/configure.gnu
                   11142:     elif test -f "$ac_srcdir/configure"; then
                   11143:       ac_sub_configure=$ac_srcdir/configure
                   11144:     elif test -f "$ac_srcdir/configure.in"; then
                   11145:       # This should be Cygnus configure.
                   11146:       ac_sub_configure=$ac_aux_dir/configure
                   11147:     else
1.15      bertrand 11148:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   11149: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 11150:       ac_sub_configure=
                   11151:     fi
                   11152: 
                   11153:     # The recursion is here.
                   11154:     if test -n "$ac_sub_configure"; then
                   11155:       # Make the cache file name correct relative to the subdirectory.
                   11156:       case $cache_file in
                   11157:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   11158:       *) # Relative name.
                   11159:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   11160:       esac
                   11161: 
1.15      bertrand 11162:       { $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
                   11163: $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 11164:       # The eval makes quoting arguments work.
                   11165:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   11166:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 11167:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 11168:     fi
                   11169: 
                   11170:     cd "$ac_popdir"
                   11171:   done
                   11172: fi
1.15      bertrand 11173: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   11174:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   11175: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   11176: fi
1.1       bertrand 11177: 

CVSweb interface <joel.bertrand@systella.fr>