Annotation of rpl/configure, revision 1.94

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.93      bertrand    3: # Generated by GNU Autoconf 2.68 for rpl 4.1.4.
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.93      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.93      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.93      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.86      bertrand  560: PACKAGE_VERSION='4.1.4'
                    561: PACKAGE_STRING='rpl 4.1.4'
1.1       bertrand  562: PACKAGE_BUGREPORT=''
1.15      bertrand  563: PACKAGE_URL=''
1.1       bertrand  564: 
1.80      bertrand  565: enable_option_checking=no
1.1       bertrand  566: ac_default_prefix=/usr/local
                    567: # Factoring default headers for most tests.
                    568: ac_includes_default="\
                    569: #include <stdio.h>
                    570: #ifdef HAVE_SYS_TYPES_H
                    571: # include <sys/types.h>
                    572: #endif
                    573: #ifdef HAVE_SYS_STAT_H
                    574: # include <sys/stat.h>
                    575: #endif
                    576: #ifdef STDC_HEADERS
                    577: # include <stdlib.h>
                    578: # include <stddef.h>
                    579: #else
                    580: # ifdef HAVE_STDLIB_H
                    581: #  include <stdlib.h>
                    582: # endif
                    583: #endif
                    584: #ifdef HAVE_STRING_H
                    585: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    586: #  include <memory.h>
                    587: # endif
                    588: # include <string.h>
                    589: #endif
                    590: #ifdef HAVE_STRINGS_H
                    591: # include <strings.h>
                    592: #endif
                    593: #ifdef HAVE_INTTYPES_H
                    594: # include <inttypes.h>
                    595: #endif
                    596: #ifdef HAVE_STDINT_H
                    597: # include <stdint.h>
                    598: #endif
                    599: #ifdef HAVE_UNISTD_H
                    600: # include <unistd.h>
                    601: #endif"
                    602: 
1.15      bertrand  603: ac_subst_vars='am__EXEEXT_FALSE
                    604: am__EXEEXT_TRUE
                    605: LTLIBOBJS
                    606: LIBOBJS
1.80      bertrand  607: LIBMOTIF
                    608: INCMOTIF
1.56      bertrand  609: GIAC
                    610: PARI
                    611: COCOA
                    612: NTL
1.55      bertrand  613: MPFR
                    614: GMP
1.49      bertrand  615: MALLOC
1.30      bertrand  616: EXT_SQL
1.15      bertrand  617: DATE_FR
                    618: FINAL_ENCODING
1.76      bertrand  619: SIGSEGV
1.80      bertrand  620: BUILD_OPENMOTIF
1.78      bertrand  621: OPENMOTIF
1.82      bertrand  622: LIBXPM
1.15      bertrand  623: OPENSSL
                    624: SQLITE
                    625: ICONV
                    626: FILE
                    627: GNUPLOT
                    628: GPP
                    629: GSL
                    630: UNITS
                    631: READLINE
                    632: NCURSES
1.75      bertrand  633: ELF
1.40      bertrand  634: BSH_PATH
1.34      bertrand  635: IPV6
1.33      bertrand  636: SEMUN
1.36      bertrand  637: IPCS_SYSV
1.17      bertrand  638: SEMAPHORES_NOMMES
                    639: NESTED_FUNCTIONS
                    640: EXPORT_DYNAMIC
1.33      bertrand  641: C_STANDARD
1.91      bertrand  642: LIB_PREFIX
1.90      bertrand  643: WHOLE_LIB2
                    644: WHOLE_LIB1
1.15      bertrand  645: OS
1.69      bertrand  646: HOST
1.15      bertrand  647: GNUPLOT_COMPILATION
                    648: EGREP
                    649: GREP
                    650: libPgSQLlib
                    651: libPgSQLinc
                    652: POSTGRESQL_SUPPORT
                    653: libMySQLlib
                    654: libMySQLinc
                    655: MYSQL_SUPPORT
                    656: DATE
                    657: includeX
                    658: libX
                    659: MOTIF_SUPPORT
                    660: DEBUG
                    661: EXPERIMENTAL_CODE
                    662: VIM_SUPPORT
                    663: POSTSCRIPT_SUPPORT
                    664: FORCE_GNUPLOT_PATH
                    665: GNUPLOT_SUPPORT
                    666: VIM
                    667: GNUPLOT_P
                    668: GV
                    669: GS
                    670: DVIPS
                    671: LATEX
                    672: TEX
                    673: SED
                    674: RANLIB
                    675: LN_S
                    676: RUNPATH
                    677: PROFILAGE
1.80      bertrand  678: subdirs
1.91      bertrand  679: PSELECT
1.89      bertrand  680: SHARED_MEMORY
1.67      bertrand  681: LIBRPLCAS
                    682: RPLCAS
1.66      bertrand  683: ABI
1.88      bertrand  684: RPLTOOLS
1.15      bertrand  685: X_EXTRA_LIBS
                    686: X_LIBS
                    687: X_PRE_LIBS
                    688: X_CFLAGS
                    689: CPP
                    690: XMKMF
                    691: ac_ct_FC
                    692: FCFLAGS
                    693: FC
                    694: ac_ct_F77
                    695: FFLAGS
                    696: F77
                    697: am__fastdepCXX_FALSE
                    698: am__fastdepCXX_TRUE
                    699: CXXDEPMODE
                    700: ac_ct_CXX
                    701: CXXFLAGS
                    702: CXX
                    703: am__fastdepCC_FALSE
                    704: am__fastdepCC_TRUE
                    705: CCDEPMODE
                    706: AMDEPBACKSLASH
                    707: AMDEP_FALSE
                    708: AMDEP_TRUE
                    709: am__quote
                    710: am__include
                    711: DEPDIR
                    712: OBJEXT
                    713: EXEEXT
                    714: ac_ct_CC
                    715: CPPFLAGS
                    716: LDFLAGS
                    717: CFLAGS
                    718: CC
1.92      bertrand  719: AM_BACKSLASH
                    720: AM_DEFAULT_VERBOSITY
1.15      bertrand  721: am__untar
                    722: am__tar
                    723: AMTAR
                    724: am__leading_dot
                    725: SET_MAKE
                    726: AWK
                    727: mkdir_p
                    728: MKDIR_P
                    729: INSTALL_STRIP_PROGRAM
                    730: STRIP
                    731: install_sh
                    732: MAKEINFO
                    733: AUTOHEADER
                    734: AUTOMAKE
                    735: AUTOCONF
                    736: ACLOCAL
                    737: VERSION
                    738: PACKAGE
                    739: CYGPATH_W
                    740: am__isrc
                    741: INSTALL_DATA
                    742: INSTALL_SCRIPT
                    743: INSTALL_PROGRAM
                    744: target_os
                    745: target_vendor
                    746: target_cpu
                    747: target
                    748: host_os
                    749: host_vendor
                    750: host_cpu
                    751: host
                    752: build_os
                    753: build_vendor
                    754: build_cpu
                    755: build
                    756: target_alias
                    757: host_alias
                    758: build_alias
                    759: LIBS
                    760: ECHO_T
                    761: ECHO_N
                    762: ECHO_C
                    763: DEFS
                    764: mandir
                    765: localedir
                    766: libdir
                    767: psdir
                    768: pdfdir
                    769: dvidir
                    770: htmldir
                    771: infodir
                    772: docdir
                    773: oldincludedir
                    774: includedir
                    775: localstatedir
                    776: sharedstatedir
                    777: sysconfdir
                    778: datadir
                    779: datarootdir
                    780: libexecdir
                    781: sbindir
                    782: bindir
                    783: program_transform_name
                    784: prefix
                    785: exec_prefix
                    786: PACKAGE_URL
                    787: PACKAGE_BUGREPORT
                    788: PACKAGE_STRING
                    789: PACKAGE_VERSION
                    790: PACKAGE_TARNAME
                    791: PACKAGE_NAME
1.14      bertrand  792: PATH_SEPARATOR
1.15      bertrand  793: SHELL'
                    794: ac_subst_files=''
                    795: ac_user_opts='
                    796: enable_option_checking
1.92      bertrand  797: enable_silent_rules
1.15      bertrand  798: enable_dependency_tracking
                    799: with_x
1.69      bertrand  800: with_32bits_abi
                    801: with_64bits_abi
1.91      bertrand  802: enable_recursive
1.88      bertrand  803: with_rpltools
                    804: enable_rplcas
1.15      bertrand  805: enable_optimization
1.87      bertrand  806: enable_sysv_ipcs
1.30      bertrand  807: enable_full_static
1.15      bertrand  808: enable_final_encoding
                    809: enable_tex
                    810: enable_vim
                    811: enable_embedded_gnuplot
                    812: enable_gnuplot
                    813: enable_motif
                    814: enable_experimental
                    815: enable_debug
                    816: enable_profile
                    817: enable_final_run_path
                    818: with_mysql
                    819: with_postgresql
1.40      bertrand  820: with_bourne_shell
1.15      bertrand  821: with_openssl_arch
                    822: '
                    823:       ac_precious_vars='build_alias
1.1       bertrand  824: host_alias
                    825: target_alias
                    826: CC
                    827: CFLAGS
                    828: LDFLAGS
1.15      bertrand  829: LIBS
1.1       bertrand  830: CPPFLAGS
                    831: CXX
                    832: CXXFLAGS
1.15      bertrand  833: CCC
1.1       bertrand  834: F77
                    835: FFLAGS
                    836: FC
                    837: FCFLAGS
                    838: XMKMF
                    839: CPP'
1.80      bertrand  840: ac_subdirs_all='tools/$LIBXPM
                    841: tools/$OPENMOTIF
                    842: tools/$GNUPLOT
1.69      bertrand  843: tools/$NCURSES
1.1       bertrand  844: tools/$READLINE
                    845: tools/$GSL
                    846: tools/$GPP
                    847: tools/$FILE
                    848: tools/$ICONV
1.9       bertrand  849: tools/$SQLITE
1.76      bertrand  850: tools/$UNITS
                    851: tools/$SIGSEGV'
1.1       bertrand  852: 
                    853: # Initialize some variables set by options.
                    854: ac_init_help=
                    855: ac_init_version=false
1.15      bertrand  856: ac_unrecognized_opts=
                    857: ac_unrecognized_sep=
1.1       bertrand  858: # The variables have the same names as the options, with
                    859: # dashes changed to underlines.
                    860: cache_file=/dev/null
                    861: exec_prefix=NONE
                    862: no_create=
                    863: no_recursion=
                    864: prefix=NONE
                    865: program_prefix=NONE
                    866: program_suffix=NONE
                    867: program_transform_name=s,x,x,
                    868: silent=
                    869: site=
                    870: srcdir=
                    871: verbose=
                    872: x_includes=NONE
                    873: x_libraries=NONE
                    874: 
                    875: # Installation directory options.
                    876: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    877: # and all the variables that are supposed to be based on exec_prefix
                    878: # by default will actually change.
                    879: # Use braces instead of parens because sh, perl, etc. also accept them.
                    880: # (The list follows the same order as the GNU Coding Standards.)
                    881: bindir='${exec_prefix}/bin'
                    882: sbindir='${exec_prefix}/sbin'
                    883: libexecdir='${exec_prefix}/libexec'
                    884: datarootdir='${prefix}/share'
                    885: datadir='${datarootdir}'
                    886: sysconfdir='${prefix}/etc'
                    887: sharedstatedir='${prefix}/com'
                    888: localstatedir='${prefix}/var'
                    889: includedir='${prefix}/include'
                    890: oldincludedir='/usr/include'
                    891: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    892: infodir='${datarootdir}/info'
                    893: htmldir='${docdir}'
                    894: dvidir='${docdir}'
                    895: pdfdir='${docdir}'
                    896: psdir='${docdir}'
                    897: libdir='${exec_prefix}/lib'
                    898: localedir='${datarootdir}/locale'
                    899: mandir='${datarootdir}/man'
                    900: 
                    901: ac_prev=
                    902: ac_dashdash=
                    903: for ac_option
                    904: do
                    905:   # If the previous option needs an argument, assign it.
                    906:   if test -n "$ac_prev"; then
                    907:     eval $ac_prev=\$ac_option
                    908:     ac_prev=
                    909:     continue
                    910:   fi
                    911: 
                    912:   case $ac_option in
1.36      bertrand  913:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    914:   *=)   ac_optarg= ;;
                    915:   *)    ac_optarg=yes ;;
1.1       bertrand  916:   esac
                    917: 
                    918:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    919: 
                    920:   case $ac_dashdash$ac_option in
                    921:   --)
                    922:     ac_dashdash=yes ;;
                    923: 
                    924:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    925:     ac_prev=bindir ;;
                    926:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    927:     bindir=$ac_optarg ;;
                    928: 
                    929:   -build | --build | --buil | --bui | --bu)
                    930:     ac_prev=build_alias ;;
                    931:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    932:     build_alias=$ac_optarg ;;
                    933: 
                    934:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    935:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    936:     ac_prev=cache_file ;;
                    937:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    938:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    939:     cache_file=$ac_optarg ;;
                    940: 
                    941:   --config-cache | -C)
                    942:     cache_file=config.cache ;;
                    943: 
                    944:   -datadir | --datadir | --datadi | --datad)
                    945:     ac_prev=datadir ;;
                    946:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    947:     datadir=$ac_optarg ;;
                    948: 
                    949:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    950:   | --dataroo | --dataro | --datar)
                    951:     ac_prev=datarootdir ;;
                    952:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    953:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    954:     datarootdir=$ac_optarg ;;
                    955: 
                    956:   -disable-* | --disable-*)
1.15      bertrand  957:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  958:     # Reject names that are not valid shell variable names.
1.15      bertrand  959:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  960:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  961:     ac_useropt_orig=$ac_useropt
                    962:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    963:     case $ac_user_opts in
                    964:       *"
                    965: "enable_$ac_useropt"
                    966: "*) ;;
                    967:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    968:     ac_unrecognized_sep=', ';;
                    969:     esac
                    970:     eval enable_$ac_useropt=no ;;
1.1       bertrand  971: 
                    972:   -docdir | --docdir | --docdi | --doc | --do)
                    973:     ac_prev=docdir ;;
                    974:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    975:     docdir=$ac_optarg ;;
                    976: 
                    977:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    978:     ac_prev=dvidir ;;
                    979:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    980:     dvidir=$ac_optarg ;;
                    981: 
                    982:   -enable-* | --enable-*)
1.15      bertrand  983:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  984:     # Reject names that are not valid shell variable names.
1.15      bertrand  985:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  986:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  987:     ac_useropt_orig=$ac_useropt
                    988:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    989:     case $ac_user_opts in
                    990:       *"
                    991: "enable_$ac_useropt"
                    992: "*) ;;
                    993:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    994:     ac_unrecognized_sep=', ';;
                    995:     esac
                    996:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  997: 
                    998:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    999:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                   1000:   | --exec | --exe | --ex)
                   1001:     ac_prev=exec_prefix ;;
                   1002:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                   1003:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                   1004:   | --exec=* | --exe=* | --ex=*)
                   1005:     exec_prefix=$ac_optarg ;;
                   1006: 
                   1007:   -gas | --gas | --ga | --g)
                   1008:     # Obsolete; use --with-gas.
                   1009:     with_gas=yes ;;
                   1010: 
                   1011:   -help | --help | --hel | --he | -h)
                   1012:     ac_init_help=long ;;
                   1013:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1014:     ac_init_help=recursive ;;
                   1015:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1016:     ac_init_help=short ;;
                   1017: 
                   1018:   -host | --host | --hos | --ho)
                   1019:     ac_prev=host_alias ;;
                   1020:   -host=* | --host=* | --hos=* | --ho=*)
                   1021:     host_alias=$ac_optarg ;;
                   1022: 
                   1023:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1024:     ac_prev=htmldir ;;
                   1025:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1026:   | --ht=*)
                   1027:     htmldir=$ac_optarg ;;
                   1028: 
                   1029:   -includedir | --includedir | --includedi | --included | --include \
                   1030:   | --includ | --inclu | --incl | --inc)
                   1031:     ac_prev=includedir ;;
                   1032:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1033:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1034:     includedir=$ac_optarg ;;
                   1035: 
                   1036:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1037:     ac_prev=infodir ;;
                   1038:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1039:     infodir=$ac_optarg ;;
                   1040: 
                   1041:   -libdir | --libdir | --libdi | --libd)
                   1042:     ac_prev=libdir ;;
                   1043:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1044:     libdir=$ac_optarg ;;
                   1045: 
                   1046:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1047:   | --libexe | --libex | --libe)
                   1048:     ac_prev=libexecdir ;;
                   1049:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1050:   | --libexe=* | --libex=* | --libe=*)
                   1051:     libexecdir=$ac_optarg ;;
                   1052: 
                   1053:   -localedir | --localedir | --localedi | --localed | --locale)
                   1054:     ac_prev=localedir ;;
                   1055:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1056:     localedir=$ac_optarg ;;
                   1057: 
                   1058:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1059:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1060:     ac_prev=localstatedir ;;
                   1061:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1062:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1063:     localstatedir=$ac_optarg ;;
                   1064: 
                   1065:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1066:     ac_prev=mandir ;;
                   1067:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1068:     mandir=$ac_optarg ;;
                   1069: 
                   1070:   -nfp | --nfp | --nf)
                   1071:     # Obsolete; use --without-fp.
                   1072:     with_fp=no ;;
                   1073: 
                   1074:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1075:   | --no-cr | --no-c | -n)
                   1076:     no_create=yes ;;
                   1077: 
                   1078:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1079:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1080:     no_recursion=yes ;;
                   1081: 
                   1082:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1083:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1084:   | --oldin | --oldi | --old | --ol | --o)
                   1085:     ac_prev=oldincludedir ;;
                   1086:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1087:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1088:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1089:     oldincludedir=$ac_optarg ;;
                   1090: 
                   1091:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1092:     ac_prev=prefix ;;
                   1093:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1094:     prefix=$ac_optarg ;;
                   1095: 
                   1096:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1097:   | --program-pre | --program-pr | --program-p)
                   1098:     ac_prev=program_prefix ;;
                   1099:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1100:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1101:     program_prefix=$ac_optarg ;;
                   1102: 
                   1103:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1104:   | --program-suf | --program-su | --program-s)
                   1105:     ac_prev=program_suffix ;;
                   1106:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1107:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1108:     program_suffix=$ac_optarg ;;
                   1109: 
                   1110:   -program-transform-name | --program-transform-name \
                   1111:   | --program-transform-nam | --program-transform-na \
                   1112:   | --program-transform-n | --program-transform- \
                   1113:   | --program-transform | --program-transfor \
                   1114:   | --program-transfo | --program-transf \
                   1115:   | --program-trans | --program-tran \
                   1116:   | --progr-tra | --program-tr | --program-t)
                   1117:     ac_prev=program_transform_name ;;
                   1118:   -program-transform-name=* | --program-transform-name=* \
                   1119:   | --program-transform-nam=* | --program-transform-na=* \
                   1120:   | --program-transform-n=* | --program-transform-=* \
                   1121:   | --program-transform=* | --program-transfor=* \
                   1122:   | --program-transfo=* | --program-transf=* \
                   1123:   | --program-trans=* | --program-tran=* \
                   1124:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1125:     program_transform_name=$ac_optarg ;;
                   1126: 
                   1127:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1128:     ac_prev=pdfdir ;;
                   1129:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1130:     pdfdir=$ac_optarg ;;
                   1131: 
                   1132:   -psdir | --psdir | --psdi | --psd | --ps)
                   1133:     ac_prev=psdir ;;
                   1134:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1135:     psdir=$ac_optarg ;;
                   1136: 
                   1137:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1138:   | -silent | --silent | --silen | --sile | --sil)
                   1139:     silent=yes ;;
                   1140: 
                   1141:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1142:     ac_prev=sbindir ;;
                   1143:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1144:   | --sbi=* | --sb=*)
                   1145:     sbindir=$ac_optarg ;;
                   1146: 
                   1147:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1148:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1149:   | --sharedst | --shareds | --shared | --share | --shar \
                   1150:   | --sha | --sh)
                   1151:     ac_prev=sharedstatedir ;;
                   1152:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1153:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1154:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1155:   | --sha=* | --sh=*)
                   1156:     sharedstatedir=$ac_optarg ;;
                   1157: 
                   1158:   -site | --site | --sit)
                   1159:     ac_prev=site ;;
                   1160:   -site=* | --site=* | --sit=*)
                   1161:     site=$ac_optarg ;;
                   1162: 
                   1163:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1164:     ac_prev=srcdir ;;
                   1165:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1166:     srcdir=$ac_optarg ;;
                   1167: 
                   1168:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1169:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1170:     ac_prev=sysconfdir ;;
                   1171:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1172:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1173:     sysconfdir=$ac_optarg ;;
                   1174: 
                   1175:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1176:     ac_prev=target_alias ;;
                   1177:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1178:     target_alias=$ac_optarg ;;
                   1179: 
                   1180:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1181:     verbose=yes ;;
                   1182: 
                   1183:   -version | --version | --versio | --versi | --vers | -V)
                   1184:     ac_init_version=: ;;
                   1185: 
                   1186:   -with-* | --with-*)
1.15      bertrand 1187:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1188:     # Reject names that are not valid shell variable names.
1.15      bertrand 1189:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1190:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1191:     ac_useropt_orig=$ac_useropt
                   1192:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1193:     case $ac_user_opts in
                   1194:       *"
                   1195: "with_$ac_useropt"
                   1196: "*) ;;
                   1197:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1198:     ac_unrecognized_sep=', ';;
                   1199:     esac
                   1200:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1201: 
                   1202:   -without-* | --without-*)
1.15      bertrand 1203:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1204:     # Reject names that are not valid shell variable names.
1.15      bertrand 1205:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1206:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1207:     ac_useropt_orig=$ac_useropt
                   1208:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1209:     case $ac_user_opts in
                   1210:       *"
                   1211: "with_$ac_useropt"
                   1212: "*) ;;
                   1213:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1214:     ac_unrecognized_sep=', ';;
                   1215:     esac
                   1216:     eval with_$ac_useropt=no ;;
1.1       bertrand 1217: 
                   1218:   --x)
                   1219:     # Obsolete; use --with-x.
                   1220:     with_x=yes ;;
                   1221: 
                   1222:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1223:   | --x-incl | --x-inc | --x-in | --x-i)
                   1224:     ac_prev=x_includes ;;
                   1225:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1226:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1227:     x_includes=$ac_optarg ;;
                   1228: 
                   1229:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1230:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1231:     ac_prev=x_libraries ;;
                   1232:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1233:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1234:     x_libraries=$ac_optarg ;;
                   1235: 
1.36      bertrand 1236:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1237: Try \`$0 --help' for more information"
1.1       bertrand 1238:     ;;
                   1239: 
                   1240:   *=*)
                   1241:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1242:     # Reject names that are not valid shell variable names.
1.15      bertrand 1243:     case $ac_envvar in #(
                   1244:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1245:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1246:     esac
1.1       bertrand 1247:     eval $ac_envvar=\$ac_optarg
                   1248:     export $ac_envvar ;;
                   1249: 
                   1250:   *)
                   1251:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1252:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1253:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1254:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.93      bertrand 1255:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1       bertrand 1256:     ;;
                   1257: 
                   1258:   esac
                   1259: done
                   1260: 
                   1261: if test -n "$ac_prev"; then
                   1262:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1263:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1264: fi
                   1265: 
                   1266: if test -n "$ac_unrecognized_opts"; then
                   1267:   case $enable_option_checking in
                   1268:     no) ;;
1.36      bertrand 1269:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1270:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1271:   esac
1.1       bertrand 1272: fi
                   1273: 
1.15      bertrand 1274: # Check all directory arguments for consistency.
1.1       bertrand 1275: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1276:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1277:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1278:        libdir localedir mandir
                   1279: do
                   1280:   eval ac_val=\$$ac_var
1.15      bertrand 1281:   # Remove trailing slashes.
                   1282:   case $ac_val in
                   1283:     */ )
                   1284:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1285:       eval $ac_var=\$ac_val;;
                   1286:   esac
                   1287:   # Be sure to have absolute directory names.
1.1       bertrand 1288:   case $ac_val in
                   1289:     [\\/$]* | ?:[\\/]* )  continue;;
                   1290:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1291:   esac
1.36      bertrand 1292:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1293: done
                   1294: 
                   1295: # There might be people who depend on the old broken behavior: `$host'
                   1296: # used to hold the argument of --host etc.
                   1297: # FIXME: To remove some day.
                   1298: build=$build_alias
                   1299: host=$host_alias
                   1300: target=$target_alias
                   1301: 
                   1302: # FIXME: To remove some day.
                   1303: if test "x$host_alias" != x; then
                   1304:   if test "x$build_alias" = x; then
                   1305:     cross_compiling=maybe
1.36      bertrand 1306:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1307:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1308:   elif test "x$build_alias" != "x$host_alias"; then
                   1309:     cross_compiling=yes
                   1310:   fi
                   1311: fi
                   1312: 
                   1313: ac_tool_prefix=
                   1314: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1315: 
                   1316: test "$silent" = yes && exec 6>/dev/null
                   1317: 
                   1318: 
                   1319: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1320: ac_ls_di=`ls -di .` &&
                   1321: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1322:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1323: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1324:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1325: 
                   1326: 
                   1327: # Find the source files, if location was not specified.
                   1328: if test -z "$srcdir"; then
                   1329:   ac_srcdir_defaulted=yes
                   1330:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1331:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1332: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1333:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1334:     X"$as_myself" : 'X\(//\)$' \| \
                   1335:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1336: $as_echo X"$as_myself" |
1.1       bertrand 1337:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1338:        s//\1/
                   1339:        q
                   1340:      }
                   1341:      /^X\(\/\/\)[^/].*/{
                   1342:        s//\1/
                   1343:        q
                   1344:      }
                   1345:      /^X\(\/\/\)$/{
                   1346:        s//\1/
                   1347:        q
                   1348:      }
                   1349:      /^X\(\/\).*/{
                   1350:        s//\1/
                   1351:        q
                   1352:      }
                   1353:      s/.*/./; q'`
                   1354:   srcdir=$ac_confdir
                   1355:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1356:     srcdir=..
                   1357:   fi
                   1358: else
                   1359:   ac_srcdir_defaulted=no
                   1360: fi
                   1361: if test ! -r "$srcdir/$ac_unique_file"; then
                   1362:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1363:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1364: fi
                   1365: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1366: ac_abs_confdir=`(
1.36      bertrand 1367:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1368:    pwd)`
                   1369: # When building in place, set srcdir=.
                   1370: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1371:   srcdir=.
                   1372: fi
                   1373: # Remove unnecessary trailing slashes from srcdir.
                   1374: # Double slashes in file names in object file debugging info
                   1375: # mess up M-x gdb in Emacs.
                   1376: case $srcdir in
                   1377: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1378: esac
                   1379: for ac_var in $ac_precious_vars; do
                   1380:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1381:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1382:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1383:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1384: done
                   1385: 
                   1386: #
                   1387: # Report the --help message.
                   1388: #
                   1389: if test "$ac_init_help" = "long"; then
                   1390:   # Omit some internal or obsolete options to make the list less imposing.
                   1391:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1392:   cat <<_ACEOF
1.86      bertrand 1393: \`configure' configures rpl 4.1.4 to adapt to many kinds of systems.
1.1       bertrand 1394: 
                   1395: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1396: 
                   1397: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1398: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1399: 
                   1400: Defaults for the options are specified in brackets.
                   1401: 
                   1402: Configuration:
                   1403:   -h, --help              display this help and exit
                   1404:       --help=short        display options specific to this package
                   1405:       --help=recursive    display the short help of all the included packages
                   1406:   -V, --version           display version information and exit
1.36      bertrand 1407:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1408:       --cache-file=FILE   cache test results in FILE [disabled]
                   1409:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1410:   -n, --no-create         do not create output files
                   1411:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1412: 
                   1413: Installation directories:
                   1414:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1415:                           [$ac_default_prefix]
1.1       bertrand 1416:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1417:                           [PREFIX]
1.1       bertrand 1418: 
                   1419: By default, \`make install' will install all the files in
                   1420: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1421: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1422: for instance \`--prefix=\$HOME'.
                   1423: 
                   1424: For better control, use the options below.
                   1425: 
                   1426: Fine tuning of the installation directories:
1.15      bertrand 1427:   --bindir=DIR            user executables [EPREFIX/bin]
                   1428:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1429:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1430:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1431:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1432:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1433:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1434:   --includedir=DIR        C header files [PREFIX/include]
                   1435:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1436:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1437:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1438:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1439:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1440:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1441:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1442:   --htmldir=DIR           html documentation [DOCDIR]
                   1443:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1444:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1445:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1446: _ACEOF
                   1447: 
                   1448:   cat <<\_ACEOF
                   1449: 
                   1450: Program names:
                   1451:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1452:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1453:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1454: 
                   1455: X features:
                   1456:   --x-includes=DIR    X include files are in DIR
                   1457:   --x-libraries=DIR   X library files are in DIR
                   1458: 
                   1459: System types:
                   1460:   --build=BUILD     configure for building on BUILD [guessed]
                   1461:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1462:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1463: _ACEOF
                   1464: fi
                   1465: 
                   1466: if test -n "$ac_init_help"; then
                   1467:   case $ac_init_help in
1.86      bertrand 1468:      short | recursive ) echo "Configuration of rpl 4.1.4:";;
1.1       bertrand 1469:    esac
                   1470:   cat <<\_ACEOF
                   1471: 
                   1472: Optional Features:
1.15      bertrand 1473:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1474:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1475:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1.92      bertrand 1476:   --enable-silent-rules          less verbose build output (undo: `make V=1')
                   1477:   --disable-silent-rules         verbose build output (undo: `make V=0')
1.1       bertrand 1478:   --disable-dependency-tracking  speeds up one-time build
                   1479:   --enable-dependency-tracking   do not reject slow dependency extractors
1.91      bertrand 1480:   --enable-recursive      recursive configuration (default=yes)
1.88      bertrand 1481:   --enable-rplcas         compile rplcas (default=no)
1.1       bertrand 1482:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.81      bertrand 1483:   --enable-sysv-ipcs      use SystemV IPC functions [default=guessed]
1.30      bertrand 1484:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1485:   --enable-final-encoding force final encoding [default=guessed]
                   1486:   --enable-tex            provide the TeX support [default=guessed]
                   1487:   --enable-vim            provide the vim support [default=guessed]
                   1488:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1489:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1490:   --enable-motif          provide the Motif support [default=guessed]
                   1491:   --enable-experimental   enable experimental code [default=no]
                   1492:   --enable-debug          enable debug code [default=no]
                   1493:   --enable-profile        enable profile code [default=no]
                   1494:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1495: 
                   1496: Optional Packages:
                   1497:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1498:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1499:   --with-x                use the X Window System
1.64      bertrand 1500:   --with-32bits-abi       force 32bits ABI (multilib)
1.67      bertrand 1501:   --with-64bits-abi       force 64bits ABI (multilib)
1.88      bertrand 1502:   --with-rpltools         specify rpltools path used for cross compilation
1.1       bertrand 1503:   --with-mysql=PATH         specify directory for installed mysql
                   1504:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1505:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1506:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1507: 
                   1508: Some influential environment variables:
                   1509:   CC          C compiler command
                   1510:   CFLAGS      C compiler flags
                   1511:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1512:               nonstandard directory <lib dir>
                   1513:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1514:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1515:               you have headers in a nonstandard directory <include dir>
                   1516:   CXX         C++ compiler command
                   1517:   CXXFLAGS    C++ compiler flags
                   1518:   F77         Fortran 77 compiler command
                   1519:   FFLAGS      Fortran 77 compiler flags
                   1520:   FC          Fortran compiler command
                   1521:   FCFLAGS     Fortran compiler flags
                   1522:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1523:   CPP         C preprocessor
                   1524: 
                   1525: Use these variables to override the choices made by `configure' or to help
                   1526: it to find libraries and programs with nonstandard names/locations.
                   1527: 
1.15      bertrand 1528: Report bugs to the package provider.
1.1       bertrand 1529: _ACEOF
                   1530: ac_status=$?
                   1531: fi
                   1532: 
                   1533: if test "$ac_init_help" = "recursive"; then
                   1534:   # If there are subdirs, report their specific --help.
                   1535:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1536:     test -d "$ac_dir" ||
                   1537:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1538:       continue
1.1       bertrand 1539:     ac_builddir=.
                   1540: 
                   1541: case "$ac_dir" in
                   1542: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1543: *)
1.15      bertrand 1544:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1545:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1546:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1547:   case $ac_top_builddir_sub in
                   1548:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1549:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1550:   esac ;;
                   1551: esac
                   1552: ac_abs_top_builddir=$ac_pwd
                   1553: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1554: # for backward compatibility:
                   1555: ac_top_builddir=$ac_top_build_prefix
                   1556: 
                   1557: case $srcdir in
                   1558:   .)  # We are building in place.
                   1559:     ac_srcdir=.
                   1560:     ac_top_srcdir=$ac_top_builddir_sub
                   1561:     ac_abs_top_srcdir=$ac_pwd ;;
                   1562:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1563:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1564:     ac_top_srcdir=$srcdir
                   1565:     ac_abs_top_srcdir=$srcdir ;;
                   1566:   *) # Relative name.
                   1567:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1568:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1569:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1570: esac
                   1571: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1572: 
                   1573:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1574:     # Check for guested configure.
                   1575:     if test -f "$ac_srcdir/configure.gnu"; then
                   1576:       echo &&
                   1577:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1578:     elif test -f "$ac_srcdir/configure"; then
                   1579:       echo &&
                   1580:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1581:     else
1.15      bertrand 1582:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1583:     fi || ac_status=$?
                   1584:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1585:   done
                   1586: fi
                   1587: 
                   1588: test -n "$ac_init_help" && exit $ac_status
                   1589: if $ac_init_version; then
                   1590:   cat <<\_ACEOF
1.86      bertrand 1591: rpl configure 4.1.4
1.93      bertrand 1592: generated by GNU Autoconf 2.68
1.1       bertrand 1593: 
1.36      bertrand 1594: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1595: This configure script is free software; the Free Software Foundation
                   1596: gives unlimited permission to copy, distribute and modify it.
                   1597: _ACEOF
                   1598:   exit
                   1599: fi
                   1600: 
1.15      bertrand 1601: ## ------------------------ ##
                   1602: ## Autoconf initialization. ##
                   1603: ## ------------------------ ##
                   1604: 
                   1605: # ac_fn_c_try_compile LINENO
                   1606: # --------------------------
                   1607: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1608: ac_fn_c_try_compile ()
                   1609: {
                   1610:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1611:   rm -f conftest.$ac_objext
                   1612:   if { { ac_try="$ac_compile"
                   1613: case "(($ac_try" in
                   1614:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1615:   *) ac_try_echo=$ac_try;;
                   1616: esac
                   1617: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1618: $as_echo "$ac_try_echo"; } >&5
                   1619:   (eval "$ac_compile") 2>conftest.err
                   1620:   ac_status=$?
                   1621:   if test -s conftest.err; then
                   1622:     grep -v '^ *+' conftest.err >conftest.er1
                   1623:     cat conftest.er1 >&5
                   1624:     mv -f conftest.er1 conftest.err
                   1625:   fi
                   1626:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1627:   test $ac_status = 0; } && {
                   1628:     test -z "$ac_c_werror_flag" ||
                   1629:     test ! -s conftest.err
                   1630:        } && test -s conftest.$ac_objext; then :
                   1631:   ac_retval=0
                   1632: else
                   1633:   $as_echo "$as_me: failed program was:" >&5
                   1634: sed 's/^/| /' conftest.$ac_ext >&5
                   1635: 
                   1636:    ac_retval=1
                   1637: fi
1.93      bertrand 1638:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1639:   as_fn_set_status $ac_retval
1.1       bertrand 1640: 
1.15      bertrand 1641: } # ac_fn_c_try_compile
1.1       bertrand 1642: 
1.15      bertrand 1643: # ac_fn_cxx_try_compile LINENO
                   1644: # ----------------------------
                   1645: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1646: ac_fn_cxx_try_compile ()
1.1       bertrand 1647: {
1.15      bertrand 1648:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1649:   rm -f conftest.$ac_objext
                   1650:   if { { ac_try="$ac_compile"
                   1651: case "(($ac_try" in
                   1652:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1653:   *) ac_try_echo=$ac_try;;
                   1654: esac
                   1655: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1656: $as_echo "$ac_try_echo"; } >&5
                   1657:   (eval "$ac_compile") 2>conftest.err
                   1658:   ac_status=$?
                   1659:   if test -s conftest.err; then
                   1660:     grep -v '^ *+' conftest.err >conftest.er1
                   1661:     cat conftest.er1 >&5
                   1662:     mv -f conftest.er1 conftest.err
                   1663:   fi
                   1664:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1665:   test $ac_status = 0; } && {
                   1666:     test -z "$ac_cxx_werror_flag" ||
                   1667:     test ! -s conftest.err
                   1668:        } && test -s conftest.$ac_objext; then :
                   1669:   ac_retval=0
                   1670: else
                   1671:   $as_echo "$as_me: failed program was:" >&5
                   1672: sed 's/^/| /' conftest.$ac_ext >&5
                   1673: 
                   1674:    ac_retval=1
                   1675: fi
1.93      bertrand 1676:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1677:   as_fn_set_status $ac_retval
1.1       bertrand 1678: 
1.15      bertrand 1679: } # ac_fn_cxx_try_compile
1.1       bertrand 1680: 
1.15      bertrand 1681: # ac_fn_f77_try_compile LINENO
                   1682: # ----------------------------
                   1683: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1684: ac_fn_f77_try_compile ()
                   1685: {
                   1686:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1687:   rm -f conftest.$ac_objext
                   1688:   if { { ac_try="$ac_compile"
                   1689: case "(($ac_try" in
                   1690:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1691:   *) ac_try_echo=$ac_try;;
                   1692: esac
                   1693: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1694: $as_echo "$ac_try_echo"; } >&5
                   1695:   (eval "$ac_compile") 2>conftest.err
                   1696:   ac_status=$?
                   1697:   if test -s conftest.err; then
                   1698:     grep -v '^ *+' conftest.err >conftest.er1
                   1699:     cat conftest.er1 >&5
                   1700:     mv -f conftest.er1 conftest.err
                   1701:   fi
                   1702:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1703:   test $ac_status = 0; } && {
                   1704:     test -z "$ac_f77_werror_flag" ||
                   1705:     test ! -s conftest.err
                   1706:        } && test -s conftest.$ac_objext; then :
                   1707:   ac_retval=0
                   1708: else
                   1709:   $as_echo "$as_me: failed program was:" >&5
                   1710: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1711: 
1.15      bertrand 1712:    ac_retval=1
                   1713: fi
1.93      bertrand 1714:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1715:   as_fn_set_status $ac_retval
1.1       bertrand 1716: 
1.15      bertrand 1717: } # ac_fn_f77_try_compile
1.1       bertrand 1718: 
1.15      bertrand 1719: # ac_fn_fc_try_compile LINENO
                   1720: # ---------------------------
                   1721: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1722: ac_fn_fc_try_compile ()
                   1723: {
                   1724:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1725:   rm -f conftest.$ac_objext
                   1726:   if { { ac_try="$ac_compile"
                   1727: case "(($ac_try" in
                   1728:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1729:   *) ac_try_echo=$ac_try;;
                   1730: esac
                   1731: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1732: $as_echo "$ac_try_echo"; } >&5
                   1733:   (eval "$ac_compile") 2>conftest.err
                   1734:   ac_status=$?
                   1735:   if test -s conftest.err; then
                   1736:     grep -v '^ *+' conftest.err >conftest.er1
                   1737:     cat conftest.er1 >&5
                   1738:     mv -f conftest.er1 conftest.err
                   1739:   fi
                   1740:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1741:   test $ac_status = 0; } && {
                   1742:     test -z "$ac_fc_werror_flag" ||
                   1743:     test ! -s conftest.err
                   1744:        } && test -s conftest.$ac_objext; then :
                   1745:   ac_retval=0
                   1746: else
                   1747:   $as_echo "$as_me: failed program was:" >&5
                   1748: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1749: 
1.15      bertrand 1750:    ac_retval=1
                   1751: fi
1.93      bertrand 1752:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1753:   as_fn_set_status $ac_retval
1.1       bertrand 1754: 
1.15      bertrand 1755: } # ac_fn_fc_try_compile
1.1       bertrand 1756: 
1.15      bertrand 1757: # ac_fn_c_try_cpp LINENO
                   1758: # ----------------------
                   1759: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1760: ac_fn_c_try_cpp ()
                   1761: {
                   1762:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1763:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1764: case "(($ac_try" in
                   1765:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1766:   *) ac_try_echo=$ac_try;;
                   1767: esac
                   1768: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1769: $as_echo "$ac_try_echo"; } >&5
                   1770:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1771:   ac_status=$?
                   1772:   if test -s conftest.err; then
                   1773:     grep -v '^ *+' conftest.err >conftest.er1
                   1774:     cat conftest.er1 >&5
                   1775:     mv -f conftest.er1 conftest.err
                   1776:   fi
                   1777:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36      bertrand 1778:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1779:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1780:     test ! -s conftest.err
                   1781:        }; then :
                   1782:   ac_retval=0
                   1783: else
                   1784:   $as_echo "$as_me: failed program was:" >&5
                   1785: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1786: 
1.15      bertrand 1787:     ac_retval=1
                   1788: fi
1.93      bertrand 1789:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1790:   as_fn_set_status $ac_retval
1.1       bertrand 1791: 
1.15      bertrand 1792: } # ac_fn_c_try_cpp
1.1       bertrand 1793: 
1.15      bertrand 1794: # ac_fn_c_try_link LINENO
                   1795: # -----------------------
                   1796: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1797: ac_fn_c_try_link ()
                   1798: {
                   1799:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1800:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1801:   if { { ac_try="$ac_link"
                   1802: case "(($ac_try" in
                   1803:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1804:   *) ac_try_echo=$ac_try;;
                   1805: esac
                   1806: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1807: $as_echo "$ac_try_echo"; } >&5
                   1808:   (eval "$ac_link") 2>conftest.err
                   1809:   ac_status=$?
                   1810:   if test -s conftest.err; then
                   1811:     grep -v '^ *+' conftest.err >conftest.er1
                   1812:     cat conftest.er1 >&5
                   1813:     mv -f conftest.er1 conftest.err
                   1814:   fi
                   1815:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1816:   test $ac_status = 0; } && {
                   1817:     test -z "$ac_c_werror_flag" ||
                   1818:     test ! -s conftest.err
                   1819:        } && test -s conftest$ac_exeext && {
                   1820:     test "$cross_compiling" = yes ||
                   1821:     $as_test_x conftest$ac_exeext
                   1822:        }; then :
                   1823:   ac_retval=0
                   1824: else
                   1825:   $as_echo "$as_me: failed program was:" >&5
                   1826: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1827: 
1.15      bertrand 1828:    ac_retval=1
                   1829: fi
                   1830:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1831:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1832:   # interfere with the next link command; also delete a directory that is
                   1833:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1834:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.93      bertrand 1835:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1836:   as_fn_set_status $ac_retval
1.1       bertrand 1837: 
1.15      bertrand 1838: } # ac_fn_c_try_link
1.1       bertrand 1839: 
1.15      bertrand 1840: # ac_fn_c_check_func LINENO FUNC VAR
                   1841: # ----------------------------------
                   1842: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1843: ac_fn_c_check_func ()
                   1844: {
                   1845:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1846:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1847: $as_echo_n "checking for $2... " >&6; }
1.93      bertrand 1848: if eval \${$3+:} false; then :
1.15      bertrand 1849:   $as_echo_n "(cached) " >&6
                   1850: else
                   1851:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1852: /* end confdefs.h.  */
                   1853: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1854:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1855: #define $2 innocuous_$2
1.1       bertrand 1856: 
1.15      bertrand 1857: /* System header to define __stub macros and hopefully few prototypes,
                   1858:     which can conflict with char $2 (); below.
                   1859:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1860:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1861: 
1.15      bertrand 1862: #ifdef __STDC__
                   1863: # include <limits.h>
                   1864: #else
                   1865: # include <assert.h>
                   1866: #endif
1.1       bertrand 1867: 
1.15      bertrand 1868: #undef $2
1.1       bertrand 1869: 
1.15      bertrand 1870: /* Override any GCC internal prototype to avoid an error.
                   1871:    Use char because int might match the return type of a GCC
                   1872:    builtin and then its argument prototype would still apply.  */
                   1873: #ifdef __cplusplus
                   1874: extern "C"
                   1875: #endif
                   1876: char $2 ();
                   1877: /* The GNU C library defines this for functions which it implements
                   1878:     to always fail with ENOSYS.  Some functions are actually named
                   1879:     something starting with __ and the normal name is an alias.  */
                   1880: #if defined __stub_$2 || defined __stub___$2
                   1881: choke me
                   1882: #endif
1.1       bertrand 1883: 
1.15      bertrand 1884: int
                   1885: main ()
                   1886: {
                   1887: return $2 ();
                   1888:   ;
                   1889:   return 0;
                   1890: }
1.1       bertrand 1891: _ACEOF
1.15      bertrand 1892: if ac_fn_c_try_link "$LINENO"; then :
                   1893:   eval "$3=yes"
                   1894: else
                   1895:   eval "$3=no"
                   1896: fi
                   1897: rm -f core conftest.err conftest.$ac_objext \
                   1898:     conftest$ac_exeext conftest.$ac_ext
                   1899: fi
                   1900: eval ac_res=\$$3
                   1901:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1902: $as_echo "$ac_res" >&6; }
1.93      bertrand 1903:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 1904: 
1.15      bertrand 1905: } # ac_fn_c_check_func
1.1       bertrand 1906: 
1.83      bertrand 1907: # ac_fn_c_try_run LINENO
                   1908: # ----------------------
                   1909: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1910: # that executables *can* be run.
                   1911: ac_fn_c_try_run ()
                   1912: {
                   1913:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1914:   if { { ac_try="$ac_link"
                   1915: case "(($ac_try" in
                   1916:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1917:   *) ac_try_echo=$ac_try;;
                   1918: esac
                   1919: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1920: $as_echo "$ac_try_echo"; } >&5
                   1921:   (eval "$ac_link") 2>&5
                   1922:   ac_status=$?
                   1923:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1924:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1925:   { { case "(($ac_try" in
                   1926:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1927:   *) ac_try_echo=$ac_try;;
                   1928: esac
                   1929: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1930: $as_echo "$ac_try_echo"; } >&5
                   1931:   (eval "$ac_try") 2>&5
                   1932:   ac_status=$?
                   1933:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1934:   test $ac_status = 0; }; }; then :
                   1935:   ac_retval=0
                   1936: else
                   1937:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1938:        $as_echo "$as_me: failed program was:" >&5
                   1939: sed 's/^/| /' conftest.$ac_ext >&5
                   1940: 
                   1941:        ac_retval=$ac_status
                   1942: fi
                   1943:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.93      bertrand 1944:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.83      bertrand 1945:   as_fn_set_status $ac_retval
                   1946: 
                   1947: } # ac_fn_c_try_run
                   1948: 
1.33      bertrand 1949: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1950: # -------------------------------------------
                   1951: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1952: # variable VAR accordingly.
                   1953: ac_fn_c_check_type ()
                   1954: {
                   1955:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1956:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1957: $as_echo_n "checking for $2... " >&6; }
1.93      bertrand 1958: if eval \${$3+:} false; then :
1.33      bertrand 1959:   $as_echo_n "(cached) " >&6
                   1960: else
                   1961:   eval "$3=no"
                   1962:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1963: /* end confdefs.h.  */
                   1964: $4
                   1965: int
                   1966: main ()
                   1967: {
                   1968: if (sizeof ($2))
                   1969:     return 0;
                   1970:   ;
                   1971:   return 0;
                   1972: }
                   1973: _ACEOF
                   1974: if ac_fn_c_try_compile "$LINENO"; then :
                   1975:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1976: /* end confdefs.h.  */
                   1977: $4
                   1978: int
                   1979: main ()
                   1980: {
                   1981: if (sizeof (($2)))
                   1982:        return 0;
                   1983:   ;
                   1984:   return 0;
                   1985: }
                   1986: _ACEOF
                   1987: if ac_fn_c_try_compile "$LINENO"; then :
                   1988: 
                   1989: else
                   1990:   eval "$3=yes"
                   1991: fi
                   1992: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1993: fi
                   1994: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1995: fi
                   1996: eval ac_res=\$$3
                   1997:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1998: $as_echo "$ac_res" >&6; }
1.93      bertrand 1999:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33      bertrand 2000: 
                   2001: } # ac_fn_c_check_type
                   2002: 
1.15      bertrand 2003: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   2004: # --------------------------------------------
                   2005: # Tries to find the compile-time value of EXPR in a program that includes
                   2006: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   2007: # computed
                   2008: ac_fn_c_compute_int ()
                   2009: {
                   2010:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2011:   if test "$cross_compiling" = yes; then
                   2012:     # Depending upon the size, compute the lo and hi bounds.
                   2013: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2014: /* end confdefs.h.  */
                   2015: $4
                   2016: int
                   2017: main ()
                   2018: {
                   2019: static int test_array [1 - 2 * !(($2) >= 0)];
                   2020: test_array [0] = 0
1.1       bertrand 2021: 
1.15      bertrand 2022:   ;
                   2023:   return 0;
                   2024: }
1.1       bertrand 2025: _ACEOF
1.15      bertrand 2026: if ac_fn_c_try_compile "$LINENO"; then :
                   2027:   ac_lo=0 ac_mid=0
                   2028:   while :; do
                   2029:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2030: /* end confdefs.h.  */
                   2031: $4
                   2032: int
                   2033: main ()
                   2034: {
                   2035: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2036: test_array [0] = 0
1.1       bertrand 2037: 
1.15      bertrand 2038:   ;
                   2039:   return 0;
                   2040: }
                   2041: _ACEOF
                   2042: if ac_fn_c_try_compile "$LINENO"; then :
                   2043:   ac_hi=$ac_mid; break
                   2044: else
                   2045:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2046:            if test $ac_lo -le $ac_mid; then
                   2047:              ac_lo= ac_hi=
                   2048:              break
                   2049:            fi
                   2050:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2051: fi
                   2052: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2053:   done
                   2054: else
                   2055:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2056: /* end confdefs.h.  */
                   2057: $4
                   2058: int
                   2059: main ()
                   2060: {
                   2061: static int test_array [1 - 2 * !(($2) < 0)];
                   2062: test_array [0] = 0
1.1       bertrand 2063: 
1.15      bertrand 2064:   ;
                   2065:   return 0;
                   2066: }
1.1       bertrand 2067: _ACEOF
1.15      bertrand 2068: if ac_fn_c_try_compile "$LINENO"; then :
                   2069:   ac_hi=-1 ac_mid=-1
                   2070:   while :; do
                   2071:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2072: /* end confdefs.h.  */
                   2073: $4
                   2074: int
                   2075: main ()
                   2076: {
                   2077: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2078: test_array [0] = 0
1.1       bertrand 2079: 
1.15      bertrand 2080:   ;
                   2081:   return 0;
                   2082: }
                   2083: _ACEOF
                   2084: if ac_fn_c_try_compile "$LINENO"; then :
                   2085:   ac_lo=$ac_mid; break
                   2086: else
                   2087:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2088:            if test $ac_mid -le $ac_hi; then
                   2089:              ac_lo= ac_hi=
                   2090:              break
                   2091:            fi
                   2092:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2093: fi
                   2094: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2095:   done
1.1       bertrand 2096: else
1.15      bertrand 2097:   ac_lo= ac_hi=
                   2098: fi
                   2099: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2100: fi
1.15      bertrand 2101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2102: # Binary search between lo and hi bounds.
                   2103: while test "x$ac_lo" != "x$ac_hi"; do
                   2104:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2105:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2106: /* end confdefs.h.  */
                   2107: $4
                   2108: int
                   2109: main ()
                   2110: {
                   2111: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2112: test_array [0] = 0
1.1       bertrand 2113: 
1.15      bertrand 2114:   ;
                   2115:   return 0;
                   2116: }
                   2117: _ACEOF
                   2118: if ac_fn_c_try_compile "$LINENO"; then :
                   2119:   ac_hi=$ac_mid
1.1       bertrand 2120: else
1.15      bertrand 2121:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2122: fi
1.15      bertrand 2123: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2124: done
                   2125: case $ac_lo in #((
                   2126: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2127: '') ac_retval=1 ;;
                   2128: esac
                   2129:   else
                   2130:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2131: /* end confdefs.h.  */
                   2132: $4
                   2133: static long int longval () { return $2; }
                   2134: static unsigned long int ulongval () { return $2; }
                   2135: #include <stdio.h>
                   2136: #include <stdlib.h>
                   2137: int
                   2138: main ()
                   2139: {
1.1       bertrand 2140: 
1.15      bertrand 2141:   FILE *f = fopen ("conftest.val", "w");
                   2142:   if (! f)
                   2143:     return 1;
                   2144:   if (($2) < 0)
                   2145:     {
                   2146:       long int i = longval ();
                   2147:       if (i != ($2))
                   2148:    return 1;
                   2149:       fprintf (f, "%ld", i);
                   2150:     }
                   2151:   else
                   2152:     {
                   2153:       unsigned long int i = ulongval ();
                   2154:       if (i != ($2))
                   2155:    return 1;
                   2156:       fprintf (f, "%lu", i);
                   2157:     }
                   2158:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2159:      on some platforms.  */
                   2160:   return ferror (f) || fclose (f) != 0;
                   2161: 
                   2162:   ;
                   2163:   return 0;
                   2164: }
                   2165: _ACEOF
                   2166: if ac_fn_c_try_run "$LINENO"; then :
                   2167:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2168: else
                   2169:   ac_retval=1
1.14      bertrand 2170: fi
1.15      bertrand 2171: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2172:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2173: rm -f conftest.val
1.14      bertrand 2174: 
1.15      bertrand 2175:   fi
1.93      bertrand 2176:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 2177:   as_fn_set_status $ac_retval
1.14      bertrand 2178: 
1.15      bertrand 2179: } # ac_fn_c_compute_int
1.1       bertrand 2180: 
1.15      bertrand 2181: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2182: # -------------------------------------------------------
                   2183: # Tests whether HEADER exists and can be compiled using the include files in
                   2184: # INCLUDES, setting the cache variable VAR accordingly.
                   2185: ac_fn_c_check_header_compile ()
                   2186: {
                   2187:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2188:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2189: $as_echo_n "checking for $2... " >&6; }
1.93      bertrand 2190: if eval \${$3+:} false; then :
1.15      bertrand 2191:   $as_echo_n "(cached) " >&6
                   2192: else
                   2193:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2194: /* end confdefs.h.  */
                   2195: $4
                   2196: #include <$2>
                   2197: _ACEOF
                   2198: if ac_fn_c_try_compile "$LINENO"; then :
                   2199:   eval "$3=yes"
                   2200: else
                   2201:   eval "$3=no"
                   2202: fi
                   2203: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   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; }
1.93      bertrand 2208:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2209: 
1.15      bertrand 2210: } # ac_fn_c_check_header_compile
1.1       bertrand 2211: 
1.15      bertrand 2212: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2213: # -------------------------------------------------------
                   2214: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2215: # the include files in INCLUDES and setting the cache variable VAR
                   2216: # accordingly.
                   2217: ac_fn_c_check_header_mongrel ()
                   2218: {
                   2219:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.93      bertrand 2220:   if eval \${$3+:} false; then :
1.15      bertrand 2221:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2222: $as_echo_n "checking for $2... " >&6; }
1.93      bertrand 2223: if eval \${$3+:} false; then :
1.15      bertrand 2224:   $as_echo_n "(cached) " >&6
                   2225: fi
                   2226: eval ac_res=\$$3
                   2227:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2228: $as_echo "$ac_res" >&6; }
                   2229: else
                   2230:   # Is the header compilable?
                   2231: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2232: $as_echo_n "checking $2 usability... " >&6; }
                   2233: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2234: /* end confdefs.h.  */
                   2235: $4
                   2236: #include <$2>
                   2237: _ACEOF
                   2238: if ac_fn_c_try_compile "$LINENO"; then :
                   2239:   ac_header_compiler=yes
                   2240: else
                   2241:   ac_header_compiler=no
                   2242: fi
                   2243: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2245: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2246: 
1.15      bertrand 2247: # Is the header present?
                   2248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2249: $as_echo_n "checking $2 presence... " >&6; }
                   2250: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2251: /* end confdefs.h.  */
                   2252: #include <$2>
                   2253: _ACEOF
                   2254: if ac_fn_c_try_cpp "$LINENO"; then :
                   2255:   ac_header_preproc=yes
                   2256: else
                   2257:   ac_header_preproc=no
                   2258: fi
1.36      bertrand 2259: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2261: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2262: 
1.15      bertrand 2263: # So?  What about this header?
                   2264: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2265:   yes:no: )
                   2266:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2267: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2268:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2269: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2270:     ;;
                   2271:   no:yes:* )
                   2272:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2273: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2274:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2275: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2276:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2277: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2278:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2279: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2280:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2281: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2282:     ;;
                   2283: esac
                   2284:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2285: $as_echo_n "checking for $2... " >&6; }
1.93      bertrand 2286: if eval \${$3+:} false; then :
1.15      bertrand 2287:   $as_echo_n "(cached) " >&6
                   2288: else
                   2289:   eval "$3=\$ac_header_compiler"
                   2290: fi
                   2291: eval ac_res=\$$3
                   2292:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2293: $as_echo "$ac_res" >&6; }
                   2294: fi
1.93      bertrand 2295:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2296: 
1.15      bertrand 2297: } # ac_fn_c_check_header_mongrel
                   2298: cat >config.log <<_ACEOF
                   2299: This file contains any messages produced by compilers while
                   2300: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2301: 
1.86      bertrand 2302: It was created by rpl $as_me 4.1.4, which was
1.93      bertrand 2303: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 2304: 
1.15      bertrand 2305:   $ $0 $@
1.1       bertrand 2306: 
1.15      bertrand 2307: _ACEOF
                   2308: exec 5>>config.log
                   2309: {
                   2310: cat <<_ASUNAME
                   2311: ## --------- ##
                   2312: ## Platform. ##
                   2313: ## --------- ##
1.1       bertrand 2314: 
1.15      bertrand 2315: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2316: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2317: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2318: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2319: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2320: 
1.15      bertrand 2321: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2322: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2323: 
1.15      bertrand 2324: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2325: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2326: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2327: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2328: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2329: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2330: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2331: 
1.15      bertrand 2332: _ASUNAME
1.1       bertrand 2333: 
1.15      bertrand 2334: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2335: for as_dir in $PATH
                   2336: do
                   2337:   IFS=$as_save_IFS
                   2338:   test -z "$as_dir" && as_dir=.
                   2339:     $as_echo "PATH: $as_dir"
                   2340:   done
                   2341: IFS=$as_save_IFS
1.1       bertrand 2342: 
1.15      bertrand 2343: } >&5
1.1       bertrand 2344: 
1.15      bertrand 2345: cat >&5 <<_ACEOF
1.1       bertrand 2346: 
                   2347: 
1.15      bertrand 2348: ## ----------- ##
                   2349: ## Core tests. ##
                   2350: ## ----------- ##
1.1       bertrand 2351: 
1.15      bertrand 2352: _ACEOF
1.1       bertrand 2353: 
                   2354: 
1.15      bertrand 2355: # Keep a trace of the command line.
                   2356: # Strip out --no-create and --no-recursion so they do not pile up.
                   2357: # Strip out --silent because we don't want to record it for future runs.
                   2358: # Also quote any args containing shell meta-characters.
                   2359: # Make two passes to allow for proper duplicate-argument suppression.
                   2360: ac_configure_args=
                   2361: ac_configure_args0=
                   2362: ac_configure_args1=
                   2363: ac_must_keep_next=false
                   2364: for ac_pass in 1 2
                   2365: do
                   2366:   for ac_arg
                   2367:   do
                   2368:     case $ac_arg in
                   2369:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2370:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2371:     | -silent | --silent | --silen | --sile | --sil)
                   2372:       continue ;;
                   2373:     *\'*)
                   2374:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2375:     esac
                   2376:     case $ac_pass in
                   2377:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2378:     2)
                   2379:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2380:       if test $ac_must_keep_next = true; then
                   2381:    ac_must_keep_next=false # Got value, back to normal.
                   2382:       else
                   2383:    case $ac_arg in
                   2384:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2385:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2386:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2387:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2388:        case "$ac_configure_args0 " in
                   2389:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2390:        esac
                   2391:        ;;
                   2392:      -* ) ac_must_keep_next=true ;;
                   2393:    esac
                   2394:       fi
                   2395:       as_fn_append ac_configure_args " '$ac_arg'"
                   2396:       ;;
                   2397:     esac
                   2398:   done
                   2399: done
                   2400: { ac_configure_args0=; unset ac_configure_args0;}
                   2401: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2402: 
1.15      bertrand 2403: # When interrupted or exit'd, cleanup temporary files, and complete
                   2404: # config.log.  We remove comments because anyway the quotes in there
                   2405: # would cause problems or look ugly.
                   2406: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2407: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2408: trap 'exit_status=$?
                   2409:   # Save into config.log some information that might help in debugging.
                   2410:   {
                   2411:     echo
1.1       bertrand 2412: 
1.36      bertrand 2413:     $as_echo "## ---------------- ##
1.15      bertrand 2414: ## Cache variables. ##
1.36      bertrand 2415: ## ---------------- ##"
1.15      bertrand 2416:     echo
                   2417:     # The following way of writing the cache mishandles newlines in values,
                   2418: (
                   2419:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2420:     eval ac_val=\$$ac_var
                   2421:     case $ac_val in #(
                   2422:     *${as_nl}*)
                   2423:       case $ac_var in #(
                   2424:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2425: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2426:       esac
                   2427:       case $ac_var in #(
                   2428:       _ | IFS | as_nl) ;; #(
                   2429:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2430:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2431:       esac ;;
                   2432:     esac
                   2433:   done
                   2434:   (set) 2>&1 |
                   2435:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2436:     *${as_nl}ac_space=\ *)
                   2437:       sed -n \
                   2438:    "s/'\''/'\''\\\\'\'''\''/g;
                   2439:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2440:       ;; #(
                   2441:     *)
                   2442:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2443:       ;;
                   2444:     esac |
                   2445:     sort
                   2446: )
                   2447:     echo
1.1       bertrand 2448: 
1.36      bertrand 2449:     $as_echo "## ----------------- ##
1.15      bertrand 2450: ## Output variables. ##
1.36      bertrand 2451: ## ----------------- ##"
1.15      bertrand 2452:     echo
                   2453:     for ac_var in $ac_subst_vars
                   2454:     do
                   2455:       eval ac_val=\$$ac_var
                   2456:       case $ac_val in
                   2457:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2458:       esac
                   2459:       $as_echo "$ac_var='\''$ac_val'\''"
                   2460:     done | sort
                   2461:     echo
1.1       bertrand 2462: 
1.15      bertrand 2463:     if test -n "$ac_subst_files"; then
1.36      bertrand 2464:       $as_echo "## ------------------- ##
1.15      bertrand 2465: ## File substitutions. ##
1.36      bertrand 2466: ## ------------------- ##"
1.15      bertrand 2467:       echo
                   2468:       for ac_var in $ac_subst_files
                   2469:       do
                   2470:    eval ac_val=\$$ac_var
                   2471:    case $ac_val in
                   2472:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2473:    esac
                   2474:    $as_echo "$ac_var='\''$ac_val'\''"
                   2475:       done | sort
                   2476:       echo
1.14      bertrand 2477:     fi
                   2478: 
1.15      bertrand 2479:     if test -s confdefs.h; then
1.36      bertrand 2480:       $as_echo "## ----------- ##
1.15      bertrand 2481: ## confdefs.h. ##
1.36      bertrand 2482: ## ----------- ##"
1.15      bertrand 2483:       echo
                   2484:       cat confdefs.h
                   2485:       echo
                   2486:     fi
                   2487:     test "$ac_signal" != 0 &&
                   2488:       $as_echo "$as_me: caught signal $ac_signal"
                   2489:     $as_echo "$as_me: exit $exit_status"
                   2490:   } >&5
                   2491:   rm -f core *.core core.conftest.* &&
                   2492:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2493:     exit $exit_status
                   2494: ' 0
                   2495: for ac_signal in 1 2 13 15; do
                   2496:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2497: done
                   2498: ac_signal=0
1.14      bertrand 2499: 
1.15      bertrand 2500: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2501: rm -f -r conftest* confdefs.h
1.14      bertrand 2502: 
1.15      bertrand 2503: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2504: 
1.15      bertrand 2505: # Predefined preprocessor variables.
1.14      bertrand 2506: 
1.15      bertrand 2507: cat >>confdefs.h <<_ACEOF
                   2508: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2509: _ACEOF
1.14      bertrand 2510: 
1.15      bertrand 2511: cat >>confdefs.h <<_ACEOF
                   2512: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2513: _ACEOF
                   2514: 
1.15      bertrand 2515: cat >>confdefs.h <<_ACEOF
                   2516: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2517: _ACEOF
1.14      bertrand 2518: 
1.15      bertrand 2519: cat >>confdefs.h <<_ACEOF
                   2520: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2521: _ACEOF
                   2522: 
1.15      bertrand 2523: cat >>confdefs.h <<_ACEOF
                   2524: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2525: _ACEOF
1.14      bertrand 2526: 
1.15      bertrand 2527: cat >>confdefs.h <<_ACEOF
                   2528: #define PACKAGE_URL "$PACKAGE_URL"
                   2529: _ACEOF
1.14      bertrand 2530: 
                   2531: 
1.15      bertrand 2532: # Let the site file select an alternate cache file if it wants to.
                   2533: # Prefer an explicitly selected file to automatically selected ones.
                   2534: ac_site_file1=NONE
                   2535: ac_site_file2=NONE
                   2536: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2537:   # We do not want a PATH search for config.site.
                   2538:   case $CONFIG_SITE in #((
                   2539:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2540:     */*) ac_site_file1=$CONFIG_SITE;;
                   2541:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2542:   esac
1.15      bertrand 2543: elif test "x$prefix" != xNONE; then
                   2544:   ac_site_file1=$prefix/share/config.site
                   2545:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2546: else
1.15      bertrand 2547:   ac_site_file1=$ac_default_prefix/share/config.site
                   2548:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2549: fi
1.15      bertrand 2550: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2551: do
                   2552:   test "x$ac_site_file" = xNONE && continue
                   2553:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2554:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2555: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2556:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2557:     . "$ac_site_file" \
                   2558:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2559: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2560: as_fn_error $? "failed to load site script $ac_site_file
1.93      bertrand 2561: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 2562:   fi
                   2563: done
1.14      bertrand 2564: 
1.15      bertrand 2565: if test -r "$cache_file"; then
                   2566:   # Some versions of bash will fail to source /dev/null (special files
                   2567:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2568:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2569:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2570: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2571:     case $cache_file in
                   2572:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2573:       *)                      . "./$cache_file";;
                   2574:     esac
                   2575:   fi
1.14      bertrand 2576: else
1.15      bertrand 2577:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2578: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2579:   >$cache_file
1.14      bertrand 2580: fi
                   2581: 
1.15      bertrand 2582: # Check that the precious variables saved in the cache have kept the same
                   2583: # value.
                   2584: ac_cache_corrupted=false
                   2585: for ac_var in $ac_precious_vars; do
                   2586:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2587:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2588:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2589:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2590:   case $ac_old_set,$ac_new_set in
                   2591:     set,)
                   2592:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2593: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2594:       ac_cache_corrupted=: ;;
                   2595:     ,set)
                   2596:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2597: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2598:       ac_cache_corrupted=: ;;
                   2599:     ,);;
                   2600:     *)
                   2601:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2602:    # differences in whitespace do not lead to failure.
                   2603:    ac_old_val_w=`echo x $ac_old_val`
                   2604:    ac_new_val_w=`echo x $ac_new_val`
                   2605:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2606:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2607: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2608:      ac_cache_corrupted=:
                   2609:    else
                   2610:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2611: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2612:      eval $ac_var=\$ac_old_val
                   2613:    fi
                   2614:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2615: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2616:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2617: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2618:       fi;;
                   2619:   esac
                   2620:   # Pass precious variables to config.status.
                   2621:   if test "$ac_new_set" = set; then
                   2622:     case $ac_new_val in
                   2623:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2624:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2625:     esac
                   2626:     case " $ac_configure_args " in
                   2627:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2628:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2629:     esac
1.14      bertrand 2630:   fi
                   2631: done
1.15      bertrand 2632: if $ac_cache_corrupted; then
                   2633:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2634: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2635:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2636: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2637:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2638: fi
                   2639: ## -------------------- ##
                   2640: ## Main body of script. ##
                   2641: ## -------------------- ##
1.14      bertrand 2642: 
1.15      bertrand 2643: ac_ext=c
                   2644: ac_cpp='$CPP $CPPFLAGS'
                   2645: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2646: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2647: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2648: 
                   2649: 
1.15      bertrand 2650: ac_aux_dir=
                   2651: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2652:   if test -f "$ac_dir/install-sh"; then
                   2653:     ac_aux_dir=$ac_dir
                   2654:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2655:     break
                   2656:   elif test -f "$ac_dir/install.sh"; then
                   2657:     ac_aux_dir=$ac_dir
                   2658:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2659:     break
                   2660:   elif test -f "$ac_dir/shtool"; then
                   2661:     ac_aux_dir=$ac_dir
                   2662:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2663:     break
                   2664:   fi
1.14      bertrand 2665: done
1.15      bertrand 2666: if test -z "$ac_aux_dir"; then
1.36      bertrand 2667:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2668: fi
1.14      bertrand 2669: 
1.15      bertrand 2670: # These three variables are undocumented and unsupported,
                   2671: # and are intended to be withdrawn in a future Autoconf release.
                   2672: # They can cause serious problems if a builder's source tree is in a directory
                   2673: # whose full name contains unusual characters.
                   2674: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2675: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2676: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2677: 
                   2678: 
1.15      bertrand 2679: # Make sure we can run config.sub.
                   2680: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2681:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2682: 
1.15      bertrand 2683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2684: $as_echo_n "checking build system type... " >&6; }
1.93      bertrand 2685: if ${ac_cv_build+:} false; then :
1.15      bertrand 2686:   $as_echo_n "(cached) " >&6
1.14      bertrand 2687: else
1.15      bertrand 2688:   ac_build_alias=$build_alias
                   2689: test "x$ac_build_alias" = x &&
                   2690:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2691: test "x$ac_build_alias" = x &&
1.36      bertrand 2692:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2693: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2694:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2695: 
                   2696: fi
1.15      bertrand 2697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2698: $as_echo "$ac_cv_build" >&6; }
                   2699: case $ac_cv_build in
                   2700: *-*-*) ;;
1.93      bertrand 2701: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15      bertrand 2702: esac
                   2703: build=$ac_cv_build
                   2704: ac_save_IFS=$IFS; IFS='-'
                   2705: set x $ac_cv_build
                   2706: shift
                   2707: build_cpu=$1
                   2708: build_vendor=$2
                   2709: shift; shift
                   2710: # Remember, the first character of IFS is used to create $*,
                   2711: # except with old shells:
                   2712: build_os=$*
                   2713: IFS=$ac_save_IFS
                   2714: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2715: 
                   2716: 
1.15      bertrand 2717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2718: $as_echo_n "checking host system type... " >&6; }
1.93      bertrand 2719: if ${ac_cv_host+:} false; then :
1.15      bertrand 2720:   $as_echo_n "(cached) " >&6
1.14      bertrand 2721: else
1.15      bertrand 2722:   if test "x$host_alias" = x; then
                   2723:   ac_cv_host=$ac_cv_build
1.14      bertrand 2724: else
1.15      bertrand 2725:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2726:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2727: fi
                   2728: 
                   2729: fi
1.15      bertrand 2730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2731: $as_echo "$ac_cv_host" >&6; }
                   2732: case $ac_cv_host in
                   2733: *-*-*) ;;
1.93      bertrand 2734: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15      bertrand 2735: esac
                   2736: host=$ac_cv_host
                   2737: ac_save_IFS=$IFS; IFS='-'
                   2738: set x $ac_cv_host
                   2739: shift
                   2740: host_cpu=$1
                   2741: host_vendor=$2
                   2742: shift; shift
                   2743: # Remember, the first character of IFS is used to create $*,
                   2744: # except with old shells:
                   2745: host_os=$*
                   2746: IFS=$ac_save_IFS
                   2747: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2748: 
                   2749: 
1.15      bertrand 2750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2751: $as_echo_n "checking target system type... " >&6; }
1.93      bertrand 2752: if ${ac_cv_target+:} false; then :
1.15      bertrand 2753:   $as_echo_n "(cached) " >&6
                   2754: else
                   2755:   if test "x$target_alias" = x; then
                   2756:   ac_cv_target=$ac_cv_host
1.14      bertrand 2757: else
1.15      bertrand 2758:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2759:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2760: fi
1.14      bertrand 2761: 
                   2762: fi
1.15      bertrand 2763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2764: $as_echo "$ac_cv_target" >&6; }
                   2765: case $ac_cv_target in
                   2766: *-*-*) ;;
1.93      bertrand 2767: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15      bertrand 2768: esac
                   2769: target=$ac_cv_target
                   2770: ac_save_IFS=$IFS; IFS='-'
                   2771: set x $ac_cv_target
                   2772: shift
                   2773: target_cpu=$1
                   2774: target_vendor=$2
                   2775: shift; shift
                   2776: # Remember, the first character of IFS is used to create $*,
                   2777: # except with old shells:
                   2778: target_os=$*
                   2779: IFS=$ac_save_IFS
                   2780: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2781: 
1.14      bertrand 2782: 
1.15      bertrand 2783: # The aliases save the names the user supplied, while $host etc.
                   2784: # will get canonicalized.
                   2785: test -n "$target_alias" &&
                   2786:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2787:     NONENONEs,x,x, &&
                   2788:   program_prefix=${target_alias}-
1.1       bertrand 2789: 
1.15      bertrand 2790: am__api_version='1.11'
1.1       bertrand 2791: 
1.14      bertrand 2792: # Find a good install program.  We prefer a C program (faster),
                   2793: # so one script is as good as another.  But avoid the broken or
                   2794: # incompatible versions:
                   2795: # SysV /etc/install, /usr/sbin/install
                   2796: # SunOS /usr/etc/install
                   2797: # IRIX /sbin/install
                   2798: # AIX /bin/install
                   2799: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2800: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2801: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2802: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2803: # OS/2's system install, which has a completely different semantic
                   2804: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2805: # Reject install programs that cannot install multiple files.
                   2806: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2807: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2808: if test -z "$INSTALL"; then
1.93      bertrand 2809: if ${ac_cv_path_install+:} false; then :
1.15      bertrand 2810:   $as_echo_n "(cached) " >&6
1.14      bertrand 2811: else
                   2812:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2813: for as_dir in $PATH
                   2814: do
                   2815:   IFS=$as_save_IFS
                   2816:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2817:     # Account for people who put trailing slashes in PATH elements.
                   2818: case $as_dir/ in #((
                   2819:   ./ | .// | /[cC]/* | \
1.14      bertrand 2820:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2821:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2822:   /usr/ucb/* ) ;;
                   2823:   *)
                   2824:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2825:     # Don't use installbsd from OSF since it installs stuff as root
                   2826:     # by default.
                   2827:     for ac_prog in ginstall scoinst install; do
                   2828:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2829:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2830:      if test $ac_prog = install &&
                   2831:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2832:        # AIX install.  It has an incompatible calling convention.
                   2833:        :
                   2834:      elif test $ac_prog = install &&
                   2835:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2836:        # program-specific install script used by HP pwplus--don't use.
                   2837:        :
                   2838:      else
1.15      bertrand 2839:        rm -rf conftest.one conftest.two conftest.dir
                   2840:        echo one > conftest.one
                   2841:        echo two > conftest.two
                   2842:        mkdir conftest.dir
                   2843:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2844:          test -s conftest.one && test -s conftest.two &&
                   2845:          test -s conftest.dir/conftest.one &&
                   2846:          test -s conftest.dir/conftest.two
                   2847:        then
                   2848:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2849:          break 3
                   2850:        fi
1.14      bertrand 2851:      fi
                   2852:    fi
                   2853:       done
                   2854:     done
                   2855:     ;;
                   2856: esac
1.15      bertrand 2857: 
                   2858:   done
1.14      bertrand 2859: IFS=$as_save_IFS
1.1       bertrand 2860: 
1.15      bertrand 2861: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2862: 
1.14      bertrand 2863: fi
                   2864:   if test "${ac_cv_path_install+set}" = set; then
                   2865:     INSTALL=$ac_cv_path_install
                   2866:   else
                   2867:     # As a last resort, use the slow shell script.  Don't cache a
                   2868:     # value for INSTALL within a source directory, because that will
                   2869:     # break other packages using the cache if that directory is
                   2870:     # removed, or if the value is a relative name.
                   2871:     INSTALL=$ac_install_sh
                   2872:   fi
                   2873: fi
1.15      bertrand 2874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2875: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2876: 
1.14      bertrand 2877: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2878: # It thinks the first close brace ends the variable substitution.
                   2879: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2880: 
1.14      bertrand 2881: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2882: 
1.14      bertrand 2883: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2884: 
1.15      bertrand 2885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2886: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2887: # Just in case
                   2888: sleep 1
                   2889: echo timestamp > conftest.file
                   2890: # Reject unsafe characters in $srcdir or the absolute working directory
                   2891: # name.  Accept space and tab only in the latter.
                   2892: am_lf='
                   2893: '
                   2894: case `pwd` in
                   2895:   *[\\\"\#\$\&\'\`$am_lf]*)
1.93      bertrand 2896:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15      bertrand 2897: esac
                   2898: case $srcdir in
                   2899:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.93      bertrand 2900:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15      bertrand 2901: esac
                   2902: 
                   2903: # Do `set' in a subshell so we don't clobber the current shell's
                   2904: # arguments.  Must try -L first in case configure is actually a
                   2905: # symlink; some systems play weird games with the mod time of symlinks
                   2906: # (eg FreeBSD returns the mod time of the symlink's containing
                   2907: # directory).
                   2908: if (
                   2909:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2910:    if test "$*" = "X"; then
                   2911:       # -L didn't work.
                   2912:       set X `ls -t "$srcdir/configure" conftest.file`
                   2913:    fi
                   2914:    rm -f conftest.file
                   2915:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2916:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2917: 
                   2918:       # If neither matched, then we have a broken ls.  This can happen
                   2919:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2920:       # broken ls alias from the environment.  This has actually
                   2921:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2922:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2923: alias in your environment" "$LINENO" 5
                   2924:    fi
                   2925: 
                   2926:    test "$2" = conftest.file
                   2927:    )
                   2928: then
                   2929:    # Ok.
                   2930:    :
1.14      bertrand 2931: else
1.36      bertrand 2932:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2933: Check your system clock" "$LINENO" 5
1.14      bertrand 2934: fi
1.15      bertrand 2935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2936: $as_echo "yes" >&6; }
                   2937: test "$program_prefix" != NONE &&
                   2938:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2939: # Use a double $ so make ignores it.
                   2940: test "$program_suffix" != NONE &&
                   2941:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2942: # Double any \ or $.
                   2943: # By default was `s,x,x', remove it if useless.
                   2944: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2945: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2946: 
                   2947: # expand $ac_aux_dir to an absolute path
                   2948: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2949: 
1.15      bertrand 2950: if test x"${MISSING+set}" != xset; then
                   2951:   case $am_aux_dir in
                   2952:   *\ * | *\    *)
                   2953:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2954:   *)
1.15      bertrand 2955:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2956:   esac
1.14      bertrand 2957: fi
1.15      bertrand 2958: # Use eval to expand $SHELL
                   2959: if eval "$MISSING --run true"; then
                   2960:   am_missing_run="$MISSING --run "
1.14      bertrand 2961: else
1.15      bertrand 2962:   am_missing_run=
                   2963:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2964: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2965: fi
                   2966: 
                   2967: if test x"${install_sh}" != xset; then
                   2968:   case $am_aux_dir in
                   2969:   *\ * | *\    *)
                   2970:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2971:   *)
                   2972:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2973:   esac
1.14      bertrand 2974: fi
1.15      bertrand 2975: 
                   2976: # Installed binaries are usually stripped using `strip' when the user
                   2977: # run `make install-strip'.  However `strip' might not be the right
                   2978: # tool to use in cross-compilation environments, therefore Automake
                   2979: # will honor the `STRIP' environment variable to overrule this program.
                   2980: if test "$cross_compiling" != no; then
                   2981:   if test -n "$ac_tool_prefix"; then
                   2982:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2983: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2985: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 2986: if ${ac_cv_prog_STRIP+:} false; then :
1.15      bertrand 2987:   $as_echo_n "(cached) " >&6
1.14      bertrand 2988: else
1.15      bertrand 2989:   if test -n "$STRIP"; then
                   2990:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2991: else
                   2992: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2993: for as_dir in $PATH
                   2994: do
                   2995:   IFS=$as_save_IFS
                   2996:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2997:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2998:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2999:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   3000:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3001:     break 2
                   3002:   fi
                   3003: done
1.15      bertrand 3004:   done
1.14      bertrand 3005: IFS=$as_save_IFS
1.1       bertrand 3006: 
1.14      bertrand 3007: fi
                   3008: fi
1.15      bertrand 3009: STRIP=$ac_cv_prog_STRIP
                   3010: if test -n "$STRIP"; then
                   3011:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   3012: $as_echo "$STRIP" >&6; }
1.14      bertrand 3013: else
1.15      bertrand 3014:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3015: $as_echo "no" >&6; }
1.14      bertrand 3016: fi
1.1       bertrand 3017: 
                   3018: 
1.14      bertrand 3019: fi
1.15      bertrand 3020: if test -z "$ac_cv_prog_STRIP"; then
                   3021:   ac_ct_STRIP=$STRIP
                   3022:   # Extract the first word of "strip", so it can be a program name with args.
                   3023: set dummy strip; ac_word=$2
                   3024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3025: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 3026: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15      bertrand 3027:   $as_echo_n "(cached) " >&6
1.14      bertrand 3028: else
1.15      bertrand 3029:   if test -n "$ac_ct_STRIP"; then
                   3030:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 3031: else
1.14      bertrand 3032: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3033: for as_dir in $PATH
1.1       bertrand 3034: do
1.14      bertrand 3035:   IFS=$as_save_IFS
                   3036:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3037:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3038:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3039:     ac_cv_prog_ac_ct_STRIP="strip"
                   3040:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3041:     break 2
1.1       bertrand 3042:   fi
                   3043: done
1.15      bertrand 3044:   done
1.14      bertrand 3045: IFS=$as_save_IFS
1.1       bertrand 3046: 
1.14      bertrand 3047: fi
                   3048: fi
1.15      bertrand 3049: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3050: if test -n "$ac_ct_STRIP"; then
                   3051:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3052: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3053: else
1.15      bertrand 3054:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3055: $as_echo "no" >&6; }
1.1       bertrand 3056: fi
                   3057: 
1.15      bertrand 3058:   if test "x$ac_ct_STRIP" = x; then
                   3059:     STRIP=":"
1.14      bertrand 3060:   else
                   3061:     case $cross_compiling:$ac_tool_warned in
                   3062: yes:)
1.15      bertrand 3063: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3064: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3065: ac_tool_warned=yes ;;
                   3066: esac
1.15      bertrand 3067:     STRIP=$ac_ct_STRIP
1.1       bertrand 3068:   fi
1.14      bertrand 3069: else
1.15      bertrand 3070:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3071: fi
                   3072: 
1.15      bertrand 3073: fi
                   3074: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3075: 
1.15      bertrand 3076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3077: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3078: if test -z "$MKDIR_P"; then
1.93      bertrand 3079:   if ${ac_cv_path_mkdir+:} false; then :
1.15      bertrand 3080:   $as_echo_n "(cached) " >&6
1.14      bertrand 3081: else
1.15      bertrand 3082:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3083: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3084: do
                   3085:   IFS=$as_save_IFS
                   3086:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3087:     for ac_prog in mkdir gmkdir; do
                   3088:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3089:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3090:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3091:         'mkdir (GNU coreutils) '* | \
                   3092:         'mkdir (coreutils) '* | \
                   3093:         'mkdir (fileutils) '4.1*)
                   3094:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3095:           break 3;;
                   3096:       esac
                   3097:     done
                   3098:        done
                   3099:   done
1.14      bertrand 3100: IFS=$as_save_IFS
1.1       bertrand 3101: 
                   3102: fi
1.15      bertrand 3103: 
                   3104:   test -d ./--version && rmdir ./--version
                   3105:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3106:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3107:   else
                   3108:     # As a last resort, use the slow shell script.  Don't cache a
                   3109:     # value for MKDIR_P within a source directory, because that will
                   3110:     # break other packages using the cache if that directory is
                   3111:     # removed, or if the value is a relative name.
                   3112:     MKDIR_P="$ac_install_sh -d"
                   3113:   fi
1.14      bertrand 3114: fi
1.15      bertrand 3115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3116: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3117: 
1.15      bertrand 3118: mkdir_p="$MKDIR_P"
                   3119: case $mkdir_p in
                   3120:   [\\/$]* | ?:[\\/]*) ;;
                   3121:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3122: esac
1.1       bertrand 3123: 
1.15      bertrand 3124: for ac_prog in gawk mawk nawk awk
                   3125: do
                   3126:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3127: set dummy $ac_prog; ac_word=$2
                   3128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3129: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 3130: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 3131:   $as_echo_n "(cached) " >&6
1.1       bertrand 3132: else
1.15      bertrand 3133:   if test -n "$AWK"; then
                   3134:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3135: else
1.14      bertrand 3136: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3137: for as_dir in $PATH
                   3138: do
                   3139:   IFS=$as_save_IFS
                   3140:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3141:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3142:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3143:     ac_cv_prog_AWK="$ac_prog"
                   3144:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3145:     break 2
                   3146:   fi
                   3147: done
1.15      bertrand 3148:   done
1.14      bertrand 3149: IFS=$as_save_IFS
                   3150: 
                   3151: fi
1.1       bertrand 3152: fi
1.15      bertrand 3153: AWK=$ac_cv_prog_AWK
                   3154: if test -n "$AWK"; then
                   3155:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3156: $as_echo "$AWK" >&6; }
1.14      bertrand 3157: else
1.15      bertrand 3158:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3159: $as_echo "no" >&6; }
1.1       bertrand 3160: fi
                   3161: 
                   3162: 
1.15      bertrand 3163:   test -n "$AWK" && break
                   3164: done
1.1       bertrand 3165: 
1.15      bertrand 3166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3167: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3168: set x ${MAKE-make}
                   3169: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.93      bertrand 3170: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 3171:   $as_echo_n "(cached) " >&6
1.14      bertrand 3172: else
1.15      bertrand 3173:   cat >conftest.make <<\_ACEOF
                   3174: SHELL = /bin/sh
                   3175: all:
                   3176:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3177: _ACEOF
1.36      bertrand 3178: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3179: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3180:   *@@@%%%=?*=@@@%%%*)
                   3181:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3182:   *)
                   3183:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3184: esac
                   3185: rm -f conftest.make
                   3186: fi
                   3187: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3188:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3189: $as_echo "yes" >&6; }
                   3190:   SET_MAKE=
1.1       bertrand 3191: else
1.15      bertrand 3192:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3193: $as_echo "no" >&6; }
                   3194:   SET_MAKE="MAKE=${MAKE-make}"
                   3195: fi
1.1       bertrand 3196: 
1.15      bertrand 3197: rm -rf .tst 2>/dev/null
                   3198: mkdir .tst 2>/dev/null
                   3199: if test -d .tst; then
                   3200:   am__leading_dot=.
                   3201: else
                   3202:   am__leading_dot=_
1.14      bertrand 3203: fi
1.15      bertrand 3204: rmdir .tst 2>/dev/null
                   3205: 
1.92      bertrand 3206: # Check whether --enable-silent-rules was given.
                   3207: if test "${enable_silent_rules+set}" = set; then :
                   3208:   enableval=$enable_silent_rules;
                   3209: fi
                   3210: 
                   3211: case $enable_silent_rules in
                   3212: yes) AM_DEFAULT_VERBOSITY=0;;
                   3213: no)  AM_DEFAULT_VERBOSITY=1;;
                   3214: *)   AM_DEFAULT_VERBOSITY=1;;
                   3215: esac
                   3216: AM_BACKSLASH='\'
                   3217: 
1.15      bertrand 3218: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3219:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3220:   # is not polluted with repeated "-I."
                   3221:   am__isrc=' -I$(srcdir)'
                   3222:   # test to see if srcdir already configured
                   3223:   if test -f $srcdir/config.status; then
1.36      bertrand 3224:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3225:   fi
1.1       bertrand 3226: fi
1.15      bertrand 3227: 
                   3228: # test whether we have cygpath
                   3229: if test -z "$CYGPATH_W"; then
                   3230:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3231:     CYGPATH_W='cygpath -w'
                   3232:   else
                   3233:     CYGPATH_W=echo
                   3234:   fi
1.1       bertrand 3235: fi
                   3236: 
                   3237: 
1.15      bertrand 3238: # Define the identity of the package.
                   3239:  PACKAGE='rpl'
1.86      bertrand 3240:  VERSION='4.1.4'
1.15      bertrand 3241: 
                   3242: 
                   3243: cat >>confdefs.h <<_ACEOF
                   3244: #define PACKAGE "$PACKAGE"
                   3245: _ACEOF
                   3246: 
                   3247: 
                   3248: cat >>confdefs.h <<_ACEOF
                   3249: #define VERSION "$VERSION"
                   3250: _ACEOF
                   3251: 
                   3252: # Some tools Automake needs.
                   3253: 
                   3254: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3255: 
                   3256: 
                   3257: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3258: 
                   3259: 
                   3260: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3261: 
                   3262: 
                   3263: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3264: 
                   3265: 
                   3266: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3267: 
                   3268: # We need awk for the "check" target.  The system "awk" is bad on
                   3269: # some platforms.
                   3270: # Always define AMTAR for backward compatibility.
                   3271: 
                   3272: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3273: 
                   3274: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3275: 
                   3276: 
                   3277: 
                   3278: 
1.1       bertrand 3279: 
1.92      bertrand 3280: # Check whether --enable-silent-rules was given.
                   3281: if test "${enable_silent_rules+set}" = set; then :
                   3282:   enableval=$enable_silent_rules;
                   3283: fi
                   3284: 
                   3285: case $enable_silent_rules in
                   3286: yes) AM_DEFAULT_VERBOSITY=0;;
                   3287: no)  AM_DEFAULT_VERBOSITY=1;;
1.93      bertrand 3288: *)   AM_DEFAULT_VERBOSITY=0;;
1.92      bertrand 3289: esac
                   3290: AM_BACKSLASH='\'
                   3291: 
1.1       bertrand 3292: 
1.15      bertrand 3293: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3294: 
                   3295: 
1.54      bertrand 3296: NCURSES=ncurses-5.9
1.50      bertrand 3297: READLINE=readline-6.2
1.30      bertrand 3298: UNITS=units-1.88
1.57      bertrand 3299: GSL=gsl-1.15
1.72      bertrand 3300: GPP=gpp-3.0
1.52      bertrand 3301: GNUPLOT=gnuplot-4.4.3
1.15      bertrand 3302: FILE=file-5.03
                   3303: ICONV=libiconv-1.13.1
1.94    ! bertrand 3304: SQLITE=sqlite-3.7.9
1.74      bertrand 3305: OPENSSL=openssl-1.0.0e
1.79      bertrand 3306: OPENMOTIF=openmotif-2.3.3
1.80      bertrand 3307: LIBXPM=libXpm-3.5.9
1.76      bertrand 3308: SIGSEGV=libsigsegv-2.6
1.14      bertrand 3309: 
1.75      bertrand 3310: GMP=gmp-5.0.2
1.55      bertrand 3311: MPFR=mpfr-3.0.1
1.56      bertrand 3312: NTL=ntl-5.5.2
                   3313: COCOA=CoCoALib-0.9943
1.76      bertrand 3314: PARI=pari-2.5.0
1.94    ! bertrand 3315: GIAC=giac-0.9.5
1.55      bertrand 3316: 
1.15      bertrand 3317: ac_ext=c
                   3318: ac_cpp='$CPP $CPPFLAGS'
                   3319: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3320: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3321: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3322: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3323:   for ac_prog in gcc
1.15      bertrand 3324:   do
                   3325:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3326: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3328: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 3329: if ${ac_cv_prog_CC+:} false; then :
1.15      bertrand 3330:   $as_echo_n "(cached) " >&6
1.1       bertrand 3331: else
1.15      bertrand 3332:   if test -n "$CC"; then
                   3333:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3334: else
                   3335: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3336: for as_dir in $PATH
                   3337: do
                   3338:   IFS=$as_save_IFS
                   3339:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3340:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3341:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3342:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3343:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3344:     break 2
                   3345:   fi
                   3346: done
1.15      bertrand 3347:   done
1.1       bertrand 3348: IFS=$as_save_IFS
                   3349: 
                   3350: fi
                   3351: fi
1.15      bertrand 3352: CC=$ac_cv_prog_CC
                   3353: if test -n "$CC"; then
                   3354:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3355: $as_echo "$CC" >&6; }
1.1       bertrand 3356: else
1.15      bertrand 3357:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3358: $as_echo "no" >&6; }
1.1       bertrand 3359: fi
                   3360: 
                   3361: 
1.15      bertrand 3362:     test -n "$CC" && break
                   3363:   done
                   3364: fi
                   3365: if test -z "$CC"; then
                   3366:   ac_ct_CC=$CC
1.23      bertrand 3367:   for ac_prog in gcc
1.15      bertrand 3368: do
                   3369:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3370: set dummy $ac_prog; ac_word=$2
                   3371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3372: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 3373: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15      bertrand 3374:   $as_echo_n "(cached) " >&6
1.1       bertrand 3375: else
1.15      bertrand 3376:   if test -n "$ac_ct_CC"; then
                   3377:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3378: else
                   3379: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3380: for as_dir in $PATH
                   3381: do
                   3382:   IFS=$as_save_IFS
                   3383:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3384:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3385:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3386:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3387:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3388:     break 2
                   3389:   fi
                   3390: done
1.15      bertrand 3391:   done
1.1       bertrand 3392: IFS=$as_save_IFS
                   3393: 
                   3394: fi
                   3395: fi
1.15      bertrand 3396: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3397: if test -n "$ac_ct_CC"; then
                   3398:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3399: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3400: else
1.15      bertrand 3401:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3402: $as_echo "no" >&6; }
1.1       bertrand 3403: fi
                   3404: 
                   3405: 
1.15      bertrand 3406:   test -n "$ac_ct_CC" && break
                   3407: done
1.1       bertrand 3408: 
1.15      bertrand 3409:   if test "x$ac_ct_CC" = x; then
                   3410:     CC=""
                   3411:   else
                   3412:     case $cross_compiling:$ac_tool_warned in
                   3413: yes:)
                   3414: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3415: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3416: ac_tool_warned=yes ;;
                   3417: esac
                   3418:     CC=$ac_ct_CC
1.1       bertrand 3419:   fi
                   3420: fi
                   3421: 
                   3422: 
1.15      bertrand 3423: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3424: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3425: as_fn_error $? "no acceptable C compiler found in \$PATH
1.93      bertrand 3426: See \`config.log' for more details" "$LINENO" 5; }
1.1       bertrand 3427: 
1.15      bertrand 3428: # Provide some information about the compiler.
                   3429: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3430: set X $ac_compile
                   3431: ac_compiler=$2
                   3432: for ac_option in --version -v -V -qversion; do
                   3433:   { { ac_try="$ac_compiler $ac_option >&5"
                   3434: case "(($ac_try" in
                   3435:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3436:   *) ac_try_echo=$ac_try;;
                   3437: esac
                   3438: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3439: $as_echo "$ac_try_echo"; } >&5
                   3440:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3441:   ac_status=$?
                   3442:   if test -s conftest.err; then
                   3443:     sed '10a\
                   3444: ... rest of stderr output deleted ...
                   3445:          10q' conftest.err >conftest.er1
                   3446:     cat conftest.er1 >&5
1.1       bertrand 3447:   fi
1.15      bertrand 3448:   rm -f conftest.er1 conftest.err
                   3449:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3450:   test $ac_status = 0; }
1.1       bertrand 3451: done
                   3452: 
1.15      bertrand 3453: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3454: /* end confdefs.h.  */
                   3455: 
                   3456: int
                   3457: main ()
                   3458: {
1.14      bertrand 3459: 
1.15      bertrand 3460:   ;
                   3461:   return 0;
                   3462: }
                   3463: _ACEOF
                   3464: ac_clean_files_save=$ac_clean_files
                   3465: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3466: # Try to create an executable without -o first, disregard a.out.
                   3467: # It will help us diagnose broken compilers, and finding out an intuition
                   3468: # of exeext.
                   3469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3470: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3471: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3472: 
1.15      bertrand 3473: # The possible output files:
                   3474: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3475: 
1.15      bertrand 3476: ac_rmfiles=
                   3477: for ac_file in $ac_files
1.1       bertrand 3478: do
1.15      bertrand 3479:   case $ac_file in
                   3480:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3481:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3482:   esac
1.1       bertrand 3483: done
1.15      bertrand 3484: rm -f $ac_rmfiles
                   3485: 
                   3486: if { { ac_try="$ac_link_default"
                   3487: case "(($ac_try" in
                   3488:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3489:   *) ac_try_echo=$ac_try;;
                   3490: esac
                   3491: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3492: $as_echo "$ac_try_echo"; } >&5
                   3493:   (eval "$ac_link_default") 2>&5
                   3494:   ac_status=$?
                   3495:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3496:   test $ac_status = 0; }; then :
                   3497:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3498: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3499: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3500: # so that the user can short-circuit this test for compilers unknown to
                   3501: # Autoconf.
                   3502: for ac_file in $ac_files ''
                   3503: do
                   3504:   test -f "$ac_file" || continue
                   3505:   case $ac_file in
                   3506:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3507:    ;;
                   3508:     [ab].out )
                   3509:    # We found the default executable, but exeext='' is most
                   3510:    # certainly right.
                   3511:    break;;
                   3512:     *.* )
                   3513:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3514:    then :; else
                   3515:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3516:    fi
                   3517:    # We set ac_cv_exeext here because the later test for it is not
                   3518:    # safe: cross compilers may not add the suffix if given an `-o'
                   3519:    # argument, so we may need to know it at that point already.
                   3520:    # Even if this section looks crufty: it has the advantage of
                   3521:    # actually working.
                   3522:    break;;
                   3523:     * )
                   3524:    break;;
                   3525:   esac
1.14      bertrand 3526: done
1.15      bertrand 3527: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3528: 
1.14      bertrand 3529: else
1.15      bertrand 3530:   ac_file=''
1.1       bertrand 3531: fi
1.15      bertrand 3532: if test -z "$ac_file"; then :
                   3533:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3534: $as_echo "no" >&6; }
                   3535: $as_echo "$as_me: failed program was:" >&5
                   3536: sed 's/^/| /' conftest.$ac_ext >&5
                   3537: 
                   3538: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3539: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3540: as_fn_error 77 "C compiler cannot create executables
1.93      bertrand 3541: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3542: else
                   3543:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3544: $as_echo "yes" >&6; }
                   3545: fi
                   3546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3547: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3549: $as_echo "$ac_file" >&6; }
                   3550: ac_exeext=$ac_cv_exeext
1.1       bertrand 3551: 
1.15      bertrand 3552: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3553: ac_clean_files=$ac_clean_files_save
                   3554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3555: $as_echo_n "checking for suffix of executables... " >&6; }
                   3556: if { { ac_try="$ac_link"
                   3557: case "(($ac_try" in
                   3558:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3559:   *) ac_try_echo=$ac_try;;
                   3560: esac
                   3561: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3562: $as_echo "$ac_try_echo"; } >&5
                   3563:   (eval "$ac_link") 2>&5
                   3564:   ac_status=$?
                   3565:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3566:   test $ac_status = 0; }; then :
                   3567:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3568: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3569: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3570: # `rm'.
                   3571: for ac_file in conftest.exe conftest conftest.*; do
                   3572:   test -f "$ac_file" || continue
                   3573:   case $ac_file in
                   3574:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3575:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3576:      break;;
                   3577:     * ) break;;
                   3578:   esac
                   3579: done
1.14      bertrand 3580: else
1.15      bertrand 3581:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3582: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3583: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.93      bertrand 3584: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3585: fi
                   3586: rm -f conftest conftest$ac_cv_exeext
                   3587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3588: $as_echo "$ac_cv_exeext" >&6; }
                   3589: 
                   3590: rm -f conftest.$ac_ext
                   3591: EXEEXT=$ac_cv_exeext
                   3592: ac_exeext=$EXEEXT
                   3593: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3594: /* end confdefs.h.  */
1.15      bertrand 3595: #include <stdio.h>
1.14      bertrand 3596: int
                   3597: main ()
                   3598: {
1.15      bertrand 3599: FILE *f = fopen ("conftest.out", "w");
                   3600:  return ferror (f) || fclose (f) != 0;
                   3601: 
1.14      bertrand 3602:   ;
                   3603:   return 0;
                   3604: }
                   3605: _ACEOF
1.15      bertrand 3606: ac_clean_files="$ac_clean_files conftest.out"
                   3607: # Check that the compiler produces executables we can run.  If not, either
                   3608: # the compiler is broken, or we cross compile.
                   3609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3610: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3611: if test "$cross_compiling" != yes; then
                   3612:   { { ac_try="$ac_link"
1.1       bertrand 3613: case "(($ac_try" in
                   3614:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3615:   *) ac_try_echo=$ac_try;;
                   3616: esac
1.15      bertrand 3617: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3618: $as_echo "$ac_try_echo"; } >&5
                   3619:   (eval "$ac_link") 2>&5
                   3620:   ac_status=$?
                   3621:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3622:   test $ac_status = 0; }
                   3623:   if { ac_try='./conftest$ac_cv_exeext'
                   3624:   { { case "(($ac_try" in
                   3625:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3626:   *) ac_try_echo=$ac_try;;
                   3627: esac
                   3628: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3629: $as_echo "$ac_try_echo"; } >&5
                   3630:   (eval "$ac_try") 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:     cross_compiling=no
                   3635:   else
                   3636:     if test "$cross_compiling" = maybe; then
                   3637:    cross_compiling=yes
                   3638:     else
                   3639:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3640: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3641: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3642: If you meant to cross compile, use \`--host'.
1.93      bertrand 3643: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3644:     fi
                   3645:   fi
1.14      bertrand 3646: fi
1.15      bertrand 3647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3648: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3649: 
1.15      bertrand 3650: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3651: ac_clean_files=$ac_clean_files_save
                   3652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3653: $as_echo_n "checking for suffix of object files... " >&6; }
1.93      bertrand 3654: if ${ac_cv_objext+:} false; then :
1.15      bertrand 3655:   $as_echo_n "(cached) " >&6
1.14      bertrand 3656: else
1.15      bertrand 3657:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3658: /* end confdefs.h.  */
                   3659: 
                   3660: int
                   3661: main ()
                   3662: {
1.15      bertrand 3663: 
1.1       bertrand 3664:   ;
                   3665:   return 0;
                   3666: }
                   3667: _ACEOF
1.15      bertrand 3668: rm -f conftest.o conftest.obj
                   3669: if { { ac_try="$ac_compile"
1.1       bertrand 3670: case "(($ac_try" in
                   3671:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3672:   *) ac_try_echo=$ac_try;;
                   3673: esac
1.15      bertrand 3674: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3675: $as_echo "$ac_try_echo"; } >&5
                   3676:   (eval "$ac_compile") 2>&5
1.1       bertrand 3677:   ac_status=$?
1.15      bertrand 3678:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3679:   test $ac_status = 0; }; then :
                   3680:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3681:   test -f "$ac_file" || continue;
                   3682:   case $ac_file in
                   3683:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3684:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3685:        break;;
                   3686:   esac
                   3687: done
1.14      bertrand 3688: else
1.15      bertrand 3689:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3690: sed 's/^/| /' conftest.$ac_ext >&5
                   3691: 
1.15      bertrand 3692: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3693: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3694: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.93      bertrand 3695: See \`config.log' for more details" "$LINENO" 5; }
1.14      bertrand 3696: fi
1.15      bertrand 3697: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3698: fi
                   3699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3700: $as_echo "$ac_cv_objext" >&6; }
                   3701: OBJEXT=$ac_cv_objext
                   3702: ac_objext=$OBJEXT
                   3703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3704: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.93      bertrand 3705: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15      bertrand 3706:   $as_echo_n "(cached) " >&6
                   3707: else
                   3708:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3709: /* end confdefs.h.  */
                   3710: 
                   3711: int
                   3712: main ()
                   3713: {
                   3714: #ifndef __GNUC__
                   3715:        choke me
                   3716: #endif
1.14      bertrand 3717: 
1.15      bertrand 3718:   ;
                   3719:   return 0;
                   3720: }
                   3721: _ACEOF
                   3722: if ac_fn_c_try_compile "$LINENO"; then :
                   3723:   ac_compiler_gnu=yes
1.14      bertrand 3724: else
1.15      bertrand 3725:   ac_compiler_gnu=no
1.14      bertrand 3726: fi
1.15      bertrand 3727: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3728: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3729: 
1.15      bertrand 3730: fi
                   3731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3732: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3733: if test $ac_compiler_gnu = yes; then
                   3734:   GCC=yes
1.14      bertrand 3735: else
1.15      bertrand 3736:   GCC=
1.14      bertrand 3737: fi
1.15      bertrand 3738: ac_test_CFLAGS=${CFLAGS+set}
                   3739: ac_save_CFLAGS=$CFLAGS
                   3740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3741: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.93      bertrand 3742: if ${ac_cv_prog_cc_g+:} false; then :
1.15      bertrand 3743:   $as_echo_n "(cached) " >&6
                   3744: else
                   3745:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3746:    ac_c_werror_flag=yes
                   3747:    ac_cv_prog_cc_g=no
                   3748:    CFLAGS="-g"
                   3749:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3750: /* end confdefs.h.  */
1.14      bertrand 3751: 
1.15      bertrand 3752: int
                   3753: main ()
                   3754: {
1.14      bertrand 3755: 
1.15      bertrand 3756:   ;
                   3757:   return 0;
                   3758: }
                   3759: _ACEOF
                   3760: if ac_fn_c_try_compile "$LINENO"; then :
                   3761:   ac_cv_prog_cc_g=yes
                   3762: else
                   3763:   CFLAGS=""
                   3764:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3765: /* end confdefs.h.  */
1.14      bertrand 3766: 
1.15      bertrand 3767: int
                   3768: main ()
                   3769: {
1.14      bertrand 3770: 
1.15      bertrand 3771:   ;
                   3772:   return 0;
                   3773: }
                   3774: _ACEOF
                   3775: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3776: 
1.15      bertrand 3777: else
                   3778:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3779:     CFLAGS="-g"
                   3780:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3781: /* end confdefs.h.  */
1.14      bertrand 3782: 
1.15      bertrand 3783: int
                   3784: main ()
                   3785: {
1.14      bertrand 3786: 
1.15      bertrand 3787:   ;
                   3788:   return 0;
                   3789: }
                   3790: _ACEOF
                   3791: if ac_fn_c_try_compile "$LINENO"; then :
                   3792:   ac_cv_prog_cc_g=yes
                   3793: fi
                   3794: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3795: fi
                   3796: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3797: fi
                   3798: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3799:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3800: fi
                   3801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3802: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3803: if test "$ac_test_CFLAGS" = set; then
                   3804:   CFLAGS=$ac_save_CFLAGS
                   3805: elif test $ac_cv_prog_cc_g = yes; then
                   3806:   if test "$GCC" = yes; then
                   3807:     CFLAGS="-g -O2"
                   3808:   else
                   3809:     CFLAGS="-g"
                   3810:   fi
                   3811: else
                   3812:   if test "$GCC" = yes; then
                   3813:     CFLAGS="-O2"
                   3814:   else
                   3815:     CFLAGS=
                   3816:   fi
                   3817: fi
                   3818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3819: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.93      bertrand 3820: if ${ac_cv_prog_cc_c89+:} false; then :
1.15      bertrand 3821:   $as_echo_n "(cached) " >&6
1.1       bertrand 3822: else
1.15      bertrand 3823:   ac_cv_prog_cc_c89=no
                   3824: ac_save_CC=$CC
                   3825: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3826: /* end confdefs.h.  */
1.15      bertrand 3827: #include <stdarg.h>
                   3828: #include <stdio.h>
                   3829: #include <sys/types.h>
                   3830: #include <sys/stat.h>
                   3831: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3832: struct buf { int x; };
                   3833: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3834: static char *e (p, i)
                   3835:      char **p;
                   3836:      int i;
                   3837: {
                   3838:   return p[i];
                   3839: }
                   3840: static char *f (char * (*g) (char **, int), char **p, ...)
                   3841: {
                   3842:   char *s;
                   3843:   va_list v;
                   3844:   va_start (v,p);
                   3845:   s = g (p, va_arg (v,int));
                   3846:   va_end (v);
                   3847:   return s;
                   3848: }
                   3849: 
                   3850: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3851:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3852:    These don't provoke an error unfortunately, instead are silently treated
                   3853:    as 'x'.  The following induces an error, until -std is added to get
                   3854:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3855:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3856:    that's true only with -std.  */
                   3857: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3858: 
1.15      bertrand 3859: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3860:    inside strings and character constants.  */
                   3861: #define FOO(x) 'x'
                   3862: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3863: 
1.15      bertrand 3864: int test (int i, double x);
                   3865: struct s1 {int (*f) (int a);};
                   3866: struct s2 {int (*f) (double a);};
                   3867: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3868: int argc;
                   3869: char **argv;
1.14      bertrand 3870: int
                   3871: main ()
                   3872: {
1.15      bertrand 3873: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3874:   ;
                   3875:   return 0;
                   3876: }
                   3877: _ACEOF
1.15      bertrand 3878: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3879:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3880: do
                   3881:   CC="$ac_save_CC $ac_arg"
                   3882:   if ac_fn_c_try_compile "$LINENO"; then :
                   3883:   ac_cv_prog_cc_c89=$ac_arg
                   3884: fi
                   3885: rm -f core conftest.err conftest.$ac_objext
                   3886:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3887: done
                   3888: rm -f conftest.$ac_ext
                   3889: CC=$ac_save_CC
                   3890: 
                   3891: fi
                   3892: # AC_CACHE_VAL
                   3893: case "x$ac_cv_prog_cc_c89" in
                   3894:   x)
                   3895:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3896: $as_echo "none needed" >&6; } ;;
                   3897:   xno)
                   3898:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3899: $as_echo "unsupported" >&6; } ;;
                   3900:   *)
                   3901:     CC="$CC $ac_cv_prog_cc_c89"
                   3902:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3903: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3904: esac
1.15      bertrand 3905: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3906: 
                   3907: fi
                   3908: 
1.15      bertrand 3909: ac_ext=c
                   3910: ac_cpp='$CPP $CPPFLAGS'
                   3911: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3912: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3913: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3914: DEPDIR="${am__leading_dot}deps"
                   3915: 
                   3916: ac_config_commands="$ac_config_commands depfiles"
                   3917: 
                   3918: 
                   3919: am_make=${MAKE-make}
                   3920: cat > confinc << 'END'
                   3921: am__doit:
                   3922:    @echo this is the am__doit target
                   3923: .PHONY: am__doit
                   3924: END
                   3925: # If we don't find an include directive, just comment out the code.
                   3926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3927: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3928: am__include="#"
                   3929: am__quote=
                   3930: _am_result=none
                   3931: # First try GNU make style include.
                   3932: echo "include confinc" > confmf
                   3933: # Ignore all kinds of additional output from `make'.
                   3934: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3935: *the\ am__doit\ target*)
                   3936:   am__include=include
                   3937:   am__quote=
                   3938:   _am_result=GNU
                   3939:   ;;
                   3940: esac
                   3941: # Now try BSD make style include.
                   3942: if test "$am__include" = "#"; then
                   3943:    echo '.include "confinc"' > confmf
                   3944:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3945:    *the\ am__doit\ target*)
                   3946:      am__include=.include
                   3947:      am__quote="\""
                   3948:      _am_result=BSD
                   3949:      ;;
                   3950:    esac
1.14      bertrand 3951: fi
                   3952: 
                   3953: 
1.15      bertrand 3954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3955: $as_echo "$_am_result" >&6; }
                   3956: rm -f confinc confmf
                   3957: 
                   3958: # Check whether --enable-dependency-tracking was given.
                   3959: if test "${enable_dependency_tracking+set}" = set; then :
                   3960:   enableval=$enable_dependency_tracking;
                   3961: fi
                   3962: 
                   3963: if test "x$enable_dependency_tracking" != xno; then
                   3964:   am_depcomp="$ac_aux_dir/depcomp"
                   3965:   AMDEPBACKSLASH='\'
                   3966: fi
                   3967:  if test "x$enable_dependency_tracking" != xno; then
                   3968:   AMDEP_TRUE=
                   3969:   AMDEP_FALSE='#'
1.1       bertrand 3970: else
1.15      bertrand 3971:   AMDEP_TRUE='#'
                   3972:   AMDEP_FALSE=
1.14      bertrand 3973: fi
1.1       bertrand 3974: 
1.14      bertrand 3975: 
                   3976: 
1.15      bertrand 3977: depcc="$CC"   am_compiler_list=
1.14      bertrand 3978: 
1.15      bertrand 3979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3980: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.93      bertrand 3981: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15      bertrand 3982:   $as_echo_n "(cached) " >&6
1.14      bertrand 3983: else
1.15      bertrand 3984:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3985:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3986:   # making bogus files that we don't know about and never remove.  For
                   3987:   # instance it was reported that on HP-UX the gcc test will end up
                   3988:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3989:   # in D'.
                   3990:   mkdir conftest.dir
                   3991:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3992:   # using a relative directory.
                   3993:   cp "$am_depcomp" conftest.dir
                   3994:   cd conftest.dir
                   3995:   # We will build objects and dependencies in a subdirectory because
                   3996:   # it helps to detect inapplicable dependency modes.  For instance
                   3997:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3998:   # side effect of compilation, but ICC will put the dependencies in
                   3999:   # the current directory while Tru64 will put them in the object
                   4000:   # directory.
                   4001:   mkdir sub
1.14      bertrand 4002: 
1.15      bertrand 4003:   am_cv_CC_dependencies_compiler_type=none
                   4004:   if test "$am_compiler_list" = ""; then
                   4005:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4006:   fi
                   4007:   am__universal=false
                   4008:   case " $depcc " in #(
                   4009:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4010:      esac
1.14      bertrand 4011: 
1.15      bertrand 4012:   for depmode in $am_compiler_list; do
                   4013:     # Setup a source with many dependencies, because some compilers
                   4014:     # like to wrap large dependency lists on column 80 (with \), and
                   4015:     # we should not choose a depcomp mode which is confused by this.
                   4016:     #
                   4017:     # We need to recreate these files for each test, as the compiler may
                   4018:     # overwrite some of them when testing with obscure command lines.
                   4019:     # This happens at least with the AIX C compiler.
                   4020:     : > sub/conftest.c
                   4021:     for i in 1 2 3 4 5 6; do
                   4022:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4023:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4024:       # Solaris 8's {/usr,}/bin/sh.
                   4025:       touch sub/conftst$i.h
                   4026:     done
                   4027:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 4028: 
1.15      bertrand 4029:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4030:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4031:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4032:     # versions had trouble with output in subdirs
                   4033:     am__obj=sub/conftest.${OBJEXT-o}
                   4034:     am__minus_obj="-o $am__obj"
                   4035:     case $depmode in
                   4036:     gcc)
                   4037:       # This depmode causes a compiler race in universal mode.
                   4038:       test "$am__universal" = false || continue
                   4039:       ;;
                   4040:     nosideeffect)
                   4041:       # after this tag, mechanisms are not by side-effect, so they'll
                   4042:       # only be used when explicitly requested
                   4043:       if test "x$enable_dependency_tracking" = xyes; then
                   4044:    continue
                   4045:       else
                   4046:    break
                   4047:       fi
                   4048:       ;;
                   4049:     msvisualcpp | msvcmsys)
                   4050:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4051:       # not run yet.  These depmodes are late enough in the game, and
                   4052:       # so weak that their functioning should not be impacted.
                   4053:       am__obj=conftest.${OBJEXT-o}
                   4054:       am__minus_obj=
                   4055:       ;;
                   4056:     none) break ;;
                   4057:     esac
                   4058:     if depmode=$depmode \
                   4059:        source=sub/conftest.c object=$am__obj \
                   4060:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4061:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4062:          >/dev/null 2>conftest.err &&
                   4063:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4064:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4065:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4066:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4067:       # icc doesn't choke on unknown options, it will just issue warnings
                   4068:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4069:       # that says an option was ignored or not supported.
                   4070:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4071:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4072:       # The diagnosis changed in icc 8.0:
                   4073:       #   icc: Command line remark: option '-MP' not supported
                   4074:       if (grep 'ignoring option' conftest.err ||
                   4075:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4076:         am_cv_CC_dependencies_compiler_type=$depmode
                   4077:         break
                   4078:       fi
                   4079:     fi
                   4080:   done
1.14      bertrand 4081: 
1.15      bertrand 4082:   cd ..
                   4083:   rm -rf conftest.dir
1.14      bertrand 4084: else
1.15      bertrand 4085:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4086: fi
                   4087: 
1.15      bertrand 4088: fi
                   4089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4090: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4091: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4092: 
1.15      bertrand 4093:  if
                   4094:   test "x$enable_dependency_tracking" != xno \
                   4095:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4096:   am__fastdepCC_TRUE=
                   4097:   am__fastdepCC_FALSE='#'
1.1       bertrand 4098: else
1.15      bertrand 4099:   am__fastdepCC_TRUE='#'
                   4100:   am__fastdepCC_FALSE=
                   4101: fi
                   4102: 
1.1       bertrand 4103: 
                   4104: 
1.30      bertrand 4105: EXT_SQL=
                   4106: 
1.15      bertrand 4107: if test x"$CC" != x""; then
                   4108:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4109:            awk -F. '{ printf("%s", $1);}'`
                   4110:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4111:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4112:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4113:        OPTIMISATION_C=-O3
                   4114:    else
1.23      bertrand 4115:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4116:                then
1.15      bertrand 4117:            OPTIMISATION_C=-O3
                   4118:        else
1.23      bertrand 4119:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4120:                OPTIMISATION_C=-O2
                   4121:            else
1.36      bertrand 4122:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4123:            fi
1.15      bertrand 4124:        fi
                   4125:    fi
1.14      bertrand 4126: fi
                   4127: 
1.15      bertrand 4128: if test "x$CC" != xcc; then
                   4129:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4130: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4131: else
1.15      bertrand 4132:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4133: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4134: fi
1.15      bertrand 4135: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4136:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.93      bertrand 4137: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15      bertrand 4138:   $as_echo_n "(cached) " >&6
1.1       bertrand 4139: else
1.15      bertrand 4140:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4141: /* end confdefs.h.  */
                   4142: 
                   4143: int
                   4144: main ()
                   4145: {
1.15      bertrand 4146: 
1.1       bertrand 4147:   ;
                   4148:   return 0;
                   4149: }
                   4150: _ACEOF
1.15      bertrand 4151: # Make sure it works both with $CC and with simple cc.
                   4152: # We do the test twice because some compilers refuse to overwrite an
                   4153: # existing .o file with -o, though they will create one.
                   4154: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4155: rm -f conftest2.*
                   4156: if { { case "(($ac_try" in
                   4157:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4158:   *) ac_try_echo=$ac_try;;
                   4159: esac
                   4160: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4161: $as_echo "$ac_try_echo"; } >&5
                   4162:   (eval "$ac_try") 2>&5
                   4163:   ac_status=$?
                   4164:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4165:   test $ac_status = 0; } &&
                   4166:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4167:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4168:   *) ac_try_echo=$ac_try;;
                   4169: esac
                   4170: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4171: $as_echo "$ac_try_echo"; } >&5
                   4172:   (eval "$ac_try") 2>&5
                   4173:   ac_status=$?
                   4174:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4175:   test $ac_status = 0; };
                   4176: then
                   4177:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4178:   if test "x$CC" != xcc; then
                   4179:     # Test first that cc exists at all.
                   4180:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4181:   { { case "(($ac_try" in
                   4182:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4183:   *) ac_try_echo=$ac_try;;
                   4184: esac
                   4185: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4186: $as_echo "$ac_try_echo"; } >&5
                   4187:   (eval "$ac_try") 2>&5
                   4188:   ac_status=$?
                   4189:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4190:   test $ac_status = 0; }; }; then
                   4191:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4192:       rm -f conftest2.*
                   4193:       if { { case "(($ac_try" in
                   4194:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4195:   *) ac_try_echo=$ac_try;;
                   4196: esac
                   4197: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4198: $as_echo "$ac_try_echo"; } >&5
                   4199:   (eval "$ac_try") 2>&5
                   4200:   ac_status=$?
                   4201:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4202:   test $ac_status = 0; } &&
                   4203:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4204:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4205:   *) ac_try_echo=$ac_try;;
                   4206: esac
1.15      bertrand 4207: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4208: $as_echo "$ac_try_echo"; } >&5
                   4209:   (eval "$ac_try") 2>&5
1.14      bertrand 4210:   ac_status=$?
1.15      bertrand 4211:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4212:   test $ac_status = 0; };
                   4213:       then
                   4214:    # cc works too.
                   4215:    :
                   4216:       else
                   4217:    # cc exists but doesn't like -o.
                   4218:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4219:       fi
                   4220:     fi
                   4221:   fi
1.1       bertrand 4222: else
1.15      bertrand 4223:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4224: fi
                   4225: rm -f core conftest*
1.14      bertrand 4226: 
1.1       bertrand 4227: fi
1.15      bertrand 4228: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4229:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4230: $as_echo "yes" >&6; }
                   4231: else
                   4232:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4233: $as_echo "no" >&6; }
                   4234: 
                   4235: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4236: 
                   4237: fi
1.15      bertrand 4238: 
                   4239: # FIXME: we rely on the cache variable name because
                   4240: # there is no other way.
                   4241: set dummy $CC
                   4242: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4243: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4244: if test "$am_t" != yes; then
                   4245:    # Losing compiler, so override with the script.
                   4246:    # FIXME: It is wrong to rewrite CC.
                   4247:    # But if we don't then we get into trouble of one sort or another.
                   4248:    # A longer-term fix would be to have automake use am__CC in this case,
                   4249:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4250:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4251: fi
1.14      bertrand 4252: 
                   4253: 
1.15      bertrand 4254: 
                   4255: if test "$GCC" != yes; then
1.36      bertrand 4256:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4257: fi
                   4258: 
                   4259: ac_ext=cpp
                   4260: ac_cpp='$CXXCPP $CPPFLAGS'
                   4261: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4262: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4263: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4264: if test -z "$CXX"; then
                   4265:   if test -n "$CCC"; then
                   4266:     CXX=$CCC
                   4267:   else
                   4268:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4269:   for ac_prog in g++
1.15      bertrand 4270:   do
                   4271:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4272: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4273: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4274: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 4275: if ${ac_cv_prog_CXX+:} false; then :
1.15      bertrand 4276:   $as_echo_n "(cached) " >&6
1.1       bertrand 4277: else
1.15      bertrand 4278:   if test -n "$CXX"; then
                   4279:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4280: else
1.15      bertrand 4281: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4282: for as_dir in $PATH
                   4283: do
                   4284:   IFS=$as_save_IFS
                   4285:   test -z "$as_dir" && as_dir=.
                   4286:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4287:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4288:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4289:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4290:     break 2
                   4291:   fi
                   4292: done
                   4293:   done
                   4294: IFS=$as_save_IFS
1.14      bertrand 4295: 
                   4296: fi
                   4297: fi
1.15      bertrand 4298: CXX=$ac_cv_prog_CXX
                   4299: if test -n "$CXX"; then
                   4300:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4301: $as_echo "$CXX" >&6; }
1.14      bertrand 4302: else
1.15      bertrand 4303:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4304: $as_echo "no" >&6; }
1.14      bertrand 4305: fi
                   4306: 
                   4307: 
1.15      bertrand 4308:     test -n "$CXX" && break
                   4309:   done
                   4310: fi
                   4311: if test -z "$CXX"; then
                   4312:   ac_ct_CXX=$CXX
1.23      bertrand 4313:   for ac_prog in g++
1.15      bertrand 4314: do
                   4315:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4316: set dummy $ac_prog; ac_word=$2
                   4317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4318: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 4319: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15      bertrand 4320:   $as_echo_n "(cached) " >&6
                   4321: else
                   4322:   if test -n "$ac_ct_CXX"; then
                   4323:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4324: else
                   4325: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4326: for as_dir in $PATH
                   4327: do
                   4328:   IFS=$as_save_IFS
                   4329:   test -z "$as_dir" && as_dir=.
                   4330:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4331:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4332:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4333:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4334:     break 2
                   4335:   fi
                   4336: done
                   4337:   done
                   4338: IFS=$as_save_IFS
1.14      bertrand 4339: 
1.15      bertrand 4340: fi
                   4341: fi
                   4342: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4343: if test -n "$ac_ct_CXX"; then
                   4344:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4345: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4346: else
1.15      bertrand 4347:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4348: $as_echo "no" >&6; }
1.14      bertrand 4349: fi
                   4350: 
                   4351: 
1.15      bertrand 4352:   test -n "$ac_ct_CXX" && break
                   4353: done
1.14      bertrand 4354: 
1.15      bertrand 4355:   if test "x$ac_ct_CXX" = x; then
                   4356:     CXX="g++"
                   4357:   else
                   4358:     case $cross_compiling:$ac_tool_warned in
                   4359: yes:)
                   4360: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4361: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4362: ac_tool_warned=yes ;;
                   4363: esac
                   4364:     CXX=$ac_ct_CXX
                   4365:   fi
                   4366: fi
1.1       bertrand 4367: 
1.15      bertrand 4368:   fi
                   4369: fi
                   4370: # Provide some information about the compiler.
                   4371: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4372: set X $ac_compile
                   4373: ac_compiler=$2
                   4374: for ac_option in --version -v -V -qversion; do
                   4375:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4376: case "(($ac_try" in
                   4377:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4378:   *) ac_try_echo=$ac_try;;
                   4379: esac
1.15      bertrand 4380: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4381: $as_echo "$ac_try_echo"; } >&5
                   4382:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4383:   ac_status=$?
1.15      bertrand 4384:   if test -s conftest.err; then
                   4385:     sed '10a\
                   4386: ... rest of stderr output deleted ...
                   4387:          10q' conftest.err >conftest.er1
                   4388:     cat conftest.er1 >&5
                   4389:   fi
                   4390:   rm -f conftest.er1 conftest.err
                   4391:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4392:   test $ac_status = 0; }
                   4393: done
                   4394: 
                   4395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4396: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.93      bertrand 4397: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15      bertrand 4398:   $as_echo_n "(cached) " >&6
1.14      bertrand 4399: else
1.15      bertrand 4400:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4401: /* end confdefs.h.  */
1.1       bertrand 4402: 
                   4403: int
                   4404: main ()
                   4405: {
1.15      bertrand 4406: #ifndef __GNUC__
                   4407:        choke me
                   4408: #endif
1.1       bertrand 4409: 
                   4410:   ;
                   4411:   return 0;
                   4412: }
                   4413: _ACEOF
1.15      bertrand 4414: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4415:   ac_compiler_gnu=yes
1.1       bertrand 4416: else
1.15      bertrand 4417:   ac_compiler_gnu=no
1.1       bertrand 4418: fi
1.14      bertrand 4419: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4420: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4421: 
1.15      bertrand 4422: fi
                   4423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4424: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4425: if test $ac_compiler_gnu = yes; then
                   4426:   GXX=yes
                   4427: else
                   4428:   GXX=
                   4429: fi
                   4430: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4431: ac_save_CXXFLAGS=$CXXFLAGS
                   4432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4433: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.93      bertrand 4434: if ${ac_cv_prog_cxx_g+:} false; then :
1.15      bertrand 4435:   $as_echo_n "(cached) " >&6
                   4436: else
                   4437:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4438:    ac_cxx_werror_flag=yes
                   4439:    ac_cv_prog_cxx_g=no
                   4440:    CXXFLAGS="-g"
                   4441:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4442: /* end confdefs.h.  */
1.15      bertrand 4443: 
1.1       bertrand 4444: int
                   4445: main ()
                   4446: {
1.14      bertrand 4447: 
1.1       bertrand 4448:   ;
                   4449:   return 0;
                   4450: }
                   4451: _ACEOF
1.15      bertrand 4452: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4453:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4454: else
1.15      bertrand 4455:   CXXFLAGS=""
                   4456:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4457: /* end confdefs.h.  */
1.1       bertrand 4458: 
1.14      bertrand 4459: int
                   4460: main ()
                   4461: {
1.1       bertrand 4462: 
1.14      bertrand 4463:   ;
                   4464:   return 0;
                   4465: }
                   4466: _ACEOF
1.15      bertrand 4467: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4468: 
                   4469: else
1.15      bertrand 4470:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4471:     CXXFLAGS="-g"
                   4472:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4473: /* end confdefs.h.  */
1.1       bertrand 4474: 
1.14      bertrand 4475: int
                   4476: main ()
                   4477: {
1.1       bertrand 4478: 
1.14      bertrand 4479:   ;
                   4480:   return 0;
                   4481: }
                   4482: _ACEOF
1.15      bertrand 4483: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4484:   ac_cv_prog_cxx_g=yes
                   4485: fi
                   4486: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4487: fi
                   4488: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4489: fi
                   4490: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4491:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4492: fi
                   4493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4494: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4495: if test "$ac_test_CXXFLAGS" = set; then
                   4496:   CXXFLAGS=$ac_save_CXXFLAGS
                   4497: elif test $ac_cv_prog_cxx_g = yes; then
                   4498:   if test "$GXX" = yes; then
                   4499:     CXXFLAGS="-g -O2"
                   4500:   else
                   4501:     CXXFLAGS="-g"
                   4502:   fi
                   4503: else
                   4504:   if test "$GXX" = yes; then
                   4505:     CXXFLAGS="-O2"
                   4506:   else
                   4507:     CXXFLAGS=
                   4508:   fi
                   4509: fi
                   4510: ac_ext=c
                   4511: ac_cpp='$CPP $CPPFLAGS'
                   4512: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4513: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4514: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4515: 
                   4516: depcc="$CXX"  am_compiler_list=
                   4517: 
                   4518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4519: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.93      bertrand 4520: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15      bertrand 4521:   $as_echo_n "(cached) " >&6
                   4522: else
                   4523:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4524:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4525:   # making bogus files that we don't know about and never remove.  For
                   4526:   # instance it was reported that on HP-UX the gcc test will end up
                   4527:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4528:   # in D'.
                   4529:   mkdir conftest.dir
                   4530:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4531:   # using a relative directory.
                   4532:   cp "$am_depcomp" conftest.dir
                   4533:   cd conftest.dir
                   4534:   # We will build objects and dependencies in a subdirectory because
                   4535:   # it helps to detect inapplicable dependency modes.  For instance
                   4536:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4537:   # side effect of compilation, but ICC will put the dependencies in
                   4538:   # the current directory while Tru64 will put them in the object
                   4539:   # directory.
                   4540:   mkdir sub
                   4541: 
                   4542:   am_cv_CXX_dependencies_compiler_type=none
                   4543:   if test "$am_compiler_list" = ""; then
                   4544:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4545:   fi
                   4546:   am__universal=false
                   4547:   case " $depcc " in #(
                   4548:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4549:      esac
                   4550: 
                   4551:   for depmode in $am_compiler_list; do
                   4552:     # Setup a source with many dependencies, because some compilers
                   4553:     # like to wrap large dependency lists on column 80 (with \), and
                   4554:     # we should not choose a depcomp mode which is confused by this.
                   4555:     #
                   4556:     # We need to recreate these files for each test, as the compiler may
                   4557:     # overwrite some of them when testing with obscure command lines.
                   4558:     # This happens at least with the AIX C compiler.
                   4559:     : > sub/conftest.c
                   4560:     for i in 1 2 3 4 5 6; do
                   4561:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4562:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4563:       # Solaris 8's {/usr,}/bin/sh.
                   4564:       touch sub/conftst$i.h
                   4565:     done
                   4566:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4567: 
                   4568:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4569:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4570:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4571:     # versions had trouble with output in subdirs
                   4572:     am__obj=sub/conftest.${OBJEXT-o}
                   4573:     am__minus_obj="-o $am__obj"
                   4574:     case $depmode in
                   4575:     gcc)
                   4576:       # This depmode causes a compiler race in universal mode.
                   4577:       test "$am__universal" = false || continue
                   4578:       ;;
                   4579:     nosideeffect)
                   4580:       # after this tag, mechanisms are not by side-effect, so they'll
                   4581:       # only be used when explicitly requested
                   4582:       if test "x$enable_dependency_tracking" = xyes; then
                   4583:    continue
                   4584:       else
                   4585:    break
                   4586:       fi
                   4587:       ;;
                   4588:     msvisualcpp | msvcmsys)
                   4589:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4590:       # not run yet.  These depmodes are late enough in the game, and
                   4591:       # so weak that their functioning should not be impacted.
                   4592:       am__obj=conftest.${OBJEXT-o}
                   4593:       am__minus_obj=
                   4594:       ;;
                   4595:     none) break ;;
                   4596:     esac
                   4597:     if depmode=$depmode \
                   4598:        source=sub/conftest.c object=$am__obj \
                   4599:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4600:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4601:          >/dev/null 2>conftest.err &&
                   4602:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4603:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4604:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4605:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4606:       # icc doesn't choke on unknown options, it will just issue warnings
                   4607:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4608:       # that says an option was ignored or not supported.
                   4609:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4610:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4611:       # The diagnosis changed in icc 8.0:
                   4612:       #   icc: Command line remark: option '-MP' not supported
                   4613:       if (grep 'ignoring option' conftest.err ||
                   4614:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4615:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4616:         break
                   4617:       fi
                   4618:     fi
                   4619:   done
                   4620: 
                   4621:   cd ..
                   4622:   rm -rf conftest.dir
                   4623: else
                   4624:   am_cv_CXX_dependencies_compiler_type=none
                   4625: fi
                   4626: 
                   4627: fi
                   4628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4629: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4630: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4631: 
                   4632:  if
                   4633:   test "x$enable_dependency_tracking" != xno \
                   4634:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4635:   am__fastdepCXX_TRUE=
                   4636:   am__fastdepCXX_FALSE='#'
                   4637: else
                   4638:   am__fastdepCXX_TRUE='#'
                   4639:   am__fastdepCXX_FALSE=
                   4640: fi
                   4641: 
                   4642: 
                   4643: 
1.87      bertrand 4644: if test "$GXX" != yes; then
1.36      bertrand 4645:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4646: fi
                   4647: 
1.69      bertrand 4648: if test x"$CXX" != x""; then
                   4649:    GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4650:            awk -F. '{ printf("%s", $1);}'`
                   4651:    GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4652:            awk -F. '{ printf("%s", $2);}'`
                   4653:    if test $GCC_VERSION_MAJEURE -ge 5; then
                   4654:        OPTIMISATION_GXX=-O3
                   4655:    else
                   4656:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4657:            OPTIMISATION_GXX=-O3
                   4658:        else
                   4659:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4660:                OPTIMISATION_GXX=-O2
                   4661:            else
                   4662:                as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
                   4663:            fi
                   4664:        fi
                   4665:    fi
                   4666: fi
                   4667: 
1.15      bertrand 4668: ac_ext=f
                   4669: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4670: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4671: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4672: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4673:   for ac_prog in gfortran
1.15      bertrand 4674:   do
                   4675:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4676: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4678: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 4679: if ${ac_cv_prog_F77+:} false; then :
1.15      bertrand 4680:   $as_echo_n "(cached) " >&6
                   4681: else
                   4682:   if test -n "$F77"; then
                   4683:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4684: else
                   4685: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4686: for as_dir in $PATH
                   4687: do
                   4688:   IFS=$as_save_IFS
                   4689:   test -z "$as_dir" && as_dir=.
                   4690:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4691:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4692:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4693:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4694:     break 2
                   4695:   fi
                   4696: done
                   4697:   done
                   4698: IFS=$as_save_IFS
                   4699: 
                   4700: fi
                   4701: fi
                   4702: F77=$ac_cv_prog_F77
                   4703: if test -n "$F77"; then
                   4704:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4705: $as_echo "$F77" >&6; }
                   4706: else
                   4707:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4708: $as_echo "no" >&6; }
                   4709: fi
                   4710: 
                   4711: 
                   4712:     test -n "$F77" && break
                   4713:   done
                   4714: fi
                   4715: if test -z "$F77"; then
                   4716:   ac_ct_F77=$F77
1.23      bertrand 4717:   for ac_prog in gfortran
1.15      bertrand 4718: do
                   4719:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4720: set dummy $ac_prog; ac_word=$2
                   4721: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4722: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 4723: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15      bertrand 4724:   $as_echo_n "(cached) " >&6
                   4725: else
                   4726:   if test -n "$ac_ct_F77"; then
                   4727:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4728: else
                   4729: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4730: for as_dir in $PATH
                   4731: do
                   4732:   IFS=$as_save_IFS
                   4733:   test -z "$as_dir" && as_dir=.
                   4734:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4735:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4736:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4737:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4738:     break 2
                   4739:   fi
                   4740: done
                   4741:   done
                   4742: IFS=$as_save_IFS
                   4743: 
                   4744: fi
                   4745: fi
                   4746: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4747: if test -n "$ac_ct_F77"; then
                   4748:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4749: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4750: else
1.15      bertrand 4751:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4752: $as_echo "no" >&6; }
                   4753: fi
                   4754: 
                   4755: 
                   4756:   test -n "$ac_ct_F77" && break
                   4757: done
1.1       bertrand 4758: 
1.15      bertrand 4759:   if test "x$ac_ct_F77" = x; then
                   4760:     F77=""
                   4761:   else
                   4762:     case $cross_compiling:$ac_tool_warned in
                   4763: yes:)
                   4764: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4765: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4766: ac_tool_warned=yes ;;
                   4767: esac
                   4768:     F77=$ac_ct_F77
                   4769:   fi
1.14      bertrand 4770: fi
1.1       bertrand 4771: 
                   4772: 
1.15      bertrand 4773: # Provide some information about the compiler.
                   4774: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4775: set X $ac_compile
                   4776: ac_compiler=$2
                   4777: for ac_option in --version -v -V -qversion; do
                   4778:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4779: case "(($ac_try" in
                   4780:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4781:   *) ac_try_echo=$ac_try;;
                   4782: esac
1.15      bertrand 4783: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4784: $as_echo "$ac_try_echo"; } >&5
                   4785:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4786:   ac_status=$?
1.15      bertrand 4787:   if test -s conftest.err; then
                   4788:     sed '10a\
                   4789: ... rest of stderr output deleted ...
                   4790:          10q' conftest.err >conftest.er1
                   4791:     cat conftest.er1 >&5
                   4792:   fi
                   4793:   rm -f conftest.er1 conftest.err
                   4794:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4795:   test $ac_status = 0; }
                   4796: done
                   4797: rm -f a.out
                   4798: 
                   4799: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4800: # input file.  (Note that this only needs to work for GNU compilers.)
                   4801: ac_save_ext=$ac_ext
                   4802: ac_ext=F
                   4803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4804: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.93      bertrand 4805: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15      bertrand 4806:   $as_echo_n "(cached) " >&6
1.1       bertrand 4807: else
1.15      bertrand 4808:   cat > conftest.$ac_ext <<_ACEOF
                   4809:       program main
                   4810: #ifndef __GNUC__
                   4811:        choke me
                   4812: #endif
1.14      bertrand 4813: 
1.15      bertrand 4814:       end
                   4815: _ACEOF
                   4816: if ac_fn_f77_try_compile "$LINENO"; then :
                   4817:   ac_compiler_gnu=yes
                   4818: else
                   4819:   ac_compiler_gnu=no
1.1       bertrand 4820: fi
1.15      bertrand 4821: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4822: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4823: 
                   4824: fi
1.15      bertrand 4825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4826: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4827: ac_ext=$ac_save_ext
                   4828: ac_test_FFLAGS=${FFLAGS+set}
                   4829: ac_save_FFLAGS=$FFLAGS
                   4830: FFLAGS=
                   4831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4832: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.93      bertrand 4833: if ${ac_cv_prog_f77_g+:} false; then :
1.15      bertrand 4834:   $as_echo_n "(cached) " >&6
                   4835: else
                   4836:   FFLAGS=-g
                   4837: cat > conftest.$ac_ext <<_ACEOF
                   4838:       program main
1.1       bertrand 4839: 
1.15      bertrand 4840:       end
1.14      bertrand 4841: _ACEOF
1.15      bertrand 4842: if ac_fn_f77_try_compile "$LINENO"; then :
                   4843:   ac_cv_prog_f77_g=yes
1.1       bertrand 4844: else
1.15      bertrand 4845:   ac_cv_prog_f77_g=no
1.1       bertrand 4846: fi
1.15      bertrand 4847: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4848: 
                   4849: fi
1.15      bertrand 4850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4851: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4852: if test "$ac_test_FFLAGS" = set; then
                   4853:   FFLAGS=$ac_save_FFLAGS
                   4854: elif test $ac_cv_prog_f77_g = yes; then
                   4855:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4856:     FFLAGS="-g -O2"
                   4857:   else
                   4858:     FFLAGS="-g"
                   4859:   fi
                   4860: else
                   4861:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4862:     FFLAGS="-O2"
                   4863:   else
                   4864:     FFLAGS=
                   4865:   fi
1.1       bertrand 4866: fi
                   4867: 
1.15      bertrand 4868: if test $ac_compiler_gnu = yes; then
                   4869:   G77=yes
1.1       bertrand 4870: else
1.15      bertrand 4871:   G77=
1.1       bertrand 4872: fi
1.15      bertrand 4873: ac_ext=c
                   4874: ac_cpp='$CPP $CPPFLAGS'
                   4875: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4876: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4877: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4878: 
                   4879: 
1.15      bertrand 4880: ac_ext=${ac_fc_srcext-f}
                   4881: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4882: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4883: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4884: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4885:   for ac_prog in gfortran
1.15      bertrand 4886:   do
                   4887:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4888: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4890: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 4891: if ${ac_cv_prog_FC+:} false; then :
1.15      bertrand 4892:   $as_echo_n "(cached) " >&6
                   4893: else
                   4894:   if test -n "$FC"; then
                   4895:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4896: else
1.15      bertrand 4897: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4898: for as_dir in $PATH
                   4899: do
                   4900:   IFS=$as_save_IFS
                   4901:   test -z "$as_dir" && as_dir=.
                   4902:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4903:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4904:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4905:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4906:     break 2
                   4907:   fi
                   4908: done
                   4909:   done
                   4910: IFS=$as_save_IFS
1.1       bertrand 4911: 
                   4912: fi
1.15      bertrand 4913: fi
                   4914: FC=$ac_cv_prog_FC
                   4915: if test -n "$FC"; then
                   4916:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4917: $as_echo "$FC" >&6; }
1.14      bertrand 4918: else
1.15      bertrand 4919:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4920: $as_echo "no" >&6; }
1.14      bertrand 4921: fi
                   4922: 
1.1       bertrand 4923: 
1.15      bertrand 4924:     test -n "$FC" && break
                   4925:   done
                   4926: fi
                   4927: if test -z "$FC"; then
                   4928:   ac_ct_FC=$FC
1.23      bertrand 4929:   for ac_prog in gfortran
1.15      bertrand 4930: do
                   4931:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4932: set dummy $ac_prog; ac_word=$2
                   4933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4934: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 4935: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15      bertrand 4936:   $as_echo_n "(cached) " >&6
                   4937: else
                   4938:   if test -n "$ac_ct_FC"; then
                   4939:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4940: else
                   4941: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4942: for as_dir in $PATH
                   4943: do
                   4944:   IFS=$as_save_IFS
                   4945:   test -z "$as_dir" && as_dir=.
                   4946:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4947:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4948:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4949:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4950:     break 2
                   4951:   fi
                   4952: done
                   4953:   done
                   4954: IFS=$as_save_IFS
1.1       bertrand 4955: 
1.15      bertrand 4956: fi
                   4957: fi
                   4958: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4959: if test -n "$ac_ct_FC"; then
                   4960:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4961: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4962: else
1.15      bertrand 4963:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4964: $as_echo "no" >&6; }
1.1       bertrand 4965: fi
1.14      bertrand 4966: 
1.1       bertrand 4967: 
1.15      bertrand 4968:   test -n "$ac_ct_FC" && break
                   4969: done
1.1       bertrand 4970: 
1.15      bertrand 4971:   if test "x$ac_ct_FC" = x; then
                   4972:     FC=""
                   4973:   else
                   4974:     case $cross_compiling:$ac_tool_warned in
                   4975: yes:)
                   4976: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4977: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4978: ac_tool_warned=yes ;;
1.14      bertrand 4979: esac
1.15      bertrand 4980:     FC=$ac_ct_FC
                   4981:   fi
1.14      bertrand 4982: fi
                   4983: 
                   4984: 
1.15      bertrand 4985: # Provide some information about the compiler.
                   4986: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4987: set X $ac_compile
                   4988: ac_compiler=$2
                   4989: for ac_option in --version -v -V -qversion; do
                   4990:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4991: case "(($ac_try" in
                   4992:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4993:   *) ac_try_echo=$ac_try;;
                   4994: esac
1.15      bertrand 4995: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4996: $as_echo "$ac_try_echo"; } >&5
                   4997:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4998:   ac_status=$?
1.15      bertrand 4999:   if test -s conftest.err; then
                   5000:     sed '10a\
                   5001: ... rest of stderr output deleted ...
                   5002:          10q' conftest.err >conftest.er1
                   5003:     cat conftest.er1 >&5
                   5004:   fi
                   5005:   rm -f conftest.er1 conftest.err
                   5006:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   5007:   test $ac_status = 0; }
                   5008: done
                   5009: rm -f a.out
                   5010: 
                   5011: # If we don't use `.F' as extension, the preprocessor is not run on the
                   5012: # input file.  (Note that this only needs to work for GNU compilers.)
                   5013: ac_save_ext=$ac_ext
                   5014: ac_ext=F
                   5015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   5016: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.93      bertrand 5017: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15      bertrand 5018:   $as_echo_n "(cached) " >&6
1.14      bertrand 5019: else
1.15      bertrand 5020:   cat > conftest.$ac_ext <<_ACEOF
                   5021:       program main
                   5022: #ifndef __GNUC__
                   5023:        choke me
                   5024: #endif
1.14      bertrand 5025: 
1.15      bertrand 5026:       end
                   5027: _ACEOF
                   5028: if ac_fn_fc_try_compile "$LINENO"; then :
                   5029:   ac_compiler_gnu=yes
                   5030: else
                   5031:   ac_compiler_gnu=no
1.14      bertrand 5032: fi
                   5033: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 5034: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 5035: 
1.15      bertrand 5036: fi
                   5037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   5038: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   5039: ac_ext=$ac_save_ext
                   5040: ac_test_FCFLAGS=${FCFLAGS+set}
                   5041: ac_save_FCFLAGS=$FCFLAGS
                   5042: FCFLAGS=
                   5043: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   5044: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.93      bertrand 5045: if ${ac_cv_prog_fc_g+:} false; then :
1.15      bertrand 5046:   $as_echo_n "(cached) " >&6
                   5047: else
                   5048:   FCFLAGS=-g
                   5049: cat > conftest.$ac_ext <<_ACEOF
                   5050:       program main
1.1       bertrand 5051: 
1.15      bertrand 5052:       end
1.1       bertrand 5053: _ACEOF
1.15      bertrand 5054: if ac_fn_fc_try_compile "$LINENO"; then :
                   5055:   ac_cv_prog_fc_g=yes
1.1       bertrand 5056: else
1.15      bertrand 5057:   ac_cv_prog_fc_g=no
1.1       bertrand 5058: fi
1.14      bertrand 5059: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 5060: 
1.15      bertrand 5061: fi
                   5062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   5063: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   5064: if test "$ac_test_FCFLAGS" = set; then
                   5065:   FCFLAGS=$ac_save_FCFLAGS
                   5066: elif test $ac_cv_prog_fc_g = yes; then
                   5067:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5068:     FCFLAGS="-g -O2"
                   5069:   else
                   5070:     FCFLAGS="-g"
                   5071:   fi
1.1       bertrand 5072: else
1.15      bertrand 5073:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5074:     FCFLAGS="-O2"
                   5075:   else
                   5076:     FCFLAGS=
                   5077:   fi
1.1       bertrand 5078: fi
                   5079: 
1.15      bertrand 5080: ac_ext=c
                   5081: ac_cpp='$CPP $CPPFLAGS'
                   5082: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5083: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5084: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 5085: 
                   5086: 
1.88      bertrand 5087: if test x"$F77" == x; then
                   5088:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
                   5089: fi
                   5090: 
                   5091: if test x"$FC" == x; then
1.36      bertrand 5092:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 5093: fi
                   5094: 
1.15      bertrand 5095: if test x"$FC" != x""; then
                   5096:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5097:            awk -F. '{ printf("%s", $1);}'`
                   5098:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5099:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 5100:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 5101:        OPTIMISATION_F=-O3
                   5102:    else
1.23      bertrand 5103:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5104:            OPTIMISATION_F=-O3
                   5105:        else
1.23      bertrand 5106:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5107:                OPTIMISATION_F=-O2
                   5108:            else
1.36      bertrand 5109:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5110:            fi
1.14      bertrand 5111:        fi
                   5112:    fi
                   5113: fi
1.1       bertrand 5114: 
                   5115: 
1.15      bertrand 5116: ac_ext=c
                   5117: ac_cpp='$CPP $CPPFLAGS'
                   5118: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5119: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5120: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5122: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5123: # On Suns, sometimes $CPP names a directory.
                   5124: if test -n "$CPP" && test -d "$CPP"; then
                   5125:   CPP=
                   5126: fi
                   5127: if test -z "$CPP"; then
1.93      bertrand 5128:   if ${ac_cv_prog_CPP+:} false; then :
1.15      bertrand 5129:   $as_echo_n "(cached) " >&6
                   5130: else
                   5131:       # Double quotes because CPP needs to be expanded
                   5132:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5133:     do
                   5134:       ac_preproc_ok=false
                   5135: for ac_c_preproc_warn_flag in '' yes
                   5136: do
                   5137:   # Use a header file that comes with gcc, so configuring glibc
                   5138:   # with a fresh cross-compiler works.
                   5139:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5140:   # <limits.h> exists even on freestanding compilers.
                   5141:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5142:   # not just through cpp. "Syntax error" is here to catch this case.
                   5143:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5144: /* end confdefs.h.  */
1.15      bertrand 5145: #ifdef __STDC__
                   5146: # include <limits.h>
                   5147: #else
                   5148: # include <assert.h>
                   5149: #endif
                   5150:             Syntax error
1.1       bertrand 5151: _ACEOF
1.15      bertrand 5152: if ac_fn_c_try_cpp "$LINENO"; then :
                   5153: 
1.1       bertrand 5154: else
1.15      bertrand 5155:   # Broken: fails on valid input.
                   5156: continue
1.1       bertrand 5157: fi
1.36      bertrand 5158: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5159: 
1.15      bertrand 5160:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5161:   # can be detected and how.
                   5162:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5163: /* end confdefs.h.  */
                   5164: #include <ac_nonexistent.h>
                   5165: _ACEOF
                   5166: if ac_fn_c_try_cpp "$LINENO"; then :
                   5167:   # Broken: success on invalid input.
                   5168: continue
                   5169: else
                   5170:   # Passes both tests.
                   5171: ac_preproc_ok=:
                   5172: break
1.1       bertrand 5173: fi
1.36      bertrand 5174: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5175: 
1.15      bertrand 5176: done
                   5177: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5178: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5179: if $ac_preproc_ok; then :
                   5180:   break
1.1       bertrand 5181: fi
                   5182: 
1.15      bertrand 5183:     done
                   5184:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5185: 
1.15      bertrand 5186: fi
                   5187:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5188: else
1.15      bertrand 5189:   ac_cv_prog_CPP=$CPP
                   5190: fi
                   5191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5192: $as_echo "$CPP" >&6; }
                   5193: ac_preproc_ok=false
                   5194: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5195: do
1.15      bertrand 5196:   # Use a header file that comes with gcc, so configuring glibc
                   5197:   # with a fresh cross-compiler works.
                   5198:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5199:   # <limits.h> exists even on freestanding compilers.
                   5200:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5201:   # not just through cpp. "Syntax error" is here to catch this case.
                   5202:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5203: /* end confdefs.h.  */
                   5204: #ifdef __STDC__
                   5205: # include <limits.h>
                   5206: #else
                   5207: # include <assert.h>
                   5208: #endif
                   5209:             Syntax error
                   5210: _ACEOF
                   5211: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5212: 
1.15      bertrand 5213: else
                   5214:   # Broken: fails on valid input.
                   5215: continue
                   5216: fi
1.36      bertrand 5217: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5218: 
1.15      bertrand 5219:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5220:   # can be detected and how.
                   5221:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5222: /* end confdefs.h.  */
                   5223: #include <ac_nonexistent.h>
                   5224: _ACEOF
                   5225: if ac_fn_c_try_cpp "$LINENO"; then :
                   5226:   # Broken: success on invalid input.
                   5227: continue
                   5228: else
                   5229:   # Passes both tests.
                   5230: ac_preproc_ok=:
                   5231: break
                   5232: fi
1.36      bertrand 5233: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5234: 
                   5235: done
1.15      bertrand 5236: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5237: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5238: if $ac_preproc_ok; then :
1.1       bertrand 5239: 
1.15      bertrand 5240: else
                   5241:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5242: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5243: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.93      bertrand 5244: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 5245: fi
1.14      bertrand 5246: 
1.15      bertrand 5247: ac_ext=c
                   5248: ac_cpp='$CPP $CPPFLAGS'
                   5249: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5250: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5251: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5252: 
                   5253: 
1.15      bertrand 5254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5255: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5256: 
                   5257: 
1.15      bertrand 5258: # Check whether --with-x was given.
                   5259: if test "${with_x+set}" = set; then :
                   5260:   withval=$with_x;
1.1       bertrand 5261: fi
1.14      bertrand 5262: 
1.15      bertrand 5263: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5264: if test "x$with_x" = xno; then
                   5265:   # The user explicitly disabled X.
                   5266:   have_x=disabled
1.1       bertrand 5267: else
1.15      bertrand 5268:   case $x_includes,$x_libraries in #(
1.93      bertrand 5269:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5270:     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15      bertrand 5271:   $as_echo_n "(cached) " >&6
1.1       bertrand 5272: else
1.15      bertrand 5273:   # One or both of the vars are not set, and there is no cached value.
                   5274: ac_x_includes=no ac_x_libraries=no
                   5275: rm -f -r conftest.dir
                   5276: if mkdir conftest.dir; then
                   5277:   cd conftest.dir
                   5278:   cat >Imakefile <<'_ACEOF'
                   5279: incroot:
                   5280:    @echo incroot='${INCROOT}'
                   5281: usrlibdir:
                   5282:    @echo usrlibdir='${USRLIBDIR}'
                   5283: libdir:
                   5284:    @echo libdir='${LIBDIR}'
                   5285: _ACEOF
                   5286:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5287:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5288:     for ac_var in incroot usrlibdir libdir; do
                   5289:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5290:     done
                   5291:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5292:     for ac_extension in a so sl dylib la dll; do
                   5293:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5294:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5295:    ac_im_usrlibdir=$ac_im_libdir; break
                   5296:       fi
                   5297:     done
                   5298:     # Screen out bogus values from the imake configuration.  They are
                   5299:     # bogus both because they are the default anyway, and because
                   5300:     # using them would break gcc on systems where it needs fixed includes.
                   5301:     case $ac_im_incroot in
                   5302:    /usr/include) ac_x_includes= ;;
                   5303:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5304:     esac
                   5305:     case $ac_im_usrlibdir in
                   5306:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5307:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5308:     esac
                   5309:   fi
                   5310:   cd ..
                   5311:   rm -f -r conftest.dir
                   5312: fi
                   5313: 
                   5314: # Standard set of common directories for X headers.
                   5315: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5316: ac_x_header_dirs='
                   5317: /usr/X11/include
                   5318: /usr/X11R7/include
                   5319: /usr/X11R6/include
                   5320: /usr/X11R5/include
                   5321: /usr/X11R4/include
1.1       bertrand 5322: 
1.15      bertrand 5323: /usr/include/X11
                   5324: /usr/include/X11R7
                   5325: /usr/include/X11R6
                   5326: /usr/include/X11R5
                   5327: /usr/include/X11R4
1.1       bertrand 5328: 
1.15      bertrand 5329: /usr/local/X11/include
                   5330: /usr/local/X11R7/include
                   5331: /usr/local/X11R6/include
                   5332: /usr/local/X11R5/include
                   5333: /usr/local/X11R4/include
1.1       bertrand 5334: 
1.15      bertrand 5335: /usr/local/include/X11
                   5336: /usr/local/include/X11R7
                   5337: /usr/local/include/X11R6
                   5338: /usr/local/include/X11R5
                   5339: /usr/local/include/X11R4
1.1       bertrand 5340: 
1.15      bertrand 5341: /usr/X386/include
                   5342: /usr/x386/include
                   5343: /usr/XFree86/include/X11
1.1       bertrand 5344: 
1.15      bertrand 5345: /usr/include
                   5346: /usr/local/include
                   5347: /usr/unsupported/include
                   5348: /usr/athena/include
                   5349: /usr/local/x11r5/include
                   5350: /usr/lpp/Xamples/include
1.1       bertrand 5351: 
1.15      bertrand 5352: /usr/openwin/include
                   5353: /usr/openwin/share/include'
1.1       bertrand 5354: 
1.15      bertrand 5355: if test "$ac_x_includes" = no; then
                   5356:   # Guess where to find include files, by looking for Xlib.h.
                   5357:   # First, try using that file with no special directory specified.
                   5358:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5359: /* end confdefs.h.  */
                   5360: #include <X11/Xlib.h>
                   5361: _ACEOF
                   5362: if ac_fn_c_try_cpp "$LINENO"; then :
                   5363:   # We can compile using X headers with no special include directory.
                   5364: ac_x_includes=
1.1       bertrand 5365: else
1.15      bertrand 5366:   for ac_dir in $ac_x_header_dirs; do
                   5367:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5368:     ac_x_includes=$ac_dir
                   5369:     break
                   5370:   fi
                   5371: done
1.1       bertrand 5372: fi
1.36      bertrand 5373: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5374: fi # $ac_x_includes = no
1.1       bertrand 5375: 
1.15      bertrand 5376: if test "$ac_x_libraries" = no; then
                   5377:   # Check for the libraries.
                   5378:   # See if we find them without any special options.
                   5379:   # Don't add to $LIBS permanently.
                   5380:   ac_save_LIBS=$LIBS
                   5381:   LIBS="-lX11 $LIBS"
                   5382:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5383: /* end confdefs.h.  */
1.15      bertrand 5384: #include <X11/Xlib.h>
1.14      bertrand 5385: int
                   5386: main ()
                   5387: {
1.15      bertrand 5388: XrmInitialize ()
1.14      bertrand 5389:   ;
                   5390:   return 0;
                   5391: }
1.1       bertrand 5392: _ACEOF
1.15      bertrand 5393: if ac_fn_c_try_link "$LINENO"; then :
                   5394:   LIBS=$ac_save_LIBS
                   5395: # We can link X programs with no special library path.
                   5396: ac_x_libraries=
1.1       bertrand 5397: else
1.15      bertrand 5398:   LIBS=$ac_save_LIBS
                   5399: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5400: do
                   5401:   # Don't even attempt the hair of trying to link an X program!
                   5402:   for ac_extension in a so sl dylib la dll; do
                   5403:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5404:       ac_x_libraries=$ac_dir
                   5405:       break 2
                   5406:     fi
                   5407:   done
                   5408: done
                   5409: fi
                   5410: rm -f core conftest.err conftest.$ac_objext \
                   5411:     conftest$ac_exeext conftest.$ac_ext
                   5412: fi # $ac_x_libraries = no
1.1       bertrand 5413: 
1.15      bertrand 5414: case $ac_x_includes,$ac_x_libraries in #(
                   5415:   no,* | *,no | *\'*)
                   5416:     # Didn't find X, or a directory has "'" in its name.
                   5417:     ac_cv_have_x="have_x=no";; #(
                   5418:   *)
                   5419:     # Record where we found X for the cache.
                   5420:     ac_cv_have_x="have_x=yes\
                   5421:    ac_x_includes='$ac_x_includes'\
                   5422:    ac_x_libraries='$ac_x_libraries'"
                   5423: esac
1.1       bertrand 5424: fi
1.15      bertrand 5425: ;; #(
                   5426:     *) have_x=yes;;
                   5427:   esac
                   5428:   eval "$ac_cv_have_x"
                   5429: fi # $with_x != no
1.1       bertrand 5430: 
1.15      bertrand 5431: if test "$have_x" != yes; then
                   5432:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5433: $as_echo "$have_x" >&6; }
                   5434:   no_x=yes
1.14      bertrand 5435: else
1.15      bertrand 5436:   # If each of the values was on the command line, it overrides each guess.
                   5437:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5438:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5439:   # Update the cache value to reflect the command line values.
                   5440:   ac_cv_have_x="have_x=yes\
                   5441:    ac_x_includes='$x_includes'\
                   5442:    ac_x_libraries='$x_libraries'"
                   5443:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5444: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5445: fi
1.1       bertrand 5446: 
1.15      bertrand 5447: if test "$no_x" = yes; then
                   5448:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5449: 
1.15      bertrand 5450: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5451: 
1.15      bertrand 5452:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5453: else
1.15      bertrand 5454:   if test -n "$x_includes"; then
                   5455:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5456:   fi
                   5457: 
                   5458:   # It would also be nice to do this for all -L options, not just this one.
                   5459:   if test -n "$x_libraries"; then
                   5460:     X_LIBS="$X_LIBS -L$x_libraries"
                   5461:     # For Solaris; some versions of Sun CC require a space after -R and
                   5462:     # others require no space.  Words are not sufficient . . . .
                   5463:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5464: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5465:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5466:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5467:     ac_c_werror_flag=yes
                   5468:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5469: /* end confdefs.h.  */
1.1       bertrand 5470: 
1.15      bertrand 5471: int
                   5472: main ()
                   5473: {
1.1       bertrand 5474: 
1.15      bertrand 5475:   ;
                   5476:   return 0;
                   5477: }
                   5478: _ACEOF
                   5479: if ac_fn_c_try_link "$LINENO"; then :
                   5480:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5481: $as_echo "no" >&6; }
                   5482:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5483: else
1.15      bertrand 5484:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5485:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5486: /* end confdefs.h.  */
1.1       bertrand 5487: 
1.14      bertrand 5488: int
                   5489: main ()
                   5490: {
1.15      bertrand 5491: 
                   5492:   ;
1.14      bertrand 5493:   return 0;
                   5494: }
                   5495: _ACEOF
1.15      bertrand 5496: if ac_fn_c_try_link "$LINENO"; then :
                   5497:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5498: $as_echo "yes" >&6; }
                   5499:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5500: else
1.15      bertrand 5501:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5502: $as_echo "neither works" >&6; }
1.14      bertrand 5503: fi
1.15      bertrand 5504: rm -f core conftest.err conftest.$ac_objext \
                   5505:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5506: fi
1.15      bertrand 5507: rm -f core conftest.err conftest.$ac_objext \
                   5508:     conftest$ac_exeext conftest.$ac_ext
                   5509:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5510:     LIBS=$ac_xsave_LIBS
                   5511:   fi
1.1       bertrand 5512: 
1.15      bertrand 5513:   # Check for system-dependent libraries X programs must link with.
                   5514:   # Do this before checking for the system-independent R6 libraries
                   5515:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5516: 
1.15      bertrand 5517:   if test "$ISC" = yes; then
                   5518:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5519:   else
                   5520:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5521:     # libraries were built with DECnet support.  And Karl Berry says
                   5522:     # the Alpha needs dnet_stub (dnet does not exist).
                   5523:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5524:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5525: /* end confdefs.h.  */
1.1       bertrand 5526: 
1.15      bertrand 5527: /* Override any GCC internal prototype to avoid an error.
                   5528:    Use char because int might match the return type of a GCC
                   5529:    builtin and then its argument prototype would still apply.  */
                   5530: #ifdef __cplusplus
                   5531: extern "C"
                   5532: #endif
                   5533: char XOpenDisplay ();
                   5534: int
                   5535: main ()
                   5536: {
                   5537: return XOpenDisplay ();
                   5538:   ;
                   5539:   return 0;
                   5540: }
1.1       bertrand 5541: _ACEOF
1.15      bertrand 5542: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5543: 
                   5544: else
1.15      bertrand 5545:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5546: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.93      bertrand 5547: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15      bertrand 5548:   $as_echo_n "(cached) " >&6
                   5549: else
                   5550:   ac_check_lib_save_LIBS=$LIBS
                   5551: LIBS="-ldnet  $LIBS"
                   5552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5553: /* end confdefs.h.  */
1.14      bertrand 5554: 
1.15      bertrand 5555: /* Override any GCC internal prototype to avoid an error.
                   5556:    Use char because int might match the return type of a GCC
                   5557:    builtin and then its argument prototype would still apply.  */
                   5558: #ifdef __cplusplus
                   5559: extern "C"
                   5560: #endif
                   5561: char dnet_ntoa ();
                   5562: int
                   5563: main ()
                   5564: {
                   5565: return dnet_ntoa ();
                   5566:   ;
                   5567:   return 0;
                   5568: }
1.1       bertrand 5569: _ACEOF
1.15      bertrand 5570: if ac_fn_c_try_link "$LINENO"; then :
                   5571:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5572: else
1.15      bertrand 5573:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5574: fi
1.15      bertrand 5575: rm -f core conftest.err conftest.$ac_objext \
                   5576:     conftest$ac_exeext conftest.$ac_ext
                   5577: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5578: fi
1.15      bertrand 5579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5580: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.93      bertrand 5581: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15      bertrand 5582:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5583: fi
                   5584: 
1.15      bertrand 5585:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5586:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5587: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.93      bertrand 5588: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15      bertrand 5589:   $as_echo_n "(cached) " >&6
1.14      bertrand 5590: else
1.15      bertrand 5591:   ac_check_lib_save_LIBS=$LIBS
                   5592: LIBS="-ldnet_stub  $LIBS"
                   5593: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5594: /* end confdefs.h.  */
1.15      bertrand 5595: 
                   5596: /* Override any GCC internal prototype to avoid an error.
                   5597:    Use char because int might match the return type of a GCC
                   5598:    builtin and then its argument prototype would still apply.  */
                   5599: #ifdef __cplusplus
                   5600: extern "C"
                   5601: #endif
                   5602: char dnet_ntoa ();
1.1       bertrand 5603: int
                   5604: main ()
                   5605: {
1.15      bertrand 5606: return dnet_ntoa ();
1.1       bertrand 5607:   ;
                   5608:   return 0;
                   5609: }
                   5610: _ACEOF
1.15      bertrand 5611: if ac_fn_c_try_link "$LINENO"; then :
                   5612:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5613: else
1.15      bertrand 5614:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5615: fi
                   5616: rm -f core conftest.err conftest.$ac_objext \
                   5617:     conftest$ac_exeext conftest.$ac_ext
                   5618: LIBS=$ac_check_lib_save_LIBS
                   5619: fi
                   5620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5621: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.93      bertrand 5622: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15      bertrand 5623:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5624: fi
1.14      bertrand 5625: 
1.15      bertrand 5626:     fi
1.1       bertrand 5627: fi
1.15      bertrand 5628: rm -f core conftest.err conftest.$ac_objext \
                   5629:     conftest$ac_exeext conftest.$ac_ext
                   5630:     LIBS="$ac_xsave_LIBS"
                   5631: 
                   5632:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5633:     # to get the SysV transport functions.
                   5634:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5635:     # needs -lnsl.
                   5636:     # The nsl library prevents programs from opening the X display
                   5637:     # on Irix 5.2, according to T.E. Dickey.
                   5638:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5639:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5640:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.93      bertrand 5641: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1       bertrand 5642: 
                   5643: fi
                   5644: 
1.15      bertrand 5645:     if test $ac_cv_func_gethostbyname = no; then
                   5646:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5647: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.93      bertrand 5648: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15      bertrand 5649:   $as_echo_n "(cached) " >&6
1.1       bertrand 5650: else
1.15      bertrand 5651:   ac_check_lib_save_LIBS=$LIBS
                   5652: LIBS="-lnsl  $LIBS"
                   5653: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5654: /* end confdefs.h.  */
1.15      bertrand 5655: 
                   5656: /* Override any GCC internal prototype to avoid an error.
                   5657:    Use char because int might match the return type of a GCC
                   5658:    builtin and then its argument prototype would still apply.  */
                   5659: #ifdef __cplusplus
                   5660: extern "C"
                   5661: #endif
                   5662: char gethostbyname ();
1.1       bertrand 5663: int
                   5664: main ()
                   5665: {
1.15      bertrand 5666: return gethostbyname ();
1.1       bertrand 5667:   ;
                   5668:   return 0;
                   5669: }
                   5670: _ACEOF
1.15      bertrand 5671: if ac_fn_c_try_link "$LINENO"; then :
                   5672:   ac_cv_lib_nsl_gethostbyname=yes
                   5673: else
                   5674:   ac_cv_lib_nsl_gethostbyname=no
                   5675: fi
                   5676: rm -f core conftest.err conftest.$ac_objext \
                   5677:     conftest$ac_exeext conftest.$ac_ext
                   5678: LIBS=$ac_check_lib_save_LIBS
                   5679: fi
                   5680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5681: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.93      bertrand 5682: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15      bertrand 5683:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5684: fi
                   5685: 
                   5686:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5687:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5688: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.93      bertrand 5689: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15      bertrand 5690:   $as_echo_n "(cached) " >&6
                   5691: else
                   5692:   ac_check_lib_save_LIBS=$LIBS
                   5693: LIBS="-lbsd  $LIBS"
                   5694: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5695: /* end confdefs.h.  */
1.15      bertrand 5696: 
                   5697: /* Override any GCC internal prototype to avoid an error.
                   5698:    Use char because int might match the return type of a GCC
                   5699:    builtin and then its argument prototype would still apply.  */
                   5700: #ifdef __cplusplus
                   5701: extern "C"
                   5702: #endif
                   5703: char gethostbyname ();
1.1       bertrand 5704: int
                   5705: main ()
                   5706: {
1.15      bertrand 5707: return gethostbyname ();
1.1       bertrand 5708:   ;
                   5709:   return 0;
                   5710: }
                   5711: _ACEOF
1.15      bertrand 5712: if ac_fn_c_try_link "$LINENO"; then :
                   5713:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5714: else
1.15      bertrand 5715:   ac_cv_lib_bsd_gethostbyname=no
                   5716: fi
                   5717: rm -f core conftest.err conftest.$ac_objext \
                   5718:     conftest$ac_exeext conftest.$ac_ext
                   5719: LIBS=$ac_check_lib_save_LIBS
                   5720: fi
                   5721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5722: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.93      bertrand 5723: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15      bertrand 5724:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5725: fi
                   5726: 
                   5727:       fi
                   5728:     fi
                   5729: 
                   5730:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5731:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5732:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5733:     # on later versions), says Simon Leinen: it contains gethostby*
                   5734:     # variants that don't use the name server (or something).  -lsocket
                   5735:     # must be given before -lnsl if both are needed.  We assume that
                   5736:     # if connect needs -lnsl, so does gethostbyname.
                   5737:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.93      bertrand 5738: if test "x$ac_cv_func_connect" = xyes; then :
1.14      bertrand 5739: 
1.1       bertrand 5740: fi
                   5741: 
1.15      bertrand 5742:     if test $ac_cv_func_connect = no; then
                   5743:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5744: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.93      bertrand 5745: if ${ac_cv_lib_socket_connect+:} false; then :
1.15      bertrand 5746:   $as_echo_n "(cached) " >&6
1.14      bertrand 5747: else
1.15      bertrand 5748:   ac_check_lib_save_LIBS=$LIBS
                   5749: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5750: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5751: /* end confdefs.h.  */
1.1       bertrand 5752: 
1.15      bertrand 5753: /* Override any GCC internal prototype to avoid an error.
                   5754:    Use char because int might match the return type of a GCC
                   5755:    builtin and then its argument prototype would still apply.  */
                   5756: #ifdef __cplusplus
                   5757: extern "C"
                   5758: #endif
                   5759: char connect ();
1.14      bertrand 5760: int
                   5761: main ()
                   5762: {
1.15      bertrand 5763: return connect ();
1.14      bertrand 5764:   ;
                   5765:   return 0;
                   5766: }
                   5767: _ACEOF
1.15      bertrand 5768: if ac_fn_c_try_link "$LINENO"; then :
                   5769:   ac_cv_lib_socket_connect=yes
                   5770: else
                   5771:   ac_cv_lib_socket_connect=no
                   5772: fi
                   5773: rm -f core conftest.err conftest.$ac_objext \
                   5774:     conftest$ac_exeext conftest.$ac_ext
                   5775: LIBS=$ac_check_lib_save_LIBS
                   5776: fi
                   5777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5778: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.93      bertrand 5779: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15      bertrand 5780:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5781: fi
                   5782: 
                   5783:     fi
                   5784: 
                   5785:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5786:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.93      bertrand 5787: if test "x$ac_cv_func_remove" = xyes; then :
1.15      bertrand 5788: 
                   5789: fi
                   5790: 
                   5791:     if test $ac_cv_func_remove = no; then
                   5792:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5793: $as_echo_n "checking for remove in -lposix... " >&6; }
1.93      bertrand 5794: if ${ac_cv_lib_posix_remove+:} false; then :
1.15      bertrand 5795:   $as_echo_n "(cached) " >&6
                   5796: else
                   5797:   ac_check_lib_save_LIBS=$LIBS
                   5798: LIBS="-lposix  $LIBS"
                   5799: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5800: /* end confdefs.h.  */
1.15      bertrand 5801: 
                   5802: /* Override any GCC internal prototype to avoid an error.
                   5803:    Use char because int might match the return type of a GCC
                   5804:    builtin and then its argument prototype would still apply.  */
                   5805: #ifdef __cplusplus
                   5806: extern "C"
                   5807: #endif
                   5808: char remove ();
1.1       bertrand 5809: int
                   5810: main ()
                   5811: {
1.15      bertrand 5812: return remove ();
1.1       bertrand 5813:   ;
                   5814:   return 0;
                   5815: }
                   5816: _ACEOF
1.15      bertrand 5817: if ac_fn_c_try_link "$LINENO"; then :
                   5818:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5819: else
1.15      bertrand 5820:   ac_cv_lib_posix_remove=no
                   5821: fi
                   5822: rm -f core conftest.err conftest.$ac_objext \
                   5823:     conftest$ac_exeext conftest.$ac_ext
                   5824: LIBS=$ac_check_lib_save_LIBS
                   5825: fi
                   5826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5827: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.93      bertrand 5828: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15      bertrand 5829:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5830: fi
1.1       bertrand 5831: 
1.15      bertrand 5832:     fi
1.14      bertrand 5833: 
1.15      bertrand 5834:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5835:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.93      bertrand 5836: if test "x$ac_cv_func_shmat" = xyes; then :
1.14      bertrand 5837: 
                   5838: fi
                   5839: 
1.15      bertrand 5840:     if test $ac_cv_func_shmat = no; then
                   5841:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5842: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.93      bertrand 5843: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15      bertrand 5844:   $as_echo_n "(cached) " >&6
                   5845: else
                   5846:   ac_check_lib_save_LIBS=$LIBS
                   5847: LIBS="-lipc  $LIBS"
                   5848: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5849: /* end confdefs.h.  */
1.15      bertrand 5850: 
                   5851: /* Override any GCC internal prototype to avoid an error.
                   5852:    Use char because int might match the return type of a GCC
                   5853:    builtin and then its argument prototype would still apply.  */
                   5854: #ifdef __cplusplus
                   5855: extern "C"
                   5856: #endif
                   5857: char shmat ();
1.1       bertrand 5858: int
                   5859: main ()
                   5860: {
1.15      bertrand 5861: return shmat ();
1.1       bertrand 5862:   ;
                   5863:   return 0;
                   5864: }
                   5865: _ACEOF
1.15      bertrand 5866: if ac_fn_c_try_link "$LINENO"; then :
                   5867:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5868: else
1.15      bertrand 5869:   ac_cv_lib_ipc_shmat=no
                   5870: fi
                   5871: rm -f core conftest.err conftest.$ac_objext \
                   5872:     conftest$ac_exeext conftest.$ac_ext
                   5873: LIBS=$ac_check_lib_save_LIBS
                   5874: fi
                   5875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5876: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.93      bertrand 5877: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15      bertrand 5878:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5879: fi
1.14      bertrand 5880: 
1.15      bertrand 5881:     fi
                   5882:   fi
1.1       bertrand 5883: 
1.15      bertrand 5884:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5885:   ac_save_LDFLAGS=$LDFLAGS
                   5886:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5887:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5888:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5889:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5890:   # These have to be linked with before -lX11, unlike the other
                   5891:   # libraries we check for below, so use a different variable.
                   5892:   # John Interrante, Karl Berry
                   5893:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5894: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.93      bertrand 5895: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15      bertrand 5896:   $as_echo_n "(cached) " >&6
1.1       bertrand 5897: else
1.15      bertrand 5898:   ac_check_lib_save_LIBS=$LIBS
                   5899: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5900: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5901: /* end confdefs.h.  */
1.15      bertrand 5902: 
                   5903: /* Override any GCC internal prototype to avoid an error.
                   5904:    Use char because int might match the return type of a GCC
                   5905:    builtin and then its argument prototype would still apply.  */
                   5906: #ifdef __cplusplus
                   5907: extern "C"
                   5908: #endif
                   5909: char IceConnectionNumber ();
1.1       bertrand 5910: int
                   5911: main ()
                   5912: {
1.15      bertrand 5913: return IceConnectionNumber ();
1.1       bertrand 5914:   ;
                   5915:   return 0;
                   5916: }
                   5917: _ACEOF
1.15      bertrand 5918: if ac_fn_c_try_link "$LINENO"; then :
                   5919:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5920: else
1.15      bertrand 5921:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5922: fi
                   5923: rm -f core conftest.err conftest.$ac_objext \
                   5924:     conftest$ac_exeext conftest.$ac_ext
                   5925: LIBS=$ac_check_lib_save_LIBS
                   5926: fi
                   5927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5928: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.93      bertrand 5929: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15      bertrand 5930:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5931: fi
                   5932: 
                   5933:   LDFLAGS=$ac_save_LDFLAGS
                   5934: 
                   5935: fi
                   5936: 
1.14      bertrand 5937: 
1.15      bertrand 5938: if test "$ac_x_includes" != "no"; then
                   5939:    if test x"$ac_x_includes" != x; then
                   5940:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5941:        includeX="-I$ac_x_includes"
                   5942:    fi
1.1       bertrand 5943: fi
1.15      bertrand 5944: if test "$ac_x_libraries" != "no"; then
                   5945:    if test x"$ac_x_libraries" != x; then
                   5946:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5947:    fi
1.1       bertrand 5948: fi
1.15      bertrand 5949: 
1.64      bertrand 5950: 
1.69      bertrand 5951: # Check whether --with-32bits-abi was given.
                   5952: if test "${with_32bits_abi+set}" = set; then :
                   5953:   withval=$with_32bits_abi;
1.64      bertrand 5954: if test "$with-32bits-abi" = "no"; then
1.66      bertrand 5955:    ABI=
1.64      bertrand 5956: else
1.65      bertrand 5957:    ABI=-m32
                   5958: fi
1.64      bertrand 5959: else
                   5960: 
1.68      bertrand 5961:    ABI=
1.64      bertrand 5962: 
                   5963: 
                   5964: fi
                   5965: 
                   5966: 
1.68      bertrand 5967: if test x$ABI = x; then
1.66      bertrand 5968: 
1.69      bertrand 5969: # Check whether --with-64bits-abi was given.
                   5970: if test "${with_64bits_abi+set}" = set; then :
                   5971:   withval=$with_64bits_abi;
1.67      bertrand 5972: if test "$with-64bits-abi" = "no"; then
                   5973:    ABI=
                   5974: else
                   5975:    ABI=-m64
                   5976: fi
                   5977: else
                   5978: 
1.68      bertrand 5979:    ABI=
1.67      bertrand 5980: 
                   5981: 
                   5982: fi
                   5983: 
1.68      bertrand 5984: fi
1.67      bertrand 5985: 
1.69      bertrand 5986: LDFLAGS="$LDFLAGS $ABI"
                   5987: 
1.91      bertrand 5988: # Check whether --enable-recursive was given.
                   5989: if test "${enable_recursive+set}" = set; then :
                   5990:   enableval=$enable_recursive;
                   5991: if test "$enableval" = "yes"; then
                   5992:    RECURSIVE=yes
                   5993: else
                   5994:    RECURSIVE=no
                   5995: fi
                   5996: else
                   5997: 
                   5998:    RECURSIVE=yes
                   5999: 
                   6000: 
                   6001: fi
                   6002: 
                   6003: 
1.67      bertrand 6004: 
1.88      bertrand 6005: # Check whether --with-rpltools was given.
                   6006: if test "${with_rpltools+set}" = set; then :
                   6007:   withval=$with_rpltools;
                   6008: if test "$with_rpltools" = "no" -o "$with_rpltools" = yes; then
                   6009:    as_fn_error $? "You have to specify rpltools path !" "$LINENO" 5
                   6010: else
                   6011:    RPLTOOLS=$with_rpltools
                   6012: fi
                   6013: else
                   6014: 
                   6015:    RPLTOOLS=\$\(top_builddir\)
                   6016: 
                   6017: 
                   6018: fi
                   6019: 
                   6020: 
                   6021: 
                   6022: 
                   6023: # Check whether --enable-rplcas was given.
                   6024: if test "${enable_rplcas+set}" = set; then :
                   6025:   enableval=$enable_rplcas;
                   6026: if test "$enableval" = "no"; then
1.67      bertrand 6027:    RPLCAS=-URPLCAS
                   6028:    LIBRPLCAS=
                   6029: else
                   6030:    RPLCAS=-DRPLCAS
                   6031:    LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
                   6032: fi
                   6033: else
                   6034: 
                   6035:    RPLCAS=-URPLCAS
                   6036:    LIBRPLCAS=
                   6037: 
                   6038: 
                   6039: fi
                   6040: 
                   6041: 
                   6042: 
                   6043: 
                   6044: 
1.65      bertrand 6045: 
1.15      bertrand 6046: # Check whether --enable-optimization was given.
                   6047: if test "${enable_optimization+set}" = set; then :
                   6048:   enableval=$enable_optimization;
                   6049: if test "$enableval" = "no"; then
1.69      bertrand 6050:    CFLAGS=$ABI
                   6051:    FFLAGS=$ABI
                   6052:    CXXFLAGS=$ABI
                   6053:    FCFLAGS=$ABI
                   6054: else
                   6055:    CFLAGS="$CFLAGS $ABI $enable_optimization"
                   6056:    FFLAGS="$FFLAGS $ABI $enable_optimization"
                   6057:    CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
                   6058:    FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1       bertrand 6059: fi
1.15      bertrand 6060: else
1.14      bertrand 6061: 
1.69      bertrand 6062:    CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
                   6063:    FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
                   6064:    CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
                   6065:    FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1       bertrand 6066: 
                   6067: 
1.15      bertrand 6068: fi
1.1       bertrand 6069: 
                   6070: 
1.91      bertrand 6071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable shared memory" >&5
                   6072: $as_echo_n "checking for usable shared memory... " >&6; }
                   6073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6074: /* end confdefs.h.  */
                   6075: #include <sys/shm.h>
                   6076: 
                   6077: int
                   6078: main ()
                   6079: {
                   6080:  return(0);
                   6081:   ;
                   6082:   return 0;
                   6083: }
                   6084: _ACEOF
                   6085: if ac_fn_c_try_compile "$LINENO"; then :
                   6086:   SHARED_MEMORY=-DSHARED_MEMORY; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6087: $as_echo "yes" >&6; }
                   6088: else
                   6089:   SHARED_MEMORY=-USHARED_MEMORY; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6090: $as_echo "no" >&6; }
                   6091: 
                   6092: fi
                   6093: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6094: 
                   6095: 
                   6096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect" >&5
                   6097: $as_echo_n "checking for pselect... " >&6; }
1.92      bertrand 6098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.91      bertrand 6099: /* end confdefs.h.  */
                   6100: #include <sys/select.h>
                   6101:     #include <unistd.h>
                   6102:     #include <sys/time.h>
                   6103:     #include <sys/types.h>
                   6104: 
                   6105: int
                   6106: main ()
                   6107: {
                   6108: 
                   6109:     struct timespec tv;
                   6110:     fd_set s1, s2, s3;
                   6111:     tv.tv_sec=1;
                   6112:     tv.tv_nsec=0;
                   6113:     FD_SET(1, &s1); FD_SET(2, &s2); FD_SET(3, &s3);
                   6114:     pselect(5, &s1, &s2, &s3, &tv, NULL);
                   6115:     return(0);
                   6116: 
                   6117:   ;
                   6118:   return 0;
                   6119: }
                   6120: _ACEOF
1.92      bertrand 6121: if ac_fn_c_try_compile "$LINENO"; then :
1.91      bertrand 6122:   PSELECT=-DPSELECT; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6123: $as_echo "yes" >&6; }
                   6124: else
                   6125:   PSELECT=-UPSELECT; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6126: $as_echo "no" >&6; }
                   6127: 
                   6128: fi
1.92      bertrand 6129: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.91      bertrand 6130: 
                   6131: 
1.87      bertrand 6132: # Check whether --enable-sysv-ipcs was given.
                   6133: if test "${enable_sysv_ipcs+set}" = set; then :
                   6134:   enableval=$enable_sysv_ipcs;
1.36      bertrand 6135: if test "$enableval" = "no"; then
1.88      bertrand 6136:    IPCS_SYSV=-UIPCS_SYSV
                   6137:    POSIX_IPCS=no
1.36      bertrand 6138: else
1.88      bertrand 6139:    IPCS_SYSV=-DIPCS_SYSV
                   6140:    POSIX_IPCS=yes
1.36      bertrand 6141: fi
                   6142: else
1.85      bertrand 6143:   REG=$LDFLAGS
1.88      bertrand 6144: POSIX_IPCS=guessed
1.85      bertrand 6145: LDFLAGS=-lrt
                   6146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores and shared objects" >&5
                   6147: $as_echo_n "checking for POSIX semaphores and shared objects... " >&6; }
                   6148: if test "$cross_compiling" = yes; then :
                   6149:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6150: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6151: as_fn_error $? "cannot run test program while cross compiling
1.93      bertrand 6152: See \`config.log' for more details" "$LINENO" 5; }
1.85      bertrand 6153: else
                   6154:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.81      bertrand 6155: /* end confdefs.h.  */
                   6156: #include <sys/mman.h>
                   6157: #include <sys/stat.h>
                   6158: #include <fcntl.h>
1.82      bertrand 6159: 
1.81      bertrand 6160: int
                   6161: main ()
                   6162: {
1.85      bertrand 6163:  int fd; char *sem = "/test";
1.81      bertrand 6164: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
                   6165:   close(fd);
                   6166:   shm_unlink(sem);
1.85      bertrand 6167:   fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
                   6168:   close(fd);
                   6169:   sem_unlink(sem);
1.81      bertrand 6170:   return(0);
                   6171: 
                   6172:   ;
                   6173:   return 0;
                   6174: }
                   6175: _ACEOF
1.85      bertrand 6176: if ac_fn_c_try_run "$LINENO"; then :
1.81      bertrand 6177:   IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6178: $as_echo "yes" >&6; }
                   6179: else
                   6180:   IPCS_SYSV=-DIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6181: $as_echo "no" >&6; }
                   6182: 
                   6183: fi
1.85      bertrand 6184: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6185:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6186: fi
                   6187: 
                   6188: LDFLAGS=$REG
1.81      bertrand 6189: 
1.36      bertrand 6190: fi
                   6191: 
                   6192: 
1.88      bertrand 6193: if test "$IPCS_SYSV" = "-UIPCS_SYSV" -a "$POSIX_IPCS" = "guessed"; then
1.81      bertrand 6194: REG=$LDFLAGS
                   6195: LDFLAGS=-pthread
1.83      bertrand 6196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5
                   6197: $as_echo_n "checking for POSIX anonymous semaphores... " >&6; }
                   6198: if test "$cross_compiling" = yes; then :
                   6199:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6200: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6201: as_fn_error $? "cannot run test program while cross compiling
1.93      bertrand 6202: See \`config.log' for more details" "$LINENO" 5; }
1.83      bertrand 6203: else
                   6204:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6205: /* end confdefs.h.  */
                   6206: #include <semaphore.h>
                   6207: 
                   6208: int
                   6209: main ()
                   6210: {
                   6211:  sem_t sem;
1.81      bertrand 6212:  if (sem_init(&sem, 1, 0) != 0) return(1);
                   6213:  sem_destroy(&sem);
                   6214:   return(0);
1.83      bertrand 6215: 
                   6216:   ;
                   6217:   return 0;
                   6218: }
                   6219: _ACEOF
                   6220: if ac_fn_c_try_run "$LINENO"; then :
                   6221:   SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6222: $as_echo "yes" >&6; }
                   6223: else
                   6224:   SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6225: $as_echo "no" >&6; }
                   6226: 
                   6227: fi
                   6228: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6229:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6230: fi
                   6231: 
1.81      bertrand 6232: LDFLAGS=$REG
                   6233: REG=""
                   6234: else
                   6235:    SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   6236: fi
                   6237: 
1.30      bertrand 6238: # Check whether --enable-full-static was given.
                   6239: if test "${enable_full_static+set}" = set; then :
                   6240:   enableval=$enable_full_static;
                   6241: if test "$enableval" = "no"; then
                   6242:    STATIC=no
                   6243: else
                   6244:    STATIC=yes
                   6245: fi
                   6246: else
                   6247:   STATIC=no
                   6248: fi
                   6249: 
                   6250: 
1.15      bertrand 6251: # Check whether --enable-final-encoding was given.
                   6252: if test "${enable_final_encoding+set}" = set; then :
                   6253:   enableval=$enable_final_encoding;
                   6254: if test "$enableval" = "no"; then
                   6255:    FINAL_ENCODING="\$(shell locale charmap | \
                   6256:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 6257:    FORCED_FINAL_ENCODING=0
1.1       bertrand 6258: else
1.15      bertrand 6259:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 6260:    FORCED_FINAL_ENCODING=1
1.15      bertrand 6261: fi
1.1       bertrand 6262: else
1.35      bertrand 6263: 
                   6264: FORCED_FINAL_ENCODING=0
                   6265: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 6266:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   6267: fi
                   6268: 
1.14      bertrand 6269: 
1.15      bertrand 6270: # Check whether --enable-tex was given.
                   6271: if test "${enable_tex+set}" = set; then :
                   6272:   enableval=$enable_tex;
                   6273: if test "$enableval" = "no"; then
                   6274:    TEX_SUPPORT=no
                   6275: else
                   6276:    TEX_SUPPORT=yes
1.1       bertrand 6277: fi
1.15      bertrand 6278: else
                   6279:   TEX_SUPPORT=guessed
                   6280: fi
                   6281: 
1.14      bertrand 6282: 
1.15      bertrand 6283: # Check whether --enable-vim was given.
                   6284: if test "${enable_vim+set}" = set; then :
                   6285:   enableval=$enable_vim;
                   6286: if test "$enableval" = "no"; then
                   6287:    VIM_SUPPORT=no
                   6288: else
                   6289:    VIM_SUPPORT=yes
                   6290: fi
                   6291: else
                   6292:   VIM_SUPPORT=guessed
1.1       bertrand 6293: fi
                   6294: 
1.15      bertrand 6295: 
                   6296: # Check whether --enable-embedded-gnuplot was given.
                   6297: if test "${enable_embedded_gnuplot+set}" = set; then :
                   6298:   enableval=$enable_embedded_gnuplot;
                   6299: if test "$enableval" = "no"; then
                   6300:    MYGNUPLOT=no
                   6301: else
                   6302:    MYGNUPLOT=yes
                   6303: fi
1.1       bertrand 6304: else
                   6305: 
1.15      bertrand 6306: MYGNUPLOT=yes
                   6307: fi
                   6308: 
1.14      bertrand 6309: 
1.15      bertrand 6310: # Check whether --enable-gnuplot was given.
                   6311: if test "${enable_gnuplot+set}" = set; then :
                   6312:   enableval=$enable_gnuplot;
                   6313: if test "$enableval" = "no"; then
                   6314:    GNUPLOT_SUPPORT=no
                   6315:    MYGNUPLOT=no
                   6316:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6317: else
                   6318:    GNUPLOT_SUPPORT=yes
                   6319:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6320: fi
1.1       bertrand 6321: else
                   6322: 
1.15      bertrand 6323: if test "$MYGNUPLOT" = "yes"; then
                   6324:    GNUPLOT_SUPPORT=yes
                   6325:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6326: else
                   6327:    GNUPLOT_SUPPORT=guessed
                   6328:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6329: fi
1.1       bertrand 6330: fi
                   6331: 
1.15      bertrand 6332: 
1.80      bertrand 6333: libX=""
                   6334: LIBMOTIF=""
                   6335: INCMOTIF=""
                   6336: BUILD_OPENMOTIF=""
                   6337: 
1.15      bertrand 6338: # Check whether --enable-motif was given.
                   6339: if test "${enable_motif+set}" = set; then :
                   6340:   enableval=$enable_motif;
                   6341: if test "$enableval" = "no"; then
                   6342:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6343: else
1.80      bertrand 6344:    MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6345: fi
1.1       bertrand 6346: else
1.80      bertrand 6347:   if test "$have_x" == "yes"; then
                   6348:    MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.15      bertrand 6349: else
1.80      bertrand 6350:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.15      bertrand 6351: fi
                   6352: fi
1.14      bertrand 6353: 
1.80      bertrand 6354: 
                   6355: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6356:    libX="$X_LIBS -lXt -lX11"
                   6357:    LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \
                   6358:            \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
                   6359:    INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
                   6360:            -I\$(top_builddir)/tools/$OPENMOTIF/lib \
1.92      bertrand 6361:            -I\$(top_srcdir)/tools/$LIBXPM/include"
1.80      bertrand 6362:    BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
                   6363: 
1.91      bertrand 6364:    if test $RECURSIVE = yes; then
                   6365: 
1.80      bertrand 6366: 
                   6367: subdirs="$subdirs tools/$LIBXPM"
                   6368: 
1.91      bertrand 6369:        subdirs="$subdirs tools/$OPENMOTIF"
1.80      bertrand 6370: 
1.91      bertrand 6371:    fi;
1.1       bertrand 6372: fi
                   6373: 
1.15      bertrand 6374: # Check whether --enable-experimental was given.
                   6375: if test "${enable_experimental+set}" = set; then :
                   6376:   enableval=$enable_experimental;
                   6377: if test "$enableval" = "no"; then
                   6378:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6379: else
                   6380:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6381: fi
1.14      bertrand 6382: else
1.15      bertrand 6383:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6384: fi
                   6385: 
1.1       bertrand 6386: 
1.15      bertrand 6387: # Check whether --enable-debug was given.
                   6388: if test "${enable_debug+set}" = set; then :
                   6389:   enableval=$enable_debug;
                   6390: if test "$enableval" = "no"; then
1.24      bertrand 6391:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6392: else
1.24      bertrand 6393:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6394: fi
                   6395: else
1.24      bertrand 6396:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6397: fi
1.1       bertrand 6398: 
1.15      bertrand 6399: 
                   6400: # Check whether --enable-profile was given.
                   6401: if test "${enable_profile+set}" = set; then :
                   6402:   enableval=$enable_profile;
                   6403: if test "$enableval" = "no"; then
                   6404:    PROFILAGE=""
                   6405: else
                   6406:    PROFILAGE="-pg"
                   6407: fi
                   6408: else
                   6409:   PROFILAGE=""
1.1       bertrand 6410: fi
                   6411: 
1.14      bertrand 6412: 
                   6413: 
1.15      bertrand 6414: 
                   6415: if test ! -d tools; then
                   6416:    mkdir tools
                   6417: fi
                   6418: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6419:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6420:            (cd "$srcdir/tools" && tar -xf -)
1.51      bertrand 6421:    (cd "$srcdir/tools/"$NCURSES && \
                   6422:            for i in ../$NCURSES*.patch.gz;
                   6423:            do gunzip -c $i | patch -p1;
                   6424:            done);
1.15      bertrand 6425: fi
                   6426: if test ! -d "$srcdir"/tools/$READLINE; then
                   6427:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6428:            (cd "$srcdir/tools" && tar -xf -)
                   6429: fi
                   6430: if test ! -d "$srcdir"/tools/$UNITS; then
                   6431:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6432:            (cd "$srcdir/tools" && tar -xf -)
                   6433: fi
                   6434: if test ! -d "$srcdir"/tools/$GSL; then
                   6435:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6436:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6437:    if test $(uname) = "OS/2"; then
                   6438:        (cd "$srcdir"/tools/$GSL; \
                   6439:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6440:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6441:                \mv -f $TMP ltmain.sh)
                   6442:    fi
1.15      bertrand 6443: fi
                   6444: if test ! -d "$srcdir"/tools/$GPP; then
                   6445:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6446:            (cd "$srcdir/tools" && tar -xf -)
                   6447: fi
                   6448: if test ! -d "$srcdir"/tools/$FILE; then
                   6449:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6450:            (cd "$srcdir/tools" && tar -xf - )
                   6451:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6452: fi
                   6453: if test ! -d "$srcdir"/tools/$ICONV; then
                   6454:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6455:            (cd "$srcdir/tools" && tar -xf -)
                   6456: fi
                   6457: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6458:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6459:            (cd "$srcdir/tools" && tar -xf -)
                   6460: fi
1.76      bertrand 6461: if test ! -d "$srcdir"/tools/$SIGSEGV; then
                   6462:    gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
                   6463:            (cd "$srcdir/tools" && tar -xf -)
                   6464: fi
1.80      bertrand 6465: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
                   6466:    gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
                   6467:            (cd "$srcdir/tools" && tar -xf -)
                   6468: fi
                   6469: if test ! -d "$srcdir"/tools/$LIBXPM; then
                   6470:    gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
                   6471:            (cd "$srcdir/tools" && tar -xf -)
                   6472: fi
1.15      bertrand 6473: if test ! -d tools/$OPENSSL; then
                   6474:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6475:            (cd tools && tar -xf -)
1.1       bertrand 6476: fi
1.55      bertrand 6477: if test ! -d rplcas; then
                   6478:    mkdir rplcas
                   6479: fi
                   6480: if test ! -d "$srcdir"/rplcas/$GMP; then
                   6481:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                   6482:            (cd "$srcdir/rplcas" && tar -xf -)
                   6483: fi
                   6484: if test ! -d "$srcdir"/rplcas/$MPFR; then
                   6485:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                   6486:            (cd "$srcdir/rplcas" && tar -xf -)
                   6487: fi
1.56      bertrand 6488: if test ! -d rplcas/$NTL; then
                   6489:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
                   6490:            (cd rplcas && tar -xf -)
                   6491: fi
                   6492: if test ! -d rplcas/$COCOA; then
                   6493:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
                   6494:            (cd rplcas && tar -xf -)
                   6495: fi
                   6496: if test ! -d rplcas/$PARI; then
                   6497:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
                   6498:            (cd rplcas && tar -xf -)
                   6499: fi
                   6500: if test ! -d "$srcdir"/rplcas/$GIAC; then
                   6501:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
                   6502:            (cd "$srcdir/rplcas" && tar -xf -)
                   6503: fi
1.1       bertrand 6504: 
1.84      bertrand 6505: touch tools/openmotif.lib
                   6506: 
1.1       bertrand 6507: 
                   6508: 
1.15      bertrand 6509: # Check whether --enable-final-run-path was given.
                   6510: if test "${enable_final_run_path+set}" = set; then :
                   6511:   enableval=$enable_final_run_path;
                   6512:    if test "x$enable_final_run_path" = "x"; then
                   6513:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6514: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6515:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6516:    else
                   6517:        RUNPATH="$enable_final_run_path"
                   6518:    fi
1.1       bertrand 6519: 
                   6520: else
1.15      bertrand 6521:   RUNPATH="\${prefix}"
1.1       bertrand 6522: 
                   6523: fi
                   6524: 
1.15      bertrand 6525: 
                   6526: 
                   6527: 
                   6528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6529: $as_echo_n "checking whether ln -s works... " >&6; }
                   6530: LN_S=$as_ln_s
                   6531: if test "$LN_S" = "ln -s"; then
                   6532:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6533: $as_echo "yes" >&6; }
                   6534: else
                   6535:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6536: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6537: fi
                   6538: 
1.15      bertrand 6539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6540: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6541: set x ${MAKE-make}
                   6542: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.93      bertrand 6543: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 6544:   $as_echo_n "(cached) " >&6
1.1       bertrand 6545: else
1.15      bertrand 6546:   cat >conftest.make <<\_ACEOF
                   6547: SHELL = /bin/sh
                   6548: all:
                   6549:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6550: _ACEOF
1.36      bertrand 6551: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6552: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6553:   *@@@%%%=?*=@@@%%%*)
                   6554:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6555:   *)
                   6556:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6557: esac
1.15      bertrand 6558: rm -f conftest.make
                   6559: fi
                   6560: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6561:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6562: $as_echo "yes" >&6; }
                   6563:   SET_MAKE=
                   6564: else
                   6565:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6566: $as_echo "no" >&6; }
                   6567:   SET_MAKE="MAKE=${MAKE-make}"
                   6568: fi
1.1       bertrand 6569: 
1.15      bertrand 6570: if test -n "$ac_tool_prefix"; then
                   6571:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6572: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6574: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 6575: if ${ac_cv_prog_RANLIB+:} false; then :
1.15      bertrand 6576:   $as_echo_n "(cached) " >&6
                   6577: else
                   6578:   if test -n "$RANLIB"; then
                   6579:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6580: else
1.15      bertrand 6581: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6582: for as_dir in $PATH
                   6583: do
                   6584:   IFS=$as_save_IFS
                   6585:   test -z "$as_dir" && as_dir=.
                   6586:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6587:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6588:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6589:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6590:     break 2
                   6591:   fi
                   6592: done
                   6593:   done
                   6594: IFS=$as_save_IFS
1.1       bertrand 6595: 
                   6596: fi
1.15      bertrand 6597: fi
                   6598: RANLIB=$ac_cv_prog_RANLIB
                   6599: if test -n "$RANLIB"; then
                   6600:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6601: $as_echo "$RANLIB" >&6; }
                   6602: else
                   6603:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6604: $as_echo "no" >&6; }
                   6605: fi
                   6606: 
1.1       bertrand 6607: 
1.15      bertrand 6608: fi
                   6609: if test -z "$ac_cv_prog_RANLIB"; then
                   6610:   ac_ct_RANLIB=$RANLIB
                   6611:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6612: set dummy ranlib; ac_word=$2
                   6613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6614: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 6615: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15      bertrand 6616:   $as_echo_n "(cached) " >&6
                   6617: else
                   6618:   if test -n "$ac_ct_RANLIB"; then
                   6619:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6620: else
                   6621: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6622: for as_dir in $PATH
                   6623: do
                   6624:   IFS=$as_save_IFS
                   6625:   test -z "$as_dir" && as_dir=.
                   6626:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6627:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6628:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6629:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6630:     break 2
                   6631:   fi
                   6632: done
1.14      bertrand 6633:   done
1.15      bertrand 6634: IFS=$as_save_IFS
                   6635: 
                   6636: fi
                   6637: fi
                   6638: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6639: if test -n "$ac_ct_RANLIB"; then
                   6640:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6641: $as_echo "$ac_ct_RANLIB" >&6; }
                   6642: else
                   6643:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6644: $as_echo "no" >&6; }
                   6645: fi
                   6646: 
                   6647:   if test "x$ac_ct_RANLIB" = x; then
                   6648:     RANLIB=":"
                   6649:   else
                   6650:     case $cross_compiling:$ac_tool_warned in
                   6651: yes:)
                   6652: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6653: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6654: ac_tool_warned=yes ;;
                   6655: esac
                   6656:     RANLIB=$ac_ct_RANLIB
                   6657:   fi
1.14      bertrand 6658: else
1.15      bertrand 6659:   RANLIB="$ac_cv_prog_RANLIB"
                   6660: fi
1.1       bertrand 6661: 
                   6662: 
1.15      bertrand 6663: # Extract the first word of "nawk", so it can be a program name with args.
                   6664: set dummy nawk; 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.93      bertrand 6667: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 6668:   $as_echo_n "(cached) " >&6
                   6669: else
                   6670:   if test -n "$AWK"; then
                   6671:   ac_cv_prog_AWK="$AWK" # 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_AWK="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_AWK" && ac_cv_prog_AWK="no"
                   6689: fi
                   6690: fi
                   6691: AWK=$ac_cv_prog_AWK
                   6692: if test -n "$AWK"; then
                   6693:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6694: $as_echo "$AWK" >&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
                   6699: 
1.1       bertrand 6700: 
1.15      bertrand 6701: if test "$AWK" = no; then
1.39      bertrand 6702:    # Extract the first word of "gawk", so it can be a program name with args.
                   6703: set dummy gawk; ac_word=$2
                   6704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6705: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 6706: if ${ac_cv_prog_AWK+:} false; then :
1.39      bertrand 6707:   $as_echo_n "(cached) " >&6
                   6708: else
                   6709:   if test -n "$AWK"; then
                   6710:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6711: else
                   6712: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6713: for as_dir in $PATH
                   6714: do
                   6715:   IFS=$as_save_IFS
                   6716:   test -z "$as_dir" && as_dir=.
                   6717:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6718:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6719:     ac_cv_prog_AWK="yes"
                   6720:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6721:     break 2
                   6722:   fi
                   6723: done
                   6724:   done
                   6725: IFS=$as_save_IFS
                   6726: 
                   6727:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6728: fi
                   6729: fi
                   6730: AWK=$ac_cv_prog_AWK
                   6731: if test -n "$AWK"; then
                   6732:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6733: $as_echo "$AWK" >&6; }
                   6734: else
                   6735:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6736: $as_echo "no" >&6; }
                   6737: fi
                   6738: 
                   6739: 
                   6740:    if test "$AWK" = no; then
                   6741:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6742:    fi
1.1       bertrand 6743: fi
                   6744: 
1.15      bertrand 6745: # Extract the first word of "sed", so it can be a program name with args.
                   6746: set dummy sed; ac_word=$2
                   6747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6748: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 6749: if ${ac_cv_prog_SED+:} false; then :
1.15      bertrand 6750:   $as_echo_n "(cached) " >&6
                   6751: else
                   6752:   if test -n "$SED"; then
                   6753:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6754: else
                   6755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6756: for as_dir in $PATH
                   6757: do
                   6758:   IFS=$as_save_IFS
                   6759:   test -z "$as_dir" && as_dir=.
                   6760:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6761:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6762:     ac_cv_prog_SED="yes"
                   6763:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6764:     break 2
                   6765:   fi
                   6766: done
1.14      bertrand 6767:   done
1.15      bertrand 6768: IFS=$as_save_IFS
1.1       bertrand 6769: 
1.15      bertrand 6770:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6771: fi
1.15      bertrand 6772: fi
                   6773: SED=$ac_cv_prog_SED
                   6774: if test -n "$SED"; then
                   6775:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6776: $as_echo "$SED" >&6; }
                   6777: else
                   6778:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6779: $as_echo "no" >&6; }
1.14      bertrand 6780: fi
1.1       bertrand 6781: 
                   6782: 
1.15      bertrand 6783: if test "$SED" = no; then
1.36      bertrand 6784:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6785: fi
1.14      bertrand 6786: 
1.15      bertrand 6787: if test "$TEX_SUPPORT" = guessed; then
                   6788:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6789: 
1.15      bertrand 6790:    # Extract the first word of "tex", so it can be a program name with args.
                   6791: set dummy tex; ac_word=$2
                   6792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6793: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 6794: if ${ac_cv_prog_TEX+:} false; then :
1.15      bertrand 6795:   $as_echo_n "(cached) " >&6
1.1       bertrand 6796: else
1.15      bertrand 6797:   if test -n "$TEX"; then
                   6798:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6799: else
1.15      bertrand 6800: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6801: for as_dir in $PATH
                   6802: do
                   6803:   IFS=$as_save_IFS
                   6804:   test -z "$as_dir" && as_dir=.
                   6805:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6806:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6807:     ac_cv_prog_TEX="yes"
                   6808:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6809:     break 2
                   6810:   fi
                   6811: done
                   6812:   done
                   6813: IFS=$as_save_IFS
1.1       bertrand 6814: 
1.15      bertrand 6815:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6816: fi
                   6817: fi
1.15      bertrand 6818: TEX=$ac_cv_prog_TEX
                   6819: if test -n "$TEX"; then
                   6820:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6821: $as_echo "$TEX" >&6; }
                   6822: else
                   6823:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6824: $as_echo "no" >&6; }
1.1       bertrand 6825: fi
1.14      bertrand 6826: 
                   6827: 
1.15      bertrand 6828:    if test "$TEX" = no; then
                   6829:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6830: Download at http://tex.loria.fr/
                   6831: " >&5
                   6832: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6833: Download at http://tex.loria.fr/
                   6834: " >&2;}
                   6835:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6836:    fi
1.14      bertrand 6837: 
1.15      bertrand 6838:    # Extract the first word of "latex", so it can be a program name with args.
                   6839: set dummy latex; ac_word=$2
                   6840: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6841: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 6842: if ${ac_cv_prog_LATEX+:} false; then :
1.15      bertrand 6843:   $as_echo_n "(cached) " >&6
1.1       bertrand 6844: else
1.15      bertrand 6845:   if test -n "$LATEX"; then
                   6846:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6847: else
1.15      bertrand 6848: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6849: for as_dir in $PATH
                   6850: do
                   6851:   IFS=$as_save_IFS
                   6852:   test -z "$as_dir" && as_dir=.
                   6853:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6854:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6855:     ac_cv_prog_LATEX="yes"
                   6856:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6857:     break 2
                   6858:   fi
                   6859: done
                   6860:   done
                   6861: IFS=$as_save_IFS
1.1       bertrand 6862: 
1.15      bertrand 6863:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6864: fi
                   6865: fi
1.15      bertrand 6866: LATEX=$ac_cv_prog_LATEX
                   6867: if test -n "$LATEX"; then
                   6868:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6869: $as_echo "$LATEX" >&6; }
                   6870: else
                   6871:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6872: $as_echo "no" >&6; }
                   6873: fi
1.14      bertrand 6874: 
1.1       bertrand 6875: 
1.15      bertrand 6876:    if test "$LATEX" = no; then
                   6877:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6878: Download at http://tex.loria.fr/
                   6879: " >&5
                   6880: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6881: Download at http://tex.loria.fr/
                   6882: " >&2;}
                   6883:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6884:    fi
1.1       bertrand 6885: 
1.15      bertrand 6886:    # Extract the first word of "dvips", so it can be a program name with args.
                   6887: set dummy dvips; ac_word=$2
                   6888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6889: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 6890: if ${ac_cv_prog_DVIPS+:} false; then :
1.15      bertrand 6891:   $as_echo_n "(cached) " >&6
                   6892: else
                   6893:   if test -n "$DVIPS"; then
                   6894:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6895: else
                   6896: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6897: for as_dir in $PATH
                   6898: do
                   6899:   IFS=$as_save_IFS
                   6900:   test -z "$as_dir" && as_dir=.
                   6901:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6902:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6903:     ac_cv_prog_DVIPS="yes"
                   6904:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6905:     break 2
                   6906:   fi
                   6907: done
                   6908:   done
                   6909: IFS=$as_save_IFS
1.1       bertrand 6910: 
1.15      bertrand 6911:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6912: fi
1.1       bertrand 6913: fi
1.15      bertrand 6914: DVIPS=$ac_cv_prog_DVIPS
                   6915: if test -n "$DVIPS"; then
                   6916:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6917: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6918: else
1.15      bertrand 6919:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6920: $as_echo "no" >&6; }
                   6921: fi
1.1       bertrand 6922: 
                   6923: 
1.15      bertrand 6924:    if test "$DVIPS" = no; then
                   6925:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6926: Download at http://tex.loria.fr/
                   6927: " >&5
                   6928: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6929: Download at http://tex.loria.fr/
                   6930: " >&2;}
                   6931:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6932:    fi
1.1       bertrand 6933: 
1.15      bertrand 6934:    # Extract the first word of "gs", so it can be a program name with args.
                   6935: set dummy gs; ac_word=$2
                   6936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6937: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 6938: if ${ac_cv_prog_GS+:} false; then :
1.15      bertrand 6939:   $as_echo_n "(cached) " >&6
                   6940: else
                   6941:   if test -n "$GS"; then
                   6942:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6943: else
1.15      bertrand 6944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6945: for as_dir in $PATH
                   6946: do
                   6947:   IFS=$as_save_IFS
                   6948:   test -z "$as_dir" && as_dir=.
                   6949:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6950:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6951:     ac_cv_prog_GS="yes"
                   6952:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6953:     break 2
                   6954:   fi
                   6955: done
                   6956:   done
                   6957: IFS=$as_save_IFS
1.1       bertrand 6958: 
1.15      bertrand 6959:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6960: fi
                   6961: fi
                   6962: GS=$ac_cv_prog_GS
                   6963: if test -n "$GS"; then
                   6964:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6965: $as_echo "$GS" >&6; }
                   6966: else
                   6967:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6968: $as_echo "no" >&6; }
1.1       bertrand 6969: fi
                   6970: 
1.15      bertrand 6971: 
                   6972:    if test "$GS" = no; then
                   6973:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6974: Download at http://ftp.lip6.fr/
                   6975: " >&5
                   6976: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6977: Download at http://ftp.lip6.fr/
                   6978: " >&2;}
                   6979:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6980:    fi
                   6981: 
                   6982:    # Extract the first word of "gv", so it can be a program name with args.
                   6983: set dummy gv; ac_word=$2
                   6984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6985: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 6986: if ${ac_cv_prog_GV+:} false; then :
1.15      bertrand 6987:   $as_echo_n "(cached) " >&6
                   6988: else
                   6989:   if test -n "$GV"; then
                   6990:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6991: else
                   6992: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6993: for as_dir in $PATH
                   6994: do
                   6995:   IFS=$as_save_IFS
                   6996:   test -z "$as_dir" && as_dir=.
                   6997:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6998:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6999:     ac_cv_prog_GV="yes"
                   7000:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7001:     break 2
                   7002:   fi
                   7003: done
1.14      bertrand 7004:   done
1.15      bertrand 7005: IFS=$as_save_IFS
1.1       bertrand 7006: 
1.15      bertrand 7007:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   7008: fi
1.1       bertrand 7009: fi
1.15      bertrand 7010: GV=$ac_cv_prog_GV
                   7011: if test -n "$GV"; then
                   7012:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   7013: $as_echo "$GV" >&6; }
                   7014: else
                   7015:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7016: $as_echo "no" >&6; }
1.1       bertrand 7017: fi
1.14      bertrand 7018: 
                   7019: 
1.15      bertrand 7020:    if test "$GV" = no; then
                   7021:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   7022: Download at http://ftp.lip6.fr/
                   7023: " >&5
                   7024: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   7025: Download at http://ftp.lip6.fr/
                   7026: " >&2;}
                   7027:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   7028:    fi
1.1       bertrand 7029: else
1.15      bertrand 7030:    if test "$TEX_SUPPORT" = no; then
                   7031:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   7032:    else
                   7033:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   7034:    fi
1.1       bertrand 7035: fi
                   7036: 
1.15      bertrand 7037: if test "$GNUPLOT_SUPPORT" = guessed; then
                   7038:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   7039: set dummy gnuplot; ac_word=$2
                   7040: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7041: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 7042: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15      bertrand 7043:   $as_echo_n "(cached) " >&6
1.14      bertrand 7044: else
1.15      bertrand 7045:   if test -n "$GNUPLOT_P"; then
                   7046:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 7047: else
1.15      bertrand 7048: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7049: for as_dir in $PATH
                   7050: do
                   7051:   IFS=$as_save_IFS
                   7052:   test -z "$as_dir" && as_dir=.
                   7053:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7054:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7055:     ac_cv_prog_GNUPLOT_P="yes"
                   7056:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7057:     break 2
                   7058:   fi
                   7059: done
                   7060:   done
                   7061: IFS=$as_save_IFS
1.1       bertrand 7062: 
1.15      bertrand 7063:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 7064: fi
                   7065: fi
1.15      bertrand 7066: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   7067: if test -n "$GNUPLOT_P"; then
                   7068:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   7069: $as_echo "$GNUPLOT_P" >&6; }
                   7070: else
                   7071:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7072: $as_echo "no" >&6; }
1.1       bertrand 7073: fi
                   7074: 
                   7075: 
1.15      bertrand 7076:    if test "$GNUPLOT_P" = no; then
                   7077:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   7078: Download at http://www.gnuplot.vt.edu/
                   7079: " >&5
                   7080: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   7081: Download at http://www.gnuplot.vt.edu/
                   7082: " >&2;}
                   7083:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   7084:    else
                   7085:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   7086:    fi
                   7087: else
                   7088:    if test "$GNUPLOT_SUPPORT" = no; then
                   7089:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   7090:    else
                   7091:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   7092:    fi
                   7093: fi
1.1       bertrand 7094: 
1.15      bertrand 7095: if test "$VIM_SUPPORT" = guessed; then
                   7096:    # Extract the first word of "vim", so it can be a program name with args.
                   7097: set dummy vim; ac_word=$2
                   7098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7099: $as_echo_n "checking for $ac_word... " >&6; }
1.93      bertrand 7100: if ${ac_cv_prog_VIM+:} false; then :
1.15      bertrand 7101:   $as_echo_n "(cached) " >&6
1.1       bertrand 7102: else
1.15      bertrand 7103:   if test -n "$VIM"; then
                   7104:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 7105: else
1.15      bertrand 7106: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7107: for as_dir in $PATH
                   7108: do
                   7109:   IFS=$as_save_IFS
                   7110:   test -z "$as_dir" && as_dir=.
                   7111:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7112:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7113:     ac_cv_prog_VIM="yes"
                   7114:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7115:     break 2
                   7116:   fi
                   7117: done
                   7118:   done
                   7119: IFS=$as_save_IFS
1.1       bertrand 7120: 
1.15      bertrand 7121:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 7122: fi
                   7123: fi
1.15      bertrand 7124: VIM=$ac_cv_prog_VIM
                   7125: if test -n "$VIM"; then
                   7126:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   7127: $as_echo "$VIM" >&6; }
1.1       bertrand 7128: else
1.15      bertrand 7129:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7130: $as_echo "no" >&6; }
                   7131: fi
1.1       bertrand 7132: 
                   7133: 
1.15      bertrand 7134:    if test "$VIM" = no; then
                   7135:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   7136: Download at http://www.vim.org/
                   7137: " >&5
                   7138: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   7139: Download at http://www.vim.org/
                   7140: " >&2;}
                   7141:        VIM_SUPPORT="-UVIM_SUPPORT"
                   7142:    else
                   7143:        VIM_SUPPORT="-DVIM_SUPPORT"
                   7144:    fi
1.1       bertrand 7145: else
1.15      bertrand 7146:    if test "$VIM_SUPPORT" = no; then
                   7147:        VIM_SUPPORT="-UVIM_SUPPORT"
                   7148:    else
                   7149:        VIM_SUPPORT="-DVIM_SUPPORT"
                   7150:    fi
1.1       bertrand 7151: fi
                   7152: 
1.14      bertrand 7153: 
                   7154: 
1.1       bertrand 7155: 
                   7156: 
1.15      bertrand 7157: 
                   7158: 
                   7159: 
                   7160: 
                   7161: 
                   7162: 
                   7163: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   7164: 
                   7165: 
                   7166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   7167: $as_echo_n "checking for main in -lm... " >&6; }
1.93      bertrand 7168: if ${ac_cv_lib_m_main+:} false; then :
1.15      bertrand 7169:   $as_echo_n "(cached) " >&6
1.1       bertrand 7170: else
1.15      bertrand 7171:   ac_check_lib_save_LIBS=$LIBS
                   7172: LIBS="-lm  $LIBS"
                   7173: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7174: /* end confdefs.h.  */
1.15      bertrand 7175: 
                   7176: 
1.1       bertrand 7177: int
                   7178: main ()
                   7179: {
1.15      bertrand 7180: return main ();
1.1       bertrand 7181:   ;
                   7182:   return 0;
                   7183: }
                   7184: _ACEOF
1.15      bertrand 7185: if ac_fn_c_try_link "$LINENO"; then :
                   7186:   ac_cv_lib_m_main=yes
1.1       bertrand 7187: else
1.15      bertrand 7188:   ac_cv_lib_m_main=no
                   7189: fi
                   7190: rm -f core conftest.err conftest.$ac_objext \
                   7191:     conftest$ac_exeext conftest.$ac_ext
                   7192: LIBS=$ac_check_lib_save_LIBS
                   7193: fi
                   7194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   7195: $as_echo "$ac_cv_lib_m_main" >&6; }
1.93      bertrand 7196: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15      bertrand 7197:   cat >>confdefs.h <<_ACEOF
                   7198: #define HAVE_LIBM 1
                   7199: _ACEOF
1.14      bertrand 7200: 
1.15      bertrand 7201:   LIBS="-lm $LIBS"
1.1       bertrand 7202: 
1.15      bertrand 7203: else
1.36      bertrand 7204:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 7205: fi
                   7206: 
1.87      bertrand 7207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
                   7208: $as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
1.93      bertrand 7209: if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
1.87      bertrand 7210:   $as_echo_n "(cached) " >&6
                   7211: else
                   7212:   ac_check_lib_save_LIBS=$LIBS
                   7213: LIBS="-lc  $LIBS"
                   7214: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7215: /* end confdefs.h.  */
                   7216: 
                   7217: /* Override any GCC internal prototype to avoid an error.
                   7218:    Use char because int might match the return type of a GCC
                   7219:    builtin and then its argument prototype would still apply.  */
                   7220: #ifdef __cplusplus
                   7221: extern "C"
                   7222: #endif
                   7223: char pthread_mutex_init ();
                   7224: int
                   7225: main ()
                   7226: {
                   7227: return pthread_mutex_init ();
                   7228:   ;
                   7229:   return 0;
                   7230: }
                   7231: _ACEOF
                   7232: if ac_fn_c_try_link "$LINENO"; then :
                   7233:   ac_cv_lib_c_pthread_mutex_init=yes
                   7234: else
                   7235:   ac_cv_lib_c_pthread_mutex_init=no
                   7236: fi
                   7237: rm -f core conftest.err conftest.$ac_objext \
                   7238:     conftest$ac_exeext conftest.$ac_ext
                   7239: LIBS=$ac_check_lib_save_LIBS
                   7240: fi
                   7241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
                   7242: $as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
1.93      bertrand 7243: if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
1.87      bertrand 7244:   cat >>confdefs.h <<_ACEOF
                   7245: #define HAVE_LIBC 1
                   7246: _ACEOF
                   7247: 
                   7248:   LIBS="-lc $LIBS"
                   7249: 
                   7250: else
                   7251:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
1.15      bertrand 7252: $as_echo_n "checking for main in -lpthread... " >&6; }
1.93      bertrand 7253: if ${ac_cv_lib_pthread_main+:} false; then :
1.15      bertrand 7254:   $as_echo_n "(cached) " >&6
1.1       bertrand 7255: else
1.15      bertrand 7256:   ac_check_lib_save_LIBS=$LIBS
                   7257: LIBS="-lpthread  $LIBS"
                   7258: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7259: /* end confdefs.h.  */
1.15      bertrand 7260: 
                   7261: 
1.14      bertrand 7262: int
                   7263: main ()
                   7264: {
1.15      bertrand 7265: return main ();
1.14      bertrand 7266:   ;
                   7267:   return 0;
                   7268: }
                   7269: _ACEOF
1.15      bertrand 7270: if ac_fn_c_try_link "$LINENO"; then :
                   7271:   ac_cv_lib_pthread_main=yes
                   7272: else
                   7273:   ac_cv_lib_pthread_main=no
                   7274: fi
                   7275: rm -f core conftest.err conftest.$ac_objext \
                   7276:     conftest$ac_exeext conftest.$ac_ext
                   7277: LIBS=$ac_check_lib_save_LIBS
                   7278: fi
                   7279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   7280: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.93      bertrand 7281: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15      bertrand 7282:   cat >>confdefs.h <<_ACEOF
                   7283: #define HAVE_LIBPTHREAD 1
1.14      bertrand 7284: _ACEOF
                   7285: 
1.15      bertrand 7286:   LIBS="-lpthread $LIBS"
                   7287: 
1.1       bertrand 7288: else
1.36      bertrand 7289:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 7290: fi
1.14      bertrand 7291: 
1.87      bertrand 7292: fi
                   7293: 
1.1       bertrand 7294: 
1.33      bertrand 7295: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   7296: #include <sys/sem.h>
                   7297: 
                   7298: "
1.93      bertrand 7299: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33      bertrand 7300:   SEMUN=-DUNION_SEMUN
                   7301: else
                   7302:   SEMUN=-UUNION_SEMUN
                   7303: fi
                   7304: 
                   7305: 
1.34      bertrand 7306: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 7307: #include <sys/types.h>
1.34      bertrand 7308: #include <netinet/in.h>
                   7309: 
                   7310: "
1.93      bertrand 7311: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34      bertrand 7312:   IPV6=-DIPV6
                   7313: else
                   7314:   IPV6=-UIPV6
                   7315: fi
                   7316: 
                   7317: 
1.15      bertrand 7318: if test "$CYGWIN" != yes; then
                   7319:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7320: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.93      bertrand 7321: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15      bertrand 7322:   $as_echo_n "(cached) " >&6
1.1       bertrand 7323: else
1.15      bertrand 7324:   ac_check_lib_save_LIBS=$LIBS
                   7325: LIBS="-ldl  $LIBS"
                   7326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7327: /* end confdefs.h.  */
                   7328: 
1.15      bertrand 7329: /* Override any GCC internal prototype to avoid an error.
                   7330:    Use char because int might match the return type of a GCC
                   7331:    builtin and then its argument prototype would still apply.  */
                   7332: #ifdef __cplusplus
                   7333: extern "C"
                   7334: #endif
                   7335: char dlopen ();
1.1       bertrand 7336: int
                   7337: main ()
                   7338: {
1.15      bertrand 7339: return dlopen ();
1.1       bertrand 7340:   ;
                   7341:   return 0;
                   7342: }
                   7343: _ACEOF
1.15      bertrand 7344: if ac_fn_c_try_link "$LINENO"; then :
                   7345:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7346: else
1.15      bertrand 7347:   ac_cv_lib_dl_dlopen=no
                   7348: fi
                   7349: rm -f core conftest.err conftest.$ac_objext \
                   7350:     conftest$ac_exeext conftest.$ac_ext
                   7351: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7352: fi
1.15      bertrand 7353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7354: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.93      bertrand 7355: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15      bertrand 7356:   LIBS="$LIBS -ldl"
1.14      bertrand 7357: else
1.15      bertrand 7358:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7359: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7360: fi
                   7361: 
1.14      bertrand 7362: fi
1.1       bertrand 7363: 
1.15      bertrand 7364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7365: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.93      bertrand 7366: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15      bertrand 7367:   $as_echo_n "(cached) " >&6
                   7368: else
                   7369:   ac_check_lib_save_LIBS=$LIBS
                   7370: LIBS="-lrt  $LIBS"
                   7371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7372: /* end confdefs.h.  */
1.15      bertrand 7373: 
                   7374: /* Override any GCC internal prototype to avoid an error.
                   7375:    Use char because int might match the return type of a GCC
                   7376:    builtin and then its argument prototype would still apply.  */
                   7377: #ifdef __cplusplus
                   7378: extern "C"
                   7379: #endif
                   7380: char nanosleep ();
1.1       bertrand 7381: int
                   7382: main ()
                   7383: {
1.15      bertrand 7384: return nanosleep ();
1.1       bertrand 7385:   ;
                   7386:   return 0;
                   7387: }
                   7388: _ACEOF
1.15      bertrand 7389: if ac_fn_c_try_link "$LINENO"; then :
                   7390:   ac_cv_lib_rt_nanosleep=yes
                   7391: else
                   7392:   ac_cv_lib_rt_nanosleep=no
                   7393: fi
                   7394: rm -f core conftest.err conftest.$ac_objext \
                   7395:     conftest$ac_exeext conftest.$ac_ext
                   7396: LIBS=$ac_check_lib_save_LIBS
                   7397: fi
                   7398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7399: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.93      bertrand 7400: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15      bertrand 7401:   LIBS="$LIBS -lrt"
1.1       bertrand 7402: else
1.15      bertrand 7403:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7404: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7405: fi
1.1       bertrand 7406: 
                   7407: 
1.15      bertrand 7408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7409: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.93      bertrand 7410: if ${ac_cv_lib_socket_bind+:} false; then :
1.15      bertrand 7411:   $as_echo_n "(cached) " >&6
1.1       bertrand 7412: else
1.15      bertrand 7413:   ac_check_lib_save_LIBS=$LIBS
                   7414: LIBS="-lsocket  $LIBS"
                   7415: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7416: /* end confdefs.h.  */
1.15      bertrand 7417: 
                   7418: /* Override any GCC internal prototype to avoid an error.
                   7419:    Use char because int might match the return type of a GCC
                   7420:    builtin and then its argument prototype would still apply.  */
                   7421: #ifdef __cplusplus
                   7422: extern "C"
                   7423: #endif
                   7424: char bind ();
1.1       bertrand 7425: int
                   7426: main ()
                   7427: {
1.15      bertrand 7428: return bind ();
1.1       bertrand 7429:   ;
                   7430:   return 0;
                   7431: }
                   7432: _ACEOF
1.15      bertrand 7433: if ac_fn_c_try_link "$LINENO"; then :
                   7434:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7435: else
1.15      bertrand 7436:   ac_cv_lib_socket_bind=no
1.1       bertrand 7437: fi
1.15      bertrand 7438: rm -f core conftest.err conftest.$ac_objext \
                   7439:     conftest$ac_exeext conftest.$ac_ext
                   7440: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7441: fi
1.15      bertrand 7442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7443: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.93      bertrand 7444: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15      bertrand 7445:   LIBS="$LIBS -lsocket"
                   7446: else
                   7447:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7448: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7449: fi
                   7450: 
                   7451: 
1.15      bertrand 7452: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7453: 
                   7454: # Check whether --with-mysql was given.
                   7455: if test "${with_mysql+set}" = set; then :
                   7456:   withval=$with_mysql;
                   7457: else
                   7458:   with_mysql=check
                   7459: fi
1.14      bertrand 7460: 
                   7461: 
1.15      bertrand 7462: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7463:    libMySQLinc="-I/usr/include"
1.30      bertrand 7464:    libMySQLlib="/usr/lib"
1.14      bertrand 7465: 
1.15      bertrand 7466:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7467: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7468:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7469:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7470:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7471: /* end confdefs.h.  */
1.15      bertrand 7472: #include "mysql.h"
1.1       bertrand 7473: int
                   7474: main ()
                   7475: {
1.15      bertrand 7476: 
1.1       bertrand 7477:   ;
                   7478:   return 0;
                   7479: }
                   7480: _ACEOF
1.15      bertrand 7481: if ac_fn_c_try_compile "$LINENO"; then :
                   7482:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7483: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7484:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7485: else
1.15      bertrand 7486:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7487: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7488: fi
1.14      bertrand 7489: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7490:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7491: 
1.15      bertrand 7492:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7493:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7494: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7495:        saved_CFLAGS="$CFLAGS"
                   7496:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7497:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7498: /* end confdefs.h.  */
1.15      bertrand 7499: #include "mysql.h"
1.1       bertrand 7500: int
                   7501: main ()
                   7502: {
                   7503: 
                   7504:   ;
                   7505:   return 0;
                   7506: }
                   7507: _ACEOF
1.15      bertrand 7508: if ac_fn_c_try_compile "$LINENO"; then :
                   7509:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7510: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7511:                        libMySQLinc=$libMySQLinc
                   7512: else
                   7513:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7514: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7515: fi
                   7516: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7517:        CFLAGS=$saved_CFLAGS
                   7518:        libMySQLinc=$libMySQLinc/mysql
                   7519:    fi
                   7520: 
                   7521:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7522:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7523: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7524:        saved_CFLAGS="$CFLAGS"
                   7525:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7526:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7527: /* end confdefs.h.  */
1.15      bertrand 7528: #include "mysql.h"
1.1       bertrand 7529: int
                   7530: main ()
                   7531: {
                   7532: 
                   7533:   ;
                   7534:   return 0;
                   7535: }
                   7536: _ACEOF
1.15      bertrand 7537: if ac_fn_c_try_compile "$LINENO"; then :
                   7538:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7539: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7540:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7541: else
1.15      bertrand 7542:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7543: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7544: fi
                   7545: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7546:        CFLAGS=$saved_CFLAGS
                   7547:        libMySQLinc=$libMySQLinc/../local/include
                   7548:        libMySQLlib=$libMySQLlib/../local/lib
                   7549:    fi
1.1       bertrand 7550: 
1.15      bertrand 7551:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7552:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7553: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7554:        saved_CFLAGS="$CFLAGS"
                   7555:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7556:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7557: /* end confdefs.h.  */
1.15      bertrand 7558: #include "mysql.h"
1.1       bertrand 7559: int
                   7560: main ()
                   7561: {
                   7562: 
                   7563:   ;
                   7564:   return 0;
                   7565: }
                   7566: _ACEOF
1.15      bertrand 7567: if ac_fn_c_try_compile "$LINENO"; then :
                   7568:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7569: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7570:                        libMySQLinc=$libMySQLinc/mysql
                   7571: else
                   7572:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7573: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7574: fi
                   7575: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7576:        CFLAGS=$saved_CFLAGS
                   7577:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7578:        libMySQLlib=$libMySQLlib/../local/lib
                   7579:    fi
                   7580: else
                   7581:    if test "x$with_mysql" != xno; then
                   7582:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7583:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7584: 
                   7585:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7586: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7587:        saved_CFLAGS="$CFLAGS"
                   7588:        CFLAGS="$CFLAGS $libMySQLinc"
                   7589:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7590: /* end confdefs.h.  */
1.15      bertrand 7591: #include "mysql.h"
1.1       bertrand 7592: int
                   7593: main ()
                   7594: {
                   7595: 
                   7596:   ;
                   7597:   return 0;
                   7598: }
                   7599: _ACEOF
1.15      bertrand 7600: if ac_fn_c_try_compile "$LINENO"; then :
                   7601:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7602: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7603:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7604: else
1.15      bertrand 7605:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7606: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7607: fi
                   7608: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7609:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7610: 
1.15      bertrand 7611:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7612:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7613: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7614:            saved_CFLAGS="$CFLAGS"
                   7615:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7616:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7617: /* end confdefs.h.  */
1.15      bertrand 7618: #include "mysql.h"
1.1       bertrand 7619: int
                   7620: main ()
                   7621: {
                   7622: 
                   7623:   ;
                   7624:   return 0;
                   7625: }
                   7626: _ACEOF
1.15      bertrand 7627: if ac_fn_c_try_compile "$LINENO"; then :
                   7628:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7629: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7630:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7631: else
1.15      bertrand 7632:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7633: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7634: fi
                   7635: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7636:            CFLAGS=$saved_CFLAGS
                   7637:            libMySQLinc=$libMySQLinc/mysql
                   7638:        fi
                   7639:    else
                   7640:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7641:    fi
                   7642: fi
1.14      bertrand 7643: 
1.15      bertrand 7644: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7645:    MYSQL_LIB=no
1.14      bertrand 7646: 
1.15      bertrand 7647:    if test $MYSQL_LIB = no; then
                   7648:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7649: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7650:        saved_LIBS="$LIBS"
1.30      bertrand 7651:        if test $STATIC = no; then
                   7652:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7653:        else
                   7654:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7655:        fi
1.15      bertrand 7656:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7657: /* end confdefs.h.  */
1.15      bertrand 7658: #include "mysql.h"
1.1       bertrand 7659: int
                   7660: main ()
                   7661: {
1.15      bertrand 7662: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7663:   ;
                   7664:   return 0;
                   7665: }
                   7666: _ACEOF
1.15      bertrand 7667: if ac_fn_c_try_link "$LINENO"; then :
                   7668:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7669: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7670: else
1.15      bertrand 7671:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7672: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7673: fi
                   7674: rm -f core conftest.err conftest.$ac_objext \
                   7675:     conftest$ac_exeext conftest.$ac_ext
                   7676:        LIBS=$saved_LIBS;
1.30      bertrand 7677:        if test $STATIC = no; then
                   7678:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7679:        else
                   7680:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7681:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7682:        fi
1.15      bertrand 7683:    fi
1.14      bertrand 7684: 
1.15      bertrand 7685:    if test $MYSQL_LIB = no; then
                   7686:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7687:    fi
1.14      bertrand 7688: fi
1.15      bertrand 7689: 
                   7690: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7691:    libMySQLinc=
                   7692:    libMySQLlib=
1.1       bertrand 7693: fi
1.14      bertrand 7694: 
                   7695: 
                   7696: 
1.1       bertrand 7697: 
                   7698: 
1.15      bertrand 7699: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7700: 
                   7701: # Check whether --with-postgresql was given.
                   7702: if test "${with_postgresql+set}" = set; then :
                   7703:   withval=$with_postgresql;
1.14      bertrand 7704: else
1.15      bertrand 7705:   with_postgresql=check
                   7706: fi
                   7707: 
                   7708: 
                   7709: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7710: # no [--without], valeur [--with=valeur].
                   7711: 
                   7712: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7713:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7714:    libPgSQLlib="/usr/lib"
1.15      bertrand 7715: 
                   7716:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7717: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7718:    saved_CFLAGS="$CFLAGS"
                   7719:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7720:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7721: /* end confdefs.h.  */
1.15      bertrand 7722: #include "libpq-fe.h"
1.1       bertrand 7723: int
                   7724: main ()
                   7725: {
1.15      bertrand 7726: 
1.1       bertrand 7727:   ;
                   7728:   return 0;
                   7729: }
                   7730: _ACEOF
1.15      bertrand 7731: if ac_fn_c_try_compile "$LINENO"; then :
                   7732:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7733: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7734: else
1.15      bertrand 7735:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7736: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7737: fi
1.14      bertrand 7738: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7739:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7740: 
1.15      bertrand 7741:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7742:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7743: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7744:        saved_CFLAGS="$CFLAGS"
                   7745:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7746:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7747: /* end confdefs.h.  */
1.15      bertrand 7748: #include "libpq-fe.h"
1.1       bertrand 7749: int
                   7750: main ()
                   7751: {
                   7752: 
                   7753:   ;
                   7754:   return 0;
                   7755: }
                   7756: _ACEOF
1.15      bertrand 7757: if ac_fn_c_try_compile "$LINENO"; then :
                   7758:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7759: $as_echo "yes" >&6; };
                   7760:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7761: else
                   7762:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7763: $as_echo "no" >&6; };
                   7764:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7765: fi
                   7766: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7767:        CFLAGS=$saved_CFLAGS
                   7768:        libPgSQLinc=$libPgSQLinc/postgresql
                   7769:    fi
                   7770: 
                   7771:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7772:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7773: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7774:        saved_CFLAGS="$CFLAGS"
                   7775:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7776:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7777: /* end confdefs.h.  */
1.15      bertrand 7778: #include "libpq-fe.h"
1.1       bertrand 7779: int
                   7780: main ()
                   7781: {
                   7782: 
                   7783:   ;
                   7784:   return 0;
                   7785: }
                   7786: _ACEOF
1.15      bertrand 7787: if ac_fn_c_try_compile "$LINENO"; then :
                   7788:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7789: $as_echo "yes" >&6; };
                   7790:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7791: else
1.15      bertrand 7792:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7793: $as_echo "no" >&6; };
                   7794:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7795: fi
                   7796: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7797:        CFLAGS=$saved_CFLAGS
                   7798:        libPgSQLinc=$libPgSQLinc/pgsql
                   7799:    fi
1.1       bertrand 7800: 
1.15      bertrand 7801:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7802:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7803: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7804:        saved_CFLAGS="$CFLAGS"
                   7805:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7806:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7807: /* end confdefs.h.  */
1.15      bertrand 7808: #include "libpq-fe.h"
1.1       bertrand 7809: int
                   7810: main ()
                   7811: {
                   7812: 
                   7813:   ;
                   7814:   return 0;
                   7815: }
                   7816: _ACEOF
1.15      bertrand 7817: if ac_fn_c_try_compile "$LINENO"; then :
                   7818:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7819: $as_echo "yes" >&6; };
                   7820:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7821: else
                   7822:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7823: $as_echo "no" >&6; };
                   7824:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7825: fi
                   7826: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7827:        CFLAGS=$saved_CFLAGS
                   7828:        libPgSQLinc=$libPgSQLinc/../local/include
                   7829:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7830:    fi
                   7831: 
                   7832:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7833:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7834: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7835:        saved_CFLAGS="$CFLAGS"
                   7836:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7837:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7838: /* end confdefs.h.  */
1.15      bertrand 7839: #include "libpq-fe.h"
1.1       bertrand 7840: int
                   7841: main ()
                   7842: {
                   7843: 
                   7844:   ;
                   7845:   return 0;
                   7846: }
                   7847: _ACEOF
1.15      bertrand 7848: if ac_fn_c_try_compile "$LINENO"; then :
                   7849:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7850: $as_echo "yes" >&6; };
                   7851:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7852: else
1.15      bertrand 7853:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7854: $as_echo "no" >&6; };
                   7855:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7856: fi
                   7857: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7858:        CFLAGS=$saved_CFLAGS
                   7859:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7860:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7861:    fi
1.14      bertrand 7862: 
1.15      bertrand 7863:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7864:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7865: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7866:        saved_CFLAGS="$CFLAGS"
                   7867:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7868:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7869: /* end confdefs.h.  */
1.15      bertrand 7870: #include "libpq-fe.h"
1.1       bertrand 7871: int
                   7872: main ()
                   7873: {
                   7874: 
                   7875:   ;
                   7876:   return 0;
                   7877: }
                   7878: _ACEOF
1.15      bertrand 7879: if ac_fn_c_try_compile "$LINENO"; then :
                   7880:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7881: $as_echo "yes" >&6; };
                   7882:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7883: else
1.15      bertrand 7884:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7885: $as_echo "no" >&6; };
                   7886:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7887: fi
                   7888: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7889:        CFLAGS=$saved_CFLAGS
                   7890:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7891:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7892:    fi
1.14      bertrand 7893: else
1.15      bertrand 7894:    if test "x$with_postgresql" != xno; then
                   7895:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7896:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7897: 
                   7898:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7899: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7900:        saved_CFLAGS="$CFLAGS"
                   7901:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7902:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7903: /* end confdefs.h.  */
1.15      bertrand 7904: #include "libpq-fe.h"
1.1       bertrand 7905: int
                   7906: main ()
                   7907: {
                   7908: 
                   7909:   ;
                   7910:   return 0;
                   7911: }
                   7912: _ACEOF
1.15      bertrand 7913: if ac_fn_c_try_compile "$LINENO"; then :
                   7914:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7915: $as_echo "yes" >&6; };
                   7916:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7917: else
1.15      bertrand 7918:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7919: $as_echo "no" >&6; };
                   7920:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7921: fi
1.15      bertrand 7922: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7923:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7924: 
1.15      bertrand 7925:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7926:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7927: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7928:            saved_CFLAGS="$CFLAGS"
                   7929:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7930:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7931: /* end confdefs.h.  */
1.15      bertrand 7932: #include "libpq-fe.h"
1.1       bertrand 7933: int
                   7934: main ()
                   7935: {
1.15      bertrand 7936: 
1.1       bertrand 7937:   ;
                   7938:   return 0;
                   7939: }
                   7940: _ACEOF
1.15      bertrand 7941: if ac_fn_c_try_compile "$LINENO"; then :
                   7942:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7943: $as_echo "yes" >&6; };
                   7944:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7945: else
1.15      bertrand 7946:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7947: $as_echo "no" >&6; };
                   7948:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7949: fi
                   7950: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7951:            CFLAGS=$saved_CFLAGS
                   7952:            libPgSQLinc=$libPgSQLinc/postgresql
                   7953:        fi
1.14      bertrand 7954: 
1.15      bertrand 7955:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7956:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7957: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7958:            saved_CFLAGS="$CFLAGS"
                   7959:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7960:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7961: /* end confdefs.h.  */
1.15      bertrand 7962: #include "libpq-fe.h"
1.1       bertrand 7963: int
                   7964: main ()
                   7965: {
1.15      bertrand 7966: 
1.1       bertrand 7967:   ;
                   7968:   return 0;
                   7969: }
                   7970: _ACEOF
1.15      bertrand 7971: if ac_fn_c_try_compile "$LINENO"; then :
                   7972:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7973: $as_echo "yes" >&6; };
                   7974:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7975: else
1.15      bertrand 7976:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7977: $as_echo "no" >&6; };
                   7978:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7979: fi
1.15      bertrand 7980: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7981:            CFLAGS=$saved_CFLAGS
                   7982:            libPgSQLinc=$libPgSQLinc/pgsql
                   7983:        fi
                   7984:    else
                   7985:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7986:    fi
1.1       bertrand 7987: fi
                   7988: 
1.15      bertrand 7989: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7990:    POSTGRESQL_LIB=no
1.1       bertrand 7991: 
1.15      bertrand 7992:    if test $POSTGRESQL_LIB = no; then
                   7993:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7994: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7995:        saved_LIBS="$LIBS"
1.30      bertrand 7996:        if test $STATIC = no; then
                   7997:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7998:        else
                   7999:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   8000:        fi
1.15      bertrand 8001:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8002: /* end confdefs.h.  */
1.15      bertrand 8003: #include "libpq-fe.h"
1.1       bertrand 8004: int
                   8005: main ()
                   8006: {
1.15      bertrand 8007: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   8008:             PQconnectdb(conninfo);
1.1       bertrand 8009:   ;
                   8010:   return 0;
                   8011: }
                   8012: _ACEOF
1.15      bertrand 8013: if ac_fn_c_try_link "$LINENO"; then :
                   8014:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   8015: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 8016: else
1.15      bertrand 8017:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8018: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   8019: fi
                   8020: rm -f core conftest.err conftest.$ac_objext \
                   8021:     conftest$ac_exeext conftest.$ac_ext
                   8022:        LIBS=$saved_LIBS;
1.30      bertrand 8023:        if test $STATIC = no; then
                   8024:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   8025:        else
                   8026:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   8027:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   8028:        fi
1.15      bertrand 8029:    fi
                   8030: fi
                   8031: 
                   8032: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   8033:    libPgSQLinc=
                   8034:    libPgSQLlib=
                   8035: fi
                   8036: 
                   8037: 
                   8038: 
                   8039: 
1.14      bertrand 8040: 
1.40      bertrand 8041: # with_postgresql : check [pas défini], yes [uniquement --with],
                   8042: # no [--without], valeur [--with=valeur].
                   8043: 
                   8044: # Check whether --with-bourne_shell was given.
                   8045: if test "${with_bourne_shell+set}" = set; then :
                   8046:   withval=$with_bourne_shell;
                   8047: else
                   8048:   with_bourne_shell=no
                   8049: fi
                   8050: 
                   8051: 
                   8052: if test "x$with_bourne_shell" = xyes; then
                   8053:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   8054: fi
                   8055: 
                   8056: if test "x$with_bourne_shell" = xno; then
                   8057:    if test $(uname) = "OS/2"; then
1.86      bertrand 8058:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide
                   8059: shell path with --with-bourne-shell=PATH !" "$LINENO" 5
1.40      bertrand 8060:    fi
                   8061: 
                   8062:    BSH_PATH=
                   8063: else
                   8064:    if test ! -x $with_bourne_shell; then
                   8065:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   8066:    fi
                   8067: 
                   8068:    if test $(uname) = "OS/2"; then
1.41      bertrand 8069:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   8070:                sed -e '1,$s/\//\\\\\\\\/g')
                   8071:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 8072:    else
                   8073:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   8074: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   8075:        BSH_PATH=
                   8076:    fi
                   8077: fi
                   8078: 
1.15      bertrand 8079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   8080: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.93      bertrand 8081: if ${ac_cv_path_GREP+:} false; then :
1.15      bertrand 8082:   $as_echo_n "(cached) " >&6
                   8083: else
                   8084:   if test -z "$GREP"; then
                   8085:   ac_path_GREP_found=false
                   8086:   # Loop through the user's path and test for each of PROGNAME-LIST
                   8087:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8088: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   8089: do
                   8090:   IFS=$as_save_IFS
                   8091:   test -z "$as_dir" && as_dir=.
                   8092:     for ac_prog in grep ggrep; do
                   8093:     for ac_exec_ext in '' $ac_executable_extensions; do
                   8094:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   8095:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   8096: # Check for GNU ac_path_GREP and select it if it is found.
                   8097:   # Check for GNU $ac_path_GREP
                   8098: case `"$ac_path_GREP" --version 2>&1` in
                   8099: *GNU*)
                   8100:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   8101: *)
                   8102:   ac_count=0
                   8103:   $as_echo_n 0123456789 >"conftest.in"
                   8104:   while :
                   8105:   do
                   8106:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8107:     mv "conftest.tmp" "conftest.in"
                   8108:     cp "conftest.in" "conftest.nl"
                   8109:     $as_echo 'GREP' >> "conftest.nl"
                   8110:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8111:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8112:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8113:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   8114:       # Best one so far, save it but keep looking for a better one
                   8115:       ac_cv_path_GREP="$ac_path_GREP"
                   8116:       ac_path_GREP_max=$ac_count
                   8117:     fi
                   8118:     # 10*(2^10) chars as input seems more than enough
                   8119:     test $ac_count -gt 10 && break
                   8120:   done
                   8121:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8122: esac
1.14      bertrand 8123: 
1.15      bertrand 8124:       $ac_path_GREP_found && break 3
                   8125:     done
                   8126:   done
                   8127:   done
                   8128: IFS=$as_save_IFS
                   8129:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 8130:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8131:   fi
                   8132: else
                   8133:   ac_cv_path_GREP=$GREP
1.1       bertrand 8134: fi
                   8135: 
                   8136: fi
1.15      bertrand 8137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   8138: $as_echo "$ac_cv_path_GREP" >&6; }
                   8139:  GREP="$ac_cv_path_GREP"
                   8140: 
                   8141: 
                   8142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   8143: $as_echo_n "checking for egrep... " >&6; }
1.93      bertrand 8144: if ${ac_cv_path_EGREP+:} false; then :
1.15      bertrand 8145:   $as_echo_n "(cached) " >&6
                   8146: else
                   8147:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   8148:    then ac_cv_path_EGREP="$GREP -E"
                   8149:    else
                   8150:      if test -z "$EGREP"; then
                   8151:   ac_path_EGREP_found=false
                   8152:   # Loop through the user's path and test for each of PROGNAME-LIST
                   8153:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8154: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   8155: do
                   8156:   IFS=$as_save_IFS
                   8157:   test -z "$as_dir" && as_dir=.
                   8158:     for ac_prog in egrep; do
                   8159:     for ac_exec_ext in '' $ac_executable_extensions; do
                   8160:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   8161:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   8162: # Check for GNU ac_path_EGREP and select it if it is found.
                   8163:   # Check for GNU $ac_path_EGREP
                   8164: case `"$ac_path_EGREP" --version 2>&1` in
                   8165: *GNU*)
                   8166:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   8167: *)
                   8168:   ac_count=0
                   8169:   $as_echo_n 0123456789 >"conftest.in"
                   8170:   while :
                   8171:   do
                   8172:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8173:     mv "conftest.tmp" "conftest.in"
                   8174:     cp "conftest.in" "conftest.nl"
                   8175:     $as_echo 'EGREP' >> "conftest.nl"
                   8176:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8177:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8178:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8179:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   8180:       # Best one so far, save it but keep looking for a better one
                   8181:       ac_cv_path_EGREP="$ac_path_EGREP"
                   8182:       ac_path_EGREP_max=$ac_count
                   8183:     fi
                   8184:     # 10*(2^10) chars as input seems more than enough
                   8185:     test $ac_count -gt 10 && break
                   8186:   done
                   8187:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8188: esac
                   8189: 
                   8190:       $ac_path_EGREP_found && break 3
                   8191:     done
                   8192:   done
                   8193:   done
                   8194: IFS=$as_save_IFS
                   8195:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 8196:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8197:   fi
1.1       bertrand 8198: else
1.15      bertrand 8199:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 8200: fi
                   8201: 
1.15      bertrand 8202:    fi
1.1       bertrand 8203: fi
1.15      bertrand 8204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   8205: $as_echo "$ac_cv_path_EGREP" >&6; }
                   8206:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 8207: 
                   8208: 
1.15      bertrand 8209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8210: $as_echo_n "checking for ANSI C header files... " >&6; }
1.93      bertrand 8211: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8212:   $as_echo_n "(cached) " >&6
1.1       bertrand 8213: else
1.15      bertrand 8214:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8215: /* end confdefs.h.  */
                   8216: #include <stdlib.h>
                   8217: #include <stdarg.h>
                   8218: #include <string.h>
                   8219: #include <float.h>
                   8220: 
                   8221: int
                   8222: main ()
                   8223: {
                   8224: 
                   8225:   ;
                   8226:   return 0;
                   8227: }
                   8228: _ACEOF
1.15      bertrand 8229: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 8230:   ac_cv_header_stdc=yes
                   8231: else
1.15      bertrand 8232:   ac_cv_header_stdc=no
1.1       bertrand 8233: fi
                   8234: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8235: 
                   8236: if test $ac_cv_header_stdc = yes; then
                   8237:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 8238:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8239: /* end confdefs.h.  */
                   8240: #include <string.h>
                   8241: 
                   8242: _ACEOF
                   8243: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8244:   $EGREP "memchr" >/dev/null 2>&1; then :
                   8245: 
1.1       bertrand 8246: else
                   8247:   ac_cv_header_stdc=no
                   8248: fi
                   8249: rm -f conftest*
                   8250: 
                   8251: fi
                   8252: 
                   8253: if test $ac_cv_header_stdc = yes; then
                   8254:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 8255:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8256: /* end confdefs.h.  */
                   8257: #include <stdlib.h>
                   8258: 
                   8259: _ACEOF
                   8260: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8261:   $EGREP "free" >/dev/null 2>&1; then :
                   8262: 
1.1       bertrand 8263: else
                   8264:   ac_cv_header_stdc=no
                   8265: fi
                   8266: rm -f conftest*
                   8267: 
                   8268: fi
                   8269: 
                   8270: if test $ac_cv_header_stdc = yes; then
                   8271:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 8272:   if test "$cross_compiling" = yes; then :
1.1       bertrand 8273:   :
                   8274: else
1.15      bertrand 8275:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8276: /* end confdefs.h.  */
                   8277: #include <ctype.h>
                   8278: #include <stdlib.h>
                   8279: #if ((' ' & 0x0FF) == 0x020)
                   8280: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8281: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8282: #else
                   8283: # define ISLOWER(c) \
                   8284:           (('a' <= (c) && (c) <= 'i') \
                   8285:             || ('j' <= (c) && (c) <= 'r') \
                   8286:             || ('s' <= (c) && (c) <= 'z'))
                   8287: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8288: #endif
                   8289: 
                   8290: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   8291: int
                   8292: main ()
                   8293: {
                   8294:   int i;
                   8295:   for (i = 0; i < 256; i++)
                   8296:     if (XOR (islower (i), ISLOWER (i))
                   8297:    || toupper (i) != TOUPPER (i))
                   8298:       return 2;
                   8299:   return 0;
                   8300: }
                   8301: _ACEOF
1.15      bertrand 8302: if ac_fn_c_try_run "$LINENO"; then :
                   8303: 
1.14      bertrand 8304: else
1.15      bertrand 8305:   ac_cv_header_stdc=no
                   8306: fi
                   8307: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8308:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8309: fi
1.1       bertrand 8310: 
                   8311: fi
                   8312: fi
1.15      bertrand 8313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8314: $as_echo "$ac_cv_header_stdc" >&6; }
                   8315: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8316: 
1.15      bertrand 8317: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8318: 
1.1       bertrand 8319: fi
                   8320: 
1.15      bertrand 8321: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8322: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8323:          inttypes.h stdint.h unistd.h
                   8324: do :
                   8325:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8326: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8327: "
1.36      bertrand 8328: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8329:   cat >>confdefs.h <<_ACEOF
                   8330: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8331: _ACEOF
1.1       bertrand 8332: 
                   8333: fi
                   8334: 
1.15      bertrand 8335: done
                   8336: 
                   8337: 
                   8338: # The cast to long int works around a bug in the HP C Compiler
                   8339: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8340: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8341: # This bug is HP SR number 8606223364.
                   8342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8343: $as_echo_n "checking size of void *... " >&6; }
1.93      bertrand 8344: if ${ac_cv_sizeof_void_p+:} false; then :
1.15      bertrand 8345:   $as_echo_n "(cached) " >&6
                   8346: else
                   8347:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8348: 
                   8349: else
1.15      bertrand 8350:   if test "$ac_cv_type_void_p" = yes; then
                   8351:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8352: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8353: as_fn_error 77 "cannot compute sizeof (void *)
1.93      bertrand 8354: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8355:    else
                   8356:      ac_cv_sizeof_void_p=0
                   8357:    fi
                   8358: fi
1.1       bertrand 8359: 
                   8360: fi
1.15      bertrand 8361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8362: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8363: 
1.1       bertrand 8364: 
                   8365: 
1.15      bertrand 8366: cat >>confdefs.h <<_ACEOF
                   8367: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8368: _ACEOF
1.1       bertrand 8369: 
1.15      bertrand 8370: 
                   8371: # The cast to long int works around a bug in the HP C Compiler
                   8372: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8373: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8374: # This bug is HP SR number 8606223364.
                   8375: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8376: $as_echo_n "checking size of char... " >&6; }
1.93      bertrand 8377: if ${ac_cv_sizeof_char+:} false; then :
1.15      bertrand 8378:   $as_echo_n "(cached) " >&6
                   8379: else
                   8380:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8381: 
                   8382: else
                   8383:   if test "$ac_cv_type_char" = yes; then
                   8384:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8385: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8386: as_fn_error 77 "cannot compute sizeof (char)
1.93      bertrand 8387: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8388:    else
                   8389:      ac_cv_sizeof_char=0
                   8390:    fi
                   8391: fi
                   8392: 
1.1       bertrand 8393: fi
1.15      bertrand 8394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8395: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8396: 
                   8397: 
                   8398: 
1.15      bertrand 8399: cat >>confdefs.h <<_ACEOF
                   8400: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8401: _ACEOF
1.1       bertrand 8402: 
                   8403: 
1.15      bertrand 8404: # The cast to long int works around a bug in the HP C Compiler
                   8405: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8406: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8407: # This bug is HP SR number 8606223364.
                   8408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8409: $as_echo_n "checking size of short int... " >&6; }
1.93      bertrand 8410: if ${ac_cv_sizeof_short_int+:} false; then :
1.15      bertrand 8411:   $as_echo_n "(cached) " >&6
                   8412: else
                   8413:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8414: 
1.15      bertrand 8415: else
                   8416:   if test "$ac_cv_type_short_int" = yes; then
                   8417:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8418: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8419: as_fn_error 77 "cannot compute sizeof (short int)
1.93      bertrand 8420: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8421:    else
                   8422:      ac_cv_sizeof_short_int=0
                   8423:    fi
                   8424: fi
1.1       bertrand 8425: 
1.15      bertrand 8426: fi
                   8427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8428: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8429: 
                   8430: 
                   8431: 
1.15      bertrand 8432: cat >>confdefs.h <<_ACEOF
                   8433: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8434: _ACEOF
1.1       bertrand 8435: 
                   8436: 
1.15      bertrand 8437: # The cast to long int works around a bug in the HP C Compiler
                   8438: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8439: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8440: # This bug is HP SR number 8606223364.
                   8441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8442: $as_echo_n "checking size of int... " >&6; }
1.93      bertrand 8443: if ${ac_cv_sizeof_int+:} false; then :
1.15      bertrand 8444:   $as_echo_n "(cached) " >&6
                   8445: else
                   8446:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8447: 
1.15      bertrand 8448: else
                   8449:   if test "$ac_cv_type_int" = yes; then
                   8450:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8451: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8452: as_fn_error 77 "cannot compute sizeof (int)
1.93      bertrand 8453: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8454:    else
                   8455:      ac_cv_sizeof_int=0
                   8456:    fi
                   8457: fi
1.1       bertrand 8458: 
1.15      bertrand 8459: fi
                   8460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8461: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8462: 
                   8463: 
                   8464: 
1.15      bertrand 8465: cat >>confdefs.h <<_ACEOF
                   8466: #define SIZEOF_INT $ac_cv_sizeof_int
                   8467: _ACEOF
1.1       bertrand 8468: 
                   8469: 
1.15      bertrand 8470: # The cast to long int works around a bug in the HP C Compiler
                   8471: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8472: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8473: # This bug is HP SR number 8606223364.
                   8474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8475: $as_echo_n "checking size of long int... " >&6; }
1.93      bertrand 8476: if ${ac_cv_sizeof_long_int+:} false; then :
1.15      bertrand 8477:   $as_echo_n "(cached) " >&6
                   8478: else
                   8479:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8480: 
1.14      bertrand 8481: else
1.15      bertrand 8482:   if test "$ac_cv_type_long_int" = yes; then
                   8483:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8484: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8485: as_fn_error 77 "cannot compute sizeof (long int)
1.93      bertrand 8486: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8487:    else
                   8488:      ac_cv_sizeof_long_int=0
                   8489:    fi
                   8490: fi
1.1       bertrand 8491: 
                   8492: fi
1.15      bertrand 8493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8494: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8495: 
1.1       bertrand 8496: 
                   8497: 
1.15      bertrand 8498: cat >>confdefs.h <<_ACEOF
                   8499: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8500: _ACEOF
1.15      bertrand 8501: 
                   8502: 
                   8503: # The cast to long int works around a bug in the HP C Compiler
                   8504: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8505: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8506: # This bug is HP SR number 8606223364.
                   8507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8508: $as_echo_n "checking size of long long int... " >&6; }
1.93      bertrand 8509: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15      bertrand 8510:   $as_echo_n "(cached) " >&6
                   8511: else
                   8512:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8513: 
1.14      bertrand 8514: else
1.15      bertrand 8515:   if test "$ac_cv_type_long_long_int" = yes; then
                   8516:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8517: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8518: as_fn_error 77 "cannot compute sizeof (long long int)
1.93      bertrand 8519: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8520:    else
                   8521:      ac_cv_sizeof_long_long_int=0
                   8522:    fi
                   8523: fi
1.1       bertrand 8524: 
1.14      bertrand 8525: fi
1.15      bertrand 8526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8527: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8528: 
                   8529: 
                   8530: 
                   8531: cat >>confdefs.h <<_ACEOF
                   8532: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8533: _ACEOF
1.1       bertrand 8534: 
                   8535: 
1.15      bertrand 8536: # The cast to long int works around a bug in the HP C Compiler
                   8537: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8538: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8539: # This bug is HP SR number 8606223364.
                   8540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8541: $as_echo_n "checking size of float... " >&6; }
1.93      bertrand 8542: if ${ac_cv_sizeof_float+:} false; then :
1.15      bertrand 8543:   $as_echo_n "(cached) " >&6
                   8544: else
                   8545:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8546: 
                   8547: else
1.15      bertrand 8548:   if test "$ac_cv_type_float" = yes; then
                   8549:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8550: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8551: as_fn_error 77 "cannot compute sizeof (float)
1.93      bertrand 8552: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8553:    else
                   8554:      ac_cv_sizeof_float=0
                   8555:    fi
1.14      bertrand 8556: fi
                   8557: 
1.1       bertrand 8558: fi
1.15      bertrand 8559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8560: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8561: 
                   8562: 
                   8563: 
                   8564: cat >>confdefs.h <<_ACEOF
                   8565: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8566: _ACEOF
1.1       bertrand 8567: 
                   8568: 
1.15      bertrand 8569: # The cast to long int works around a bug in the HP C Compiler
                   8570: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8571: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8572: # This bug is HP SR number 8606223364.
                   8573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8574: $as_echo_n "checking size of double... " >&6; }
1.93      bertrand 8575: if ${ac_cv_sizeof_double+:} false; then :
1.15      bertrand 8576:   $as_echo_n "(cached) " >&6
                   8577: else
                   8578:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8579: 
1.15      bertrand 8580: else
                   8581:   if test "$ac_cv_type_double" = yes; then
                   8582:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8583: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8584: as_fn_error 77 "cannot compute sizeof (double)
1.93      bertrand 8585: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8586:    else
                   8587:      ac_cv_sizeof_double=0
                   8588:    fi
                   8589: fi
1.1       bertrand 8590: 
1.15      bertrand 8591: fi
                   8592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8593: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8594: 
1.1       bertrand 8595: 
                   8596: 
1.15      bertrand 8597: cat >>confdefs.h <<_ACEOF
                   8598: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8599: _ACEOF
1.15      bertrand 8600: 
                   8601: 
                   8602: # The cast to long int works around a bug in the HP C Compiler
                   8603: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8604: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8605: # This bug is HP SR number 8606223364.
                   8606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8607: $as_echo_n "checking size of long double... " >&6; }
1.93      bertrand 8608: if ${ac_cv_sizeof_long_double+:} false; then :
1.15      bertrand 8609:   $as_echo_n "(cached) " >&6
                   8610: else
                   8611:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8612: 
1.14      bertrand 8613: else
1.15      bertrand 8614:   if test "$ac_cv_type_long_double" = yes; then
                   8615:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8616: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8617: as_fn_error 77 "cannot compute sizeof (long double)
1.93      bertrand 8618: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8619:    else
                   8620:      ac_cv_sizeof_long_double=0
                   8621:    fi
                   8622: fi
1.1       bertrand 8623: 
                   8624: fi
1.15      bertrand 8625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8626: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8627: 
1.1       bertrand 8628: 
                   8629: 
1.15      bertrand 8630: cat >>confdefs.h <<_ACEOF
                   8631: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8632: _ACEOF
                   8633: 
                   8634: 
1.15      bertrand 8635: 
                   8636: ac_header_dirent=no
                   8637: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8638:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8640: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.93      bertrand 8641: if eval \${$as_ac_Header+:} false; then :
1.15      bertrand 8642:   $as_echo_n "(cached) " >&6
1.1       bertrand 8643: else
1.15      bertrand 8644:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8645: /* end confdefs.h.  */
                   8646: #include <sys/types.h>
1.15      bertrand 8647: #include <$ac_hdr>
1.1       bertrand 8648: 
1.15      bertrand 8649: int
                   8650: main ()
                   8651: {
                   8652: if ((DIR *) 0)
                   8653: return 0;
                   8654:   ;
                   8655:   return 0;
                   8656: }
1.1       bertrand 8657: _ACEOF
1.15      bertrand 8658: if ac_fn_c_try_compile "$LINENO"; then :
                   8659:   eval "$as_ac_Header=yes"
1.1       bertrand 8660: else
1.15      bertrand 8661:   eval "$as_ac_Header=no"
                   8662: fi
                   8663: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8664: fi
1.15      bertrand 8665: eval ac_res=\$$as_ac_Header
                   8666:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8667: $as_echo "$ac_res" >&6; }
1.36      bertrand 8668: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8669:   cat >>confdefs.h <<_ACEOF
                   8670: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8671: _ACEOF
1.1       bertrand 8672: 
1.15      bertrand 8673: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8674: fi
                   8675: 
1.15      bertrand 8676: done
                   8677: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8678: if test $ac_header_dirent = dirent.h; then
                   8679:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8680: $as_echo_n "checking for library containing opendir... " >&6; }
1.93      bertrand 8681: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8682:   $as_echo_n "(cached) " >&6
                   8683: else
                   8684:   ac_func_search_save_LIBS=$LIBS
                   8685: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8686: /* end confdefs.h.  */
                   8687: 
                   8688: /* Override any GCC internal prototype to avoid an error.
                   8689:    Use char because int might match the return type of a GCC
                   8690:    builtin and then its argument prototype would still apply.  */
                   8691: #ifdef __cplusplus
                   8692: extern "C"
                   8693: #endif
                   8694: char opendir ();
                   8695: int
                   8696: main ()
                   8697: {
                   8698: return opendir ();
                   8699:   ;
                   8700:   return 0;
                   8701: }
1.14      bertrand 8702: _ACEOF
1.15      bertrand 8703: for ac_lib in '' dir; do
                   8704:   if test -z "$ac_lib"; then
                   8705:     ac_res="none required"
                   8706:   else
                   8707:     ac_res=-l$ac_lib
                   8708:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8709:   fi
                   8710:   if ac_fn_c_try_link "$LINENO"; then :
                   8711:   ac_cv_search_opendir=$ac_res
                   8712: fi
                   8713: rm -f core conftest.err conftest.$ac_objext \
                   8714:     conftest$ac_exeext
1.93      bertrand 8715:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8716:   break
                   8717: fi
                   8718: done
1.93      bertrand 8719: if ${ac_cv_search_opendir+:} false; then :
1.1       bertrand 8720: 
1.15      bertrand 8721: else
                   8722:   ac_cv_search_opendir=no
                   8723: fi
                   8724: rm conftest.$ac_ext
                   8725: LIBS=$ac_func_search_save_LIBS
                   8726: fi
                   8727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8728: $as_echo "$ac_cv_search_opendir" >&6; }
                   8729: ac_res=$ac_cv_search_opendir
                   8730: if test "$ac_res" != no; then :
                   8731:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8732: 
1.14      bertrand 8733: fi
1.1       bertrand 8734: 
                   8735: else
1.15      bertrand 8736:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8737: $as_echo_n "checking for library containing opendir... " >&6; }
1.93      bertrand 8738: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8739:   $as_echo_n "(cached) " >&6
                   8740: else
                   8741:   ac_func_search_save_LIBS=$LIBS
                   8742: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8743: /* end confdefs.h.  */
1.15      bertrand 8744: 
                   8745: /* Override any GCC internal prototype to avoid an error.
                   8746:    Use char because int might match the return type of a GCC
                   8747:    builtin and then its argument prototype would still apply.  */
                   8748: #ifdef __cplusplus
                   8749: extern "C"
                   8750: #endif
                   8751: char opendir ();
1.1       bertrand 8752: int
                   8753: main ()
                   8754: {
1.15      bertrand 8755: return opendir ();
1.1       bertrand 8756:   ;
                   8757:   return 0;
                   8758: }
                   8759: _ACEOF
1.15      bertrand 8760: for ac_lib in '' x; do
                   8761:   if test -z "$ac_lib"; then
                   8762:     ac_res="none required"
                   8763:   else
                   8764:     ac_res=-l$ac_lib
                   8765:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8766:   fi
                   8767:   if ac_fn_c_try_link "$LINENO"; then :
                   8768:   ac_cv_search_opendir=$ac_res
                   8769: fi
                   8770: rm -f core conftest.err conftest.$ac_objext \
                   8771:     conftest$ac_exeext
1.93      bertrand 8772:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8773:   break
                   8774: fi
                   8775: done
1.93      bertrand 8776: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8777: 
1.1       bertrand 8778: else
1.15      bertrand 8779:   ac_cv_search_opendir=no
                   8780: fi
                   8781: rm conftest.$ac_ext
                   8782: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8783: fi
1.15      bertrand 8784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8785: $as_echo "$ac_cv_search_opendir" >&6; }
                   8786: ac_res=$ac_cv_search_opendir
                   8787: if test "$ac_res" != no; then :
                   8788:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8789: 
1.1       bertrand 8790: fi
                   8791: 
                   8792: fi
                   8793: 
1.15      bertrand 8794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8795: $as_echo_n "checking for ANSI C header files... " >&6; }
1.93      bertrand 8796: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8797:   $as_echo_n "(cached) " >&6
1.1       bertrand 8798: else
1.15      bertrand 8799:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8800: /* end confdefs.h.  */
1.15      bertrand 8801: #include <stdlib.h>
                   8802: #include <stdarg.h>
                   8803: #include <string.h>
                   8804: #include <float.h>
                   8805: 
1.1       bertrand 8806: int
                   8807: main ()
                   8808: {
1.15      bertrand 8809: 
1.1       bertrand 8810:   ;
                   8811:   return 0;
                   8812: }
                   8813: _ACEOF
1.15      bertrand 8814: if ac_fn_c_try_compile "$LINENO"; then :
                   8815:   ac_cv_header_stdc=yes
1.14      bertrand 8816: else
1.15      bertrand 8817:   ac_cv_header_stdc=no
                   8818: fi
                   8819: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8820: 
                   8821: if test $ac_cv_header_stdc = yes; then
                   8822:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8823:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8824: /* end confdefs.h.  */
                   8825: #include <string.h>
                   8826: 
                   8827: _ACEOF
                   8828: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8829:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8830: 
1.15      bertrand 8831: else
                   8832:   ac_cv_header_stdc=no
1.1       bertrand 8833: fi
1.15      bertrand 8834: rm -f conftest*
1.14      bertrand 8835: 
1.1       bertrand 8836: fi
                   8837: 
1.15      bertrand 8838: if test $ac_cv_header_stdc = yes; then
                   8839:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8840:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8841: /* end confdefs.h.  */
                   8842: #include <stdlib.h>
                   8843: 
1.14      bertrand 8844: _ACEOF
1.15      bertrand 8845: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8846:   $EGREP "free" >/dev/null 2>&1; then :
                   8847: 
                   8848: else
                   8849:   ac_cv_header_stdc=no
                   8850: fi
                   8851: rm -f conftest*
1.1       bertrand 8852: 
                   8853: fi
                   8854: 
1.15      bertrand 8855: if test $ac_cv_header_stdc = yes; then
                   8856:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8857:   if test "$cross_compiling" = yes; then :
                   8858:   :
1.1       bertrand 8859: else
1.15      bertrand 8860:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8861: /* end confdefs.h.  */
1.15      bertrand 8862: #include <ctype.h>
                   8863: #include <stdlib.h>
                   8864: #if ((' ' & 0x0FF) == 0x020)
                   8865: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8866: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8867: #else
                   8868: # define ISLOWER(c) \
                   8869:           (('a' <= (c) && (c) <= 'i') \
                   8870:             || ('j' <= (c) && (c) <= 'r') \
                   8871:             || ('s' <= (c) && (c) <= 'z'))
                   8872: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8873: #endif
1.1       bertrand 8874: 
1.15      bertrand 8875: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8876: int
                   8877: main ()
                   8878: {
1.15      bertrand 8879:   int i;
                   8880:   for (i = 0; i < 256; i++)
                   8881:     if (XOR (islower (i), ISLOWER (i))
                   8882:    || toupper (i) != TOUPPER (i))
                   8883:       return 2;
1.1       bertrand 8884:   return 0;
                   8885: }
                   8886: _ACEOF
1.15      bertrand 8887: if ac_fn_c_try_run "$LINENO"; then :
                   8888: 
1.14      bertrand 8889: else
1.15      bertrand 8890:   ac_cv_header_stdc=no
                   8891: fi
                   8892: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8893:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8894: fi
1.14      bertrand 8895: 
1.1       bertrand 8896: fi
                   8897: fi
1.15      bertrand 8898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8899: $as_echo "$ac_cv_header_stdc" >&6; }
                   8900: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8901: 
1.15      bertrand 8902: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8903: 
                   8904: fi
                   8905: 
1.15      bertrand 8906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8907: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.93      bertrand 8908: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15      bertrand 8909:   $as_echo_n "(cached) " >&6
1.1       bertrand 8910: else
1.15      bertrand 8911:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8912: /* end confdefs.h.  */
1.14      bertrand 8913: #include <sys/types.h>
1.15      bertrand 8914: #include <sys/wait.h>
                   8915: #ifndef WEXITSTATUS
                   8916: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8917: #endif
                   8918: #ifndef WIFEXITED
                   8919: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8920: #endif
1.1       bertrand 8921: 
                   8922: int
                   8923: main ()
                   8924: {
1.15      bertrand 8925:   int s;
                   8926:   wait (&s);
                   8927:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8928:   ;
                   8929:   return 0;
                   8930: }
                   8931: _ACEOF
1.15      bertrand 8932: if ac_fn_c_try_compile "$LINENO"; then :
                   8933:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8934: else
1.15      bertrand 8935:   ac_cv_header_sys_wait_h=no
                   8936: fi
                   8937: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8938: fi
                   8939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8940: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8941: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8942: 
1.15      bertrand 8943: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8944: 
                   8945: fi
                   8946: 
1.15      bertrand 8947: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8948:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8949:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8950: do :
                   8951:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8952: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8953: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8954:   cat >>confdefs.h <<_ACEOF
                   8955: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8956: _ACEOF
                   8957: 
                   8958: fi
                   8959: 
1.15      bertrand 8960: done
                   8961: 
1.1       bertrand 8962: 
1.15      bertrand 8963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8964: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.93      bertrand 8965: if ${ac_cv_c_const+:} false; then :
1.15      bertrand 8966:   $as_echo_n "(cached) " >&6
1.1       bertrand 8967: else
1.15      bertrand 8968:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8969: /* end confdefs.h.  */
                   8970: 
                   8971: int
                   8972: main ()
                   8973: {
1.15      bertrand 8974: /* FIXME: Include the comments suggested by Paul. */
                   8975: #ifndef __cplusplus
                   8976:   /* Ultrix mips cc rejects this.  */
                   8977:   typedef int charset[2];
                   8978:   const charset cs;
                   8979:   /* SunOS 4.1.1 cc rejects this.  */
                   8980:   char const *const *pcpcc;
                   8981:   char **ppc;
                   8982:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8983:   struct point {int x, y;};
                   8984:   static struct point const zero = {0,0};
                   8985:   /* AIX XL C 1.02.0.0 rejects this.
                   8986:      It does not let you subtract one const X* pointer from another in
                   8987:      an arm of an if-expression whose if-part is not a constant
                   8988:      expression */
                   8989:   const char *g = "string";
                   8990:   pcpcc = &g + (g ? g-g : 0);
                   8991:   /* HPUX 7.0 cc rejects these. */
                   8992:   ++pcpcc;
                   8993:   ppc = (char**) pcpcc;
                   8994:   pcpcc = (char const *const *) ppc;
                   8995:   { /* SCO 3.2v4 cc rejects this.  */
                   8996:     char *t;
                   8997:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8998: 
                   8999:     *t++ = 0;
                   9000:     if (s) return 0;
                   9001:   }
                   9002:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   9003:     int x[] = {25, 17};
                   9004:     const int *foo = &x[0];
                   9005:     ++foo;
                   9006:   }
                   9007:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   9008:     typedef const int *iptr;
                   9009:     iptr p = 0;
                   9010:     ++p;
                   9011:   }
                   9012:   { /* AIX XL C 1.02.0.0 rejects this saying
                   9013:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   9014:     struct s { int j; const int *ap[3]; };
                   9015:     struct s *b; b->j = 5;
                   9016:   }
                   9017:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   9018:     const int foo = 10;
                   9019:     if (!foo) return 0;
                   9020:   }
                   9021:   return !cs[0] && !zero.x;
                   9022: #endif
                   9023: 
1.14      bertrand 9024:   ;
1.1       bertrand 9025:   return 0;
                   9026: }
                   9027: _ACEOF
1.15      bertrand 9028: if ac_fn_c_try_compile "$LINENO"; then :
                   9029:   ac_cv_c_const=yes
1.14      bertrand 9030: else
1.15      bertrand 9031:   ac_cv_c_const=no
1.1       bertrand 9032: fi
1.14      bertrand 9033: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9034: fi
1.15      bertrand 9035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   9036: $as_echo "$ac_cv_c_const" >&6; }
                   9037: if test $ac_cv_c_const = no; then
1.1       bertrand 9038: 
1.15      bertrand 9039: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 9040: 
1.15      bertrand 9041: fi
1.1       bertrand 9042: 
1.15      bertrand 9043: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   9044: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.93      bertrand 9045: if ${ac_cv_type_uid_t+:} false; then :
1.15      bertrand 9046:   $as_echo_n "(cached) " >&6
1.1       bertrand 9047: else
1.15      bertrand 9048:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9049: /* end confdefs.h.  */
1.15      bertrand 9050: #include <sys/types.h>
                   9051: 
1.1       bertrand 9052: _ACEOF
1.15      bertrand 9053: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   9054:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   9055:   ac_cv_type_uid_t=yes
1.1       bertrand 9056: else
1.15      bertrand 9057:   ac_cv_type_uid_t=no
                   9058: fi
                   9059: rm -f conftest*
1.14      bertrand 9060: 
1.1       bertrand 9061: fi
1.15      bertrand 9062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   9063: $as_echo "$ac_cv_type_uid_t" >&6; }
                   9064: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 9065: 
1.15      bertrand 9066: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 9067: 
                   9068: 
1.15      bertrand 9069: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 9070: 
                   9071: fi
                   9072: 
1.15      bertrand 9073: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.93      bertrand 9074: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1       bertrand 9075: 
                   9076: else
1.15      bertrand 9077: 
                   9078: cat >>confdefs.h <<_ACEOF
                   9079: #define pid_t int
1.14      bertrand 9080: _ACEOF
                   9081: 
1.15      bertrand 9082: fi
1.14      bertrand 9083: 
1.15      bertrand 9084: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.93      bertrand 9085: if test "x$ac_cv_type_size_t" = xyes; then :
1.14      bertrand 9086: 
1.15      bertrand 9087: else
1.1       bertrand 9088: 
1.15      bertrand 9089: cat >>confdefs.h <<_ACEOF
                   9090: #define size_t unsigned int
1.1       bertrand 9091: _ACEOF
1.14      bertrand 9092: 
1.1       bertrand 9093: fi
                   9094: 
1.15      bertrand 9095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   9096: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.93      bertrand 9097: if ${ac_cv_header_time+:} false; then :
1.15      bertrand 9098:   $as_echo_n "(cached) " >&6
1.1       bertrand 9099: else
1.15      bertrand 9100:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9101: /* end confdefs.h.  */
1.15      bertrand 9102: #include <sys/types.h>
                   9103: #include <sys/time.h>
                   9104: #include <time.h>
1.1       bertrand 9105: 
1.14      bertrand 9106: int
                   9107: main ()
                   9108: {
1.15      bertrand 9109: if ((struct tm *) 0)
                   9110: return 0;
1.14      bertrand 9111:   ;
                   9112:   return 0;
                   9113: }
1.1       bertrand 9114: _ACEOF
1.15      bertrand 9115: if ac_fn_c_try_compile "$LINENO"; then :
                   9116:   ac_cv_header_time=yes
1.1       bertrand 9117: else
1.15      bertrand 9118:   ac_cv_header_time=no
1.1       bertrand 9119: fi
1.15      bertrand 9120: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9121: fi
1.15      bertrand 9122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   9123: $as_echo "$ac_cv_header_time" >&6; }
                   9124: if test $ac_cv_header_time = yes; then
1.1       bertrand 9125: 
1.15      bertrand 9126: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 9127: 
                   9128: fi
                   9129: 
1.15      bertrand 9130: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   9131: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.93      bertrand 9132: if ${ac_cv_struct_tm+:} false; then :
1.15      bertrand 9133:   $as_echo_n "(cached) " >&6
1.1       bertrand 9134: else
1.15      bertrand 9135:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 9136: /* end confdefs.h.  */
1.15      bertrand 9137: #include <sys/types.h>
                   9138: #include <time.h>
1.1       bertrand 9139: 
                   9140: int
                   9141: main ()
                   9142: {
1.15      bertrand 9143: struct tm tm;
                   9144:                     int *p = &tm.tm_sec;
                   9145:                     return !p;
1.1       bertrand 9146:   ;
                   9147:   return 0;
                   9148: }
                   9149: _ACEOF
1.15      bertrand 9150: if ac_fn_c_try_compile "$LINENO"; then :
                   9151:   ac_cv_struct_tm=time.h
1.1       bertrand 9152: else
1.15      bertrand 9153:   ac_cv_struct_tm=sys/time.h
                   9154: fi
                   9155: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9156: fi
                   9157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   9158: $as_echo "$ac_cv_struct_tm" >&6; }
                   9159: if test $ac_cv_struct_tm = sys/time.h; then
                   9160: 
                   9161: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 9162: 
1.1       bertrand 9163: fi
                   9164: 
                   9165: 
1.15      bertrand 9166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   9167: $as_echo_n "checking return type of signal handlers... " >&6; }
1.93      bertrand 9168: if ${ac_cv_type_signal+:} false; then :
1.15      bertrand 9169:   $as_echo_n "(cached) " >&6
1.1       bertrand 9170: else
1.15      bertrand 9171:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9172: /* end confdefs.h.  */
1.15      bertrand 9173: #include <sys/types.h>
                   9174: #include <signal.h>
1.1       bertrand 9175: 
                   9176: int
                   9177: main ()
                   9178: {
1.15      bertrand 9179: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 9180:   ;
                   9181:   return 0;
                   9182: }
                   9183: _ACEOF
1.15      bertrand 9184: if ac_fn_c_try_compile "$LINENO"; then :
                   9185:   ac_cv_type_signal=int
1.1       bertrand 9186: else
1.15      bertrand 9187:   ac_cv_type_signal=void
1.1       bertrand 9188: fi
1.15      bertrand 9189: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9190: fi
1.15      bertrand 9191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   9192: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 9193: 
1.15      bertrand 9194: cat >>confdefs.h <<_ACEOF
                   9195: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 9196: _ACEOF
1.1       bertrand 9197: 
1.15      bertrand 9198: 
                   9199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   9200: $as_echo_n "checking for working strcoll... " >&6; }
1.93      bertrand 9201: if ${ac_cv_func_strcoll_works+:} false; then :
1.15      bertrand 9202:   $as_echo_n "(cached) " >&6
                   9203: else
                   9204:   if test "$cross_compiling" = yes; then :
                   9205:   ac_cv_func_strcoll_works=no
                   9206: else
                   9207:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9208: /* end confdefs.h.  */
                   9209: $ac_includes_default
                   9210: int
                   9211: main ()
                   9212: {
                   9213: return (strcoll ("abc", "def") >= 0 ||
                   9214:     strcoll ("ABC", "DEF") >= 0 ||
                   9215:     strcoll ("123", "456") >= 0)
                   9216:   ;
                   9217:   return 0;
                   9218: }
                   9219: _ACEOF
                   9220: if ac_fn_c_try_run "$LINENO"; then :
                   9221:   ac_cv_func_strcoll_works=yes
                   9222: else
                   9223:   ac_cv_func_strcoll_works=no
                   9224: fi
                   9225: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9226:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 9227: fi
1.1       bertrand 9228: 
                   9229: fi
1.15      bertrand 9230: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   9231: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   9232: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 9233: 
1.15      bertrand 9234: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 9235: 
1.15      bertrand 9236: fi
1.1       bertrand 9237: 
1.15      bertrand 9238: for ac_func in strftime
                   9239: do :
                   9240:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.93      bertrand 9241: if test "x$ac_cv_func_strftime" = xyes; then :
1.15      bertrand 9242:   cat >>confdefs.h <<_ACEOF
                   9243: #define HAVE_STRFTIME 1
                   9244: _ACEOF
1.1       bertrand 9245: 
                   9246: else
1.15      bertrand 9247:   # strftime is in -lintl on SCO UNIX.
                   9248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   9249: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.93      bertrand 9250: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15      bertrand 9251:   $as_echo_n "(cached) " >&6
                   9252: else
                   9253:   ac_check_lib_save_LIBS=$LIBS
                   9254: LIBS="-lintl  $LIBS"
                   9255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9256: /* end confdefs.h.  */
                   9257: 
                   9258: /* Override any GCC internal prototype to avoid an error.
                   9259:    Use char because int might match the return type of a GCC
                   9260:    builtin and then its argument prototype would still apply.  */
                   9261: #ifdef __cplusplus
                   9262: extern "C"
                   9263: #endif
1.15      bertrand 9264: char strftime ();
1.1       bertrand 9265: int
                   9266: main ()
                   9267: {
1.15      bertrand 9268: return strftime ();
1.1       bertrand 9269:   ;
                   9270:   return 0;
                   9271: }
                   9272: _ACEOF
1.15      bertrand 9273: if ac_fn_c_try_link "$LINENO"; then :
                   9274:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9275: else
1.15      bertrand 9276:   ac_cv_lib_intl_strftime=no
                   9277: fi
                   9278: rm -f core conftest.err conftest.$ac_objext \
                   9279:     conftest$ac_exeext conftest.$ac_ext
                   9280: LIBS=$ac_check_lib_save_LIBS
                   9281: fi
                   9282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9283: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.93      bertrand 9284: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15      bertrand 9285:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9286: 
                   9287: LIBS="-lintl $LIBS"
                   9288: fi
                   9289: 
                   9290: fi
                   9291: done
                   9292: 
                   9293: for ac_func in vprintf
                   9294: do :
                   9295:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.93      bertrand 9296: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15      bertrand 9297:   cat >>confdefs.h <<_ACEOF
                   9298: #define HAVE_VPRINTF 1
                   9299: _ACEOF
                   9300: 
                   9301: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.93      bertrand 9302: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15      bertrand 9303: 
                   9304: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9305: 
                   9306: fi
                   9307: 
                   9308: fi
1.15      bertrand 9309: done
                   9310: 
                   9311: 
                   9312: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9313:        strerror strspn strstr strtod
                   9314: do :
                   9315:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9316: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9317: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9318:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9319: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9320: _ACEOF
                   9321: 
                   9322: fi
                   9323: done
                   9324: 
                   9325: 
1.15      bertrand 9326: 
                   9327: # Check whether --with-openssl_arch was given.
                   9328: if test "${with_openssl_arch+set}" = set; then :
                   9329:   withval=$with_openssl_arch;
                   9330: else
                   9331:   with_openssl_arch=none
                   9332: fi
                   9333: 
                   9334: 
1.31      bertrand 9335: if test $(uname) = "OS/2"; then
1.34      bertrand 9336:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9337: else
1.31      bertrand 9338:    if test "x$with_openssl_arch" = xnone; then
1.67      bertrand 9339:        (cd tools/$OPENSSL && ./config no-asm)
1.31      bertrand 9340:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9341:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9342:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9343:    elif test "x$with_openssl_arch" = xlist; then
                   9344:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9345:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9346:    else
1.67      bertrand 9347:        (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31      bertrand 9348:    fi
1.15      bertrand 9349: fi
1.1       bertrand 9350: 
                   9351: if test "$MYGNUPLOT" = "yes"; then
                   9352:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9353:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9354:                (cd "$srcdir/tools" && tar -xf -)
                   9355:    fi
1.91      bertrand 9356: 
                   9357:    if test $RECURSIVE = yes; then
                   9358:        subdirs="$subdirs tools/$GNUPLOT"
                   9359: 
                   9360:    fi
1.1       bertrand 9361: 
                   9362:    GNUPLOT_COMPILATION=$GNUPLOT
                   9363: else
                   9364:    GNUPLOT_COMPILATION=
                   9365: fi
                   9366: 
                   9367: 
                   9368: 
1.88      bertrand 9369: HOST=$target
1.69      bertrand 9370: 
                   9371: 
1.87      bertrand 9372: my_save_cflags="$CFLAGS"
                   9373: FPCFLAGS=""
                   9374: 
                   9375: CFLAGS=-malign-double
                   9376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -malign-double" >&5
                   9377: $as_echo_n "checking whether CC supports -malign-double... " >&6; }
                   9378: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9379: /* end confdefs.h.  */
                   9380: 
                   9381: int
                   9382: main ()
                   9383: {
1.1       bertrand 9384: 
1.87      bertrand 9385:   ;
                   9386:   return 0;
                   9387: }
                   9388: _ACEOF
                   9389: if ac_fn_c_try_compile "$LINENO"; then :
                   9390:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9391: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -malign-double"
                   9392: else
                   9393:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9394: $as_echo "no" >&6; }
                   9395: fi
                   9396: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9397: CFLAGS=-mieee-fp
                   9398: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee-fp" >&5
                   9399: $as_echo_n "checking whether CC supports -mieee-fp... " >&6; }
                   9400: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9401: /* end confdefs.h.  */
                   9402: 
                   9403: int
                   9404: main ()
                   9405: {
1.1       bertrand 9406: 
1.87      bertrand 9407:   ;
                   9408:   return 0;
                   9409: }
                   9410: _ACEOF
                   9411: if ac_fn_c_try_compile "$LINENO"; then :
                   9412:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9413: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee-fp"
                   9414: else
                   9415:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9416: $as_echo "no" >&6; }
                   9417: fi
                   9418: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9419: CFLAGS=-mieee
                   9420: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee" >&5
                   9421: $as_echo_n "checking whether CC supports -mieee... " >&6; }
                   9422: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9423: /* end confdefs.h.  */
1.1       bertrand 9424: 
1.87      bertrand 9425: int
                   9426: main ()
                   9427: {
1.1       bertrand 9428: 
1.87      bertrand 9429:   ;
                   9430:   return 0;
                   9431: }
                   9432: _ACEOF
                   9433: if ac_fn_c_try_compile "$LINENO"; then :
                   9434:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9435: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee"
                   9436: else
                   9437:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9438: $as_echo "no" >&6; }
                   9439: fi
                   9440: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9441: CFLAGS=$my_save_cflags
1.1       bertrand 9442: 
1.87      bertrand 9443: CFLAGS="$CFLAGS $FPCFLAGS -Wall -funsigned-char -Wno-pointer-sign"
                   9444: FFLAGS="$FFLAGS $FPCFLAGS -Wall -fno-f2c"
                   9445: FCFLAGS="$FCFLAGS $FPCFLAGS -Wall -fno-f2c"
                   9446: CXXFLAGS="$CXXFLAGS $FPCFLAGS -Wall -funsigned-char"
1.1       bertrand 9447: 
1.87      bertrand 9448: case $target_os in
1.8       bertrand 9449: 
                   9450:    cygwin*)
                   9451:        OS=Cygwin
                   9452:    break ;;
                   9453: 
                   9454:    interix*)
                   9455:        OS=Interix
                   9456:    break ;;
                   9457: 
                   9458:    *)
                   9459:        OS=$(uname)
                   9460:    break ;;
                   9461: 
                   9462: esac
                   9463: 
                   9464: 
                   9465: 
1.1       bertrand 9466: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9467: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49      bertrand 9468: MALLOC=
1.1       bertrand 9469: 
1.22      bertrand 9470: case $OS in
1.17      bertrand 9471:     Darwin)
1.31      bertrand 9472:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9473:        NESTED_FUNCTIONS=-fnested-functions
1.23      bertrand 9474:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9475:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9476:                --disable-shared --enable-static --enable-threads \
                   9477:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9478:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9479:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9480:        C_STANDARD=-std=gnu99
1.75      bertrand 9481:        ELF=
1.17      bertrand 9482:    break ;;
                   9483: 
1.31      bertrand 9484:     Cygwin)
                   9485:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9486:        NESTED_FUNCTIONS=
1.31      bertrand 9487:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9488:                --disable-shared --enable-static --enable-threads \
                   9489:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9490:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9491:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9492:        C_STANDARD=-std=gnu99
1.75      bertrand 9493:        ELF=
1.17      bertrand 9494:    break ;;
                   9495: 
1.34      bertrand 9496:    Interix)
                   9497:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9498:        NESTED_FUNCTIONS=
                   9499:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9500:                --disable-shared --enable-static --enable-threads \
                   9501:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9502:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9503:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 9504:        C_STANDARD=-std=gnu99
1.75      bertrand 9505:        ELF=
1.34      bertrand 9506:    break;;
                   9507: 
1.31      bertrand 9508:     AIX)
                   9509:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9510:        NESTED_FUNCTIONS=
1.31      bertrand 9511:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9512:                --disable-shared --enable-static --enable-threads \
                   9513:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9514:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9515:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9516:        C_STANDARD=-std=gnu99
1.75      bertrand 9517:        ELF=
1.18      bertrand 9518:    break ;;
                   9519: 
1.31      bertrand 9520:     OS/2)
1.37      bertrand 9521:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9522:            FINAL_ENCODING=CP850; \
                   9523:        fi;
1.31      bertrand 9524:        OS=OS2
                   9525:        NESTED_FUNCTIONS=
                   9526:        EXPORT_DYNAMIC=-Zmap
                   9527:        ac_configure_args="$ac_configure_args --without-readline \
1.49      bertrand 9528:                --without-cairo --disable-shared --enable-static \
1.69      bertrand 9529:                --enable-threads \
                   9530:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9531:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9532:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9533:        C_STANDARD=
1.75      bertrand 9534:        ELF=
1.31      bertrand 9535:    break;;
                   9536: 
1.35      bertrand 9537:    OpenBSD)
1.37      bertrand 9538:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9539:            FINAL_ENCODING=UTF-8; \
                   9540:        fi;
                   9541:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9542:        NESTED_FUNCTIONS=
                   9543:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9544:                --disable-shared --enable-static --enable-threads \
                   9545:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9546:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9547:                LDFLAGS=\"$LDFLAGS\""
1.35      bertrand 9548:        C_STANDARD=-std=gnu99
1.75      bertrand 9549:        ELF=
1.35      bertrand 9550:    break;;
                   9551: 
1.49      bertrand 9552:     SunOS)
                   9553:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9554:        NESTED_FUNCTIONS=
                   9555: 
                   9556:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9557:                --disable-shared --enable-static --enable-threads \
                   9558:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9559:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9560:                LDFLAGS=\"$LDFLAGS\""
1.49      bertrand 9561:        C_STANDARD=-std=gnu99
                   9562:        MALLOC=-lumem
1.75      bertrand 9563:        ELF=
                   9564:    break ;;
                   9565: 
                   9566:     NetBSD)
                   9567:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9568:        NESTED_FUNCTIONS=
                   9569: 
                   9570:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9571:                --disable-shared --enable-static --enable-threads \
                   9572:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9573:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9574:                LDFLAGS=\"$LDFLAGS\""
                   9575:        C_STANDARD=-std=gnu99
                   9576:        GCCBIN=`which gcc`
                   9577:        GCCLIB=`dirname $GCCBIN`/../lib
                   9578:        ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49      bertrand 9579:    break ;;
                   9580: 
1.17      bertrand 9581:     *)
1.31      bertrand 9582:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9583:        NESTED_FUNCTIONS=
1.36      bertrand 9584: 
1.31      bertrand 9585:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9586:                --disable-shared --enable-static --enable-threads \
                   9587:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9588:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9589:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9590:        C_STANDARD=-std=gnu99
1.75      bertrand 9591:        ELF=
1.17      bertrand 9592:    break ;;
1.90      bertrand 9593: esac
                   9594: 
                   9595: case $OS in
                   9596:     OS2)
                   9597:        WHOLE_LIB1=""
                   9598:        WHOLE_LIB2=""
1.91      bertrand 9599:        LIB_PREFIX=""
1.90      bertrand 9600:    break ;;
1.17      bertrand 9601: 
1.90      bertrand 9602:    *)
                   9603:        WHOLE_LIB1="-Wl,-whole-archive"
                   9604:        WHOLE_LIB2="-Wl,-no-whole-archive"
1.91      bertrand 9605:        LIB_PREFIX="lib"
1.90      bertrand 9606:    break ;;
1.17      bertrand 9607: esac
                   9608: 
                   9609: 
                   9610: 
                   9611: 
1.1       bertrand 9612: 
                   9613: 
                   9614: 
                   9615: 
                   9616: 
                   9617: 
                   9618: 
                   9619: 
                   9620: 
                   9621: 
                   9622: 
                   9623: 
                   9624: 
                   9625: 
                   9626: 
                   9627: 
                   9628: 
                   9629: 
                   9630: 
1.9       bertrand 9631: 
1.24      bertrand 9632: 
1.30      bertrand 9633: 
1.33      bertrand 9634: 
                   9635: 
                   9636: 
1.34      bertrand 9637: 
1.35      bertrand 9638: 
1.49      bertrand 9639: 
1.55      bertrand 9640: 
                   9641: 
1.56      bertrand 9642: 
                   9643: 
                   9644: 
                   9645: 
1.69      bertrand 9646: 
1.75      bertrand 9647: 
1.78      bertrand 9648: 
1.80      bertrand 9649: 
                   9650: 
                   9651: 
1.82      bertrand 9652: 
1.90      bertrand 9653: 
                   9654: 
                   9655: 
1.69      bertrand 9656: 
1.91      bertrand 9657: if test $RECURSIVE = yes; then
                   9658:    subdirs="$subdirs tools/$NCURSES"
1.69      bertrand 9659: 
1.91      bertrand 9660:    subdirs="$subdirs tools/$READLINE"
1.69      bertrand 9661: 
1.91      bertrand 9662:    subdirs="$subdirs tools/$GSL"
1.69      bertrand 9663: 
1.91      bertrand 9664:    subdirs="$subdirs tools/$GPP"
1.69      bertrand 9665: 
1.91      bertrand 9666:    subdirs="$subdirs tools/$FILE"
1.69      bertrand 9667: 
1.91      bertrand 9668:    subdirs="$subdirs tools/$ICONV"
1.69      bertrand 9669: 
1.91      bertrand 9670:    subdirs="$subdirs tools/$SQLITE"
1.69      bertrand 9671: 
1.91      bertrand 9672:    subdirs="$subdirs tools/$UNITS"
1.76      bertrand 9673: 
1.91      bertrand 9674:    subdirs="$subdirs tools/$SIGSEGV"
                   9675: 
                   9676: fi
1.69      bertrand 9677: 
1.1       bertrand 9678: ac_config_files="$ac_config_files Makefile"
                   9679: 
                   9680: ac_config_files="$ac_config_files COPYING"
                   9681: 
                   9682: ac_config_files="$ac_config_files tools/Makefile"
                   9683: 
                   9684: ac_config_files="$ac_config_files src/Makefile"
                   9685: 
                   9686: ac_config_files="$ac_config_files man/Makefile"
                   9687: 
                   9688: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9689: 
                   9690: ac_config_files="$ac_config_files doc/Makefile"
                   9691: 
                   9692: ac_config_files="$ac_config_files scripts/Makefile"
                   9693: 
                   9694: ac_config_files="$ac_config_files scripts/mkrplso"
                   9695: 
                   9696: ac_config_files="$ac_config_files scripts/rplcc"
                   9697: 
                   9698: ac_config_files="$ac_config_files scripts/rpllink"
                   9699: 
                   9700: ac_config_files="$ac_config_files rpltags/Makefile"
                   9701: 
                   9702: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9703: 
1.9       bertrand 9704: ac_config_files="$ac_config_files rplsums/Makefile"
                   9705: 
1.55      bertrand 9706: ac_config_files="$ac_config_files rplcas/Makefile"
                   9707: 
1.39      bertrand 9708: ac_config_files="$ac_config_files rplawk/Makefile"
                   9709: 
1.1       bertrand 9710: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9711: 
                   9712: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9713: 
                   9714: 
                   9715: ac_config_files="$ac_config_files man/rpl.1"
                   9716: 
                   9717: ac_config_files="$ac_config_files man/rplcc.1"
                   9718: 
                   9719: ac_config_files="$ac_config_files man/rpllink.1"
                   9720: 
                   9721: ac_config_files="$ac_config_files man/rpltags.1"
                   9722: 
                   9723: ac_config_files="$ac_config_files man/mkrplso.1"
                   9724: 
                   9725: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9726: 
                   9727: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9728: 
                   9729: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9730: 
                   9731: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9732: 
                   9733: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9734: 
                   9735: 
                   9736: cat >confcache <<\_ACEOF
                   9737: # This file is a shell script that caches the results of configure
                   9738: # tests run on this system so they can be shared between configure
                   9739: # scripts and configure runs, see configure's option --config-cache.
                   9740: # It is not useful on other systems.  If it contains results you don't
                   9741: # want to keep, you may remove or edit it.
                   9742: #
                   9743: # config.status only pays attention to the cache file if you give it
                   9744: # the --recheck option to rerun configure.
                   9745: #
                   9746: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9747: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9748: # following values.
                   9749: 
                   9750: _ACEOF
                   9751: 
                   9752: # The following way of writing the cache mishandles newlines in values,
                   9753: # but we know of no workaround that is simple, portable, and efficient.
                   9754: # So, we kill variables containing newlines.
                   9755: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9756: # and sets the high bit in the cache file unless we assign to the vars.
                   9757: (
                   9758:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9759:     eval ac_val=\$$ac_var
                   9760:     case $ac_val in #(
                   9761:     *${as_nl}*)
                   9762:       case $ac_var in #(
1.15      bertrand 9763:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9764: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9765:       esac
                   9766:       case $ac_var in #(
                   9767:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9768:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9769:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9770:       esac ;;
                   9771:     esac
                   9772:   done
                   9773: 
                   9774:   (set) 2>&1 |
                   9775:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9776:     *${as_nl}ac_space=\ *)
1.15      bertrand 9777:       # `set' does not quote correctly, so add quotes: double-quote
                   9778:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9779:       sed -n \
                   9780:    "s/'/'\\\\''/g;
                   9781:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9782:       ;; #(
                   9783:     *)
                   9784:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9785:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9786:       ;;
                   9787:     esac |
                   9788:     sort
                   9789: ) |
                   9790:   sed '
                   9791:      /^ac_cv_env_/b end
                   9792:      t clear
                   9793:      :clear
                   9794:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9795:      t end
                   9796:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9797:      :end' >>confcache
                   9798: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9799:   if test -w "$cache_file"; then
1.93      bertrand 9800:     if test "x$cache_file" != "x/dev/null"; then
1.15      bertrand 9801:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9802: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.93      bertrand 9803:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   9804:    cat confcache >"$cache_file"
                   9805:       else
                   9806:         case $cache_file in #(
                   9807:         */* | ?:*)
                   9808:      mv -f confcache "$cache_file"$$ &&
                   9809:      mv -f "$cache_file"$$ "$cache_file" ;; #(
                   9810:         *)
                   9811:      mv -f confcache "$cache_file" ;;
                   9812:    esac
                   9813:       fi
                   9814:     fi
1.1       bertrand 9815:   else
1.15      bertrand 9816:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9817: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9818:   fi
                   9819: fi
                   9820: rm -f confcache
                   9821: 
                   9822: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9823: # Let make expand exec_prefix.
                   9824: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9825: 
                   9826: DEFS=-DHAVE_CONFIG_H
                   9827: 
                   9828: ac_libobjs=
                   9829: ac_ltlibobjs=
1.36      bertrand 9830: U=
1.1       bertrand 9831: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9832:   # 1. Remove the extension, and $U if already installed.
                   9833:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9834:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9835:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9836:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9837:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9838:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9839: done
                   9840: LIBOBJS=$ac_libobjs
                   9841: 
                   9842: LTLIBOBJS=$ac_ltlibobjs
                   9843: 
                   9844: 
1.15      bertrand 9845:  if test -n "$EXEEXT"; then
                   9846:   am__EXEEXT_TRUE=
                   9847:   am__EXEEXT_FALSE='#'
                   9848: else
                   9849:   am__EXEEXT_TRUE='#'
                   9850:   am__EXEEXT_FALSE=
                   9851: fi
                   9852: 
1.1       bertrand 9853: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9854:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9855: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9856: fi
                   9857: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9858:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9859: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9860: fi
                   9861: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9862:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9863: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9864: fi
                   9865: 
1.93      bertrand 9866: : "${CONFIG_STATUS=./config.status}"
1.15      bertrand 9867: ac_write_fail=0
1.1       bertrand 9868: ac_clean_files_save=$ac_clean_files
                   9869: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9870: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9871: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9872: as_write_fail=0
                   9873: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9874: #! $SHELL
                   9875: # Generated by $as_me.
                   9876: # Run this file to recreate the current configuration.
                   9877: # Compiler output produced by configure, useful for debugging
                   9878: # configure, is in config.log if it exists.
                   9879: 
                   9880: debug=false
                   9881: ac_cs_recheck=false
                   9882: ac_cs_silent=false
1.15      bertrand 9883: 
1.14      bertrand 9884: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9885: export SHELL
                   9886: _ASEOF
                   9887: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9888: ## -------------------- ##
                   9889: ## M4sh Initialization. ##
                   9890: ## -------------------- ##
1.1       bertrand 9891: 
                   9892: # Be more Bourne compatible
                   9893: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9894: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9895:   emulate sh
                   9896:   NULLCMD=:
1.15      bertrand 9897:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9898:   # is contrary to our usage.  Disable this feature.
                   9899:   alias -g '${1+"$@"}'='"$@"'
                   9900:   setopt NO_GLOB_SUBST
                   9901: else
1.15      bertrand 9902:   case `(set -o) 2>/dev/null` in #(
                   9903:   *posix*) :
                   9904:     set -o posix ;; #(
                   9905:   *) :
                   9906:      ;;
1.1       bertrand 9907: esac
                   9908: fi
                   9909: 
                   9910: 
1.15      bertrand 9911: as_nl='
                   9912: '
                   9913: export as_nl
                   9914: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9915: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9916: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9917: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9918: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9919: # but without wasting forks for bash or zsh.
                   9920: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9921:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9922:   as_echo='print -r --'
                   9923:   as_echo_n='print -rn --'
                   9924: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9925:   as_echo='printf %s\n'
                   9926:   as_echo_n='printf %s'
                   9927: else
                   9928:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9929:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9930:     as_echo_n='/usr/ucb/echo -n'
                   9931:   else
                   9932:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9933:     as_echo_n_body='eval
                   9934:       arg=$1;
                   9935:       case $arg in #(
                   9936:       *"$as_nl"*)
                   9937:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9938:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9939:       esac;
                   9940:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9941:     '
                   9942:     export as_echo_n_body
                   9943:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9944:   fi
                   9945:   export as_echo_body
                   9946:   as_echo='sh -c $as_echo_body as_echo'
                   9947: fi
1.14      bertrand 9948: 
                   9949: # The user is always right.
                   9950: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9951:   PATH_SEPARATOR=:
                   9952:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9953:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9954:       PATH_SEPARATOR=';'
                   9955:   }
1.1       bertrand 9956: fi
                   9957: 
                   9958: 
                   9959: # IFS
                   9960: # We need space, tab and new line, in precisely that order.  Quoting is
                   9961: # there to prevent editors from complaining about space-tab.
                   9962: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9963: # splitting by setting IFS to empty value.)
                   9964: IFS=" ""   $as_nl"
                   9965: 
                   9966: # Find who we are.  Look in the path if we contain no directory separator.
1.93      bertrand 9967: as_myself=
1.15      bertrand 9968: case $0 in #((
1.1       bertrand 9969:   *[\\/]* ) as_myself=$0 ;;
                   9970:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9971: for as_dir in $PATH
                   9972: do
                   9973:   IFS=$as_save_IFS
                   9974:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9975:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9976:   done
1.1       bertrand 9977: IFS=$as_save_IFS
                   9978: 
                   9979:      ;;
                   9980: esac
                   9981: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9982: # in which case we are not to be found in the path.
                   9983: if test "x$as_myself" = x; then
                   9984:   as_myself=$0
                   9985: fi
                   9986: if test ! -f "$as_myself"; then
1.15      bertrand 9987:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9988:   exit 1
1.1       bertrand 9989: fi
                   9990: 
1.15      bertrand 9991: # Unset variables that we do not need and which cause bugs (e.g. in
                   9992: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9993: # suppresses any "Segmentation fault" message there.  '((' could
                   9994: # trigger a bug in pdksh 5.2.14.
                   9995: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9996: do eval test x\${$as_var+set} = xset \
                   9997:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9998: done
                   9999: PS1='$ '
                   10000: PS2='> '
                   10001: PS4='+ '
                   10002: 
                   10003: # NLS nuisances.
1.15      bertrand 10004: LC_ALL=C
                   10005: export LC_ALL
                   10006: LANGUAGE=C
                   10007: export LANGUAGE
                   10008: 
                   10009: # CDPATH.
                   10010: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   10011: 
                   10012: 
1.36      bertrand 10013: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   10014: # ----------------------------------------
1.15      bertrand 10015: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   10016: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 10017: # script with STATUS, using 1 if that was 0.
1.15      bertrand 10018: as_fn_error ()
                   10019: {
1.36      bertrand 10020:   as_status=$1; test $as_status -eq 0 && as_status=1
                   10021:   if test "$4"; then
                   10022:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   10023:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 10024:   fi
1.36      bertrand 10025:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 10026:   as_fn_exit $as_status
                   10027: } # as_fn_error
                   10028: 
                   10029: 
                   10030: # as_fn_set_status STATUS
                   10031: # -----------------------
                   10032: # Set $? to STATUS, without forking.
                   10033: as_fn_set_status ()
                   10034: {
                   10035:   return $1
                   10036: } # as_fn_set_status
                   10037: 
                   10038: # as_fn_exit STATUS
                   10039: # -----------------
                   10040: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   10041: as_fn_exit ()
                   10042: {
                   10043:   set +e
                   10044:   as_fn_set_status $1
                   10045:   exit $1
                   10046: } # as_fn_exit
                   10047: 
                   10048: # as_fn_unset VAR
                   10049: # ---------------
                   10050: # Portably unset VAR.
                   10051: as_fn_unset ()
                   10052: {
                   10053:   { eval $1=; unset $1;}
                   10054: }
                   10055: as_unset=as_fn_unset
                   10056: # as_fn_append VAR VALUE
                   10057: # ----------------------
                   10058: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   10059: # advantage of any shell optimizations that allow amortized linear growth over
                   10060: # repeated appends, instead of the typical quadratic growth present in naive
                   10061: # implementations.
                   10062: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   10063:   eval 'as_fn_append ()
                   10064:   {
                   10065:     eval $1+=\$2
                   10066:   }'
                   10067: else
                   10068:   as_fn_append ()
                   10069:   {
                   10070:     eval $1=\$$1\$2
                   10071:   }
                   10072: fi # as_fn_append
                   10073: 
                   10074: # as_fn_arith ARG...
                   10075: # ------------------
                   10076: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   10077: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   10078: # must be portable across $(()) and expr.
                   10079: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   10080:   eval 'as_fn_arith ()
                   10081:   {
                   10082:     as_val=$(( $* ))
                   10083:   }'
                   10084: else
                   10085:   as_fn_arith ()
                   10086:   {
                   10087:     as_val=`expr "$@" || test $? -eq 1`
                   10088:   }
                   10089: fi # as_fn_arith
                   10090: 
1.1       bertrand 10091: 
                   10092: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   10093:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   10094:   as_expr=expr
                   10095: else
                   10096:   as_expr=false
                   10097: fi
                   10098: 
                   10099: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   10100:   as_basename=basename
                   10101: else
                   10102:   as_basename=false
                   10103: fi
                   10104: 
1.15      bertrand 10105: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   10106:   as_dirname=dirname
                   10107: else
                   10108:   as_dirname=false
                   10109: fi
1.1       bertrand 10110: 
                   10111: as_me=`$as_basename -- "$0" ||
                   10112: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   10113:     X"$0" : 'X\(//\)$' \| \
                   10114:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10115: $as_echo X/"$0" |
1.1       bertrand 10116:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   10117:        s//\1/
                   10118:        q
                   10119:      }
                   10120:      /^X\/\(\/\/\)$/{
                   10121:        s//\1/
                   10122:        q
                   10123:      }
                   10124:      /^X\/\(\/\).*/{
                   10125:        s//\1/
                   10126:        q
                   10127:      }
1.14      bertrand 10128:      s/.*/./; q'`
                   10129: 
1.15      bertrand 10130: # Avoid depending upon Character Ranges.
                   10131: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   10132: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   10133: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   10134: as_cr_digits='0123456789'
                   10135: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 10136: 
                   10137: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 10138: case `echo -n x` in #(((((
1.1       bertrand 10139: -n*)
1.15      bertrand 10140:   case `echo 'xy\c'` in
1.1       bertrand 10141:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 10142:   xy)  ECHO_C='\c';;
                   10143:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   10144:        ECHO_T='    ';;
1.1       bertrand 10145:   esac;;
                   10146: *)
                   10147:   ECHO_N='-n';;
                   10148: esac
                   10149: 
                   10150: rm -f conf$$ conf$$.exe conf$$.file
                   10151: if test -d conf$$.dir; then
                   10152:   rm -f conf$$.dir/conf$$.file
                   10153: else
                   10154:   rm -f conf$$.dir
1.15      bertrand 10155:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 10156: fi
1.15      bertrand 10157: if (echo >conf$$.file) 2>/dev/null; then
                   10158:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   10159:     as_ln_s='ln -s'
                   10160:     # ... but there are two gotchas:
                   10161:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   10162:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   10163:     # In both cases, we have to default to `cp -p'.
                   10164:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   10165:       as_ln_s='cp -p'
                   10166:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   10167:     as_ln_s=ln
                   10168:   else
1.1       bertrand 10169:     as_ln_s='cp -p'
1.15      bertrand 10170:   fi
1.1       bertrand 10171: else
                   10172:   as_ln_s='cp -p'
                   10173: fi
                   10174: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   10175: rmdir conf$$.dir 2>/dev/null
                   10176: 
1.15      bertrand 10177: 
                   10178: # as_fn_mkdir_p
                   10179: # -------------
                   10180: # Create "$as_dir" as a directory, including parents if necessary.
                   10181: as_fn_mkdir_p ()
                   10182: {
                   10183: 
                   10184:   case $as_dir in #(
                   10185:   -*) as_dir=./$as_dir;;
                   10186:   esac
                   10187:   test -d "$as_dir" || eval $as_mkdir_p || {
                   10188:     as_dirs=
                   10189:     while :; do
                   10190:       case $as_dir in #(
                   10191:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   10192:       *) as_qdir=$as_dir;;
                   10193:       esac
                   10194:       as_dirs="'$as_qdir' $as_dirs"
                   10195:       as_dir=`$as_dirname -- "$as_dir" ||
                   10196: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10197:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   10198:     X"$as_dir" : 'X\(//\)$' \| \
                   10199:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   10200: $as_echo X"$as_dir" |
                   10201:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10202:        s//\1/
                   10203:        q
                   10204:      }
                   10205:      /^X\(\/\/\)[^/].*/{
                   10206:        s//\1/
                   10207:        q
                   10208:      }
                   10209:      /^X\(\/\/\)$/{
                   10210:        s//\1/
                   10211:        q
                   10212:      }
                   10213:      /^X\(\/\).*/{
                   10214:        s//\1/
                   10215:        q
                   10216:      }
                   10217:      s/.*/./; q'`
                   10218:       test -d "$as_dir" && break
                   10219:     done
                   10220:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 10221:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 10222: 
                   10223: 
                   10224: } # as_fn_mkdir_p
1.1       bertrand 10225: if mkdir -p . 2>/dev/null; then
1.15      bertrand 10226:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 10227: else
                   10228:   test -d ./-p && rmdir ./-p
                   10229:   as_mkdir_p=false
                   10230: fi
                   10231: 
                   10232: if test -x / >/dev/null 2>&1; then
                   10233:   as_test_x='test -x'
                   10234: else
                   10235:   if ls -dL / >/dev/null 2>&1; then
                   10236:     as_ls_L_option=L
                   10237:   else
                   10238:     as_ls_L_option=
                   10239:   fi
                   10240:   as_test_x='
                   10241:     eval sh -c '\''
                   10242:       if test -d "$1"; then
1.15      bertrand 10243:    test -d "$1/.";
1.1       bertrand 10244:       else
1.15      bertrand 10245:    case $1 in #(
                   10246:    -*)set "./$1";;
1.1       bertrand 10247:    esac;
1.15      bertrand 10248:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 10249:    ???[sx]*):;;*)false;;esac;fi
                   10250:     '\'' sh
                   10251:   '
                   10252: fi
                   10253: as_executable_p=$as_test_x
                   10254: 
                   10255: # Sed expression to map a string onto a valid CPP name.
                   10256: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   10257: 
                   10258: # Sed expression to map a string onto a valid variable name.
                   10259: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   10260: 
                   10261: 
                   10262: exec 6>&1
1.15      bertrand 10263: ## ----------------------------------- ##
                   10264: ## Main body of $CONFIG_STATUS script. ##
                   10265: ## ----------------------------------- ##
                   10266: _ASEOF
                   10267: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 10268: 
1.15      bertrand 10269: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10270: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 10271: # report actual input values of CONFIG_FILES etc. instead of their
                   10272: # values after options handling.
                   10273: ac_log="
1.86      bertrand 10274: This file was extended by rpl $as_me 4.1.4, which was
1.93      bertrand 10275: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 10276: 
                   10277:   CONFIG_FILES    = $CONFIG_FILES
                   10278:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   10279:   CONFIG_LINKS    = $CONFIG_LINKS
                   10280:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   10281:   $ $0 $@
                   10282: 
                   10283: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   10284: "
                   10285: 
                   10286: _ACEOF
                   10287: 
1.15      bertrand 10288: case $ac_config_files in *"
                   10289: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   10290: esac
                   10291: 
                   10292: case $ac_config_headers in *"
                   10293: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   10294: esac
                   10295: 
                   10296: 
                   10297: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10298: # Files that config.status was made for.
                   10299: config_files="$ac_config_files"
                   10300: config_headers="$ac_config_headers"
                   10301: config_commands="$ac_config_commands"
                   10302: 
                   10303: _ACEOF
                   10304: 
1.15      bertrand 10305: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10306: ac_cs_usage="\
1.15      bertrand 10307: \`$as_me' instantiates files and other configuration actions
                   10308: from templates according to the current configuration.  Unless the files
                   10309: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 10310: 
1.15      bertrand 10311: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 10312: 
                   10313:   -h, --help       print this help, then exit
                   10314:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 10315:       --config     print configuration, then exit
                   10316:   -q, --quiet, --silent
                   10317:                    do not print progress messages
1.1       bertrand 10318:   -d, --debug      don't remove temporary files
                   10319:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 10320:       --file=FILE[:TEMPLATE]
                   10321:                    instantiate the configuration file FILE
                   10322:       --header=FILE[:TEMPLATE]
                   10323:                    instantiate the configuration header FILE
1.1       bertrand 10324: 
                   10325: Configuration files:
                   10326: $config_files
                   10327: 
                   10328: Configuration headers:
                   10329: $config_headers
                   10330: 
                   10331: Configuration commands:
                   10332: $config_commands
                   10333: 
1.15      bertrand 10334: Report bugs to the package provider."
1.1       bertrand 10335: 
                   10336: _ACEOF
1.15      bertrand 10337: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10338: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 10339: ac_cs_version="\\
1.86      bertrand 10340: rpl config.status 4.1.4
1.93      bertrand 10341: configured by $0, generated by GNU Autoconf 2.68,
1.15      bertrand 10342:   with options \\"\$ac_cs_config\\"
1.1       bertrand 10343: 
1.36      bertrand 10344: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 10345: This config.status script is free software; the Free Software Foundation
                   10346: gives unlimited permission to copy, distribute and modify it."
                   10347: 
                   10348: ac_pwd='$ac_pwd'
                   10349: srcdir='$srcdir'
                   10350: INSTALL='$INSTALL'
                   10351: MKDIR_P='$MKDIR_P'
1.15      bertrand 10352: AWK='$AWK'
                   10353: test -n "\$AWK" || AWK=awk
1.1       bertrand 10354: _ACEOF
                   10355: 
1.15      bertrand 10356: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10357: # The default lists apply if the user does not specify any file.
1.1       bertrand 10358: ac_need_defaults=:
                   10359: while test $# != 0
                   10360: do
                   10361:   case $1 in
1.36      bertrand 10362:   --*=?*)
1.1       bertrand 10363:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10364:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   10365:     ac_shift=:
                   10366:     ;;
1.36      bertrand 10367:   --*=)
                   10368:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10369:     ac_optarg=
                   10370:     ac_shift=:
                   10371:     ;;
1.1       bertrand 10372:   *)
                   10373:     ac_option=$1
                   10374:     ac_optarg=$2
                   10375:     ac_shift=shift
                   10376:     ;;
                   10377:   esac
                   10378: 
                   10379:   case $ac_option in
                   10380:   # Handling of the options.
                   10381:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   10382:     ac_cs_recheck=: ;;
                   10383:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 10384:     $as_echo "$ac_cs_version"; exit ;;
                   10385:   --config | --confi | --conf | --con | --co | --c )
                   10386:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 10387:   --debug | --debu | --deb | --de | --d | -d )
                   10388:     debug=: ;;
                   10389:   --file | --fil | --fi | --f )
                   10390:     $ac_shift
1.15      bertrand 10391:     case $ac_optarg in
                   10392:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 10393:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 10394:     esac
                   10395:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 10396:     ac_need_defaults=false;;
                   10397:   --header | --heade | --head | --hea )
                   10398:     $ac_shift
1.15      bertrand 10399:     case $ac_optarg in
                   10400:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   10401:     esac
                   10402:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 10403:     ac_need_defaults=false;;
                   10404:   --he | --h)
                   10405:     # Conflict between --help and --header
1.36      bertrand 10406:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 10407: Try \`$0 --help' for more information.";;
1.1       bertrand 10408:   --help | --hel | -h )
1.15      bertrand 10409:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 10410:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10411:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10412:     ac_cs_silent=: ;;
                   10413: 
                   10414:   # This is an error.
1.36      bertrand 10415:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10416: Try \`$0 --help' for more information." ;;
1.1       bertrand 10417: 
1.15      bertrand 10418:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10419:      ac_need_defaults=false ;;
                   10420: 
                   10421:   esac
                   10422:   shift
                   10423: done
                   10424: 
                   10425: ac_configure_extra_args=
                   10426: 
                   10427: if $ac_cs_silent; then
                   10428:   exec 6>/dev/null
                   10429:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10430: fi
                   10431: 
                   10432: _ACEOF
1.15      bertrand 10433: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10434: if \$ac_cs_recheck; then
1.15      bertrand 10435:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10436:   shift
                   10437:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10438:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10439:   export CONFIG_SHELL
1.15      bertrand 10440:   exec "\$@"
1.1       bertrand 10441: fi
                   10442: 
                   10443: _ACEOF
1.15      bertrand 10444: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10445: exec 5>>config.log
                   10446: {
                   10447:   echo
                   10448:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10449: ## Running $as_me. ##
                   10450: _ASBOX
1.15      bertrand 10451:   $as_echo "$ac_log"
1.1       bertrand 10452: } >&5
                   10453: 
                   10454: _ACEOF
1.15      bertrand 10455: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10456: #
                   10457: # INIT-COMMANDS
                   10458: #
                   10459: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10460: 
                   10461: _ACEOF
                   10462: 
1.15      bertrand 10463: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10464: 
                   10465: # Handling of arguments.
                   10466: for ac_config_target in $ac_config_targets
                   10467: do
                   10468:   case $ac_config_target in
                   10469:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10470:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10471:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10472:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10473:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10474:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10475:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10476:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10477:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10478:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10479:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10480:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10481:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10482:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10483:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10484:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55      bertrand 10485:     "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39      bertrand 10486:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10487:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10488:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10489:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10490:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10491:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10492:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10493:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10494:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10495:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10496:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10497:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10498:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   10499: 
1.93      bertrand 10500:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 10501:   esac
                   10502: done
                   10503: 
                   10504: 
                   10505: # If the user did not use the arguments to specify the items to instantiate,
                   10506: # then the envvar interface is used.  Set only those that are not.
                   10507: # We use the long form for the default assignment because of an extremely
                   10508: # bizarre bug on SunOS 4.1.3.
                   10509: if $ac_need_defaults; then
                   10510:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10511:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10512:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10513: fi
                   10514: 
                   10515: # Have a temporary directory for convenience.  Make it in the build tree
                   10516: # simply because there is no reason against having it here, and in addition,
                   10517: # creating and moving files from /tmp can sometimes cause problems.
                   10518: # Hook for its removal unless debugging.
                   10519: # Note that there is a small window in which the directory will not be cleaned:
                   10520: # after its creation but before its name has been assigned to `$tmp'.
                   10521: $debug ||
                   10522: {
1.93      bertrand 10523:   tmp= ac_tmp=
1.1       bertrand 10524:   trap 'exit_status=$?
1.93      bertrand 10525:   : "${ac_tmp:=$tmp}"
                   10526:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1       bertrand 10527: ' 0
1.15      bertrand 10528:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10529: }
                   10530: # Create a (secure) tmp directory for tmp files.
                   10531: 
                   10532: {
                   10533:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.93      bertrand 10534:   test -d "$tmp"
1.1       bertrand 10535: }  ||
                   10536: {
                   10537:   tmp=./conf$$-$RANDOM
                   10538:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10539: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.93      bertrand 10540: ac_tmp=$tmp
1.15      bertrand 10541: 
                   10542: # Set up the scripts for CONFIG_FILES section.
                   10543: # No need to generate them if there are no CONFIG_FILES.
                   10544: # This happens for instance with `./config.status config.h'.
                   10545: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10546: 
1.1       bertrand 10547: 
1.15      bertrand 10548: ac_cr=`echo X | tr X '\015'`
                   10549: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10550: # But we know of no other shell where ac_cr would be empty at this
                   10551: # point, so we can use a bashism as a fallback.
                   10552: if test "x$ac_cr" = x; then
                   10553:   eval ac_cr=\$\'\\r\'
                   10554: fi
                   10555: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10556: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10557:   ac_cs_awk_cr='\\r'
1.15      bertrand 10558: else
                   10559:   ac_cs_awk_cr=$ac_cr
                   10560: fi
1.1       bertrand 10561: 
1.93      bertrand 10562: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14      bertrand 10563: _ACEOF
                   10564: 
                   10565: 
1.15      bertrand 10566: {
                   10567:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10568:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10569:   echo "_ACEOF"
                   10570: } >conf$$subs.sh ||
1.36      bertrand 10571:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10572: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10573: ac_delim='%!_!# '
                   10574: for ac_last_try in false false false false false :; do
1.15      bertrand 10575:   . ./conf$$subs.sh ||
1.36      bertrand 10576:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10577: 
1.15      bertrand 10578:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10579:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10580:     break
                   10581:   elif $ac_last_try; then
1.36      bertrand 10582:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10583:   else
                   10584:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10585:   fi
                   10586: done
1.15      bertrand 10587: rm -f conf$$subs.sh
1.1       bertrand 10588: 
1.15      bertrand 10589: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.93      bertrand 10590: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15      bertrand 10591: _ACEOF
                   10592: sed -n '
                   10593: h
                   10594: s/^/S["/; s/!.*/"]=/
                   10595: p
                   10596: g
                   10597: s/^[^!]*!//
                   10598: :repl
                   10599: t repl
                   10600: s/'"$ac_delim"'$//
                   10601: t delim
                   10602: :nl
                   10603: h
                   10604: s/\(.\{148\}\)..*/\1/
                   10605: t more1
                   10606: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10607: p
                   10608: n
                   10609: b repl
                   10610: :more1
                   10611: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10612: p
                   10613: g
                   10614: s/.\{148\}//
                   10615: t nl
                   10616: :delim
                   10617: h
                   10618: s/\(.\{148\}\)..*/\1/
                   10619: t more2
                   10620: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10621: p
                   10622: b
                   10623: :more2
                   10624: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10625: p
                   10626: g
                   10627: s/.\{148\}//
                   10628: t delim
                   10629: ' <conf$$subs.awk | sed '
                   10630: /^[^""]/{
                   10631:   N
                   10632:   s/\n//
                   10633: }
                   10634: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10635: rm -f conf$$subs.awk
                   10636: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10637: _ACAWK
1.93      bertrand 10638: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15      bertrand 10639:   for (key in S) S_is_set[key] = 1
                   10640:   FS = ""
1.1       bertrand 10641: 
1.15      bertrand 10642: }
                   10643: {
                   10644:   line = $ 0
                   10645:   nfields = split(line, field, "@")
                   10646:   substed = 0
                   10647:   len = length(field[1])
                   10648:   for (i = 2; i < nfields; i++) {
                   10649:     key = field[i]
                   10650:     keylen = length(key)
                   10651:     if (S_is_set[key]) {
                   10652:       value = S[key]
                   10653:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10654:       len += length(value) + length(field[++i])
                   10655:       substed = 1
                   10656:     } else
                   10657:       len += 1 + keylen
                   10658:   }
1.1       bertrand 10659: 
1.15      bertrand 10660:   print line
                   10661: }
1.1       bertrand 10662: 
1.15      bertrand 10663: _ACAWK
1.14      bertrand 10664: _ACEOF
1.15      bertrand 10665: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10666: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10667:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10668: else
                   10669:   cat
1.93      bertrand 10670: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36      bertrand 10671:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10672: _ACEOF
                   10673: 
1.36      bertrand 10674: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10675: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10676: # trailing colons and then remove the whole line if VPATH becomes empty
                   10677: # (actually we leave an empty line to preserve line numbers).
                   10678: if test "x$srcdir" = x.; then
1.36      bertrand 10679:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10680: h
                   10681: s///
                   10682: s/^/:/
                   10683: s/[     ]*$/:/
                   10684: s/:\$(srcdir):/:/g
                   10685: s/:\${srcdir}:/:/g
                   10686: s/:@srcdir@:/:/g
                   10687: s/^:*//
1.1       bertrand 10688: s/:*$//
1.36      bertrand 10689: x
                   10690: s/\(=[  ]*\).*/\1/
                   10691: G
                   10692: s/\n//
1.1       bertrand 10693: s/^[^=]*=[  ]*$//
                   10694: }'
                   10695: fi
                   10696: 
1.15      bertrand 10697: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10698: fi # test -n "$CONFIG_FILES"
                   10699: 
1.15      bertrand 10700: # Set up the scripts for CONFIG_HEADERS section.
                   10701: # No need to generate them if there are no CONFIG_HEADERS.
                   10702: # This happens for instance with `./config.status Makefile'.
                   10703: if test -n "$CONFIG_HEADERS"; then
1.93      bertrand 10704: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15      bertrand 10705: BEGIN {
                   10706: _ACEOF
                   10707: 
                   10708: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10709: # here-document in config.status, that substitutes the proper values into
                   10710: # config.h.in to produce config.h.
                   10711: 
                   10712: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10713: # handling of long lines.
                   10714: ac_delim='%!_!# '
                   10715: for ac_last_try in false false :; do
1.93      bertrand 10716:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   10717:   if test -z "$ac_tt"; then
1.15      bertrand 10718:     break
                   10719:   elif $ac_last_try; then
1.36      bertrand 10720:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10721:   else
                   10722:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10723:   fi
                   10724: done
                   10725: 
                   10726: # For the awk script, D is an array of macro values keyed by name,
                   10727: # likewise P contains macro parameters if any.  Preserve backslash
                   10728: # newline sequences.
                   10729: 
                   10730: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10731: sed -n '
                   10732: s/.\{148\}/&'"$ac_delim"'/g
                   10733: t rset
                   10734: :rset
                   10735: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10736: t def
                   10737: d
                   10738: :def
                   10739: s/\\$//
                   10740: t bsnl
                   10741: s/["\\]/\\&/g
                   10742: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10743: D["\1"]=" \3"/p
                   10744: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10745: d
                   10746: :bsnl
                   10747: s/["\\]/\\&/g
                   10748: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10749: D["\1"]=" \3\\\\\\n"\\/p
                   10750: t cont
                   10751: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10752: t cont
                   10753: d
                   10754: :cont
                   10755: n
                   10756: s/.\{148\}/&'"$ac_delim"'/g
                   10757: t clear
                   10758: :clear
                   10759: s/\\$//
                   10760: t bsnlc
                   10761: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10762: d
                   10763: :bsnlc
                   10764: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10765: b cont
                   10766: ' <confdefs.h | sed '
                   10767: s/'"$ac_delim"'/"\\\
                   10768: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10769: 
                   10770: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10771:   for (key in D) D_is_set[key] = 1
                   10772:   FS = ""
                   10773: }
                   10774: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10775:   line = \$ 0
                   10776:   split(line, arg, " ")
                   10777:   if (arg[1] == "#") {
                   10778:     defundef = arg[2]
                   10779:     mac1 = arg[3]
                   10780:   } else {
                   10781:     defundef = substr(arg[1], 2)
                   10782:     mac1 = arg[2]
                   10783:   }
                   10784:   split(mac1, mac2, "(") #)
                   10785:   macro = mac2[1]
                   10786:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10787:   if (D_is_set[macro]) {
                   10788:     # Preserve the white space surrounding the "#".
                   10789:     print prefix "define", macro P[macro] D[macro]
                   10790:     next
                   10791:   } else {
                   10792:     # Replace #undef with comments.  This is necessary, for example,
                   10793:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10794:     # on some systems where configure will not decide to define it.
                   10795:     if (defundef == "undef") {
                   10796:       print "/*", prefix defundef, macro, "*/"
                   10797:       next
                   10798:     }
                   10799:   }
                   10800: }
                   10801: { print }
                   10802: _ACAWK
                   10803: _ACEOF
                   10804: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10805:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10806: fi # test -n "$CONFIG_HEADERS"
                   10807: 
1.1       bertrand 10808: 
1.15      bertrand 10809: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10810: shift
                   10811: for ac_tag
1.1       bertrand 10812: do
                   10813:   case $ac_tag in
                   10814:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10815:   esac
                   10816:   case $ac_mode$ac_tag in
                   10817:   :[FHL]*:*);;
1.93      bertrand 10818:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10819:   :[FH]-) ac_tag=-:-;;
                   10820:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10821:   esac
                   10822:   ac_save_IFS=$IFS
                   10823:   IFS=:
                   10824:   set x $ac_tag
                   10825:   IFS=$ac_save_IFS
                   10826:   shift
                   10827:   ac_file=$1
                   10828:   shift
                   10829: 
                   10830:   case $ac_mode in
                   10831:   :L) ac_source=$1;;
                   10832:   :[FH])
                   10833:     ac_file_inputs=
                   10834:     for ac_f
                   10835:     do
                   10836:       case $ac_f in
1.93      bertrand 10837:       -) ac_f="$ac_tmp/stdin";;
1.1       bertrand 10838:       *) # Look for the file first in the build tree, then in the source tree
                   10839:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10840:     # because $ac_f cannot contain `:'.
                   10841:     test -f "$ac_f" ||
                   10842:       case $ac_f in
                   10843:       [\\/$]*) false;;
                   10844:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10845:       esac ||
1.93      bertrand 10846:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10847:       esac
1.15      bertrand 10848:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10849:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10850:     done
                   10851: 
                   10852:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10853:     # use $as_me), people would be surprised to read:
                   10854:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10855:     configure_input='Generated from '`
                   10856:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10857:    `' by configure.'
1.1       bertrand 10858:     if test x"$ac_file" != x-; then
                   10859:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10860:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10861: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10862:     fi
1.15      bertrand 10863:     # Neutralize special characters interpreted by sed in replacement strings.
                   10864:     case $configure_input in #(
                   10865:     *\&* | *\|* | *\\* )
                   10866:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10867:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10868:     *) ac_sed_conf_input=$configure_input;;
                   10869:     esac
1.1       bertrand 10870: 
                   10871:     case $ac_tag in
1.93      bertrand 10872:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   10873:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10874:     esac
                   10875:     ;;
                   10876:   esac
                   10877: 
                   10878:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10879: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10880:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10881:     X"$ac_file" : 'X\(//\)$' \| \
                   10882:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10883: $as_echo X"$ac_file" |
1.1       bertrand 10884:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10885:        s//\1/
                   10886:        q
                   10887:      }
                   10888:      /^X\(\/\/\)[^/].*/{
                   10889:        s//\1/
                   10890:        q
                   10891:      }
                   10892:      /^X\(\/\/\)$/{
                   10893:        s//\1/
                   10894:        q
                   10895:      }
                   10896:      /^X\(\/\).*/{
                   10897:        s//\1/
                   10898:        q
                   10899:      }
                   10900:      s/.*/./; q'`
1.15      bertrand 10901:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10902:   ac_builddir=.
                   10903: 
                   10904: case "$ac_dir" in
                   10905: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10906: *)
1.15      bertrand 10907:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10908:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10909:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10910:   case $ac_top_builddir_sub in
                   10911:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10912:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10913:   esac ;;
                   10914: esac
                   10915: ac_abs_top_builddir=$ac_pwd
                   10916: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10917: # for backward compatibility:
                   10918: ac_top_builddir=$ac_top_build_prefix
                   10919: 
                   10920: case $srcdir in
                   10921:   .)  # We are building in place.
                   10922:     ac_srcdir=.
                   10923:     ac_top_srcdir=$ac_top_builddir_sub
                   10924:     ac_abs_top_srcdir=$ac_pwd ;;
                   10925:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10926:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10927:     ac_top_srcdir=$srcdir
                   10928:     ac_abs_top_srcdir=$srcdir ;;
                   10929:   *) # Relative name.
                   10930:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10931:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10932:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10933: esac
                   10934: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10935: 
                   10936: 
                   10937:   case $ac_mode in
                   10938:   :F)
                   10939:   #
                   10940:   # CONFIG_FILE
                   10941:   #
                   10942: 
                   10943:   case $INSTALL in
                   10944:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10945:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10946:   esac
                   10947:   ac_MKDIR_P=$MKDIR_P
                   10948:   case $MKDIR_P in
                   10949:   [\\/$]* | ?:[\\/]* ) ;;
                   10950:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10951:   esac
                   10952: _ACEOF
                   10953: 
1.15      bertrand 10954: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10955: # If the template does not know about datarootdir, expand it.
                   10956: # FIXME: This hack should be removed a few years after 2.60.
                   10957: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10958: ac_sed_dataroot='
                   10959: /datarootdir/ {
1.1       bertrand 10960:   p
                   10961:   q
                   10962: }
                   10963: /@datadir@/p
                   10964: /@docdir@/p
                   10965: /@infodir@/p
                   10966: /@localedir@/p
1.15      bertrand 10967: /@mandir@/p'
                   10968: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10969: *datarootdir*) ac_datarootdir_seen=yes;;
                   10970: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10971:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10972: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10973: _ACEOF
1.15      bertrand 10974: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10975:   ac_datarootdir_hack='
                   10976:   s&@datadir@&$datadir&g
                   10977:   s&@docdir@&$docdir&g
                   10978:   s&@infodir@&$infodir&g
                   10979:   s&@localedir@&$localedir&g
                   10980:   s&@mandir@&$mandir&g
1.15      bertrand 10981:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10982: esac
                   10983: _ACEOF
                   10984: 
                   10985: # Neutralize VPATH when `$srcdir' = `.'.
                   10986: # Shell code in configure.ac might set extrasub.
                   10987: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10988: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10989: ac_sed_extra="$ac_vpsub
1.1       bertrand 10990: $extrasub
                   10991: _ACEOF
1.15      bertrand 10992: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10993: :t
                   10994: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10995: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10996: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10997: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10998: s&@srcdir@&$ac_srcdir&;t t
                   10999: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   11000: s&@top_srcdir@&$ac_top_srcdir&;t t
                   11001: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   11002: s&@builddir@&$ac_builddir&;t t
                   11003: s&@abs_builddir@&$ac_abs_builddir&;t t
                   11004: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   11005: s&@INSTALL@&$ac_INSTALL&;t t
                   11006: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   11007: $ac_datarootdir_hack
1.15      bertrand 11008: "
1.93      bertrand 11009: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   11010:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 11011: 
                   11012: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.93      bertrand 11013:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   11014:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' \
                   11015:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 11016:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 11017: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 11018: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 11019: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 11020: 
1.93      bertrand 11021:   rm -f "$ac_tmp/stdin"
1.1       bertrand 11022:   case $ac_file in
1.93      bertrand 11023:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   11024:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15      bertrand 11025:   esac \
1.36      bertrand 11026:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 11027:  ;;
                   11028:   :H)
                   11029:   #
                   11030:   # CONFIG_HEADER
                   11031:   #
                   11032:   if test x"$ac_file" != x-; then
1.15      bertrand 11033:     {
                   11034:       $as_echo "/* $configure_input  */" \
1.93      bertrand 11035:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   11036:     } >"$ac_tmp/config.h" \
1.36      bertrand 11037:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.93      bertrand 11038:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15      bertrand 11039:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   11040: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 11041:     else
1.15      bertrand 11042:       rm -f "$ac_file"
1.93      bertrand 11043:       mv "$ac_tmp/config.h" "$ac_file" \
1.36      bertrand 11044:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 11045:     fi
                   11046:   else
1.15      bertrand 11047:     $as_echo "/* $configure_input  */" \
1.93      bertrand 11048:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 11049:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 11050:   fi
1.15      bertrand 11051: # Compute "$ac_file"'s index in $config_headers.
                   11052: _am_arg="$ac_file"
1.1       bertrand 11053: _am_stamp_count=1
                   11054: for _am_header in $config_headers :; do
                   11055:   case $_am_header in
                   11056:     $_am_arg | $_am_arg:* )
                   11057:       break ;;
                   11058:     * )
                   11059:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   11060:   esac
                   11061: done
                   11062: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   11063: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11064:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   11065:     X"$_am_arg" : 'X\(//\)$' \| \
                   11066:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11067: $as_echo X"$_am_arg" |
1.1       bertrand 11068:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11069:        s//\1/
                   11070:        q
                   11071:      }
                   11072:      /^X\(\/\/\)[^/].*/{
                   11073:        s//\1/
                   11074:        q
                   11075:      }
                   11076:      /^X\(\/\/\)$/{
                   11077:        s//\1/
                   11078:        q
                   11079:      }
                   11080:      /^X\(\/\).*/{
                   11081:        s//\1/
                   11082:        q
                   11083:      }
                   11084:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   11085:  ;;
                   11086: 
1.15      bertrand 11087:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   11088: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 11089:  ;;
                   11090:   esac
                   11091: 
                   11092: 
                   11093:   case $ac_file$ac_mode in
1.15      bertrand 11094:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   11095:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   11096:   # are listed without --file.  Let's play safe and only enable the eval
                   11097:   # if we detect the quoting.
                   11098:   case $CONFIG_FILES in
                   11099:   *\'*) eval set x "$CONFIG_FILES" ;;
                   11100:   *)   set x $CONFIG_FILES ;;
                   11101:   esac
                   11102:   shift
                   11103:   for mf
                   11104:   do
                   11105:     # Strip MF so we end up with the name of the file.
                   11106:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   11107:     # Check whether this is an Automake generated Makefile or not.
                   11108:     # We used to match only the files named `Makefile.in', but
                   11109:     # some people rename them; so instead we look at the file content.
                   11110:     # Grep'ing the first line is not enough: some people post-process
                   11111:     # each Makefile.in and add a new line on top of each file to say so.
                   11112:     # Grep'ing the whole file is not good either: AIX grep has a line
                   11113:     # limit of 2048, but all sed's we know have understand at least 4000.
                   11114:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   11115:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 11116: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11117:     X"$mf" : 'X\(//\)[^/]' \| \
                   11118:     X"$mf" : 'X\(//\)$' \| \
                   11119:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11120: $as_echo X"$mf" |
1.1       bertrand 11121:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11122:        s//\1/
                   11123:        q
                   11124:      }
                   11125:      /^X\(\/\/\)[^/].*/{
                   11126:        s//\1/
                   11127:        q
                   11128:      }
                   11129:      /^X\(\/\/\)$/{
                   11130:        s//\1/
                   11131:        q
                   11132:      }
                   11133:      /^X\(\/\).*/{
                   11134:        s//\1/
                   11135:        q
                   11136:      }
                   11137:      s/.*/./; q'`
1.15      bertrand 11138:     else
                   11139:       continue
                   11140:     fi
                   11141:     # Extract the definition of DEPDIR, am__include, and am__quote
                   11142:     # from the Makefile without running `make'.
                   11143:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   11144:     test -z "$DEPDIR" && continue
                   11145:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   11146:     test -z "am__include" && continue
                   11147:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   11148:     # When using ansi2knr, U may be empty or an underscore; expand it
                   11149:     U=`sed -n 's/^U = //p' < "$mf"`
                   11150:     # Find all dependency output files, they are included files with
                   11151:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   11152:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   11153:     # expansion.
                   11154:     for file in `sed -n "
                   11155:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   11156:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   11157:       # Make sure the directory exists.
                   11158:       test -f "$dirpart/$file" && continue
                   11159:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 11160: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11161:     X"$file" : 'X\(//\)[^/]' \| \
                   11162:     X"$file" : 'X\(//\)$' \| \
                   11163:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11164: $as_echo X"$file" |
1.1       bertrand 11165:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11166:        s//\1/
                   11167:        q
                   11168:      }
                   11169:      /^X\(\/\/\)[^/].*/{
                   11170:        s//\1/
                   11171:        q
                   11172:      }
                   11173:      /^X\(\/\/\)$/{
                   11174:        s//\1/
                   11175:        q
                   11176:      }
                   11177:      /^X\(\/\).*/{
                   11178:        s//\1/
                   11179:        q
                   11180:      }
                   11181:      s/.*/./; q'`
1.15      bertrand 11182:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   11183:       # echo "creating $dirpart/$file"
                   11184:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 11185:     done
                   11186:   done
1.15      bertrand 11187: }
1.1       bertrand 11188:  ;;
                   11189: 
                   11190:   esac
                   11191: done # for ac_tag
                   11192: 
                   11193: 
1.15      bertrand 11194: as_fn_exit 0
1.1       bertrand 11195: _ACEOF
                   11196: ac_clean_files=$ac_clean_files_save
                   11197: 
1.15      bertrand 11198: test $ac_write_fail = 0 ||
1.36      bertrand 11199:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 11200: 
1.1       bertrand 11201: 
                   11202: # configure is writing to config.log, and then calls config.status.
                   11203: # config.status does its own redirection, appending to config.log.
                   11204: # Unfortunately, on DOS this fails, as config.log is still kept open
                   11205: # by configure, so config.status won't be able to write to it; its
                   11206: # output is simply discarded.  So we exec the FD to /dev/null,
                   11207: # effectively closing config.log, so it can be properly (re)opened and
                   11208: # appended to by config.status.  When coming back to configure, we
                   11209: # need to make the FD available again.
                   11210: if test "$no_create" != yes; then
                   11211:   ac_cs_success=:
                   11212:   ac_config_status_args=
                   11213:   test "$silent" = yes &&
                   11214:     ac_config_status_args="$ac_config_status_args --quiet"
                   11215:   exec 5>/dev/null
                   11216:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   11217:   exec 5>>config.log
                   11218:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   11219:   # would make configure fail if this is the last instruction.
1.36      bertrand 11220:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 11221: fi
                   11222: 
                   11223: #
                   11224: # CONFIG_SUBDIRS section.
                   11225: #
                   11226: if test "$no_recursion" != yes; then
                   11227: 
1.15      bertrand 11228:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   11229:   # so they do not pile up.
1.1       bertrand 11230:   ac_sub_configure_args=
                   11231:   ac_prev=
                   11232:   eval "set x $ac_configure_args"
                   11233:   shift
                   11234:   for ac_arg
                   11235:   do
                   11236:     if test -n "$ac_prev"; then
                   11237:       ac_prev=
                   11238:       continue
                   11239:     fi
                   11240:     case $ac_arg in
                   11241:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   11242:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   11243:       ac_prev=cache_file ;;
                   11244:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   11245:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   11246:     | --c=*)
                   11247:       ;;
                   11248:     --config-cache | -C)
                   11249:       ;;
                   11250:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   11251:       ac_prev=srcdir ;;
                   11252:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   11253:       ;;
                   11254:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   11255:       ac_prev=prefix ;;
                   11256:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   11257:       ;;
1.15      bertrand 11258:     --disable-option-checking)
                   11259:       ;;
1.1       bertrand 11260:     *)
                   11261:       case $ac_arg in
1.15      bertrand 11262:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11263:       esac
1.15      bertrand 11264:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 11265:     esac
                   11266:   done
                   11267: 
                   11268:   # Always prepend --prefix to ensure using the same prefix
                   11269:   # in subdir configurations.
                   11270:   ac_arg="--prefix=$prefix"
                   11271:   case $ac_arg in
1.15      bertrand 11272:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11273:   esac
                   11274:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   11275: 
                   11276:   # Pass --silent
                   11277:   if test "$silent" = yes; then
                   11278:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   11279:   fi
                   11280: 
1.15      bertrand 11281:   # Always prepend --disable-option-checking to silence warnings, since
                   11282:   # different subdirs can have different --enable and --with options.
                   11283:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   11284: 
1.1       bertrand 11285:   ac_popdir=`pwd`
                   11286:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   11287: 
                   11288:     # Do not complain, so a configure script can configure whichever
                   11289:     # parts of a large source tree are present.
                   11290:     test -d "$srcdir/$ac_dir" || continue
                   11291: 
                   11292:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 11293:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   11294:     $as_echo "$ac_msg" >&6
                   11295:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 11296:     ac_builddir=.
                   11297: 
                   11298: case "$ac_dir" in
                   11299: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11300: *)
1.15      bertrand 11301:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 11302:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 11303:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 11304:   case $ac_top_builddir_sub in
                   11305:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11306:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   11307:   esac ;;
                   11308: esac
                   11309: ac_abs_top_builddir=$ac_pwd
                   11310: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   11311: # for backward compatibility:
                   11312: ac_top_builddir=$ac_top_build_prefix
                   11313: 
                   11314: case $srcdir in
                   11315:   .)  # We are building in place.
                   11316:     ac_srcdir=.
                   11317:     ac_top_srcdir=$ac_top_builddir_sub
                   11318:     ac_abs_top_srcdir=$ac_pwd ;;
                   11319:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   11320:     ac_srcdir=$srcdir$ac_dir_suffix;
                   11321:     ac_top_srcdir=$srcdir
                   11322:     ac_abs_top_srcdir=$srcdir ;;
                   11323:   *) # Relative name.
                   11324:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   11325:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   11326:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   11327: esac
                   11328: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   11329: 
                   11330: 
                   11331:     cd "$ac_dir"
                   11332: 
                   11333:     # Check for guested configure; otherwise get Cygnus style configure.
                   11334:     if test -f "$ac_srcdir/configure.gnu"; then
                   11335:       ac_sub_configure=$ac_srcdir/configure.gnu
                   11336:     elif test -f "$ac_srcdir/configure"; then
                   11337:       ac_sub_configure=$ac_srcdir/configure
                   11338:     elif test -f "$ac_srcdir/configure.in"; then
                   11339:       # This should be Cygnus configure.
                   11340:       ac_sub_configure=$ac_aux_dir/configure
                   11341:     else
1.15      bertrand 11342:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   11343: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 11344:       ac_sub_configure=
                   11345:     fi
                   11346: 
                   11347:     # The recursion is here.
                   11348:     if test -n "$ac_sub_configure"; then
                   11349:       # Make the cache file name correct relative to the subdirectory.
                   11350:       case $cache_file in
                   11351:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   11352:       *) # Relative name.
                   11353:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   11354:       esac
                   11355: 
1.15      bertrand 11356:       { $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
                   11357: $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 11358:       # The eval makes quoting arguments work.
                   11359:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   11360:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 11361:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 11362:     fi
                   11363: 
                   11364:     cd "$ac_popdir"
                   11365:   done
                   11366: fi
1.15      bertrand 11367: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   11368:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   11369: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   11370: fi
1.1       bertrand 11371: 

CVSweb interface <joel.bertrand@systella.fr>